[ARM] arm memcpy of aligned data
[official-gcc.git] / gcc / ChangeLog
blob66bfd50a5468b62f709c216945000eeb07d0a9da
1 2015-08-17  Mike Stump  <mikestump@comcast.net>
3         * config/arm/arm.c (arm_block_move_unaligned_straight):
4         Emit normal move instead of unaligned load when source or destination
5         are appropriately aligned.
7 2015-08-17  Richard Biener  <rguenther@suse.de>
8             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10         PR middle-end/16107
11         * match.pd (div (coss (op @0) : New simplifier.
13 2015-08-14  Alexandre Oliva <aoliva@redhat.com>
15         PR rtl-optimization/64164
16         PR bootstrap/66978
17         PR middle-end/66983
18         PR rtl-optimization/67000
19         PR middle-end/67034
20         PR middle-end/67035
21         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22         * tree-ssa-copyrename.c: Removed.
23         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
24         -ftree-coalesce-vars.
25         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26         * common.opt (ftree-copyrename): Ignore.
27         (ftree-coalesce-inlined-vars): Likewise.
28         * doc/invoke.texi: Remove the ignored options above.
29         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
30         * tree-ssa-coalesce.h: ... here.
31         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
32         headers required by it.
33         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
34         across variables when flag_tree_coalesce_vars.  Check register
35         use and promoted modes to allow coalescing.  Do not coalesce
36         maybe-byref parms with SSA_NAMEs of other variables, or
37         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
38         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
39         with its member functions to tree-ssa-coalesce.c.
40         (var_map_base_init): Likewise.  Renamed to
41         compute_samebase_partition_bases.
42         (partition_view_normal): Drop want_bases parameter.
43         (partition_view_bitmap): Likewise.
44         * tree-ssa-live.h: Adjust declarations.
45         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
46         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
47         default defs at the entry point.
48         (dump_part_var_map): New.
49         (compute_optimized_partition_bases): New, called by...
50         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
51         of compute_samebase_partition_bases.  Adjust.
52         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
53         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
54         (ssa_default_def_partition): New.
55         (get_rtl_for_parm_ssa_default_def): New.
56         (align_local_variable, add_stack_var): Support anonymous SSA
57         names.
58         (defer_stack_allocation): Likewise.  Declare earlier.
59         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
60         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
61         Do no record deferred-allocation marker in
62         SA.partition_to_pseudo.
63         (expand_stack_vars): Adjust check for the marker in it.
64         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
65         redundant MEM attr setting.
66         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
67         from...
68         (expand_one_stack_var): ... this.  New wrapper to check and
69         skip already expanded SSA partitions.
70         (record_alignment_for_reg_var): New, factored out of...
71         (expand_one_var): ... this.
72         (expand_one_ssa_partition): New.
73         (adjust_one_expanded_partition_var): New.
74         (expand_one_register_var): Check and skip already expanded SSA
75         partitions.
76         (expand_used_vars): Don't create DECLs for anonymous SSA
77         names.  Expand all SSA partitions, then adjust all SSA names.
78         (pass::execute): Replace the loops that set
79         SA.partition_to_pseudo from partition leaders and cleared
80         DECL_RTL for multi-location variables, and that which used to
81         rename vars and set attrs, with one that clears DECL_RTL and
82         checks that PARMs and RESULTs default_defs match DECL_RTL.
83         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
84         * emit-rtl.c: Include stor-layout.h.
85         (set_reg_attrs_for_parm): Handle NULL decl.
86         (set_reg_attrs_for_decl_rtl): Take mode from expression if
87         it's not a DECL.
88         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
89         rather than its possibly-NULL DECL.
90         * explow.c (promote_ssa_mode): New.
91         * explow.h (promote_ssa_mode): Declare.
92         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
93         (read_complex_part): Export.
94         * expr.h (read_complex_part): Declare.
95         * cfgexpand.h (parm_maybe_byref_p): Declare.
96         * function.c: Include cfgexpand.h.
97         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
98         (use_register_for_parm_decl): Wrapper for the above to
99         special-case the result_ptr.
100         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
101         (split_complex_args): Take assign_parm_data_all argument.
102         Pass it to rtl_for_parm.  Set up rtl and context for split
103         args.  Reset complex parm before fetching its default decl
104         rtl.
105         (assign_parms_unsplit_complex): Use the default-def complex
106         parm rtl if it matches the components.
107         (assign_parms_augmented_arg_list): Adjust.
108         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
109         multiple locations.  Recognize split complex args.
110         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
111         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
112         (assign_parm_setup_block): Prefer SSA-assigned location, and
113         fill in its address if the memory location of a maybe-byref
114         parm was not assigned by cfgexpand.
115         (assign_parm_setup_reg): Likewise.  Adjust its mode as
116         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
117         sure passed_pointer parms don't need conversion.  Copy address
118         or value as needed.
119         (assign_parm_setup_stack): Prefer SSA-assigned location.
120         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
121         rtl before testing for pointer bounds.  Special-case result_ptr.
122         (expand_function_start): Maybe reset DECL_RTL of result.
123         Prefer SSA-assigned location for result and static chain.
124         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
125         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
126         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
127         anonymous SSA names.  Use promote_ssa_mode.
128         (get_temp_reg): Likewise.
129         (remove_ssa_form): Adjust.
130         * stor-layout.c (layout_decl): Don't set mem attributes of
131         non-MEMs.
132         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
133         and get its reg_usage for reg invalidation.
134         (compute_bb_dataflow): Pass it insn.
135         (emit_notes_in_bb): Likewise.
137 2015-08-14  Marek Polacek  <polacek@redhat.com>
139         * tree-core.h (tree_base): Fix typo.
141 2015-08-14  Marek Polacek  <polacek@redhat.com>
143         PR middle-end/67133
144         * gimple.c (infer_nonnull_range_by_attribute): Check that the
145         nonnull argument position is not outside function arguments.
147 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
149         PR target/67143
150         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
151         'lconst_atomic' with 'const_atomic'.
152         (atomic_fetch_<optab><mode>): Likewise.
153         (atomic_<optab>_fetch<mode>): Likewise.
154         * config/aarch64/iterators.md (lconst-atomic): Move below
155         'const_atomic'.
156         (const_atomic): New.
158 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
159             Bernd Schmidt  <bernds@codesourcery.com>
161         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
162         debug options.
163         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
164         (DWARF2_DEBUGGING_INFO): Don't define.
165         * debug.h (dwarf2_lineno_debug_hooks): Declare.
166         * toplev.c (process_options): Add a case for it.
167         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
168         (dwarf2out_init): Skip most initializations if
169         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
170         case.
171         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
172         DWARF2_LINENO_DEBUGGING_INFO.
173         * opts.c (set_debug_level): Likewise.
175 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
177         * config/arm/types.md (is_neon_type): Add missing types.
179 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
181         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
182         for skylake.
183         * config/i386/i386.c (PTA_SKYLAKE): New macros.
184         (processor_alias_table): Add skylake description.
185         (enum processor_model): Add skylake processor.
186         (arch_names_table): Add skylake record.
187         * doc/invoke.texi: Add skylake item.
189 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
191         * ira-int.h: Include recog.h.
192         * ira-build.c: Don't include recog.h.
193         * ira-color.c: Likewise.
194         * ira-conflicts.c: Likewise.
195         * ira-costs.c: Likewise.
196         * ira-emit.c: Likewise.
197         * ira-lives.c: Likewise.
198         * ira.c: Likewise.
199         * sched-deps.c: Likewise.
200         * sel-sched.c: Likewise.
201         * target-globals.c: Likewise.
203 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
205         PR bootstrap/55035
206         * reload1.c (elimination_costs_in_insn): Make it obvious to the
207         compiler that the n_dups and n_operands loop bounds are invariant.
209 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
211         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
212         expressions in A and B.
214 2015-08-13  Richard Biener  <rguenther@suse.de>
216         * tree.c (nonnull_arg_p): Move from ...
217         * tree-vrp.c (nonnull_arg_p): ... here.
218         * tree.h (nonnull_arg_p): Declare.
219         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
220         here, register ptr != 0 for nonnull_arg_p pointer arguments.
221         Properly initialize static chain and by-reference result pointer.
222         (run_scc_vn): Adjust.
224 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
226         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
227         TUNE_I6400.
229 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
231         * config/aarch64/aarch64-protos.h
232         (aarch64_gen_atomic_cas): Declare.
233         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
234         Choose appropriate instruction pattern for the target.
235         (aarch64_gen_atomic_cas): New.
236         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
237         (atomic_compare_and_swap<mode>_1): Rename to
238         aarch64_compare_and_swap<mode>.  Fix some indentation.
239         (aarch64_compare_and_swap<mode>_lse): New.
240         (aarch64_atomic_cas<mode>): New.
242 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
244         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
245         (TARGET_LSE): New.
247 2015-08-13  Richard Biener  <rguenther@suse.de>
249         PR tree-optimization/67191
250         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
251         assert we value-numbered last stmts operand because it can validly
252         trigger for unreachable code.
254 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
256         PR rtl-optimization/67103
257         * ifcvt.c (noce_try_store_flag_constants): Move
258         x = (-(test != 0) & (b - a)) + a transformation to...
259         (noce_try_cmove): ... Here.  Try it if normal conditional
260         move fails.
262 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
264         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
265         pseudo-processors.
266         * config/mips/mips.md (processor): Remove w32 and w64.
268 2015-08-13  Richard Biener  <rguenther@suse.de>
270         PR tree-optimization/66502
271         PR tree-optimization/67167
272         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
273         backedge arguments.
274         (vn_phi_lookup): Adjust.
275         (vn_phi_insert): Likewise.
276         (visit_phi): Prefer to value-number to another PHI node
277         over value-numbering to a PHI argument.
278         (init_scc_vn): Mark DFS back edges.
280 2015-08-13  Richard Biener  <rguenther@suse.de>
282         * gimple.h (gcall::code_): New constant static member.
283         (gcond::code_): Likewise.
284         * gimple.c (gcall::code_): Define.
285         (gcond::code_): Likewise.
286         (is_a_helper <const gcond *>): Add.
287         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
288         and forward to a new gcall overload with less checking and a
289         cheaper way to access the operand.
290         (gimple_call_lhs_ptr): Likewise.
291         (gimple_call_set_lhs): Likewise.
292         (gimple_call_internal_p): Likewise.
293         (gimple_call_with_bounds_p): Likewise.
294         (gimple_call_set_with_bounds): Likewise.
295         (gimple_call_internal_fn): Likewise.
296         (gimple_call_set_ctrl_altering): Likewise.
297         (gimple_call_ctrl_altering_p): Likewise.
298         (gimple_call_fntype): Likewise.
299         (gimple_call_fn): Likewise.
300         (gimple_call_fn_ptr): Likewise.
301         (gimple_call_set_fndecl): Likewise.
302         (gimple_call_fndecl): Likewise.
303         (gimple_call_chain): Likewise.
304         (gimple_call_num_args): Likewise.
305         (gimple_call_arg): Likewise.
306         (gimple_call_arg_ptr): Likewise.
307         (gimple_call_set_arg): Likewise.
308         (gimple_call_noreturn_p): Likewise.
309         (gimple_cond_code): Likewise.
310         (gimple_cond_lhs): Likewise.
311         (gimple_cond_rhs): Likewise.
312         (gimple_has_lhs): Reduce checking.
314 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
316         PR middle-end/25529
317         * match.pd (div (mult @0 @1) @1) : New simplifier.
319 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
321         PR target/67071
322         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
323         predicate to allow construction of vector constants using the
324         VSLDOI vector shift instruction.
326         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
327         declaration.
329         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
330         the number of bytes to be shifted left and filled in with either
331         all zero or all one bits.
332         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
333         methods exist.
334         (output_vec_const_move): On power8, generate XXLORC to generate
335         a vector constant with all 1's. Do a split if we need to use a
336         VSLDOI instruction.
338         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
339         properly test for the MSB.
341         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
342         vector constants that can be created with VSLDOI.
344 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
346         revert:
347         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
348         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
349         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
350         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
351         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
352         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
353         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
354         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
355         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
357 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
359         * config/xtensa/constraints.md (define_constraint "Y"): New
360         constraint.
361         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
362         * config/xtensa/linux.h (ASM_SPEC): Likewise.
363         * config/xtensa/predicates.md (move_operand): Match constants
364         and symbols in the presence of TARGET_AUTO_LITPOOLS.
365         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
366         immediate references to TLS data.
367         (xtensa_emit_move_sequence): Don't force constants to memory in
368         the presence of TARGET_AUTO_LITPOOLS.
369         (print_operand): Add 'y' format, same as default, but capable of
370         printing SF mode constants as well.
371         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
372         (movsf_internal): Add movi pattern that loads literal.
373         (movsf, movdf): Don't force constants to memory in the presence
374         of TARGET_AUTO_LITPOOLS.
375         (movdf_internal): Add 'Y' constraint.
376         * config/xtensa/xtensa.opt (mauto-litpools): New option.
377         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
379 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
381         * config/arm/arm-fpus.def: Replace booleans with feature flags.
382         Update comment.
383         * config/arm/arm.c (ARM_FPU): Update macro.
384         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
385         (TARGET_FP16): Likewise.
386         (TARGET_CRYPTO): Likewise.
387         (TARGET_NEON): Likewise.
388         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
389         field features.
391 2015-08-12  Tom de Vries  <tom@codesourcery.com>
393         PR other/67092
394         PR other/67098
395         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
396         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
397         accordingly.  Mention default for --with-stage1-ldflags.
399 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
401         * config/arm/arm.h (arm_fpu_feature_set): New.
402         (ARM_FPU_FSET_HAS): New.
403         (FPU_FL_NONE): New.
404         (FPU_FL_NEON): New.
405         (FPU_FL_FP16): New.
406         (FPU_FL_CRYPTO): New.
408 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
410         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
411         after -mcmodel=large -fPIC sorry.
413 2015-08-12  Richard Biener  <rguenther@suse.de>
415         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
416         comparison operand order and commutative ternary op operand order.
417         (sccvn_dom_walker::cond_stack): New state to track temporary
418         expressions.
419         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
420         no longer valid.
421         (sccvn_dom_walker::record_cond): Add a single temporary conditional
422         expression.
423         (sccvn_dom_walker::record_conds): Add a temporary conditional
424         expressions and all related expressions also true/false.
425         (sccvn_dom_walker::before_dom_children): Record temporary
426         expressions based on the controlling condition of a single
427         predecessor.  When trying to simplify a conditional statement
428         lookup expressions we might have inserted earlier.
430 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
432         PR target/67127
433         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
434         to ARM core registers.
436 2015-08-12  Nathan Sidwell  <nathan@acm.org>
438         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
439         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
441 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
443         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
444         line with comments.
445         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
447 2015-08-12  Richard Biener  <rguenther@suse.de>
449         * gimple.h (remove_pointer): New trait.
450         (GIMPLE_CHECK2): New inline template function.
451         (gassign::code_): New constant static member.
452         (is_a_helper<const gassign *>): Add.
453         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
454         and forward to a new gassign overload with less checking and a
455         cheaper way to access the operand.
456         (gimple_assign_lhs_ptr): Likewise.
457         (gimple_assign_set_lhs): Likewise.
458         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
459         Likewise.
460         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
461         Likewise.
462         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
463         Likewise.
464         (gimple_assign_rhs_code): Likewise.
465         * gimple.c (gassign::code_): Define.
467 2015-08-12  Richard Biener  <rguenther@suse.de>
469         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
470         Eliminate edges marked as not executable by SCCVN.
471         * tree-ssa-sccvn.c: Include gimple-iterator.h.
472         (cond_dom_walker): Rename to sccvn_dom_walker.
473         (sccvn_dom_walker::before_dom_children): Value-number defs
474         of all stmts.
475         (run_scc_vn): Remove loop value-numbering all SSA names.
476         Drop not visited SSA names to varying.
478 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
480         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
481         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
482         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
483         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
484         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
485         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
486         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
487         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
488         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
490 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
492         PR target/66954
493         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
494         to enum feature_priority and feature_list.
495         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
496         and isa_names_table.
498 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
500         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
501         vect_induction_def.
503 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
505         PR c/66098
506         PR c/66711
507         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
508         account when deciding what was the command-line status.
510 2015-08-11  Nathan Sidwell  <nathan@acm.org>
512         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
514         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
515         we're not the only contributor to target phi.
517 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
519         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
520         FIXED_REG0.
522 2015-08-11  Tom de Vries  <tom@codesourcery.com>
524         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
526 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
528         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
529         with CPU_SLM.
530         * config/i386/i386.md (cpu): Remove knl.
532 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
534         PR libgomp/65742
535         PR middle-end/66332
536         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
537         open-coded sequence.
538         * omp-low.c (oacc_process_reduction_data): Remove handline of
539         GOMP_DEVICE_HOST_NONSHM.
541         * lto-streamer-in.c (lto_input_mode_table): Adjust to
542         GET_MODE_INNER changes.
544 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
545             Ilya Verbin  <ilya.verbin@intel.com>
547         * lto-streamer-in.c (lto_input_mode_table): Correctly advance
548         iterator.
550 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
552         * doc/options.texi (EnabledBy): Document that the argument must be
553         a Common option.
554         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
555         Not enabled by -Wall.
556         * optc-gen.awk: Give nicer error messages. Detect if the argument
557         of EnabledBy is not a Common option.
558         * common.opt (Wnull-dereference): Not enabled by -Wall.
559         * opt-functions.awk (lang_enabled_by): Nicer error messages.
561 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
563         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
564         model == 0x4f as Broadwell.
566 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
568         PR rtl-optimization/67028
569         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
570         Add test to see if a const_int fits in the new mode.
572 2015-08-07  DJ Delorie  <dj@redhat.com>
574         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
575         
576 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
578         PR rtl-optimization/67029
579         * ira-color.c: Include "recog.h" before including "ira-int.h".
580         * target-globals.c: Likewise.
581         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
582         adds an alternative_mask argument and use it instead of
583         preferred_alternatives.
584         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
585         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
586         * sched-deps.c: Include "ira-int.h" after including "ira.h".
587         (sched_analyze_insn): Update call to
588         ira_implicitly_set_insn_hard_regs.
589         * sel-sched.c: Include "ira-int.h" after including "ira.h".
590         (implicit_clobber_conflict_p): Update call to
591         ira_implicitly_set_insn_hard_regs.
593 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
595         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
597 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
599         PR target/67002
600         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
601         currently_expanding_to_rtl is set.
603 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
605         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
606         * configure: Regenerate.
608 2015-08-06    Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
609               Jiong Wang  <jiong.wang@arm.com>
611         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
612         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
613         (REG_CLASS_NAMES): Likewise.
614         (REG_CLASS_CONTENTS): Likewise.
615         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
616         (aarch64_register_move_cost): Likewise.
617         (aarch64_load_symref_appropriately): Invoke the new added pattern if
618         possible.
619         * config/aarch64/constraints.md (Uc0): New constraint.
621 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
623         * config/aarch64/constraints.md (Usf): Add the test of
624         aarch64_is_noplt_call_p.
626 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
628         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
629         declaration.
630         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
631         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
632         (call_symbol): Likewise.
634 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
636         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
637         for vectorizing multiplication patterns.
638         * tree-vectorizer.h: Adjust the number of patterns.
640 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
642         * config/i386/sse.md (*vec_concatv2df): Declare added
643         alternatives as sselog type.
645 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
647         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
648         all GPRs.
650 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
652         * config/s390/s390.c (s390_expand_tbegin): Expand either
653         tbegin_1_z13 or tbegin_1 depending on VX flag.
654         * config/s390/s390.md ("tbegin_1_z13"): New expander.
656 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
658         * config/s390/s390.opt: Clarify description for -mzvector
659         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
660         -mzvector.
662 2015-08-06  Richard Biener  <rguenther@suse.de>
664         * gimple.h (gimple_call_set_fn): Access op member directly.
665         (gimple_call_chain_ptr): Likewise.
666         (gimple_call_set_chain): Likewise.
667         (gimple_cond_lhs_ptr): Likewise.
668         (gimple_cond_set_lhs): Likewise.
669         (gimple_cond_rhs_ptr): Likewise.
670         (gimple_cond_set_rhs): Likewise.
671         (gimple_cond_true_label): Likewise.
672         (gimple_cond_set_true_label): Likewise.
673         (gimple_cond_set_false_label): Likewise.
674         (gimple_cond_false_label): Likewise.
675         (gimple_label_label): Likewise.
676         (gimple_label_set_label): Likewise.
677         (gimple_goto_set_dest): Likewise.
678         (gimple_asm_input_op): Likewise.
679         (gimple_asm_input_op_ptr): Likewise.
680         (gimple_asm_set_input_op): Likewise.
681         (gimple_asm_output_op): Likewise.
682         (gimple_asm_output_op_ptr): Likewise.
683         (gimple_asm_set_output_op): Likewise.
684         (gimple_asm_clobber_op): Likewise.
685         (gimple_asm_set_clobber_op): Likewise.
686         (gimple_asm_label_op): Likewise.
687         (gimple_asm_set_label_op): Likewise.
688         (gimple_switch_index): Likewise.
689         (gimple_switch_index_ptr): Likewise.
690         (gimple_return_retval_ptr): Likewise.
691         (gimple_return_retval): Likewise.
692         (gimple_return_set_retval): Likewise.
693         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
694         (gimple_switch_label): Likewise.
695         (gimple_switch_set_label): Likewise.
697 2015-08-06  Richard Biener  <rguenther@suse.de>
699         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
700         bool comparison canonicalization and restrict to integers.
702 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
704         * coretypes.h (enum symbol_visibility): Relocate here.
705         * flag-types.h (enum symbol_visibility): Remove.
706         * tree-core.h (enum symbol_visibility): Remove.
708 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
710         PR target/66870
711         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
712         for no_split_stack function attribute along with
713         flag_split_stack.
714         (rs6000_expand_split_stack_prologue): Likewise.
716 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
717             Jeff Law  <law@redhat.com>
719         PR c/16351
720         * doc/invoke.texi (Wnull-dereference): New.
721         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
722         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
723         Warn for potential NULL dereferences.
724         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
725         * ubsan.c (instrument_nonnull_arg): Call
726         infer_nonnull_range_by_attribute.
727         (instrument_nonnull_return): Likewise.
728         * common.opt (Wnull-dereference); New.
729         * gimple.c (infer_nonnull_range): Remove bool arguments.
730         (infer_nonnull_range_by_dereference): New.
731         (infer_nonnull_range_by_attribute): New.
732         * gimple.h: Update declarations.
734 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
736         * gensupport.c (sequence_num): Replace with...
737         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
738         ...these new variables.
739         (init_rtx_reader_args_cb): Update accordingly.
740         (get_num_code_insns): Likewise.
741         (read_md_rtx): Rework to use a while loop and get_c_test.
742         Use the new counters.  Remove redundant DEFINE_SUBST case.
743         * genoutput.c (gen_split): Delete.
744         (main): Don't call it.
746 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
748         * gensupport.h (get_c_test): Declare.
749         * gensupport.c (get_c_test): New function.
750         * genconditions.c (main): Use it.
751         * genrecog.c (validate_pattern): Likewise.
752         (match_pattern_1): Likewise.  Remove c_test argument.
753         (match_pattern): Update accordingly and remove c_test argument.
754         (main): Update accordingly.
756 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
758         * gensupport.h (get_num_insn_codes): Declare.
759         * gensupport.c (get_num_insn_codes): New function.
760         * genattrtab.c (optimize_attrs): Rename max_insn_code to
761         num_insn_codes.
762         (main): Likewise.  Use get_num_insn_codes.
763         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
765 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
767         PR middle-end/66311
768         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
769         is zero- rather than sign-extended.
771 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
773         * target-insns.def (can_extend): Delete.
775 2015-08-05  Richard Biener  <rguenther@suse.de>
777         PR tree-optimization/67121
778         * tree-if-conv.c (combine_blocks): Clear range-info produced
779         by stmts no longer executed conditionally.
781 2015-08-05  Nick Clifton  <nickc@redhat.com>
783         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
784         to allow identical far pointers to remain.
786 2015-08-05  Richard Biener  <rguenther@suse.de>
788         PR middle-end/67120
789         * match.pd: Compare address bases with == if they are decls
790         or SSA names, not operand_equal_p.  Otherwise fail.
792 2015-08-05  Richard Biener  <rguenther@suse.de>
794         PR tree-optimization/67055
795         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
796         NULL gimple_block.
798         * g++.dg/torture/pr67055.C: New testcase.
800 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
802         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
803         noavx512vl.
804         (define_attr "enabled"): Handle avx521vl and noavx512vl.
805         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
806         AVX-512 alternative out of SSE.
807         (define_insn "*vec_concatv2df"): Ditto.
809 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
811         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
812         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
813         CODE_FOR_avx_ptestv4di.
814         * config/i386/sse.md (define_mode_iterator V_AVX): New.
815         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
816         (define_insn "avx_ptest256"): Merge this ...
817         (define_insn "sse4_1_ptest"): And this ...
818         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
820 2015-08-05  Richard Biener  <rguenther@suse.de>
822         PR tree-optimization/67109
823         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
824         against too big groups.  Print whether this is a load or store
825         group.  Rename from ...
826         (vect_analyze_group_access): ... this which is now a wrapper
827         dissolving an invalid group.
828         (vect_analyze_data_ref_accesses): Print whether this is a load
829         or store group.
831 2015-08-05  Richard Biener  <rguenther@suse.de>
833         PR middle-end/67107
834         * match.pd: Guard const_binop result checking against NULL_TREE
835         result.
837 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
839         * cse.c (cse_insn): Restoring old behaviour for src_eqv
840          when dest and value in the REG_EQUAL are same and dest
841          is STRICT_LOW_PART.
843 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
845         * config/moxie/moxie.h (PRINT_OPERAND,
846           PRINT_OPERAND_ADDRESS): Remove macros.
847         * config/moxie/moxie-protos.h (moxie_print_operand,
848           moxie_print_operand_address): Remove declaration.
849         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
850           TARGET_PRINT_OPERAND_ADDRESS): Define.
851           (moxie_print_operand, moxie_print_operand_address): Make static.
853 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
855         PR target/66731
856         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
857         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
859 2015-08-04  Richard Biener  <rguenther@suse.de>
861         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
862         generated code.
863         (dt_operand::gen_gimple_expr): Adjust.
865 2015-08-04  Richard Biener  <rguenther@suse.de>
867         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
868         bool compares on RHS.
869         * match.pd: Add X ==/!= !X is false/true pattern.
871 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
873         * config/aarch64/aarch64.c: Change inner loop statement cost
874         to be consistent with other targets.
876 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
878         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
879         targets.
881 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
883         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
884         (machine_function): Remove pseudos field.
886 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
888         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
889         Exit early and use target_option_current_node if processing current
890         pragma.
892 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
894         * doc/extend.texi (AArch64 Function Attributes): New node.
895         (AArch64 Pragmas): Likewise.
897 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
899         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
900         Initialize simd builtins if TARGET_SIMD.
901         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
902         Make sure that the builtins are initialized only once no matter how
903         many times the function is called.
904         (aarch64_init_builtins): Unconditionally initialize crc builtins.
905         (aarch64_relayout_simd_param): New function.
906         (aarch64_simd_expand_args): Use above during argument expansion.
907         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
908         simd builtins if TARGET_SIMD.
909         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
910         prototype.
911         (aarch64_relayout_simd_types): Likewise.
913 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
915         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
916         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
917         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
918         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
919         static keyword.
920         (aarch64_reset_previous_fndecl): New function.
921         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
922         the string.
923         * config/aarch64/aarch64-c.c: New file.
924         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
925         Push and pop options at beginning and end.  Remove ifdef
926         __ARM_FEATURE_CRC32.
927         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
928         Add pragma +nothing+simd and +nothing+crypto where appropriate.
929         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
930         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
931         Define prototype.
932         (aarch64_register_pragmas): Likewise.
933         (aarch64_reset_previous_fndecl): Likewise.
934         (aarch64_process_target_attr): Likewise.
935         (aarch64_override_options_internal): Likewise.
937 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
939         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
940         New function.
941         (aarch64_can_inline_p): Likewise.
942         (TARGET_CAN_INLINE_P): Define.
944 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
946         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
947         Remove static.  Handle OPT_mgeneral_regs_only,
948         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
949         OPT_momit_leaf_frame_pointer.
950         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
951         (aarch64_attr_opt_type): New enum.
952         (aarch64_attribute_info): New struct.
953         (aarch64_handle_attr_arch): New function.
954         (aarch64_handle_attr_cpu): Likewise.
955         (aarch64_handle_attr_tune): Likewise.
956         (aarch64_handle_attr_isa_flags): Likewise.
957         (aarch64_attributes): New table.
958         (aarch64_process_one_target_attr): New function.
959         (num_occurences_in_str): Likewise.
960         (aarch64_process_target_attr): Likewise.
961         (aarch64_option_valid_attribute_p): Likewise.
962         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
963         * config/aarch64/aarch64-protos.h: Include input.h
964         (aarch64_handle_option): Declare prototype.
966 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
968         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
969         * config/aarch64/aarch64.c: Include target-globals.h
970         (aarch64_previous_fndecl): New variable.
971         (aarch64_set_current_function): New function.
972         (TARGET_SET_CURRENT_FUNCTION): Define.
974 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
976         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
977         (explicit_arch): Likewise.
978         (x_aarch64_isa_flags): Likewise.
979         (mgeneral-regs-only): Mark as Save.
980         (mfix-cortex-a53-835769): Likewise.
981         (mcmodel=): Likewise.
982         (mstrict-align): Likewise.
983         (momit-leaf-frame-pointer): Likewise.
984         (mtls-dialect): Likewise.
985         (master=): Likewise.
986         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
987         (aarch64_isa_flags): Remove extern declaration.
988         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
989         to indicate success or failure.
990         (aarch64_validate_march): Likewise.
991         (aarch64_validate_mtune): Likewise.
992         (aarch64_isa_flags): Delete.
993         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
994         instead of aarch64_isa_flags.
995         (aarch64_get_tune_cpu): New function.
996         (aarch64_get_arch): Likewise.
997         (aarch64_override_options): Use above and set up explicit_tune_core
998         and explicit_arch.
999         (aarch64_print_extension): Move earlier in file.  Add isa_flags
1000         argument and use that instead of the global aarch64_isa_flags.
1001         (aarch64_option_save): New function.
1002         (aarch64_option_restore): Likewise.
1003         (aarch64_option_print): Likewise.
1004         (aarch64_declare_function_name): Likewise.
1005         (aarch64_start_file): Delete.
1006         (TARGET_ASM_FILE_START): Do not define.
1007         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
1008         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
1009         Declare prototype.
1011 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1013         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
1014         flag_omit_leaf_frame_pointer to 2.
1016 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1018         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
1019         define to 0 or 1.
1020         (TARGET_FIX_ERR_A53_835769): New macro.
1021         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
1022         handling of opts->x_aarch64_fix_a53_err835769.
1023         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
1024         than aarch64_fix_a53_err835769.
1025         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
1026         * config/aarch64/aarch64-linux.h: Likewise.
1028 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
1030         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
1031         ix86_expand_int_movcc as boolean.
1033 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1035         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
1036         (aarch64_cpu_string): Likewise.
1037         (aarch64_tune_string): Likewise.
1038         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
1039         (aarch64_parse_extension): Return aarch64_parse_opt_result.
1040         Add extra argument to put result into.
1041         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
1042         (aarch64_parse_cpu): Add arguments to put results into. Return
1043         aarch64_parse_opt_result.
1044         (aarch64_parse_tune): Likewise.
1045         (aarch64_override_options_after_change_1): New function.
1046         (aarch64_override_options_internal): New function.
1047         (aarch64_validate_mcpu): Likewise.
1048         (aarch64_validate_march): Likewise.
1049         (aarch64_validate_mtune): Likewise.
1050         (aarch64_override_options): Update to reflect above changes.
1051         Move some logic into aarch64_override_options_internal.
1052         Initialize target_option_default_node and target_option_current_node.
1053         (aarch64_override_options_after_change): Move logic into
1054         aarch64_override_options_after_change_1 and call it with global_options.
1055         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
1056         flag values from that.
1058 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1060         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1061         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
1062         * config/aarch64/aarch64.c (struct processor): Add arch field.
1063         (all_architectures): Handle above, move above all_cores.
1064         (all_cores): Handle above.
1065         (aarch64_parse_arch): Handle above changes.
1066         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
1067         above.  Update comments.
1068         (armv8.1-a): Likewise.
1069         * config/aarch64/aarch64-cores.def: Update according to above.
1070         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
1071         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
1072         aarch64_arch_driver_info.
1074 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1076         * config/aarch64/aarch64.c (struct processor): Add ident field.
1077         Rename core sched_core.
1078         (all_cores): Handle above changes.
1079         (all_architectures): Likewise.
1080         (aarch64_parse_arch): Likewise.
1081         (aarch64_override_options): Likewise.
1083 2015-08-04  Richard Biener  <rguenther@suse.de>
1085         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
1086         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
1087         comparisons embedded in [VEC_]COND_EXPRs.
1089 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
1091         * tree-if-conv.c: Fix various typos in comments.
1092         * tree-vect-stmts.c: Likewise.
1094 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1096         PR tree-optimization/67043
1097         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
1098         preheader after hoisting invariant in it.
1099         (find_defs): Force recomputation of all luids.
1101 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
1103         * config/rs6000/htm.md (tabort.): Restrict the source operand to
1104         using a base register.
1106 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
1108         * main.c (main): Pass in NULL for toplev's external_timer.
1109         * timevar.c: Include coretypes.h.
1110         (class timer::named_items): New.
1111         (timer::named_items::named_items): New.
1112         (timer::named_items::~named_items): New.
1113         (timer::named_items::push): New.
1114         (timer::named_items::pop): New.
1115         (timer::named_items::print): New.
1116         (timer::timer): Initialize field "m_jit_client_items".
1117         (timer::~timer): New.
1118         (timer::push): Move bulk of implementation to...
1119         (timer::push_internal): ...here.  New function.
1120         (timer::pop): Move bulk of implementation to...
1121         (timer::pop_internal): ...here.  New function.
1122         (timer::push_client_item): New.
1123         (timer::pop_client_item): New.
1124         (timer::print_row): New function, taken from timer::print.
1125         (timer::print): Print "GCC items" header if we also have client
1126         items.  Move row-printing to timer::print_row.  Print any client
1127         items.
1128         (timer::get_topmost_item_name): New method.
1129         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
1130         (TV_JIT_CLIENT_CODE): New.
1131         * timevar.h (timer::push_client_item): New declaration.
1132         (timer::pop_client_item): New declaration.
1133         (timer::get_topmost_item_name): New method.
1134         (timer::push_internal): New declaration.
1135         (timer::pop_internal): New declaration.
1136         (timer::print_row): New declaration.
1137         (timer::named_items): New declaration.
1138         (timer::m_jit_client_items): New field.
1139         (timer): Add friend class named_items.
1140         (auto_timevar::auto_timevar): Add timer param.
1141         (auto_timevar::~auto_timevar): Use field "m_timer".
1142         (auto_timevar::m_timer): New field.
1143         * toplev.c (initialize_rtl): Add g_timer as param when
1144         constructing auto_timevar instance.
1145         (toplev::toplev): Add "external_timer" param, and use it to
1146         initialize the "g_timer" global if non-NULL.
1147         (toplev::~toplev): If this created "g_timer", delete it.
1148         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
1149         with "external_timer" timer *.
1151 2015-08-03  Alexander Basov <coohpt@gmail.com>
1153         PR middle-end/64744
1154         PR middle-end/48470
1155         PR middle-end/43404
1156         * cfgexpand.c (expand_one_var): Add check if stack is going to
1157         be used in naked function.
1158         * expr.c (expand_expr_addr_expr_1): Remove excess checking
1159         whether expression should not reside in MEM.
1160         * function.c (use_register_for_decl): Do not use registers for
1161         non-register things (volatile, float, BLKMode) in naked functions.
1163 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
1165         PR target/67060
1166         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
1167         Adjust splits to match new pattern.
1169 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
1171         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
1172         (VEC_M): Likewise.
1173         (VEC_N): Likewise.
1174         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
1175         point in VSX registers.
1177         * config/rs6000/constraints.md (wb constraint): Document unused
1178         w<x> constraint.
1179         (we constraint): Likewise.
1180         (wo constraint): Likewise.
1181         (wp constraint): New constraint for IEEE 128-bit floating point in
1182         VSX registers.
1183         (wq constraint): Likewise.
1185         * config/rs6000/predicates.md (easy_fp_constant): Add support for
1186         IEEE 128-bit floating point in VSX registers.
1187         (easy_scalar_constant): Likewise.
1189         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
1190         constraints (wp, wq) for IEEE 128-bit floating point in VSX
1191         registers.
1192         (rs6000_init_hard_regno_mode_ok): Likewise.
1194         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
1195         floating point in VSX registers.
1196         (VSX_L): Likewise.
1197         (VSX_M): Likewise.
1198         (VSX_M2): Likewise.
1199         (VSm): Likewise.
1200         (VSs): Likewise.
1201         (VSr): Likewise.
1202         (VSa): Likewise.
1203         (VSv): Likewise.
1204         (vsx_le_permute_<mode>): Add support to properly swap bytes for
1205         IEEE 128-bit floating point in VSX registers on little endian.
1206         (vsx_le_undo_permute_<mode>): Likewise.
1207         (vsx_le_perm_load_<mode>): Likewise.
1208         (vsx_le_perm_store_<mode>): Likewise.
1209         (splitters for IEEE 128-bit fp moves): Likewise.
1211         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
1212         wq constraints.
1214         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
1215         floating point in VSX registers.
1216         (VM2): Likewise.
1218         * doc/md.text (Machine Constraints): Document wp and wq
1219         constraints on PowerPC.
1221 2015-08-03  Jeff Law  <law@redhat.com>
1223         PR middle-end/66314
1224         PR gcov-profile/66899
1225         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
1226         iterate over the jump threading paths when an element in the
1227         jump threading paths array is eliminated.
1229 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
1231         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
1233 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
1235         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
1236         is_use_properly_guarded the variable def_preds.  Free its
1237         contents before returning.
1238         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
1239         (is_use_properly_guarded): Replace local variable def_preds with
1240         a parameter.  Adjust accordingly.  Only update *def_preds if it's
1241         the empty vector.
1243 2015-08-03  Richard Biener  <rguenther@suse.de>
1245         * genmatch.c (simplify::for_subst_vec): New member.
1246         (binary_ok): New helper for for lowering.
1247         (lower_for): Delay substituting operators into result expressions
1248         if we can merge the results eventually again.
1249         (capture_info::walk_result): Adjust for user_id appearing as
1250         result expression operator.
1251         (expr::gen_transform): Likewise.
1252         (dt_simplify::gen_1): Likewise.
1253         (dt_simplify::gen): Pass not substituted operators to tail
1254         functions or initialize local variable with it.
1255         (decision_tree::gen): Adjust function signature.
1256         * match.pd: Fix tests against global code and add default
1257         cases to switch stmts.
1259 2015-08-03  Richard Biener  <rguenther@suse.de>
1261         * genmatch.c (dt_simplify::gen): Create captures array
1262         with an initializer.
1264 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1266         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
1267         the host compiler is affected by placement new aliasing bug.
1268         * configure: Regenerate.
1269         * Makefile.in (ALIASING_FLAGS): New variable.
1270         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
1272 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1274         PR target/66731
1275         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
1276         (negmulsf3_vfp): Likewise.
1277         (muldf3negdf_vfp): Disable for -frounding-math.
1278         (mulsf3negsf_vfp): Likewise.
1279         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
1280         fix MULT cost with -frounding-math.
1282 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1284         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
1285         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
1286         explicit.  Prefer to add the flag whenever possible.
1287         (noce_process_if_block): Try noce_try_store_flag_constants before
1288         noce_try_cmove.
1290 2015-08-03  Richard Biener  <rguenther@suse.de>
1292         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
1293         New hash-map to record equivalent transforms.
1294         (dt_node::analyze): Populate the equivalent transforms hash-map.
1295         (dt_simplify::info): Add reference to hash-map entry.
1296         (dt_simplify::gen): If we have split out a function for the
1297         transform, generate a call to it.
1298         (sinfo_hashmap_traits::hash): New function.
1299         (compare_op): New helper function for ...
1300         (sinfo_hashmap_traits::equal_keys): ... this new function.
1301         (decision_tree::gen): Split out common equivalent transforms
1302         into functions.
1304 2015-08-03  Richard Biener  <rguenther@suse.de>
1306         * gimple-fold.c (fold_gimple_assign): Remove folding of
1307         the comparison in COND_EXPRs.
1309 2015-08-03  Richard Biener  <rguenther@suse.de>
1311         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
1312         on the rhs of assignments first simplify the embedded
1313         GENERIC condition.
1315 2015-08-03  Richard Biener  <rguenther@suse.de>
1317         PR tree-optimization/66917
1318         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
1319         field.
1320         (DR_VECT_AUX): New macro.
1321         (set_dr_misalignment): Adjust.
1322         (dr_misalignment): Likewise.
1323         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1324         Compute whether the base is at least element aligned.
1325         * tree-vect-stmts.c (ensure_base_align): Adjust.
1326         (vectorizable_store): If the base is not element aligned
1327         preserve alignment of the original access if misalignment is unknown.
1328         (vectorizable_load): Likewise.
1330 2015-08-02  Martin Sebor  <msebor@redhat.com>
1332         * c-family/c.opt (-Wframe-address): New warning option.
1333         * doc/invoke.texi (Wframe-address): Document it.
1334         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
1335         Clarify possible effects of calling the functions with non-zero
1336         arguments and mention -Wframe-address.
1337         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
1339 2015-08-01  Michael Collison  <michael.collison@linaro.org
1340             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1342         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
1343         (*arm_umin_cmp): Likewise.
1345 2015-08-01  Caroline Tice  <cmtice@google.com>
1347         PR 66521
1348         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
1349         global variables.
1350         (vtbl_find_mangled_name):  New function.
1351         (vtbl_register_mangled_name):  New function.
1352         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
1353         mangled name in mangled name vectors.
1354         (find_or_create_vtbl_map_node):  Ditto.
1355         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
1356         update recursion_depth on function entry; pass it to every recursive
1357         call; automatically exit if depth > 25 (give up looking at that point).
1358         (verify_bb_vtables):  Initialize recursion_depth and pass it to
1359         var_is_used_for_virtual_call_p.
1360         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
1361         global variable decls.
1362         (vtbl_register_mangled_name): New extern function decl.
1364 2015-08-01  Tom de Vries  <tom@codesourcery.com>
1366         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
1367         function.
1368         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
1369         Declare.
1370         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
1371         operation_no_trapping_overflow.  Allow non-overflow operations.
1372         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
1373         operations.
1375 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1377         PR target/67049
1378         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
1380 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1382         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
1383         Enable for TARGET_32BIT.
1384         (*if_move_neg): Likewise.
1386 2015-07-31  Nick Clifton  <nickc@redhat.com>
1388         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
1389         Returns true for __model__.
1390         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1392 2015-07-31  Alan Modra  <amodra@gmail.com>
1394         PR target/66870
1395         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
1396         (rs6000_emit_prologue): Set it.
1397         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
1399 2015-07-31  Richard Biener  <rguenther@suse.de>
1401         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
1402         -> X == (C1 ^ C2) which is already implemented in match.pd.
1403         Remove redundant dispatching to fold_relational_const.
1404         Move unordered self and NaN compares ...
1405         * match.pd: ... as patterns here.  Remove some stray captures
1406         and add a comment.
1408 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
1410         * config/i386/i386.c
1411         (bdesc_special_args): Convert mask type from signed to unsigned for
1412         masked builtins.
1413         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
1414         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
1415         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
1416         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
1417         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
1418         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
1419         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
1420         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
1421         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
1422         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
1423         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
1424         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
1425         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
1426         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
1427         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
1428         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
1429         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
1430         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
1431         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
1432         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
1433         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
1434         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
1435         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
1436         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
1437         * config/i386/i386-builtin-types.def
1438         (V16QI_FTYPE_V16SI): Remove.
1439         (V8DF_FTYPE_V8SI): Ditto.
1440         (V8HI_FTYPE_V8DI): Ditto.
1441         (V8SI_FTYPE_V8DI): Ditto.
1442         (V8SF_FTYPE_V8DF): Ditto.
1443         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
1444         (V16HI_FTYPE_V16SI): Ditto.
1445         (V16SF_FTYPE_V16HI): Ditto.
1446         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1447         (V16SF_FTYPE_V16SI): Ditto.
1448         (V4DI_FTYPE_V4DI): Ditto.
1449         (V16SI_FTYPE_V16SF): Ditto.
1450         (V16SF_FTYPE_FLOAT): Ditto.
1451         (V8DF_FTYPE_DOUBLE): Ditto.
1452         (V8DI_FTYPE_INT64): Ditto.
1453         (V8DI_FTYPE_V4DI): Ditto.
1454         (V16QI_FTYPE_V8DI): Ditto.
1455         (UINT_FTYPE_V4SF): Ditto.
1456         (UINT64_FTYPE_V4SF): Ditto.
1457         (UINT_FTYPE_V2DF): Ditto.
1458         (UINT64_FTYPE_V2DF): Ditto.
1459         (V16SI_FTYPE_V16SI): Ditto.
1460         (V8DI_FTYPE_V8DI): Ditto.
1461         (V16SI_FTYPE_PV4SI): Ditto.
1462         (V16SF_FTYPE_PV4SF): Ditto.
1463         (V8DI_FTYPE_PV2DI): Ditto.
1464         (V8DF_FTYPE_PV2DF): Ditto.
1465         (V4DI_FTYPE_PV2DI): Ditto.
1466         (V4DF_FTYPE_PV2DF): Ditto.
1467         (V16SI_FTYPE_PV2SI): Ditto.
1468         (V16SF_FTYPE_PV2SF): Ditto.
1469         (V8DI_FTYPE_PV4DI): Ditto.
1470         (V8DF_FTYPE_PV4DF): Ditto.
1471         (V8SF_FTYPE_FLOAT): Ditto.
1472         (V4SF_FTYPE_FLOAT): Ditto.
1473         (V4DF_FTYPE_DOUBLE): Ditto.
1474         (V8SF_FTYPE_PV4SF): Ditto.
1475         (V8SI_FTYPE_PV4SI): Ditto.
1476         (V4SI_FTYPE_PV2SI): Ditto.
1477         (V8SF_FTYPE_PV2SF): Ditto.
1478         (V8SI_FTYPE_PV2SI): Ditto.
1479         (V16SF_FTYPE_PV8SF): Ditto.
1480         (V16SI_FTYPE_PV8SI): Ditto.
1481         (V8DI_FTYPE_V8SF): Ditto.
1482         (V4DI_FTYPE_V4SF): Ditto.
1483         (V2DI_FTYPE_V4SF): Ditto.
1484         (V64QI_FTYPE_QI): Ditto.
1485         (V32HI_FTYPE_HI): Ditto.
1486         (V8UHI_FTYPE_V8UHI): Ditto.
1487         (V16UHI_FTYPE_V16UHI): Ditto.
1488         (V32UHI_FTYPE_V32UHI): Ditto.
1489         (V2UDI_FTYPE_V2UDI): Ditto.
1490         (V4UDI_FTYPE_V4UDI): Ditto.
1491         (V8UDI_FTYPE_V8UDI): Ditto.
1492         (V4USI_FTYPE_V4USI): Ditto.
1493         (V8USI_FTYPE_V8USI): Ditto.
1494         (V16USI_FTYPE_V16USI): Ditto.
1495         (V2DF_FTYPE_V2DF_UINT64): Ditto.
1496         (V2DI_FTYPE_V2DF_V2DF): Ditto.
1497         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
1498         (V8DF_FTYPE_V8DF_V8DI): Ditto.
1499         (V4SF_FTYPE_V4SF_UINT64): Ditto.
1500         (V4SI_FTYPE_V4SF_V4SF): Ditto.
1501         (V16SF_FTYPE_V16SF_V16SI): Ditto.
1502         (V64QI_FTYPE_V32HI_V32HI): Ditto.
1503         (V32HI_FTYPE_V16SI_V16SI): Ditto.
1504         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1505         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
1506         (V32HI_FTYPE_V64QI_V64QI): Ditto.
1507         (V32HI_FTYPE_V32HI_V32HI): Ditto.
1508         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
1509         (V16SI_FTYPE_V16SI_V4SI): Ditto.
1510         (V16SI_FTYPE_V16SI_V16SI): Ditto.
1511         (V16SI_FTYPE_V32HI_V32HI): Ditto.
1512         (V16SI_FTYPE_V16SI_SI): Ditto.
1513         (V8DI_FTYPE_V8DI_V8DI): Ditto.
1514         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
1515         (V8DI_FTYPE_V16SI_V16SI): Ditto.
1516         (V8DI_FTYPE_V8DI_V2DI): Ditto.
1517         (QI_FTYPE_QI): Ditto.
1518         (SI_FTYPE_SI): Ditto.
1519         (DI_FTYPE_DI): Ditto.
1520         (QI_FTYPE_QI_QI): Ditto.
1521         (QI_FTYPE_QI_INT): Ditto.
1522         (HI_FTYPE_HI_INT): Ditto.
1523         (SI_FTYPE_SI_INT): Ditto.
1524         (DI_FTYPE_DI_INT): Ditto.
1525         (HI_FTYPE_V16QI_V16QI): Ditto.
1526         (SI_FTYPE_V32QI_V32QI): Ditto.
1527         (DI_FTYPE_V64QI_V64QI): Ditto.
1528         (QI_FTYPE_V8HI_V8HI): Ditto.
1529         (HI_FTYPE_V16HI_V16HI): Ditto.
1530         (SI_FTYPE_V32HI_V32HI): Ditto.
1531         (QI_FTYPE_V4SI_V4SI): Ditto.
1532         (QI_FTYPE_V8SI_V8SI): Ditto.
1533         (QI_FTYPE_V2DI_V2DI): Ditto.
1534         (QI_FTYPE_V4DI_V4DI): Ditto.
1535         (QI_FTYPE_V8DI_V8DI): Ditto.
1536         (HI_FTYPE_V16SI_V16SI): Ditto.
1537         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
1538         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
1539         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
1540         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1541         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1542         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
1543         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
1544         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
1545         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1546         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
1547         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
1548         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
1549         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
1550         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
1551         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1552         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1553         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1554         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1555         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1556         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1557         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1558         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1559         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1560         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1561         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1562         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1563         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1564         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1565         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1566         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1567         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1568         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
1569         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
1570         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
1571         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1572         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1573         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1574         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1575         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1576         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1577         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1578         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1579         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1580         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1581         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1582         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1583         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1584         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1585         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1586         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1587         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1588         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1589         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1590         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1591         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1592         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1593         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1594         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1595         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1596         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1597         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1598         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1599         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1600         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1601         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1602         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1603         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1604         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1605         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1606         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1607         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1608         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1609         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1610         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1611         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1612         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1613         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1614         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1615         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1616         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1617         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1618         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1619         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1620         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1621         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1622         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1623         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1624         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1625         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1626         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1627         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1628         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1629         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1630         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1631         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1632         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1633         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1634         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1635         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1636         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1637         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1638         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1639         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1640         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1641         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1642         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1643         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1644         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
1645         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
1646         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1647         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1648         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1649         (HI_FTYPE_HI): Ditto.
1650         (HI_FTYPE_V16QI): Ditto.
1651         (SI_FTYPE_V32QI): Ditto.
1652         (DI_FTYPE_V64QI): Ditto.
1653         (QI_FTYPE_V8HI): Ditto.
1654         (HI_FTYPE_V16HI): Ditto.
1655         (SI_FTYPE_V32HI): Ditto.
1656         (QI_FTYPE_V4SI): Ditto.
1657         (QI_FTYPE_V8SI): Ditto.
1658         (HI_FTYPE_V16SI): Ditto.
1659         (QI_FTYPE_V2DI): Ditto.
1660         (QI_FTYPE_V4DI): Ditto.
1661         (QI_FTYPE_V8DI): Ditto.
1662         (V16QI_FTYPE_HI): Ditto.
1663         (V32QI_FTYPE_SI): Ditto.
1664         (V64QI_FTYPE_DI): Ditto.
1665         (V8HI_FTYPE_QI): Ditto.
1666         (V16HI_FTYPE_HI): Ditto.
1667         (V32HI_FTYPE_SI): Ditto.
1668         (V4SI_FTYPE_QI): Ditto.
1669         (V4SI_FTYPE_HI): Ditto.
1670         (V8SI_FTYPE_QI): Ditto.
1671         (V8SI_FTYPE_HI): Ditto.
1672         (V2DI_FTYPE_QI): Ditto.
1673         (V4DI_FTYPE_QI): Ditto.
1674         (HI_FTYPE_HI_HI): Ditto.
1675         (SI_FTYPE_SI_SI): Ditto.
1676         (DI_FTYPE_DI_DI): Ditto.
1677         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1678         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1679         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1680         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1681         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1682         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1683         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1684         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1685         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1686         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1687         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1688         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1689         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1690         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1691         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1692         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1693         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1694         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1695         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1696         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1697         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
1698         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
1699         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
1700         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
1701         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
1702         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
1703         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
1704         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
1705         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
1706         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
1707         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
1708         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
1709         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
1710         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
1711         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
1712         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
1713         (V16SI_FTYPE_HI): Ditto.
1714         (V8DI_FTYPE_QI): Ditto.
1715         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1716         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1717         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1718         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1719         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1720         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1721         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1722         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1723         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1724         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1725         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1726         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1727         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1728         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1729         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1730         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
1731         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
1732         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1733         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1734         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1735         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1736         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1737         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1738         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1739         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1740         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
1741         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
1742         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
1743         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1744         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1745         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1746         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1747         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1748         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
1749         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
1750         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
1751         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1752         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1753         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1754         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
1755         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1756         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1757         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
1758         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
1759         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1760         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1761         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1762         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1763         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1764         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1765         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1766         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1767         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
1768         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1769         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1770         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1771         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1772         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1773         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1774         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1775         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1776         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1777         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1778         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1779         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1780         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
1781         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
1782         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
1783         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1784         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
1785         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
1786         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
1787         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1788         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
1789         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
1790         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
1791         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
1792         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
1793         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1794         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
1795         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
1796         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1797         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1798         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1799         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1800         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1801         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1802         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1803         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1804         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1805         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1806         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1807         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1808         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1809         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1810         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1811         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1812         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1813         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1814         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1815         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1816         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1817         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1818         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1819         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1820         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1821         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1822         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1823         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1824         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1825         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1826         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1827         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1828         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1829         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1830         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
1831         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
1832         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
1833         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1834         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1835         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1836         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
1837         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1838         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1839         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1840         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1841         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1842         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1843         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1844         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1845         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
1846         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
1847         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
1848         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1849         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1850         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1851         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1852         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1853         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1854         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1855         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1856         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1857         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1858         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1859         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1860         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1861         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1862         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1863         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1864         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1865         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1866         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1867         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1868         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1869         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
1870         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
1871         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
1872         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1873         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1874         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1875         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1876         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1877         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1878         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1879         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1880         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
1881         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1882         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1883         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
1884         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1885         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1886         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
1887         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
1888         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
1889         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1890         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1891         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1892         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1893         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1894         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1895         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1896         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1897         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1898         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1899         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1900         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1901         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1902         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1903         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1904         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1905         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1906         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1907         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1908         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1909         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1910         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1911         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1912         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1913         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1914         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1915         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1916         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1917         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1918         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1919         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1920         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1921         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1922         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1923         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1924         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1925         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1926         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1927         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1928         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1929         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1930         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1931         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1932         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1933         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1934         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1935         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1936         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1937         (QI_FTYPE_V8DF_INT_QI): Ditto.
1938         (QI_FTYPE_V4DF_INT_QI): Ditto.
1939         (QI_FTYPE_V2DF_INT_QI): Ditto.
1940         (HI_FTYPE_V16SF_INT_HI): Ditto.
1941         (QI_FTYPE_V8SF_INT_QI): Ditto.
1942         (QI_FTYPE_V4SF_INT_QI): Ditto.
1943         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1945 2015-07-31  Richard Biener  <rguenther@suse.de>
1947         * gimple-fold.c (fold_gimple_assign): Remove folding of
1948         GIMPLE_BINARY_RHS.
1950 2015-07-31  Tom de Vries  <tom@codesourcery.com>
1952         PR tree-optimization/66846
1953         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
1954         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
1955         (expand_omp_target) [ENABLE_CHECKING]: Same.
1956         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
1957         cfun if !LOOPS_NEED_FIXUP.
1958         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
1959         that omp_for already has its own loop struct.
1960         * tree-parloops.c (create_phi_for_local_result)
1961         (create_call_for_reduction): Handle simple latch bb.
1962         (create_parallel_loop): Add simple latch bb to preserve
1963         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
1964         (gen_parallel_loop): Remove call to cancel_loop_tree.
1965         (parallelize_loops): Skip loops that are inner loops of parallelized
1966         loops.
1967         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
1968         verify_loop_structure.
1970 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
1972         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
1973         * config/v850/v850.md (RV_REGNUM): New constants.
1974         * config/v850/v850.c (v850_libcall_value): New functions.
1975         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
1976         (TARGET_LIBCALL_VALUE): Define.
1978 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
1980         * rtl.h (lowpart_subreg): Move in file.
1981         * loop-iv.c (lowpart_subreg): Move to...
1982         * simplify-rtx.c (lowpart_subreg): ...here.
1983           (simplify_binary_operation_1): Use lowpart_subreg instead of
1984           simplify_gen_subreg.
1985         * expr.c (expand_expr_real_2): Ditto.
1986         * emit-rtl.c (gen_lowpart_common): Ditto.
1987         * combine.c (gen_lowpart_for_combine): Ditto.
1988         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
1989           expand_debug_source_expr): Ditto.
1991 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
1993         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
1994         (expand_builtin_atomic_clear): Remove support for atomic_clear
1995         pattern.
1997 2015-07-30  Richard Biener  <rguenther@suse.de>
1999         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
2000         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
2001         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
2002         redundant operand canonicalization.
2004 2015-07-30  David Sherwood  <david.sherwood@arm.com>
2006         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
2007         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
2008         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
2009         * config/arm/arm.c (neon_valid_immediate): Likewise.
2010         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
2011         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
2012         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
2013         (expand_vec_perm_vpshufb2_vpermq): Likewise.
2014         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
2015         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
2016         * config/i386/sse.md
2017         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
2018         (*ssse3_palignr<mode>_perm): Likewise.
2019         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
2020         * config/spu/spu.c (arith_immediate_p): Likewise.
2021         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2022         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
2024 2015-07-30  Richard Biener  <rguenther@suse.de>
2026         * genmatch.c (decision_tree::gen_gimple): Merge with ...
2027         (decision_tree::gen_generic): ... this into ...
2028         (decision_tree::gen): ... this.
2029         (main): Adjust callers.
2031 2015-07-30  Richard Biener  <rguenther@suse.de>
2033         * genmatch.c (verbose): New global.
2034         (warning_at): Add overload with source_location.
2035         (capture_info::capture_info): Add bool whether generating gimple
2036         or generic.  Add gimple member.
2037         (capture_info::cinfo): Add capture member.
2038         (capture_info::walk_match): Record capture.  Warn on
2039         non-captured leafs.
2040         (capture_info::walk_c_expr): Add more fragments captures cannot
2041         escape through.  Warn on escaped captures.
2042         (dt_simplify::gen_1): Warn on operands we force to have no
2043         side-effects.
2044         (main): Initialize verbose.
2045         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
2047 2015-07-30  Richard Biener  <rguenther@suse.de>
2049         PR middle-end/67053
2050         * match.pd: Allow both operands to independently have conversion
2051         when simplifying compares of addresses.
2053 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
2055         PR target/66217
2056         PR target/67045
2057         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
2058         around those cases that need one.
2060 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
2062         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
2064 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
2066         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2067         New.  Copied from config/i386/gnu-user.h.
2068         (ASM_COMMENT_START): Likewise.
2069         (DBX_REGISTER_NUMBER): Likewise.
2071 2015-07-29  Richard Biener  <rguenther@suse.de>
2073         * gimple-fold.c (fold_gimple_cond): Remove.
2074         (fold_stmt_1): Do not call it.
2076 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
2078         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
2079         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
2081         * config/aarch64/aarch64-modes.def: Add HFmode.
2083         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2084         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
2086         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
2087         aarch64_promoted_type): New.
2089         (aarch64_float_const_representable_p): Disable HFmode.
2090         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
2091         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
2092         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
2094         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
2095         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
2097         * config/aarch64/iterators.md (GPF_F16): New.
2099 2015-07-29  Richard Biener  <rguenther@suse.de>
2101         * match.pd: Merge address comparison patterns and make them
2102         handle some more cases.
2104 2015-07-29  Richard Biener  <rguenther@suse.de>
2106         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
2107         (parser::parse_capture): Add bool argument on whether to reject
2108         unknown captures.
2109         (parser::parse_expr): Adjust.
2110         (parser::parse_op): Likewise.
2111         (parser::parse_pattern): Likewise.
2113 2015-07-29  Richard Biener  <rguenther@suse.de>
2115         * gimple-fold.c (has_use_on_stmt): New function.
2116         (replace_stmt_with_simplification): Use it to allow
2117         abnormals originally referenced in the stmt.
2118         (fold_stmt_1): Canonicalize operand order.
2120 2015-07-28  David Sherwood  <david.sherwood@arm.com>
2122         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
2123         GET_MODE_INNER unconditionally.
2124         * config/spu/spu.c (arith_immediate_p): Likewise.
2125         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
2126         * expmed.c (synth_mult): Remove check for VOIDmode result from
2127         GET_MODE_INNER.
2128         (expand_mult_const): Likewise.
2129         * fold-const.c (fold_binary_loc): Replace call to element_precision
2130         with call to GET_MODE_PRECISION.
2131         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
2132         m->name.
2133         (emit_mode_inner): Likewise.
2134         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
2135         result check.
2136         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
2137         (GET_MODE_UNIT_PRECISION): Likewise.
2138         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
2139         * simplify-rtx.c (simplify_immed_subreg): Likewise.
2140         * stor-layout.c (bitwise_type_for_mode): Update assert.
2141         (element_precision): Remove.
2143 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
2145         * target-insns.def (reload_load_address): New targetm instruction
2146         pattern.
2147         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
2149 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
2151         * target-insns.def (atomic_test_and_set): New targetm instruction
2152         pattern.
2153         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
2154         HAVE_*/gen_* interface.
2156 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
2158         * target-insns.def (can_extend, ptr_extend): New targetm instruction
2159         patterns.
2160         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
2161         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2162         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
2163         * rtlanal.c (nonzero_bits1): Likewise.
2164         (num_sign_bit_copies1): Likewise.
2166 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
2168         * target-insns.def (eh_return): New targetm instruction pattern.
2169         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
2170         interface.
2171         * function.c (thread_prologue_and_epilogue_insns): Remove
2172         preprocessor condition.
2174 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
2176         * target-insns.def (indirect_jump): New targetm instruction pattern.
2177         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
2178         interface.
2180 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
2182         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
2183         instead of nonimmediate_operand.  Remove C condiition.
2185 2015-07-28  Richard Biener  <rguenther@suse.de>
2187         * match.pd: Add more simplification of address comparisons.
2189 2015-07-28  Richard Biener  <rguenther@suse.de>
2191         * match.pd: Re-order two cases in comparison with max/min
2192         value simplification to make it apply for bools.
2194 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2196         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
2197         Handle simple SIGN_EXTEND or ZERO_EXTEND.
2198         (aarch64_rtx_costs): Properly strip extend or extract before
2199         passing down to rtx costs again.
2201 2015-07-28  Nick Clifton  <nickc@redhat.com>
2203         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
2204         Optimizes the case where -mes0 is active and a constant symbolic
2205         address is used.
2206         * config/rl78/rl78-protos.h: Prototype the new function.
2207         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
2209 2015-07-28  Tom de Vries  <tom@codesourcery.com>
2211         * tree-parloops.c (reduc_stmt_res): New function.
2212         (initialize_reductions, add_field_for_reduction)
2213         (create_phi_for_local_result, create_loads_for_reductions)
2214         (create_stores_for_reduction, build_new_reduction): Handle case that
2215         reduc_stmt is a phi.
2216         (gather_scalar_reductions): Allow double_reduc reductions.
2218 2015-07-28  Richard Biener  <rguenther@suse.de>
2220         * fold-const.c (fold_comparison): Remove equality folding
2221         of decl addresses ...
2222         * match.pd: ... here and merge with existing pattern.
2224 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2226         PR tree-optimization/66828
2227         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
2228         from int64_t to uint64_t.
2230 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2232         * opts-common.c (read_cmdline_option): List DriverOnly enum values
2233         as valid only in the error message of the driver, not in the
2234         messages of the language compilers.
2236 2015-07-27  Tom de Vries  <tom@codesourcery.com>
2238         * tree-parloops.c (gather_scalar_reductions): Simplify function
2239         structure.
2241 2015-07-27  Marek Polacek  <polacek@redhat.com>
2243         * ipa-devirt.c (types_same_for_odr): Fix typo.
2245 2015-07-27  Jason Merrill  <jason@redhat.com>
2247         PR debug/66468
2248         * dwarf2out.c (gen_inlined_subroutine_die): Check
2249         cgraph_function_possibly_inlined_p.
2251 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
2253         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
2254         Place integer variant first.
2255         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2257 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
2259         PR/63870
2260         * config/arm/arm-builtins.c (enum arm_builtins):
2261         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
2262         (ARM_BUILTIN_NEON_BASE): Rename macro to....
2263         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
2264         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
2265         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
2267 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
2269         PR/63870
2270         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
2271         Add qualifier_lane_index.
2272         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
2273         (arm_getlane_qualifiers): Use qualifier_lane_index.
2274         (arm_lanemac_qualifiers): Rename to...
2275         (arm_mac_n_qualifiers): ...this.
2276         (LANEMAC_QUALIFIERS): Rename to...
2277         (MAC_N_QUALIFIERS): ...this.
2278         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
2279         (arm_setlane_qualifiers): Use qualifier_lane_index.
2280         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
2281         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
2282         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
2283         (arm_expand_neon_builtin): Handle qualifier_lane_index.
2285         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
2286         * config/arm/arm.c (bounds_check): Likewise, improve error message.
2287         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
2288         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
2289         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
2290         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
2291         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
2292         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
2293         qualifiers to TERNOP_IMM.
2294         (vdup_lane): Change qualifiers to GETLANE.
2295         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
2296         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
2297         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
2298         vqdmlsl_n): Change qualifiers to MAC_N.
2300         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
2301         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
2302         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
2303         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
2304         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
2305         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
2306         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
2307         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
2308         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
2309         Remove call to neon_lane_bounds.
2311 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
2313         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2314         Place integer variant first.
2316 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
2318         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
2319         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
2320         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
2321         for armv6kz targets.
2322         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
2323         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
2324         (FL_FOR_ARCH6ZK): Remove.
2325         (FL_FOR_ARCH6KZ): New.
2326         (arm_arch6zk): New declaration.
2327         * config/arm/arm-tables.opt: Regenerate.
2328         * config/arm/arm.c (arm_arch6kz): New.
2329         (arm_option_override): Set arm_arch6kz.
2330         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
2331         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
2332         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
2334 2015-07-27  Marek Polacek  <polacek@redhat.com>
2336         PR c++/66555
2337         PR c/54979
2338         * doc/invoke.texi: Document -Wtautological-compare.
2340 2015-07-27  Richard Biener  <rguenther@suse.de>
2342         * genmatch.c (decision_tree::gen_gimple): Split out large
2343         subtrees into separate functions.
2344         (decision_tree::gen_generic): Likewise.
2346 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
2348         * config/alpha/alpha.c: Use SUBREG_P predicate.
2349         * config/alpha/predicates.md: Ditto.
2351 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2353         * config.host (s390*-*-*): Include driver-native.c only when
2354         building with s390* as host *and* target.
2356 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
2358         PR target/66930
2359         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
2360         T bit register modified_between_p check.
2362 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
2364         * config/i386/i386.c: Use SUBREG_P predicate.
2365         * config/i386/i386.md: Ditto.
2366         * config/i386/sse.md: Ditto.
2367         * config/i386/predicates.md: Ditto.
2369 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
2371         PR target/67004
2372         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
2373         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
2375 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
2377         * Makefile.in: Remove use of TREEBROWSER.
2378         * config.in: Regenerated.
2379         * configure: Regenerated.
2380         * configure.ac: Remove definition of TREEBROWSER.
2381         * tree-browser.c: Removed.
2382         * tree-browser.def: Removed.
2384 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
2386         * graphite-scop-detection.c: Include gimple-pretty-print.h.
2387         (stmt_simple_for_scop_p): Print when a stmt is not handled in
2388         Graphite.
2389         (scopdet_basic_block_info): Print when a loop or bb cannot be
2390         represented in Graphite.
2392 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
2394         PR target/66648
2395         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
2396         execution guard when min_size is less than size_needed.
2398 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
2400         * doc/install.texi: Document supported versions of ISL.
2402 2015-07-25  Jeff Law  <law@redhat.com>
2404         Revert:
2405         PR lto/66752
2406         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2407         unable to find X NE 0 in the tables, return X as the simplified
2408         condition.
2409         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2410         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
2411         to VISISTED_BBS.  */
2412         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2413         after removing the control flow statement and unnecessary edges.
2415 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
2417         Revert:
2418         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
2420         PR rtl-optimization/64164
2421         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2422         * tree-ssa-copyrename.c: Removed.
2423         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2424         -ftree-coalesce-vars.
2425         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2426         * common.opt (ftree-copyrename): Ignore.
2427         (ftree-coalesce-inlined-vars): Likewise.
2428         * doc/invoke.texi: Remove the ignored options above.
2429         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2430         * tree-ssa-coalesce.h: ... here.
2431         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2432         headers required by it.
2433         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2434         across variables when flag_tree_coalesce_vars.  Check register
2435         use and promoted modes to allow coalescing.  Moved to
2436         tree-ssa-coalesce.c.
2437         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2438         with its member functions to tree-ssa-coalesce.c.
2439         (var_map_base_init): Likewise.  Renamed to
2440         compute_samebase_partition_bases.
2441         (partition_view_normal): Drop want_bases parameter.
2442         (partition_view_bitmap): Likewise.
2443         * tree-ssa-live.h: Adjust declarations.
2444         * tree-ssa-coalesce.c: Include explow.h.
2445         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2446         default defs at the entry point.
2447         (dump_part_var_map): New.
2448         (compute_optimized_partition_bases): New, called by...
2449         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2450         of compute_samebase_partition_bases.  Adjust.
2451         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2452         * cfgexpand.c (leader_merge): New.
2453         (get_rtl_for_parm_ssa_default_def): New.
2454         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2455         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2456         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2457         redundant MEM attr setting.
2458         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2459         from...
2460         (expand_one_stack_var): ... this.  New wrapper to check and
2461         skip already expanded SSA partitions.
2462         (record_alignment_for_reg_var): New, factored out of...
2463         (expand_one_var): ... this.
2464         (expand_one_ssa_partition): New.
2465         (adjust_one_expanded_partition_var): New.
2466         (expand_one_register_var): Check and skip already expanded SSA
2467         partitions.
2468         (expand_used_vars): Don't create DECLs for anonymous SSA
2469         names.  Expand all SSA partitions, then adjust all SSA names.
2470         (pass::execute): Replace the loops that set
2471         SA.partition_to_pseudo from partition leaders and cleared
2472         DECL_RTL for multi-location variables, and that which used to
2473         rename vars and set attrs, with one that clears DECL_RTL and
2474         checks that PARMs and RESULTs default_defs match DECL_RTL.
2475         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2476         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2477         * explow.c (promote_ssa_mode): New.
2478         * explow.h (promote_ssa_mode): Declare.
2479         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2480         * function.c: Include cfgexpand.h.
2481         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2482         (use_register_for_parm_decl): Wrapper for the above to
2483         special-case the result_ptr.
2484         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2485         (split_complex_args): Take assign_parm_data_all argument.
2486         Pass it to rtl_for_parm.  Set up rtl and context for split
2487         args.
2488         (assign_parms_augmented_arg_list): Adjust.
2489         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2490         multiple locations.  Recognize split complex args.
2491         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2492         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2493         (assign_parm_setup_block): Prefer SSA-assigned location.
2494         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2495         if stack_parm is NULL.
2496         (assign_parm_setup_stack): Prefer SSA-assigned location.
2497         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2498         rtl before testing for pointer bounds.  Special-case result_ptr.
2499         (expand_function_start): Maybe reset DECL_RTL of result.
2500         Prefer SSA-assigned location for result and static chain.
2501         Factor out DECL_RESULT and SET_DECL_RTL.
2502         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2503         anonymous SSA names.  Use promote_ssa_mode.
2504         (get_temp_reg): Likewise.
2505         (remove_ssa_form): Adjust.
2506         * stor-layout.c (layout_decl): Don't set mem attributes of
2507         non-MEMs.
2508         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2509         and get its reg_usage for reg invalidation.
2510         (compute_bb_dataflow): Pass it insn.
2511         (emit_notes_in_bb): Likewise.
2513 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
2515         * config/i386/i386.c (ix86_va_start): Remove
2516         unneeded !TARGET_64BIT check.
2517         (ix86_gimplify_va_arg): Ditto.
2519 2015-07-24  Tom de Vries  <tom@codesourcery.com>
2521         * graphite-sese-to-poly.c (build_poly_scop): Always call
2522         rewrite_commutative_reductions_out_of_ssa.
2524 2015-07-24  Tom de Vries  <tom@codesourcery.com>
2526         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
2527         flag_associative_math to FLOAT_TYPE_P.  Honour
2528         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
2530 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2532         PR c++/64079
2533         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
2534         and "%qD" in warning_at instead of "%q+D" in warning.
2536 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
2538         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
2539         (ix86_function_abi): Cleanup.
2541 2015-07-24  Michael Darling  <darlingm@gmail.com>
2543         PR other/66259
2544         * acinclude.m4: Reflects renaming of configure.in to configure.ac
2545         * configure: Likewise
2546         * configure.ac: Likewise
2547         * doc/install.texi: Likewise
2548         * doc/tm.texi: Likewise
2549         * doc/tm.texi.in: Likewise
2551 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2553         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
2554         manually swapping values.
2555         * cse.c (fold_rtx): Likewise.
2556         * lra-eliminations.c (form_sum): Likewise.
2558 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
2560         PR target/64003
2561         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
2562         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
2563         (*jcc_1, *jcc_2, jump, simple_return_internal)
2564         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
2565         Set length_nobnd attribute instead of length attribute.
2566         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
2567         (length_nobnd): Remove attribute.
2568         (length): Remove length_nobnd processing.
2570 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
2572         * gimplify.c (omp_default_clause): New function.  Reorganize flow
2573         for clarity. Broken out of ...
2574         (omp_notice_variable): ... here.
2576 2015-07-24  Gary Funck  <gary@intrepid.com>
2578         PR middle-end/66984
2579         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2580         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2582 2015-07-24  Tom de Vries  <tom@codesourcery.com>
2584         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2585         exit-first loop transform.
2587 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
2589         PR 66714
2590         * tree-cfg.c (struct replace_decls_d): New struct.
2591         (replace_block_vars_by_duplicates_1): New function.
2592         (replace_block_vars_by_duplicates): Use it to replace the decls
2593         in the value exprs by duplicates.
2595 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2597         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2598         -shared, -symbolic, -rdynamic.
2600 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2602         PR target/65711
2603         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2604         -dynamic-linker within %{!static %{!shared, and -rdynamic within
2605         %{!static.
2607 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
2609         PR ipa/66566
2610         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2611         edge summary is available.
2613 2015-07-24  Richard Biener  <rguenther@suse.de>
2615         * genmatch.c (struct dt_node): Add statistic fields.
2616         (dt_node::analyze): New method.
2617         (decision_tree::gen_gimple): Call analyze on the root node
2618         and print statistics to stderr.
2619         (decision_tree::gen_generic): Likewise.
2621 2015-07-24  Richard Biener  <rguenther@suse.de>
2623         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2624         against the highest or lowest possible integer ...
2625         * match.pd: ... as patterns here.
2627 2015-07-24  Richard Biener  <rguenther@suse.de>
2629         * genmatch.c (struct capture_info): Add same_as field.
2630         (capture_info::capture_info): Initialize same_as.
2631         (capture_info::walk_match): Compute same_as.
2632         (capture_info::walk_result): Compute stuff for the leader.
2633         (capture_info::walk_c_expr): Likewise.
2634         (dt_simplify::gen_1): Only look at leaders when deciding
2635         to force no side-effects or emit side-effects of omitted operands.
2637 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2639         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2640         reg note to the GPR -> FPR save instructions.
2642 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2644         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
2645         cheaper.
2646         (s390_expand_insv): Don't generate risbg pattern for constant zero
2647         sources.
2648         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
2649         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
2650         splitters.
2652 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2654         * config/s390/s390.c (s390_reorg): Clean up handling of processors
2655         with
2656         -mtune=
2657         (s390_issue_rate): Likewise.
2658         (s390_sched_reorder): Likewise.
2659         (s390_sched_variable_issue): Likewise.
2660         (s390_loop_unroll_adjust): Likewise.
2661         (s390_option_override):  Likewise.
2663 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2665         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
2666         processor capabilities with -march=native.
2667         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
2668         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
2669         (S390_TARGET_BITS_STRING): Macro to simplify specs.
2671 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2673         * config/s390/s390.c (s390_issue_rate): Handle
2674         PROCESSOR_2094_Z9_EC.
2675         (s390_option_override): Likewise.
2676         (s390_adjust_priority): Likewise.
2678 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2680         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
2681         when cross compiling.
2683 2015-07-24  Richard Biener  <rguenther@suse.de>
2685         * fold-const.c (maybe_canonicalize_comparison_1): Move
2686         A code CST canonicalization ...
2687         * match.pd: ... to a pattern here.
2689 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
2691         Revert:
2692         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
2693         PR target/63521
2694         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2695         (HONOR_REG_ALLOC_ORDER): Define.
2697 2015-07-24  Richard Biener  <rguenther@suse.de>
2699         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
2700         * fold-const.c (fold_comparison): Move parameter does not
2701         alias &local simplification ...
2702         * match.pd: ... as a pattern here.
2704 2015-07-24  Richard Biener  <rguenther@suse.de>
2706         * gimple-fold.c (replace_stmt_with_simplification): Special-case
2707         valueizing call operands.
2708         * gimple-match-head.c (maybe_push_res_to_seq): Take
2709         number of call arguments from ops array.
2710         (do_valueize): New function.
2711         (gimple_simplify): Return true if valueization changed
2712         any operand even if the result didn't simplify further.
2714 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2716         PR middle-end/25530
2717         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
2719 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2721         PR middle-end/25529
2722         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
2724 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2726         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
2727         instruction.
2729 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2731         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
2732         clean up.
2734 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
2736         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
2737         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
2738         targets here.
2739         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
2740         ms_va_list_type_node initialization.
2742 2015-07-23  Jeff Law  <law@redhat.com>
2744         PR lto/66752
2745         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2746         unable to find X NE 0 in the tables, return X as the simplified
2747         condition.
2748         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2749         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
2750         to VISISTED_BBS.  */
2751         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2752         after removing the control flow statement and unnecessary edges.
2754 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2756         * tree-pass.h (get_current_pass_name): Removed.
2758 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
2760         PR rtl-optimization/64164
2761         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2762         * tree-ssa-copyrename.c: Removed.
2763         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2764         -ftree-coalesce-vars.
2765         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2766         * common.opt (ftree-copyrename): Ignore.
2767         (ftree-coalesce-inlined-vars): Likewise.
2768         * doc/invoke.texi: Remove the ignored options above.
2769         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2770         * tree-ssa-coalesce.h: ... here.
2771         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2772         headers required by it.
2773         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2774         across variables when flag_tree_coalesce_vars.  Check register
2775         use and promoted modes to allow coalescing.  Moved to
2776         tree-ssa-coalesce.c.
2777         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2778         with its member functions to tree-ssa-coalesce.c.
2779         (var_map_base_init): Likewise.  Renamed to
2780         compute_samebase_partition_bases.
2781         (partition_view_normal): Drop want_bases parameter.
2782         (partition_view_bitmap): Likewise.
2783         * tree-ssa-live.h: Adjust declarations.
2784         * tree-ssa-coalesce.c: Include explow.h.
2785         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2786         default defs at the entry point.
2787         (dump_part_var_map): New.
2788         (compute_optimized_partition_bases): New, called by...
2789         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2790         of compute_samebase_partition_bases.  Adjust.
2791         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2792         * cfgexpand.c (leader_merge): New.
2793         (get_rtl_for_parm_ssa_default_def): New.
2794         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2795         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2796         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2797         redundant MEM attr setting.
2798         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2799         from...
2800         (expand_one_stack_var): ... this.  New wrapper to check and
2801         skip already expanded SSA partitions.
2802         (record_alignment_for_reg_var): New, factored out of...
2803         (expand_one_var): ... this.
2804         (expand_one_ssa_partition): New.
2805         (adjust_one_expanded_partition_var): New.
2806         (expand_one_register_var): Check and skip already expanded SSA
2807         partitions.
2808         (expand_used_vars): Don't create DECLs for anonymous SSA
2809         names.  Expand all SSA partitions, then adjust all SSA names.
2810         (pass::execute): Replace the loops that set
2811         SA.partition_to_pseudo from partition leaders and cleared
2812         DECL_RTL for multi-location variables, and that which used to
2813         rename vars and set attrs, with one that clears DECL_RTL and
2814         checks that PARMs and RESULTs default_defs match DECL_RTL.
2815         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2816         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2817         * explow.c (promote_ssa_mode): New.
2818         * explow.h (promote_ssa_mode): Declare.
2819         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2820         * function.c: Include cfgexpand.h.
2821         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2822         (use_register_for_parm_decl): Wrapper for the above to
2823         special-case the result_ptr.
2824         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2825         (split_complex_args): Take assign_parm_data_all argument.
2826         Pass it to rtl_for_parm.  Set up rtl and context for split
2827         args.
2828         (assign_parms_augmented_arg_list): Adjust.
2829         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2830         multiple locations.  Recognize split complex args.
2831         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2832         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2833         (assign_parm_setup_block): Prefer SSA-assigned location.
2834         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2835         if stack_parm is NULL.
2836         (assign_parm_setup_stack): Prefer SSA-assigned location.
2837         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2838         rtl before testing for pointer bounds.  Special-case result_ptr.
2839         (expand_function_start): Maybe reset DECL_RTL of result.
2840         Prefer SSA-assigned location for result and static chain.
2841         Factor out DECL_RESULT and SET_DECL_RTL.
2842         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2843         anonymous SSA names.  Use promote_ssa_mode.
2844         (get_temp_reg): Likewise.
2845         (remove_ssa_form): Adjust.
2846         * stor-layout.c (layout_decl): Don't set mem attributes of
2847         non-MEMs.
2848         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2849         and get its reg_usage for reg invalidation.
2850         (compute_bb_dataflow): Pass it insn.
2851         (emit_notes_in_bb): Likewise.
2853 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
2855         PR target/66217
2856         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
2857         prototype.
2858         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
2859         (rs6000_emit_2insn_and): Handle dot forms.
2860         * config/rs6000/rs6000.md (and<mode>3): Adjust.
2861         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
2862         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
2864 2015-07-23  Richard Biener  <rguenther@suse.de>
2866         * generic-match-head.c: Include cgraph.h.
2867         * gimple-match-head.c: Likewise.
2868         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
2869         SSA names.
2870         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
2871         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
2872         pattern.
2874 2015-07-23  Richard Biener  <rguenther@suse.de>
2876         * gimple-fold.c (fold_gimple_cond): Do not require folding
2877         results to pass valid_gimple_rhs_p.
2878         * tree-cfg.h (fold_cond_expr_cond): Remove.
2879         * tree-cfg.c (fold_cond_expr_cond): Likewise.
2880         (make_edges): Do not call it.
2881         * tree-inline.c (tree_function_versioning): Likewise.
2883 2015-07-23  Tom de Vries  <tom@codesourcery.com>
2885         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
2886         vect_force_simple_reduction.
2887         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
2888         (vect_is_simple_reduction_1): Add and handle
2889         need_wrapping_integral_overflow parameter.
2890         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2891         need_wrapping_integral_overflow parameter.
2892         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2893         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2894         decl.
2896 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
2898         PR tree-optimization/66926,66951
2899         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2900         INNER_LOOP and fix up condition for renaming virtual operands.
2902 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2904         * combine.c (try_combine): Use std::swap instead of manually
2905         swapping.
2907 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
2909         * config/mips/i6400.md: New file.
2910         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2911         (mips64r6): Likewise.
2912         (i6400): Define.
2913         * config/mips/mips-tables.opt: Regenerate.
2914         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2915         (mips_issue_rate): Add support for i6400.
2916         (mips_multipass_dfa_lookahead): Likewise.
2917         * config/mips/mips.h (TUNE_I6400): Define.
2918         * config/mips/mips.md: Include i6400.md.
2919         (processor): Add i6400.
2920         * doc/invoke.texi (-march=@var{arch}): Add i6400.
2922 2015-07-23  Richard Biener  <rguenther@suse.de>
2924         PR middle-end/66916
2925         * match.pd: Guard widen and sign-change comparison simplification
2926         with single_use.
2928 2015-07-23  Richard Biener  <rguenther@suse.de>
2930         PR tree-optimization/66945
2931         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2932         ::before_dom_children): Force the propagators idea of
2933         non-executable edges to materialize, not what the folder
2934         chooses.
2936 2015-07-23  Richard Biener  <rguenther@suse.de>
2938         * gimple.h (gimple_cond_make_false): Use 0 != 0.
2939         (gimple_cond_make_true): Use 1 != 0.
2941 2015-07-22  DJ Delorie  <dj@redhat.com>
2943         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2944         slashes.
2946         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2947         (ashrhi3): Likewise.
2948         (lshrhi3): Likewise.
2949         (movhi): Take advantage of zero-extend to load small constants.
2950         (movpsi): Likewise.
2951         (and<mode>3): Likewise.
2952         (zero_extendqihi2): Likewise.
2953         (zero_extendqisi2): New.
2954         * config/msp430/constraints.md (N,O): New.
2955         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
2957 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
2959         PR target/66954
2960         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
2961         to enum feature_priority and feature_list.
2962         (fold_builtin_cpu): Add F_AES to enum processor_features
2963         and isa_names_table.
2965 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
2967         PR driver/66737
2968         * config/i386/linux-common.h (MPX_SPEC): Use linker option
2969         for 64bit target only.
2971 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
2973         * config/nvptx/nvptx.c: Expand some comments.
2975 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
2977         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
2978         (cortex_a53_advsimd): ...This.
2980 2015-07-22  Richard Biener  <rguenther@suse.de>
2982         * genmatch.c (expr::gen_transform): Clarify error message
2983         and display location.
2985 2015-07-22  Richard Biener  <rguenther@suse.de>
2987         * genmatch.c (struct operand): Add location member.
2988         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
2989         constructors.
2990         (struct simplify): Remove match_location and result_location
2991         members.
2992         (elsehwere): Adjust.
2994 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
2996         * config/mips/m5100.md: New file.
2997         * config/mips/mips-cpus.def (m5100, m5101): Define.
2998         * config/mips/mips-tables.opt: Regenerate.
2999         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
3000         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
3001         -march=m5101 to -mips32r5.
3002         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
3003         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
3004         !-msoft-float.
3005         * config/mips/mips.md: Include m5100.md.
3006         (processor): Add m5100.
3007         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
3009 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
3011         * config/mips/mips-cpus.def (interaptiv): Define.
3012         * config/mips/mips-tables.opt: Regenerate.
3013         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
3014         -mips32r2.
3015         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
3016         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
3018 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
3020         PR target/63521
3021         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
3022         (HONOR_REG_ALLOC_ORDER): Define.
3024 2015-07-22  Richard Biener  <rguenther@suse.de>
3026         PR tree-optimization/66952
3027         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
3028         blocks we end up executing unconditionally reset all SSA
3029         info such as range and alignment.
3030         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
3031         * tree-ssanames.c (reset_flow_sensitive_info): New function.
3033 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
3035         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
3036         typo in attribute.
3038 2015-07-22  Richard Biener  <rguenther@suse.de>
3040         * genmatch.c (parser::parse_result): Properly handle
3041         match with result operands and conditions.
3043 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
3045         PR target/63870
3046         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3047         Add qualifier_struct_load_store_lane_index.
3048         (aarch64_types_loadstruct_lane_qualifiers): Use
3049         qualifier_struct_load_store_lane_index for lane index argument for
3050         last argument.
3051         (aarch64_types_storestruct_lane_qualifiers): Ditto.
3052         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3053         (aarch64_simd_expand_args): Add new argument describing mode of
3054         builtin. Check lane bounds for arguments with
3055         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3056         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
3057         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3058         (aarch64_simd_expand_builtin): Handle arguments with
3059         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
3060         aarch64_simd_expand_args.
3061         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
3062         vst[234]_lane with BUILTIN_VALLDIF.
3063         * config/aarch64/aarch64-simd.md:
3064         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
3065         endianness reversal on lane index.
3066         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
3067         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
3068         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
3069         (vec_store_lanesci_lane<mode>): Ditto.
3070         (vec_store_lanesxi_lane<mode>): Ditto.
3071         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
3072         reversal of lane index.
3073         (aarch64_ld3_lane<mode>): Ditto.
3074         (aarch64_ld4_lane<mode>): Ditto.
3075         (aarch64_st2_lane<mode>): Ditto.
3076         (aarch64_st3_lane<mode>): Ditto.
3077         (aarch64_st4_lane<mode>): Ditto.
3078         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
3079         to qmode. Add new mode parameter. Update uses.
3080         (__LD3_LANE_FUNC): Ditto.
3081         (__LD4_LANE_FUNC): Ditto.
3082         (__ST2_LANE_FUNC): Ditto.
3083         (__ST3_LANE_FUNC): Ditto.
3084         (__ST4_LANE_FUNC): Ditto.
3086 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
3088         * doc/invoke.texi (Language Independent Options): Rename node to
3089         Diagnostic Message Formatting Options.
3091 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
3093         PR ipa/66424.
3094         * lra-remat.c (operand_to_remat): Prevent using insns with input
3095         subregs processed separately by IRA.
3097 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
3099         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
3100         straight loops.
3101         (single_imm_use): Check for iterator node.
3102         (num_imm_uses): Likewise.
3103         * tree-ssa-operands.c (has_zero_uses_1): Delete.
3104         (single_imm_use_1): Check for iterator node.
3106 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
3107             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3109         * configure.ac: Add check for new options in isl-0.15.
3110         * config.in, configure: Rebuilt.
3111         * graphite-blocking.c: Include <isl/constraint.h>
3112         * graphite-interchange.c,  graphite-poly.c: Likewise.
3113         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
3114         * graphite.c: Likewise.
3115         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
3116         <isl/union_set.h>.
3117         * graphite-dependences.c: Include <isl/constraint.h>.
3118         (max_number_of_out_dimensions): Returns isl_stat.
3119         (extend_schedule_1): Likewise
3120         (extend_schedule): Corresponding changes.
3121         * graphite-optimize-isl.c: Include <isl/constraint.h> and
3122         <isl/union_set.h>.
3123         (getSingleMap): Change return type of isl_stat.
3124         (optimize_isl): Conditionally use
3125         isl_options_set_schedule_serialize_sccs.
3126         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
3127         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
3129 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
3131         PR target/66956
3132         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
3133         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
3135 2015-07-21  Richard Biener  <rguenther@suse.de>
3137         PR tree-optimization/66948
3138         * genmatch.c (capture_info::walk_match): Also recurse to
3139         captures.  Properly compute expr state from captures of
3140         captures.
3141         * match.pd: Add single-use guards to
3142         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
3144 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
3146         * config/nvptx/mkoffload.c (process): Add static destructor call.
3148 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3150         PR middle-end/66915
3151         * match.pd (A - B -> A + (-B)): Don't allow folding
3152         when type if a fixed-point type.
3154 2015-07-20  DJ Delorie  <dj@redhat.com>
3156         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
3157         (iorqi3_real): Likewise for set1.
3159 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
3161         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
3162         for !TARGET_64BIT.
3164 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
3166         * graphite-isl-ast-to-gimple.c:
3167         Refactor so that each function can access 'region'. This will help
3168         maintain a parameter rename_map within a region.
3170 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
3172         * config/rs6000/rs6000.md (*lt0_disi): New.
3174 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
3176         PR target/66217
3177         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
3178         "available letters" comment.
3179         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
3180         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
3181         and_2rld_operand):  Delete.
3182         (and_operand): Adjust.
3183         (rotate_mask_operator): New.
3184         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
3185         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
3186         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
3187         extract_ME): Delete.
3188         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
3189         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
3190         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
3191         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
3192         rs6000_emit_2insn_and): New.
3193         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
3194         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
3195         includes_rldic_lshift_p, includes_rldicr_lshift_p,
3196         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
3197         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
3198         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
3199         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
3200         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
3201         rs6000_emit_2insn_and): New.
3202         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
3203         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
3204         handling.
3205         <NOT>: Don't fall through to next case.
3206         <AND>: Handle the various rotate-and-mask cases directly.
3207         <IOR>: Always cost as one insn.
3208         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
3209         (and<mode>3): Adjust expander for the new patterns.
3210         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
3211         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
3212         (*and<mode>3_imm_dot_shifted): New.
3213         (*and<mode>3_mask): Delete, rewrite as ...
3214         (and<mode>3_mask): ... New.
3215         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
3216         (andsi3_internal0_nomc): Delete.
3217         (*andsi3_internal6): Delete.
3218         (*and<mode>3_2insn): New.
3219         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
3220         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
3221         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
3222         *insvdi_internal3): Delete.
3223         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
3224         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
3225         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
3226         *ior<mode>_mask): New.
3227         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
3228         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
3229         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
3230         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
3231         Delete.
3232         (ashr<mode>3): Delete expander.
3233         (*ashr<mode>3): Rename to ...
3234         (ashr<mode>3): ... This.
3235         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
3236         (*rotldi3_internal4, *rotldi3_internal5 and split,
3237         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
3238         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
3239         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
3240         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
3241         (splitter for loading a mask): Adjust.
3242         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
3244 2015-07-20  Marek Polacek  <polacek@redhat.com>
3246         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
3247         output_add_clobbers, output_added_clobbers_hard_reg_p,
3248         gen_rtx_scratch): Remove declarations.
3250 2015-07-20  Marek Polacek  <polacek@redhat.com>
3252         PR c++/55095
3253         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
3255 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3257         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
3258         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
3260 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3262         * combine.c (combine_simplify_rtx): Move simplification step
3263         before various transformations/substitutions.
3265 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
3267         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
3268         (struct int_traits): Likewise.
3270 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3272         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
3273         function to vmsdbgout_function_decl.
3275 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
3277         PR target/66922
3278         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
3279         from misaligned positions.
3280         (ix86_expand_pinsr): Reject insertions to misaligned positions.
3282 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
3284         PR middle-end/46851
3285         PR middle-end/60340
3286         * Makefile.in: Removed omega.o.
3287         * common.opt: Document flag fcheck-data-deps as deprecated.
3288         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
3289         its associated params: omega-max-vars, omega-max-geqs,
3290         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
3291         omega-max-keys, omega-eliminate-redundant-constraints.
3292         * doc/loop.texi: Remove all the section on Omega.
3293         * graphite-blocking.c: Include missing params.h: it used to be
3294         included through tree-data-ref.h and omega.h.
3295         * graphite-isl-ast-to-gimple.c: Same.
3296         * graphite-optimize-isl.c: Same.
3297         * graphite-sese-to-poly.c: Same.
3298         * graphite.c: Same.
3299         * omega.c: Remove.
3300         * omega.h: Remove.
3301         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
3302         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
3303         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
3304         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
3305         * passes.def: Remove pass_check_data_deps.
3306         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
3307         (dump_conflict_function): Same.
3308         (dump_subscript): Same.
3309         (print_direction_vector): Same.
3310         (print_dir_vectors): Same.
3311         (print_lambda_vector): Same.
3312         (print_dist_vectors): Same.
3313         (dump_data_dependence_relation): Same.
3314         (dump_data_dependence_relations): Same.
3315         (dump_dist_dir_vectors): Same.
3316         (dump_ddrs): Same.
3317         (init_omega_eq_with_af): Removed.
3318         (omega_extract_distance_vectors): Removed.
3319         (omega_setup_subscript): Removed.
3320         (init_omega_for_ddr_1): Removed.
3321         (init_omega_for_ddr): Removed.
3322         (ddr_consistent_p): Removed.
3323         (compute_affine_dependence): Do not use omega to check data
3324         dependences.
3325         (compute_data_dependences_for_bb): Removed.
3326         (analyze_all_data_dependences): Removed.
3327         (tree_check_data_deps): Removed.
3328         * tree-data-ref.h: Do not include omega.h.
3329         (compute_data_dependences_for_bb): Removed.
3330         (tree_check_data_deps): Removed.
3331         * tree-ssa-loop.c (pass_check_data_deps): Removed.
3332         (make_pass_check_data_deps): Removed.
3333         * tree-ssa-phiopt.c: Include params.h.
3334         * tree-vect-data-refs.c: Same.
3335         * tree-vect-slp.c: Same.
3337 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
3339         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
3340         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
3341         (mem->fpreg splitters): Ditto.
3342         (general_operand->nonimmediate_operand splitter): Use explicit modes.
3343         Disable DFmode for TARGET_64BIT.
3345 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
3347         PR target/66906
3348         * config/i386/i386.c (ix86_expand_prologue): Replicate static
3349         chain on the stack.
3351 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
3353         * config/nvptx/mkoffload.c (process): Constify host data.
3354         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3355         Constify host data.
3356         (generate_host_descr_file): Likewise.
3358 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
3359             Sebastian Pop  <s.pop@samsung.com>
3361         PR middle-end/61929
3362         * graphite-dependences.c (add_pdr_constraints): Renamed
3363         pdr->extent to pdr->subscript_sizes.
3364         * graphite-interchange.c (build_linearized_memory_access): Add
3365         back all gcc_assert's that the "isl_int to isl_val conversion"
3366         patch has removed.  Refactored.
3367         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
3368         * graphite-poly.c (new_poly_dr): Same.
3369         (free_poly_dr): Same.
3370         * graphite-poly.h (struct poly_dr): Same.
3371         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
3372         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
3373         * graphite-scop-detection.h: Fix space.
3374         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
3375         back all gcc_assert's removed by a previous patch.
3376         (wrap): Remove the_isl_ctx global variable that the same patch has
3377         added.
3378         (build_loop_iteration_domains): Same.
3379         (add_param_constraints): Same.
3380         (pdr_add_data_dimensions): Same.  Refactored.
3381         (build_poly_dr): Renamed extent to subscript_sizes.
3383 2015-07-17  Marek Polacek  <polacek@redhat.com>
3385         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
3386         * match.pd: ... here.
3388 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
3390         * config/nvptx/mkoffload.c (process): Constify target data.
3391         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3392         Constify target data.
3393         (generate_target_offloadend_file): Likewise.
3395 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
3397         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
3398         to allow renaming of PHI arguments on edges incoming from outer
3399         loop header, add corresponding check before start PHI iterator.
3400         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
3401         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
3402         with true force_vectorize.  Set-up dominator for outer loop too.
3403         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
3404         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
3405         was marked with force_vectorize and has restricted cfg.
3406         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
3407         inner loop.
3408         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3409         do peeling for outer loops.
3411 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
3412             Matthias Klose  <doko@ubuntu.com>
3414         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
3415         build-sysroot, sysroot from the `Miscenalleous configure options' to
3416         the `Directories' section and strip trailing `/' from with_sysroot.
3417         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
3418         * configure: Regenerated.
3420 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
3422         PR target/66824
3423         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
3424         (TARGET_HARD_DF_REGS): Ditto.
3425         (TARGET_HARD_XF_REGS): Ditto.
3426         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
3427         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
3428         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
3429         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
3430         (*movsf_internal): Add alternatives 16 and 17. Enable
3431         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
3433 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
3435         PR rtl-optimization/66891
3436         * calls.c (expand_call): Wrap precompute_register_parameters with
3437         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
3439 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
3441         * config/nvptx/mkoffload.c (process): Constify mapping variables.
3442         Define target data struct and initialize it.
3444 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
3446         PR rtl-optimization/66626
3447         * ira.h (emit-rtl.h): Include.
3448         (non_spilled_static_chain_regno_p): New.
3449         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
3450         unless it is non spilled static chain pseudo.
3451         (assign_hard_rego): Spill memory profitable allocno unless it is
3452         non spilled static chain pseudo.
3453         (allocno_spill_priority_compare): Put non spilled static chain
3454         pseudo at the end of sorted array.
3455         (improve_allocation): Do nothing if we have static chain and
3456         non-local goto.
3457         (allocno__priority_compare_func): Put non spilled static chain
3458         pseudo at the beginning of sorted array.
3459         (move_spill_restore): Ignore non spilled static chain pseudo.
3460         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
3461         to non spilled static chain pseudo.
3462         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
3463         pseudo at the beginning of sorted array.
3464         (spill_for): Spill non spilled static chain pseudo last.
3465         * lra-constraints.c (lra_constraints): Remove static chain pseudo
3466         check for equivalence.
3468 2015-07-16  Martin Liska  <mliska@suse.cz>
3470         PR ipa/66896.
3471         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
3472         dst_ctx if it does not exist.
3474 2015-07-16  Martin Liska  <mliska@suse.cz>
3476         * hash-set.h (remove): New function.
3477         (iterator): New iteration class for hash_set.
3479 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3481         * genattrtab.c (make_canonical): Add a file_location parameter.
3482         Use fatal_at rather than fatal.
3483         (get_attr_value): Likewise.  Update call to make_canonical.
3484         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
3485         (make_internal_attr): Update calls accordingly.
3487 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3489         * read-md.h (message_with_line, error_with_line): Delete.
3490         * read-md.c (message_with_line, error_with_line): Delete.
3491         * gensupport.h: Include read-md.h.
3492         (md_rtx_info): New structure.
3493         (read_md_rtx): Use it.  Return a bool success value.
3494         * gensupport.c (read_md_rtx): Likewise.
3495         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
3496         (main): Update after interface changes.
3497         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
3498         (main): Update after interface changes.
3499         * genattrtab.c (insn_code_number): Delete.
3500         (optimize_attrs): Add a max_insn_code parameter and use it instead
3501         of insn_code_number.
3502         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
3503         Use *_at rather than *_with_line functions.
3504         (gen_insn): Likewise.
3505         (gen_delay): Likewise.
3506         (gen_insn_reserv): Likewise.
3507         (gen_bypass): Take an md_rtx_info rather than an rtx.
3508         (main): Update after interface changes.  Use a local max_insn_code
3509         variable instead of insn_code_number.
3510         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
3511         an rtx.  Use fatal_at rather than fatal.
3512         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
3513         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
3514         (gen_absence_set, gen_final_absence_set, gen_automaton)
3515         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
3516         (main): Update after interface changes.
3517         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
3518         and code number.
3519         (main): Update after interface changes.
3520         * genconditions.c (main): Use new read_md_rtx interface.
3521         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
3522         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
3523         (main): Update after interface changes.
3524         * genemit.c (insn_code_number, insn_index_number): Delete.
3525         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3526         Use fatal_at rather than fatal.
3527         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
3528         rather than fatal.
3529         (gen_split): Likewise.
3530         (main): Update after interface changes.
3531         * genextract.c (line_no): Delete.
3532         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3533         Update call to walk_rtx.
3534         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
3535         rather than message_with_line.
3536         (walk_rtx): Add an md_rtx_info argument.  Update call to
3537         VEC_safe_set_locstr.
3538         (main): Update after interface changes.
3539         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
3540         and lineno.  Use error_at rather than separate message_with_line
3541         calls and have_error assignments.
3542         (main): Update after interface changes.
3543         * genmddump.c (main): Use new read_md_rtx interface.
3544         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
3545         (main): Update after interface changes.
3546         * genoutput.c (next_code_number): Delete.
3547         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3548         (gen_peephole, gen_expand, gen_split): Likewise.
3549         (note_constraint): Likewise.  Use *_at rather than *_with_line
3550         functions.
3551         (main): Update after interface changes.
3552         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
3553         rtx and lineno.
3554         (main): Update after interface changes.
3555         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
3556         than an rtx and lineno.
3557         (process_define_constraint): Likewise.
3558         (process_define_register_constraint): Likewise.
3559         (main): Update after interface changes.
3560         * genrecog.c (next_insn_code, pattern_lineno): Delete.
3561         (validate_pattern): Replace top-level rtx with an md_rtx_info.
3562         Use *_at rather than *_with_line functions.
3563         (match_pattern_2): Likewise.
3564         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
3565         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
3566         Use *_at rather than *_with_line functions.
3567         * gentarget-def.c (add_insn): New function.
3568         (main): Use it.  Use new read_md_rtx interface.
3570 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3572         * gensupport.h (compute_test_codes): Take a file_location rather
3573         than a line number.
3574         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
3575         rather than *_with_line functions.
3576         (process_define_predicate): Update call to compute_test_codes.
3577         * genpreds.c (validate_exp): Take a file_location rather than a
3578         line number.  Use *_at functions rather than *_with_line functions.
3579         (process_define_predicate): Update call to validate_exp.
3580         (constraint_data): Replace lineno field with a file_location.
3581         (add_constraint): Take a file_location rather than a line number.
3582         Use *_at functions rather than *_with_line functions.  Fix error
3583         message for address constraints.  Update after changes to
3584         validate_exp, constraint_data and compute_test_codes.
3585         (process_define_constraint): Update accordingly.
3586         (process_define_register_constraint): Likewise.
3588 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3590         * genoutput.c (data): Use a file_location to record the source
3591         position.
3592         (nothing): Delete.
3593         (idata, idata_end): Remove initialization.
3594         (constraint_data): Replace lineno with a file_location.
3595         (output_insn_data): Update after changes to data.
3596         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3597         (scan_operands): Likewise, using *_at rather than *_with_line
3598         functions.
3599         (process_template): Likewise.
3600         (validate_insn_alternatives): Likewise.
3601         (validate_insn_operands): Likewise.
3602         (validate_optab_operands): Likewise.
3603         (init_insn_for_nothing): Initialize idata and idata_end.
3604         (note_constraint): Update after changes to constraint_data,
3605         using at rather than with_line functions.
3606         (mdep_constraint_len): Take a file_location rather than a
3607         line number.  Use at rather than with_line functions.
3609 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3611         * read-md.h (fatal_at): Declare.
3612         * read-md.c (fatal_at): New function.
3613         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3614         to record the source position.
3615         (check_attr_test): Take a file_location instead of a line number.
3616         Use fatal_at instead of fatal.
3617         (check_attr_value): Update after above changes, using "at"
3618         rather than "with_line" reporting functions.
3619         (convert_set_attr_alternative): Likewise.
3620         (gen_attr): Likewise.
3621         (check_defs): Likewise.  Don't assign to read_md_filename.
3622         (gen_insn): Update initialization after above changes.
3623         (gen_delay): Likewise.
3624         (write_insn_cases): Print the filename for a define_peephole.
3625         (gen_insn_reserv): Take a line number as argument and update
3626         the call to check_attr_test.
3627         (main): Pass a line number to gen_insn_reserv.
3629 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3631         * read-md.h (file_location): New structure.
3632         (directive_handler_t): Take a file_location rather than a line number.
3633         (message_at, error_at): Declare.
3634         (read_skip_construct): Delete.
3635         * read-md.c (message_with_line_1): Replace with...
3636         (message_at_1): ...this new function.
3637         (message_at, error_at): New functions.
3638         (message_with_line, error_with_line): Update to use message_at_1.
3639         (handle_enum): Take a file_location rather than a line number
3640         and use error_at for error reporting.
3641         (handle_include): Likewise.
3642         (read_skip_construct): Likewise.  Make static.
3643         (handle_file): Update after above changes.  Pass a file_location
3644         rather than a line number to handle_directive.
3645         * gensupport.c (queue_elem): Replace separate filename and lineno
3646         with a file_location.
3647         (queue_pattern): Replace filename and lineno arguments with a
3648         file_location.  Update after change to queue_elem.
3649         (process_define_predicate): Replace lineno argument with a
3650         file_location and use error_at for error reporting.  Update
3651         after above changes.
3652         (process_rtx): Likewise.
3653         (subst_pattern_match): Likewise.
3654         (get_alternatives_number): Likewise.
3655         (alter_predicate_for_insn): Likewise.
3656         (rtx_handle_directive): Likewise.
3657         (is_predicable): Update after above changes, using error_at rather
3658         than error_with_line.
3659         (has_subst_attribute): Likewise.
3660         (identify_predicable_attribute): Likewise.
3661         (alter_attrs_for_subst_insn): Likewise.
3662         (process_one_cond_exec): Likewise.
3663         (process_substs_on_one_elem): Likewise.
3664         (process_define_subst): Likewise.
3665         (check_define_attr_duplicates): Likewise.
3666         (read_md_rtx): Update after change to queue_elem.
3668 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3670         * genoutput.c (next_index_number): Delete.
3671         (data): Remove index_number.
3672         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
3673         (main): Remove manipulation of next_index_number.
3675 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3677         * genattrtab.c (check_attr_value): Remove handling of null attrs.
3678         (make_canonical): Likewise.
3680 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
3682         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
3683         instead of adjust_address_nv.
3684         (restore_stack_nonlocal): Likewise.
3685         (nonlocal_goto): Likewise.
3687 2015-07-16  Tom de Vries  <tom@codesourcery.com>
3689         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
3690         not have a corresponding loop header phi.
3692 2015-07-16  Tom de Vries  <tom@codesourcery.com>
3694         * tree-parloops.c (create_loads_for_reductions): Handle case that
3695         reduction is unused.
3697 2015-07-16  Richard Biener  <rguenther@suse.de>
3699         PR tree-optimization/66894
3700         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
3701         about deriving NE_EXPR from truncated values.
3703 2015-07-16  Martin Liska  <mliska@suse.cz>
3705         * alloc-pool.h
3706         (object_allocator): Add new class.
3707         (pool_allocator::initialize): Use the underlying class.
3708         (pool_allocator::allocate): Likewise.
3709         (pool_allocator::remove): Likewise.
3710         (operator new): A new generic allocator.
3711         * asan.c (struct asan_mem_ref): Remove unused members.
3712         (asan_mem_ref_new): Replace new operator with
3713         object_allocator::allocate.
3714         (free_mem_ref_resources): Change deallocation.
3715         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
3716         with object_allocator.
3717         * config/sh/sh.c (add_constant): Replace new operator with
3718         object_allocator::allocate.
3719         (sh_reorg): Change call to a release method.
3720         * cselib.c (struct elt_list): Remove unused members.
3721         (new_elt_list): Replace new operator with
3722         object_allocator::allocate.
3723         (new_elt_loc_list): Likewise.
3724         (new_cselib_val): Likewise.
3725         (unchain_one_elt_list): Change delete operator with remove method.
3726         (unchain_one_elt_loc_list): Likewise.
3727         (unchain_one_value): Likewise.
3728         (cselib_finish): Release newly added static allocators.
3729         * cselib.h (struct cselib_val): Remove unused members.
3730         (struct elt_loc_list): Likewise.
3731         * df-problems.c (df_chain_alloc): Replace pool_allocator with
3732         object_allocator.
3733         * df-scan.c (struct df_scan_problem_data): Likewise.
3734         (df_scan_alloc): Likewise.
3735         * df.h (struct dataflow): Likewise.
3736         * dse.c (struct read_info_type): Likewise.
3737         (struct insn_info_type): Likewise.
3738         (struct dse_bb_info_type): Likewise.
3739         (struct group_info): Likewise.
3740         (struct deferred_change): Likewise.
3741         (get_group_info): Likewise.
3742         (delete_dead_store_insn): Likewise.
3743         (free_read_records): Likewise.
3744         (replace_read): Likewise.
3745         (check_mem_read_rtx): Likewise.
3746         (scan_insn): Likewise.
3747         (dse_step1): Likewise.
3748         (dse_step7): Likewise.
3749         * et-forest.c (struct et_occ): Remove unused members.
3750         (et_new_occ): Use allocate instead of new operator.
3751         (et_new_tree): Likewise.
3752         (et_free_tree): Call release method explicitly.
3753         (et_free_tree_force): Likewise.
3754         (et_free_pools): Likewise.
3755         (et_split): Use remove instead of delete operator.
3756         * et-forest.h (struct et_node): Remove unused members.
3757         * ipa-cp.c: Change pool_allocator to object_allocator.
3758         * ipa-inline-analysis.c: Likewise.
3759         * ipa-profile.c: Likewise.
3760         * ipa-prop.c: Likewise.
3761         * ipa-prop.h: Likewise.
3762         * ira-build.c (initiate_cost_vectors): Cast return value.
3763         (ira_allocate_cost_vector): Likewise.
3764         * ira-color.c (struct update_cost_record): Remove unused members.
3765         * lra-int.h (struct lra_live_range): Likewise.
3766         (struct lra_copy): Likewise.
3767         (struct lra_insn_reg): Likewise.
3768         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
3769         * lra.c (new_insn_reg): Replace new operator with allocate method.
3770         (free_insn_regs): Same for operator delete.
3771         (finish_insn_regs): Release new static allocator.
3772         (finish_insn_recog_data): Likewise.
3773         (lra_free_copies): Replace delete operator with remove method.
3774         (lra_create_copy): Replace operator new with allocate method.
3775         (invalidate_insn_data_regno_info): Same for remove method.
3776         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
3777         (free_debug_insn_changes): Replace delete operator with remove method.
3778         (replace_oldest_value_reg): Replace operator new with allocate method.
3779         (pass_cprop_hardreg::execute): Release new static variable.
3780         * sched-deps.c (sched_deps_init): Change pool_allocator to
3781         object_allocator.
3782         * sel-sched-ir.c: Likewise.
3783         * sel-sched-ir.h: Likewise.
3784         * stmt.c (expand_case): Likewise.
3785         (expand_sjlj_dispatch_table): Likewise.
3786         * tree-sra.c (struct access): Remove unused members.
3787         (struct assign_link): Likewise.
3788         (sra_deinitialize): Release newly added static pools.
3789         (create_access_1):Replace operator new with allocate method.
3790         (build_accesses_from_assign): Likewise.
3791         (create_artificial_child_access): Likewise.
3792         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
3793         pool_allocator to object_allocator.
3794         * tree-ssa-pre.c: Likewise.
3795         * tree-ssa-reassoc.c: Likewise.
3796         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3797         * tree-ssa-strlen.c: Likewise.
3798         * tree-ssa-structalias.c: Likewise.
3799         * var-tracking.c (onepart_pool_allocate): New function.
3800         (unshare_variable): Use the newly added function.
3801         (variable_merge_over_cur): Likewise.
3802         (variable_from_dropped): Likewise.
3803         (variable_was_changed): Likewise.
3804         (set_slot_part): Likewise.
3805         (emit_notes_for_differences_1): Likewise.
3806         (vt_finalize): Release newly added static pools.
3808 2015-07-16  Martin Jambor  <mjambor@suse.cz>
3810         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
3811         all uses.  Fix two typos in its general comment.
3812         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
3814 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
3816         * config/i386/linux-common.h (LINK_MPX): New.
3817         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
3818         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
3819         indicating '-z bndplt' support by linker.
3820         * configure: Regenerate.
3821         * config.in: Regenerate.
3823 2015-07-16  Richard Biener  <rguenther@suse.de>
3825         * fold-const.c (fold_widened_comparison): Remove.
3826         (fold_sign_changed_comparison): Likewise.
3827         (fold_comparison): Move widened and sign-changed comparison
3828         simplification ...
3829         * match.pd: ... to patterns here.
3830         * generic-match-head.c: Include target.h.
3831         * gimple-match-head.c: Likewise.
3833 2015-07-16  Richard Biener  <rguenther@suse.de>
3835         * tree-ssa-dom.c (dom_valueize): New function.
3836         (record_temporary_equivalences): Also record equivalences
3837         for dominating stmts that have uses of equivalences we are
3838         about to record.
3840 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
3842         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
3843         add_autoinc_candidates.
3844         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
3845         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
3846         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
3847         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
3848         Call new function.
3849         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
3850         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
3851         Remove parameter struct iv*.  Call add_autoinc_candidates here.
3852         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
3853         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
3854         Call new function.
3855         (find_iv_candidates): Call new functions.
3857 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
3859         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
3860         uninitialized-variable warning.
3862 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3864         PR target/65249
3865         * config/sh/sh.md (movdi): Split simple reg move to two movsi
3866         when the destination is R0.
3868 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
3870         PR target/66866
3871         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
3872         * config/i386/i386.c (ix86_expand_pextr): New function.
3873         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
3874         for non-lowpart subregs.
3875         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
3876         (insv<mode>): Use SWI248 mode iterator.
3877         (insv<mode>_1): Ditto.
3879 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3880             Sebastian Pop  <s.pop@samsung.com>
3882         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
3883         iterator to use_stmt.
3885 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3886             Sebastian Pop <s.pop@samsung.com>
3888         * graphite-scop-detection.c (build_scops_1): Discard scops for
3889         which entry==exit.
3891 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3892             Sebastian Pop <s.pop@samsung.com>
3894         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3895         case of a return statement in scop.
3897 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3898             Sebastian Pop <s.pop@samsung.com>
3900         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3901         INTEGER_TYPE parameters.
3902         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3903         VECTOR_CST in scan_tree_for_params.
3904         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3906 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3908         * gimple-pretty-print.h: Don't include pretty-print.h.
3909         * tree-streamer.h: Don't include lto-streamer.h.
3910         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3911         * gimple-streamer-in.c: Remove redundant includes.
3912         * gimple-streamer-out.c: Likewise.
3913         * ipa-devirt.c: Likewise.
3914         * ipa-icf.c: Likewise.
3915         * ipa-inline-analysis.c: Likewise.
3916         * ipa-polymorphic-call.c: Likewise.
3917         * ipa-profile.c: Likewise.
3918         * ipa-prop.c: Likewise.
3919         * ipa-pure-const.c: Likewise.
3920         * lto-cgraph.c: Likewise.
3921         * lto-streamer-in.c: Likewise.
3922         * lto-streamer-out.c: Likewise.
3923         * lto-streamer.c: Likewise.
3924         * tree-streamer-in.c: Likewise.
3925         * tree-streamer-out.c: Likewise.
3926         * tree-streamer.c: Likewise.
3928 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3930         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3931         include input.h.
3932         * opts.c: Remove multiline #include comment.
3934 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
3936         * config/nvptx/mkoffload.c (process): Add C++ protection to
3937         emitted code.
3939 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3941         PR target/66854
3942         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3943         null before IEEE 128-bit floating point support patch.
3945 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3947         * simplify-rtx.c (simplify_ternary_operation): Add simplification
3948         for (!c) != {0,...,0} ? a : b for vector modes.
3950 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
3951             Martin Jambor  <mjambor@suse.cz>
3953         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
3954         struct func_body_info* instead of struct ipa_node_params*, expecting
3955         fbi->info to be filled in.  Replace throughout.  Adjust call to
3956         ipa_load_from_parm_agg.
3957         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
3958         instead of struct ipa_node_params*.  Adjust calls to other functions
3959         so that they pass either fbi or fbi->info.
3960         (set_switch_stmt_execution_predicate): Likewise.
3961         (will_be_nonconstant_predicate): Likewise.
3962         (compute_bb_predicates): Likewise.
3963         (estimate_function_body_sizes): Move asserts earlier.  Fill in
3964         struct func_body_info, replace parms_info with fbi.info.  Adjust
3965         calls to functions that now accept struct func_body_info.
3966         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
3967         (struct func_body_info): Likewise.
3968         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
3969         remove static.  Adjust callers.
3970         (ipa_load_from_parm_agg): Remove.
3971         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
3972         (func_body_info): Likewise.
3973         (ipa_load_from_parm_agg): Adjust prototype.
3975 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3977         * gensupport.c (rtx_handle_directive): Adjust.
3978         * read-rtl.c (apply_iterators): Take vector to add rtxs to
3979         instead of expr list rtx.
3980         (add_define_attr_for_define_subst): Likewise.
3981         (add_define_subst_attr): Likewise.
3982         (read_subst_mapping): Likewise.
3983         (read_rtx): Likewise.
3984         * rtl.h (read_rtx): Adjust.
3986 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3988         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
3990 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
3992         PR target/58066
3993         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
3994         (*tls_local_dynamic_base_64_<mode>): Ditto.
3995         (*tls_local_dynamic_base_64_largepic): Ditto.
3996         (tls_global_dynamic_64_<mode>): Update expander pattern.
3997         (tls_local_dynamic_base_64_<mode>): Ditto.
3999 2015-07-15  Richard Biener  <rguenther@suse.de>
4001         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
4002         and bool_var == 1 -> bool_var simplifications ...
4003         * match.pd: ... to patterns here.  Factor out negate_expr_p
4004         cases from the A - B -> A + (-B) patterns as negate_expr_p
4005         predicate and add a -(A + B) -> (-B) - A pattern.
4007 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
4009         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
4011 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
4012             Robert Suchanek  <robert.suchanek@imgtec.com>
4014         * config/mips/mips.c (mips_int_mask): New enum.
4015         (mips_shadow_set): Likewise.
4016         (int_mask): New variable.
4017         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
4018         (machine_function): Add int_mask and use_shadow_register_set.
4019         (mips_attribute_table): Add attribute handlers for interrupt and
4020         use_shadow_register_set.
4021         (mips_interrupt_mask): New static function.
4022         (mips_handle_interrupt_attr): Likewise.
4023         (mips_handle_use_shadow_register_set_attr): Likewise.
4024         (mips_use_shadow_register_set): Change return type to enum
4025         mips_shadow_set.  Add argument handling for use_shadow_register_set
4026         attribute.
4027         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
4028         compare with mips_shadow_set enum.
4029         (mips_compute_frame_info): Add interrupt mask and
4030         use_shadow_register_set to per-function information structure.
4031         Add a stack slot for EPC unconditionally.
4032         (mips_expand_prologue): Compare use_shadow_register_set value
4033         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
4034         masked interrupt register but in EIC mode use K0 and save Cause in K0.
4035         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
4036         copying the stack pointer from the shadow register set.
4037         * config/mips/mips.h (SR_IM0): New define.
4038         * config/mips/mips.md (mips_rdpgpr): Rename to...
4039         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
4040         * doc/extend.texi (Declaring Attributes of Functions): Document
4041         optional arguments for interrupt and use_shadow_register_set
4042         attributes.
4044 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
4046         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
4047         interrupt attribute.
4048         (mips_expand_prologue): Disable the floating point unit in an ISR.
4049         * config/mips/mips.h (SR_COP1): New define.
4051 2015-07-15  Richard Biener  <rguenther@suse.de>
4053         * genmatch.c (parser::peek, parser::peek_ident): Add argument
4054         to tell how many tokens to peek ahead (default 1).
4055         (parser::eat_token, parser::eat_ident): Return token consumed.
4056         (parser::parse_result): Parse new switch statement.
4057         * match.pd: Use case statements where appropriate.
4059 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
4061         PR rtl-optimization/58066
4062         * calls.c (expand_call): Precompute register parameters before stack
4063         alignment is performed.
4065 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
4067         PR rtl-optimization/66838
4068         * postreload.c (reload_cse_move2add): Also process
4069         CALL_INSN_FUNCTION_USAGE when resetting information of
4070         call-clobbered registers.
4072 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
4073             Cesar Philippidis  <cesar@codesourcery.com>
4074             Chung-Lin Tang  <cltang@codesourcery.com>
4076         * config/nios2/constraints.md (U, v): New constraints.
4077         * config/nios2/predicates.md (rdprs_dcache_operand): New.
4078         (ldstex_memory_operand): New.
4079         * config/nios2/sync.md: New file.
4080         * config/nios2/nios2.md (unspecv): Add new builtin function
4081         UNSPECV codes.
4082         (rdprs, flushd, flushda, wrpie, eni): New patterns.
4083         (top-level): Include sync.md.
4084         * config/nios2/nios2.c (N2_FTYPES): Add function types for
4085         new builtins.
4086         (N2_BUILTINS): Add arch field setting, add new builtins.
4087         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
4088         for arch field.
4089         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
4090         Also handle ldex/stex/ldsex/stsex builtins.
4091         (nios2_expand_rdprs_builtin): New function.
4092         (nios2_expand_cache_builtin): New function.
4093         (nios2_expand_wrpie_builtin): New function.
4094         (nios2_expand_eni_builtin): New function.
4095         (nios2_expand_builtin): Add arch field handling and new builtin
4096         cases.
4097         * doc/extend.texi (Altera Nios II Built-in Functions): Document
4098         new builtins.
4099         * doc/md.texi (Machine Constraints): Document U and v constraints.
4101 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
4102             Cesar Philippidis  <cesar@codesourcery.com>
4103             Chung-Lin Tang  <cltang@codesourcery.com>
4105         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
4106         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
4107         callee_save_reg_size and uses_anonymous_args fields.
4108         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
4109         (nios2_create_cfa_notes): New function.
4110         (nios2_adjust_stack): New function for adjusting stack.
4111         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
4112         Use nios2_adjust_stack.
4113         (nios2_expand_epilogue): Likewise.
4114         (nios2_expand_return): New function.
4115         (nios2_can_use_return_insn): Update for CDX pop.n usage.
4116         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
4117         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
4118         * config/nios2/nios2.md (return): Use nios2_expand_return.
4120 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
4121             Cesar Philippidis  <cesar@codesourcery.com>
4122             Chung-Lin Tang  <cltang@codesourcery.com>
4124         * config/nios2/predicates.md (pop_operation): New.
4125         (ldwm_operation, stwm_operation): New.
4126         (nios2_hard_register_operand): New.
4127         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
4128         (ldstwm_operation_p): Declare.
4129         (gen_ldstwm_peep): Declare.
4130         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
4131         (base_reg_adjustment_p): New.
4132         (pop_operation_p): New.
4133         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
4134         (nios2_ldstwm_regset_p): New.
4135         (ldstwm_operation_p): New.
4136         (gen_ldst): New.
4137         (nios2_ldst_parallel): New.
4138         (struct ldswm_operand): Declare.
4139         (compare_ldstwm_operands): New.
4140         (can_use_cdx_ldstw): New.
4141         (gen_ldstwm_peep): New.
4142         * config/nios2/nios2-ldstwm.sml: New.
4143         * config/nios2/nios2.md: Include ldstwm.md.
4144         * config/nios2/ldstwm.md: Generated.
4146 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
4147             Cesar Philippidis  <cesar@codesourcery.com>
4148             Chung-Lin Tang  <cltang@codesourcery.com>
4150         * config/nios2/nios2.h (LABEL_ALIGN): Define.
4151         (REG_ALLOC_ORDER): Define.
4152         (ADJUST_REG_ALLOC_ORDER): Define.
4153         (HONOR_REG_ALLOC_ORDER): Define.
4154         (CDX_REG_P): Define.
4155         (ANDCLEAR_INT): Define.
4156         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
4157         (nios2_label_align): Declare.
4158         (nios2_cdx_narrow_form_p): Declare.
4159         (nios2_adjust_reg_alloc_order): Declare.
4160         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
4161         operation.
4162         (nios2_large_unspec_reloc_p): New function, split from...
4163         (nios2_legitimate_pic_operand_p): ...here.
4164         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
4165         (nios2_print_operand_punct_valid_p): New.
4166         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
4167         (split_mem_address): New.
4168         (split_alu_insn): New.
4169         (cdxreg): New.
4170         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
4171         (enum nios2_add_insn_kind): New.
4172         (nios2_add_insn_names, nios2_add_insn_narrow): New.
4173         (nios2_add_insn_classify): New.
4174         (nios2_add_insn_asm): New.
4175         (nios2_cdx_narrow_form_p): New.
4176         (label_align, min_labelno, max_labelno): New.
4177         (nios2_reorg): New.
4178         (nios2_label_align): New.
4179         (nios2_adjust_reg_alloc_order): New.
4180         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4181         (TARGET_MACHINE_DEPENDENT_REORG): Define.
4182         * config/nios2/constraints.md (P): New constraint.
4183         * config/nios2/predicates.md (const_and_operand): New.
4184         (and_operand): New.
4185         (stack_memory_operand): New.
4186         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
4187         (length): Update to use nios2_cdx_narrow_form_p().
4188         (type): Add new insn type values.
4189         (control, alu, st, ld, shift): Update insn reservations with
4190         new insn type values.
4191         (*high, *lo_sum): Define new insn patterns for constant generation.
4192         (movqi_internal, movhi_internal, movsi_internal): Reduce
4193         alternatives, update asm template to handle CDX variants, update
4194         type attributes.
4195         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
4196         template, update type attributes.
4197         (extendhisi2, extendqi<mode>2): Likewise.
4198         (addsi3): Change to use function for asm string.
4199         (subsi3): Add CDX notation to asm template, update type attributes.
4200         (negsi3, one_cmplsi3): Likewise.
4201         (andsi3): New pattern, specialized from logical patterns.
4202         (<code>si3): Remove and case, combine alternatives, update asm
4203         template.
4204         (<shift_op>si3): Add CDX notation, update type attributes.
4205         (rotrsi3): Update type attribute.
4206         (*merge, extzv, insv): New insn patterns.
4207         (return): Change to define_expand.
4208         (simple_return): Add CDX notation, update type attributes.
4209         (indirect_jump): Add CDX notation.
4210         (jump): Update asm cases, update length attribute expression.
4211         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
4212         (nios2_cbranch): Update asm cases and length attribute expression
4213         to handle CDX variants.
4214         (nios2_cmp<code>): Update asm template.
4215         (nop): Add CDX notation, update type attributes.
4216         (trap): Add CDX notation.
4217         (ctrapsi4): Update asm cases and length attribute expression to
4218         handle CDX variant.
4219         * doc/md.texi (Machine Constraints): Document P constraint.
4221 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
4222             Cesar Philippidis  <cesar@codesourcery.com>
4223             Chung-Lin Tang  <cltang@codesourcery.com>
4225         * config/nios2/nios2.h (SMALL_INT12): New macro.
4226         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
4227         (nios2_valid_addr_expr_p): Use it.
4228         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
4229         with implicit "io" instructions on R2.
4230         * config/nios2/constraints.md (w): New constraint.
4231         * config/nios2/predicates.md (ldstio_memory_operand): New.
4232         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
4233         operand predicate and constraint.
4234         (ld<bh>io_signed, st<bhw>io>): Likewise.
4235         * doc/md.texi (Machine Constraints): Document w constraint.
4237 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
4238             Cesar Philippidis  <cesar@codesourcery.com>
4239             Chung-Lin Tang  <cltang@codesourcery.com>
4241         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
4242         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
4243         Nios II architecture level.
4244         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
4245         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
4246         (OPTION_DEFAULT_SPECS): Define.
4247         (ASM_SPEC): Add -march= spec strings.
4248         * config/nios2/nios2.c (nios2_option_override): Check for
4249         conflicts involving new options.
4250         * config.gcc (nios2*-*-*): Support --with-arch=.
4251         * doc/invoke.texi (Option Summary, Nios II Options): Document
4252         -march=, -mbmx, and -mcdx.
4254 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
4256         PR rtl-optimization/66626
4257         * lra-constraints.c (lra_constraints): Prevent equivalence
4258         substitution for static chain pseudo in functions with nonlocal
4259         goto.
4261 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
4263         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
4264         (nios2_emit_stack_limit_check): Add size parameter.  Handle
4265         -fstack-limit-symbol as well as -fstack-limit-register.
4266         (nios2_expand_prologue): Emit only a single stack limit check,
4267         even if multiple stack adjustments are required.
4268         (nios2_option_override): Diagnose unsupported combination of -fpic
4269         and -stack-limit-symbol.
4271 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
4273         * Makefile.in (top_srcdir): New.
4274         * configure.ac: Use AM_ZLIB.
4275         * configure: Regeneated.
4277 2015-07-14  Matthias Klose  <doko@ubuntu.com>
4279         PR target/66840
4280         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
4282 2015-07-14  Richard Biener  <rguenther@suse.de>
4284         PR tree-optimization/66863
4285         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
4286         what we record for conversion use stmt lhs inequalities.
4288 2015-07-14  Richard Biener  <rguenther@suse.de>
4290         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
4291         (decision_tree::gen_gimple): Likewise.
4293 2015-07-14  Tom de Vries  <tom@codesourcery.com>
4295         * gcc.c (greater_than_spec_func): Declare forward.
4296         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
4297         -ftree-parallelize-loops={0,1}.
4298         (static_spec_functions): Add greater_than_spec_func function with name
4299         "gt".
4300         (greater_than_spec_func): New function.
4302 2015-07-14  Richard Biener  <rguenther@suse.de>
4304         * tree-ssa-dom.c (record_temporary_equivalences): Merge
4305         wideing type conversion case from record_equivalences_from_incoming_edge
4306         and use record_equality to record equivalences.
4307         (record_equivalences_from_incoming_edge): Call
4308         record_temporary_equivalences.
4310 2015-07-14  Richard Biener  <rguenther@suse.de>
4312         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
4313         (struct if_expr): New.
4314         (struct with_expr): Likewise.
4315         (is_a_helper): Add helpers for if_expr and with_expr.
4316         (struct simplify): Add simplify_kind enum and member.  Remove
4317         ifexpr_vec member.
4318         (simplify::simplify): Adjust.
4319         (lower_commutative): Adjust.
4320         (lower_opt_convert): Likewise.
4321         (lower_cond): Likewise.
4322         (replace_id): Handle with_expr and if_expr.
4323         (lower_for): Adjust.
4324         (dt_simplify::gen_1): New recursive worker, split out from ...
4325         (dt_simplify::gen): ... here.  Deal with if and with expansion
4326         recursively.
4327         (capture_info::capture_info): Take context argument
4328         (capture_info::walk_result): Only analyze specific result.
4329         (parser::parse_result): New function.
4330         (parser::parse_simplify): Adjust to parse ifs with then end
4331         else case.
4332         (parser::parse_if): Simplify.
4333         (parser::parse_pattern): Pass down simplify kind.
4334         * match.pd: Convert if structure to new syntax.
4336 2015-07-13  Marek Polacek  <polacek@redhat.com>
4338         * rtl.c (rtx_equal_p_cb): Fix typo.
4340 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
4342         * omega.h: Don't include config.h, don't include params.h again if
4343         omega.h has already been included.
4344         * graphite-poly.h: Include sese.h.
4345         * graphite.c: Don't include sese.h, remove needless includes and
4346         minimize includes outside #ifdef HAVE_isl block.
4347         * graphite-blocking.c: Don't include sese.h, remove needless includes,
4348         and wrap entire file in #ifdef HAVE_isl
4349         * graphite-dependences.c: Likewise.
4350         * graphite-interchange.c: Likewise.
4351         * graphite-isl-ast-to-gimple.c: Likewise.
4352         * graphite-optimize-isl.c: Likewise.
4353         * graphite-poly.c: Likewise.
4354         * graphite-scop-detection.c: Likewise.
4355         * graphite-sese-to-poly.c: Likewise.
4357 2015-07-13  Tom de Vries  <tom@codesourcery.com>
4359         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
4361 2015-07-13  Renlin Li  <renlin.li@arm.com>
4363         PR rtl/66556
4364         * simplify-rtx.c (simplify_const_relational_operation): Add
4365         side_effects_p checks.
4367 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
4369         * bitmap.h: Fix double word typos.
4370         * builtins.c: Same.
4371         * calls.c: Same.
4372         * cfgloopmanip.c: Same.
4373         * cgraph.c: Same.
4374         * cgraph.h: Same.
4375         * cgraphclones.c: Same.
4376         * combine.c: Same.
4377         * config/aarch64/aarch64-protos.h: Same.
4378         * config/aarch64/aarch64.c: Same.
4379         * config/aarch64/aarch64.md: Same.
4380         * config/arm/arm.md: Same.
4381         * config/arm/arm1020e.md: Same.
4382         * config/arm/arm1026ejs.md: Same.
4383         * config/arm/arm926ejs.md: Same.
4384         * config/arm/fa526.md: Same.
4385         * config/arm/fa606te.md: Same.
4386         * config/arm/fa626te.md: Same.
4387         * config/arm/fa726te.md: Same.
4388         * config/arm/fmp626.md: Same.
4389         * config/darwin.c: Same.
4390         * config/epiphany/epiphany.c: Same.
4391         * config/frv/frv.c: Same.
4392         * config/ft32/ft32.c: Same.
4393         * config/gnu-user.h: Same.
4394         * config/h8300/constraints.md: Same.
4395         * config/i386/i386.c: Same.
4396         * config/i386/i386.md: Same.
4397         * config/iq2000/iq2000.md: Same.
4398         * config/mips/mips.c: Same.
4399         * config/mmix/mmix.md: Same.
4400         * config/moxie/moxie.c: Same.
4401         * config/nds32/nds32.md: Same.
4402         * config/pa/pa.h: Same.
4403         * config/rs6000/aix.h: Same.
4404         * config/rs6000/rs6000.h: Same.
4405         * config/sh/sh.c: Same.
4406         * config/tilegx/tilegx.md: Same.
4407         * config/tilepro/gen-mul-tables.cc: Same.
4408         * cse.c: Same.
4409         * dbxout.c: Same.
4410         * doc/invoke.texi: Same.
4411         * dse.c: Same.
4412         * dwarf2out.c: Same.
4413         * final.c: Same.
4414         * gcc.c: Same.
4415         * genmatch.c: Same.
4416         * gimplify.c: Same.
4417         * hash-table.h: Same.
4418         * internal-fn.c: Same.
4419         * ipa-cp.c: Same.
4420         * ipa-devirt.c: Same.
4421         * ipa-icf.c: Same.
4422         * ipa-icf.h: Same.
4423         * ipa-profile.c: Same.
4424         * ipa-prop.c: Same.
4425         * ipa-prop.h: Same.
4426         * ira.c: Same.
4427         * omp-low.c: Same.
4428         * reg-stack.c: Same.
4429         * regcprop.c: Same.
4430         * reorg.c: Same.
4431         * rtl.h: Same.
4432         * sbitmap.h: Same.
4433         * tree-eh.c: Same.
4434         * tree-inline.c: Same.
4435         * tree-sra.c: Same.
4436         * tree-ssa-dom.c: Same.
4437         * tree-ssa-loop-ivopts.c: Same.
4438         * tree-ssa-structalias.c: Same.
4439         * tree-ssa-tail-merge.c: Same.
4440         * tree-ssa-ter.c: Same.
4441         * tree-ssa-threadupdate.c: Same.
4442         * tree-ssa-uninit.c: Same.
4443         * tree-ssanames.c: Same.
4444         * tree-vect-loop-manip.c: Same.
4445         * tree-vrp.c: Same.
4446         * tree.c: Same.
4447         * valtrack.c: Same.
4448         * vec.h: Same.
4450 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
4452         PR middle-end/66726
4453         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
4454         tree_ssa_phiopt_worker): Call it.
4456 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
4458         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
4459         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
4460         REG_EQUAL note.
4462 2015-07-11  Marek Polacek  <polacek@redhat.com>
4464         PR middle-end/66353
4465         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
4466         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
4467         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
4468         rather than bb_has_abnormal_call_pred.
4469         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
4470         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
4471         rather than bb_has_abnormal_call_pred.
4473 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
4475         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4476         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
4477         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4478         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
4479         v850_legitimate_address_p): New functions.
4480         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4482 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
4484         PR target/66819
4485         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
4486         indirect sibcall with register arguments if register available
4487         for argument passing.
4488         (init_cumulative_args): Set cfun->machine->arg_reg_available
4489         to (cum->nregs > 0) or to true if function has a variable
4490         argument list.
4491         (function_arg_advance_32): Set cfun->machine->arg_reg_available
4492         to false if cum->nregs <= 0.
4493         * config/i386/i386.h (machine_function): Add arg_reg_available.
4495 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
4497         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
4498         and gen_higpart instead of gen_rtx_SUBREG.
4499         * config/i386/i386.md
4500         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
4501         (read-modify peephole2): Use gen_lowpart instead of
4502         gen_rtx_SUBREG for operand 5.
4504 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
4506         * config/tilepro/gen-mul-tables.cc (main): Change include list for
4507         generated files.
4508         * config/tilepro/mul-tables.c: Regenerate.
4509         * config/tilegx/mul-tables.c: Regenerate.
4511 2015-07-10  Richard Biener  <rguenther@suse.de>
4513         * fold-const.c (distribute_bit_expr): Remove.
4514         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
4515         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
4516         to A & (B | C) and simplifying A << C1 << C2 to ...
4517         * match.pd: ... patterns here.
4519 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
4521         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4522         Mark mem as READONLY and NOTRAP for PIC symbol.
4524 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
4526         * gimple-predict.h: New file.
4527         (gimple_predict_predictor, gimple_predict_set_predictor,
4528         gimple_predict_outcome, gimple_predict_set_outcome,
4529         gimple_build_predict): Relocate here.
4530         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
4531         gimple_predict_outcome, gimple_predict_set_outcome): Move to
4532         gimple-predict.h.
4533         * gimple.c (gimple_build_predict): Move to gimple-predict.h
4534         * basic-block.h: Don't include cfghooks.h.
4535         * backend.h: Don't include predict.h.
4536         * cfghooks.h: Include predict.h.
4537         * gimple-pretty-print.c: Include gimple-predict.h.
4538         * gimplify.c: Likwise.
4539         * predict.c: Adjust includes.
4540         * tree-inline.c: Likewise.
4541         * asan.c: Likewise.
4542         * auto-inc-dec.c: Likewise.
4543         * auto-profile.c: Likewise.
4544         * bb-reorder.c: Likewise.
4545         * builtins.c: Likewise.
4546         * caller-save.c: Likewise.
4547         * calls.c: Likewise.
4548         * cfganal.c: Likewise.
4549         * cfgbuild.c: Likewise.
4550         * cfg.c: Likewise.
4551         * cfgcleanup.c: Likewise.
4552         * cfgexpand.c: Likewise.
4553         * cfghooks.c: Likewise.
4554         * cfgloopanal.c: Likewise.
4555         * cfgloop.c: Likewise.
4556         * cfgloopmanip.c: Likewise.
4557         * cfgrtl.c: Likewise.
4558         * cgraph.c: Likewise.
4559         * cgraphunit.c: Likewise.
4560         * combine.c: Likewise.
4561         * cprop.c: Likewise.
4562         * cse.c: Likewise.
4563         * dce.c: Likewise.
4564         * dojump.c: Likewise.
4565         * dse.c: Likewise.
4566         * except.c: Likewise.
4567         * expmed.c: Likewise.
4568         * expr.c: Likewise.
4569         * final.c: Likewise.
4570         * fold-const.c: Likewise.
4571         * function.c: Likewise.
4572         * fwprop.c: Likewise.
4573         * gcc-plugin.h: Likewise.
4574         * gcse.c: Likewise.
4575         * genattrtab.c: Likewise.
4576         * genemit.c: Likewise.
4577         * gengtype.c: Likewise.
4578         * genopinit.c: Likewise.
4579         * genoutput.c: Likewise.
4580         * genpreds.c: Likewise.
4581         * genrecog.c: Likewise.
4582         * gimple-fold.c: Likewise.
4583         * gimple-iterator.c: Likewise.
4584         * gimple-ssa-isolate-paths.c: Likewise.
4585         * gimple-ssa-strength-reduction.c: Likewise.
4586         * graph.c: Likewise.
4587         * graphite-blocking.c: Likewise.
4588         * graphite.c: Likewise.
4589         * graphite-dependences.c: Likewise.
4590         * graphite-interchange.c: Likewise.
4591         * graphite-isl-ast-to-gimple.c: Likewise.
4592         * graphite-optimize-isl.c: Likewise.
4593         * graphite-poly.c: Likewise.
4594         * graphite-scop-detection.c: Likewise.
4595         * graphite-sese-to-poly.c: Likewise.
4596         * haifa-sched.c: Likewise.
4597         * ifcvt.c: Likewise.
4598         * internal-fn.c: Likewise.
4599         * ipa-cp.c: Likewise.
4600         * ipa-profile.c: Likewise.
4601         * ipa-split.c: Likewise.
4602         * ipa-utils.c: Likewise.
4603         * ira-build.c: Likewise.
4604         * ira-color.c: Likewise.
4605         * ira-conflicts.c: Likewise.
4606         * ira-costs.c: Likewise.
4607         * ira-emit.c: Likewise.
4608         * ira-lives.c: Likewise.
4609         * jump.c: Likewise.
4610         * loop-doloop.c: Likewise.
4611         * loop-init.c: Likewise.
4612         * loop-invariant.c: Likewise.
4613         * loop-unroll.c: Likewise.
4614         * lower-subreg.c: Likewise.
4615         * lra-assigns.c: Likewise.
4616         * lra.c: Likewise.
4617         * lra-coalesce.c: Likewise.
4618         * lra-constraints.c: Likewise.
4619         * lra-lives.c: Likewise.
4620         * lto-cgraph.c: Likewise.
4621         * lto-streamer-in.c: Likewise.
4622         * mode-switching.c: Likewise.
4623         * modulo-sched.c: Likewise.
4624         * omp-low.c: Likewise.
4625         * optabs.c: Likewise.
4626         * passes.c: Likewise.
4627         * postreload.c: Likewise.
4628         * postreload-gcse.c: Likewise.
4629         * profile.c: Likewise.
4630         * recog.c: Likewise.
4631         * regstat.c: Likewise.
4632         * reload1.c: Likewise.
4633         * reorg.c: Likewise.
4634         * rtlanal.c: Likewise.
4635         * sched-ebb.c: Likewise.
4636         * sel-sched-ir.c: Likewise.
4637         * sese.c: Likewise.
4638         * shrink-wrap.c: Likewise.
4639         * simplify-rtx.c: Likewise.
4640         * stmt.c: Likewise.
4641         * store-motion.c: Likewise.
4642         * tracer.c: Likewise.
4643         * trans-mem.c: Likewise.
4644         * tree-call-cdce.c: Likewise.
4645         * tree-cfg.c: Likewise.
4646         * tree-cfgcleanup.c: Likewise.
4647         * tree-chkp.c: Likewise.
4648         * tree-complex.c: Likewise.
4649         * tree-eh.c: Likewise.
4650         * tree-if-conv.c: Likewise.
4651         * tree-loop-distribution.c: Likewise.
4652         * tree-outof-ssa.c: Likewise.
4653         * tree-parloops.c: Likewise.
4654         * tree-predcom.c: Likewise.
4655         * tree-pretty-print.c: Likewise.
4656         * tree-profile.c: Likewise.
4657         * tree-sra.c: Likewise.
4658         * tree-ssa.c: Likewise.
4659         * tree-ssa-coalesce.c: Likewise.
4660         * tree-ssa-dce.c: Likewise.
4661         * tree-ssa-dom.c: Likewise.
4662         * tree-ssa-forwprop.c: Likewise.
4663         * tree-ssa-ifcombine.c: Likewise.
4664         * tree-ssa-loop-ch.c: Likewise.
4665         * tree-ssa-loop-im.c: Likewise.
4666         * tree-ssa-loop-ivcanon.c: Likewise.
4667         * tree-ssa-loop-ivopts.c: Likewise.
4668         * tree-ssa-loop-manip.c: Likewise.
4669         * tree-ssa-loop-prefetch.c: Likewise.
4670         * tree-ssa-loop-unswitch.c: Likewise.
4671         * tree-ssa-math-opts.c: Likewise.
4672         * tree-ssa-phiopt.c: Likewise.
4673         * tree-ssa-pre.c: Likewise.
4674         * tree-ssa-reassoc.c: Likewise.
4675         * tree-ssa-sink.c: Likewise.
4676         * tree-ssa-tail-merge.c: Likewise.
4677         * tree-ssa-threadedge.c: Likewise.
4678         * tree-ssa-threadupdate.c: Likewise.
4679         * tree-switch-conversion.c: Likewise.
4680         * tree-tailcall.c: Likewise.
4681         * tree-vect-data-refs.c: Likewise.
4682         * tree-vect-loop.c: Likewise.
4683         * tree-vect-loop-manip.c: Likewise.
4684         * tree-vectorizer.c: Likewise.
4685         * tree-vrp.c: Likewise.
4686         * ubsan.c: Likewise.
4687         * value-prof.c: Likewise.
4688         * varasm.c: Likewise.
4689         * var-tracking.c: Likewise.
4690         * config/aarch64/aarch64-builtins.c: Likewise.
4691         * config/aarch64/aarch64.c: Likewise.
4692         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4693         * config/alpha/alpha.c: Likewise.
4694         * config/arc/arc.c: Likewise.
4695         * config/arm/arm.c: Likewise.
4696         * config/avr/avr.c: Likewise.
4697         * config/bfin/bfin.c: Likewise.
4698         * config/c6x/c6x.c: Likewise.
4699         * config/cr16/cr16.c: Likewise.
4700         * config/cris/cris.c: Likewise.
4701         * config/darwin.c: Likewise.
4702         * config/darwin-c.c: Likewise.
4703         * config/epiphany/epiphany.c: Likewise.
4704         * config/epiphany/mode-switch-use.c: Likewise.
4705         * config/epiphany/resolve-sw-modes.c: Likewise.
4706         * config/fr30/fr30.c: Likewise.
4707         * config/frv/frv.c: Likewise.
4708         * config/ft32/ft32.c: Likewise.
4709         * config/h8300/h8300.c: Likewise.
4710         * config/i386/i386.c: Likewise.
4711         * config/i386/winnt.c: Likewise.
4712         * config/ia64/ia64.c: Likewise.
4713         * config/iq2000/iq2000.c: Likewise.
4714         * config/lm32/lm32.c: Likewise.
4715         * config/m32c/m32c.c: Likewise.
4716         * config/m32r/m32r.c: Likewise.
4717         * config/m68k/m68k.c: Likewise.
4718         * config/mcore/mcore.c: Likewise.
4719         * config/mep/mep.c: Likewise.
4720         * config/microblaze/microblaze.c: Likewise.
4721         * config/mips/mips.c: Likewise.
4722         * config/mmix/mmix.c: Likewise.
4723         * config/mn10300/mn10300.c: Likewise.
4724         * config/moxie/moxie.c: Likewise.
4725         * config/msp430/msp430.c: Likewise.
4726         * config/nds32/nds32.c: Likewise.
4727         * config/nds32/nds32-cost.c: Likewise.
4728         * config/nds32/nds32-fp-as-gp.c: Likewise.
4729         * config/nds32/nds32-intrinsic.c: Likewise.
4730         * config/nds32/nds32-isr.c: Likewise.
4731         * config/nds32/nds32-md-auxiliary.c: Likewise.
4732         * config/nds32/nds32-memory-manipulation.c: Likewise.
4733         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4734         * config/nds32/nds32-predicates.c: Likewise.
4735         * config/nios2/nios2.c: Likewise.
4736         * config/nvptx/nvptx.c: Likewise.
4737         * config/pa/pa.c: Likewise.
4738         * config/pdp11/pdp11.c: Likewise.
4739         * config/rl78/rl78.c: Likewise.
4740         * config/rs6000/rs6000.c: Likewise.
4741         * config/rx/rx.c: Likewise.
4742         * config/s390/s390.c: Likewise.
4743         * config/sh/sh.c: Likewise.
4744         * config/sh/sh-mem.cc: Likewise.
4745         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4746         * config/sh/sh_treg_combine.cc: Likewise.
4747         * config/sparc/sparc.c: Likewise.
4748         * config/spu/spu.c: Likewise.
4749         * config/stormy16/stormy16.c: Likewise.
4750         * config/tilegx/tilegx.c: Likewise.
4751         * config/tilepro/tilepro.c: Likewise.
4752         * config/v850/v850.c: Likewise.
4753         * config/vax/vax.c: Likewise.
4754         * config/visium/visium.c: Likewise.
4755         * config/xtensa/xtensa.c: Likewise.
4757 2015-07-10  Richard Biener  <rguenther@suse.de>
4759         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
4760         (decision_tree::gen_gimple): Likewise.
4761         (decision_tree::gen_generic): Likewise.
4763 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
4765         PR target/66813
4766         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
4767         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
4769 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
4771         PR middle-end/66820
4772         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
4773         or ORT_TASK contexts.
4774         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
4775         is non-zero.
4777 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4779         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
4780         above function.
4782 2015-07-10  Tom de Vries  <tom@codesourcery.com>
4784         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
4785         insert nit + 1 bound.
4787 2015-07-10  Richard Biener  <rguenther@suse.de>
4789         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
4790         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
4791         (if_convertible_loop_p_1): For this always compute bb predicates.
4792         (if_convertible_loop_p): And free them.
4794 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4796         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4797         in dump message.
4799 2015-07-10  Richard Biener  <rguenther@suse.de>
4801         PR tree-optimization/66823
4802         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
4803         inverted predicate.
4805 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
4807         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
4808         to handle mips[32|64]r3 and mips[32|64]r5.
4810 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
4812         PR middle-end/66633
4813         * tree-nested.c (get_static_chain): Or in a flag into
4814         info->static_chain_added.
4815         (get_frame_field, get_nonlocal_debug_decl): Likewise.
4816         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
4817         2015-07-01 changes.
4818         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
4819         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
4820         add it to clauses.
4822         PR tree-optimization/66718
4823         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
4824         field.
4825         (vect_simd_lane_linear): New function.
4826         (vectorizable_simd_clone_call): Support using linear arguments for
4827         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
4829 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4831         PR target/66821
4832         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
4834 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4836         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
4837         Use machine mode, not enum machine_mode in the prototype.
4839         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
4840         classify 128-bit floating point support.
4841         (FLOAT128_IBM_P): Likewise.
4842         (FLOAT128_VECTOR_P): Likewise.
4843         (FLOAT128_2REG_P): Likewise.
4844         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
4845         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
4846         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4847         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4849         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
4850         tests against TFmode/TDmode, since those modes do not use VSX
4851         addresses.
4852         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
4853         support.
4854         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
4855         tests against TFmode, etc.
4856         (invalid_e500_subreg): Add tests against IFmode/KFmode.
4857         (reg_offset_addressing_ok_p): Likewise.
4858         (rs6000_legitimate_offset_address_p): Likewise.
4859         (rs6000_legitimize_address): Likewise.
4860         (rs6000_legitimize_reload_address): Likewise.
4861         (rs6000_legitimate_address_p): Clean up tests against TFmode and
4862         TDmode to use the new helper macros, which will include IFmode and
4863         KFmode.
4864         (rs6000_emit_move): Likewise.
4865         (rs6000_darwin64_record_arg_recurse): Likewise.
4866         (print_operand): Likewise.
4867         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
4868         that uses a single vector register as a vector and not as a
4869         floating point register in terms of the calling sequence.
4870         (rs6000_discover_homogeneous_aggregate): Likewise.
4871         (rs6000_return_in_memory): Likewise.
4872         (init_cumulative_args): Likewise.
4873         (rs6000_function_arg_boundary): Likewise.
4874         (rs6000_function_arg_advance_1): Likewise.
4875         (rs6000_function_arg): Likewise.
4876         (rs6000_pass_by_reference): Likewise.
4877         (rs6000_gimplify_va_arg): Likewise.
4878         (rs6000_secondary_reload_memory): Use machine_mode not enum
4879         machine mode.
4880         (rs6000_split_multireg_move): Use new helper macros.
4881         (spe_func_has_64bit_regs_p): Likewise.
4882         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
4883         (output_toc): Use new helper macros.
4884         (rs6000_register_move_cost): Likewise.
4885         (rs6000_function_value): Add IEEE 128-bit floating point calling
4886         sequence support.
4887         (rs6000_libcall_value): Likewise.
4888         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
4889         floating point support.
4890         (rs6000_vector_mode_supported_p): Likewise.
4892 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
4894         PR rtl-optimization/66782
4895         * lra-int.h (struct lra_insn_recog_data): Add comment about
4896         clobbered hard regs for arg_hard_regs.
4897         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4898         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4899         Add condition for processing used hard regs.
4900         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4901         Process clobbered hard regs.
4903 2015-07-09  Michael Matz  <matz@suse.de>
4905         * genmatch.c (fprintf_indent): New function.
4906         (operand::gen_transform): Add indent parameter.
4907         (expr::gen_transform, c_expr::gen_transform,
4908         capture::gen_transform): Ditto and use fprintf_indent.
4909         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4910         (dt_operand::gen, dt_operand::gen_predicate,
4911         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4912         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4913         (decision_tree::gen_gimple): Adjust calls and indent generated
4914         code.
4915         (decision_tree::gen_generic): Ditto.
4916         (write_predicate): Ditto.
4918 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
4920         PR target/66814
4921         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4922         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4923         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4924         {GENERAL,SSE,MMX}_REG_P where appropriate.
4926 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4928         * lto-streamer.h: Don't include target.h and alloc-pool.h.
4929         * builtins.c: Adjust includes.
4930         * gimple.c: Likewise.
4931         * ipa-icf.c: Likewise.
4932         * lto-opts.c: Likewise.
4933         * ipa-reference.c: Likewise.
4934         * lto-section-out.c: Likewise.
4935         * lto-streamer-in.c: Likewise.
4936         * lto-streamer-out.c: Likewise.
4937         * opts-global.c: Likewise.
4938         * symtab.c: Likewise.
4939         * tree-chkp.c: Likewise.
4940         * tree-ssa-live.c: Likewise.
4941         * tree-streamer-in.c: Likewise.
4942         * tree-streamer-out.c: Likewise.
4943         * config/darwin.c: Likewise.
4944         * config/i386/winnt.c: Likewise.
4946 2015-07-09  Richard Biener  <rguenther@suse.de>
4948         * genmatch.c (struct expr): Add force_single_use flag.
4949         (expr::expr): Add copy constructor.
4950         (capture_info::walk_match): Gather force_single_use captures.
4951         (expr::gen_transform): Use possibly NULLified sequence.
4952         (dt_simplify::gen): Apply single-use restrictions by NULLifying
4953         seq if any constrained expr is not single-use.
4954         (parser::parse_expr): Refactor to allow multiple flags.  Handle
4955         's' flag to force an expression have a single-use if the pattern
4956         simplifies to more than one statement.
4957         * match.pd: Convert most single_use conditionals to :s flags.
4959 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4961         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
4962         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4963         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4965 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4967         * flags.h: Don't include flag-types.h or options.h.
4968         * opts-common.c: Adjust includes.
4969         * opts-global.c: Likewise.
4970         * common/config/epiphany/epiphany-common.c: Likewise.
4972 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4974         PR target/66818
4975         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
4976         for IA MCU.
4978 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4980         PR target/66817
4981         * config/i386/i386.c (ix86_return_in_memory): Return true
4982         if int_size_in_bytes returns negative for IA MCU.
4984 2015-07-09  Marek Polacek  <polacek@redhat.com>
4986         PR tree-optimization/66718
4987         * Makefile.in (OBJS): Add gimple-laddress.o.
4988         * passes.def: Schedule pass_laddress.
4989         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
4990         * tree-pass.h (make_pass_laddress): Declare.
4991         * gimple-laddress.c: New file.
4993 2015-07-09  Richard Biener  <rguenther@suse.de>
4995         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
4997 2015-07-09  Richard Biener  <rguenther@suse.de>
4999         PR tree-optimization/66807
5000         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
5002 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
5004         * function.c (stack_protect_epilogue): Use if rather than switch for
5005         check targetm.have_stack_protect_test.
5007 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5009         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
5010         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
5011         * config/arc/arc.h: Likewise.
5012         * config/arm/arm.h: Likewise.
5013         * config/bfin/bfin.h: Likewise.
5014         * config/epiphany/epiphany.h: Likewise.
5015         * config/frv/frv.h: Likewise.
5016         * config/ia64/ia64.h: Likewise.
5017         * config/iq2000/iq2000.h: Likewise.
5018         * config/lm32/lm32.h: Likewise.
5019         * config/m32r/m32r.h: Likewise.
5020         * config/mcore/mcore.h: Likewise.
5021         * config/mep/mep.h: Likewise.
5022         * config/microblaze/microblaze.h: Likewise.
5023         * config/mips/mips.h: Likewise.
5024         * config/mmix/mmix.h: Likewise.
5025         * config/mn10300/mn10300.h: Likewise.
5026         * config/nds32/nds32.h: Likewise.
5027         * config/nios2/nios2.h: Likewise.
5028         * config/pa/pa.h: Likewise.
5029         * config/rl78/rl78.h: Likewise.
5030         * config/sh/sh.h: Likewise.
5031         * config/sparc/sparc.h: Likewise.
5032         * config/stormy16/stormy16.h: Likewise.
5033         * config/tilegx/tilegx.h: Likewise.
5034         * config/tilepro/tilepro.h: Likewise.
5035         * config/v850/v850.h: Likewise.
5036         * config/xtensa/xtensa.h: Likewise.
5037         * doc/tm.texi: Regenerate.
5038         * doc/tm.texi.in: Adjust.
5039         * combine.c (simplify_set): Likewise.
5040         (simplify_comparison): Likewise.
5041         * expr.c (store_constructor): Likewise.
5042         * internal-fn.c (expand_arith_overflow): Likewise.
5043         * reload.c (push_reload): Likewise.
5044         (find_reloads): Likewise.
5045         (find_reloads_subreg_address): Likewise.
5046         * reload1.c (eliminate_regs_1): Likewise.
5047         * rtlanal.c (nonzero_bits1): Likewise.
5048         (num_sign_bit_copies1): Likewise.
5049         * simplify-rtx.c (simplify_truncation): Likewise.
5051 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5053         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
5054         of AUTO_INC_DEC with the preprocessor.
5055         * combine.c (combine_instructions): Likewise.
5056         (can_combine_p): Likewise.
5057         (try_combine): Likewise.
5058         * emit-rtl.c (try_split): Likewise.
5059         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5060         * lower-subreg.c (resolve_simple_move): Likewise.
5061         * lra.c (update_inc_notes): Likewise.
5062         * recog.c (asm_operand_ok): Likewise.
5063         (constrain_operands): Likewise.
5064         * regrename.c (scan_rtx_address): Likewise.
5065         * reload.c (update_auto_inc_notes): Likewise.
5066         (reg_inc_found_and_valid_p): Likewise.
5067         * reload1.c (reload): Likewise.
5068         (emit_input_reload_insns): Likewise.
5069         (delete_output_reload): Likewise.
5070         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5071         * valtrack.c (cleanup_auto_inc_dec): Likewise.
5073 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5075         * rtl.h: Always define AUTO_INC_DEC.
5076         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
5077         * combine.c (combine_instructions): Likewise.
5078         (can_combine_p): Likewise.
5079         (try_combine): Likewise.
5080         * emit-rtl.c (try_split): Likewise.
5081         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5082         * lower-subreg.c (resolve_simple_move): Likewise.
5083         * lra.c (update_inc_notes): Likewise.
5084         * recog.c (asm_operand_ok): Likewise.
5085         (constrain_operands): Likewise.
5086         * regrename.c (scan_rtx_address): Likewise.
5087         * reload.c (update_auto_inc_notes): Likewise.
5088         (find_equiv_reg): Likewise.
5089         * reload1.c (reload): Likewise.
5090         (reload_as_needed): Likewise.
5091         (choose_reload_regs): Likewise.
5092         (emit_input_reload_insns): Likewise.
5093         (delete_output_reload): Likewise.
5094         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5095         * valtrack.c (cleanup_auto_inc_dec): Likewise.
5097 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5099         * combine.c (can_combine_def_p): Don't check the value of
5100         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
5101         (combinable_i3pat): Likewise.
5102         (mark_used_regs_combine): Likewise.
5103         * regrename.c (rename_chains): Likewise.
5104         * reload.c (find_reloads_address): Likewise.
5105         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5107 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5109         * combine.c (update_rsp_from_reg_equal): Don't check if
5110         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
5111         (reg_nonzero_bits_for_combine): Likewise.
5112         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
5113         1.
5114         * config/frv/frv.h: Likewise.
5115         * config/lm32/lm32.h: Likewise.
5116         * config/mep/mep.h: Likewise.
5117         * config/mips/mips.h: Likewise.
5118         * config/rs6000/rs6000.h: Likewise.
5119         * config/sh/sh.h: Likewise.
5120         * config/tilegx/tilegx.h (enum reg_class): Likewise.
5121         * config/tilepro/tilepro.h: Likewise.
5122         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
5123         * doc/tm.texi: Regenerate.
5124         * doc/tm.texi.in: Adjust.
5125         * rtlanal.c (nonzero_bits1): Likewise.
5127 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5129         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
5130         with the preprocessor.
5131         (combine_instructions): Likewise.
5132         (try_combine): Likewise.
5133         (subst): Likewise.
5134         (distribute_notes): Likewise.
5136 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5138         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
5139         defined.
5140         (simplify_set): Likewise.
5141         * cse.c (cse_insn): Likewise.
5142         * fold-const.c (fold_single_bit_test): Likewise.
5143         (fold_unary_loc): Likewise.
5144         * postreload.c (reload_cse_simplify_set): Likewise.
5145         (reload_cse_simplify_operands): Likewise.
5147 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
5149         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
5150         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
5152 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
5154         PR target/66746
5155         * config/i386/x86intrin.h: Include <adxintrin.h> even if
5156         __iamcu__ is defined.
5158 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
5160         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
5162 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
5164         PR target/66523
5165         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
5166         names from preservation.
5168 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
5170         PR target/66806
5171         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
5172         change for IAMCU.
5173         (function_arg_advance_32): Don't pass vectors in registers for
5174         IAMCU.
5175         (function_arg_32): Likewise.
5176         (ix86_return_in_memory): Don't return vectors in registers for
5177         IAMCU.
5179 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
5181         PR middle-end/66334
5182         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
5183         hard regno live at the start of BB with incoming abnormal edges.
5184         * lra-lives.c (process_bb_lives): Ditto.
5186 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
5188         PR libgomp/65099
5189         * config/nvptx/mkoffload.c (main): Create an offload image only in
5190         64-bit configurations.
5192 2015-07-08  Martin Liska  <mliska@suse.cz>
5194         PR bootstrap/66744
5195         * tree-sra.c (create_access_1): Call ctor without brackets.
5196         (create_artificial_child_access): Likewise.
5198 2015-07-08  Richard Biener  <rguenther@suse.de>
5200         PR tree-optimization/66793
5201         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
5202         Properly split the block after stmts ending it.
5204 2015-07-08  Richard Biener  <rguenther@suse.de>
5206         PR tree-optimization/66794
5207         * passes.c (execute_function_todo): Assert that post-dominators
5208         are not computed.
5209         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
5210         Free post-dominators.
5212 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5214         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
5215         with early exit.
5217 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
5219         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
5220         more than or equal 8 and less than 32 when optimizing for size.
5222 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5224         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
5225         COSTS_N_INSNS (1) and increment it appropriately throughout the
5226         function.
5228 2015-07-08  Richard Biener  <rguenther@suse.de>
5230         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
5232 2015-07-08  Alan Modra  <amodra@gmail.com>
5234         * target.def (rtx_costs): Remove "code" param, add "mode".
5235         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
5236         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
5237         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
5238         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
5239         call.  Track mode when given in rtx.
5240         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
5241         (default_address_cost): Pass Pmode to rtx_cost.
5242         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
5243         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
5244         with NULL set.
5245         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
5246         (notreg_cost): Add mode param.  Use it.
5247         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
5248         mode param and pass to set_src_cost.  Update all calls.
5249         (hash_scan_set): Formatting.
5250         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
5251         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
5252         * hooks.h: Ditto.
5253         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
5254         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
5255         emit_store_flag): Update set_src_cost and rtx_cost calls.
5256         * auto-inc-dec.c (attempt_change): Likewise.
5257         * calls.c (precompute_register_parameters): Likewise.
5258         * combine.c (expand_compound_operation, make_extraction,
5259         force_to_mode, distribute_and_simplify_rtx): Likewise.
5260         * dojump.c (prefer_and_bit_test): Likewise.
5261         * dse.c (find_shift_sequence): Likewise.
5262         * expr.c (compress_float_constant): Likewise.
5263         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5264         * ifcvt.c (noce_try_sign_mask): Likewise.
5265         * loop-doloop.c (doloop_optimize): Likewise.
5266         * loop-invariant.c (create_new_invariant): Likewise.
5267         * lower-subreg.c (shift_cost, compute_costs): Likewise.
5268         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
5269         lshift_cheap_p): Likewise.
5270         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
5271         try_replace_in_use, reload_cse_move2add): Likewise.
5272         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
5273         Likewise.
5274         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5275         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5276         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
5277         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5278         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
5279         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
5280         to rtx_cost calls.
5281         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
5282         * config/arc/arc.c (arc_rtx_costs): Likewise.
5283         * config/arm/arm.c (arm_rtx_costs): Likewise.
5284         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
5285         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5286         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5287         * config/cris/cris.c (cris_rtx_costs): Likewise.
5288         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
5289         * config/frv/frv.c (frv_rtx_costs): Likewise.
5290         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5291         * config/i386/i386.c (ix86_rtx_costs): Likewise.
5292         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5293         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5294         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5295         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5296         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5297         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5298         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5299         * config/mep/mep.c (mep_rtx_cost): Likewise.
5300         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5301         * config/mips/mips.c (mips_rtx_costs): Likewise.
5302         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5303         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
5304         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
5305         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
5306         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
5307         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
5308         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
5309         * config/pa/pa.c (hppa_rtx_costs): Likewise.
5310         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5311         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
5312         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5313         * config/s390/s390.c (s390_rtx_costs): Likewise.
5314         * config/sh/sh.c (sh_rtx_costs): Likewise.
5315         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5316         * config/spu/spu.c (spu_rtx_costs): Likewise.
5317         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5318         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
5319         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
5320         * config/v850/v850.c (v850_rtx_costs): Likewise.
5321         * config/vax/vax.c (vax_rtx_costs): Likewise.
5322         * config/visium/visium.c (visium_rtx_costs): Likewise.
5323         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5324         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
5325         "code" param, and pass as outer_code to first rtx_cost call.  Pass
5326         mode to rtx_cost calls.
5327         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
5328         calls.
5329         (aarch64_rtx_costs_wrapper): Update.
5330         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
5331         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
5332         rtx_cost calls.
5333         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
5334         and rtx_cost calls.
5335         (avr_operand_rtx_cost): Similarly.
5336         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
5337         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
5338         * config/mips/mips.c (mips_stack_address_p): Comment typo.
5339         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
5340         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
5341         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
5342         rtx_cost.
5343         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
5344         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
5345         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
5346         * doc/tm.texi: Regenerate.
5348 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
5350         * tree-core.h: Include symtab.h.
5351         * rtl.h: Include hard-reg-set.h but not flags.h.
5352         (HARD_CONST): Remove condition compilation involving HARD_CONST since
5353         hard-reg-set.h is always included.
5354         * regs.h: Don't include hard-reg-set.h or rtl.h.
5355         * cfg.h: Include dominance.h.
5356         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
5357         * backend.h: New.  Aggregate commonly used backend header files.
5358         * gimple-ssa.h: Don't include tree-hasher.h.
5359         * ssa.h: New.  Aggregate commonly used SSA header files.
5360         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
5361         * sel-sched-ir.h: Flatten includes.
5362         * lra-int.h: Flatten completely.
5363         * sel-sched-dump.h: Flatten includes.
5364         * ira-int.h: Flatten includes.
5365         * gimple-streamer.h: Remove all includes.
5366         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
5367         * resource.h: Flatten hard-reg-set.h and df.h.
5368         * sched-int.h: Flatten insn-arrt.h and df.h.
5369         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
5370         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
5371         * genattrtab.c (write_header): Adjust generated includes.
5372         * genautomata.c (main): Likewise.
5373         * genconditions.c (write-header): Likewise.
5374         * genemit.c (main): Likewise.
5375         * gengtype.c (open_base_files): Likewise.
5376         * genopinit.c (main): Likewise.
5377         * genoutput.c (output_prologue): Likewise.
5378         * genpeep.c (main): Likewise.
5379         * genpreds.c (write_insn_preds_c): Likewise.
5380         * genrecog.c (write_header): Likewise.
5381         * alias.c: Adjust includes.
5382         * asan.c: Likewise.
5383         * attribs.c: Likewise.
5384         * auto-inc-dec.c: Likewise.
5385         * auto-profile.c: Likewise.
5386         * bb-reorder.c: Likewise.
5387         * bt-load.c: Likewise.
5388         * builtins.c: Likewise.
5389         * caller-save.c: Likewise.
5390         * calls.c: Likewise.
5391         * ccmp.c: Likewise.
5392         * cfg.c: Likewise.
5393         * cfganal.c: Likewise.
5394         * cfgbuild.c: Likewise.
5395         * cfgcleanup.c: Likewise.
5396         * cfgexpand.c: Likewise.
5397         * cfghooks.c: Likewise.
5398         * cfgloop.c: Likewise.
5399         * cfgloopanal.c: Likewise.
5400         * cfgloopmanip.c: Likewise.
5401         * cfgrtl.c: Likewise.
5402         * cgraph.c: Likewise.
5403         * cgraphbuild.c: Likewise.
5404         * cgraphclones.c: Likewise.
5405         * cgraphunit.c: Likewise.
5406         * cilk-common.c: Likewise.
5407         * combine-stack-adj.c: Likewise.
5408         * combine.c: Likewise.
5409         * compare-elim.c: Likewise.
5410         * convert.c: Likewise.
5411         * coverage.c: Likewise.
5412         * cppbuiltin.c: Likewise.
5413         * cprop.c: Likewise.
5414         * cse.c: Likewise.
5415         * cselib.c: Likewise.
5416         * data-streamer-in.c: Likewise.
5417         * data-streamer-out.c: Likewise.
5418         * data-streamer.c: Likewise.
5419         * dbxout.c: Likewise.
5420         * dce.c: Likewise.
5421         * ddg.c: Likewise.
5422         * debug.c: Likewise.
5423         * df-core.c: Likewise.
5424         * df-problems.c: Likewise.
5425         * df-scan.c: Likewise.
5426         * dfp.c: Likewise.
5427         * dojump.c: Likewise.
5428         * dominance.c: Likewise.
5429         * domwalk.c: Likewise.
5430         * double-int.c: Likewise.
5431         * dse.c: Likewise.
5432         * dumpfile.c: Likewise.
5433         * dwarf2asm.c: Likewise.
5434         * dwarf2cfi.c: Likewise.
5435         * dwarf2out.c: Likewise.
5436         * emit-rtl.c: Likewise.
5437         * et-forest.c: Likewise.
5438         * except.c: Likewise.
5439         * explow.c: Likewise.
5440         * expmed.c: Likewise.
5441         * expr.c: Likewise.
5442         * final.c: Likewise.
5443         * fixed-value.c: Likewise.
5444         * fold-const.c: Likewise.
5445         * function.c: Likewise.
5446         * fwprop.c: Likewise.
5447         * gcc-plugin.h: Likewise.
5448         * gcse-common.c: Likewise.
5449         * gcse.c: Likewise.
5450         * generic-match-head.c: Likewise.
5451         * ggc-page.c: Likewise.
5452         * gimple-builder.c: Likewise.
5453         * gimple-expr.c: Likewise.
5454         * gimple-fold.c: Likewise.
5455         * gimple-iterator.c: Likewise.
5456         * gimple-low.c: Likewise.
5457         * gimple-match-head.c: Likewise.
5458         * gimple-pretty-print.c: Likewise.
5459         * gimple-ssa-isolate-paths.c: Likewise.
5460         * gimple-ssa-strength-reduction.c: Likewise.
5461         * gimple-streamer-in.c: Likewise.
5462         * gimple-streamer-out.c: Likewise.
5463         * gimple-walk.c: Likewise.
5464         * gimple.c: Likewise.
5465         * gimplify-me.c: Likewise.
5466         * gimplify.c: Likewise.
5467         * godump.c: Likewise.
5468         * graph.c: Likewise.
5469         * graphite-blocking.c: Likewise.
5470         * graphite-dependences.c: Likewise.
5471         * graphite-interchange.c: Likewise.
5472         * graphite-isl-ast-to-gimple.c: Likewise.
5473         * graphite-optimize-isl.c: Likewise.
5474         * graphite-poly.c: Likewise.
5475         * graphite-scop-detection.c: Likewise.
5476         * graphite-sese-to-poly.c: Likewise.
5477         * graphite.c: Likewise.
5478         * haifa-sched.c: Likewise.
5479         * hw-doloop.c: Likewise.
5480         * ifcvt.c: Likewise.
5481         * init-regs.c: Likewise.
5482         * internal-fn.c: Likewise.
5483         * ipa-chkp.c: Likewise.
5484         * ipa-comdats.c: Likewise.
5485         * ipa-cp.c: Likewise.
5486         * ipa-devirt.c: Likewise.
5487         * ipa-icf-gimple.c: Likewise.
5488         * ipa-icf.c: Likewise.
5489         * ipa-inline-analysis.c: Likewise.
5490         * ipa-inline-transform.c: Likewise.
5491         * ipa-inline.c: Likewise.
5492         * ipa-polymorphic-call.c: Likewise.
5493         * ipa-profile.c: Likewise.
5494         * ipa-prop.c: Likewise.
5495         * ipa-pure-const.c: Likewise.
5496         * ipa-ref.c: Likewise.
5497         * ipa-reference.c: Likewise.
5498         * ipa-split.c: Likewise.
5499         * ipa-utils.c: Likewise.
5500         * ipa-visibility.c: Likewise.
5501         * ipa.c: Likewise.
5502         * ira-build.c: Likewise.
5503         * ira-color.c: Likewise.
5504         * ira-conflicts.c: Likewise.
5505         * ira-costs.c: Likewise.
5506         * ira-emit.c: Likewise.
5507         * ira-lives.c: Likewise.
5508         * ira.c: Likewise.
5509         * jump.c: Likewise.
5510         * langhooks.c: Likewise.
5511         * lcm.c: Likewise.
5512         * loop-doloop.c: Likewise.
5513         * loop-init.c: Likewise.
5514         * loop-invariant.c: Likewise.
5515         * loop-iv.c: Likewise.
5516         * loop-unroll.c: Likewise.
5517         * lower-subreg.c: Likewise.
5518         * lra-assigns.c: Likewise.
5519         * lra-coalesce.c: Likewise.
5520         * lra-constraints.c: Likewise.
5521         * lra-eliminations.c: Likewise.
5522         * lra-lives.c: Likewise.
5523         * lra-remat.c: Likewise.
5524         * lra-spills.c: Likewise.
5525         * lra.c: Likewise.
5526         * lto-cgraph.c: Likewise.
5527         * lto-compress.c: Likewise.
5528         * lto-opts.c: Likewise.
5529         * lto-section-in.c: Likewise.
5530         * lto-section-out.c: Likewise.
5531         * lto-streamer-in.c: Likewise.
5532         * lto-streamer-out.c: Likewise.
5533         * lto-streamer.c: Likewise.
5534         * mcf.c: Likewise.
5535         * mode-switching.c: Likewise.
5536         * modulo-sched.c: Likewise.
5537         * omega.c: Likewise.
5538         * omp-low.c: Likewise.
5539         * optabs.c: Likewise.
5540         * opts-global.c: Likewise.
5541         * passes.c: Likewise.
5542         * plugin.c: Likewise.
5543         * postreload-gcse.c: Likewise.
5544         * postreload.c: Likewise.
5545         * predict.c: Likewise.
5546         * print-rtl.c: Likewise.
5547         * print-tree.c: Likewise.
5548         * profile.c: Likewise.
5549         * real.c: Likewise.
5550         * realmpfr.c: Likewise.
5551         * recog.c: Likewise.
5552         * ree.c: Likewise.
5553         * reg-stack.c: Likewise.
5554         * regcprop.c: Likewise.
5555         * reginfo.c: Likewise.
5556         * regrename.c: Likewise.
5557         * regstat.c: Likewise.
5558         * reload.c: Likewise.
5559         * reload1.c: Likewise.
5560         * reorg.c: Likewise.
5561         * resource.c: Likewise.
5562         * rtl-chkp.c: Likewise.
5563         * rtlanal.c: Likewise.
5564         * rtlhooks.c: Likewise.
5565         * sanopt.c: Likewise.
5566         * sched-deps.c: Likewise.
5567         * sched-ebb.c: Likewise.
5568         * sched-rgn.c: Likewise.
5569         * sched-vis.c: Likewise.
5570         * sdbout.c: Likewise.
5571         * sel-sched-dump.c: Likewise.
5572         * sel-sched-ir.c: Likewise.
5573         * sel-sched.c: Likewise.
5574         * sese.c: Likewise.
5575         * shrink-wrap.c: Likewise.
5576         * simplify-rtx.c: Likewise.
5577         * stack-ptr-mod.c: Likewise.
5578         * stmt.c: Likewise.
5579         * stor-layout.c: Likewise.
5580         * store-motion.c: Likewise.
5581         * stringpool.c: Likewise.
5582         * symtab.c: Likewise.
5583         * target-globals.c: Likewise.
5584         * targhooks.c: Likewise.
5585         * toplev.c: Likewise.
5586         * tracer.c: Likewise.
5587         * trans-mem.c: Likewise.
5588         * tree-affine.c: Likewise.
5589         * tree-browser.c: Likewise.
5590         * tree-call-cdce.c: Likewise.
5591         * tree-cfg.c: Likewise.
5592         * tree-cfgcleanup.c: Likewise.
5593         * tree-chkp-opt.c: Likewise.
5594         * tree-chkp.c: Likewise.
5595         * tree-chrec.c: Likewise.
5596         * tree-complex.c: Likewise.
5597         * tree-data-ref.c: Likewise.
5598         * tree-dfa.c: Likewise.
5599         * tree-diagnostic.c: Likewise.
5600         * tree-dump.c: Likewise.
5601         * tree-eh.c: Likewise.
5602         * tree-emutls.c: Likewise.
5603         * tree-if-conv.c: Likewise.
5604         * tree-inline.c: Likewise.
5605         * tree-into-ssa.c: Likewise.
5606         * tree-iterator.c: Likewise.
5607         * tree-loop-distribution.c: Likewise.
5608         * tree-nested.c: Likewise.
5609         * tree-nrv.c: Likewise.
5610         * tree-object-size.c: Likewise.
5611         * tree-outof-ssa.c: Likewise.
5612         * tree-parloops.c: Likewise.
5613         * tree-phinodes.c: Likewise.
5614         * tree-predcom.c: Likewise.
5615         * tree-pretty-print.c: Likewise.
5616         * tree-profile.c: Likewise.
5617         * tree-scalar-evolution.c: Likewise.
5618         * tree-sra.c: Likewise.
5619         * tree-ssa-address.c: Likewise.
5620         * tree-ssa-alias.c: Likewise.
5621         * tree-ssa-ccp.c: Likewise.
5622         * tree-ssa-coalesce.c: Likewise.
5623         * tree-ssa-copy.c: Likewise.
5624         * tree-ssa-copyrename.c: Likewise.
5625         * tree-ssa-dce.c: Likewise.
5626         * tree-ssa-dom.c: Likewise.
5627         * tree-ssa-dse.c: Likewise.
5628         * tree-ssa-forwprop.c: Likewise.
5629         * tree-ssa-ifcombine.c: Likewise.
5630         * tree-ssa-live.c: Likewise.
5631         * tree-ssa-loop-ch.c: Likewise.
5632         * tree-ssa-loop-im.c: Likewise.
5633         * tree-ssa-loop-ivcanon.c: Likewise.
5634         * tree-ssa-loop-ivopts.c: Likewise.
5635         * tree-ssa-loop-manip.c: Likewise.
5636         * tree-ssa-loop-niter.c: Likewise.
5637         * tree-ssa-loop-prefetch.c: Likewise.
5638         * tree-ssa-loop-unswitch.c: Likewise.
5639         * tree-ssa-loop.c: Likewise.
5640         * tree-ssa-math-opts.c: Likewise.
5641         * tree-ssa-operands.c: Likewise.
5642         * tree-ssa-phiopt.c: Likewise.
5643         * tree-ssa-phiprop.c: Likewise.
5644         * tree-ssa-pre.c: Likewise.
5645         * tree-ssa-propagate.c: Likewise.
5646         * tree-ssa-reassoc.c: Likewise.
5647         * tree-ssa-sccvn.c: Likewise.
5648         * tree-ssa-scopedtables.c: Likewise.
5649         * tree-ssa-sink.c: Likewise.
5650         * tree-ssa-strlen.c: Likewise.
5651         * tree-ssa-structalias.c: Likewise.
5652         * tree-ssa-tail-merge.c: Likewise.
5653         * tree-ssa-ter.c: Likewise.
5654         * tree-ssa-threadedge.c: Likewise.
5655         * tree-ssa-threadupdate.c: Likewise.
5656         * tree-ssa-uncprop.c: Likewise.
5657         * tree-ssa-uninit.c: Likewise.
5658         * tree-ssa.c: Likewise.
5659         * tree-ssanames.c: Likewise.
5660         * tree-stdarg.c: Likewise.
5661         * tree-streamer-in.c: Likewise.
5662         * tree-streamer-out.c: Likewise.
5663         * tree-streamer.c: Likewise.
5664         * tree-switch-conversion.c: Likewise.
5665         * tree-tailcall.c: Likewise.
5666         * tree-vect-data-refs.c: Likewise.
5667         * tree-vect-generic.c: Likewise.
5668         * tree-vect-loop-manip.c: Likewise.
5669         * tree-vect-loop.c: Likewise.
5670         * tree-vect-patterns.c: Likewise.
5671         * tree-vect-slp.c: Likewise.
5672         * tree-vect-stmts.c: Likewise.
5673         * tree-vectorizer.c: Likewise.
5674         * tree-vrp.c: Likewise.
5675         * tree.c: Likewise.
5676         * tsan.c: Likewise.
5677         * ubsan.c: Likewise.
5678         * valtrack.c: Likewise.
5679         * value-prof.c: Likewise.
5680         * var-tracking.c: Likewise.
5681         * varasm.c: Likewise.
5682         * varpool.c: Likewise.
5683         * vmsdbgout.c: Likewise.
5684         * vtable-verify.c: Likewise.
5685         * web.c: Likewise.
5686         * wide-int.cc: Likewise.
5687         * xcoffout.c: Likewise.
5688         * config/aarch64/aarch64-builtins.c: Likewise.
5689         * config/aarch64/aarch64.c: Likewise.
5690         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5691         * config/alpha/alpha.c: Likewise.
5692         * config/arc/arc.c: Likewise.
5693         * config/arm/aarch-common.c: Likewise.
5694         * config/arm/arm-builtins.c: Likewise.
5695         * config/arm/arm-c.c: Likewise.
5696         * config/arm/arm.c: Likewise.
5697         * config/avr/avr-c.c: Likewise.
5698         * config/avr/avr-log.c: Likewise.
5699         * config/avr/avr.c: Likewise.
5700         * config/bfin/bfin.c: Likewise.
5701         * config/c6x/c6x.c: Likewise.
5702         * config/cr16/cr16.c: Likewise.
5703         * config/cris/cris.c: Likewise.
5704         * config/darwin-c.c: Likewise.
5705         * config/darwin.c: Likewise.
5706         * config/epiphany/epiphany.c: Likewise.
5707         * config/epiphany/mode-switch-use.c: Likewise.
5708         * config/epiphany/resolve-sw-modes.c: Likewise.
5709         * config/fr30/fr30.c: Likewise.
5710         * config/frv/frv.c: Likewise.
5711         * config/ft32/ft32.c: Likewise.
5712         * config/h8300/h8300.c: Likewise.
5713         * config/i386/i386-c.c: Likewise.
5714         * config/i386/i386.c: Likewise.
5715         * config/i386/msformat-c.c: Likewise.
5716         * config/i386/winnt-cxx.c: Likewise.
5717         * config/i386/winnt-stubs.c: Likewise.
5718         * config/i386/winnt.c: Likewise.
5719         * config/ia64/ia64-c.c: Likewise.
5720         * config/ia64/ia64.c: Likewise.
5721         * config/iq2000/iq2000.c: Likewise.
5722         * config/lm32/lm32.c: Likewise.
5723         * config/m32c/m32c-pragma.c: Likewise.
5724         * config/m32c/m32c.c: Likewise.
5725         * config/m32r/m32r.c: Likewise.
5726         * config/m68k/m68k.c: Likewise.
5727         * config/mcore/mcore.c: Likewise.
5728         * config/mep/mep-pragma.c: Likewise.
5729         * config/mep/mep.c: Likewise.
5730         * config/microblaze/microblaze-c.c: Likewise.
5731         * config/microblaze/microblaze.c: Likewise.
5732         * config/mips/mips.c: Likewise.
5733         * config/mmix/mmix.c: Likewise.
5734         * config/mn10300/mn10300.c: Likewise.
5735         * config/moxie/moxie.c: Likewise.
5736         * config/msp430/msp430-c.c: Likewise.
5737         * config/msp430/msp430.c: Likewise.
5738         * config/nds32/nds32-cost.c: Likewise.
5739         * config/nds32/nds32-fp-as-gp.c: Likewise.
5740         * config/nds32/nds32-intrinsic.c: Likewise.
5741         * config/nds32/nds32-isr.c: Likewise.
5742         * config/nds32/nds32-md-auxiliary.c: Likewise.
5743         * config/nds32/nds32-memory-manipulation.c: Likewise.
5744         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5745         * config/nds32/nds32-predicates.c: Likewise.
5746         * config/nds32/nds32.c: Likewise.
5747         * config/nios2/nios2.c: Likewise.
5748         * config/nvptx/nvptx.c: Likewise.
5749         * config/pa/pa.c: Likewise.
5750         * config/pdp11/pdp11.c: Likewise.
5751         * config/rl78/rl78-c.c: Likewise.
5752         * config/rl78/rl78.c: Likewise.
5753         * config/rs6000/rs6000-c.c: Likewise.
5754         * config/rs6000/rs6000.c: Likewise.
5755         * config/rx/rx.c: Likewise.
5756         * config/s390/s390-c.c: Likewise.
5757         * config/s390/s390.c: Likewise.
5758         * config/sh/sh-c.c: Likewise.
5759         * config/sh/sh-mem.cc: Likewise.
5760         * config/sh/sh.c: Likewise.
5761         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5762         * config/sh/sh_treg_combine.cc: Likewise.
5763         * config/sol2-c.c: Likewise.
5764         * config/sol2-cxx.c: Likewise.
5765         * config/sol2-stubs.c: Likewise.
5766         * config/sol2.c: Likewise.
5767         * config/sparc/sparc-c.c: Likewise.
5768         * config/sparc/sparc.c: Likewise.
5769         * config/spu/spu-c.c: Likewise.
5770         * config/spu/spu.c: Likewise.
5771         * config/stormy16/stormy16.c: Likewise.
5772         * config/tilegx/mul-tables.c: Likewise.
5773         * config/tilegx/tilegx-c.c: Likewise.
5774         * config/tilegx/tilegx.c: Likewise.
5775         * config/tilepro/mul-tables.c: Likewise.
5776         * config/tilepro/tilepro-c.c: Likewise.
5777         * config/tilepro/tilepro.c: Likewise.
5778         * config/v850/v850-c.c: Likewise.
5779         * config/v850/v850.c: Likewise.
5780         * config/vax/vax.c: Likewise.
5781         * config/visium/visium.c: Likewise.
5782         * config/vms/vms-c.c: Likewise.
5783         * config/vms/vms.c: Likewise.
5784         * config/vxworks.c: Likewise.
5785         * config/xtensa/xtensa.c: Likewise.
5787 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
5789         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
5790         Remove operand constraints.  Change operand 2 predicate to
5791         nonmemory operand.  Limit const_int values to mode bitsize.  Only
5792         allow const_int values less than 32 when optimizing for size.
5793         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
5794         Remove operand constraints.
5795         (*bt<mode>): Use SImode for const_int values less than 32.
5796         (regmode): Remove mode attribute.
5798 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
5800         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5801         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
5802           moxie_legitimate_address_p): New functions.
5803           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5805 2015-07-07  Tom de Vries  <tom@codesourcery.com>
5807         PR tree-optimization/66642
5808         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
5809         header comment.  Rename split_edge variable to edge_at_split.  Split
5810         exit edge to create new loop exit bb.  Insert loop exit phis in new
5811         loop exit bb.
5813 2015-07-07  Tom de Vries  <tom@codesourcery.com>
5815         * tree-cfg.c (get_virtual_phi): New function.
5816         * tree-cfg.h (get_virtual_phi): Declare.
5817         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
5818         (rewrite_virtuals_into_loop_closed_ssa): New function.
5819         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
5820         Declare.
5821         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
5822         (transform_to_exit_first_loop_alt): Use
5823         rewrite_virtuals_into_loop_closed_ssa.
5825 2015-07-07  Richard Biener  <rguenther@suse.de>
5827         * fold-const.c (fold_binary_loc): Move
5828         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
5829         * match.pd: ... here.
5830         Add (X * C1) % C2 -> 0 simplification pattern derived from
5831         extract_muldiv_1.
5833 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
5835         PR target/66780
5836         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
5837         change for target/65249.
5839 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
5841         * symtab.c (address_matters_1): Fix typo in comment above.
5842         (can_increase_alignment_p): Likewise.
5844 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5846         * function.c (free_after_compilation): Clear PROP_cfg in
5847         f->curr_properties.
5849 2015-07-07  Richard Biener  <rguenther@suse.de>
5851         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
5852         add which use to.
5853         (add_control_edge): Remove excessive vertical space in dumping.
5854         (process_ssa_edge_worklist): Simulate at most one statement and
5855         return whether we did.  Do not simulate PHIs if they are in a
5856         BB not yet simulated.
5857         (ssa_propagate): Adjust to always drain the BB worklist whenever
5858         a BB is available there, likewise the VARYING edges list before
5859         the interesting edge list.
5861 2015-07-07  Christian Bruel  <christian.bruel@st.com>
5863         PR target/52144
5864         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
5866 2015-07-07  Richard Biener  <rguenther@suse.de>
5868         PR middle-end/66739
5869         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
5870         A - B.
5872 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
5874         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
5875         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
5876         Copy operand 0 to a temporary if !ext_register_operand.  Remove
5877         ancient extract_bit_field workaround.
5878         (insv<mode>_1): Rename from mov<mode>_insv_1.
5879         (*insvqi): Rename from *movqi_insv_2.
5880         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
5881         for renamed insvsi_1.
5882         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
5884 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
5886         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
5887         call to nvptx_reorg_subreg.
5889 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
5891         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5892         * graphite-dependencies.c, graphite-interchange.c,
5893         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5894         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5895         Likewise.
5897 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
5899         * match.pd: Remove element_mode inside HONOR_*.
5900         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5901         (~X | X -> -1, ~X ^ X -> -1): Merge.
5902         * tree.c (build_each_one_cst): New function.
5903         * tree.h (build_each_one_cst): Likewise.
5905 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5907         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5908         PROCESSOR_IAMCU.
5910 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
5912         * config.gcc <mips*-*-*>: Add fused-madd.opt.
5913         * config/mips/mips.opt (mfused-madd): Remove.
5914         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5915         * config/mips/mips.h (TARGET_MIPS8000): New.
5916         (ISA_HAS_FP_MADD4_MSUB4): Remove.
5917         (ISA_HAS_FP_MADDF_MSUBF): Remove.
5918         (ISA_HAS_FP_MADD3_MSUB3): Remove.
5919         (ISA_HAS_NMADD4_NMSUB4): Remove.
5920         (ISA_HAS_NMADD3_NMSUB3): Remove.
5921         (ISA_HAS_FUSED_MADD4): New.
5922         (ISA_HAS_UNFUSED_MADD4): New.
5923         (ISA_HAS_FUSED_MADDF): New.
5924         (ISA_HAS_FUSED_MADD3): New.
5925         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5926         (*fma<mode>4_madd3) New.
5927         (*fma<mode>4_madd4) New.
5928         (*fma<mode>4_maddf) New.
5929         (fms<mode>4) New.
5930         (*fms<mode>4_msub3) New.
5931         (*fms<mode>4_msub4) New.
5932         (fnma<mode>4) New.
5933         (*fnma<mode>4_nmadd3) New.
5934         (*fnma<mode>4_nmadd4) New.
5935         (fnms<mode>4) New.
5936         (*fnms<mode>4_nmsub3) New.
5937         (*fnms<mode>4_nmsub4) New.
5938         (*madd4<mode>) Modify to be unfused only.
5939         (*msub4<mode>) Modify to be unfused only.
5940         (*nmadd4<mode>) Modify to be unfused only.
5941         (*nmsub4<mode>) Modify to be unfused only.
5942         (*madd3<mode>) Remove.
5943         (*msub3<mode>) Remove.
5944         (*nmadd3<mode>) Remove.
5945         (*nmsub3<mode>) Remove.
5946         (*nmadd3<mode>_fastmath) Remove.
5947         (*nmsub3<mode>_fastmath) Remove.
5948         (*nmadd4<mode>_fastmath) Update condition.
5949         (*nmsub4<mode>_fastmath) Update condition.
5951 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
5953         PR target/65956
5954         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
5955         alignment attribute, exploring one level down for records and arrays.
5957 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
5959         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
5960         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
5961         Copy operand 1 to a temporary if !ext_register_operand.  Remove
5962         ancient extract_bit_field workaround.
5963         (*extv<mode>): Rename from *mov<mode>_extv_1.
5964         (*extvqi): Rename from *movqi_extv_1.
5965         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
5966         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
5967         to a temporary if !ext_register_operand.  Remove ancient
5968         extract_bit_field workaround.
5969         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
5970         (*extzvqi): Rename from *movqi_extzv_2.
5971         (*testqi_ext_3): Remove modes from const_int_operand predicated
5972         operands.  Add "n" constraint.
5973         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
5974         operand.  Add "J" constraint.
5975         (*btsq, *btrq, *btcq peephole2s): Remove mode from
5976         const_0_to_63 predicated operand.
5977         (regmode): New insn attribute.
5978         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
5979         to nonmemory_operand.  Use regmode insn attribute.
5980         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
5981         (*jcc_bt<mode>_mask): Remove mode from operand 3.
5982         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
5983         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
5984         operands.  Use "N" constraint instead of "n".
5986 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
5988         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
5990 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5992         PR target/66749
5993         * config/i386/i386.c (iamcu_cost): New.
5994         (m_IAMCU): Likewise.
5995         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
5996         (processor_target_table): Add an entry for "iamcu".
5997         (processor_alias_table): Likewise.
5998         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
5999         (ix86_adjust_cost): Likewise.
6000         (ia32_multipass_dfa_lookahead): Likewise.
6001         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
6002         * config/i386/x86-tune.def: Updated for m_IAMCU.
6004 2015-07-06  Richard Biener  <rguenther@suse.de>
6006         PR tree-optimization/66772
6007         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
6008         values are available in the PHI node BB when there are
6009         still unexecutable edges.
6011 2015-07-06  Richard Biener  <rguenther@suse.de>
6013         PR tree-optimization/66767
6014         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
6015         Make sure to build the alignment test on a SSA name without
6016         final alignment info valid only if the alignment test
6017         evaluates to true.
6019 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
6021         PR target/66620
6022         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
6023         loop start when inserting LSETUP.
6025 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
6027         PR target/53383
6028         * config/i386/i386.c (ix86_option_override_internal): Allow
6029         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
6031 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6033         * read-md.c (decimal_string): Rename to ...
6034         (md_decimal_string): ... this.
6035         (handle_enum): Reflect this.
6037 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6039         PR target/66731
6040         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
6042 2015-07-06  Richard Biener  <rguenther@suse.de>
6044         PR middle-end/66759
6045         * match.pd: Add missing constraint of y to REAL_CST in
6046         REAL_CST - x CMP y to y - CST CMP x simplification.
6048 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
6050         PR tree-optimization/66757
6051         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
6053 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
6054             Sandra Loosemore <sandra@codesourcery.com>
6056         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
6057         Delete extern declaration.
6058         (gprel_constant_p): Add extern declaration.
6059         * config/nios2/constraints.md ("S"): Use gprel_constant_p
6060         instead of nios2_symbol_ref_in_small_data_p.
6061         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
6062         (nios2_symbol_ref_in_small_data_p): Make static.
6063         (gprel_constant_p): Make non-static.
6065 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
6067         * doc/fragments.texi (Target Fragment): Convert debian.org
6068         link to use https.
6069         * doc/install.texi (Configuration): Ditto.
6071 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
6073         PR tree-optimization/66718
6074         * tree-vect-stmts.c (vectorizable_call): Replace uses of
6075         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
6077         PR tree-optimization/66718
6078         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
6079         vectorizable_load, vectorizable_condition): Move vectype,
6080         nunits, ncopies computation after checking what kind of statement
6081         stmt is.
6083 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6085         * target-insns.def (extv, extzv, insv): New targetm instruction
6086         patterns.
6087         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
6088         interface.
6089         * recog.c (simplify_while_replacing): Likewise.
6091 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6093         * target-insns.def (doloop_begin, doloop_end): New targetm
6094         instruction patterns.
6095         * loop-init.c: Include target.h.
6096         (pass_loop2::gate): Use the new targetm patterns instead of
6097         HAVE_*/gen_* interface.
6098         (pass_rtl_doloop::gate): Likewise.
6099         (pass_rtl_doloop::execute): Remove preprocessor condition.
6100         * hw-doloop.c: Build unconditionally.
6101         * loop-doloop.c: Likewise.
6102         (doloop_optimize): Use the new targetm patterns instead of
6103         HAVE_*/gen_* interface.
6104         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
6105         * modulo-sched.c (doloop_register_get): Likewise.
6107 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6109         * target-insns.def (clear_cache): New targetm instruction pattern.
6110         * builtins.c (expand_builtin___clear_cache): Use it instead of
6111         HAVE_*/gen_* interface.
6113 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6115         * target-insns.def (allocate_stack, check_stack, probe_stack)
6116         (probe_stack_address, split_stack_prologue, split_stack_space_check):
6117         New targetm instruction patterns.
6118         * explow.c (allocate_dynamic_stack_space): Use them instead of
6119         HAVE_*/gen_* interface.
6120         (emit_stack_probe): Likewise.
6121         (probe_stack_range): Likewise.
6122         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6124 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6126         * target-insns.def (stack_protect_set, stack_protect_test): New
6127         targetm instruction patterns.
6128         * cfgexpand.c (stack_protect_prologue): Use them instead of
6129         HAVE_*/gen_* interface.
6130         * function.c (stack_protect_epilogue): Likewise.
6132 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6134         * expr.h (gen_move_insn_uncast): Delete.
6135         * expr.c (gen_move_insn_uncast): Delete.
6137 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6139         * target-insns.def (restore_stack_block, restore_stack_function)
6140         (restore_stack_nonlocal, save_stack_block, save_stack_function)
6141         (save_stack_nonlocal): New targetm instruction patterns.
6142         * builtins.c (expand_builtin_apply): Use them instead of
6143         HAVE_*/gen_* interface.
6144         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
6146 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6148         * target-insns.def (trap): New targetm instruction pattern.
6149         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
6150         interface.
6151         * explow.c (allocate_dynamic_stack_space): Likewise.
6152         * ifcvt.c (find_if_header): Likewise.
6154 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6156         * target-insns.def (prefetch): New targetm instruction pattern.
6157         * tree-ssa-loop-prefetch.c: Include targeth.
6158         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
6159         of HAVE_*/gen_* interface.
6160         * builtins.c (expand_builtin_prefetch): Likewise.
6161         * toplev.c (process_options): Likewise.
6163 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6165         * target-insns.def (untyped_call, untyped_return): New targetm
6166         instruction patterns.
6167         * builtins.c (expand_builtin_apply): Use them instead of
6168         HAVE_*/gen_* interface.
6169         (result_vector): Define unconditionally.
6171 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6173         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
6174         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
6175         (nonlocal_goto_receiver): New targetm instruction patterns.
6176         * builtins.c (expand_builtin_setjmp_setup): Use them instead
6177         of HAVE_*/gen_* interface.
6178         (expand_builtin_setjmp_receiver): Likewise.
6179         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6180         * except.c (expand_dw2_landing_pad_for_region): Likewise.
6182 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
6184         * target.def: Add code_for_* hooks.
6185         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
6186         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
6187         * target-insns.def (casesi, tablejump): New targetm instruction
6188         patterns.
6189         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
6190         (do_tablejump): Likewise.
6191         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
6192         (expand_sjlj_dispatch_table): Likewise.
6193         * targhooks.c (default_case_values_threshold): Likewise.
6195 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
6197         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
6198         Use rtx_insn * instead of rtx.
6199         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
6200         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
6201         (nios2_call_tls_get_addr): Likewise.
6202         (nios2_emit_expensive_div): Likewise.
6203         (nios2_emit_move_sequence): Change return type to bool.
6204         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
6205         Change return type to bool.
6207 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6209         PR target/66747
6210         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
6212 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
6214         PR target/66114
6215         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
6216         of register_operand.  Remove constraint.
6218 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
6220         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
6221         the first argument.
6223 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
6225         * attribs.c (decl_attributes): Guard inform with the return value
6226         of the preceding warning.
6228 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
6230         * doc/invoke.texi (moverride): Move to correct section.
6232 2015-07-03  Richard Biener  <rguenther@suse.de>
6234         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
6235         Copy from tree.c
6236         (dt_operand::gen_gimple_expr): After valueizing operands
6237         re-canonicalize operand order for commutative tree codes.
6239 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
6241         PR target/66746.
6242         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
6243         is defined.
6244         (__crc32w): Likewise.
6245         (__crc32d): Likewise.
6246         (__rdpmc): Likewise.
6247         (__rdtscp): Likewise.
6248         (_rdpmc): Likewise.
6249         (_rdtscp): Likewise.
6250         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
6251         is defined.
6253 2015-07-03  Richard Biener  <rguenther@suse.de>
6255         * fold-const.c (fold_mathfn_compare): Remove.
6256         (fold_inf_compare): Likewise.
6257         (fold_comparison): Move floating point comparison simplifications...
6258         * match.pd: ... to patterns here.  Introduce simple_comparisons
6259         operator list and use it for patterns formerly in fold_comparison.
6261 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
6263         PR tree-optimization/66119
6264         * toplev.c (process_options): Don't set up default values for
6265         the sra_max_scalarization_size_{speed,size} parameters.
6266         * tree-sra (analyze_all_variable_accesses): If no values
6267         have been set for the sra_max_scalarization_size_{speed,size}
6268         parameters, call get_move_ratio to get target defaults.
6270 2015-07-03  Richard Biener  <rguenther@suse.de>
6272         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
6273         * match.pd: ... here.
6275 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
6277         PR target/37072
6278         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
6279         is not actually the default on FreeBSD.
6281 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6283         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
6284         definition.
6285         (CMPGE_8HI): Likewise.
6286         (CMPGE_4SI): Likewise.
6287         (CMPGE_2DI): Likewise.
6288         (CMPGE_U16QI): Likewise.
6289         (CMPGE_U8HI): Likewise.
6290         (CMPGE_U4SI): Likewise.
6291         (CMPGE_U2DI): Likewise.
6292         (CMPLE_16QI): Likewise.
6293         (CMPLE_8HI): Likewise.
6294         (CMPLE_4SI): Likewise.
6295         (CMPLE_2DI): Likewise.
6296         (CMPLE_U16QI): Likewise.
6297         (CMPLE_U8HI): Likewise.
6298         (CMPLE_U4SI): Likewise.
6299         (CMPLE_U2DI): Likewise.
6300         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6301         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
6302         ALTIVEC_BUILTIN_VEC_CMPLE.
6303         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
6304         floating-point vector modes.
6305         (vector_nlt<mode>): New define_expand.
6306         (vector_nltu<mode>): Likewise.
6307         (vector_ngt<mode>): Likewise.
6308         (vector_ngtu<mode>): Likewise.
6310 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
6312         PR rtl-optimization/66706
6313         * combine.c (make_compound_operation): If an AND of SUBREG of
6314         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
6316 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
6318         * tree-pass.h (make_pass_ch_vect): New.
6319         * passes.def: Add pass_ch_vect just before pass_if_conversion.
6321         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
6322         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
6323         make_pass_ch_vect): New.
6324         (pass_ch): Extend ch_base.
6326         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
6327         (ch_base::copy_headers): ...here.
6329 2015-07-02  Richard Biener  <rguenther@suse.de>
6331         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
6332         * fold-const.c (get_pointer_modulus_and_residue): Remove.
6333         (fold_binary_loc): Implement (T)ptr & CST in terms of
6334         get_pointer_alignment_1.
6335         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6336         Make sure to build the alignment test on a SSA name without
6337         final alignment info valid only after the prologue.
6339 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
6341         * config/cris/cris.md ("epilogue"): Remove condition.
6342         ("prologue"): Ditto.
6344 2015-07-02  Richard Biener  <rguenther@suse.de>
6346         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
6347         parameter to record a condition that is false.
6348         (record_conditions): When recording an extra NE_EXPR that is
6349         true also record a EQ_EXPR that is false.
6351 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
6353         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
6354         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
6355         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
6356         (set_iv, find_interesting_uses_address, add_candidate_1): New
6357         argument to alloc_iv.
6358         (find_interesting_uses_op, find_interesting_uses_cond): Don't
6359         duplicate struct iv.
6360         (free_loop_data): Don't free struct iv explicitly.
6361         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
6363 2015-07-01  DJ Delorie  <dj@redhat.com>
6365         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
6366         (LIB_SPEC): Add.
6367         (SUPPORTS_DISCRIMINATOR): Define.
6369 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
6371         PR bootstrap/66685
6372         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
6373         there are no CALLs in the same pattern.
6375 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6377         PR rtl-optimization/61047
6378         * rtlanal.c (get_initial_register_offset): New function.
6379         (rtx_addr_can_trap_p_1): Check offsets of stack references.
6381 2015-07-01  Richard Biener  <rguenther@suse.de>
6383         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
6384         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
6385         ~X CMP C -> X CMP' ~C to ...
6386         * match.pd: ... patterns here.
6388 2015-07-01  Nick Clifton  <nickc@redhat.com>
6390         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
6391         a 16-bit value into a 20-bit memory slot.
6393 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
6395         * doc/sourcebuild.texi (AArch64-specific attributes): Document
6396         "aarch64_tiny", "aarch64_small", "aarch64_large",
6397         "aarch64_little_endian", "aarch64_big_endian".
6399 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
6401         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
6402         Document "aarch64_small_fpic".
6404 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
6406         * configure.ac: Add check for aarch64 assembler -fpic relocation
6407         modifier support.
6408         * configure: Regenerate.
6409         * config.in: Regenerate.
6410         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
6411         to -fPIC if not support of -fpic relocation modifier in assembler.
6413 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
6415         PR bootstrap/66685
6416         * rtl.c (classify_insn): Handle returns in PARALLELs.
6418 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
6420         PR middle-end/66633
6421         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
6422         to true if the function is nested and if not optimizing.
6423         (convert_local_omp_clauses): Initialize need_frame to true if the
6424         function contains nested functions and if not optimizing.
6426 2015-07-01  Richard Biener  <rguenther@suse.de>
6428         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
6429         (X & Y) ^ Y -> ~X & Y transforms to ...
6430         * match.pd: ... here.
6432 2015-07-01  Richard Biener <rguenther@suse.de>
6434         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
6435         of converts to avoid uninteresting noise from the conversion
6436         simplifying patterns.
6438 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
6440         * config/c6x/c6x.c (try_rename_operands): Do not depend on
6441         gcc_assert evaluating its argument for side-effect.
6443 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
6445         PR target/64833
6446         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
6447         flag_pic is set.
6449 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
6451         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
6452         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
6453         (hash_scc): Add this_ref_p and ref_p parameters and pass them
6454         to the inner DFS walk.
6456 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
6458         * target-insns.def (jump): New targetm instruction pattern.
6459         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
6460         instead of gen_jump.
6461         (fix_up_crossing_landing_pad): Likewise.
6462         (add_labels_and_missing_jumps): Likewise.
6463         (fix_crossing_conditional_branches): Likewise.
6464         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6465         (force_nonfallthru_and_redirect): Likewise.
6466         * cse.c (cse_insn): Likewise.
6467         * expmed.c (expand_divmod): Likewise.
6468         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
6469         * haifa-sched.c (init_before_recovery): Likewise.
6470         (sched_create_recovery_edges): Likewise.
6471         * ifcvt.c (find_cond_trap): Likewise.
6472         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
6473         (expand_float, expand_fix): Likewise.
6474         * stmt.c (emit_jump): Likewise.
6476 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
6478         * defaults.h (HAVE_load_multiple, gen_load_multiple)
6479         (HAVE_store_multiple, gen_store_multiple): Delete.
6480         * target-insns.def (load_multiple, store_multiple): New targetm
6481         instruction patterns.
6482         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
6483         of HAVE_*/gen_* interface.
6485 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
6487         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
6488         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
6489         (gen_mem_signal_fence): Delete.
6490         * target-insns.def (mem_signal_fence, mem_thread_fence)
6491         (memory_barrier): New targetm instruction patterns.
6492         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
6493         interface.
6494         (expand_mem_signal_fence): Likewise.
6496 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
6498         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
6499         * target-insns.def (epilogue, prologue, sibcall_prologue): New
6500         targetm instruction patterns.
6501         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
6502         interface.
6503         * calls.c (expand_call): Likewise.
6504         * cfgrtl.c (cfg_layout_finalize): Likewise.
6505         * df-scan.c (df_get_entry_block_def_set): Likewise.
6506         (df_get_exit_block_use_set): Likewise.
6507         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
6508         * final.c (final_start_function): Likewise.
6509         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6510         (reposition_prologue_and_epilogue_notes): Likewise.
6511         * reorg.c (find_end_label): Likewise.
6512         * toplev.c (process_options): Likewise.
6514 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
6516         * typed-splay-tree.h: New file.
6518 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
6520         PR debug/66691
6521         * lra-int.h (lra_substitute_pseudo): Add a parameter.
6522         (lra_substitute_pseudo_within_insn): Ditto.
6523         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
6524         of constant.
6525         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
6526         to lra_substitute_pseudo.
6527         * lra-lives.c (process_bb_lives): Add an argument to
6528         lra_substitute_pseudo_within_insn call.
6529         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
6530         argument to lra_substitute_pseudo and
6531         lra_substitute_pseudo_within_insn calls.
6532         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
6534 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6536         * configure: Regenerated.
6538 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
6540         * config.gcc: Support i[34567]86-*-elfiamcu target.
6541         * config/i386/iamcu.h: New.
6542         * config/i386/i386.opt: Add -miamcu.
6543         * doc/invoke.texi: Document -miamcu.
6544         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
6545         off x87/MMX/SSE/AVX codegen for -miamcu.
6546         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6547         __iamcu/__iamcu__ for -miamcu.
6548         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
6549         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
6550         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
6551         * config/i386/i386.c (ix86_option_override_internal): Ignore and
6552         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
6553         MCU by default.  Default long double to 64-bit for Intel MCU.
6554         Turn on -freg-struct-return for Intel MCU.  Issue an error when
6555         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
6556         AVX is turned on.
6557         (function_arg_advance_32): Pass value whose size is no larger
6558         than 8 bytes in registers for Intel MCU.
6559         (function_arg_32): Likewise.
6560         (ix86_return_in_memory): Return value whose size is no larger
6561         than 8 bytes in registers for Intel MCU.
6562         (iamcu_alignment): New function.
6563         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
6564         true.
6565         (ix86_local_alignment): Don't increase alignment for Intel MCU.
6566         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
6567         true.
6569 2015-06-30  Marek Polacek  <polacek@redhat.com>
6571         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
6572         both operands of the resulting expression.
6574         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
6575         the final expression with the operand's type and then convert
6576         it to the type of the expression.
6578 2015-06-30  Richard Biener  <rguenther@suse.de>
6580         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6581         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6582         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6583         * match.pd: ... to patterns here.
6585 2015-06-30  Richard Biener  <rguenther@suse.de>
6587         PR tree-optimization/66704
6588         * tree-vect-data-refs.c (vect_setup_realignment): Use
6589         make_ssa_name for non-SSA name source.
6591 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
6593         PR middle-end/66702
6594         * omp-low.c (simd_clone_adjust): Handle addressable linear
6595         or uniform parameters or non-gimple type uniform parameters.
6597 2015-06-30  Richard Biener  <rguenther@suse.de>
6599         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6600         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6601         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6602         * match.pd: ... here.
6603         Add a few cases of A - B -> A + (-B) when B "easily" negates.
6604         Move (x & y) | x -> x and friends before
6605         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6607 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
6609         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6610         -mfix-ut699 is not specified.
6611         (leon3_load): Rename into...
6612         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
6613         is specified.
6615 2015-06-30  Marek Polacek  <polacek@redhat.com>
6617         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6618         * match.pd: ... here.
6620 2015-06-30  Richard Biener  <rguenther@suse.de>
6622         * target-insns.def (canonicalize_funcptr_for_compare): Add.
6623         * fold-const.c (build_range_check): Replace uses of
6624         HAVE_canonicalize_funcptr_for_compare.
6625         (fold_widened_comparison): Likewise.
6626         (fold_sign_changed_comparison): Likewise.
6627         * dojump.c: Include "target.h".
6628         (do_compare_and_jump): Replace uses of
6629         HAVE_canonicalize_funcptr_for_compare and
6630         gen_canonicalize_funcptr_for_compare.
6631         * expr.c (do_store_flag): Likewise.
6633 2015-06-30  Tom de Vries  <tom@codesourcery.com>
6635         PR tree-optimization/66652
6636         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6637         max_loop_iterations to determine if nit + 1 overflows.
6639 2015-06-30  Richard Biener  <rguenther@suse.de>
6641         * tree-vrp.c (register_edge_assert_for_2): Also register
6642         asserts for dominating conversion results.
6644 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
6646         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
6647         field in struct iv.
6649 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
6651         PR target/66509
6652         * configure.ac: Fix filds and fildq test for 64-bit.
6653         * configure: Regenerated.
6655 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
6657         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
6658         (nvptx_reorg): Here.  Keep the non-subreg pieces.
6660 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6662         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
6663         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6665 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
6667         * config/i386/i386.md (*jcc_1): Use %! in asm template.
6668         Set attribute "length_nobnd" instead of "length".
6669         (*jcc_2): Ditto.
6670         (jump): Ditto.
6671         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
6673 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
6675         * config/nios2/nios2.c (nios2_delegitimize_address): Make
6676         assert less restrictive.
6678 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6680         PR fortran/66605
6681         * cgraphunit.c (cgraph_node::finalize_function): Do not call
6682         do_warn_unused_parameter.
6683         * function.c (do_warn_unused_parameter): Move from here.
6684         * function.h (do_warn_unused_parameter): Do not declare.
6686 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
6688         PR target/65697
6689         * gcc.target/arm/armv-sync-comp-swap.c: New.
6690         * gcc.target/arm/armv-sync-op-acquire.c: New.
6691         * gcc.target/arm/armv-sync-op-full.c: New.
6692         * gcc.target/arm/armv-sync-op-release.c: New.
6694 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
6696         PR target/65697
6697         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
6698         initial acquire barrier with final barrier.
6700 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
6702         PR target/65697
6703         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
6704         initial acquire barrier with final barrier.
6706 2015-06-29  Richard Henderson  <rth@redhat.com>
6708         * config/i386/constraints.md (Bf): New constraint.
6709         * config/i386/i386-c.c (ix86_target_macros): Define
6710         __GCC_ASM_FLAG_OUTPUTS__.
6711         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
6712         as flags outputs.
6713         * doc/extend.texi (FlagOutputOperands): Document them.
6715 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
6717         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
6718         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
6719         unspec name.
6720         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
6721         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
6722         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
6723         (aarch64_symbol_context): Ditto.
6724         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
6725         and use new pattern name.
6726         (aarch64_expand_mov_immediate): Ditto.
6727         (aarch64_print_operand): Ditto.
6728         (aarch64_classify_tls_symbol): Ditto.
6730 2015-06-29  Marek Polacek  <polacek@redhat.com>
6731             Marc Glisse  <marc.glisse@inria.fr>
6733         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
6734         * match.pd: ... pattern here.
6736 2015-06-29  Tom de Vries  <tom@codesourcery.com>
6738         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
6739         function structure.
6741 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
6743         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
6744         feature description, split out the native option, add a link to
6745         the feature documentation, rearrange and slightly rewrite text.
6746         (Aarch64 options, -mcpu): Likewise.
6747         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
6748         +rdma implies Adv. SIMD.
6750 2015-06-29  Marek Polacek  <polacek@redhat.com>
6752         PR c/66322
6753         * function.c (stack_protect_epilogue): Remove a cast to int.
6754         * doc/invoke.texi: Update -Wswitch-bool description.
6756 2015-06-29  Richard Biener  <rguenther@suse.de>
6758         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
6759         * fold-const.c (fold_binary_loc): Move &A - &B simplification
6760         via ptr_difference_const ...
6761         * match.pd: ... here.
6762         When matching (X ^ Y) == Y also match with swapped operands.
6764 2015-06-29  Richard Biener  <rguenther@suse.de>
6766         * lto-streamer.h (LTO_major_version): Bump to 5.
6768 2015-06-29  Richard Biener  <rguenther@suse.de>
6770         PR tree-optimization/66677
6771         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
6772         STMT_VINFO_VEC_STMT clobbering less strict.
6774 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
6776         PR middle-end/64130
6777         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
6778         division, compute max and min when value ranges for dividend and
6779         divisor are available.
6781 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
6782             Sandra Loosemore <sandra@codesourcery.com>
6784         * regrename.h (regrename_do_replace): Change to return bool.
6785         * regrename.c (rename_chains): Check return value of
6786         regname_do_replace.
6787         (regrename_do_replace): Re-validate the modified insns and
6788         return bool status.
6789         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6790         Update to match rename_chains changes.
6791         * config/c6x/c6x.c (try_rename_operands): Assert that
6792         regrename_do_replace returns true.
6794 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
6796         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
6797         operand 2 here.  Use copy_addr_to_reg to copy non-index
6798         register operand 2 to a temporary.
6799         (<mode>_stx): Ditto for operand 1.
6800         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
6801         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
6802         (ix86_store_bounds): Ditto.
6804 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
6806         * print-tree.c (print_node) [TREE_VEC]: Print its length.
6808 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
6810         * gimple.c (gimple_call_set_fndecl): Remove.
6811         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
6812         build1_loc directly instead of build_fold_addr_expr_loc.
6814 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
6816         * hash-map.h (hash_map::traverse): Use the definition of the
6817         Key typedef rather than the typedef itself.
6819 2015-06-26  Martin Jambor  <mjambor@suse.cz>
6821         PR debug/66301
6822         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
6823         NULL instead of calling dump_enabled_p.
6825 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6827         * config/aarch64/aarch64.opt: (override): New.
6828         * doc/invoke.texi (override): Document.
6829         * config/aarch64/aarch64.c (aarch64_flag_desc): New
6830         (aarch64_fusible_pairs): Likewise.
6831         (aarch64_tuning_flags): Likewise.
6832         (aarch64_tuning_override_function): Likewise.
6833         (aarch64_tuning_override_functions): Likewise.
6834         (aarch64_parse_one_option_token): Likewise.
6835         (aarch64_parse_boolean_options): Likewise.
6836         (aarch64_parse_fuse_string): Likewise.
6837         (aarch64_parse_tune_string): Likewise.
6838         (aarch64_parse_one_override_token): Likewise.
6839         (aarch64_parse_override_string): Likewise.
6840         (aarch64_override_options): Parse the -override string if it
6841         is present.
6843 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6845         * config/aarch64/aarch64-protos.h (tune_params): Remove
6846         const from members.
6847         (aarch64_tune_params): Remove const, change to no longer be
6848         a pointer.
6849         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
6850         change to no longer be a pointer, initialize to generic_tunings.
6851         (aarch64_min_divisions_for_recip_mul): Change dereference of
6852         aarch64_tune_params to member access.
6853         (aarch64_reassociation_width): Likewise.
6854         (aarch64_rtx_mult_cost): Likewise.
6855         (aarch64_address_cost): Likewise.
6856         (aarch64_branch_cost): Likewise.
6857         (aarch64_rtx_costs): Likewise.
6858         (aarch64_register_move_cost): Likewise.
6859         (aarch64_memory_move_cost): Likewise.
6860         (aarch64_sched_issue_rate): Likewise.
6861         (aarch64_builtin_vectorization_cost): Likewise.
6862         (aarch64_override_options): Take a copy of the selected tuning
6863         struct in to aarch64_tune_params, rather than just setting
6864         a pointer, change dereferences of aarch64_tune_params to member
6865         accesses.
6866         (aarch64_override_options_after_change): Change dereferences of
6867         aarch64_tune_params to member access.
6868         (aarch64_macro_fusion_p): Likewise.
6869         (aarch_macro_fusion_pair_p): Likewise.
6870         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
6872 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6874         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
6875         (aarch64_tune_flags): Likewise.
6876         (AARCH64_TUNE_FMA_STEERING): Likewise.
6877         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
6878         to AARCH64_FL_USE_FMA_STEERING_PASS.
6879         (cortex-a57.cortex-a53): Likewise.
6880         (cortex-a72): Use cortexa72_tunings.
6881         (cortex-a72.cortex-a53): Likewise.
6882         (exynos-m1): Likewise.
6883         * config/aarch64/aarch64-protos.h (tune_params): Add
6884         a field: extra_tuning_flags.
6885         * config/aarch64/aarch64-tuning-flags.def: New.
6886         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
6887         (aarch64_extra_tuning_flags): Likewise.
6888         (aarch64_tune_params): Declare here.
6889         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
6890         (cortexa53_tunings): Likewise.
6891         (cortexa57_tunings): Likewise.
6892         (thunderx_tunings): Likewise.
6893         (xgene1_tunings): Likewise.
6894         (cortexa72_tunings): New.
6895         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6896          (gate): Check against aarch64_tune_params.
6897         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6898         aarch64-protos.h.
6900 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6902         * config/aarch64/aarch64-fusion-pairs.def: New.
6903         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6904         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6905         aarch64_fusion_pairs.
6906         (AARCH64_FUSE_MOV_MOVK): Likewise.
6907         (AARCH64_FUSE_ADRP_ADD): Likewise.
6908         (AARCH64_FUSE_MOVK_MOVK): Likewise.
6909         (AARCH64_FUSE_ADRP_LDR): Likewise.
6910         (AARCH64_FUSE_CMP_BRANCH): Likewise.
6912 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
6914         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6915         SYMBOL_SMALL_GOT_28K.
6916         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6917         relocation modifiers.
6918         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6919         (ldr_got_small_28k_<mode>): New.
6920         (ldr_got_small_28k_sidi): New.
6921         * config/aarch64/iterators.md (got_modifier): New mode iterator.
6922         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6923         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6924         SYMBOL_SMALL_GOT_28K.
6925         (aarch64_rtx_costs): Add costs for new instruction sequences.
6926         (initialize_aarch64_code_model): Initialize new model.
6927         (aarch64_classify_symbol): Recognize new model and new symbol classification.
6928         (aarch64_asm_preferred_eh_data_format): Support new model.
6929         (aarch64_load_symref_appropriately): Generate new instruction
6930         sequences for -fpic.
6931         (TARGET_USE_PSEUDO_PIC_REG): New definition.
6932         (aarch64_use_pseudo_pic_reg): New function.
6934 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
6936         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6937         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6938         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6939         (aarch64_expand_mov_immediate): Ditto.
6940         (aarch64_print_operand): Ditto.
6941         (aarch64_classify_symbol): Ditto.
6943 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
6945         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6947 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
6949         PR bootstrap/66638
6950         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6951         assertion failed.  Remove assertion itself.
6953 2015-06-26  Richard Biener  <rguenther@suse.de>
6955         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
6956         and -A CMP CST -> A CMP -CST which is redundant with a pattern
6957         in match.pd.
6958         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
6959         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
6960         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
6961         * match.pd: ... patterns here.
6963 2015-06-26  Marek Polacek  <polacek@redhat.com>
6965         * match.pd ((x | y) & ~(x & y) -> x ^ y,
6966         (x | y) & (~x ^ y) -> x & y): New patterns.
6968 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
6970         * rtl.h (emit): Add an optional boolean parameter to control
6971         whether barriers are emitted.
6972         * emit-rtl.c (emit): Likewise.
6973         * gensupport.c (get_emit_function): Return null rather than "emit".
6974         * genemit.c (gen_emit_seq): Handle the null return value.
6975         Don't emit barriers after the final instruction in the sequence.
6976         * gentarget-def.c (main): Don't emit barriers after the instruction.
6978 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6980         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
6981         TARGET_UNIFIED_ASM.
6983 2015-06-26  Richard Biener  <rguenther@suse.de>
6985         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
6987 2015-06-26  Richard Biener  <rguenther@suse.de>
6989         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
6990         irrespective on whether the inner operation has a single use
6991         of both off are constant.
6993 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
6994             Segher Boessenkool  <segher@kernel.crashing.org>
6996         PR target/66412
6997         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
6998         before doing PUT_MODE or PUT_CODE on operands to avoid
6999         in-place RTX modification.
7001 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
7003         * gentarget-def.c (def_target_insn): Cast return of strtol to
7004         unsigned int.
7006 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7008         * gimple.h (gimple_call_set_fn): Move inline function.
7009         * gimple.c (gimple_call_set_fn): Relocate here.
7011 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
7013         PR target/65979
7014         PR target/66611
7015         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
7016         the replacement insn will work.
7018 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
7020         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
7021         by default.
7023 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7025         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
7026         * cgraph.h: Include ipa-ref.h and plugin-api.h.
7027         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
7028         (symtab_node::address_can_be_compared_p): Move function.
7029         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
7030         definition here.
7031         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
7032         * auto-profile.c: Likewise.
7033         * bb-reorder.c: Likewise.
7034         * builtins.c: Likewise.
7035         * calls.c: Likewise.
7036         * cfgexpand.c: Likewise.
7037         * cgraphbuild.c: Likewise.
7038         * cgraphclones.c: Likewise.
7039         * cgraphunit.c: Likewise.
7040         * combine.c: Likewise.
7041         * coverage.c: Likewise.
7042         * data-streamer-in.c: Likewise.
7043         * data-streamer-out.c: Likewise.
7044         * data-streamer.c: Likewise.
7045         * dbxout.c: Likewise.
7046         * dwarf2out.c: Likewise.
7047         * except.c: Likewise.
7048         * expr.c: Likewise.
7049         * final.c: Likewise.
7050         * fold-const.c: Likewise.
7051         * ggc-page.c: Likewise.
7052         * gimple-fold.c: Likewise.
7053         * gimple-iterator.c: Likewise.
7054         * gimple-pretty-print.c: Likewise.
7055         * gimple-streamer-in.c: Likewise.
7056         * gimple-streamer-out.c: Likewise.
7057         * gimple.c: Likewise.
7058         * gimplify.c: Likewise.
7059         * ipa-chkp.c: Likewise.
7060         * ipa-comdats.c: Likewise.
7061         * ipa-cp.c: Likewise.
7062         * ipa-devirt.c: Likewise.
7063         * ipa-icf-gimple.c: Likewise.
7064         * ipa-icf.c: Likewise.
7065         * ipa-inline-analysis.c: Likewise.
7066         * ipa-inline-transform.c: Likewise.
7067         * ipa-inline.c: Likewise.
7068         * ipa-polymorphic-call.c: Likewise.
7069         * ipa-profile.c: Likewise.
7070         * ipa-prop.c: Likewise.
7071         * ipa-pure-const.c: Likewise.
7072         * ipa-ref.c: Likewise.
7073         * ipa-reference.c: Likewise.
7074         * ipa-split.c: Likewise.
7075         * ipa-utils.c: Likewise.
7076         * ipa-visibility.c: Likewise.
7077         * ipa.c: Likewise.
7078         * langhooks.c: Likewise.
7079         * lto-cgraph.c: Likewise.
7080         * lto-compress.c: Likewise.
7081         * lto-opts.c: Likewise.
7082         * lto-section-in.c: Likewise.
7083         * lto-section-out.c: Likewise.
7084         * lto-streamer-in.c: Likewise.
7085         * lto-streamer-out.c: Likewise.
7086         * lto-streamer.c: Likewise.
7087         * omp-low.c: Likewise.
7088         * opts-global.c: Likewise.
7089         * passes.c: Likewise.
7090         * predict.c: Likewise.
7091         * print-tree.c: Likewise.
7092         * profile.c: Likewise.
7093         * ree.c: Likewise.
7094         * sanopt.c: Likewise.
7095         * stor-layout.c: Likewise.
7096         * symtab.c: Likewise.
7097         * toplev.c: Likewise.
7098         * trans-mem.c: Likewise.
7099         * tree-cfg.c: Likewise.
7100         * tree-chkp.c: Likewise.
7101         * tree-eh.c: Likewise.
7102         * tree-emutls.c: Likewise.
7103         * tree-inline.c: Likewise.
7104         * tree-nested.c: Likewise.
7105         * tree-parloops.c: Likewise.
7106         * tree-pretty-print.c: Likewise.
7107         * tree-profile.c: Likewise.
7108         * tree-sra.c: Likewise.
7109         * tree-ssa-alias.c: Likewise.
7110         * tree-ssa-live.c: Likewise.
7111         * tree-ssa-loop-ivcanon.c: Likewise.
7112         * tree-ssa-loop-ivopts.c: Likewise.
7113         * tree-ssa-pre.c: Likewise.
7114         * tree-ssa-sccvn.c: Likewise.
7115         * tree-ssa-strlen.c: Likewise.
7116         * tree-ssa-structalias.c: Likewise.
7117         * tree-streamer-in.c: Likewise.
7118         * tree-streamer-out.c: Likewise.
7119         * tree-streamer.c: Likewise.
7120         * tree-switch-conversion.c: Likewise.
7121         * tree-tailcall.c: Likewise.
7122         * tree-vect-data-refs.c: Likewise.
7123         * tree-vect-stmts.c: Likewise.
7124         * tree-vectorizer.c: Likewise.
7125         * tree.c: Likewise.
7126         * tsan.c: Likewise.
7127         * ubsan.c: Likewise.
7128         * value-prof.c: Likewise.
7129         * varasm.c: Likewise.
7130         * varpool.c: Likewise.
7131         * config/arm/arm.c: Likewise.
7132         * config/bfin/bfin.c: Likewise.
7133         * config/c6x/c6x.c: Likewise.
7134         * config/cris/cris.c: Likewise.
7135         * config/darwin-c.c: Likewise.
7136         * config/darwin.c: Likewise.
7137         * config/i386/i386.c: Likewise.
7138         * config/i386/winnt.c: Likewise.
7139         * config/microblaze/microblaze.c: Likewise.
7140         * config/mips/mips.c: Likewise.
7141         * config/rs6000/rs6000.c: Likewise.
7142         * config/rx/rx.c: Likewise.
7143         * config/s390/s390.c: Likewise.
7144         * config/tilegx/mul-tables.c: Likewise.
7146 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7148         * config/aarch64/aarch64.c, config/alpha/alpha.c,
7149         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
7150         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
7151         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
7152         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
7153         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7154         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
7155         config/microblaze/microblaze.c, config/mips/mips.c,
7156         config/mmix/mmix.c, config/mn10300/mn10300.c,
7157         config/moxie/moxie.c, config/msp430/msp430.c,
7158         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
7159         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
7160         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
7161         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
7162         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7163         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7164         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
7165         target-def.h include.
7166         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
7168 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7170         * Makefile.in (TARGET_DEF): Add target-insns.def.
7171         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
7172         (build/gentarget-def.o): New rule.
7173         (genprogrtl): Add target-def.
7174         * target-insns.def, gentarget-def.c: New files.
7175         * target.def: Add targetm.have_* and targetm.gen_* hooks,
7176         based on the contents of target-insns.def.
7177         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
7178         (HAVE_return, gen_return): Delete.
7179         * target-def.h: Include insn-target-def.h.
7180         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
7181         instead of direct calls.  Rely on them to do the appropriate assertions.
7182         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
7183         (convert_jumps_to_returns): Use targetm interface instead of
7184         direct calls.
7185         (thread_prologue_and_epilogue_insns): Likewise.
7186         * reorg.c (find_end_label, dbr_schedule): Likewise.
7187         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
7188         * shrink-wrap.c (convert_to_simple_return): Likewise.
7189         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
7191 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7193         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
7194         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7195         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
7196         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
7197         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
7198         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7199         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
7200         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
7201         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
7202         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
7203         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
7204         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
7205         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
7206         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7207         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7208         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
7209         includes to end.
7211 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7213         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
7214         (unbounded_int_hashmap_traits::key_type): Likewise.
7215         * hash-map.h (hash_map): Get the key type from the traits.
7216         * hash-traits.h (default_hash_traits): By default, inherit from the
7217         template parameter.
7218         * alias.c (alias_set_traits): Delete.
7219         (alias_set_entry_d::children): Use alias_set_hash as the first
7220         template parameter.
7221         (record_alias_subset): Update accordingly.
7222         * except.c (tree_hash_traits): Delete.
7223         (type_to_runtime_map): Use tree_hash as the first template parameter.
7224         (init_eh): Update accordingly.
7225         * genmatch.c (capture_id_map_hasher): Delete.
7226         (cid_map_t): Use nofree_string_hash as first template parameter.
7227         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
7228         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
7229         Use symbol_compare_hash as the first template parameter in
7230         subdivide_hash_map.
7231         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
7232         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
7233         template parameter.
7234         * passes.c (pass_registry_hasher): Delete.
7235         (name_to_pass_map): Use nofree_string_hash as the first template
7236         parameter.
7237         (register_pass_name): Update accordingly.
7238         * sanopt.c (sanopt_tree_map_traits): Delete.
7239         (sanopt_tree_triplet_map_traits): Delete.
7240         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
7241         template parameter.
7242         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
7243         the first template parameter.
7244         * sese.c (rename_map_hasher): Delete.
7245         (rename_map_type): Use tree_ssa_name_hash as the first template
7246         parameter.
7247         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
7248         (function_summary::m_map): Use map_hash as the first template
7249         parameter.
7250         (function_summary::release): Update accordingly.
7251         * tree-if-conv.c (phi_args_hash_traits): Delete.
7252         (predicate_scalar_phi): Use tree_operand_hash as the first template
7253         parameter to phi_arg_map.
7254         * tree-inline.h (dependence_hasher): Delete.
7255         (copy_body_data::dependence_map): Use dependence_hash as the first
7256         template parameter.
7257         * tree-inline.c (remap_dependence_clique): Update accordingly.
7258         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
7259         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
7260         parameter.
7261         (addr_stridxptr): Update accordingly.
7262         * value-prof.c (profile_id_traits): Delete.
7263         (cgraph_node_map): Use profile_id_hash as the first template
7264         parameter.
7265         (init_node_map): Update accordingly.
7266         * config/alpha/alpha.c (string_traits): Delete.
7267         (machine_function::links): Use nofree_string_hash as the first
7268         template parameter.
7269         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
7270         * config/m32c/m32c.c (pragma_traits): Delete.
7271         (pragma_htab): Use nofree_string_hash as the first template parameter.
7272         (m32c_note_pragma_address): Update accordingly.
7273         * config/mep/mep.c (pragma_traits): Delete.
7274         (pragma_htab): Use nofree_string_hash as the first template parameter.
7275         (mep_note_pragma_flag): Update accordingly.
7276         * config/mips/mips.c (mips16_flip_traits): Delete.
7277         (mflip_mips16_htab): Use nofree_string_hash as the first template
7278         parameter.
7279         (mflip_mips16_use_mips16_p): Update accordingly.
7280         (local_alias_traits): Delete.
7281         (mips16_local_aliases): Use nofree_string_hash as the first template
7282         parameter.
7283         (mips16_local_alias): Update accordingly.
7285 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7287         * hash-map-traits.h (default_hashmap_traits): Delete.
7289 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7291         * hash-map-traits.h (unbounded_hashmap_traits): New class.
7292         (unbounded_int_hashmap_traits): Likewise.
7293         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
7295 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7297         * ipa-icf.h (symbol_compare_hash): New class.
7298         (symbol_compare_hashmap_traits): Use it.
7299         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
7300         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
7301         (mem_alloc_description::reverse_mem_map_t): Remove redundant
7302         default_hashmap_traits.
7303         * sanopt.c (sanopt_tree_triplet_hash): New class.
7304         (sanopt_tree_triplet_map_traits): Use it.
7306 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7308         * gengtype-parse.c (require_template_declaration): Allow '+' in
7309         template parameters.  Consolidate cases.
7310         * hash-traits.h (int_hash): New class.
7311         * alias.c (alias_set_hash): New structure.
7312         (alias_set_traits): Use it.
7313         * symbol-summary.h (function_summary::map_hash): New class.
7314         (function_summary::summary_hashmap_traits): Use it.
7315         * tree-inline.h (dependence_hash): New class.
7316         (dependence_hasher): Use it.
7317         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
7318         * value-prof.c (profile_id_hash): New class.
7319         (profile_id_traits): Use it.
7321 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7323         * config/mips/mips.c (mips16_flip_traits): Use it.
7324         (local_alias_traits, mips16_local_aliases): Convert from a map of
7325         rtxes to a map of symbol names.
7326         (mips16_local_alias): Update accordingly.
7328 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7330         * hash-traits.h (string_hash, nofree_string_hash): New classes.
7331         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
7332         * passes.c (pass_registry_hasher): Likewise.
7333         * config/alpha/alpha.c (string_traits): Likewise.
7334         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
7335         * config/m32c/m32c.c (pragma_traits): Likewise.
7336         * config/mep/mep.c (pragma_traits): Likewise.
7338 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7340         * tree-hash-traits.h (tree_hash): New class.
7341         * except.c: Include tree-hash-traits.h.
7342         (tree_hash_traits): Use tree_hash.
7344 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7346         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
7347         * sese.c: Include tree-hash-traits.h.
7348         (rename_map_hasher): Use tree_ssa_name_hasher.
7350 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7352         * tree-hash-traits.h (tree_decl_hash): New class.
7353         * tree-ssa-strlen.c: Include tree-hash-traits.h.
7354         (stridxlist_hash_traits): Use tree_decl_hash.
7356 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7358         * tree-hash-traits.h: New file.
7359         (tree_operand_hash): New class.
7360         * sanopt.c: Include tree-hash-traits.h.
7361         (sanopt_tree_map_traits): Use tree_operand_hash.
7362         * tree-if-conv.c: Include tree-hash-traits.h.
7363         (phi_args_hash_traits): Use tree_operand_hash.
7364         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
7365         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
7367 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7369         * hash-map-traits.h: Include hash-traits.h.
7370         (simple_hashmap_traits): New class.
7371         * mem-stats.h (hash_map): Change the default traits to
7372         simple_hashmap_traits<default_hash_traits<Key> >.
7374 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7376         * hash-table.h: Update comments.
7378 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7380         * hash-traits.h (default_hash_traits): New structure.
7381         * hash-set.h (default_hashset_traits): Delete.
7382         (hash_set): Use default_hash_traits<Key> instead of
7383         default_hashset_traits.  Delete hash_entry type and use Key directly.
7384         * ipa-devirt.c (pair_traits): Delete.
7385         (default_hash_traits <type_pair>): Override.
7386         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
7387         (odr_types_equivalent_p, add_type_duplicate): Likewise.
7389 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7391         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
7393 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7395         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
7396         (has_is_empty, is_empty_helper): Delete.
7397         (has_mark_deleted, mark_deleted_helper): Delete.
7398         (has_mark_empty, mark_empty_helper): Delete.
7399         (hash_table::is_deleted): Call the Descriptor unconditionally.
7400         (hash_table::is_empty): Likewise.
7401         (hash_table::mark_deleted): Likewise.
7402         (hash_table::mark_empty): Likewise.
7404 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7406         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
7407         redundant typedefs and members.
7408         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
7409         redundant typedefs.
7410         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
7411         * ipa-devirt.c (odr_name_hasher): Likewise.
7412         (polymorphic_call_target_hasher): Likewise.
7413         * ira-costs.c (cost_classes_hasher): Likewise.
7414         * statistics.c (stats_counter_hasher): Likewise.
7415         * trans-mem.c (log_entry_hasher): Likewise.
7416         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7417         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
7418         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
7419         * var-tracking.c (variable_hasher): Likewise.
7420         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
7421         Remove redundant typedefs and members.
7423 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7425         * hash-traits.h (ggc_cache_hasher): Rename to...
7426         (ggc_cache_remove): ...this and remove typedefs.
7427         (ggc_cache_ptr_hash): New class.
7428         * hash-table.h: Update commentary.
7429         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
7430         rather than ggc_cache_hasher.
7431         (const_wide_int_hasher, reg_attr_hasher): Likewise.
7432         (const_double_hasher, const_fixed_hasher): Likewise.
7433         * function.c (insn_cache_hasher): Likewise.
7434         * trans-mem.c (tm_wrapper_hasher): Likewise.
7435         * tree.h (tree_decl_map_cache_hasher): Likewise.
7436         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
7437         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
7438         * ubsan.c (tree_type_map_cache_hasher): Likewise.
7439         * varasm.c (tm_clone_hasher): Likewise.
7440         * config/i386/i386.c (dllimport_hasher): Likewise.
7441         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
7442         (tree_hasher): Likewise.
7444 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7446         * hash-traits.h (ggc_hasher): Rename to...
7447         (ggc_remover): ...this and remove typedefs.
7448         (ggc_cache_hasher): Update accordingly.  Add typedefs.
7449         (ggc_ptr_hash): New class.
7450         * hash-table.h: Update comment.
7451         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
7452         ggc_hasher.
7453         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
7454         (tree_descriptor_hasher): Likewise.
7455         * cgraph.c (function_version_hasher): Likewise.
7456         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
7457         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
7458         (dw_loc_list_hasher, addr_hasher): Likewise.
7459         * function.h (used_type_hasher): Likewise.
7460         * function.c (temp_address_hasher): Likewise.
7461         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
7462         * libfuncs.h (libfunc_hasher): Likewise.
7463         * lto-streamer.h (decl_state_hasher): Likewise.
7464         * optabs.c (libfunc_decl_hasher): Likewise.
7465         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
7466         * varasm.c (section_hasher, object_block_hasher): Likewise.
7467         (const_rtx_desc_hasher): Likewise.
7468         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
7469         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
7471 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7473         * hash-traits.h (free_ptr_hash): New class.
7474         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
7475         rather than typed_free_remove.  Remove redudant typedefs.
7476         (external_ref_hasher): Likewise.
7477         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
7478         (ehspec_hasher): Likewise.
7479         * ggc-common.c (saving_hasher): Likewise.
7480         * gimplify.c (gimplify_hasher): Likewise.
7481         * haifa-sched.c (delay_i2_hasher): Likewise.
7482         * loop-invariant.c (invariant_expr_hasher): Likewise.
7483         * loop-iv.c (biv_entry_hasher): Likewise.
7484         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
7485         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
7486         * tree-cfg.c (locus_discrim_hasher): Likewise.
7487         * tree-eh.c (finally_tree_hasher): Likewise.
7488         * tree-into-ssa.c (var_info_hasher): Likewise.
7489         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
7490         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
7491         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
7492         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
7493         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
7494         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
7495         (shared_bitmap_hasher): Likewise.
7496         * tree-ssa-threadupdate.c (redirection_data): Likewise.
7497         * tree-vectorizer.h (peel_info_hasher): Likewise.
7498         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
7499         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
7501 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7503         * hash-table.h: Update comments.
7504         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
7505         (nofree_ptr_hash): New class.
7506         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
7507         than typed_noop_remove.  Remove redudant typedefs.
7508         * attribs.c (attribute_hasher): Likewise.
7509         * cfg.c (bb_copy_hasher): Likewise.
7510         * cselib.c (cselib_hasher): Likewise.
7511         * dse.c (invariant_group_base_hasher): Likewise.
7512         * dwarf2cfi.c (trace_info_hasher): Likewise.
7513         * dwarf2out.c (macinfo_entry_hasher): Likewise.
7514         (comdat_type_hasher, loc_list_hasher): Likewise.
7515         * gcse.c (pre_ldst_expr_hasher): Likewise.
7516         * genmatch.c (id_base): Likewise.
7517         * genrecog.c (test_pattern_hasher): Likewise.
7518         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
7519         * haifa-sched.c (delay_i1_hasher): Likewise.
7520         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
7521         * ipa-icf.h (congruence_class_group_hash): Likewise.
7522         * ipa-profile.c (histogram_hash): Likewise.
7523         * ira-color.c (allocno_hard_regs_hasher): Likewise.
7524         * lto-streamer.h (string_slot_hasher): Likewise.
7525         * lto-streamer.c (tree_entry_hasher): Likewise.
7526         * plugin.c (event_hasher): Likewise.
7527         * postreload-gcse.c (expr_hasher): Likewise.
7528         * store-motion.c (st_expr_hasher): Likewise.
7529         * tree-sra.c (uid_decl_hasher): Likewise.
7530         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
7531         (ssa_name_var_hash): Likewise.
7532         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
7533         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
7534         * tree-ssa-pre.c (pre_expr_d): Likewise.
7535         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
7536         * vtable-verify.h (registration_hasher): Likewise.
7537         * vtable-verify.c (vtbl_map_hasher): Likewise.
7538         * config/arm/arm.c (libcall_hasher): Likewise.
7539         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
7540         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
7541         * config/sol2.c (comdat_entry_hasher): Likewise.
7542         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
7543         (print_fold_checksum, fold_checksum_tree): Likewise.
7544         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
7545         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
7546         (fold_build_call_array_loc): Likewise.
7547         * tree-ssa-ccp.c (gimple_htab): Likewise.
7548         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
7549         rather than pointer_type.
7551 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7553         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
7554         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
7556 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7558         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
7559         (ggc_hasher::ggc_mx): Likewise.
7560         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
7561         that duplicate ggc_hasher ones.
7563 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7565         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
7566         (gt_cleare_cache): Check here for deleted and empty entries.
7567         Replace handle_cache_entry with a call to keep_cache_entry.
7568         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
7569         (ggc_cache_hasher::keep_cache_entry): New function.
7570         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
7571         (tm_wrapper_hasher::keep_cache_entry): New function.
7572         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
7573         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7574         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7575         (type_cache_hasher::keep_cache_entry): New function.
7576         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7577         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7578         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7579         (tree_type_map_cache_hasher::keep_cache_entry): New function.
7580         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7581         (tm_clone_hasher::keep_cache_entry): New function.
7582         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7583         (dllimport_hasher::keep_cache_entry): New function.
7585 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7587         * hash-table.h: Include hash-traits.h.
7588         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7589         (ggc_cache_hasher): Move to...
7590         * hash-traits.h: ...this new file.
7592 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7594         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7595         struct cl_optimization.
7596         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7597         * tree.c (make_node_stat): Allocate cl_optimization struct.
7598         (copy_node_stat): Allocate and copy cl_optimization struct.
7600 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7602         * function.h (struct incoming_args): Move struct.
7603         (pass_by_reference, reference_callee_copied): Remove prototypes.
7604         * emit-rtl.h (struct incoming_args): Relocate struct here.
7605         * calls.h (pass_by_reference, reference_callee_copied): Relocate
7606         prototypes here.
7607         * function.c (pass_by_reference, reference_callee_copied): Move.
7608         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7609         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7610         * ipa-chkp.c: Include calls.h.
7612 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
7614         * alias.h (alias_set_type): Move typedef.
7615         * coretypes.h (alias_set_type): Relocate typedef here.
7616         * rtl.h: Don't include alias.h.
7618 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7620         * cgraph.h (cgraph_rtl_info): Move to rtl.h
7621         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7622         and instance.
7623         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7624         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7625         doesn't exist.
7626         * calls.c: Include hard-reg-set.h before rtl.h.
7627         * ira.c: Likewise.
7629 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
7630             Vladimir Makarov  <vmakarov@redhat.com>
7632         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7633         Add assert.
7635 2015-06-25  Richard Biener  <rguenther@suse.de>
7637         * fold-const.c (fold_binary_loc): Move simplification of
7638         (X <<>> C1) & C2 ...
7639         * match.pd: ... here.
7641 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
7643         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
7645 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7647         * match.pd: Add patterns for vec_conds between 1 and 0.
7649 2015-06-25  Richard Biener  <rguenther@suse.de>
7651         * tree-vect-stmts.c (vectorizable_conversion): Do not set
7652         STMT_VINFO_VEC_STMT for SLP.
7653         (vectorizable_store): Likewise.
7654         (vectorizable_load): Likewise.
7655         (vect_transform_stmt): Catch SLP vectorization clobbering
7656         STMT_VINFO_VEC_STMT.
7658 2015-06-25  Richard Biener  <rguenther@suse.de>
7660         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
7661         dumping.
7662         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
7663         cleanup resulting dead code and parameters.
7664         (vect_transform_slp_perm_load): Adjust.
7666 2015-06-25  Nick Clifton  <nickc@redhat.com>
7668         * config/bfin/bfin.c (bfin_expand_prologue): Set
7669         current_function_static_stack_size if flag_stack_usage_info is set.
7670         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
7671         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
7672         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7673         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
7675 2015-06-25  Tom de Vries  <tom@codesourcery.com>
7677         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
7678         comment that the generated IV is unsigned.
7680 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7682         PR target/29693
7683         * config/arm/arm.c (arm_dbx_register_number): Return
7684         DWARF_FRAME_REGISTERS by default.
7686 2015-06-25  Tom de Vries  <tom@codesourcery.com>
7688         * dominance.c (calculate_dominance_info): Fix verify_dominators call
7689         argument.  Call verify_dominator when reusing dominator info.
7691 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7693         PR target/66563
7694         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
7695         an additional element of the unspec vector.  Modify indices
7696         of operands.
7697         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
7698         * config/sh/sh.c (prepare_move_operands): Pass incremented
7699         const_int to gen_GOTaddr2picreg.
7700         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
7702 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
7704         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
7705         Condition on TARGET_FLOAT.
7707 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
7709         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
7710         and (no)crypto.
7712 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
7714         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
7716         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
7717         aarch64_err_no_fpadvsimd.
7719         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
7720         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
7721         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
7722         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
7723         Turn error into assert, test TARGET_FLOAT.
7724         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
7725         TARGET_FLOAT.
7727 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
7729         PR debug/66482
7730         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
7732 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
7734         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
7736 2015-06-24 Renlin Li <renlin.li@arm.com>
7738         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
7739         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
7741 2015-06-24  Richard Biener  <rguenther@suse.de>
7743         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
7744         (main): Likewise.
7745         (lower_opt_convert): Support lowering of conditional view_convert.
7746         (parser::parse_operation): Likewise.
7747         (parser::parse_for): Likewise.
7749 2015-06-24  Renlin Li  <renlin.li@arm.com>
7751         * varasm.c (emit_local): Use unsigned int for align variable.
7753 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7755         PR target/63408
7756         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
7757         for negative numbers.
7759 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7761         PR rtl-optimization/66306
7762         * reload.c (find_reloads): Swap the match_dup info for
7763         commutative operands.
7765 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7767         * config/s390/vx-builtins.md
7768         ("vec_scatter_element<mode>_<non_vec_int>")
7769         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
7770         attribute with bhfgq.
7772 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7774         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
7776 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7778         * config/s390/s390-builtin-types.def: Add flag to indicate the
7779         options under which the function type is needed.
7780         * config/s390/s390-builtins.def: Add flag to indicate the options
7781         under which the builtin is enabled.
7782         * config/s390/s390-builtins.h: Add flags parameter to macro
7783         definitions.
7784         (bflags_for_builtin): New function.
7785         (flags_for_builtin): Renamed to ...
7786         (opflags_for_builtin): ... this.
7787         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
7788         flags_for_builtin to bflags_for_builtin and
7789         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
7790         * config/s390/s390.c: Add initialization of bflags_builtin and
7791         opflags_builtin arrays.
7792         Remove code for flags_builtin.
7793         (s390_init_builtins): Only create builtin function types if one of
7794         their flags is active.
7795         Only create builtins if all of their flags are active.
7796         (s390_expand_builtin): Rename flags_for_builtin to
7797         opflags_for_builtin.
7799 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7801         * config/s390/vecintrin.h: Remove internal builtins.
7803 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7805         * config/s390/s390.c (s390_secondary_reload): Fix check for
7806         GENERAL_REGS register class.
7808 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7810         * config/s390/s390.c (s390_support_vector_misalignment): Call
7811         default implementation for !TARGET_VX.
7813 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7815         * config/s390/s390.c (s390_legitimate_constant_p): Add
7816         TARGET_VX check.
7818 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7820         * config/s390/s390.c (s390_vector_abi): New variable definition.
7821         (s390_check_type_for_vector_abi): New function.
7822         (TARGET_ASM_FILE_END): New macro definition.
7823         (s390_asm_file_end): New function.
7824         (s390_function_arg): Call s390_check_type_for_vector_abi.
7825         (s390_gimplify_va_arg): Likewise.
7826         * configure: Regenerate.
7827         * configure.ac: Check for .gnu_attribute Binutils feature.
7829 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
7831         PR target/65803
7832         * config/bfin/bfin.c (hwloop_optimize): Initialize
7833         JUMP_LABEL for newly created jump.
7835 2015-06-23  Tristan Gingold  <gingold@adacore.com>
7837         * collect-utils.c (collect_wait): Unlink the response file here
7838         instead of...
7839         (do_wait): ...here.
7840         (utils_cleanup): ...and here.
7842 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
7844         * df-scan.c: Don't include target-def.h.
7845         * targhooks.c: Likewise.
7846         * config/arm/arm-c.c: Likewise.
7847         * config/i386/i386-c.c: Likewise.
7848         * config/nds32/nds32-cost.c: Likewise.
7849         * config/nds32/nds32-fp-as-gp.c: Likewise.
7850         * config/nds32/nds32-intrinsic.c: Likewise.
7851         * config/nds32/nds32-isr.c: Likewise.
7852         * config/nds32/nds32-md-auxiliary.c: Likewise.
7853         * config/nds32/nds32-memory-manipulation.c: Likewise.
7854         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7855         * config/nds32/nds32-predicates.c: Likewise.
7857 2015-06-23  Richard Biener  <rguenther@suse.de>
7859         PR tree-optimization/66636
7860         * tree-vect-stmts.c (vectorizable_store): Properly compute the
7861         def type for further defs for strided stores.
7863 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
7865         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
7866         conditional selects.
7867         (setcc_int<mode>, setcc_float<mode>): Reformat.
7869 2015-06-23  Marek Polacek  <polacek@redhat.com>
7871         * match.pd ((x + y) - (x | y) -> x & y,
7872         (x + y) - (x & y) -> x | y): New patterns.
7874 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
7876         PR 65711
7877         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
7878         '-dynamic-linker' within %{!shared: ...}.
7880 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
7882         PR target/66560
7883         * config/i386/predicates.md (addsub_vm_operator): New predicate.
7884         (addsub_vs_operator): Ditto.
7885         (addsub_vs_parallel): Ditto.
7886         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
7887         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
7888         Put minus RTX before plus and adjust vec_merge selector.
7889         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
7890         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7891         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7892         (addsub vec_merge splitters): New combiner splitters.
7893         (addsub vec_select/vec_concat splitters): Ditto.
7895 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
7897         PR tree-optimization/66449
7898         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7899         POINTER_PLUS_EXPR for pointers.
7901 2015-06-23  Alan Modra  <amodra@gmail.com>
7903         * rtlanal.c (commutative_operand_precedence): Correct comments.
7904         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7905         declaration.  Return an int.  Distinguish REG,REG return from
7906         others.
7907         (struct simplify_plus_minus_op_data): Make local to function.
7908         (simplify_plus_minus): Don't set canonicalized if merely sorting
7909         registers.  Avoid packing ops if nothing changes.  White space fixes.
7911 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
7913         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7914         -fdump-ada-spec is passed but not if -fsyntax-only is.
7916 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
7918         PR bootstrap/63740
7919         * lra-lives.c (process_bb_lives): Check insn copying the same
7920         reload pseudo and don't create a copy for it.
7922 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7924         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7925         for cond_stmt.
7927 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7929         * builtins.def (DEF_GOMP_BUILTIN): Test
7930         'flag_tree_parallelize_loops > 1' instead of
7931         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
7933 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7935         * dominance.c (calculate_dominance_info): Verify dominators if
7936         early-out.
7938 2015-06-22  Marek Polacek  <polacek@redhat.com>
7940         * match.pd ((x ^ y) ^ (x | y) -> x & y,
7941         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7942         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7943         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7945 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
7947         PR target/65871
7948         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7949         cost of embedded comparison.
7951 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7953         PR target/65914
7954         * config/rs6000/predicates.md (altivec_register_operand): Permit
7955         virtual stack registers.
7956         (vsx_register_operand): Likewise.
7957         (vfloat_operand): Likewise.
7958         (vint_operand): Likewise.
7959         (vlogical_operand): Likewise.
7961 2015-06-22  Richard Biener  <rguenther@suse.de>
7963         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
7964         and single_scalar_iteration_cost members.
7965         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
7966         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
7967         (vect_get_single_scalar_iteration_cost): Remove.
7968         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7969         Use LOOP_VINFO_SCALAR_ITERATION_COST.
7970         * tree-vect-loop.c (destroy_loop_vec_info): Free
7971         scalar_cost_vec.
7972         (vect_get_single_scalar_iteration_cost): Compute result into
7973         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
7974         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
7975         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
7976         (vect_estimate_min_profitable_iters): Use them.
7978 2015-06-22  Christian Bruel  <christian.bruel@st.com>
7980         PR target/52144
7981         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
7982         (TARGET_INSERT_ATTRIBUTES): Define.
7983         (thumb_flipper): New var.
7984         * config/arm/arm.opt (-mflip-thumb): New switch.
7986 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
7987             Martin Liska  <mliska@suse.cz>
7989         PR ipa/65908
7990         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
7991         construction of arg_types.
7992         (sem_function::sem_function): Likewise.
7993         (sem_function::~sem_function): Remove destruction of arg_types.
7994         (sem_function::compatible_parm_types_p): New function.
7995         (sem_function::equals_wpa): Reorg matching of return values
7996         and parameter types.
7997         (sem_function::equals_private): Reorg mathcing of argument types.
7998         (sem_function::parse_tree_args): Remove.
7999         * ipa-icf.h (init_wpa): Do not call it.
8000         (parse_tree_args): Remove.
8001         (compatible_parm_types_p): Declare.
8002         (result_type): Remove.
8003         (arg_types): Remove.
8005 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
8007         PR ipa/66351
8008         * ipa-polymorphic-call.c
8009         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
8010         initializing alias oracle; fix formating; set base_alias_set if it
8011         is known.
8013 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
8015         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
8016         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
8017         (find_inc): Likewise.
8018         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
8019         swapping.
8020         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
8021         * df-scan.c (df_swap_refs): Remove.
8022         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
8023         * dominance.c (link_roots): Use std::swap instead of manually swapping.
8024         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
8025         * fold-const.c (fold_relational_const): Likewise.
8026         * genattrtab.c (simplify_test_exp): Likewise.
8027         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
8028         gimple_simplify): Likewise.
8029         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
8030         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
8031         * ipa-devirt.c (add_type_duplicate): Likewise.
8032         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
8033         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
8034         * lra.c (lra_create_copy): Likewise.
8035         * lto-streamer-out.c (DFS::DFS): Likewise.
8036         * modulo-sched.c (get_sched_window): Likewise.
8037         * omega.c (omega_pretty_print_problem): Likewise.
8038         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
8039         * reload1.c (reloads_unique_chain_p): Likewise.
8040         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
8041         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
8042         use std::swap.
8043         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
8044         manually swapping.
8045         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
8046         predicate_mem_writes): Likewise.
8047         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
8048         * tree-predcom.c (combine_chains): Likewise.
8049         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
8050         refs_may_alias_p_1): Likewise.
8051         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
8052         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
8053         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
8054         number_of_iterations_cond): Likewise.
8055         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
8056         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
8057         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8058         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8059         * tree-vrp.c (extract_range_from_binary_expr_1,
8060         extract_range_from_unary_expr_1): Likewise.
8062 2015-06-20  Marek Polacek  <polacek@redhat.com>
8064         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
8066 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8068         PR target/66591
8069         * config/sh/sh.c (prepare_move_operands): Replace subreg
8070         index term with R0 for base and index addressing.
8072 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
8074         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
8075         op1 is an fp zero.
8076         (movsf_aarch64): Change condition from register_operand to
8077         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
8078         load1.  Change type for alternative 7 to store1.
8079         (movdf_aarch64): Likewise.
8081 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
8083         * config/vax/vax.md: Adjust sign/zero extend patterns to
8084         handle SUBREGs in operands[1].
8086 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8088         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
8089         of manually swapping.
8090         (expand_vec_perm_interleave2): Likewise.
8092 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
8094         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
8095         reuse bounds created for abnormal ssa names.
8097 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
8099         * config/nvptx/nvptx.md (allocate_stack): Rename to...
8100         (allocate_stack_<mode>): ... this, and add :P on both
8101         match_operand and unspec.
8102         (allocate_stack): New expander.
8104 2015-06-19  Christian Bruel  <christian.bruel@st.com>
8106         PR target/66541
8107         PR target/52144
8108         * config/arm/arm.c (arm_set_current_function): Handle
8109         explicit default options.
8111 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
8113         * config/i386/i386.md (*movsicc_noc_zext): New insn.
8114         (zero-extended cmove with mem peephole2): New pattern.
8115         (cmove with mem peephole2): Merge patterns.
8117 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
8119         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
8121 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
8123         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
8124         * config/mips/mips.md (*madd4<mode>): Ditto.
8125         (*nmadd3<mode>) Ditto.
8126         (*nmadd4<mode>_fastmath): Ditto.
8127         (*nmadd3<mode>_fastmath): Ditto.
8128         (*nmsub4<mode>): Ditto.
8129         (*nmsub3<mode>): Ditto.
8130         (*nmsub4<mode>_fastmath): Ditto.
8131         (*nmsub3<mode>_fastmath): Ditto.
8133 2015-06-18  Michael Matz  <matz@suse.de>
8135         PR middle-end/66253
8136         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
8137         grouped strided stores.
8138         (vectorizable_load): Don't use the DR from first_stmt in
8139         the non-SLP grouped strided case.
8141 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
8143         PR target/66569
8144         * function.c (assign_bounds): Add arguments assign_regs,
8145         assign_special, assign_bt.
8146         (assign_parms): For vararg functions handle bounds in BT
8147         and special slots after incoming vararg bounds.
8149 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
8151         PR middle-end/66568
8152         * cfgexpand.c (expand_return): Handle missing bounds.
8153         (expand_gimple_stmt_1): Likewise.
8154         * tree-chkp.c (chkp_expand_zero_bounds): New.
8155         * tree-chkp.h (chkp_expand_zero_bounds): New.
8157 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
8159         PR middle-end/66567
8160         * ipa-chkp.c (chkp_maybe_create_clone): Require
8161         functions to be instrumentable.
8162         * tree-chkp.c (chkp_replace_function_pointer): Use
8163         chkp_instrumentable_p instead of attribute check.
8165 2015-06-18  Richard Biener  <rguenther@suse.de>
8167         PR tree-optimization/66510
8168         * tree-vect-stmts.c (vectorizable_load): Properly compute the
8169         number of vector loads for SLP permuted loads.
8170         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
8171         check the stride for loop vectorization.
8172         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
8173         vectorization factor.
8174         (vect_analyze_group_access): If the group size is not a power
8175         of two require a epilogue loop.
8176         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
8177         compute and optimizing and alias test pruning after final
8178         vectorization factor computation.
8179         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
8180         vector alignment.
8181         (vect_transform_slp_perm_load): Properly compute the original
8182         number of vector load stmts.
8184 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
8186         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
8187         "unlikely character , in @var" warning.
8189 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
8191         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
8192         (ix86_function_arg_advance): Ditto.
8193         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
8195 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
8197         * function.h (struct rtl_data): Remove struct and accessor macros.
8198         * emit-rtl.h (struct rtl_data): Relocate to here.
8199         * Makefile.in (GTFILES): Add emit-rtl.h.
8200         * df-core.c: Include emit-rtl.h.
8201         * genattrtab.c: Likewise.
8202         * genconditions.c: Likewise.
8203         * genpreds.c: Likewise.
8204         * genrecog.c: Likewise.
8205         * regcprop.c: Likewise.
8206         * resource.c: Likewise.
8207         * sched-rgn.c: Likewise.
8208         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8209         * config/i386/winnt.c: Likewise.
8211 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
8213         PR middle-end/66429
8214         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
8215         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
8216         and has_force_vectorize_loops flags from cfun into
8217         child_cfun.
8218         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
8219         if simduid is non-NULL.
8220         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
8221         * passes.def (pass_simduid_cleanup): Add new pass after loop
8222         passes.
8223         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
8224         indirection from htab argument's type.
8225         (shrink_simd_arrays): New function.
8226         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
8227         Don't call adjust_simduid_builtins if there are no loops.
8228         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
8229         (pass_simduid_cleanup::execute): New method.
8230         (make_pass_simduid_cleanup): New function.
8232 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
8234         * tree-core.h (tree_target_option): Make opts field a pointer to a
8235         cl_target_option instead of an instance of the struct.
8236         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
8237         the structure.
8238         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
8239         TARGET_OPTION_NODE.
8240         (copy_node_stat): Allocate and copy struct cl_target_option.
8242 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
8244         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
8245         Remove conditional exposure of prototypes.
8246         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
8247         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
8248         definitions in tree.h with functions.
8249         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
8250         anon_aggrname_p.
8251         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
8253 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
8255         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
8256         (*cmp<mode>_signed): ... this.
8257         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
8258         (*cmp<mode>_unsigned): ... this.  Remove %b.
8260 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
8262         * coretypes.h: Include input.h and as-a.h.
8263         * rtl.h: Include input.h and as-a.h for generator files.
8264         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
8265         * vec.c: Don't include diagnostic-core.h.
8266         * alias.c: Do not include input.h, line-map.h or is-a.h.
8267         * asan.c: Likewise.
8268         * attribs.c: Likewise.
8269         * auto-inc-dec.c: Likewise.
8270         * auto-profile.c: Likewise.
8271         * bb-reorder.c: Likewise.
8272         * bt-load.c: Likewise.
8273         * builtins.c: Likewise.
8274         * caller-save.c: Likewise.
8275         * calls.c: Likewise.
8276         * ccmp.c: Likewise.
8277         * cfg.c: Likewise.
8278         * cfganal.c: Likewise.
8279         * cfgbuild.c: Likewise.
8280         * cfgcleanup.c: Likewise.
8281         * cfgexpand.c: Likewise.
8282         * cfghooks.c: Likewise.
8283         * cfgloop.c: Likewise.
8284         * cfgloop.h: Likewise.
8285         * cfgloopanal.c: Likewise.
8286         * cfgloopmanip.c: Likewise.
8287         * cfgrtl.c: Likewise.
8288         * cgraph.c: Likewise.
8289         * cgraphbuild.c: Likewise.
8290         * cgraphclones.c: Likewise.
8291         * cgraphunit.c: Likewise.
8292         * cilk-common.c: Likewise.
8293         * combine-stack-adj.c: Likewise.
8294         * combine.c: Likewise.
8295         * compare-elim.c: Likewise.
8296         * convert.c: Likewise.
8297         * coverage.c: Likewise.
8298         * cppbuiltin.c: Likewise.
8299         * cprop.c: Likewise.
8300         * cse.c: Likewise.
8301         * cselib.c: Likewise.
8302         * data-streamer-in.c: Likewise.
8303         * data-streamer-out.c: Likewise.
8304         * data-streamer.c: Likewise.
8305         * dbxout.c: Likewise.
8306         * dce.c: Likewise.
8307         * ddg.c: Likewise.
8308         * debug.c: Likewise.
8309         * df-core.c: Likewise.
8310         * df-problems.c: Likewise.
8311         * df-scan.c: Likewise.
8312         * df.h: Likewise.
8313         * dfp.c: Likewise.
8314         * diagnostic-core.h: Likewise.
8315         * diagnostic.c: Likewise.
8316         * dojump.c: Likewise.
8317         * dominance.c: Likewise.
8318         * domwalk.c: Likewise.
8319         * double-int.c: Likewise.
8320         * dse.c: Likewise.
8321         * dumpfile.c: Likewise.
8322         * dumpfile.h: Likewise.
8323         * dwarf2asm.c: Likewise.
8324         * dwarf2cfi.c: Likewise.
8325         * dwarf2out.c: Likewise.
8326         * emit-rtl.c: Likewise.
8327         * et-forest.c: Likewise.
8328         * except.c: Likewise.
8329         * explow.c: Likewise.
8330         * expmed.c: Likewise.
8331         * expr.c: Likewise.
8332         * final.c: Likewise.
8333         * fixed-value.c: Likewise.
8334         * fold-const.c: Likewise.
8335         * function.c: Likewise.
8336         * fwprop.c: Likewise.
8337         * gcc-plugin.h: Likewise.
8338         * gcse.c: Likewise.
8339         * generic-match-head.c: Likewise.
8340         * ggc-page.c: Likewise.
8341         * gimple-builder.c: Likewise.
8342         * gimple-expr.c: Likewise.
8343         * gimple-fold.c: Likewise.
8344         * gimple-iterator.c: Likewise.
8345         * gimple-low.c: Likewise.
8346         * gimple-match-head.c: Likewise.
8347         * gimple-pretty-print.c: Likewise.
8348         * gimple-ssa-isolate-paths.c: Likewise.
8349         * gimple-ssa-strength-reduction.c: Likewise.
8350         * gimple-streamer-in.c: Likewise.
8351         * gimple-streamer-out.c: Likewise.
8352         * gimple-streamer.h: Likewise.
8353         * gimple-walk.c: Likewise.
8354         * gimple.c: Likewise.
8355         * gimplify-me.c: Likewise.
8356         * gimplify.c: Likewise.
8357         * godump.c: Likewise.
8358         * graph.c: Likewise.
8359         * graphite-blocking.c: Likewise.
8360         * graphite-dependences.c: Likewise.
8361         * graphite-interchange.c: Likewise.
8362         * graphite-isl-ast-to-gimple.c: Likewise.
8363         * graphite-optimize-isl.c: Likewise.
8364         * graphite-poly.c: Likewise.
8365         * graphite-scop-detection.c: Likewise.
8366         * graphite-sese-to-poly.c: Likewise.
8367         * graphite.c: Likewise.
8368         * haifa-sched.c: Likewise.
8369         * hw-doloop.c: Likewise.
8370         * ifcvt.c: Likewise.
8371         * init-regs.c: Likewise.
8372         * input.c: Likewise.
8373         * internal-fn.c: Likewise.
8374         * ipa-chkp.c: Likewise.
8375         * ipa-comdats.c: Likewise.
8376         * ipa-cp.c: Likewise.
8377         * ipa-devirt.c: Likewise.
8378         * ipa-icf-gimple.c: Likewise.
8379         * ipa-icf.c: Likewise.
8380         * ipa-inline-analysis.c: Likewise.
8381         * ipa-inline-transform.c: Likewise.
8382         * ipa-inline.c: Likewise.
8383         * ipa-polymorphic-call.c: Likewise.
8384         * ipa-profile.c: Likewise.
8385         * ipa-prop.c: Likewise.
8386         * ipa-pure-const.c: Likewise.
8387         * ipa-ref.c: Likewise.
8388         * ipa-reference.c: Likewise.
8389         * ipa-split.c: Likewise.
8390         * ipa-utils.c: Likewise.
8391         * ipa-visibility.c: Likewise.
8392         * ipa.c: Likewise.
8393         * ira-build.c: Likewise.
8394         * ira-color.c: Likewise.
8395         * ira-conflicts.c: Likewise.
8396         * ira-costs.c: Likewise.
8397         * ira-emit.c: Likewise.
8398         * ira-lives.c: Likewise.
8399         * ira.c: Likewise.
8400         * jump.c: Likewise.
8401         * langhooks.c: Likewise.
8402         * lcm.c: Likewise.
8403         * loop-doloop.c: Likewise.
8404         * loop-init.c: Likewise.
8405         * loop-invariant.c: Likewise.
8406         * loop-iv.c: Likewise.
8407         * loop-unroll.c: Likewise.
8408         * lower-subreg.c: Likewise.
8409         * lra-assigns.c: Likewise.
8410         * lra-coalesce.c: Likewise.
8411         * lra-constraints.c: Likewise.
8412         * lra-eliminations.c: Likewise.
8413         * lra-lives.c: Likewise.
8414         * lra-remat.c: Likewise.
8415         * lra-spills.c: Likewise.
8416         * lra.c: Likewise.
8417         * lto-cgraph.c: Likewise.
8418         * lto-compress.c: Likewise.
8419         * lto-opts.c: Likewise.
8420         * lto-section-in.c: Likewise.
8421         * lto-section-out.c: Likewise.
8422         * lto-streamer-in.c: Likewise.
8423         * lto-streamer-out.c: Likewise.
8424         * lto-streamer.c: Likewise.
8425         * mcf.c: Likewise.
8426         * mode-switching.c: Likewise.
8427         * modulo-sched.c: Likewise.
8428         * omega.c: Likewise.
8429         * omp-low.c: Likewise.
8430         * optabs.c: Likewise.
8431         * opts-global.c: Likewise.
8432         * opts.h: Likewise.
8433         * passes.c: Likewise.
8434         * plugin.c: Likewise.
8435         * postreload-gcse.c: Likewise.
8436         * postreload.c: Likewise.
8437         * predict.c: Likewise.
8438         * pretty-print.h: Likewise.
8439         * print-rtl.c: Likewise.
8440         * print-tree.c: Likewise.
8441         * profile.c: Likewise.
8442         * real.c: Likewise.
8443         * realmpfr.c: Likewise.
8444         * recog.c: Likewise.
8445         * ree.c: Likewise.
8446         * reg-stack.c: Likewise.
8447         * regcprop.c: Likewise.
8448         * reginfo.c: Likewise.
8449         * regrename.c: Likewise.
8450         * regstat.c: Likewise.
8451         * reload.c: Likewise.
8452         * reload1.c: Likewise.
8453         * reorg.c: Likewise.
8454         * resource.c: Likewise.
8455         * rtl-chkp.c: Likewise.
8456         * rtl-error.c: Likewise.
8457         * rtlanal.c: Likewise.
8458         * rtlhooks.c: Likewise.
8459         * sanopt.c: Likewise.
8460         * sched-deps.c: Likewise.
8461         * sched-ebb.c: Likewise.
8462         * sched-rgn.c: Likewise.
8463         * sched-vis.c: Likewise.
8464         * sdbout.c: Likewise.
8465         * sel-sched-dump.c: Likewise.
8466         * sel-sched-ir.c: Likewise.
8467         * sel-sched.c: Likewise.
8468         * sese.c: Likewise.
8469         * shrink-wrap.c: Likewise.
8470         * simplify-rtx.c: Likewise.
8471         * stack-ptr-mod.c: Likewise.
8472         * statistics.c: Likewise.
8473         * stmt.c: Likewise.
8474         * stor-layout.c: Likewise.
8475         * store-motion.c: Likewise.
8476         * streamer-hooks.c: Likewise.
8477         * stringpool.c: Likewise.
8478         * symtab.c: Likewise.
8479         * target-globals.c: Likewise.
8480         * targhooks.c: Likewise.
8481         * toplev.c: Likewise.
8482         * tracer.c: Likewise.
8483         * trans-mem.c: Likewise.
8484         * tree-affine.c: Likewise.
8485         * tree-browser.c: Likewise.
8486         * tree-call-cdce.c: Likewise.
8487         * tree-cfg.c: Likewise.
8488         * tree-cfgcleanup.c: Likewise.
8489         * tree-chkp-opt.c: Likewise.
8490         * tree-chkp.c: Likewise.
8491         * tree-chrec.c: Likewise.
8492         * tree-complex.c: Likewise.
8493         * tree-data-ref.c: Likewise.
8494         * tree-dfa.c: Likewise.
8495         * tree-diagnostic.c: Likewise.
8496         * tree-dump.c: Likewise.
8497         * tree-eh.c: Likewise.
8498         * tree-emutls.c: Likewise.
8499         * tree-if-conv.c: Likewise.
8500         * tree-inline.c: Likewise.
8501         * tree-into-ssa.c: Likewise.
8502         * tree-iterator.c: Likewise.
8503         * tree-loop-distribution.c: Likewise.
8504         * tree-nested.c: Likewise.
8505         * tree-nrv.c: Likewise.
8506         * tree-object-size.c: Likewise.
8507         * tree-outof-ssa.c: Likewise.
8508         * tree-parloops.c: Likewise.
8509         * tree-phinodes.c: Likewise.
8510         * tree-predcom.c: Likewise.
8511         * tree-pretty-print.c: Likewise.
8512         * tree-profile.c: Likewise.
8513         * tree-scalar-evolution.c: Likewise.
8514         * tree-sra.c: Likewise.
8515         * tree-ssa-address.c: Likewise.
8516         * tree-ssa-alias.c: Likewise.
8517         * tree-ssa-ccp.c: Likewise.
8518         * tree-ssa-coalesce.c: Likewise.
8519         * tree-ssa-copy.c: Likewise.
8520         * tree-ssa-copyrename.c: Likewise.
8521         * tree-ssa-dce.c: Likewise.
8522         * tree-ssa-dom.c: Likewise.
8523         * tree-ssa-dse.c: Likewise.
8524         * tree-ssa-forwprop.c: Likewise.
8525         * tree-ssa-ifcombine.c: Likewise.
8526         * tree-ssa-live.c: Likewise.
8527         * tree-ssa-loop-ch.c: Likewise.
8528         * tree-ssa-loop-im.c: Likewise.
8529         * tree-ssa-loop-ivcanon.c: Likewise.
8530         * tree-ssa-loop-ivopts.c: Likewise.
8531         * tree-ssa-loop-manip.c: Likewise.
8532         * tree-ssa-loop-niter.c: Likewise.
8533         * tree-ssa-loop-prefetch.c: Likewise.
8534         * tree-ssa-loop-unswitch.c: Likewise.
8535         * tree-ssa-loop.c: Likewise.
8536         * tree-ssa-math-opts.c: Likewise.
8537         * tree-ssa-operands.c: Likewise.
8538         * tree-ssa-phiopt.c: Likewise.
8539         * tree-ssa-phiprop.c: Likewise.
8540         * tree-ssa-pre.c: Likewise.
8541         * tree-ssa-propagate.c: Likewise.
8542         * tree-ssa-reassoc.c: Likewise.
8543         * tree-ssa-sccvn.c: Likewise.
8544         * tree-ssa-scopedtables.c: Likewise.
8545         * tree-ssa-sink.c: Likewise.
8546         * tree-ssa-strlen.c: Likewise.
8547         * tree-ssa-structalias.c: Likewise.
8548         * tree-ssa-tail-merge.c: Likewise.
8549         * tree-ssa-ter.c: Likewise.
8550         * tree-ssa-threadedge.c: Likewise.
8551         * tree-ssa-threadupdate.c: Likewise.
8552         * tree-ssa-uncprop.c: Likewise.
8553         * tree-ssa-uninit.c: Likewise.
8554         * tree-ssa.c: Likewise.
8555         * tree-ssanames.c: Likewise.
8556         * tree-stdarg.c: Likewise.
8557         * tree-streamer-in.c: Likewise.
8558         * tree-streamer-out.c: Likewise.
8559         * tree-streamer.c: Likewise.
8560         * tree-switch-conversion.c: Likewise.
8561         * tree-tailcall.c: Likewise.
8562         * tree-vect-data-refs.c: Likewise.
8563         * tree-vect-generic.c: Likewise.
8564         * tree-vect-loop-manip.c: Likewise.
8565         * tree-vect-loop.c: Likewise.
8566         * tree-vect-patterns.c: Likewise.
8567         * tree-vect-slp.c: Likewise.
8568         * tree-vect-stmts.c: Likewise.
8569         * tree-vectorizer.c: Likewise.
8570         * tree-vrp.c: Likewise.
8571         * tree.c: Likewise.
8572         * tsan.c: Likewise.
8573         * ubsan.c: Likewise.
8574         * valtrack.c: Likewise.
8575         * value-prof.c: Likewise.
8576         * var-tracking.c: Likewise.
8577         * varasm.c: Likewise.
8578         * varpool.c: Likewise.
8579         * vmsdbgout.c: Likewise.
8580         * vtable-verify.c: Likewise.
8581         * web.c: Likewise.
8582         * wide-int.cc: Likewise.
8583         * xcoffout.c: Likewise.
8584         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8585         * common/common-targhooks.c: Likewise.
8586         * config/aarch64/aarch64-builtins.c: Likewise.
8587         * config/aarch64/aarch64.c: Likewise.
8588         * config/alpha/alpha.c: Likewise.
8589         * config/arc/arc.c: Likewise.
8590         * config/arm/aarch-common.c: Likewise.
8591         * config/arm/arm-builtins.c: Likewise.
8592         * config/arm/arm-c.c: Likewise.
8593         * config/arm/arm.c: Likewise.
8594         * config/avr/avr-c.c: Likewise.
8595         * config/avr/avr-log.c: Likewise.
8596         * config/avr/avr.c: Likewise.
8597         * config/bfin/bfin.c: Likewise.
8598         * config/c6x/c6x.c: Likewise.
8599         * config/cr16/cr16.c: Likewise.
8600         * config/cris/cris.c: Likewise.
8601         * config/darwin-c.c: Likewise.
8602         * config/darwin.c: Likewise.
8603         * config/default-c.c: Likewise.
8604         * config/epiphany/epiphany.c: Likewise.
8605         * config/epiphany/mode-switch-use.c: Likewise.
8606         * config/epiphany/resolve-sw-modes.c: Likewise.
8607         * config/fr30/fr30.c: Likewise.
8608         * config/frv/frv.c: Likewise.
8609         * config/ft32/ft32.c: Likewise.
8610         * config/glibc-c.c: Likewise.
8611         * config/h8300/h8300.c: Likewise.
8612         * config/i386/i386-c.c: Likewise.
8613         * config/i386/i386.c: Likewise.
8614         * config/i386/msformat-c.c: Likewise.
8615         * config/i386/winnt-cxx.c: Likewise.
8616         * config/i386/winnt-stubs.c: Likewise.
8617         * config/i386/winnt.c: Likewise.
8618         * config/ia64/ia64-c.c: Likewise.
8619         * config/ia64/ia64.c: Likewise.
8620         * config/iq2000/iq2000.c: Likewise.
8621         * config/lm32/lm32.c: Likewise.
8622         * config/m32c/m32c-pragma.c: Likewise.
8623         * config/m32c/m32c.c: Likewise.
8624         * config/m32r/m32r.c: Likewise.
8625         * config/m68k/m68k.c: Likewise.
8626         * config/mcore/mcore.c: Likewise.
8627         * config/mep/mep-pragma.c: Likewise.
8628         * config/mep/mep.c: Likewise.
8629         * config/microblaze/microblaze-c.c: Likewise.
8630         * config/microblaze/microblaze.c: Likewise.
8631         * config/mips/mips.c: Likewise.
8632         * config/mmix/mmix.c: Likewise.
8633         * config/mn10300/mn10300.c: Likewise.
8634         * config/moxie/moxie.c: Likewise.
8635         * config/msp430/msp430-c.c: Likewise.
8636         * config/msp430/msp430.c: Likewise.
8637         * config/nds32/nds32-cost.c: Likewise.
8638         * config/nds32/nds32-fp-as-gp.c: Likewise.
8639         * config/nds32/nds32-intrinsic.c: Likewise.
8640         * config/nds32/nds32-isr.c: Likewise.
8641         * config/nds32/nds32-md-auxiliary.c: Likewise.
8642         * config/nds32/nds32-memory-manipulation.c: Likewise.
8643         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8644         * config/nds32/nds32-predicates.c: Likewise.
8645         * config/nds32/nds32.c: Likewise.
8646         * config/nios2/nios2.c: Likewise.
8647         * config/nvptx/nvptx.c: Likewise.
8648         * config/pa/pa.c: Likewise.
8649         * config/pdp11/pdp11.c: Likewise.
8650         * config/rl78/rl78-c.c: Likewise.
8651         * config/rl78/rl78.c: Likewise.
8652         * config/rs6000/rs6000-c.c: Likewise.
8653         * config/rs6000/rs6000.c: Likewise.
8654         * config/rx/rx.c: Likewise.
8655         * config/s390/s390-c.c: Likewise.
8656         * config/s390/s390.c: Likewise.
8657         * config/sh/sh-c.c: Likewise.
8658         * config/sh/sh-mem.cc: Likewise.
8659         * config/sh/sh.c: Likewise.
8660         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8661         * config/sh/sh_treg_combine.cc: Likewise.
8662         * config/sol2-c.c: Likewise.
8663         * config/sol2-cxx.c: Likewise.
8664         * config/sol2-stubs.c: Likewise.
8665         * config/sol2.c: Likewise.
8666         * config/sparc/sparc-c.c: Likewise.
8667         * config/sparc/sparc.c: Likewise.
8668         * config/spu/spu-c.c: Likewise.
8669         * config/spu/spu.c: Likewise.
8670         * config/stormy16/stormy16.c: Likewise.
8671         * config/tilegx/mul-tables.c: Likewise.
8672         * config/tilegx/tilegx-c.c: Likewise.
8673         * config/tilegx/tilegx.c: Likewise.
8674         * config/tilepro/mul-tables.c: Likewise.
8675         * config/tilepro/tilepro-c.c: Likewise.
8676         * config/tilepro/tilepro.c: Likewise.
8677         * config/v850/v850-c.c: Likewise.
8678         * config/v850/v850.c: Likewise.
8679         * config/vax/vax.c: Likewise.
8680         * config/visium/visium.c: Likewise.
8681         * config/vms/vms-c.c: Likewise.
8682         * config/vms/vms.c: Likewise.
8683         * config/vxworks.c: Likewise.
8684         * config/winnt-c.c: Likewise.
8685         * config/xtensa/xtensa.c: Likewise.
8687 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
8689         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
8690         function.
8691         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
8693 2015-06-17  Richard Biener  <rguenther@suse.de>
8695         PR tree-optimization/66251
8696         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
8697         stmts for SLP strided stores.
8699         Revert
8700         2015-05-22  Richard Biener  <rguenther@suse.de>
8702         PR tree-optimization/66251
8703         * tree-vect-stmts.c (vectorizable_conversion): Properly
8704         set STMT_VINFO_VEC_STMT even for the SLP case.
8706         2015-05-26  Michael Matz  <matz@suse.de>
8708         PR middle-end/66251
8709         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
8710         STMT_VINFO_VEC_STMT, also with SLP.
8712 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
8714         PR target/56766
8715         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
8716         (*avx_addsubv4df3_1s): Ditto.
8717         (*sse3_addsubv2df3_1): Ditto.
8718         (*sse3_addsubv2df3_1s): Ditto.
8719         (*avx_addsubv8sf3_1): Ditto.
8720         (*avx_addsubv8sf3_1s): Ditto.
8721         (*sse3_addsubv4sf3_1): Ditto.
8722         (*sse3_addsubv4sf3_1s): Ditto.
8724 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
8726         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
8727         (SYSROOT_SUFFIX_SPEC): Update.
8728         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
8729         (STARTFILE_PREFIX_SPEC): Update.
8730         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
8731         (MULTILIB_REQUIRED): New.
8732         (MULTILIB_OSDIRNAMES): New.
8733         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
8734         (MULTILIB_REQUIRED): New.
8735         (MULTILIB_OSDIRNAMES): New.
8737 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
8739         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
8740         * config/aarch64/aarch64-options-extensions.def: Update "fP",
8741         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
8742         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
8743         (AARCH64_FL_PAN): New.
8744         (AARCH64_FL_LOR): New.
8745         (AARCH64_FL_RDMA): New.
8746         (AARCH64_FL_FOR_ARCH8_1): New.
8747         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
8748         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
8750 2015-06-16  Martin Liska  <mliska@suse.cz>
8752         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
8753         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
8754         guard.
8756 2015-06-16  Richard Biener  <rguenther@suse.de>
8758         * tree-vect-stmts.c (vectorizable_store): Adjust.
8759         (vectorizable_load): Likewise.
8760         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8761         Simplify.
8762         (vect_create_data_ref_ptr): Likewise.
8763         (bump_vector_ptr): Adjust.
8765 2015-06-16  Richard Biener  <rguenther@suse.de>
8767         * tree-vect-stmts.c (vectorizable_load): Properly start loads
8768         with the first element if this is grouped loads.
8770 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
8772         * config/arm/arm-protos.h (struct tune_params): Rename
8773         log_op_non_sc to log_op_non_short_circuit, and rename enum
8774         values to expand SC to SHORT_CIRCUIT.
8775         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
8776         to LOG_OP_NON_SHORT_CIRCUIT.
8777         (arm_fastmul_tune):Likewise
8778         (arm_strongarm_tune): Likewise.
8779         (arm_xscale_tune): Likewise.
8780         (arm_9e_tune): Likewise.
8781         (arm_marvell_pj4_tune): Likewise.
8782         (arm_v6t2_tune): Likewise.
8783         (arm_cortex_tune): Likewise.
8784         (arm_cortex_a8_tune): Likewise.
8785         (arm_cortex_a7_tune): Likewise.
8786         (arm_cortex_a15_tune): Likewise.
8787         (arm_cortex_a53_tune): Likewise.
8788         (arm_cortex_a57_tune): Likewise.
8789         (arm_xgene1_tune): Likewise.
8790         (arm_cortex_a5_tune): Likewise.
8791         (arm_cortex_a9_tune): Likewise.
8792         (arm_cortex_a12_tune): Likewise.
8793         (arm_v7m_tune): Likewise.
8794         (arm_cortex_m7_tune): Likewise.
8795         (arm_v6m_tune): Likewise.
8796         (arm_fa726te_tune): Likewise.
8798 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
8800         * altivec.md: Delete UNSPEC_VMLADDUHM.
8801         (mulv4si3_p8): New pattern.
8802         (mulv4si3): Use it for POWER8.
8803         (mulv8hi3): Use vmladduhm with zero addend.
8804         (altivec_vmladduhm): Descriptive RTL.
8806 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
8808         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
8809         to use neon_move instead of mov_imm.
8810         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
8811         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
8813         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
8814         aarch64_float_const_zero_rtx_p check before TFmode check.
8815         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
8816         an fp zero.
8817         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
8818         code and attributes to match.  Change condition from register_operand
8819         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
8820         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
8821         to store2.
8823 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
8825         PR debug/66535
8826         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
8827         there is no parent.
8829 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
8831         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
8832         HOST_WIDE_INT parameter.
8834 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
8836         PR ipa/66181
8837         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
8838         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
8839         TYPE_NO_FORCE_BLK.
8840         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8842 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
8844         * rtl.h (classify_insn): Declare.
8845         * emit-rtl.c (classify_insn): Move to...
8846         * rtl.c: ...here and add generator support.
8847         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
8848         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
8849         * genemit.c (gen_emit_seq): New function.
8850         (gen_expand, gen_split): Use it.
8852 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
8854         * tree.c (make_vector_stat): Fix comment to state that the
8855         function returns a VECTOR_CST.
8857 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
8859         * gensupport.h (add_implicit_parallel): Declare.
8860         * genrecog.c (add_implicit_parallel): Move to...
8861         * gensupport.c (add_implicit_parallel): ...here.
8862         (process_one_cond_exec): Use it.
8863         * genemit.c (gen_insn): Likewise.
8865 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
8867         PR bootstrap/66448
8868         * passes.c (rest_of_decl_compilation): Do not register globals for
8869         early debug if they are declared in built-ins.
8871 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
8873         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
8875 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8877         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
8878         manually swapping.
8879         (noce_try_cmove_arith): Likewise.
8880         (noce_get_alt_condition): Likewise.
8882 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8884         * common/config/i386/i386-common.c
8885         (OPTION_MASK_ISA_MWAITX_SET): New.
8886         (ix86_handle_option): Handle mwaitx.
8887         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
8888         (x86_64-*-*): Likewise.
8889         * config/i386/mwaitxintrin.h: New header.
8890         * config/i386/cpuid.h (bit_MWAITX):  Define.
8891         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8892         MWAITX support.
8893         * config/i386/i386.opt (mwaitx): New.
8894         * config/i386/i386-builtin-types.def
8895         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8896         * config/i386/i386-c.c: Define __MWAITX__ if needed.
8897         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8898         (PTA_MWAITX): New.
8899         (ix86_option_override_internal): Handle new option.
8900         (processor_alias_table): Added PTA_MWAITX.
8901         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8902         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8903         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8904         IX86_BUILTIN_MONITORX  built-ins.
8905         * config/i386/i386.h (TARGET_MWAITX): New.
8906         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8907         UNSPEC_MONITORX.
8908         (mwaitx):  New pattern.
8909         (monitorx_<mode>): New pattern.
8910         * config/i386/x86intrin.h: Include mwaitxintrin.h.
8911         * doc/extend.texi: Document monitorx and mwaitx builtins.
8912         * doc/invoke.texi: Document -mmwaitx option.
8914 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
8916         * emit-rtl.c (need_atomic_barrier_p): Mask model with
8917         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
8919 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
8921         * dbxout.c (xcoff_debug_hooks): Provide a function for
8922         register_main_translation_unit hook.
8924 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
8926         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8927         variants cases from switch.
8928         (rs6000_post_atomic_barrier): Same.
8929         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8930         (rs6000_expand_atomic_exchange): Same.
8931         (rs6000_expand_atomic_op): Same.
8932         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8933         SYNC variants cases from switch.
8934         (atomic_load): Same.
8935         (atomic_store): Same.
8937 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
8939         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8940         CONST_INT for goto.
8942 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
8944         PR bootstrap/66448
8945         * dwarf2out.c (check_die): Check for common duplicate attributes.
8946         (add_location_or_const_value_attribute): Do not add duplicate
8947         attributes.
8948         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8949         time around.
8950         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8951         (gen_type_die_with_usage): Call check_die.
8952         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
8954 2015-06-11  Jason Merrill  <jason@redhat.com>
8956         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
8957         dies.
8959 2015-06-11  Marek Polacek  <polacek@redhat.com>
8961         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
8963 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
8965         PR bootstrap/66252
8966         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
8967         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
8968         (*addx_extend_sp32): Fix pasto.
8969         (*subx_extend): Rename into...
8970         (*subx_extend_sp32): ...this.
8971         (*adddi3_extend_sp32): Add earlyclobber.
8972         (*subdi3_insn_sp32): Likewise.
8973         (*subdi3_extend_sp32): Likewise.
8974         (*and_not_di_sp32): Likewise.
8975         (*or_not_di_sp32): Likewise.
8976         (*xor_not_di_sp32): Likewise.
8977         (*negdi2_sp32): Likewise.
8978         (*one_cmpldi2_sp32): Likewise.
8980 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
8982         * debug.h (struct gcc_debug_hooks): Add a
8983         register_main_translation_unit hook.
8984         * debug.c (do_nothing_debug_hooks): Provide a function for this
8985         new hook.
8986         * dbxout.c (dbx_debug_hooks): Likewise.
8987         * sdbout.c (sdb_debug_hooks): Likewise.
8988         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8989         * dwarf2out.c (main_translation_unit): New global variable.
8990         (dwarf2out_register_main_translation_unit): New function
8991         implementing the new hook.
8992         (dwarf2_debug_hooks): Assign
8993         dwarf2out_register_main_translation_unit to this new hook.
8994         (dwarf2out_init): Associate any main translation unit to
8995         comp_unit_die ().
8997 2015-06-11  Marek Polacek  <polacek@redhat.com>
8999         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
9001 2015-06-11  Marek Polacek  <polacek@redhat.com>
9003         * match.pd: Use single_use throughout.
9005 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9007         * config/arm/arm.c (arm_option_params_internal): When optimising
9008         for speed set max_insns_skipped when arm_restrict_it.
9010 2015-06-11  Christian Bruel  <christian.bruel@st.com>
9012         PR target/52144
9013         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
9014          macros in ...
9015         (arm_cpu_builtins): New function.
9016         (arm_pragma_target_parse): Call arm_cpu_builtins.
9017         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
9018         (arm_register_target_pragmas): Likewise.
9019         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
9020          Call arm_register_target_pragmas.
9021         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
9022         (arm_pragma_target_parse): Likewise.
9024 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
9026         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
9027         of the second operand.
9029 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
9031         PR target/66473
9032         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
9033         to prepare mask operand for AVX512 modes.
9035 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
9037         PR target/66474
9038         * doc/md.texi (Machine Constraints): Document that on the PowerPC
9039         if you use a constraint that targets a VSX register, you must use
9040         %x<n> in the template.
9042 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
9044         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
9045         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
9046         (define_insn "trap"): New definition.
9048 2015-06-10  Richard Biener  <rguenther@suse.de>
9050         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
9051         out from ...
9052         (vect_supported_load_permutation_p): ... here.  Handle
9053         supportable permutations in reductions.
9054         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
9055         for vectorizing strided group loads.
9057 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
9059         PR target/66470
9060         * config/i386/i386.c (ix86_split_long_move): For collisions
9061         involving direct tls segment refs, move the UNSPEC_TP possibly
9062         wrapped in ZERO_EXTEND out of the address for lea, to each of
9063         the memory loads.
9065 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9067         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
9068         dmb sy. Adjust tabs.
9070 2015-06-10  Tom de Vries  <tom@codesourcery.com>
9072         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
9074 2015-06-10  Martin Liska  <mliska@suse.cz>
9076         PR bootstrap/66471
9077         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
9078         all enum values in mem_alloc_origin.
9079         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
9080         name.
9081         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
9082         * bitmap.c (bitmap_register): Likewise.
9083         (dump_bitmap_statistics): Likewise.
9084         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
9085         (ggc_record_overhead): Likewise.
9086         * hash-map.h: Likewise.
9087         * hash-set.h: Likewise.
9088         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
9089         * hash-table.h: Likewise.
9090         * vec.c (vec_prefix::register_overhead): Likewise.
9091         (vec_prefix::release_overhead): Likewise.
9092         (dump_vec_loc_statistics): Likewise.
9094 2015-06-09  Christian Bruel  <christian.bruel@st.com>
9096         PR target/52144
9097         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
9098         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
9099         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
9100         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
9101         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
9102         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
9103         (arm_valid_target_attribute_p): Likewise.
9104         (arm_set_current_function, arm_can_inline_p): Likewise.
9105         (arm_valid_target_attribute_rec): Likewise.
9106         (arm_previous_fndecl): New variable.
9107         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9108         (TARGET_CAN_INLINE_P): Define.
9109         (arm_asm_trampoline_template): Emit mode.
9110         (arm_file_start): Don't set unified syntax.
9111         (arm_declare_function_name): Set unified syntax and mode.
9112         (arm_option_override): Init target_option_default_node.
9113         and target_option_current_node.
9114         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
9115         (*call_symbol): Likewise.
9116         * doc/extend.texi: Document ARM/Thumb target attribute.
9117         * doc/invoke.texi: Likewise.
9119 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
9121         Revert:
9122         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
9123         PR rtl-optimization/64164
9124         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9125         * tree-ssa-copyrename.c: Removed.
9126         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
9127         -ftree-coalesce-vars.
9128         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9129         * common.opt (ftree-copyrename): Ignore.
9130         (ftree-coalesce-inlined-vars): Likewise.
9131         * doc/invoke.texi: Remove the ignored options above.
9132         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9133         * tree-ssa-coalesce.h: ... here.
9134         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9135         headers required by it.
9136         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9137         across variables when flag_tree_coalesce_vars.  Check register
9138         use and promoted modes to allow coalescing.  Moved to
9139         tree-ssa-coalesce.c.
9140         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9141         with its member functions to tree-ssa-coalesce.c.
9142         (var_map_base_init): Likewise.  Renamed to
9143         compute_samebase_partition_bases.
9144         (partition_view_normal): Drop want_bases parameter.
9145         (partition_view_bitmap): Likewise.
9146         * tree-ssa-live.h: Adjust declarations.
9147         * tree-ssa-coalesce.c: Include explow.h.
9148         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9149         default defs at the entry point.
9150         (dump_part_var_map): New.
9151         (compute_optimized_partition_bases): New, called by...
9152         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9153         of compute_samebase_partition_bases.  Adjust.
9154         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9155         * cfgexpand.c (leader_merge): New.
9156         (get_rtl_for_parm_ssa_default_def): New.
9157         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9158         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9159         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
9160         redundant MEM attr setting.
9161         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
9162         from...
9163         (expand_one_stack_var): ... this.  New wrapper to check and
9164         skip already expanded SSA partitions.
9165         (record_alignment_for_reg_var): New, factored out of...
9166         (expand_one_var): ... this.
9167         (expand_one_ssa_partition): New.
9168         (adjust_one_expanded_partition_var): New.
9169         (expand_one_register_var): Check and skip already expanded SSA
9170         partitions.
9171         (expand_used_vars): Don't create DECLs for anonymous SSA
9172         names.  Expand all SSA partitions, then adjust all SSA names.
9173         (pass::execute): Replace the loops that set
9174         SA.partition_to_pseudo from partition leaders and cleared
9175         DECL_RTL for multi-location variables, and that which used to
9176         rename vars and set attrs, with one that clears DECL_RTL and
9177         checks that PARMs and RESULTs default_defs match DECL_RTL.
9178         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9179         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9180         * explow.c (promote_ssa_mode): New.
9181         * explow.h (promote_ssa_mode): Declare.
9182         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9183         * function.c: Include cfgexpand.h.
9184         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9185         (use_register_for_parm_decl): Wrapper for the above to
9186         special-case the result_ptr.
9187         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9188         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9189         multiple locations.
9190         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9191         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
9192         (assign_parm_setup_block): Prefer SSA-assigned location.
9193         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
9194         if stack_parm is NULL.
9195         (assign_parm_setup_stack): Prefer SSA-assigned location.
9196         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
9197         rtl before testing for pointer bounds.  Special-case result_ptr.
9198         (expand_function_start): Maybe reset DECL_RTL of result.
9199         Prefer SSA-assigned location for result and static chain.
9200         Factor out DECL_RESULT and SET_DECL_RTL.
9201         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9202         anonymous SSA names.  Use promote_ssa_mode.
9203         (get_temp_reg): Likewise.
9204         (remove_ssa_form): Adjust.
9205         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9206         and get its reg_usage for reg invalidation.
9207         (compute_bb_dataflow): Pass it insn.
9208         (emit_notes_in_bb): Likewise.
9209         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9210         fail assert on conversion between unsigned types.
9212 2015-06-09  Tom de Vries  <tom@codesourcery.com>
9214         PR tree-optimization/65460
9215         * omp-low.c (expand_omp_target): Set parallelized_function on
9216         cgraph_node for child_fn.
9218 2015-06-09  Tom de Vries  <tom@codesourcery.com>
9220         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
9221         parallelized_function before add_new_function.
9223 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
9225         * gcc-plugin.h: Move decls to plugin.h and include it.
9226         * plugin.h: Relocate decls from gcc-plugin.h
9227         * ggc-page.c: Include required header files.
9228         * passes.c: Likewise.
9229         * cgraphunit.c: Likewise.
9231 2015-06-09  Tom de Vries  <tom@codesourcery.com>
9233         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
9235 2015-06-09  Jason Merrill  <jason@redhat.com>
9237         PR bootstrap/66448
9238         * toplev.c (check_global_declaration): Don't warn about a clone.
9240 2015-06-09  Marek Polacek  <polacek@redhat.com>
9242         PR tree-optimization/66299
9243         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
9244         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
9245         patterns.
9247 2015-06-09  Richard Biener  <rguenther@suse.de>
9249         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
9250         (vect_analyze_slp_instance): Instead do not falsely drop
9251         load permutations.
9253 2015-06-09  Richard Biener  <rguenther@suse.de>
9255         PR middle-end/66423
9256         * match.pd: Handle A % (unsigned)(1 << B).
9258 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
9260         * varasm.c (output_object_block_htab): Remove.
9261         (output_object_block_compare): New.
9262         (output_object_blocks): Sort named object_blocks before outputting
9263         them.
9265 2015-06-09  Richard Biener  <rguenther@suse.de>
9267         PR tree-optimization/66419
9268         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
9269         consider GROUP_GAP when detecting a perfect subchain.
9271 2015-06-09  Nick Clifton  <nickc@redhat.com>
9273         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
9274         place read only data in the .frodata section.
9276 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
9278         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
9279         (atomic_store<mode>): Likewise.
9281 2015-06-09  Richard Biener  <rguenther@suse.de>
9283         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
9285 2015-06-09  Richard Biener  <rguenther@suse.de>
9287         PR middle-end/66413
9288         * tree-inline.c (insert_init_debug_bind): Unshare value.
9290 2015-06-09  Richard Biener  <rguenther@suse.de>
9292         PR tree-optimization/66396
9293         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
9294         Rename virtual operands.
9296 2015-06-09  Tom de Vries  <tom@codesourcery.com>
9298         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
9299         always return false.
9301 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
9303         PR rtl-optimization/64164
9304         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9305         * tree-ssa-copyrename.c: Removed.
9306         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
9307         -ftree-coalesce-vars.
9308         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9309         * common.opt (ftree-copyrename): Ignore.
9310         (ftree-coalesce-inlined-vars): Likewise.
9311         * doc/invoke.texi: Remove the ignored options above.
9312         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9313         * tree-ssa-coalesce.h: ... here.
9314         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9315         headers required by it.
9316         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9317         across variables when flag_tree_coalesce_vars.  Check register
9318         use and promoted modes to allow coalescing.  Moved to
9319         tree-ssa-coalesce.c.
9320         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9321         with its member functions to tree-ssa-coalesce.c.
9322         (var_map_base_init): Likewise.  Renamed to
9323         compute_samebase_partition_bases.
9324         (partition_view_normal): Drop want_bases parameter.
9325         (partition_view_bitmap): Likewise.
9326         * tree-ssa-live.h: Adjust declarations.
9327         * tree-ssa-coalesce.c: Include explow.h.
9328         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9329         default defs at the entry point.
9330         (dump_part_var_map): New.
9331         (compute_optimized_partition_bases): New, called by...
9332         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9333         of compute_samebase_partition_bases.  Adjust.
9334         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9335         * cfgexpand.c (leader_merge): New.
9336         (get_rtl_for_parm_ssa_default_def): New.
9337         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9338         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9339         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
9340         redundant MEM attr setting.
9341         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
9342         from...
9343         (expand_one_stack_var): ... this.  New wrapper to check and
9344         skip already expanded SSA partitions.
9345         (record_alignment_for_reg_var): New, factored out of...
9346         (expand_one_var): ... this.
9347         (expand_one_ssa_partition): New.
9348         (adjust_one_expanded_partition_var): New.
9349         (expand_one_register_var): Check and skip already expanded SSA
9350         partitions.
9351         (expand_used_vars): Don't create DECLs for anonymous SSA
9352         names.  Expand all SSA partitions, then adjust all SSA names.
9353         (pass::execute): Replace the loops that set
9354         SA.partition_to_pseudo from partition leaders and cleared
9355         DECL_RTL for multi-location variables, and that which used to
9356         rename vars and set attrs, with one that clears DECL_RTL and
9357         checks that PARMs and RESULTs default_defs match DECL_RTL.
9358         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9359         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9360         * explow.c (promote_ssa_mode): New.
9361         * explow.h (promote_ssa_mode): Declare.
9362         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9363         * function.c: Include cfgexpand.h.
9364         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9365         (use_register_for_parm_decl): Wrapper for the above to
9366         special-case the result_ptr.
9367         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9368         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9369         multiple locations.
9370         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9371         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
9372         (assign_parm_setup_block): Prefer SSA-assigned location.
9373         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
9374         if stack_parm is NULL.
9375         (assign_parm_setup_stack): Prefer SSA-assigned location.
9376         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
9377         rtl before testing for pointer bounds.  Special-case result_ptr.
9378         (expand_function_start): Maybe reset DECL_RTL of result.
9379         Prefer SSA-assigned location for result and static chain.
9380         Factor out DECL_RESULT and SET_DECL_RTL.
9381         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9382         anonymous SSA names.  Use promote_ssa_mode.
9383         (get_temp_reg): Likewise.
9384         (remove_ssa_form): Adjust.
9385         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9386         and get its reg_usage for reg invalidation.
9387         (compute_bb_dataflow): Pass it insn.
9388         (emit_notes_in_bb): Likewise.
9389         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9390         fail assert on conversion between unsigned types.
9392 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
9394         PR debug/58315
9395         * tree-inline.c (reset_debug_binding): New.
9396         (reset_debug_bindings): Likewise.
9397         (expand_call_inline): Call it.
9399 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
9401         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
9402         TYPE_STRING_FLAG.
9404 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
9406         * lto-streamer-out.c (lto_output_location): Stream
9407         reserved locations correctly.
9408         * lto-streamer-in.c (lto_output_location): Likewise.
9410 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
9412         * coretypes.h: Include hash-table.h and hash-set.h for host files.
9413         * ggc.h: Don't include statistics.h>
9414         * hash-map.h: Remove all includes.
9415         * hash-set.h: Likewise.
9416         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
9417         the include list. Remove <new>.
9418         * inchash.h: Remove all includes.
9419         * mem-stats.h: Likewise.
9420         * vec.h: No special processing for generators or ggc.
9421         * alias.c : Adjust include files.
9422         * alloc-pool.c : Likewise.
9423         * alloc-pool.h : Likewise.
9424         * asan.c : Likewise.
9425         * attribs.c : Likewise.
9426         * auto-inc-dec.c : Likewise.
9427         * auto-profile.c : Likewise.
9428         * bb-reorder.c : Likewise.
9429         * bitmap.c : Likewise.
9430         * bitmap.h : Likewise.
9431         * bt-load.c : Likewise.
9432         * builtins.c : Likewise.
9433         * caller-save.c : Likewise.
9434         * calls.c : Likewise.
9435         * ccmp.c : Likewise.
9436         * cfg.c : Likewise.
9437         * cfganal.c : Likewise.
9438         * cfgbuild.c : Likewise.
9439         * cfgcleanup.c : Likewise.
9440         * cfgexpand.c : Likewise.
9441         * cfghooks.c : Likewise.
9442         * cfgloop.c : Likewise.
9443         * cfgloop.h : Likewise.
9444         * cfgloopanal.c : Likewise.
9445         * cfgloopmanip.c : Likewise.
9446         * cfgrtl.c : Likewise.
9447         * cgraph.c : Likewise.
9448         * cgraphbuild.c : Likewise.
9449         * cgraphclones.c : Likewise.
9450         * cgraphunit.c : Likewise.
9451         * cilk-common.c : Likewise.
9452         * combine-stack-adj.c : Likewise.
9453         * combine.c : Likewise.
9454         * compare-elim.c : Likewise.
9455         * context.c : Likewise.
9456         * convert.c : Likewise.
9457         * coverage.c : Likewise.
9458         * cppbuiltin.c : Likewise.
9459         * cprop.c : Likewise.
9460         * cse.c : Likewise.
9461         * cselib.c : Likewise.
9462         * data-streamer-in.c : Likewise.
9463         * data-streamer-out.c : Likewise.
9464         * data-streamer.c : Likewise.
9465         * data-streamer.h : Likewise.
9466         * dbxout.c : Likewise.
9467         * dce.c : Likewise.
9468         * ddg.c : Likewise.
9469         * debug.c : Likewise.
9470         * df-core.c : Likewise.
9471         * df-problems.c : Likewise.
9472         * df-scan.c : Likewise.
9473         * df.h : Likewise.
9474         * dfp.c : Likewise.
9475         * dojump.c : Likewise.
9476         * dominance.c : Likewise.
9477         * domwalk.c : Likewise.
9478         * double-int.c : Likewise.
9479         * dse.c : Likewise.
9480         * dumpfile.c : Likewise.
9481         * dwarf2asm.c : Likewise.
9482         * dwarf2cfi.c : Likewise.
9483         * dwarf2out.c : Likewise.
9484         * emit-rtl.c : Likewise.
9485         * et-forest.c : Likewise.
9486         * except.c : Likewise.
9487         * except.h : Likewise.
9488         * explow.c : Likewise.
9489         * expmed.c : Likewise.
9490         * expr.c : Likewise.
9491         * final.c : Likewise.
9492         * fixed-value.c : Likewise.
9493         * fold-const.c : Likewise.
9494         * function.c : Likewise.
9495         * fwprop.c : Likewise.
9496         * gcc-plugin.h : Likewise.
9497         * gcc.c : Likewise.
9498         * gcse-common.c : Likewise.
9499         * gcse.c : Likewise.
9500         * genattrtab.c : Likewise.
9501         * genautomata.c : Likewise.
9502         * genconditions.c : Likewise.
9503         * genemit.c : Likewise.
9504         * generic-match-head.c : Likewise.
9505         * genextract.c : Likewise.
9506         * gengtype-state.c : Likewise.
9507         * gengtype.c : Likewise.
9508         * genhooks.c : Likewise.
9509         * genmatch.c : Likewise.
9510         * genmodes.c : Likewise.
9511         * genrecog.c : Likewise.
9512         * gensupport.c : Likewise.
9513         * ggc-common.c : Likewise.
9514         * ggc-internal.h : Likewise.
9515         * ggc-none.c : Likewise.
9516         * ggc-page.c : Likewise.
9517         * gimple-builder.c : Likewise.
9518         * gimple-expr.c : Likewise.
9519         * gimple-fold.c : Likewise.
9520         * gimple-iterator.c : Likewise.
9521         * gimple-low.c : Likewise.
9522         * gimple-match-head.c : Likewise.
9523         * gimple-pretty-print.c : Likewise.
9524         * gimple-ssa-isolate-paths.c : Likewise.
9525         * gimple-ssa-strength-reduction.c : Likewise.
9526         * gimple-ssa.h : Likewise.
9527         * gimple-streamer-in.c : Likewise.
9528         * gimple-streamer-out.c : Likewise.
9529         * gimple-streamer.h : Likewise.
9530         * gimple-walk.c : Likewise.
9531         * gimple.c : Likewise.
9532         * gimplify-me.c : Likewise.
9533         * gimplify.c : Likewise.
9534         * godump.c : Likewise.
9535         * graph.c : Likewise.
9536         * graphds.c : Likewise.
9537         * graphite-blocking.c : Likewise.
9538         * graphite-dependences.c : Likewise.
9539         * graphite-interchange.c : Likewise.
9540         * graphite-isl-ast-to-gimple.c : Likewise.
9541         * graphite-optimize-isl.c : Likewise.
9542         * graphite-poly.c : Likewise.
9543         * graphite-scop-detection.c : Likewise.
9544         * graphite-sese-to-poly.c : Likewise.
9545         * graphite.c : Likewise.
9546         * haifa-sched.c : Likewise.
9547         * hard-reg-set.h : Likewise.
9548         * hw-doloop.c : Likewise.
9549         * ifcvt.c : Likewise.
9550         * inchash.c : Likewise.
9551         * incpath.c : Likewise.
9552         * init-regs.c : Likewise.
9553         * input.c : Likewise.
9554         * internal-fn.c : Likewise.
9555         * ipa-chkp.c : Likewise.
9556         * ipa-comdats.c : Likewise.
9557         * ipa-cp.c : Likewise.
9558         * ipa-devirt.c : Likewise.
9559         * ipa-icf-gimple.c : Likewise.
9560         * ipa-icf.c : Likewise.
9561         * ipa-inline-analysis.c : Likewise.
9562         * ipa-inline-transform.c : Likewise.
9563         * ipa-inline.c : Likewise.
9564         * ipa-polymorphic-call.c : Likewise.
9565         * ipa-profile.c : Likewise.
9566         * ipa-prop.c : Likewise.
9567         * ipa-pure-const.c : Likewise.
9568         * ipa-ref.c : Likewise.
9569         * ipa-reference.c : Likewise.
9570         * ipa-split.c : Likewise.
9571         * ipa-utils.c : Likewise.
9572         * ipa-visibility.c : Likewise.
9573         * ipa.c : Likewise.
9574         * ira-build.c : Likewise.
9575         * ira-color.c : Likewise.
9576         * ira-conflicts.c : Likewise.
9577         * ira-costs.c : Likewise.
9578         * ira-emit.c : Likewise.
9579         * ira-lives.c : Likewise.
9580         * ira.c : Likewise.
9581         * jump.c : Likewise.
9582         * langhooks.c : Likewise.
9583         * lcm.c : Likewise.
9584         * libfuncs.h : Likewise.
9585         * lists.c : Likewise.
9586         * loop-doloop.c : Likewise.
9587         * loop-init.c : Likewise.
9588         * loop-invariant.c : Likewise.
9589         * loop-iv.c : Likewise.
9590         * loop-unroll.c : Likewise.
9591         * lower-subreg.c : Likewise.
9592         * lra-assigns.c : Likewise.
9593         * lra-coalesce.c : Likewise.
9594         * lra-constraints.c : Likewise.
9595         * lra-eliminations.c : Likewise.
9596         * lra-lives.c : Likewise.
9597         * lra-remat.c : Likewise.
9598         * lra-spills.c : Likewise.
9599         * lra.c : Likewise.
9600         * lto-cgraph.c : Likewise.
9601         * lto-compress.c : Likewise.
9602         * lto-opts.c : Likewise.
9603         * lto-section-in.c : Likewise.
9604         * lto-section-out.c : Likewise.
9605         * lto-streamer-in.c : Likewise.
9606         * lto-streamer-out.c : Likewise.
9607         * lto-streamer.c : Likewise.
9608         * lto-streamer.h : Likewise.
9609         * mcf.c : Likewise.
9610         * mode-switching.c : Likewise.
9611         * modulo-sched.c : Likewise.
9612         * omega.c : Likewise.
9613         * omp-low.c : Likewise.
9614         * optabs.c : Likewise.
9615         * opts-global.c : Likewise.
9616         * opts.h : Likewise.
9617         * passes.c : Likewise.
9618         * plugin.c : Likewise.
9619         * postreload-gcse.c : Likewise.
9620         * postreload.c : Likewise.
9621         * predict.c : Likewise.
9622         * print-rtl.c : Likewise.
9623         * print-tree.c : Likewise.
9624         * profile.c : Likewise.
9625         * read-md.c : Likewise.
9626         * read-md.h : Likewise.
9627         * read-rtl.c : Likewise.
9628         * real.c : Likewise.
9629         * realmpfr.c : Likewise.
9630         * recog.c : Likewise.
9631         * ree.c : Likewise.
9632         * reg-stack.c : Likewise.
9633         * regcprop.c : Likewise.
9634         * reginfo.c : Likewise.
9635         * regrename.c : Likewise.
9636         * regstat.c : Likewise.
9637         * reload.c : Likewise.
9638         * reload1.c : Likewise.
9639         * reorg.c : Likewise.
9640         * resource.c : Likewise.
9641         * rtl-chkp.c : Likewise.
9642         * rtl.c : Likewise.
9643         * rtl.h : Likewise.
9644         * rtlanal.c : Likewise.
9645         * rtlhash.c : Likewise.
9646         * rtlhash.h : Likewise.
9647         * rtlhooks.c : Likewise.
9648         * sanopt.c : Likewise.
9649         * sched-deps.c : Likewise.
9650         * sched-ebb.c : Likewise.
9651         * sched-rgn.c : Likewise.
9652         * sched-vis.c : Likewise.
9653         * sdbout.c : Likewise.
9654         * sel-sched-dump.c : Likewise.
9655         * sel-sched-ir.c : Likewise.
9656         * sel-sched-ir.h : Likewise.
9657         * sel-sched.c : Likewise.
9658         * sese.c : Likewise.
9659         * shrink-wrap.c : Likewise.
9660         * shrink-wrap.h : Likewise.
9661         * simplify-rtx.c : Likewise.
9662         * stack-ptr-mod.c : Likewise.
9663         * statistics.c : Likewise.
9664         * stmt.c : Likewise.
9665         * stor-layout.c : Likewise.
9666         * store-motion.c : Likewise.
9667         * stringpool.c : Likewise.
9668         * symtab.c : Likewise.
9669         * target-globals.c : Likewise.
9670         * targhooks.c : Likewise.
9671         * tlink.c : Likewise.
9672         * toplev.c : Likewise.
9673         * tracer.c : Likewise.
9674         * trans-mem.c : Likewise.
9675         * tree-affine.c : Likewise.
9676         * tree-affine.h : Likewise.
9677         * tree-browser.c : Likewise.
9678         * tree-call-cdce.c : Likewise.
9679         * tree-cfg.c : Likewise.
9680         * tree-cfgcleanup.c : Likewise.
9681         * tree-chkp-opt.c : Likewise.
9682         * tree-chkp.c : Likewise.
9683         * tree-chrec.c : Likewise.
9684         * tree-complex.c : Likewise.
9685         * tree-data-ref.c : Likewise.
9686         * tree-dfa.c : Likewise.
9687         * tree-diagnostic.c : Likewise.
9688         * tree-dump.c : Likewise.
9689         * tree-eh.c : Likewise.
9690         * tree-eh.h : Likewise.
9691         * tree-emutls.c : Likewise.
9692         * tree-hasher.h : Likewise.
9693         * tree-if-conv.c : Likewise.
9694         * tree-inline.c : Likewise.
9695         * tree-inline.h : Likewise.
9696         * tree-into-ssa.c : Likewise.
9697         * tree-iterator.c : Likewise.
9698         * tree-loop-distribution.c : Likewise.
9699         * tree-nested.c : Likewise.
9700         * tree-nrv.c : Likewise.
9701         * tree-object-size.c : Likewise.
9702         * tree-outof-ssa.c : Likewise.
9703         * tree-parloops.c : Likewise.
9704         * tree-phinodes.c : Likewise.
9705         * tree-predcom.c : Likewise.
9706         * tree-pretty-print.c : Likewise.
9707         * tree-profile.c : Likewise.
9708         * tree-scalar-evolution.c : Likewise.
9709         * tree-sra.c : Likewise.
9710         * tree-ssa-address.c : Likewise.
9711         * tree-ssa-alias.c : Likewise.
9712         * tree-ssa-ccp.c : Likewise.
9713         * tree-ssa-coalesce.c : Likewise.
9714         * tree-ssa-copy.c : Likewise.
9715         * tree-ssa-copyrename.c : Likewise.
9716         * tree-ssa-dce.c : Likewise.
9717         * tree-ssa-dom.c : Likewise.
9718         * tree-ssa-dse.c : Likewise.
9719         * tree-ssa-forwprop.c : Likewise.
9720         * tree-ssa-ifcombine.c : Likewise.
9721         * tree-ssa-live.c : Likewise.
9722         * tree-ssa-loop-ch.c : Likewise.
9723         * tree-ssa-loop-im.c : Likewise.
9724         * tree-ssa-loop-ivcanon.c : Likewise.
9725         * tree-ssa-loop-ivopts.c : Likewise.
9726         * tree-ssa-loop-manip.c : Likewise.
9727         * tree-ssa-loop-niter.c : Likewise.
9728         * tree-ssa-loop-prefetch.c : Likewise.
9729         * tree-ssa-loop-unswitch.c : Likewise.
9730         * tree-ssa-loop.c : Likewise.
9731         * tree-ssa-math-opts.c : Likewise.
9732         * tree-ssa-operands.c : Likewise.
9733         * tree-ssa-phiopt.c : Likewise.
9734         * tree-ssa-phiprop.c : Likewise.
9735         * tree-ssa-pre.c : Likewise.
9736         * tree-ssa-propagate.c : Likewise.
9737         * tree-ssa-reassoc.c : Likewise.
9738         * tree-ssa-sccvn.c : Likewise.
9739         * tree-ssa-scopedtables.c : Likewise.
9740         * tree-ssa-sink.c : Likewise.
9741         * tree-ssa-strlen.c : Likewise.
9742         * tree-ssa-structalias.c : Likewise.
9743         * tree-ssa-tail-merge.c : Likewise.
9744         * tree-ssa-ter.c : Likewise.
9745         * tree-ssa-threadedge.c : Likewise.
9746         * tree-ssa-threadupdate.c : Likewise.
9747         * tree-ssa-uncprop.c : Likewise.
9748         * tree-ssa-uninit.c : Likewise.
9749         * tree-ssa.c : Likewise.
9750         * tree-ssanames.c : Likewise.
9751         * tree-stdarg.c : Likewise.
9752         * tree-streamer-in.c : Likewise.
9753         * tree-streamer-out.c : Likewise.
9754         * tree-streamer.c : Likewise.
9755         * tree-streamer.h : Likewise.
9756         * tree-switch-conversion.c : Likewise.
9757         * tree-tailcall.c : Likewise.
9758         * tree-vect-data-refs.c : Likewise.
9759         * tree-vect-generic.c : Likewise.
9760         * tree-vect-loop-manip.c : Likewise.
9761         * tree-vect-loop.c : Likewise.
9762         * tree-vect-patterns.c : Likewise.
9763         * tree-vect-slp.c : Likewise.
9764         * tree-vect-stmts.c : Likewise.
9765         * tree-vectorizer.c : Likewise.
9766         * tree-vectorizer.h : Likewise.
9767         * tree-vrp.c : Likewise.
9768         * tree.c : Likewise.
9769         * tsan.c : Likewise.
9770         * ubsan.c : Likewise.
9771         * valtrack.c : Likewise.
9772         * valtrack.h : Likewise.
9773         * value-prof.c : Likewise.
9774         * var-tracking.c : Likewise.
9775         * varasm.c : Likewise.
9776         * varpool.c : Likewise.
9777         * vec.c: Likewise.
9778         * vmsdbgout.c : Likewise.
9779         * vtable-verify.c : Likewise.
9780         * vtable-verify.h : Likewise.
9781         * web.c : Likewise.
9782         * wide-int.cc : Likewise.
9783         * xcoffout.c : Likewise.
9784         * config/aarch64/aarch64-builtins.c : Likewise.
9785         * config/aarch64/aarch64.c : Likewise.
9786         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
9787         * config/alpha/alpha.c : Likewise.
9788         * config/arc/arc.c : Likewise.
9789         * config/arm/aarch-common.c : Likewise.
9790         * config/arm/arm-builtins.c : Likewise.
9791         * config/arm/arm-c.c : Likewise.
9792         * config/arm/arm.c : Likewise.
9793         * config/avr/avr-c.c : Likewise.
9794         * config/avr/avr-log.c : Likewise.
9795         * config/avr/avr.c : Likewise.
9796         * config/bfin/bfin.c : Likewise.
9797         * config/c6x/c6x.c : Likewise.
9798         * config/cr16/cr16.c : Likewise.
9799         * config/cris/cris.c : Likewise.
9800         * config/darwin-c.c : Likewise.
9801         * config/darwin.c : Likewise.
9802         * config/default-c.c : Likewise.
9803         * config/epiphany/epiphany.c : Likewise.
9804         * config/epiphany/mode-switch-use.c : Likewise.
9805         * config/epiphany/resolve-sw-modes.c : Likewise.
9806         * config/fr30/fr30.c : Likewise.
9807         * config/frv/frv.c : Likewise.
9808         * config/ft32/ft32.c : Likewise.
9809         * config/glibc-c.c : Likewise.
9810         * config/h8300/h8300.c : Likewise.
9811         * config/i386/i386-c.c : Likewise.
9812         * config/i386/i386.c : Likewise.
9813         * config/i386/msformat-c.c : Likewise.
9814         * config/i386/winnt-cxx.c : Likewise.
9815         * config/i386/winnt-stubs.c : Likewise.
9816         * config/i386/winnt.c : Likewise.
9817         * config/ia64/ia64-c.c : Likewise.
9818         * config/ia64/ia64.c : Likewise.
9819         * config/iq2000/iq2000.c : Likewise.
9820         * config/lm32/lm32.c : Likewise.
9821         * config/m32c/m32c-pragma.c : Likewise.
9822         * config/m32c/m32c.c : Likewise.
9823         * config/m32r/m32r.c : Likewise.
9824         * config/m68k/m68k.c : Likewise.
9825         * config/mcore/mcore.c : Likewise.
9826         * config/mep/mep-pragma.c : Likewise.
9827         * config/mep/mep.c : Likewise.
9828         * config/microblaze/microblaze-c.c : Likewise.
9829         * config/microblaze/microblaze.c : Likewise.
9830         * config/mips/mips.c : Likewise.
9831         * config/mmix/mmix.c : Likewise.
9832         * config/mn10300/mn10300.c : Likewise.
9833         * config/moxie/moxie.c : Likewise.
9834         * config/msp430/msp430-c.c : Likewise.
9835         * config/msp430/msp430.c : Likewise.
9836         * config/nds32/nds32-cost.c : Likewise.
9837         * config/nds32/nds32-fp-as-gp.c : Likewise.
9838         * config/nds32/nds32-intrinsic.c : Likewise.
9839         * config/nds32/nds32-isr.c : Likewise.
9840         * config/nds32/nds32-md-auxiliary.c : Likewise.
9841         * config/nds32/nds32-memory-manipulation.c : Likewise.
9842         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
9843         * config/nds32/nds32-predicates.c : Likewise.
9844         * config/nds32/nds32.c : Likewise.
9845         * config/nios2/nios2.c : Likewise.
9846         * config/nvptx/nvptx.c : Likewise.
9847         * config/pa/pa.c : Likewise.
9848         * config/pdp11/pdp11.c : Likewise.
9849         * config/rl78/rl78-c.c : Likewise.
9850         * config/rl78/rl78.c : Likewise.
9851         * config/rs6000/rs6000-c.c : Likewise.
9852         * config/rs6000/rs6000.c : Likewise.
9853         * config/rx/rx.c : Likewise.
9854         * config/s390/s390-c.c : Likewise.
9855         * config/s390/s390.c : Likewise.
9856         * config/sh/sh-c.c : Likewise.
9857         * config/sh/sh-mem.cc : Likewise.
9858         * config/sh/sh.c : Likewise.
9859         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
9860         * config/sh/sh_treg_combine.cc : Likewise.
9861         * config/sol2-c.c : Likewise.
9862         * config/sol2-cxx.c : Likewise.
9863         * config/sol2-stubs.c : Likewise.
9864         * config/sol2.c : Likewise.
9865         * config/sparc/sparc-c.c : Likewise.
9866         * config/sparc/sparc.c : Likewise.
9867         * config/spu/spu-c.c : Likewise.
9868         * config/spu/spu.c : Likewise.
9869         * config/stormy16/stormy16.c : Likewise.
9870         * config/tilegx/mul-tables.c : Likewise.
9871         * config/tilegx/tilegx-c.c : Likewise.
9872         * config/tilegx/tilegx.c : Likewise.
9873         * config/tilepro/mul-tables.c : Likewise.
9874         * config/tilepro/tilepro-c.c : Likewise.
9875         * config/tilepro/tilepro.c : Likewise.
9876         * config/v850/v850-c.c : Likewise.
9877         * config/v850/v850.c : Likewise.
9878         * config/vax/vax.c : Likewise.
9879         * config/visium/visium.c : Likewise.
9880         * config/vms/vms-c.c : Likewise.
9881         * config/vms/vms.c : Likewise.
9882         * config/vxworks.c : Likewise.
9883         * config/winnt-c.c : Likewise.
9884         * config/xtensa/xtensa.c : Likewise.
9886 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
9888         PR lto/65378
9889         * ipa-utils.h (warn_types_mismatch): Update prototype.
9890         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9891         parameters.
9892         (type_mismatch_p): New function.
9893         (warn_types_mismatch): Reorg to work better on non-C++ types.
9894         (odr_types_equivalent_p): Add loc1/loc2 parameters.
9895         (add_type_duplicate): Update.
9897 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9899         PR rtl-optimization/66444
9900         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9901         call_used_regs.
9903 2015-06-08  Richard Biener  <rguenther@suse.de>
9905         PR tree-optimization/66422
9906         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9907         block after inserted gcc_unreachable.
9909 2015-06-08  Nick Clifton  <nickc@redhat.com>
9911         * config/rx/rx.c (rx_function_value): Do not promote vector types.
9912         (rx_promote_function_mode): Likewise.
9913         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9915 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
9917         * genattrtab.c (insn_alternatives): Change type from int *
9918         to uint64_t *.
9919         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9920         (get_attr_value): Change type of num_alt to uint64_t.
9921         (compute_alternative_mask): Change return type from
9922         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9923         (make_alternative_compare, mk_attr_alt): Change argument type
9924         from int to uint64_t.
9925         (simplify_test_exp): Change type of i from int to uint64_t.
9926         Shift ((uint64_t) 1) instead of 1 up.
9927         (main): Adjust oballocvec first argument from int to uint64_t.
9928         Shift ((uint64_t) 1) instead of 1 up.
9930 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9932         PR other/65366
9933         * gdbhooks.py: Import sys.
9934         (intptr): New function.  Replace int(...) by intptr(...).
9936 2015-06-08  Richard Biener  <rguenther@suse.de>
9938         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9939         adjustment for gaps at the end of a SLP load group properly.
9940         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9941         all permutations we can generate.
9942         (vect_transform_slp_perm_load): Use the correct group-size.
9944 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
9946         * genmatch.c (expr::gen_transform): For conditions, guess the type
9947         from the second operand.
9949 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9951         PR tree-optimization/66442
9952         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
9953         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
9954         if the loop latch is not a singleton.  Use
9955         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9957 2015-06-08  Marek Polacek  <polacek@redhat.com>
9959         PR sanitizer/66452
9960         * toplev.c (check_global_declaration): Don't warn about artificial
9961         decls.
9963 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9965         PR tree-optimization/66436
9966         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
9967         dump file.
9968         * gimplify.c: Add tree-dump.h include.
9969         (gimplify_function_tree): Dump function to gimple dump file.
9970         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
9971         dump file.
9973 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9975         PR tree-optimization/66435
9976         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
9977         function.
9979 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
9981         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
9982         of ptr_type_node to not be ptr_to_node.
9983         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
9984         TREE_TYPE of pointers.
9985         * gimple-expr.c (useless_type_conversion): Reorder the check for
9986         function pointers and TYPE_CANONICAL.
9988 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
9990         PR bootstrap/66319
9991         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
9992         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
9993         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
9994         later.
9995         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
9996         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
9997         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
9998         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
9999         and non iso if unix2003.
10001 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
10003         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
10005 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
10007         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
10008         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
10009         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
10010         except.c, final.c, function.c, gcse-common.c, genemit.c,
10011         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
10012         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
10013         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
10014         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
10015         more derived ones.
10017 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
10019         * combine.c (combine_split_insns): Remove cast.
10020         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
10021         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
10022         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
10023         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
10024         * genemit.c (gen_split): Change return type of generated functions to
10025         rtx_insn.
10026         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
10027         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
10028         gen_peephole2_* functions.
10029         (print_subroutine, main): Likewise.
10030         * recog.c (peephole2_optimize): Remove cast.
10031         (peep2_next_insn): Promote return type to rtx_insn.
10032         * recog.h (peep2_next_insn): Fix prototype.
10033         * rtl.h (try_split, split_insns): Likewise.
10035 2015-06-06  DJ Delorie  <dj@redhat.com>
10037         * config/msp430/msp430.c (msp430_asm_integer): Support addition
10038         and subtraction too.
10040 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
10042         PR target/66410
10043         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
10044         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
10045         instead of Snd.  Disparage Sid/z alternative with '^'.
10047 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
10049         * dwarf2out.c: Remove deferred_locations*.
10050         (dwarf2_debug_hooks): Add early_finish hook.
10051         Remove global_decl hook.
10052         Add early_global_decl and late_global_decl hook.
10053         New global early_dwarf.
10054         New structure set_early_dwarf.
10055         (output_die): Indicate whether a DIE was generated early
10056         when generating assembly with -dA.
10057         (struct limbo_die_struct): Document created_for field.
10058         Remove file_table_last_lookup.
10059         (remove_AT): Return TRUE if successful.
10060         (remove_child_TAG): Clear die_parent.
10061         (reparent_child): New function abstracted from...
10062         (splice_child_die): ...here.
10063         (new_die): ICE if a DIE ends up in limbo too late.
10064         (check_die): New.
10065         (defer_location): Remove.
10066         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
10067         (fill_variable_array_bounds): New.
10068         (decl_start_label): Call fill_variable_array_bounds.
10069         (gen_formal_parameter_die): Rewrite to reuse previously generated
10070         DIEs.
10071         (gen_subprogram_die): Same.
10072         (gen_variable_die): Same.
10073         (gen_const_die): Same.
10074         (gen_label_die): Same.
10075         (gen_lexical_block_die): Same.
10076         (decl_will_get_specification_p): New.
10077         (local_function_static): New.
10078         (gen_struct_or_union_type_die): Fill in variable-length fields.
10079         (gen_typedef_die): Fill in variable-length typedefs.
10080         (gen_tagged_type_die): Gracefully return on error_mark_node.
10081         Handle re-entrancy.
10082         (gen_type_die_with_usage): Handle variable-length types.
10083         Remove duplicate code for ARRAY_TYPE case.
10084         (process_scope_var): Only process imported modules during early
10085         dwarf.
10086         (dwarf2out_early_global_decl): New.
10087         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
10088         (dwarf2out_type_decl): Set early_dwarf while calling
10089         dwarf2out_decl.
10090         (dwarf2out_decl): Verify that we did not recreate a previously
10091         generated DIE.
10092         Do not return on DECL_EXTERNALs in VAR_DECLs.
10093         Abstract some code to local_function_static.
10094         (lookup_filename): Remove use of file_table_last_lookup.
10095         Gracefully exit on missing file_name.
10096         (dwarf2out_finish): Verify limbo list.
10097         Remove deferred_locations_list use.
10098         Move deferred_asm_name and limbo flushing to...
10099         (dwarf2out_early_finish): ...here.  New.
10100         (dwarf2out_c_finalize): Remove set of deferred_location_list,
10101         deferred_asm_name, and file_table_last_lookup.
10102         * cgraph.h (referred_to_p): Add default argument.
10103         * cgraphunit.c (referred_to_p): Add and handle include_self
10104         argument.
10105         (analyze_functions): Add first_time argument.
10106         Call check_global_declaration for all symbols.
10107         Call late_global_decl for nodes for moribund nodes.
10108         (finalize_compilation_unit): Add new argument to
10109         analyze_functions.
10110         Call early_global_decl for functions.
10111         Call early_finish debug hook.
10112         * dbxout.c (dbxout_early_global_decl): New.
10113         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
10114         (dbx_debug_hooks): Add new hooks.
10115         (xcoff_debug_hooks): Same.
10116         * debug.c (do_nothing_debug_hooks): Add early_finish field.
10117         Add early and late debug hooks.
10118         Remove global_decl hook.
10119         * debug.h (struct gcc_debug_hooks): Add early_finish,
10120         early_global_decl, and late_global_decl fields.
10121         Remove global_decl field.
10122         Document gcc_debug_hooks.
10123         * gengtype.c (output_typename): Remove.
10124         * godump.c (go_early_global_decl): New.
10125         (go_late_global_decl): New.
10126         (go_global_decl): Remove.
10127         (dump_go_spec_init): Remove global_decl.  Add
10128         {early,late}_global_decl.
10129         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
10130         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
10131         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
10132         (write_global_declarations): Remove.
10133         (global_decl_processing): New.
10134         * langhooks.h (struct lang_hooks_for_decls): Remove
10135         final_write_globals field.
10136         Add post_compilation_parsing_cleanups field.
10137         * passes.c (rest_of_decl_compilation): Call early_global_decl.
10138         * sdbout.c: Add early and late_global_decl hooks.  Remove
10139         sdbout_global_decl hook.
10140         Add early_finish field for sdb_debug_hooks.
10141         (sdbout_global_decl): Remove.
10142         (sdbout_early_global_decl): New.
10143         (sdbout_late_global_decl): New.
10144         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
10145         * toplev.c (check_global_declaration): Rename from
10146         check_global_declaration_1.
10147         Adapt to use symtab infrastructure.
10148         (check_global_declarations): Remove.
10149         (emit_debug_global_declarations): Remove.
10150         (compile_file): Remove call to final_write_globals langhook.
10151         Run the actual compilation process.
10152         Perform any post compilation parser cleanups.
10153         Generate late debug info.
10154         * toplev.h (check_global_declaration): New.
10155         (check_global_declaration_1): Remove.
10156         (check_global_declarations): Remove.
10157         (write_global_declarations): Remove.
10158         (emit_debug_global_declarations): Remove.
10159         (global_decl_processing): New.
10160         * tree-core.h (struct tree_block): Add DIE field.
10161         * tree.h (BLOCK_DIE): New.
10162         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
10163         throughout.
10164         (vmsdbgout_early_global_decl): New.
10165         (vmsdbgout_late_global_decl): New.
10166         Add early_finish debug hook field to vmsdbg_debug_hooks.
10167         Remove vmsdbgout_decl to vmsdbgout_function_decl.
10168         Add early and late_global_decl debug hooks.
10170 2015-06-05  Julian Brown  <julian@codesourcery.com>
10171             Sandra Loosemore  <sandra@codesourcery.com>
10173         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
10174         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
10175         to print-sysroot-suffix.sh script.
10177 2015-06-05  Tom de Vries  <tom@codesourcery.com>
10179         merge from gomp4 branch:
10180         2015-05-28  Tom de Vries  <tom@codesourcery.com>
10182         PR tree-optimization/65443
10183         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
10184         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
10185         (try_transform_to_exit_first_loop_alt): New function.
10186         (transform_to_exit_first_loop): Use
10187         try_transform_to_exit_first_loop_alt.
10189 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
10191         * builtins.c (expand_builtin_atomic_compare_exchange): Call
10192         emit_cmp_and_jump_insns with the mode of target.
10194 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10196         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
10198 2015-06-04  DJ Delorie  <dj@redhat.com>
10200         * config/msp430/msp430.md (movsi_s): New.  Special case for
10201         storing a 20-bit symbol into a 32-bit register.
10202         * config/msp430/msp430.c (msp430_subreg): Add support for it.
10203         * config/msp430/predicates.md (msp430_symbol_operand): New.
10205 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
10207         * c-family/c-common.c (noplt): New attribute.
10208         (handle_noplt_attribute): New handler.
10209         * calls.c (prepare_call_address): Check for noplt
10210         attribute.
10211         * config/i386/i386.c (ix86_expand_call): Check
10212         for noplt attribute.
10213         (ix86_nopic_noplt_attribute_p): New function.
10214         (ix86_output_call_insn): Output indirect call for non-pic
10215         no plt calls.
10216         * doc/extend.texi (noplt): Document new attribute.
10217         * doc/invoke.texi: Document new attribute.
10219 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
10221         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
10222         real.h, and fixed-value.h when included in host source files.
10223         * double-int.h: Remove redundant #includes listed above.
10224         * fixed-value.h: Likewise.
10225         * real.h: Likewise.
10226         * wide-int.h: Likewise.
10227         * inchash.h: Likewise.
10228         * rtl.h: Add some include files When included from a generator file.
10229         * target.h: Remove wide-int.h and insn-modes.h from the include list.
10230         * internal-fn.h: Don't include coretypes.h.
10231         * alias.c: Adjust includes for restructured coretypes.h.
10232         * asan.c: Likewise.
10233         * attribs.c: Likewise.
10234         * auto-inc-dec.c: Likewise.
10235         * auto-profile.c: Likewise.
10236         * bb-reorder.c: Likewise.
10237         * bt-load.c: Likewise.
10238         * builtins.c: Likewise.
10239         * caller-save.c: Likewise.
10240         * calls.c: Likewise.
10241         * ccmp.c: Likewise.
10242         * cfg.c: Likewise.
10243         * cfganal.c: Likewise.
10244         * cfgbuild.c: Likewise.
10245         * cfgcleanup.c: Likewise.
10246         * cfgexpand.c: Likewise.
10247         * cfghooks.c: Likewise.
10248         * cfgloop.c: Likewise.
10249         * cfgloop.h: Likewise.
10250         * cfgloopanal.c: Likewise.
10251         * cfgloopmanip.c: Likewise.
10252         * cfgrtl.c: Likewise.
10253         * cgraph.c: Likewise.
10254         * cgraphbuild.c: Likewise.
10255         * cgraphclones.c: Likewise.
10256         * cgraphunit.c: Likewise.
10257         * cilk-common.c: Likewise.
10258         * combine-stack-adj.c: Likewise.
10259         * combine.c: Likewise.
10260         * compare-elim.c: Likewise.
10261         * convert.c: Likewise.
10262         * coverage.c: Likewise.
10263         * cppbuiltin.c: Likewise.
10264         * cprop.c: Likewise.
10265         * cse.c: Likewise.
10266         * cselib.c: Likewise.
10267         * data-streamer-in.c: Likewise.
10268         * data-streamer-out.c: Likewise.
10269         * data-streamer.c: Likewise.
10270         * dbxout.c: Likewise.
10271         * dce.c: Likewise.
10272         * ddg.c: Likewise.
10273         * debug.c: Likewise.
10274         * df-core.c: Likewise.
10275         * df-problems.c: Likewise.
10276         * df-scan.c: Likewise.
10277         * df.h: Likewise.
10278         * dfp.c: Likewise.
10279         * dojump.c: Likewise.
10280         * dominance.c: Likewise.
10281         * domwalk.c: Likewise.
10282         * double-int.c: Likewise.
10283         * dse.c: Likewise.
10284         * dumpfile.c: Likewise.
10285         * dwarf2asm.c: Likewise.
10286         * dwarf2cfi.c: Likewise.
10287         * dwarf2out.c: Likewise.
10288         * dwarf2out.h: Likewise.
10289         * emit-rtl.c: Likewise.
10290         * et-forest.c: Likewise.
10291         * except.c: Likewise.
10292         * explow.c: Likewise.
10293         * expmed.c: Likewise.
10294         * expr.c: Likewise.
10295         * final.c: Likewise.
10296         * fixed-value.c: Likewise.
10297         * fold-const.c: Likewise.
10298         * function.c: Likewise.
10299         * fwprop.c: Likewise.
10300         * gcc-plugin.h: Likewise.
10301         * gcse.c: Likewise.
10302         * generic-match-head.c: Likewise.
10303         * ggc-page.c: Likewise.
10304         * gimple-builder.c: Likewise.
10305         * gimple-expr.c: Likewise.
10306         * gimple-fold.c: Likewise.
10307         * gimple-iterator.c: Likewise.
10308         * gimple-low.c: Likewise.
10309         * gimple-match-head.c: Likewise.
10310         * gimple-pretty-print.c: Likewise.
10311         * gimple-ssa-isolate-paths.c: Likewise.
10312         * gimple-ssa-strength-reduction.c: Likewise.
10313         * gimple-streamer-in.c: Likewise.
10314         * gimple-streamer-out.c: Likewise.
10315         * gimple-streamer.h: Likewise.
10316         * gimple-walk.c: Likewise.
10317         * gimple.c: Likewise.
10318         * gimplify-me.c: Likewise.
10319         * gimplify.c: Likewise.
10320         * godump.c: Likewise.
10321         * graph.c: Likewise.
10322         * graphite-blocking.c: Likewise.
10323         * graphite-dependences.c: Likewise.
10324         * graphite-interchange.c: Likewise.
10325         * graphite-isl-ast-to-gimple.c: Likewise.
10326         * graphite-optimize-isl.c: Likewise.
10327         * graphite-poly.c: Likewise.
10328         * graphite-scop-detection.c: Likewise.
10329         * graphite-sese-to-poly.c: Likewise.
10330         * graphite.c: Likewise.
10331         * haifa-sched.c: Likewise.
10332         * hooks.h: Likewise.
10333         * hw-doloop.c: Likewise.
10334         * ifcvt.c: Likewise.
10335         * incpath.c: Likewise.
10336         * init-regs.c: Likewise.
10337         * internal-fn.c: Likewise.
10338         * ipa-chkp.c: Likewise.
10339         * ipa-comdats.c: Likewise.
10340         * ipa-cp.c: Likewise.
10341         * ipa-devirt.c: Likewise.
10342         * ipa-icf-gimple.c: Likewise.
10343         * ipa-icf.c: Likewise.
10344         * ipa-inline-analysis.c: Likewise.
10345         * ipa-inline-transform.c: Likewise.
10346         * ipa-inline.c: Likewise.
10347         * ipa-polymorphic-call.c: Likewise.
10348         * ipa-profile.c: Likewise.
10349         * ipa-prop.c: Likewise.
10350         * ipa-pure-const.c: Likewise.
10351         * ipa-ref.c: Likewise.
10352         * ipa-reference.c: Likewise.
10353         * ipa-split.c: Likewise.
10354         * ipa-utils.c: Likewise.
10355         * ipa-visibility.c: Likewise.
10356         * ipa.c: Likewise.
10357         * ira-build.c: Likewise.
10358         * ira-color.c: Likewise.
10359         * ira-conflicts.c: Likewise.
10360         * ira-costs.c: Likewise.
10361         * ira-emit.c: Likewise.
10362         * ira-lives.c: Likewise.
10363         * ira.c: Likewise.
10364         * jump.c: Likewise.
10365         * langhooks.c: Likewise.
10366         * lcm.c: Likewise.
10367         * loop-doloop.c: Likewise.
10368         * loop-init.c: Likewise.
10369         * loop-invariant.c: Likewise.
10370         * loop-iv.c: Likewise.
10371         * loop-unroll.c: Likewise.
10372         * lower-subreg.c: Likewise.
10373         * lra-assigns.c: Likewise.
10374         * lra-coalesce.c: Likewise.
10375         * lra-constraints.c: Likewise.
10376         * lra-eliminations.c: Likewise.
10377         * lra-lives.c: Likewise.
10378         * lra-remat.c: Likewise.
10379         * lra-spills.c: Likewise.
10380         * lra.c: Likewise.
10381         * lto-cgraph.c: Likewise.
10382         * lto-compress.c: Likewise.
10383         * lto-opts.c: Likewise.
10384         * lto-section-in.c: Likewise.
10385         * lto-section-out.c: Likewise.
10386         * lto-streamer-in.c: Likewise.
10387         * lto-streamer-out.c: Likewise.
10388         * lto-streamer.c: Likewise.
10389         * mcf.c: Likewise.
10390         * mode-switching.c: Likewise.
10391         * modulo-sched.c: Likewise.
10392         * omega.c: Likewise.
10393         * omp-low.c: Likewise.
10394         * optabs.c: Likewise.
10395         * opts-global.c: Likewise.
10396         * passes.c: Likewise.
10397         * plugin.c: Likewise.
10398         * postreload-gcse.c: Likewise.
10399         * postreload.c: Likewise.
10400         * predict.c: Likewise.
10401         * print-rtl.c: Likewise.
10402         * print-tree.c: Likewise.
10403         * profile.c: Likewise.
10404         * real.c: Likewise.
10405         * realmpfr.c: Likewise.
10406         * realmpfr.h: Likewise.
10407         * recog.c: Likewise.
10408         * ree.c: Likewise.
10409         * reg-stack.c: Likewise.
10410         * regcprop.c: Likewise.
10411         * reginfo.c: Likewise.
10412         * regrename.c: Likewise.
10413         * regs.h: Likewise.
10414         * regstat.c: Likewise.
10415         * reload.c: Likewise.
10416         * reload1.c: Likewise.
10417         * reorg.c: Likewise.
10418         * resource.c: Likewise.
10419         * rtl-chkp.c: Likewise.
10420         * rtlanal.c: Likewise.
10421         * rtlhooks.c: Likewise.
10422         * sanopt.c: Likewise.
10423         * sched-deps.c: Likewise.
10424         * sched-ebb.c: Likewise.
10425         * sched-rgn.c: Likewise.
10426         * sched-vis.c: Likewise.
10427         * sdbout.c: Likewise.
10428         * sel-sched-dump.c: Likewise.
10429         * sel-sched-ir.c: Likewise.
10430         * sel-sched.c: Likewise.
10431         * sese.c: Likewise.
10432         * shrink-wrap.c: Likewise.
10433         * shrink-wrap.h: Likewise.
10434         * simplify-rtx.c: Likewise.
10435         * stack-ptr-mod.c: Likewise.
10436         * statistics.c: Likewise.
10437         * stmt.c: Likewise.
10438         * stor-layout.c: Likewise.
10439         * store-motion.c: Likewise.
10440         * stringpool.c: Likewise.
10441         * symtab.c: Likewise.
10442         * target-globals.c: Likewise.
10443         * targhooks.c: Likewise.
10444         * toplev.c: Likewise.
10445         * tracer.c: Likewise.
10446         * trans-mem.c: Likewise.
10447         * tree-affine.c: Likewise.
10448         * tree-affine.h: Likewise.
10449         * tree-browser.c: Likewise.
10450         * tree-call-cdce.c: Likewise.
10451         * tree-cfg.c: Likewise.
10452         * tree-cfgcleanup.c: Likewise.
10453         * tree-chkp-opt.c: Likewise.
10454         * tree-chkp.c: Likewise.
10455         * tree-chrec.c: Likewise.
10456         * tree-complex.c: Likewise.
10457         * tree-data-ref.c: Likewise.
10458         * tree-dfa.c: Likewise.
10459         * tree-diagnostic.c: Likewise.
10460         * tree-dump.c: Likewise.
10461         * tree-eh.c: Likewise.
10462         * tree-emutls.c: Likewise.
10463         * tree-if-conv.c: Likewise.
10464         * tree-inline.c: Likewise.
10465         * tree-into-ssa.c: Likewise.
10466         * tree-iterator.c: Likewise.
10467         * tree-loop-distribution.c: Likewise.
10468         * tree-nested.c: Likewise.
10469         * tree-nrv.c: Likewise.
10470         * tree-object-size.c: Likewise.
10471         * tree-outof-ssa.c: Likewise.
10472         * tree-parloops.c: Likewise.
10473         * tree-phinodes.c: Likewise.
10474         * tree-predcom.c: Likewise.
10475         * tree-pretty-print.c: Likewise.
10476         * tree-pretty-print.h: Likewise.
10477         * tree-profile.c: Likewise.
10478         * tree-scalar-evolution.c: Likewise.
10479         * tree-sra.c: Likewise.
10480         * tree-ssa-address.c: Likewise.
10481         * tree-ssa-alias.c: Likewise.
10482         * tree-ssa-ccp.c: Likewise.
10483         * tree-ssa-coalesce.c: Likewise.
10484         * tree-ssa-copy.c: Likewise.
10485         * tree-ssa-copyrename.c: Likewise.
10486         * tree-ssa-dce.c: Likewise.
10487         * tree-ssa-dom.c: Likewise.
10488         * tree-ssa-dse.c: Likewise.
10489         * tree-ssa-forwprop.c: Likewise.
10490         * tree-ssa-ifcombine.c: Likewise.
10491         * tree-ssa-live.c: Likewise.
10492         * tree-ssa-loop-ch.c: Likewise.
10493         * tree-ssa-loop-im.c: Likewise.
10494         * tree-ssa-loop-ivcanon.c: Likewise.
10495         * tree-ssa-loop-ivopts.c: Likewise.
10496         * tree-ssa-loop-manip.c: Likewise.
10497         * tree-ssa-loop-niter.c: Likewise.
10498         * tree-ssa-loop-prefetch.c: Likewise.
10499         * tree-ssa-loop-unswitch.c: Likewise.
10500         * tree-ssa-loop.c: Likewise.
10501         * tree-ssa-loop.h: Likewise.
10502         * tree-ssa-math-opts.c: Likewise.
10503         * tree-ssa-operands.c: Likewise.
10504         * tree-ssa-phiopt.c: Likewise.
10505         * tree-ssa-phiprop.c: Likewise.
10506         * tree-ssa-pre.c: Likewise.
10507         * tree-ssa-propagate.c: Likewise.
10508         * tree-ssa-reassoc.c: Likewise.
10509         * tree-ssa-sccvn.c: Likewise.
10510         * tree-ssa-scopedtables.c: Likewise.
10511         * tree-ssa-sink.c: Likewise.
10512         * tree-ssa-strlen.c: Likewise.
10513         * tree-ssa-structalias.c: Likewise.
10514         * tree-ssa-tail-merge.c: Likewise.
10515         * tree-ssa-ter.c: Likewise.
10516         * tree-ssa-threadedge.c: Likewise.
10517         * tree-ssa-threadupdate.c: Likewise.
10518         * tree-ssa-uncprop.c: Likewise.
10519         * tree-ssa-uninit.c: Likewise.
10520         * tree-ssa.c: Likewise.
10521         * tree-ssanames.c: Likewise.
10522         * tree-stdarg.c: Likewise.
10523         * tree-streamer-in.c: Likewise.
10524         * tree-streamer-out.c: Likewise.
10525         * tree-streamer.c: Likewise.
10526         * tree-switch-conversion.c: Likewise.
10527         * tree-tailcall.c: Likewise.
10528         * tree-vect-data-refs.c: Likewise.
10529         * tree-vect-generic.c: Likewise.
10530         * tree-vect-loop-manip.c: Likewise.
10531         * tree-vect-loop.c: Likewise.
10532         * tree-vect-patterns.c: Likewise.
10533         * tree-vect-slp.c: Likewise.
10534         * tree-vect-stmts.c: Likewise.
10535         * tree-vectorizer.c: Likewise.
10536         * tree-vrp.c: Likewise.
10537         * tree.c: Likewise.
10538         * tsan.c: Likewise.
10539         * ubsan.c: Likewise.
10540         * valtrack.c: Likewise.
10541         * value-prof.c: Likewise.
10542         * var-tracking.c: Likewise.
10543         * varasm.c: Likewise.
10544         * varpool.c: Likewise.
10545         * vmsdbgout.c: Likewise.
10546         * vtable-verify.c: Likewise.
10547         * web.c: Likewise.
10548         * wide-int-print.cc: Likewise.
10549         * wide-int-print.h: Likewise.
10550         * wide-int.cc: Likewise.
10551         * xcoffout.c: Likewise.
10552         * config/aarch64/aarch64-builtins.c: Likewise.
10553         * config/aarch64/aarch64.c: Likewise.
10554         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10555         * config/alpha/alpha.c: Likewise.
10556         * config/arc/arc.c: Likewise.
10557         * config/arm/aarch-common.c: Likewise.
10558         * config/arm/arm-builtins.c: Likewise.
10559         * config/arm/arm-c.c: Likewise.
10560         * config/arm/arm.c: Likewise.
10561         * config/avr/avr-c.c: Likewise.
10562         * config/avr/avr-log.c: Likewise.
10563         * config/avr/avr.c: Likewise.
10564         * config/bfin/bfin.c: Likewise.
10565         * config/c6x/c6x.c: Likewise.
10566         * config/cr16/cr16.c: Likewise.
10567         * config/cris/cris.c: Likewise.
10568         * config/darwin-c.c: Likewise.
10569         * config/darwin.c: Likewise.
10570         * config/default-c.c: Likewise.
10571         * config/epiphany/epiphany.c: Likewise.
10572         * config/epiphany/mode-switch-use.c: Likewise.
10573         * config/epiphany/resolve-sw-modes.c: Likewise.
10574         * config/fr30/fr30.c: Likewise.
10575         * config/frv/frv.c: Likewise.
10576         * config/ft32/ft32.c: Likewise.
10577         * config/glibc-c.c: Likewise.
10578         * config/h8300/h8300.c: Likewise.
10579         * config/i386/i386-c.c: Likewise.
10580         * config/i386/i386.c: Likewise.
10581         * config/i386/msformat-c.c: Likewise.
10582         * config/i386/winnt-cxx.c: Likewise.
10583         * config/i386/winnt-stubs.c: Likewise.
10584         * config/i386/winnt.c: Likewise.
10585         * config/ia64/ia64-c.c: Likewise.
10586         * config/ia64/ia64.c: Likewise.
10587         * config/iq2000/iq2000.c: Likewise.
10588         * config/lm32/lm32.c: Likewise.
10589         * config/m32c/m32c-pragma.c: Likewise.
10590         * config/m32c/m32c.c: Likewise.
10591         * config/m32r/m32r.c: Likewise.
10592         * config/m68k/m68k.c: Likewise.
10593         * config/mcore/mcore.c: Likewise.
10594         * config/mep/mep-pragma.c: Likewise.
10595         * config/mep/mep.c: Likewise.
10596         * config/microblaze/microblaze-c.c: Likewise.
10597         * config/microblaze/microblaze.c: Likewise.
10598         * config/mips/mips.c: Likewise.
10599         * config/mmix/mmix.c: Likewise.
10600         * config/mn10300/mn10300.c: Likewise.
10601         * config/moxie/moxie.c: Likewise.
10602         * config/msp430/msp430-c.c: Likewise.
10603         * config/msp430/msp430.c: Likewise.
10604         * config/nds32/nds32-cost.c: Likewise.
10605         * config/nds32/nds32-fp-as-gp.c: Likewise.
10606         * config/nds32/nds32-intrinsic.c: Likewise.
10607         * config/nds32/nds32-isr.c: Likewise.
10608         * config/nds32/nds32-md-auxiliary.c: Likewise.
10609         * config/nds32/nds32-memory-manipulation.c: Likewise.
10610         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10611         * config/nds32/nds32-predicates.c: Likewise.
10612         * config/nds32/nds32.c: Likewise.
10613         * config/nios2/nios2.c: Likewise.
10614         * config/nvptx/nvptx.c: Likewise.
10615         * config/pa/pa.c: Likewise.
10616         * config/pdp11/pdp11.c: Likewise.
10617         * config/rl78/rl78-c.c: Likewise.
10618         * config/rl78/rl78.c: Likewise.
10619         * config/rs6000/rs6000-c.c: Likewise.
10620         * config/rs6000/rs6000.c: Likewise.
10621         * config/rx/rx.c: Likewise.
10622         * config/s390/s390-c.c: Likewise.
10623         * config/s390/s390.c: Likewise.
10624         * config/sh/sh-c.c: Likewise.
10625         * config/sh/sh-mem.cc: Likewise.
10626         * config/sh/sh.c: Likewise.
10627         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10628         * config/sh/sh_treg_combine.cc: Likewise.
10629         * config/sol2-c.c: Likewise.
10630         * config/sol2-cxx.c: Likewise.
10631         * config/sol2-stubs.c: Likewise.
10632         * config/sol2.c: Likewise.
10633         * config/sparc/sparc-c.c: Likewise.
10634         * config/sparc/sparc.c: Likewise.
10635         * config/spu/spu-c.c: Likewise.
10636         * config/spu/spu.c: Likewise.
10637         * config/stormy16/stormy16.c: Likewise.
10638         * config/tilegx/mul-tables.c: Likewise.
10639         * config/tilegx/tilegx-c.c: Likewise.
10640         * config/tilegx/tilegx.c: Likewise.
10641         * config/tilepro/mul-tables.c: Likewise.
10642         * config/tilepro/tilepro-c.c: Likewise.
10643         * config/tilepro/tilepro.c: Likewise.
10644         * config/v850/v850-c.c: Likewise.
10645         * config/v850/v850.c: Likewise.
10646         * config/vax/vax.c: Likewise.
10647         * config/visium/visium.c: Likewise.
10648         * config/vms/vms-c.c: Likewise.
10649         * config/vms/vms.c: Likewise.
10650         * config/vxworks.c: Likewise.
10651         * config/winnt-c.c: Likewise.
10652         * config/xtensa/xtensa.c: Likewise.
10653         * common/config/bfin/bfin-common.c: Likewise.
10655 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
10657         * tree.h (tree_code_for_canonical_type_merging): New function.
10658         * tree.c (gimple_canonical_types_compatible_p): Use
10659         tree_code_for_canonical_type_merging..
10661 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10663         PR c++/66192
10664         PR target/66200
10665         * doc/tm.texi: Regenerate.
10666         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
10667         * target.def (TARGET_RELAXED_ORDERING): Likewise.
10668         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
10669         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
10670         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
10671         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
10672         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
10673         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
10674         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
10676 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10678         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
10679         register fma steering pass.
10680         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
10681         AARCH64_TUNE_FMA_STEERING.
10683 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
10685         * tree.c (verify_type_variant): Verify that type and variant is
10686         compatible.
10687         (gimple_canonical_types_compatible_p): Look for main variants.
10689 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10691         * config.gcc (powerpc*-*-*): Add support for a new configure
10692         option --with-advance-toolchain=<xxx> which overrides using the
10693         default header files, libraries and dynamic linker.
10695         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
10696         specs to support the configure --with-advance-toolchain=<xxx>
10697         option.
10698         (INCLUDE_EXTRA_SPEC): Likewise.
10699         (LINK_OS_EXTRA_SPEC32): Likewise.
10700         (LINK_OK_EXTRA_SPEC64): Likewise.
10701         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
10702         (DYNAMIC_LINKER_PREFIX): Likewise.
10703         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
10704         toolchain support.
10705         (GLIBC_DYNAMIC_LINKER32): Likewise.
10706         (GLIBC_DYNAMIC_LINKER64): Likewise.
10707         (LINK_OS_LINUX_SPEC32): Likewise.
10708         (LINK_OS_LINUX_SPEC64): Likewise.
10710         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
10711         configuration option.
10713 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
10715         PR target/66275
10716         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
10717         to determine current function ABI.
10718         (ix86_function_value_regno_p): Ditto.
10720 2015-06-03  Martin Liska  <mliska@suse.cz>
10722         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
10723         * bitmap.h (struct bitmap_usage): Likewise.
10724         * ggc-common.c (struct ggc_usage): Likewise.
10725         * mem-stats.h (struct mem_location): Likewise.
10726         (struct mem_usage): Likewise.
10727         * vec.c (struct vec_usage): Likewise.
10729 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
10731         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
10732         -Bsymbolic.
10734 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
10736         * doc/plugins.texi (enum plugin_event): New event.
10737         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
10738         and PLUGIN_FINISH_FUNCTION.
10739         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
10740         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
10742 2015-06-03  Richard Biener  <rguenther@suse.de>
10744         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10745         compute GROUP_GAP for the first element.
10746         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
10747         on in-group gaps.
10749 2015-06-03  Nick Clifton  <nickc@redhat.com>
10751         * config/rl78/rl78-real.md: Add peepholes to avoid a register
10752         copy when calling a function.
10753         * config/rl78/rl78.c (need_to_save): Do not push the frame
10754         pointer in an interrupt handler prologue if it is never used.
10756 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10758         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
10760 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
10762         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
10763         reference when cloning alias node.
10765 2015-06-03  Martin Liska  <mliska@suse.cz>
10767         * alloc-pool.h (struct pool_usage): Correct space padding.
10768         * ggc-page.c (ggc_print_statistics): Align columns in a report.
10769         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
10770         * tree.c (dump_tree_statistics): Align columns in a report.
10772 2015-06-03  Martin Liska  <mliska@suse.cz>
10774         * alloc-pool.c (allocate_pool_descriptor): Remove.
10775         (struct pool_output_info): Likewise.
10776         (print_alloc_pool_statistics): Likewise.
10777         (dump_alloc_pool_statistics): Likewise.
10778         * alloc-pool.h (struct pool_usage): New struct.
10779         (pool_allocator::initialize): Change usage of memory statistics
10780         to a new interface.
10781         (pool_allocator::release): Likewise.
10782         (pool_allocator::allocate): Likewise.
10783         (pool_allocator::remove): Likewise.
10784         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
10785         for a pool allocator.
10786         * mem-stats.h (struct mem_location): Add new ctor.
10787         (struct mem_usage): Add counter for number of
10788         instances.
10789         (mem_alloc_description::register_descriptor): New overload of
10790         * mem-stats.h (mem_location::to_string): New function.
10791         * bitmap.h (struct bitmap_usage): Use this new function.
10792         * ggc-common.c (struct ggc_usage): Likewise.
10793         the function.
10795 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
10797         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
10798         of GCC_INSN_FLAGS_H block.
10800 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
10802         * explow.c (plus_constant): Update check after force_const_mem call
10803         to see if the value returned is not a NULL_RTX.
10805 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
10807         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
10808         remove instumentation thunks calling reachable functions.
10809         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
10810         * lto/lto-partition.c (privatize_symbol_name_1): New.
10811         (privatize_symbol_name): Privatize both decl and orig_decl
10812         names for instrumented functions.
10813         * cgraph.c (cgraph_node::verify_node): Add transparent
10814         alias chain check for instrumented node.
10816 2015-06-03  Marek Polacek  <polacek@redhat.com>
10818         PR c/64223
10819         PR c/29358
10820         * tree.c (attribute_value_equal): Handle attribute format.
10821         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
10823 2015-06-03  Richard Biener  <rguenther@suse.de>
10825         PR tree-optimization/63916
10826         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10827         Forward-propagate non-invariant addresses by splicing their
10828         reference ops if the result isn't going to be used by PRE.
10829         (vn_reference_lookup_3): Remove pointless assert.
10831 2015-06-03  Richard Biener  <rguenther@suse.de>
10833         PR tree-optimization/66375
10834         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
10835         add to the evolution before following SSA edges.
10837 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
10839         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
10840         (dump_use, dump_cand, find_induction_variables): Pass new argument
10841         to dump_iv.
10842         (record_use): Preserve the ssa name information in IV.
10844 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
10846         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
10847         NO_MODE_TEST.
10848         (add_mode_tests): Don't add mode tests if the predicate only
10849         accepts scalar constant integers.  Otherwise, allow the mode
10850         of "op" to be VOIDmode if the predicate does accept such integers.
10852 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
10854         PR target/66258
10855         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
10856         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
10857         (aarch64_secondary_reload): Likewise
10858         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
10859         to !TARGET_FLOAT.
10860         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
10861         Likewise.
10863 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
10864             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10866         PR target/65768
10867         * cprop.c (try_replace_reg): Check cost of constants before propagating.
10869 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10871         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
10872         provide access to the IBM extended double floating point mode if
10873         long double is IEEE 128-bit floating point.
10874         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
10875         point if long double is the IBM extended double type.
10877         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
10878         enable adding IEEE 128-bit floating point support.
10879         (-mfloat128-software): Likewise.
10880         (-mfloat128-sw): Likewise.
10882         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
10883         128-bit floating point types to occupy any register if
10884         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
10885         -mfloat128-software is enabled.
10886         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
10887         support.
10888         (rs6000_option_override_internal): Add -mfloat128-* support.
10889         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10891         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10892         and float128 type nodes.
10893         (ieee128_float_type_node): Likewise.
10894         (ibm128_float_type_node): Likewise.
10896 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10898         PR target/66136
10899         * config/aarch64/geniterators.sh: Rewrite in awk.
10901 2015-06-02  Martin Liska  <mliska@suse.cz>
10903         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10904         values to avoid -Wmaybe-uninitialized errors.
10906 2015-06-02  Richard Biener  <rguenther@suse.de>
10908         PR debug/65549
10909         * dwarf2out.c (lookup_context_die): New function.
10910         (resolve_addr): Avoid forcing a full DIE for the
10911         target of a DW_TAG_GNU_call_site during late compilation.
10912         Instead create a stub DIE without a type if we have a
10913         context DIE present.
10915 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
10917         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10919 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
10921         PR tree-optimization/48052
10922         * cfgloop.h (struct control_iv): New.
10923         (struct loop): New field control_ivs.
10924         * tree-ssa-loop-niter.c : Include "stor-layout.h".
10925         (number_of_iterations_lt): Set no_overflow information.
10926         (number_of_iterations_exit): Init control iv in niter struct.
10927         (record_control_iv): New.
10928         (estimate_numbers_of_iterations_loop): Call record_control_iv.
10929         (loop_exits_before_overflow): New.  Interface factored out of
10930         scev_probably_wraps_p.
10931         (scev_probably_wraps_p): Factor loop niter related code into
10932         loop_exits_before_overflow.
10933         (free_numbers_of_iterations_estimates_loop): Free control ivs.
10934         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10936 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10938         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10939         the target doesn't belong to the current function.
10941 2015-06-02  Marek Polacek  <polacek@redhat.com>
10943         PR middle-end/66345
10944         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10945         get_maxval_strlen does not produce an INTEGER_CST.
10947 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
10949         * config/arc/constraints.md: Use lower-case names in match_code.
10950         * config/mmix/constraints.md: Likewise.
10952 2015-06-02  Richard Biener  <rguenther@suse.de>
10954         PR tree-optimization/65961
10955         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
10956         check and clarify dump message.
10957         (vect_build_slp_tree): If all children are built up from scalars
10958         build up the parent from scalars instead.
10959         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
10961 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10963         PR other/65366
10964         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
10965         instead of print ... .
10967 2015-06-02  Alan Modra  <amodra@gmail.com>
10969         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
10970         2014-08-11 change.
10972 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
10974         PR tree-optimization/52563
10975         PR tree-optimization/62173
10976         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
10977         (alloc_iv, set_iv): New parameter.
10978         (determine_biv_step): Delete.
10979         (find_bivs): Inline original determine_biv_step.  Pass new
10980         argument to set_iv.
10981         (idx_find_step): Use no_overflow information for conversion.
10982         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
10983         resolve_mixers handle folded_casts.
10984         (instantiate_scev_name): Change bool parameter to bool pointer.
10985         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
10986         (instantiate_array_ref, instantiate_scev_not): Ditto.
10987         (instantiate_scev_3, instantiate_scev_2): Ditto.
10988         (instantiate_scev_1, instantiate_scev_r): Ditto.
10989         (instantiate_scev_convert, ): Change parameter.  Pass argument
10990         to chrec_convert_aggressive.
10991         (instantiate_scev): Change argument.
10992         (resolve_mixers): New parameter and set it.
10993         (scev_const_prop): New argument.
10994         * tree-scalar-evolution.h (resolve_mixers): New parameter.
10995         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
10996         of chrec_conert_1.
10997         (chrec_convert): New parameter.  Move definition below.
10998         (chrec_convert_aggressive): New parameter and set it.  Call
10999         convert_affine_scev.
11000         * tree-chrec.h (chrec_convert): New parameter.
11001         (chrec_convert_aggressive): Ditto.
11003 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11005         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
11006         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
11007         the LHS of a no-return call if its type has variable size.
11008         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
11009         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
11011 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
11013         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
11014         * config.in: Regenerate.
11016 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
11018         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
11019         consecutive accesses within outer-loop with force_vectorize
11020         for references with zero step in inner-loop.
11022 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
11024         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
11025         rather than from gcc/build directory.
11027 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
11029         PR target/65697
11030         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
11031         for __sync memory models, emit initial loads and final barriers as
11032         appropriate.
11034 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
11036         PR target/65697
11037         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
11038         (aarch64_split_atomic_op): Check for __sync memory models, emit
11039         appropriate initial loads and final barriers.
11041 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
11043         * Makefile.in: Fix gcov dependencies that should
11044         not point to a build folder.
11046 2015-06-01  Richard Biener  <rguenther@suse.de>
11048         Revert
11049         2015-05-29  Richard Biener  <rguenther@suse.de>
11051         PR tree-optimization/66314
11052         * tree-ssa-threadupdate.c (create_block_for_threading): Add
11053         parameter that says which loop the new block belongs to.
11054         (ssa_create_duplicates): Blocks duplicated for the threaded
11055         path belong to the loop of the thread destination.
11057 2015-06-01  Martin Liska  <mliska@suse.cz>
11059         * sched-deps.c: Include pool-alloc.h before
11060         cselib.h header file is included.
11062 2015-06-01  Richard Biener  <rguenther@suse.de>
11064         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
11065         functions.
11067 2015-06-01  Martin Liska  <mliska@suse.cz>
11069         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
11070         a function local variable.
11072 2015-06-01  Martin Liska  <mliska@suse.cz>
11074         * alloc-pool.c (create_alloc_pool): Remove.
11075         (empty_alloc_pool): Likewise.
11076         (free_alloc_pool): Likewise.
11077         (free_alloc_pool_if_empty): Likewise.
11078         (pool_alloc): Likewise.
11079         (pool_free): Likewise.
11080         * alloc-pool.h: Remove old declarations.
11082 2015-06-01  Martin Liska  <mliska@suse.cz>
11084         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
11085         (ira_create_object): Likewise.
11086         (ira_create_allocno): Likewise.
11087         (ira_create_live_range): Likewise.
11088         (copy_live_range): Likewise.
11089         (ira_finish_live_range): Likewise.
11090         (ira_free_allocno_costs): Likewise.
11091         (finish_allocno): Likewise.
11092         (finish_allocnos): Likewise.
11093         (initiate_prefs): Likewise.
11094         (ira_create_pref): Likewise.
11095         (finish_pref): Likewise.
11096         (finish_prefs): Likewise.
11097         (initiate_copies): Likewise.
11098         (ira_create_copy): Likewise.
11099         (finish_copy): Likewise.
11100         (finish_copies): Likewise.
11101         (finish_prefs): Likewise.
11103 2015-06-01  Martin Liska  <mliska@suse.cz>
11105         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
11106         (allocate_and_init_ipcp_value): Likewise.
11107         (ipcp_lattice::add_value): Likewise.
11108         (merge_agg_lats_step): Likewise.
11109         (ipcp_driver): Likewise.
11110         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
11111         (ipa_free_all_structures_after_iinln): Likewise.
11112         * ipa-prop.h: Likewise.
11114 2015-06-01  Martin Liska  <mliska@suse.cz>
11116         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
11117         pool allocator.
11118         (set_hint_predicate): Likewise.
11119         (inline_summary_alloc): Likewise.
11120         (reset_inline_edge_summary): Likewise.
11121         (reset_inline_summary): Likewise.
11122         (set_cond_stmt_execution_predicate): Likewise.
11123         (set_switch_stmt_execution_predicate): Likewise.
11124         (compute_bb_predicates): Likewise.
11125         (estimate_function_body_sizes): Likewise.
11126         (inline_free_summary): Likewise.
11128 2015-06-01  Martin Liska  <mliska@suse.cz>
11130         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
11131         (ipa_edge_duplication_hook): Likewise.
11132         (ipa_free_all_structures_after_ipa_cp): Likewise.
11133         (ipa_free_all_structures_after_iinln): Likewise.
11135 2015-06-01  Martin Liska  <mliska@suse.cz>
11137         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
11138         (ipa_profile_generate_summary): Likewise.
11139         (ipa_profile_read_summary): Likewise.
11140         (ipa_profile): Likewise.
11142 2015-06-01  Martin Liska  <mliska@suse.cz>
11144         * tree-ssa-structalias.c (new_var_info): Use new type-based
11145         pool allocator.
11146         (new_constraint): Likewise.
11147         (init_alias_vars): Likewise.
11148         (delete_points_to_sets): Likewise.
11150 2015-06-01  Martin Liska  <mliska@suse.cz>
11152         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
11153         (free_strinfo): Likewise.
11154         (pass_strlen::execute): Likewise.
11156 2015-06-01  Martin Liska  <mliska@suse.cz>
11158         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
11159         pool allocator.
11160         (vn_reference_insert_pieces): Likewise.
11161         (vn_phi_insert): Likewise.
11162         (visit_reference_op_call): Likewise.
11163         (copy_phi): Likewise.
11164         (copy_reference): Likewise.
11165         (process_scc): Likewise.
11166         (allocate_vn_table): Likewise.
11167         (free_vn_table): Likewise.
11169 2015-06-01  Martin Liska  <mliska@suse.cz>
11171         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
11172         pool allocator.
11173         (add_repeat_to_ops_vec): Likewise.
11174         (get_ops): Likewise.
11175         (maybe_optimize_range_tests): Likewise.
11176         (init_reassoc): Likewise.
11177         (fini_reassoc): Likewise.
11179 2015-06-01  Martin Liska  <mliska@suse.cz>
11181         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
11182         pool allocator.
11183         (bitmap_set_new): Likewise.
11184         (get_or_alloc_expr_for_constant): Likewise.
11185         (get_or_alloc_expr_for): Likewise.
11186         (phi_translate_1): Likewise.
11187         (compute_avail): Likewise.
11188         (init_pre): Likewise.
11189         (fini_pre): Likewise.
11191 2015-06-01  Martin Liska  <mliska@suse.cz>
11193         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
11194         (delete_dep_node): Likewise.
11195         (create_deps_list): Likewise.
11196         (free_deps_list): Likewise.
11197         (sched_deps_init): Likewise.
11198         (sched_deps_finish): Likewise.
11200 2015-06-01  Martin Liska  <mliska@suse.cz>
11202         * regcprop.c (free_debug_insn_changes): Use new type-based
11203         pool allocator.
11204         (replace_oldest_value_reg): Likewise.
11205         (pass_cprop_hardreg::execute): Likewise.
11207 2015-06-01  Martin Liska  <mliska@suse.cz>
11209         * ira-build.c (initiate_cost_vectors): Use new type-based
11210         pool allocator.
11211         (ira_allocate_cost_vector): Likewise.
11212         (ira_free_cost_vector): Likewise.
11213         (finish_cost_vectors): Likewise.
11215 2015-06-01  Martin Liska  <mliska@suse.cz>
11217         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
11218         pool allocator.
11219         (free_sched_pools): Likewise.
11220         * sel-sched-ir.h (_list_alloc): Likewise.
11221         (_list_remove): Likewise.
11223 2015-06-01  Martin Liska  <mliska@suse.cz>
11225         * stmt.c (add_case_node): Use new type-based pool allocator.
11226         (expand_case): Likewise.
11227         (expand_sjlj_dispatch_table): Likewise.
11229 2015-06-01  Martin Liska  <mliska@suse.cz>
11231         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
11232         (free_bb): Likewise.
11233         (pass_cse_reciprocals::execute): Likewise.
11235 2015-06-01  Martin Liska  <mliska@suse.cz>
11237         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
11238         (sra_deinitialize) Likewise.
11239         (create_access_1) Likewise.
11240         (build_accesses_from_assign) Likewise.
11241         (create_artificial_child_access) Likewise.
11243 2015-06-01  Martin Liska  <mliska@suse.cz>
11245         * dse.c (get_group_info):Use new type-based pool allocator.
11246         (dse_step0) Likewise.
11247         (free_store_info) Likewise.
11248         (delete_dead_store_insn) Likewise.
11249         (free_read_records) Likewise.
11250         (record_store) Likewise.
11251         (replace_read) Likewise.
11252         (check_mem_read_rtx) Likewise.
11253         (scan_insn) Likewise.
11254         (dse_step1) Likewise.
11255         (dse_step7) Likewise.
11257 2015-06-01  Martin Liska  <mliska@suse.cz>
11259         * df-scan.c (struct df_scan_problem_data):Use new type-based
11260         pool allocator.
11261         (df_scan_free_internal) Likewise.
11262         (df_scan_alloc) Likewise.
11263         (df_grow_reg_info) Likewise.
11264         (df_free_ref) Likewise.
11265         (df_insn_create_insn_record) Likewise.
11266         (df_mw_hardreg_chain_delete) Likewise.
11267         (df_insn_info_delete) Likewise.
11268         (df_free_collection_rec) Likewise.
11269         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
11270         (df_sort_and_compress_mws) Likewise.
11271         (df_ref_create_structure) Likewise.
11272         (df_ref_record) Likewise.
11274 2015-06-01  Martin Liska  <mliska@suse.cz>
11276         * df-problems.c (df_chain_create):Use new type-based pool allocator.
11277         (df_chain_unlink_1) Likewise.
11278         (df_chain_unlink) Likewise.
11279         (df_chain_remove_problem) Likewise.
11280         (df_chain_alloc) Likewise.
11281         (df_chain_free) Likewise.
11282         * df.h (struct dataflow) Likewise.
11284 2015-06-01  Martin Liska  <mliska@suse.cz>
11286         * cselib.c (new_elt_list):Use new type-based pool allocator.
11287         (new_elt_loc_list) Likewise.
11288         (unchain_one_elt_list) Likewise.
11289         (unchain_one_elt_loc_list) Likewise.
11290         (unchain_one_value) Likewise.
11291         (new_cselib_val) Likewise.
11292         (cselib_init) Likewise.
11293         (cselib_finish) Likewise.
11295 2015-06-01  Martin Liska  <mliska@suse.cz>
11297         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
11298         (sh_reorg) Likewise.
11300 2015-06-01  Martin Liska  <mliska@suse.cz>
11302         * cfg.c (initialize_original_copy_tables):Use new type-based
11303         pool allocator.
11304         (free_original_copy_tables) Likewise.
11305         (copy_original_table_clear) Likewise.
11306         (copy_original_table_set) Likewise.
11308 2015-06-01  Martin Liska  <mliska@suse.cz>
11310         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
11311         pool allocator.
11312         (asan_mem_ref_new) Likewise.
11313         (free_mem_ref_resources) Likewise.
11315 2015-06-01  Martin Liska  <mliska@suse.cz>
11317         * var-tracking.c (variable_htab_free):Use new type-based
11318         pool allocator.
11319         (attrs_list_clear) Likewise.
11320         (attrs_list_insert) Likewise.
11321         (attrs_list_copy) Likewise.
11322         (shared_hash_unshare) Likewise.
11323         (shared_hash_destroy) Likewise.
11324         (unshare_variable) Likewise.
11325         (var_reg_delete_and_set) Likewise.
11326         (var_reg_delete) Likewise.
11327         (var_regno_delete) Likewise.
11328         (drop_overlapping_mem_locs) Likewise.
11329         (variable_union) Likewise.
11330         (insert_into_intersection) Likewise.
11331         (canonicalize_values_star) Likewise.
11332         (variable_merge_over_cur) Likewise.
11333         (dataflow_set_merge) Likewise.
11334         (remove_duplicate_values) Likewise.
11335         (variable_post_merge_new_vals) Likewise.
11336         (dataflow_set_preserve_mem_locs) Likewise.
11337         (dataflow_set_remove_mem_locs) Likewise.
11338         (variable_from_dropped) Likewise.
11339         (variable_was_changed) Likewise.
11340         (set_slot_part) Likewise.
11341         (clobber_slot_part) Likewise.
11342         (delete_slot_part) Likewise.
11343         (loc_exp_insert_dep) Likewise.
11344         (notify_dependents_of_changed_value) Likewise.
11345         (emit_notes_for_differences_1) Likewise.
11346         (vt_emit_notes) Likewise.
11347         (vt_initialize) Likewise.
11348         (vt_finalize) Likewise.
11350 2015-06-01  Martin Liska  <mliska@suse.cz>
11352         * ira-color.c (init_update_cost_records):Use new type-based
11353         pool allocator.
11354         (get_update_cost_record) Likewise.
11355         (free_update_cost_record_list) Likewise.
11356         (finish_update_cost_records) Likewise.
11357         (initiate_cost_update) Likewise.
11359 2015-06-01  Martin Liska  <mliska@suse.cz>
11361         * lra.c (init_insn_regs): Use new type-based pool allocator.
11362         (new_insn_reg) Likewise.
11363         (free_insn_reg) Likewise.
11364         (free_insn_regs) Likewise.
11365         (finish_insn_regs) Likewise.
11366         (init_insn_recog_data) Likewise.
11367         (init_reg_info) Likewise.
11368         (finish_reg_info) Likewise.
11369         (lra_free_copies) Likewise.
11370         (lra_create_copy) Likewise.
11371         (invalidate_insn_data_regno_info) Likewise.
11373 2015-06-01  Martin Liska  <mliska@suse.cz>
11375         * lra-lives.c (free_live_range): Use new type-based pool allocator.
11376         (free_live_range_list) Likewise.
11377         (create_live_range) Likewise.
11378         (copy_live_range) Likewise.
11379         (lra_merge_live_ranges) Likewise.
11380         (remove_some_program_points_and_update_live_ranges) Likewise.
11381         (lra_live_ranges_init) Likewise.
11382         (lra_live_ranges_finish) Likewise.
11384 2015-06-01  Martin Liska  <mliska@suse.cz>
11386         * et-forest.c (et_new_occ): Use new type-based pool allocator.
11387         (et_new_tree): Likewise.
11388         (et_free_tree): Likewise.
11389         (et_free_tree_force): Likewise.
11390         (et_free_pools): Likewise.
11391         (et_split): Likewise.
11393 2015-06-01  Martin Liska  <mliska@suse.cz>
11395         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
11396         to header file.
11397         * alloc-pool.h (pool_allocator::pool_allocator): New function.
11398         (pool_allocator::release): Likewise.
11399         (inline pool_allocator::release_if_empty): Likewise.
11400         (inline pool_allocator::~pool_allocator): Likewise.
11401         (pool_allocator::allocate): Likewise.
11402         (pool_allocator::remove): Likewise.
11404 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
11406         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
11407         in comment.
11409 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
11411         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
11412         to fusible_ops.
11413         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
11414         (arm_macro_fusion_p): Likewise.
11415         (arm_macro_fusion_pair_p): Likewise.
11417 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
11419         * config/aarch64/aarch64-protos.h (tune_params): Rename
11420         fuseable_ops to fusible_ops.
11421         * config/aarch64/aarch64.c (generic_tunings): Rename
11422         fuseable_ops to fusible_ops.
11423         (cortexa53_tunings): Likewise.
11424         (cortexa57_tunings): Likewise.
11425         (thunderx_tunings): Likewise.
11426         (xgene1_tunings): Likewise.
11427         (aarch64_macro_fusion_p): Likewise.
11428         (aarch64_macro_fusion_pair_p): Likewise.
11430 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11432         * config/s390/driver-native.c: New file.
11433         * config/s390/x-native: New file.
11434         * config.host: Add new files for s390.
11435         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
11436         and -march=native
11437         * config.gcc: Likewise.
11438         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
11439         * config/s390/s390-opts.h (enum processor_type): Ditto.
11440         * config/s390/s390.c (s390_option_override): Catch unhandled
11441         PROCESSOR_NATIVE
11443 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
11445         PR target/65527
11446         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
11447         redirection for instrumented calls.
11448         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
11449         (append_compiler_options): Append -fcheck-pointer-bounds.
11450         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
11451         (chkp_redirect_edge): New.
11452         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
11453         (chkp_redirect_edge): New.
11455 2015-06-01  Richard Biener  <rguenther@suse.de>
11457         PR tree-optimization/66280
11458         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
11459         def-use walking.
11461 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11463         * config/aarch64/aarch64.md
11464         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
11465         logic_shift_imm.
11467 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11469         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
11470         Remove obsolete kludge.
11472 2015-06-01  Richard Biener  <rguenther@suse.de>
11474         * tree-ssa-reassoc.c (get_rank): Simplify.
11476 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
11478         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
11479         * configure: Regenerated.
11481 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
11483         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
11484         issue (add space between string literal and macro).
11485         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
11487 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
11489         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
11490         implict or explicit -fPIE or -fpie.
11492 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
11494         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
11496 2015-05-28  DJ Delorie  <dj@redhat.com>
11498         * expmed.c (extract_bit_field_1): Avoid clobbering a
11499         yet-to-be-used base/index register.
11501 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
11503         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
11504         (alias_stats): Add num_universal.
11505         (alias_set_subset_of): Special case pointers; be ready for NULL
11506         children.
11507         (alias_sets_conflict_p): Special case pointers; be ready for NULL
11508         children.
11509         (init_alias_set_entry): Break out from ...
11510         (record_alias_subset): ... here; propagate new fields;
11511         allocate children only when really needed.
11512         (get_alias_set): Do less generous pointer globbing.
11513         (dump_alias_stats_in_alias_c): Update statistics.
11515 2015-05-30  Alan Modra  <amodra@gmail.com>
11517         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
11518         correct block for use of r12.
11519         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
11521 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11523         PR target/66215
11524         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
11525         with -mhotpatch=.
11527 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
11529         PR tree-optimization/66142
11530         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
11531         virtual phis that feed themselves.
11533 2015-05-29  Richard Biener  <rguenther@suse.de>
11535         PR tree-optimization/66314
11536         * tree-ssa-threadupdate.c (create_block_for_threading): Add
11537         parameter that says which loop the new block belongs to.
11538         (ssa_create_duplicates): Blocks duplicated for the threaded
11539         path belong to the loop of the thread destination.
11541 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11543         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
11544         to cleanup-saved-temps.
11545         * doc/sourcebuild.texi (Clean up generated test files): Expand
11546         introduction.
11547         (dg-keep-saved-temps): Document new proc.
11548         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
11549         cleanup-saved-temps): Remove.
11551 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
11553         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
11554         gcc_AC_CHECK_DECLS.
11555         * configure: Regenerate.
11557 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
11559         * config/nios2/linux.h (CPP_SPEC): Define.
11561 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
11563         * config/microblaze/linux.h (CPP_SPEC): Define.
11565 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
11567         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
11568         -pthread is specified.
11570 2015-05-28  Richard Biener  <rguenther@suse.de>
11572         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
11573         (vect_fixup_scalar_cycles_with_patterns): Likewise.
11574         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11575         after pattern recog.
11576         (vect_create_epilog_for_reduction): Properly handle reductions
11577         with patterns.
11578         (vectorizable_reduction): Likewise.
11579         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11580         reduction chains.
11581         (vect_get_constant_vectors): Create the correct number of
11582         initial values for reductions.
11583         (vect_schedule_slp_instance): Handle reduction chains that are
11584         type changing properly.
11585         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11587 2015-05-28  Richard Biener  <rguenther@suse.de>
11589         PR tree-optimization/66142
11590         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11591         values better in memcpy destination handling.  Handle non-aliasing
11592         we discover here.
11594 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
11596         PR target/63810
11597         * config/darwin-c.c (version_components): New global enum.
11598         (parse_version, version_as_legacy_macro)
11599         (version_as_modern_macro, macosx_version_as_macro): New functions.
11600         (version_as_macro): Remove.
11601         (darwin_cpp_builtins): Use new function.
11603 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
11605         * builtins.c (expand_builtin_acc_on_device): Mark parameters
11606         with ATTRIBUTE_UNUSED.
11608 2015-05-28  Julian Brown  <julian@codesourcery.com>
11610         PR libgomp/65742
11612         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11613         sequence for !ACCEL_COMPILER.
11615 2015-05-28  Nick Clifton  <nickc@redhat.com>
11617         * config/rx/rx.c (push_regs): New function.  Extracts code from...
11618         (rx_expand_prologue): ... here.  Use push_regs to push even small
11619         spans of registers.
11620         (pop_regs): New function.
11621         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
11622         registers.
11624 2015-05-28  Richard Biener  <rguenther@suse.de>
11626         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11627         member.
11628         (SLP_INSTANCE_BODY_COST_VEC): Remove.
11629         (vect_update_slp_costs_according_to_vf): Likewise.
11630         (vect_slp_analyze_operations): Update prototype.
11631         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11632         vect_update_slp_costs_according_to_vf, adjust.
11633         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11634         (vect_analyze_slp_cost_1): Likewise.
11635         (vect_analyze_slp_cost): Likewise.  Properly deal with
11636         widening reduction ops.  Commit body costs.
11637         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
11638         cost for loops from here.
11639         (vect_slp_analyze_operations): But do it from here when
11640         the vectorization factor is known and stmts are analyzed.
11641         (vect_bb_vectorization_profitable_p): Simplify.
11642         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11643         (vect_update_slp_costs_according_to_vf): Remove.
11645 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
11646             H.J. Lu  <hongjiu.lu@intel.com>
11648         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
11649         (BUILD_CFLAGS): Likewise.
11650         (BUILD_CXXFLAGS): Likewise.
11651         (LINKER): Add @NO_PIE_FLAG@.
11652         (BUILD_LDFLAGS): Likewise.
11653         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
11654         --enable-default-pie.
11655         * common.opt (fPIE): Initialize to -1.
11656         (fpie): Likewise.
11657         (no-pie): New option.
11658         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
11659         * configure.ac: Add --enable-default-pie.
11660         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
11661         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
11662         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
11663         * gcc.c (NO_PIE_SPEC): New.
11664         (PIE_SPEC): Likewise.
11665         (NO_FPIE1_SPEC): Likewise.
11666         (FPIE1_SPEC): Likewise.
11667         (NO_FPIE2_SPEC): Likewise.
11668         (FPIE2_SPEC): Likewise.
11669         (NO_FPIE2_SPEC): Likewise.
11670         (FPIE_SPEC): Likewise.
11671         (NO_FPIE_SPEC): Likewise.
11672         (NO_FPIC1_SPEC): Likewise.
11673         (FPIC1_SPEC): Likewise.
11674         (NO_FPIC2_SPEC): Likewise.
11675         (FPIC2_SPEC): Likewise.
11676         (NO_FPIC2_SPEC): Likewise.
11677         (FPIC_SPEC): Likewise.
11678         (NO_FPIC_SPEC): Likewise.
11679         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
11680         (FPIE1_OR_FPIC1_SPEC): Likewise.
11681         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
11682         (FPIE2_OR_FPIC2_SPEC): Likewise.
11683         (NO_FPIE_AND_FPIC_SPEC): Likewise.
11684         (FPIE_OR_FPIC_SPEC): Likewise.
11685         (LD_PIE_SPEC): Likewise.
11686         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
11687         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
11688         * config/darwin.h (PIE_SPEC): Renamed to ...
11689         (DARWIN_PIE_SPEC): This.
11690         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
11691         * config/darwin9.h (PIE_SPEC): Renamed to ...
11692         (DARWIN_PIE_SPEC): This.
11693         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
11694         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11695         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
11696         FPIE2_OR_FPIC2_SPEC.
11697         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
11698         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
11699         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
11700         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11701         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11702         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11703         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
11704         * config/m32r/m32r.h (ASM_SPEC): Likewise.
11705         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
11706         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11707         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
11708         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
11709         * config/sparc/linux.h (ASM_SPEC): Likewise.
11710         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11711         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
11712         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
11713         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11714         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11715         * config/sparc/sparc.h (ASM_SPEC): Likewise.
11716         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
11717         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
11718         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
11719         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
11720         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
11721         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
11722         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
11723         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
11724         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
11725         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
11726         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
11727         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
11728         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11729         * config/vax/linux.h (ASM_SPEC): Likewise.
11730         * doc/install.texi: Document --enable-default-pie.
11731         * doc/invoke.texi: Document -no-pie.
11732         * config.in: Regenerated.
11733         * configure: Likewise.
11735 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11737         PR rtl-optimization/66168
11738         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
11739         can_move_invariant_reg.
11741 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
11743         PR target/66148
11744         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
11745         REG_EQUAL note when doing insert.
11747         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
11748         instead of "%d" for 'o' operand.
11750 2015-05-27  Nathan Sidwell  <nathan@acm.org>
11752         PR c++/66270
11753         * tree.c (build_pointer_type_for_mode): Canonical type does not
11754         inherit can_alias_all.
11755         (build_reference_type_for_mode): Likewise.
11757 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11759         * expr.h (array_at_struct_end_p): Move to...
11760         (array_ref_element_size): Likewise.
11761         (component_ref_field_offset): Likewise.
11762         * tree.h (array_ref_element_size): ...here.
11763         (array_at_struct_end_p): Likewise.
11764         (component_ref_field_offset): Likewise.
11765         * expr.c (array_ref_element_size): Move to...
11766         (array_ref_low_bound): Likewise.
11767         (array_at_struct_end_p): Likewise.
11768         (array_ref_up_bound): Likewise.
11769         (component_ref_field_offset): Likewise.
11770         * tree.c (array_ref_element_size): ...here.
11771         (array_ref_low_bound): Likewise.
11772         (array_ref_up_bound): Likewise.
11773         (array_at_struct_end_p): Likewise.
11774         (component_ref_field_offset): Likewise.
11776 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
11777             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11779         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
11781 2015-05-27  Jason Merrill  <jason@redhat.com>
11783         PR bootstrap/66304
11784         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
11785         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
11786         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
11788 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
11790         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
11791         is true.
11793         * statistics.c (statistics_fini_pass): Print pass name.
11795 2015-05-27  Richard Biener  <rguenther@suse.de>
11797         PR tree-optimization/66272
11798         Revert parts of
11799         2014-08-15  Richard Biener  <rguenther@suse.de>
11801         PR tree-optimization/62031
11802         * tree-data-ref.c (dr_analyze_indices): Do not set
11803         DR_UNCONSTRAINED_BASE.
11804         (dr_may_alias_p): All indirect accesses have to go the
11805         formerly DR_UNCONSTRAINED_BASE path.
11806         * tree-data-ref.h (struct indices): Remove
11807         unconstrained_base member.
11808         (DR_UNCONSTRAINED_BASE): Remove.
11810 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
11812         * dwarf2out.c: Remove block_map.
11813         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
11814         (gen_lexical_block_die): Same.
11815         (dwarf2out_function_decl): Remove block_map use.
11816         (dwarf2out_c_finalize): Same.
11817         * tree-core.h (struct tree_block): Add die field.
11818         * tree.h (BLOCK_DIE): New.
11820 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11822         PR target/65358
11823         * expr.c (memory_load_overlap): New function.
11824         (emit_push_insn): When pushing partial args to the stack would
11825         clobber the register part load the overlapping part into a pseudo
11826         and put it into the hard reg after pushing.  Change return type
11827         to bool.  Add bool argument.
11828         * expr.h (emit_push_insn): Change return type to bool.
11829         Add bool argument.
11830         * calls.c (expand_call): Cancel sibcall optimization when encountering
11831         partial argument on targets with ARGS_GROW_DOWNWARD and
11832         !STACK_GROWS_DOWNWARD.
11833         (emit_library_call_value_1): Update callsite of emit_push_insn.
11834         (store_one_arg): Likewise.
11836 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
11838         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
11840 2015-05-27  Martin Liska  <mliska@suse.cz>
11842         * Makefile.in: Add additional dependencies related to memory report
11843         enhancement.
11844         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
11845         * bitmap.c (struct bitmap_descriptor_d): Remove.
11846         (struct loc): Likewise.
11847         (struct bitmap_desc_hasher): Likewise.
11848         (bitmap_desc_hasher::hash): Likewise.
11849         (bitmap_desc_hasher::equal): Likewise.
11850         (get_bitmap_descriptor): Likewise.
11851         (bitmap_register): User new memory descriptor API.
11852         (register_overhead): Likewise.
11853         (bitmap_find_bit): Register nsearches and search_iter statistics.
11854         (struct bitmap_output_info): Remove.
11855         (print_statistics): Likewise.
11856         (dump_bitmap_statistics): Use new memory descriptor.
11857         * bitmap.h (struct bitmap_usage): New class.
11858         * genmatch.c: Extend header file inclusion.
11859         * genpreds.c: Likewise.
11860         * ggc-common.c (struct ggc_usage): New class.
11861         (struct ggc_loc_desc_hasher): Remove.
11862         (ggc_loc_desc_hasher::hash): Likewise.
11863         (ggc_loc_desc_hasher::equal): Likewise.
11864         (struct ggc_ptr_hash_entry): Likewise.
11865         (struct ptr_hash_hasher): Likewise.
11866         (ptr_hash_hasher::hash): Likewise.
11867         (ptr_hash_hasher::equal): Likewise.
11868         (make_loc_descriptor): Likewise.
11869         (ggc_prune_ptr): Likewise.
11870         (dump_ggc_loc_statistics): Use new memory descriptor.
11871         (ggc_record_overhead): Likewise.
11872         (ggc_free_overhead): Likewise.
11873         (final_cmp_statistic): Remove.
11874         (cmp_statistic): Likewise.
11875         (ggc_add_statistics): Liekwise.
11876         (ggc_prune_overhead_list): Likewise.
11877         * hash-map-traits.h: New file.
11878         * hash-map.h (struct default_hashmap_traits): Move the traits to a
11879         separate header file.
11880         * hash-set.h: Pass memory statistics info to ctor.
11881         * hash-table.c (void dump_hash_table_loc_statistics): New function.
11882         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
11883         (hash_table::~hash_table): Register memory release operation.
11884         (hash_table::alloc_entries): Handle memory allocation operation.
11885         (hash_table::expand): Likewise.
11886         * inchash.c (iterative_hash_hashval_t): Move implementation to header
11887         file.
11888         (iterative_hash_host_wide_int): Likewise.
11889         * inchash.h (class hash): Likewise.
11890         * mem-stats-traits.h: New file.
11891         * mem-stats.h: New file.
11892         (mem_location): Add new class.
11893         (mem_usage): Likewise.
11894         (mem_alloc_description): Likewise.
11895         * sese.c: Add new header file inclusision.
11896         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11897         and hash_set.
11898         * tree-sra.c: Add new header file inclusision.
11899         * vec.c (struct vec_descriptor): Remove.
11900         (hash_descriptor): Likewise.
11901         (struct vec_usage): Likewise.
11902         (struct ptr_hash_entry): Likewise.
11903         (hash_ptr): Likewise.
11904         (eq_ptr): Likewise.
11905         (vec_prefix::register_overhead): Use new memory descriptor API.
11906         (vec_prefix::release_overhead): Likewise.
11907         (add_statistics): Remove.
11908         (dump_vec_loc_statistics): Use new memory descriptor API.
11909         * vec.h (struct vec_prefix): Likewise.
11910         (va_heap::reserve): Likewise.
11911         (va_heap::release): Likewise.
11912         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11914 2015-05-27  Richard Biener  <rguenther@suse.de>
11916         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11917         earlier and remove ??? comment.
11918         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11919         and got called from loop analysis bail out.  Always pass the SLP
11920         node to the vectorizable_* functions.
11921         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11922         the premature SLP check here.
11923         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11924         detected SLP stmts.
11925         (vect_detect_hybrid_slp_1): Likewise.
11927 2015-05-26  Jeff Law  <law@redhat.com>
11929         * combine.c (find_split_point): Verify that the shift count is a
11930         constant when choosing (plus (ashift ...)) as a split point.
11932         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11933         No functional changes.
11935 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
11937         * ipa-polymorphic-call.c
11938         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11939         case when call target is already known.
11941 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
11943         PR target/65979
11944         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11945         take into account the case that operands[1] and operands[2]
11946         are the same register.
11948 2015-05-26  Michael Matz  <matz@suse.de>
11950         PR middle-end/66251
11952         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
11953         stores.
11954         (vect_create_vectorized_demotion_stmts): Always set
11955         STMT_VINFO_VEC_STMT, also with SLP.
11956         (vectorizable_store): Handle strided group stores.
11958 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11960         PR target/66049
11961         * config/aarch64/aarch64.md
11962         (*adds_shift_imm_<mode>):  New pattern.
11963         (*subs_shift_imm_<mode>):  Likewise.
11964         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
11965         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11966         (*add_uxt<mode>_shift2): Likewise.
11967         (*add_uxtsi_shift2_uxtw): Likewise.
11968         (*sub_uxt<mode>_shift2): Likewise.
11969         (*sub_uxtsi_shift2_uxtw): Likewise.
11971 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
11973         * config/rs6000/constraints.md (Y, U): Use match_test.
11975 2015-05-26  Christian Bruel  <christian.bruel@st.com>
11977         PR target/52144
11978         * config/arm/arm.c (arm_option_check_internal)
11979         (arm_option_params_internal): Check opts->target_flags to set macros.
11980         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11981         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
11982         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11983         (builtin_define): Replaced with def_or_undef_macro.
11984         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11985         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
11986         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11987         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
11988         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
11989         (TARGET_ARM_FEATURE_LDREX_P)
11990         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
11991         * config/arm/arm-c.c (def_or_undef_macro): New function.
11992         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
11994 2015-05-26  Christian Bruel  <christian.bruel@st.com>
11996         * c-common.h (builtin_define_with_int_value)
11997         (builtin_define_type_sizeof): Declare.
11998         * c-cppbuiltin.c (builtin_define_with_int_value)
11999         (builtin_define_type_sizeof): Externalize.
12000         (builtin_define_std): Cleanup declaration.
12001         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
12002         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
12003         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
12004         (builtin_define, builtin_assert): New macros.
12006 2015-05-26  Richard Biener  <rguenther@suse.de>
12008         PR tree-optimization/66142
12009         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
12010         MEM_REFs for the same base address.
12012 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12014         PR ipa/66181
12015         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
12017 2015-05-26  Jason Merrill  <jason@redhat.com>
12019         * configure.ac: Set CXXFLAGS for ISL test.
12020         * configure: Regenerate.
12022         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
12023         strstr and basename.
12024         * configure: Regenerate.
12026 2015-05-26  Richard Biener  <rguenther@suse.de>
12028         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
12029         X % C -> X & (C - 1) for C being a power-of two to ...
12030         * match.pd: ... patterns.
12032 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
12034         * match.pd (swapped_tcc_comparison): New operator list.
12035         (-A CMP -B): New simplification.
12036         * fold-const.c (fold_comparison): Remove corresponding code.
12038 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
12040         * caller-save.c (init_caller_save): Base temporary register numbers
12041         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
12042         * cfgloopanal.c (init_set_costs): Likewise.
12043         * dojump.c (prefer_and_bit_test): Likewise.
12044         * expr.c (init_expr_target): Likewise.
12045         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12046         * lower-subreg.c (init_lower_subreg): Likewise.
12047         * postreload.c (reload_cse_regs_1): Likewise.
12049 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
12051         * gensupport.h (compute_test_codes): Declare.
12052         * gensupport.c (compute_predicate_codes): Rename to...
12053         (compute_test_codes): ...this.  Generalize error message.
12054         (process_define_predicate): Update accordingly.
12055         * genpreds.c (compute_maybe_allows): Delete.
12056         (add_constraint): Use compute_test_codes to determine whether
12057         something can accept a SUBREG, REG or MEM.
12059 2015-05-26  Torvald Riegel  <triegel@redhat.com>
12061         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
12062         'memory model' to align with C++11; fix description of memory orders;
12063         fix a few typos.
12065 2015-05-26  Richard Biener  <rguenther@suse.de>
12067         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
12068         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
12069         detect whether we apply SLP.  Remove call to
12070         vect_update_slp_costs_according_to_vf.
12071         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
12072         vect_update_slp_costs_according_to_vf from here.  Dispatch
12073         to vect_slp_analyze_operations to analyze SLP stmts.
12074         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
12075         unused bb_vec_info parameter, adjust assert.
12076         (vect_slp_analyze_operations): Pass in the slp instance tree
12077         instead of bb_vec_info.
12078         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
12079         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
12081 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
12083         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
12084         Q_REGS.  Expand comment.
12085         (REG_CLASS_NAMES): Ditto.
12086         (REG_CLASS_CONTENTS): Ditto.
12088 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
12090         PR target/66274
12091         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
12092         when LEGACY_INT_REGNO_P is processed.
12094 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
12096         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
12098 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12100         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
12101         register if not marked dead/unused, before return.
12103 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
12105         PR lto/66180
12106         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
12107         is set; check for assembler name at LTO time.
12108         (type_in_anonymous_namespace): Remove hacks, check that all
12109         anonymous types are called "<anon>"
12110         (odr_type_p): Simplify; add check for "<anon>"
12111         (odr_subtypes_equivalent): Add odr_type_p check.
12112         * tree.c (need_assembler_name_p): Even anonymous namespace needs
12113         assembler name.
12115 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
12117         * ipa-utils.h (method_class_type): Remove.
12118         * cgraphunit.c (walk_polymorphic_call_targets): Use
12119         TYPE_METHOD_BASETYPE.
12120         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
12121         on main variants only.
12122         (method_class_type): Remove.
12123         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
12124         (build_type_inheritance_graph): Likewise.
12125         * ipa-icf.c (sem_function::equals_wpa): Likewise.
12126         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
12127         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
12129 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
12131         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
12132         is_typedef_decl, typedef_variant_p): Constify.
12133         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
12134         is_typedef_decl, typedef_variant_p): Constify.
12136 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12138         * defaults.h (gen_tablejump): New function.
12139         (HAVE_tablejump): Add default value.
12140         * expr.c: Adjust.
12141         * stmt.c: Likewise.
12143 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12145         * defaults.h (gen_store_multiple): New function.
12146         (HAVE_store_multiple): Add default value.
12147         * expr.c (move_block_from_reg): Adjust.
12149 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12151         * defaults.h (gen_load_multiple): New function.
12152         (HAVE_load_multiple): Add default value.
12153         * expr.c (move_block_to_reg): Adjust.
12155 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12157         * defaults.h (gen_mem_signal_fence): New function.
12158         (HAVE_mem_signal_fence): Add default value.
12159         * optabs.c: Adjust.
12161 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12163         * defaults.h (gen_memory_barrier): New function.
12164         (HAVE_memory_barrier): Add default value.
12165         * optabs.c: Adjust.
12167 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12169         * defaults.h (gen_mem_thread_fence): New function.
12170         (HAVE_mem_thread_fence): Add default definition.
12171         * optabs.c: Adjust.
12173 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12175         * combine.c (find_split_point): Check the value of HAVE_lo_sum
12176         instead of if it is defined.
12177         (combine_simplify_rtx): Likewise.
12178         * lra-constraints.c (process_address_1): Likewise.
12179         * config/darwin.c: Adjust.
12180         * genconfig.c (main): Always define HAVE_lo_sum.
12182 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12184         * genmatch.c (parser::parse_operation): Reject expanding
12185         operator-list inside 'for'.
12187 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12189         * genmatch.c (parser::parse_for): Reject iterator if used as
12190         operator-list.
12192 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12194         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
12195         after end of id-list.
12197 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
12199         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
12200         we do not try to compute canonical type for type that does not need
12201         alias set.
12202         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
12203         FUNCITON_TYPE.
12204         * tree.h (type_with_alias_set_p): New.
12206 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
12208         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
12209         function attributes.
12210         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
12212 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
12214         * Makefile.in (check_gcc_parallelize): Delete.
12215         (lang_checks_parallelized): Update comment.
12217 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
12219         PR rtl-optimization/66237
12220         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
12221         location of an "as_a" cast.
12223 2015-05-22  Jeff Law  <law@redhat.com>
12225         * config/pa/pa.md (non-canonical shift-add insns): Remove.
12226         (peepholes with non-canonical RTL sources): Remove.
12227         (peepholes for indexed stores of FP regs in integer modes): Match and
12228         generate canonical RTL.
12230 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
12232         PR tree-optimization/63387
12233         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
12234         ((x ord x) & (y ord y) -> (x ord y),
12235         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
12236         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
12237         vectors like scalars.
12239 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
12241         * convert.c (convert_to_integer, convert_to_vector): Include the
12242         types in the error message.
12244 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
12246         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
12247         simplifications.
12249 2015-05-22  Jeff Law  <law@redhat.com>
12251         * config/pa/pa.md (integer_indexed_store splitters): Use
12252         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
12253         insns -- adjusting the constant 2nd operand accordingly.
12255         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
12256         (plus (ashift X log2) Y) if it is a split point.
12258         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
12259         out of hppa_legitimize_address to handle both forms of a multiply
12260         by 2, 4 or 8.
12261         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
12262         Always generate the ASHIFT variant as the result is not directly
12263         used in a MEM.  Update comments and refactor slightly to improve
12264         readability.
12266 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12268         PR target/65491
12269         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
12270         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
12271         (aarch64_composite_type_p): Return false if given type and mode are
12272         for a short vector.
12274 2015-05-22  Richard Biener  <rguenther@suse.de>
12276         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
12277         member.
12278         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
12279         patterns when determining whether SLP is pure.
12280         (vect_is_slp_reduction): Remove check for pattern stmts.
12281         (vect_is_simple_reduction_1): Remove dead code.
12282         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
12283         (vect_get_and_check_slp_defs): Pass in the stmt number.
12284         Allow the first def in a reduction to be not a pattern stmt when
12285         the rest of the stmts def are patterns.
12286         (vect_build_slp_tree_1): Allow tcc_expression codes like
12287         SAD_EXPR and DOT_PROD_EXPR.
12288         (vect_build_slp_tree): Adjust.
12289         (vect_analyze_slp): Refactor and move BB vect error message ...
12290         (vect_slp_analyze_bb_1): ... here.
12292 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
12294         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
12295         for CSWTCH temporary.
12297 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12299         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
12300         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
12301         unknown unspecs.
12303 2015-05-22  Richard Biener  <rguenther@suse.de>
12305         PR tree-optimization/66251
12306         * tree-vect-stmts.c (vectorizable_conversion): Properly
12307         set STMT_VINFO_VEC_STMT even for the SLP case.
12309 2015-05-22  Marek Polacek  <polacek@redhat.com>
12311         * doc/extend.texi: Use @pxref instead of @xref.
12313 2015-05-22  hiraditya  <hiraditya@msn.com>
12315         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
12316         redundant if.
12318 2015-05-22  Richard Biener  <rguenther@suse.de>
12320         PR tree-optimization/65701
12321         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12322         Move peeling cost models into one place.  Peel for alignment
12323         for single loads only if an aligned load is cheaper than
12324         an unaligned load.
12326 2015-05-22  Marek Polacek  <polacek@redhat.com>
12328         PR c/47043
12329         * doc/extend.texi (Enumerator Attributes): New section.
12330         Document syntax of enumerator attributes.
12332 2015-05-22  Richard Biener  <rguenther@suse.de>
12334         * tree-vect-loop.c (get_reduction_op): New function.
12335         (vect_model_reduction_cost): Use it, add reduc_index parameter.
12336         Make ready for BB reductions.
12337         (vect_create_epilog_for_reduction): Use get_reduction_op.
12338         (vectorizable_reduction): Init reduc_index to a valid value.
12339         Adjust vect_model_reduction_cost call.
12340         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
12341         operand for reduction defaults.  Add SAD_EXPR support.
12342         Assert we have a neutral op for SLP reductions.
12343         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
12344         walking pattern stmt ops only recurse to SSA names.
12346 2015-05-22  Richard Biener  <rguenther@suse.de>
12348         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
12349         assert with guard, remove check on detected reduction.
12350         (vect_recog_sad_pattern): Likewise.
12351         (vect_recog_widen_sum_pattern): Likewise.
12353 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12355         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
12356         __always_inline__ attribute.
12357         (vaesdq_u8): Likewise.
12358         (vaesmcq_u8): Likewise.
12359         (vaesimcq_u8): Likewise.
12360         (vsha1cq_u32): Likewise.
12361         (vsha1mq_u32): Likewise.
12362         (vsha1pq_u32): Likewise.
12363         (vsha1h_u32): Likewise.
12364         (vsha1su0q_u32): Likewise.
12365         (vsha1su1q_u32): Likewise.
12366         (vsha256hq_u32): Likewise.
12367         (vsha256h2q_u32): Likewise.
12368         (vsha256su0q_u32): Likewise.
12369         (vsha256su1q_u32): Likewise.
12370         (vmull_p64): Likewise.
12371         (vmull_high_p64): Likewise.
12373 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12375         * final.c (final_scan_insn): Don't check HAVE_peephole with the
12376         preprocessor.
12377         * output.h: Likewise.
12378         * genconfig.c (main): Alwways define HAVE_peephole.
12379         * genpeep.c: Don't emit checks of HAVE_peephole.
12381 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12383         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
12384         check HAVE_conditional_move with the preprocessor.
12386 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12388         * genconfig.c (main): Always define HAVE_conditional_move.
12389         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
12390         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
12391         is defined.
12393 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12395         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
12396         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
12397         and FRAME_POINTER_REGNUM with the preprocessor.
12399 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12401         * defaults.h: Add default for STACK_PUSH_CODE.
12402         * expr.c: Don't redefine STACK_PUSH_CODE.
12403         * recog.c: Likewise.
12405 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12407         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
12408         sched-deps.c: Use if instead of preprocessor checks with
12409         STACK_GROWS_DOWNWARD.
12411 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12413         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
12414         is defined.
12415         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
12416         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
12417         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
12418         * doc/tm.texi: Regenerate.
12420 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12422         PR target/66232
12423         * config/i386/constraints.md (Bg): New constraint for GOT memory
12424         operand.
12425         * config/i386/i386.md (*call_got_x32): New pattern.
12426         (*call_value_got_x32): Likewise.
12427         * config/i386/predicates.md (GOT_memory_operand): New predicate.
12429 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
12431         PR tree-optimization/66233
12432         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
12433         Simplify.
12435 2015-05-21  Jeff Law  <law@redhat.com>
12437         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
12438         than MULT for shadd sequences.
12440 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
12442         * alias.c (alias_stats): New static var.
12443         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
12444         (dump_alias_stats_in_alias_c): New function.
12445         * alias.h (dump_alias_stats_in_alias_c): Declare.
12446         * tree-ssa-alias.c (dump_alias_stats): Call it.
12448 2015-05-08  Michael Matz  <matz@suse.de>
12450         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
12451         to strided_p.
12452         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
12453         (STMT_VINFO_STRIDED_P): ... this.
12454         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
12455         (vect_verify_datarefs_alignment): Likewise.
12456         (vect_enhance_data_refs_alignment): Likewise.
12457         (vect_analyze_data_ref_access): Likewise.
12458         (vect_analyze_data_refs): Accept strided stores.
12459         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
12460         (vect_model_load_cost): Adjust for macro rename.
12461         (vectorizable_mask_load_store): Likewise.
12462         (vectorizable_load): Likewise.
12463         (vectorizable_store): Open code strided stores.
12465 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12467         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
12468         Document sqrt_insn.
12470 2015-05-21  Richard Biener  <rguenther@suse.de>
12472         PR c++/66211
12473         * match.pd: Guard pattern optimzing (int)(float)int
12474         conversions to apply only on GIMPLE.
12476 2015-05-21  Jeff Law  <law@redhat.com>
12478         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
12479         multiply-accumulate/shift-add insn generation.
12481 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
12483         PR target/54236
12484         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
12485         operands[1] are the same.
12487 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
12489         PR middle-end/66221
12490         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
12491         build_distinct_type_copy to copy bounds.
12493 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
12495         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
12496         Change to unsigned int.
12498 2015-05-20  Jeff Law  <law@redhat.com>
12500         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
12501         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
12502         (pa_shadd_constant_p): Allow constants for shadd insns rather
12503         than valid scaling constants for memory addresses.
12504         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
12505         * config/pa/predicates.md (mem_shadd_operand): New predicate.
12506         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
12507         (shift-add insns using ASHIFT): New patterns.
12509 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
12511         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
12512         feasible.
12513         (fix_up_fall_thru_edges): Likewise.
12514         (fix_crossing_conditional_branches): Likewise. Promote jump targets
12515         from to rtx_insn to rtx_code_label where feasible.
12516         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
12517         gen_move_insn (returned type changed to rtx_insn).
12518         * builtins.c (expand_errno_check): Fix arguments of
12519         do_compare_rtx_and_jump (now expects rtx_code_label).
12520         (expand_builtin_acc_on_device): Likewise.
12521         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
12522         invert_jump (now exprects rtx_jump_insn).
12523         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
12524         (construct_init_block): Use rtx_code_label.
12525         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
12526         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
12527         calling redirect_jump.
12528         (patch_jump_insn): Likewise.
12529         (redirect_branch_edge): Likewise.
12530         (force_nonfallthru_and_redirect): Likewise.
12531         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
12532         when suitable.
12533         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
12534         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
12535         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
12536         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
12537         to store the value retured by gen_label_rtx.
12538         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
12539         rtx_jump_insn.
12540         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
12541         (split_branches): Fix calls of redirect_jump.
12542         * dojump.c (jumpifnot): Promote argument type from rtx to
12543         rtx_code_label.
12544         (jumpifnot_1): Likewise.
12545         (jumpif): Likewise.
12546         (jumpif_1): Likewise.
12547         (do_jump_1): Likewise.
12548         (do_jump): Likewise. Use rtx_code_label when feasible.
12549         (do_jump_by_parts_greater_rtx): Likewise.
12550         (do_jump_by_parts_zero_rtx): Likewise.
12551         (do_jump_by_parts_equality_rtx): Likewise.
12552         (do_compare_rtx_and_jump): Likewise.
12553         * dojump.h: Update function prototypes.
12554         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
12555         returns rtx_insn).
12556         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
12557         rtx_jump_insn.
12558         (emit_label_before): Likewise.
12559         (emit_jump_insn_after_noloc): Likewise.
12560         (emit_jump_insn_after_setloc): Likewise.
12561         (emit_jump_insn_after): Likewise
12562         (emit_jump_insn_before_setloc): Likewise.
12563         (emit_jump_insn_before): Likewise.
12564         (emit_label_before): Promote return type to rtx_code_label.
12565         (emit_label): Likewise.
12566         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
12567         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
12568         gen_move_insn.
12569         (emit_stack_restore): Likewise.
12570         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
12571         (do_cmp_and_jump): Likewise.
12572         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
12573         from rtx to rtx_code_label.
12574         (gen_move_insn_uncast): New function.
12575         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12576         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12577         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12578         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12579         invert_jump_1 and redirect_jump_1.
12580         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12581         do_compare_rtx_and_jump.
12582         (expand_addsub_overflow): Likewise.
12583         (expand_neg_overflow): Likewise.
12584         (expand_mul_overflow): Likewise.
12585         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12586         return value of gen_move_insn.
12587         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12588         * loop-doloop.c (add_test): Use rtx_code_label.
12589         (doloop_modify): Likewise.
12590         (doloop_optimize): Likewise.
12591         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12592         * lra-constraints.c (emit_spill_move): Remove cast of value returned
12593         by gen_move_insn.
12594         (inherit_reload_reg): Add cast when calling dump_insn_slim.
12595         (split_reg): Likewise.
12596         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12597         gen_move_insn.
12598         * optabs.c (expand_binop_directly): Remove casts of values returned by
12599         maybe_gen_insn.
12600         (expand_unop_direct): Likewise.
12601         (expand_abs): Likewise.
12602         (maybe_emit_unop_insn): Likewise.
12603         (maybe_gen_insn): Promote return type to rtx_insn.
12604         * optabs.h: Update prototype of maybe_gen_insn.
12605         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12606         redundant cast.
12607         * recog.c (struct peep2_insn_data): Promote type of insn field to
12608         rtx_insn.
12609         (peep2_reinit_state): Use NULL instead of NULL_RTX.
12610         (peep2_attempt): Remove casts of insn in peep2_insn_data.
12611         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12612         * recog.h (struct insn_gen_fn): Promote return types of function
12613         pointers and operator ().from rtx to rtx_insn.
12614         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12615         (fill_eager_delay_slots): Likewise.
12616         (relax_delay_slots): Likewise.
12617         (make_return_insns): Likewise.
12618         (dbr_schedule): Likewise.
12619         (optimize_skips): Likewise.
12620         (reorg_redirect_jump): Likewise.
12621         (fill_slots_from_thread): Likewise.
12622         * reorg.h: Update prototypes.
12623         * resource.c (find_dead_or_set_registers): Use dyn_cast to
12624         rtx_jump_insn instead of check.  Use it's jump_target method.
12625         * rtl.h (rtx_jump_insn::jump_label): Define new method.
12626         (rtx_jump_insn::jump_target): Define new method.
12627         (rtx_jump_insn::set_jump_target): Define new method.
12628         * rtlanal.c (tablejump_p): Promote type of one local variable.
12629         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12630         (sched_analyze_insn): Likewise.
12631         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12632         (print_insn): Likewise.
12633         * stmt.c (label_rtx): Promote return type to rtx_insn.
12634         (force_label_rtx): Likewise.
12635         (jump_target_rtx): Define new function.
12636         (expand_label): Use it, get rid of one cast.
12637         (expand_naked_return): Promote rtx to rtx_code_label.
12638         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12639         (expand_case): Use rtx_code_label instread of rtx where feasible.
12640         (expand_sjlj_dispatch_table): Likewise.
12641         (emit_case_nodes): Likewise.
12642         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
12643         * store-motion.c (insert_store): Make use of new return type of
12644         gen_move_insn and remove a cast.
12645         (replace_store_insn): Likewise.
12647 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
12649         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
12650         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
12652 2015-05-20  Jeff Law  <law@redhat.com>
12654         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
12655         dispose of the jump thread path when the jump threading
12656         opportunity is cancelled.
12658 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12660         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
12661         when printing the caret character.
12663 2015-05-20  Marek Polacek  <polacek@redhat.com>
12665         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
12667 2015-05-20  Marek Polacek  <polacek@redhat.com>
12669         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
12670         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
12671         * gimple-fold.c (canonicalize_bool): Likewise.
12672         (same_bool_result_p): Likewise.
12673         * tree-if-conv.c (parse_predicate): Likewise.
12675 2015-05-20  Marek Polacek  <polacek@redhat.com>
12677         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
12678         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
12680 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12682         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
12683         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
12684         values.
12686 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
12688         * config/mips/mips.h (micromips_globals): Declare.
12690 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
12692         * timevar.def (TV_INITIALIZE_RTL): New.
12693         * toplev.c (initialize_rtl): Use an auto_timevar to account this
12694         function's time to TV_INITIALIZE_RTL.
12696 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
12698         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
12699         gimple_build_nop calls.
12700         (chkp_find_bounds_for_elem): Likewise.
12701         (chkp_get_zero_bounds): Likewise.
12702         (chkp_get_none_bounds): Likewise.
12703         (chkp_get_bounds_by_definition): Likewise.
12704         (chkp_generate_extern_var_bounds): Likewise.
12705         (chkp_get_bounds_for_decl_addr): Likewise.
12706         (chkp_get_bounds_for_string_cst): Likewise.
12708 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
12710         PR tree-optimization/65447
12711         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
12712         (dump_use, dump_uses): Support to dump sub use.
12713         (record_use): New parameters to support sub use.  Remove call to
12714         dump_use.
12715         (record_sub_use, record_group_use): New functions.
12716         (compute_max_addr_offset, split_all_small_groups): New functions.
12717         (group_address_uses, rewrite_use_address): New functions.
12718         (strip_offset): New declaration.
12719         (find_interesting_uses_address): Call record_group_use.
12720         (add_candidate): New assertion.
12721         (infinite_cost_p): Move definition forward.
12722         (add_costs): Check INFTY cost and return immediately.
12723         (get_computation_cost_at): Clear setup cost and dependent bitmap
12724         for sub uses.
12725         (determine_use_iv_cost_address): Compute cost for sub uses.
12726         (rewrite_use_address_1): Rename from old rewrite_use_address.
12727         (free_loop_data): Free sub uses.
12728         (tree_ssa_iv_optimize_loop): Call group_address_uses.
12730 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
12731             Jim Wilson  <jim.wilson@linaro.org>
12733         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
12734         new  fields loadv and storev.
12735         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
12736         Initialize loadv and storev.
12737         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
12738         (cortexa53_extra_costs): Likewise.
12739         (cortexa57_extra_costs): Likewise.
12740         (xgene1_extra_costs): Likewise.
12741         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
12742         rtx_costs.
12744 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
12746         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
12747          storev.
12748         (cortexa8_extra_costs): Likewise.
12749         (cortexa5_extra_costs): Likewise.
12750         (cortexa7_extra_costs): Likewise.
12751         (cortexa12_extra_costs): Likewise.
12752         (cortexa15_extra_costs): Likewise.
12753         (v7m_extra_costs): Likewise.
12755 2015-05-20  Jeff Law  <law@redhat.com>
12757         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
12758         instead of open-coded version.  Also delete the jump thread created
12759         within this function.
12761 2015-05-20  Alan Modra  <amodra@gmail.com>
12763         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
12764         stack adjusting insn.  Formatting.
12765         (rs6000_emit_prologue): Track stack adjusting insn, and use of
12766         r12.  If possible, emit first -fsplit-stack arg pointer insn
12767         before stack adjust.  Don't use r12 to save cr if split-stack.
12769 2015-05-20  Alan Modra  <amodra@gmail.com>
12771         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
12772         Define.
12773         (rs6000_supports_split_stack): New function.
12774         * gcc/config/rs6000/rs6000.c (machine_function): Add
12775         split_stack_arg_pointer.
12776         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
12777         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
12778         rather than virtual_incoming_args_rtx.
12779         (rs6000_va_start): Likewise.
12780         (split_stack_arg_pointer_used_p): New function.
12781         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
12782         (morestack_ref): New var.
12783         (gen_add3_const, rs6000_expand_split_stack_prologue,
12784         rs6000_internal_arg_pointer, rs6000_live_on_entry,
12785         rs6000_split_stack_space_check): New functions.
12786         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
12787         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
12788         (UNSPECV_SPLIT_STACK_RETURN): Define.
12789         (split_stack_prologue, load_split_stack_limit,
12790         load_split_stack_limit_di, load_split_stack_limit_si,
12791         split_stack_return, split_stack_space_check): New expands and insns.
12792         * gcc/config/rs6000/rs6000-protos.h
12793         (rs6000_expand_split_stack_prologue): Declare.
12794         (rs6000_split_stack_space_check): Declare.
12796 2015-05-20  Alan Modra  <amodra@gmail.com>
12798         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
12799         (direct_return): Test vrsave_size rather than vrsave_mask.
12800         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
12801         (rs6000_emit_epilogue): Likewise.
12803 2015-05-20  Alan Modra  <amodra@gmail.com>
12805         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
12806         when not saving registers.
12807         (debug_stack_info): Adjust to omit printing unused offsets,
12808         as before.
12809         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
12810         expression.
12812 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12814         PR c++/65835
12815         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
12816         value_type to const char *.
12818 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
12820         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
12821         to build a biarch toolchain again.
12823 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
12825         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
12826         or implicit declarations.
12827         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
12828         into it.
12829         (get_odr_type): Check type has linkage before adding bases.
12830         (register_odr_type): Check that type has linkage before adding it.
12831         (type_known_to_have_no_deriavations_p): Rename to ..
12832         (type_known_to_have_no_derivations_p): This one.
12833         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
12834         (type_known_to_have_no_derivations_p): This one.
12835         * ipa-polymorphic-call.c
12836         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
12837         type has linkage.
12839 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12841         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
12842         (layout_type): Use RECORD_OR_UNION_TYPE_P.
12844 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12846         * config/s390/s390.c (s390_vector_bool_type_p): New function.
12847         (s390_invalid_binary_op): New function.
12848         (TARGET_INVALID_BINARY_OP): Define macro.
12850 2015-05-19  David Sherwood  <david.sherwood@arm.com>
12852         * loop-invariant.c (create_new_invariant): Don't calculate address cost
12853         if mode is not a scalar integer.
12854         (get_inv_cost): Increase computational cost for unused invariants.
12856 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12858         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
12859         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
12860         * config/s390/s390-builtin-types.def: New file.
12861         * config/s390/s390-builtins.def: New file.
12862         * config/s390/s390-builtins.h: New file.
12863         * config/s390/s390-c.c: New file.
12864         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
12865         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
12866         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
12867         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
12868         prototypes.
12869         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
12870         Include.
12871         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
12872         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
12873         variable definitions.
12874         (s390_const_operand_ok): New function.
12875         (s390_expand_builtin): Rewrite.
12876         (s390_init_builtins): New function.
12877         (s390_handle_vectorbool_attribute): New function.
12878         (s390_attribute_table): Add s390_vector_bool attribute.
12879         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
12880         (s390_branch_condition_mask): Generate masks for new modes.
12881         (s390_expand_vec_compare_cc): New function.
12882         (s390_mangle_type): Add mangling for vector bool types.
12883         (enum s390_builtin): Remove.
12884         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
12885         efpc builtins.
12886         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
12887         s390_cpu_cpp_builtins.
12888         (REGISTER_TARGET_PRAGMAS): New macro.
12889         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
12890         (insn_cmp mode attribute): Add new CC modes.
12891         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12892         (lcbb): New pattern definition.
12893         * config/s390/s390intrin.h: Include vecintrin.h.
12894         * config/s390/t-s390: New file.
12895         * config/s390/vecintrin.h: New file.
12896         * config/s390/vector.md: Include vx-builtins.md.
12897         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12898         support.
12900 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12902         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12903         CCVFHE.
12904         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12905         (s390_select_ccmode): Likewise.
12906         (s390_canonicalize_comparison): Swap operands if necessary.
12907         (s390_expand_vec_compare_scalar): Expand DFmode compare using
12908         single element vector instructions.
12909         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12910         (s390_branch_condition_mask): Generate CC masks for the new modes.
12911         * config/s390/s390.md (v0, vf, vd): New mode attributes.
12912         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12913         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12914         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12915         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12916         (*extend<DSF:mode><BFP:mode>2): New insn definition.
12917         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12918         (extend<DSF:mode><BFP:mode>2): Turn into expander.
12919         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12920         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12921         (sqrt<mode>2): Add vector instruction.
12923 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12925         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12926         constraints.
12927         * config/s390/predicates.md (const0_operand, constm1_operand)
12928         (constable_operand): Accept vector operands.
12929         * config/s390/s390-modes.def: Add supported vector modes.
12930         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12931         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12932         (s390_bytemask_vector_p, s390_expand_vec_strlen)
12933         (s390_expand_vec_compare, s390_expand_vcond)
12934         (s390_expand_vec_init): Add prototypes.
12935         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12936         (s390_vector_mode_supported_p): New function.
12937         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12938         (s390_contiguous_bitmask_vector_p): New function.
12939         (s390_bytemask_vector_p): New function.
12940         (s390_split_ok_p): Vector regs don't work either.
12941         (regclass_map): Add VEC_REGS.
12942         (s390_legitimate_constant_p): Handle vector constants.
12943         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12944         (legitimate_reload_vector_constant_p): New function.
12945         (s390_preferred_reload_class): Handle CONST_VECTOR.
12946         (s390_reload_symref_address):  Likewise.
12947         (s390_secondary_reload): Vector memory instructions only support
12948         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
12949         (s390_emit_ccraw_jump): New function.
12950         (s390_expand_vec_strlen): New function.
12951         (s390_expand_vec_compare): New function.
12952         (s390_expand_vcond): New function.
12953         (s390_expand_vec_init): New function.
12954         (s390_dwarf_frame_reg_mode): New function.
12955         (print_operand): Handle addresses with 'O' and 'R' constraints.
12956         (NR_C_MODES, constant_modes): Add vector modes.
12957         (s390_output_pool_entry): Handle vector constants.
12958         (s390_hard_regno_mode_ok): Handle vector registers.
12959         (s390_class_max_nregs): Likewise.
12960         (s390_cannot_change_mode_class): New function.
12961         (s390_invalid_arg_for_unprototyped_fn): New function.
12962         (s390_function_arg_vector): New function.
12963         (s390_function_arg_float): Remove size variable.
12964         (s390_pass_by_reference): Handle vector arguments.
12965         (s390_function_arg_advance): Likewise.
12966         (s390_function_arg): Likewise.
12967         (s390_return_in_memory): Vector values are returned in a VR if
12968         possible.
12969         (s390_function_and_libcall_value): Handle vector arguments.
12970         (s390_gimplify_va_arg): Likewise.
12971         (s390_call_saved_register_used): Consider the arguments named.
12972         (s390_conditional_register_usage): Disable v16-v31 for non-vec
12973         targets.
12974         (s390_preferred_simd_mode): New function.
12975         (s390_support_vector_misalignment): New function.
12976         (s390_vector_alignment): New function.
12977         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
12978         (TARGET_VECTOR_MODE_SUPPORTED_P)
12979         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
12980         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12981         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
12982         (TARGET_VECTOR_ALIGNMENT): Define target macro.
12983         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
12984         (FIRST_PSEUDO_REGISTER): Increase value.
12985         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
12986         (VECTOR_REG_P): Define macros.
12987         (FIXED_REGISTERS, CALL_USED_REGISTERS)
12988         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
12989         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
12990         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
12991         Add vector registers.
12992         (CANNOT_CHANGE_MODE_CLASS): Call C function.
12993         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
12994         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
12995         memory.
12996         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
12997         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
12998         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
12999         (VR*_REGNUM): New constants.
13000         (ALL): New mode iterator.
13001         (INTALL): Remove mode iterator.
13002         Include vector.md.
13003         (movti): Implement TImode moves for VRs.
13004         Disable TImode splitter for VR targets.
13005         Implement splitting TImode GPR<->VR moves.
13006         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
13007         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
13008         reload<mode>_la_in, reload<mode>_la_out.
13009         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
13010         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
13011         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
13012         (mov<mode> SF SD): Prefer lder, lde for loading.
13013         Add lrl and strl instructions.
13014         Add vector instructions.
13015         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
13016         Call s390_expand_vec_strlen on z13.
13017         (*cc_to_int): Change predicate to nonimmediate_operand.
13018         (addti3): Rename to *addti3.  New expander.
13019         (subti3): Rename to *subti3.  New expander.
13020         * config/s390/vector.md: New file.
13022 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13024         * common/config/s390/s390-common.c (processor_flags_table): Add
13025         z13.
13026         * config.gcc: Add z13.
13027         * config/s390/s390-opts.h (enum processor_type): Add
13028         PROCESSOR_2964_Z13.
13029         * config/s390/s390.c (s390_adjust_priority): Check for
13030         PROCESSOR_2964_Z13.
13031         (s390_reorg): Likewise.
13032         (s390_sched_reorder): Likewise.
13033         (s390_sched_variable_issue): Likewise.
13034         (s390_loop_unroll_adjust): Likewise.
13035         (s390_option_override): Likewise. Default to -mvx when available.
13036         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
13037         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
13038         (TARGET_VX_ABI): Define macros.
13039         macros.
13040         (TARGET_DEFAULT): Add MASK_OPT_VX.
13041         * config/s390/s390.md ("cpu" attribute): Add z13.
13042         ("cpu_facility" attribute): Add vec.
13043         * config/s390/s390.opt (processor_type): Add z13.
13044         (mvx): New options.
13045         * doc/invoke.texi: Add z13 option for -march.
13047 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13049         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
13050         mode check to make sure that only scalar integer values are
13051         accepted.
13053 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
13055         * tree.c (verify_type_variant): Fix #undef.
13056         (gimple_canonical_types_compatible_p): Move here from lto.c
13057         (verify_type): Verify TYPE_CANONICAL compatibility.
13058         * tree.h (gimple_canonical_types_compatible_p): Declare.
13060 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
13062         PR middle-end/66199
13063         * tree.h (OMP_TEAMS_COMBINED): Define.
13064         * gimplify.c (enum gimplify_omp_var_data): Add
13065         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
13066         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
13067         (omp_notice_variable): Accept both ORT_TEAMS
13068         and ORT_COMBINED_TEAMS.  Don't recurse if
13069         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
13070         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
13071         GOVD_FIRSTPRIVATE.
13072         (omp_no_lastprivate): New function.
13073         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
13074         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
13075         notice_outer and set appropriate bits, otherwise make
13076         sure default(none) combined constructs won't complain.
13077         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
13078         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
13079         omp_no_lastprivate either remove the clause or turn it
13080         into OMP_CLAUSE_PRIVATE.
13081         (gimplify_omp_for): Fix up handling of implicit
13082         lastprivate or linear iterators.
13083         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
13084         ORT_COMBINED_TEAMS.
13085         * omp-low.c (lower_omp_for_lastprivate): For combined
13086         for simd use fd.loop.n2 from the for rather than simd.
13088 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13090         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
13091         instead of gen_rtx_raw_REG.
13092         (cris_expand_epilogue): Likewise.
13093         * config/microblaze/microblaze.c (microblaze_classify_address):
13094         Likewise.
13095         * config/sparc/sparc.md: Likewise.
13097 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
13099         * config/alpha/alpha.c (alpha_legitimize_reload_address)
13100         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
13101         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
13102         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
13103         Use CASE_CONST_SCALAR_INT.
13104         (print_operand) <case 'M'>: Use mode_width_operand to check the
13105         value of the constant.
13106         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
13107         * config/alpha/predicates.md (input_operand): Use general_operand
13108         instead of match_code as operand check.
13109         (symbolic_operand): Use match_code with subexpression digits.
13110         * config/alpha/constraints.md (Q): Ditto.
13112 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13114         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
13116 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13118         * config/s390/s390.c (s390_secondary_reload): Fix check for
13119         load/store relative.
13121 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13123         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
13124         alternative_mask to uint64_t.
13126 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
13128         PR tree-optimization/66187
13129         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
13130         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
13131         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
13133 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
13135         * diagnostic.c (diagnostic_report_current_module): Strengthen
13136         local "new_map" from const line_map * to
13137         const line_map_ordinary *.
13138         * genmatch.c (error_cb): Likewise for local "map".
13139         (output_line_directive): Likewise for local "map".
13140         * input.c (expand_location_1): Likewise for local "map".
13141         Pass NULL rather than &map to
13142         linemap_unwind_to_first_non_reserved_loc, since the value is never
13143         read from there, and the value written back not read from here.
13144         (is_location_from_builtin_token): Strengthen local "map" from
13145         const line_map * to const line_map_ordinary *.
13146         (dump_location_info): Strengthen locals "map" from
13147         line_map *, one to const line_map_ordinary *, the other
13148         to const line_map_macro *.
13149         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
13150         const line_map * to const line_map_macro *.
13151         (maybe_unwind_expanded_macro_loc): Add a call to
13152         linemap_check_macro when writing to the "map" field of the
13153         loc_map_pair.
13154         Introduce local const line_map_ordinary * "ord_map", using it in
13155         place of "map" in the part of the function where we know we have
13156         an ordinary map.  Strengthen local "m" from const line_map * to
13157         const line_map_ordinary *.
13159 2015-05-19  Nick Clifton  <nickc@redhat.com>
13161         PR target/66156
13162         * config/msp430/msp430.md (zero_extendhisi2): Add support for
13163         separate source and destination registers.
13165 2015-05-19  Richard Biener  <rguenther@suse.de>
13167         PR tree-optimization/66165
13168         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
13169         for no load permutation.
13171         PR tree-optimization/66185
13172         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
13173         when building the SLP node from scalars.
13175 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13176             Tristan Gingold  <gingold@adacore.com>
13178         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
13179         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
13180         (expand_stack_restore): Call record_new_stack_level.
13181         (expand_stack_save): Do not call do_pending_stack_adjust.
13182         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
13183         * calls.c (expand_call): Call record_new_stack_level for alloca.
13184         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
13185         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
13186         (update_sjlj_context): New global function.
13187         * except.h (update_sjlj_context): Declare.
13188         * explow.c (record_new_stack_level): New global function.
13189         (allocate_dynamic_stack_space): Call record_new_stack_level.
13190         * explow.h (record_new_stack_level): Declare.
13191         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
13192         * cfgrtl.c (duplicate_insn_chain): Likewise.
13194 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13196         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
13197         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
13198         STACK_GROWS_DOWNWARD as normal if.
13199         (expand_call): Likewise.
13201 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
13203         PR target/54236
13204         * config/sh/sh.md (*round_int_even): New insn_and_split and
13205         accompanying new unnamed split.
13207 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13209         * bitmap.c (bitmap_set_range): Handle count==1 specially.
13210         (bitmap_clear_range): Likewise.
13211         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
13212         bitmap_set_range unconditionally.
13213         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13214         * df-scan.c (df_mark_reg): Likewise.
13215         * haifa-sched.c (setup_ref_regs): Likewise.
13216         * sched-rgn.c (update_live_1): Likewise.
13218 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13220         * regs.h (END_HARD_REGNO): Delete.
13221         (END_REGNO): Move to...
13222         * rtl.h: ...here.
13223         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
13224         * caller-save.c (mark_set_regs): Likewise.
13225         * combine.c (move_deaths, distribute_notes): Likewise.
13226         * cse.c (invalidate, invalidate_for_call): Likewise.
13227         * df-scan.c (df_ref_record): Likewise.
13228         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
13229         (record_last_reg_set_info): Likewise.
13230         * reg-stack.c (convert_regs_exit): Likewise.
13231         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
13232         * resource.c (update_live_status): Likewise.
13233         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
13235 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13237         * rtl.h (reg_info): Add an nregs field.
13238         (REG_NREGS): Use it.
13239         (SET_REGNO_RAW): Delete.
13240         (set_regno_raw): New function.
13241         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
13242         (END_REGNO): Redefine in terms of REG_NREGS.
13243         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
13244         SET_REGNO_RAW.
13245         * emit-rtl.c (set_mode_and_regno): Likewise.
13246         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
13247         instead of SET_REGNO_RAW.
13249 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13251         * rtl.h (PUT_MODE_RAW): New macro.
13252         (PUT_REG_NOTE_KIND): Use it.
13253         (set_mode_and_regno): Declare.
13254         (gen_raw_REG): Change regno to "unsigned int".
13255         (gen_rtx_REG): Change "unsigned" to "unsigned int".
13256         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
13257         use set_mode_and_regno to change the mode of registers.
13258         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
13259         * emit-rtl.c (set_mode_and_regno): New function.
13260         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
13261         * caller-save.c (reg_save_code): Use set_mode_and_regno.
13262         * expr.c (init_expr_target): Likewise.
13263         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13264         * postreload.c (reload_cse_simplify_operands): Likewise.
13266 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13268         * caller-save.c (init_caller_save): Use word_mode and
13269         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
13270         * expr.c (init_expr_target): Likewise.
13271         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13272         * postreload.c (reload_cse_regs_1): Likewise.
13274 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13276         * rtl.def (REG): Change format to "r".
13277         * rtl.h (rtunion): Remove rt_reg.
13278         (reg_info): New structure.
13279         (rtx_def): Add reg field to main union.
13280         (X0REGATTR): Delete.
13281         (REG_CHECK): New macro.
13282         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
13283         * rtl.c (rtx_format): Document "r".
13284         (rtx_code_size): Handle REG specially.
13285         * gengenrtl.c (special_format): Return true for formats
13286         that include 'r'.
13287         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
13288         Deal with REG_ATTRS after the field loop.
13289         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
13290         * expmed.c (init_expmed): Call gen_raw_REG instead of
13291         gen_rtx_raw_REG.
13292         * expr.c (init_expr_target): Likewise.
13293         * regcprop.c (maybe_mode_change): Likewise.
13294         * varasm.c (make_decl_rtl): Likewise.
13295         * final.c (leaf_renumber_regs_insn): Return early after
13296         handling REGs.
13297         * genemit.c (gen_exp): Handle 'r' fields.
13298         * genpeep.c (match_rtx): Likewise.
13299         * gensupport.c (subst_pattern_match): Likewise.
13300         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
13301         (alter_constraints, subst_dup): Likewise.
13302         * read-rtl.c (read_rtx_code): Likewise.
13303         * print-rtl.c (print_rtx): Likewise.
13304         * genrecog.c (find_operand, find_matching_operand): Likewise.
13305         (validate_pattern, match_pattern_2): Likewise.
13306         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
13307         (rtx_test::regno_field): New function.
13308         (operator ==, safe_to_hoist_p, transition_parameter_type)
13309         (parameter_type_string, print_parameter_value)
13310         (print_nonbool_test, print_test): Handle new enum values.
13311         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
13312         * lra-constraints.c (operands_match_p): Likewise.
13314 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13316         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
13317         Change type of new_regno to unsigned int.
13318         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
13319         new_regno to unsigned int.
13320         (df_ref_change_reg_with_loc): Remove old_regno parameter.
13321         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
13322         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
13323         (SET_REGNO_RAW): Add space after ",".
13325 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13327         * rtl.h (REG_NREGS): New macro
13328         * alias.c (record_set): Use it.
13329         * cfgcleanup.c (mark_effect): Likewise.
13330         * combine.c (likely_spilled_retval_1): Likewise.
13331         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
13332         (move_deaths, distribute_notes): Likewise.
13333         * cselib.c (cselib_record_set): Likewise.
13334         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13335         * df-scan.c (df_mark_reg): Likewise.
13336         * dse.c (look_for_hardregs): Likewise.
13337         * dwarf2out.c (reg_loc_descriptor): Likewise.
13338         (multiple_reg_loc_descriptor): Likewise.
13339         * expr.c (write_complex_part, read_complex_part): Likewise.
13340         (emit_move_complex): Likewise.
13341         * haifa-sched.c (setup_ref_regs): Likewise.
13342         * ira-lives.c (mark_hard_reg_live): Likewise.
13343         * lra.c (lra_set_insn_recog_data): Likewise.
13344         * mode-switching.c (create_pre_exit): Likewise.
13345         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
13346         (reload_combine_recognize_pattern): Likewise.
13347         (reload_combine_note_use, move2add_record_mode): Likewise.
13348         (reload_cse_move2add): Likewise.
13349         * reg-stack.c (subst_stack_regs_pat): Likewise.
13350         * regcprop.c (kill_value, copy_value): Likewise.
13351         (copyprop_hardreg_forward_1): Likewise.
13352         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
13353         (build_def_use): Likewise.
13354         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
13355         (deps_analyze_insn): Likewise.
13356         * sched-rgn.c (check_live_1, update_live_1): Likewise.
13357         * sel-sched.c (count_occurrences_equiv): Likewise.
13358         * valtrack.c (dead_debug_insert_temp): Likewise.
13360 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
13362         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
13363         * dse.c (note_add_store): Likewise.
13364         * ira-lives.c (mark_hard_reg_dead): Likewise.
13365         * loop-invariant.c (mark_reg_store): Likewise.
13366         (mark_reg_death): Likewise.
13367         * postreload.c (reload_combine): Likewise.
13368         (reload_combine_note_store): Likewise.
13369         (reload_combine_note_use): Likewise.
13370         * recog.c (peep2_reg_dead_p): Likewise.
13372 2015-05-19  Alan Modra  <amodra@gmail.com>
13374         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
13375         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
13376         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
13377         unused predicates.
13378         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
13379         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
13380         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
13381         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
13383 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
13385         * config/mips/mips.md (JOIN_MODE): New mode iterator.
13386         (join2_load_Store<JOIN_MODE:mode>): New pattern.
13387         (join2_loadhi): Likewise.
13388         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
13389         load-load and store-stores.
13390         * config/mips/mips.opt (mload-store-pairs): New option.
13391         (TARGET_LOAD_STORE_PAIRS): New macro.
13392         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
13393         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
13394         * config/mips/mips.c (mips_load_store_bonding_p): New function.
13396 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
13398         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
13399         explicit swaps.
13400         * dojump.c (do_compare_rtx_and_jump): Likewise.
13401         * expmed.c (emit_store_flag_1): Likewise.
13402         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
13403         * final.c (sprint_ul): Use std::reverse for reversing a string.
13404         * fold-const.c (extract_muldiv_1): Use std::swap.
13405         * genmodes.c (emit_mode_int_n): Likewise.
13406         * ifcvt.c (dead_or_predicable): Likewise.
13407         * ira-build.c (ira_merge_live_ranges): Likewise.
13408         (swap_allocno_copy_ends_if_necessary): Likewise.
13409         * ira.c (ira_setup_alts): Likewise.
13410         * loop-iv.c (iv_analyze_expr): Likewise.
13411         (implies_p): Likewise.
13412         (canon_condition): Likewise.
13413         * lra-constraints.c (swap_operands): Likewise.
13414         * lra-lives.c (lra_merge_live_ranges): Likewise.
13415         * omega.c (swap): Remove.
13416         (bswap): Remove.
13417         (omega_unprotect_1): Use std::swap.
13418         (omega_solve_geq): Likewise.
13419         * optabs.c (expand_binop_directly): Likewise.
13420         (expand_binop): Likewise.
13421         (emit_conditional_move): Likewise.
13422         (emit_conditional_add): Likewise.
13423         * postreload.c (reload_cse_simplify_operands): Likewise.
13424         * reg-stack.c (emit_swap_insn): Likewise.
13425         (swap_to_top): Likewise.
13426         (compare_for_stack_reg): Likewise.
13427         (subst_asm_stack_regs): Likewise.
13428         * reload.c (find_reloads): Likewise.
13429         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
13430         * sel-sched.c (invoke_reorder_hooks): Likewise.
13431         (create_block_for_bookkeeping): Likewise.
13432         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
13433         (lambda_matrix_right_hermite): Use std::swap.
13434         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
13435         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13436         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
13437         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
13438         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13439         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
13440         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13441         * tree-vrp.c (compare_ranges): Likewise.
13442         * var-tracking.c (add_with_sets): Likewise.
13443         (vt_find_locations): Likewise.
13445 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
13447         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
13448         pie executables.
13449         (FBSD_ENDFILE_SPEC): Likewise.
13450         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
13451         config/freebsd-spec.h.
13452         (ENDFILE_SPEC): Likewise.
13454 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
13455             Richard Henderson  <rth@redhat.com>
13457         PR target/57032
13458         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
13459         Check for a memory location that is not a reference (using an AND)
13460         to an unaligned location here.
13461         * config/alpha/predicates.md (normal_memory_operand): Remove.
13463 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
13465         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
13466         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
13468 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13470         * config/mips/mips.c (micromips_globals): New variable.
13471         (mips_set_compression_mode): Save and reinitialize target-dependent
13472         state for microMIPS.
13474 2015-05-18  Martin Liska  <mliska@suse.cz>
13476         * dbgcnt.def: Add new counter.
13477         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
13479 2015-05-18  Martin Liska  <mliska@suse.cz>
13481         * dbgcnt.def: Sort counters.
13482         * opts.c (common_handle_option): Do not compile if
13483         -fdbg-cnt-list is enabled.
13485 2015-05-18  Tom de Vries  <tom@codesourcery.com>
13487         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
13488         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
13489         address operator to va_list operand.
13490         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
13491         unconditionally.
13492         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
13493         operand.
13494         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
13495         * config/s390/s390.c (s390_gimplify_va_arg): Same.
13496         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
13498 2015-05-18  Tom de Vries  <tom@codesourcery.com>
13500         * tree-ssa-tail-merge.c: Fix whitespace.
13502 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
13504         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
13505         cortex-a17, and cortex-a17.cortex-a7.
13507 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
13509         PR target/54236
13510         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
13512 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
13514         PR target/66174
13515         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
13516         QImode inner modes for TARGET_AVX512BW.  Force mask operand
13517         to a register for AVX512F modes.
13519 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
13521         * toplev.c (emit_debug_global_declarations): Do not output debug info
13522         when doing slim LTO objects.
13524 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
13526         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
13527         odr_types_equivalent_p): Declare.
13528         (odr_type_p): Use gcc_checking_assert.
13529         (type_in_anonymous_namespace_p) Declare.
13530         (type_with_linkage_p): Declare.
13531         * common.opt (Wlto-type-mismatch): New warning.
13532         * ipa-devirt.c (compound_type_base): New function.
13533         (odr_or_derived_type_p): New function.
13534         (odr_types_equivalent_p): New function.
13535         (add_type_duplicate): Simplify.
13536         (type_with_linkage_p): Add hack to prevent false positives on C types
13537         (type_in_anonymous_namespace_p): Likewise.
13538         * tree.c (need_assembler_name_p): Use type_with_linkage.
13539         * tree.h (type_in_anonymous_namespace_p): Remove.
13540         * doc/invoke.texi (-Wlto-type-mismatch): Document
13542 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
13544         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
13545         (verify_type): Verify STRING_FLAG.
13547 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13549         PR fortran/44054
13550         * tree-pretty-print.c (percent_K_format): Replace locus pointer
13551         with accessor function.
13552         * tree-diagnostic.c (diagnostic_report_current_function): Use
13553         diagnostic_location function.
13554         (maybe_unwind_expanded_macro_loc): Likewise.
13555         (virt_loc_aware_diagnostic_finalizer): Likewise.
13556         (default_tree_printer): Replace locus pointer with accessor function.
13557         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
13558         (diagnostic_set_info_translated): Initialize second location.
13559         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
13560         (diagnostic_show_locus): Handle two locations. Call
13561         diagnostic_print_caret_line.
13562         (diagnostic_print_caret_line): New.
13563         (default_diagnostic_starter): Use diagnostic_location function.
13564         (diagnostic_report_diagnostic): Use diagnostic_location function.
13565         (verbatim): Do not set text.locus.
13566         * diagnostic.h (struct diagnostic_info): Remove location field.
13567         (struct diagnostic_context): Make caret_chars an array of two.
13568         (diagnostic_location): New inline.
13569         (diagnostic_expand_location): Handle two locations.
13570         (diagnostic_same_line): New inline.
13571         (diagnostic_print_caret_line): Declare.
13572         (CARET_LINE_MARGIN): New constant.
13573         * pretty-print.c (pp_printf): Do not set text.locus.
13574         (pp_verbatim): Do not set text.locus.
13575         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13576         (struct text_info): Replace locus pointer with locations
13577         array. Add accessor functions.
13579 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
13580             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13582         PR target/65768
13583         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13584         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13585          large constants in register instead of splitting them.
13587 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
13589         PR target/66140
13590         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13591         replacements in memory addresses.
13592         (get_unaligned_address): Ditto.
13594 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
13596         * config/ft32/*: New files for FT32 port.
13597         * doc/install.texi: Add FT32 information.
13598         * doc/invoke.texi: Add FT32 information.
13599         * doc/md.texi: Add FT32 information.
13600         * doc/contrib.texi: Self added.
13602 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
13604         PR tree-optimization/64454
13605         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13606         (-1 - A -> ~A): Remove unnecessary condition.
13608 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
13610         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13611         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13612         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13614 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
13616         * ipa-chkp.h (chkp_wrap_function): New.
13617         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13618         (chkp_wrap_function_name): New.
13619         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13620         to get wrapper name.
13621         * lto-cgraph.c: Include ipa-chkp.h.
13622         (input_cgraph_1): Avoid alias chain for wrappers.
13624 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
13626         PR middle-end/66134
13627         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13628         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13630 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13632         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13633         (AARCH64_FL_SLOWMUL): Delete.
13634         (AARCH64_FL_CRC): Redefine to 1<<3.
13635         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13637 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13639         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13640         casting.
13642 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
13644         * config/alpha/alpha.md (extendqidi2): Use general_operand
13645         instead of some_operand for operand[1] predicate.
13646         (extendhidi2): Ditto.
13647         (cbranchdi4): Use general_operand instead of some_operand
13648         for operand[1] and operands[2] predicates.
13649         (cstoredi4): Ditto.
13650         * config/alpha/predicates.md (some_operand): Remove unused predicate.
13651         (some_ni_operand): Ditto.
13653 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
13655         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
13656         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
13657         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
13658         low part of the constant using alpha_emit_set_const_1.
13659         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
13661 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
13663         * varasm.c (output_constant_pool_1): Pass down alignment from
13664         constant pool entry's descriptor to output_constant_pool_2.
13665         (output_object_block): Add comment prior to call to
13666         output_constant_pool_1.
13668 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
13670         PR rtl-optimization/65862
13671         * target.def (ira_change_pseudo_allocno_class): New hook.
13672         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
13673         value of the hook.
13674         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
13675         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
13676         hook.
13677         * ira-costs.c (find_costs_and_classes): Call the hook and change
13678         classes when it is necessary.
13679         * doc/tm.texi: Update.
13681 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
13683         * config/i386/i386.md (sibcall_memory): Check that register with
13684         callee address is not also used as one of the arguments, instead
13685         of checking that it is not live after the sibcall.
13686         (sibcall_pop_memory): Ditto.
13687         (sibcall_value_memory): Ditto.
13688         (sibcall_value_pop_memory): Ditto.
13690 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
13692         * generic-match-head.c (types_match): Handle non-types.
13693         * gimple-match-head.c (types_match): Likewise.
13694         * match.pd: Remove unnecessary TREE_TYPE for types_match.
13696 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
13698         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
13699         (csneg3<mode>_insn): Enable expansion of pattern.
13701 2015-05-14  Nick Clifton  <nickc@redhat.com>
13703         * config/rl78/rl78.c (rl78_select_section): Select the correct
13704         default section based upon the category of the decl.
13706 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
13708         PR rtl-optimization/30967
13709         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
13710         destination mode for the cost of scc patterns.
13712 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
13714         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
13715         using SWIM248 mode iterator.
13716         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
13717         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
13718         for operand[2] constraint.
13719         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
13721 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
13723         PR middle-end/66133
13724         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
13725         make sure it is never noreturn, even when the task body does not
13726         return.
13727         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
13728         right before GIMPLE_OMP_RETURN.
13729         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
13730         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
13731         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
13733 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13735         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
13736         * tree-ssa-math-opts.c: Include params.h
13737         (pow_synth_sqrt_info): New struct.
13738         (representable_as_half_series_p): New function.
13739         (get_fn_chain): Likewise.
13740         (print_nested_fn): Likewise.
13741         (dump_fractional_sqrt_sequence): Likewise.
13742         (dump_integer_part): Likewise.
13743         (expand_pow_as_sqrts): Likewise.
13744         (gimple_expand_builtin_pow): Use above to attempt to expand
13745         pow as series of square roots.  Removed now unused variables.
13747 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
13749         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
13750         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
13751         Remove *p0 and *p1 arguments.  Rewrite function.
13752         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
13753         (alpha_split_const_mov): Update calls to alpha_extract_integer and
13754         alpha_emit_set_long_const.
13755         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
13756         (alpha_output_mi_thunk_osf): Ditto.
13757         * config/alpha/alpha.md (movti): Do not check operands[1]
13758         for CONST_DOUBLE.
13760 2015-05-13  Richard Biener  <rguenther@suse.de>
13762         PR tree-optimization/66129
13763         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
13764         commutative.
13765         (vect_schedule_slp_instance): Fix typo.
13767 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
13769         * common.opt (fdump-internal-locations): New option.
13770         * input.c: Include diagnostic-core.h.
13771         (get_end_location): New function.
13772         (write_digit): New function.
13773         (write_digit_row): New function.
13774         (dump_location_range): New function.
13775         (dump_labelled_location_range): New function.
13776         (dump_location_info): New function.
13777         * input.h (dump_location_info): New prototype.
13778         * toplev.c (compile_file): Handle flag_dump_locations.
13780 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13782         * gimple-expr.h (is_gimple_constant): Reorder.
13783         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
13785 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
13787         * combine.c (simplify_set): When generating a CC set, if the
13788         source already is in the correct mode, do not wrap it in a
13789         compare.  Simplify the rest of that code.
13791 2015-05-13  Richard Biener  <rguenther@suse.de>
13793         PR tree-optimization/66123
13794         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
13795         a taken edge.
13797 2015-05-13  Richard Biener  <rguenther@suse.de>
13799         PR middle-end/66110
13800         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
13801         specially.
13802         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
13804 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
13806         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
13807         * aclocal.m4: Regenerated with automake-1.11.6.
13809 2015-05-13  Tom de Vries  <tom@codesourcery.com>
13811         PR tree-optimization/66010
13812         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
13813         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
13814         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
13815         and rval based on do_deref.
13817 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13819         PR target/65103
13820         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
13821         link time constants into adress expressions and therefore set
13822         their cost to 0.
13824 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
13826         PR target/66112
13827         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
13828         Use SWI248 iterator instead of SWI.
13829         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
13830         Use eq_attr "alternative" "0" instead of match_test in
13831         length_immediate attribute computation.
13832         (*mulvhi4, *mulvhi4_1): New define_insns.
13834         PR target/66112
13835         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
13836         SIGNED to get precision of non-negative value.
13838 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13840         PR target/66048
13841         * function.c (diddle_return_value_1): Process bounds first.
13842         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
13843         register.
13845 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13847         PR rtl-optimization/64616
13848         * loop-invariant.c (can_move_invariant_reg): New.
13849         (move_invariant_reg): Call above new function to decide whether
13850         instruction can just be moved, skipping creation of temporary
13851         register.
13853 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
13855         PR target/pr66047.c
13856         * i386.c (ix86_function_sseregparm): Only return -1 if local function
13857         with implied regparm is called from -mno-sse function.
13858         (init_cumulative_args): Output error if ix86_function_sseregparm
13859         return -1 and SSE register would be needed.
13860         (function_arg_advance_32): Likewise.
13861         (function_arg_32): Likewise.
13862         * i386.h (ix86_args): Add decl field.
13864 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
13866         PR ipa/65873
13867         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
13868         inlines across optimization boundary.
13870 2015-05-12  Jason Merrill  <jason@redhat.com>
13872         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
13873         string literal and macro name.
13875 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
13877         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
13878         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
13879         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
13881 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
13883         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
13884         (-Wmisleading-indentation): New option.
13885         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
13887 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
13889         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
13890         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13891         (alpha_extract_integer): Ditto.
13892         (alpha_legitimate_constant_p): Ditto.
13893         (alpha_split_tmode_pair): Ditto.
13894         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13895         (alpha_expand_mov): Ditto.
13896         (print_operand): Remove handling of 'H' modifier.
13897         <case 'm'>: Remove CONST_DOUBLE handling.
13898         (summarize_insn): Handle CONST_WIDE_INT.
13899         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13900         (anddi3): Ditto.
13901         (movti): Handle CONST_WIDE_INT.
13902         * config/alpha/constraints.md ('H'): Remove constraint definition.
13903         ('G'): Do not match MODE_FLOAT class.
13904         * config/alpha/predicates.md (const0_operand): Also match
13905         const_wide_int.
13906         (non_add_const_operand): Ditto.
13907         (non_zero_const_operand): Ditto.
13908         (some_operand): Ditto.
13909         (input_operand): Ditto.  Handle CONST_WIDE_INT.
13910         (and_operand): Do not match const_double.
13911         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13913 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
13915         PR target/65697
13916         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13917         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13918         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13919         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13920         is_mm_seq_cst, is_mm_sync): New accessor functions.
13921         * builtins.c (expand_builtin_sync_operation,
13922         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13923         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13924         (get_memmodel,  expand_builtin_atomic_compare_exchange,
13925         expand_builtin_atomic_load, expand_builtin_atomic_store,
13926         expand_builtin_atomic_clear): Use new accessor routines.
13927         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13928         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13929         (maybe_emit_sync_lock_test_and_set): Use new accessors and
13930         MEMMODEL_SYNC_ACQUIRE.
13931         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13932         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13933         expand_atomic_store): Use new accessors.
13934         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13935         * tsan.c (instrument_builtin_call): Update check for memory model beyond
13936         final enum to use MEMMODEL_LAST.
13937         * c-family/c-common.c: Use new accessor for memmodel_base.
13938         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13939         accessors.
13940         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13941         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13942         mem_thread_fence, *dmb): Likewise.
13943         * config/alpha/alpha.c (alpha_split_compare_and_swap,
13944         alpha_split_compare_and_swap_12): Likewise.
13945         * config/arm/arm.c (arm_expand_compare_and_swap,
13946         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13947         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13948         atomic_loaddi): Likewise.
13949         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13950         Likewise.
13951         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
13952         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
13953         use new accessors.
13954         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
13955         atomic_store<mode>, atomic_compare_and_swap<mode>,
13956         atomic_exchange<mode>): Use new accessors.
13957         * config/mips/mips.c (mips_process_sync_loop): Likewise.
13958         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
13959         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
13960         rs6000_post_atomic_barrier): Add new cases.
13961         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
13962         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
13963         (atomic_load<mode>): Add new cases and use new accessors.
13964         (store_quadpti): Add new cases.
13965         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
13966         accessors.
13967         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
13968         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
13969         model, not 8.
13971 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
13973         * ipa-devirt.c (type_with_linkage_p): New function.
13974         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
13975         type has linkage.
13976         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
13977         (can_be_name_hashed_p): Simplify.
13978         (hash_odr_name): Check that type has linkage before checking if it is
13979         anonymous.
13980         (types_same_for_odr): Likewise.
13981         (odr_name_hasher::equal): Likewise.
13982         (odr_subtypes_equivalent_p): Likewise.
13983         (warn_types_mismatch): Likewise.
13984         (get_odr_type): Likewise.
13985         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
13986         * ipa-utils.h (odr_type_p): Move offline.
13987         * tree.c (need_assembler_name_p): Fix handling of types
13988         without linkages.
13989         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
13991 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
13993         * timevar.c (timevar_enable): Delete in favor of...
13994         (g_timer): New global.
13995         (struct timevar_def): Move to timevar.h inside class timer.
13996         (struct timevar_stack_def): Likewise.
13997         (timevars): Delete global in favor of field "m_timevars" within
13998         class timer in timevar.h
13999         (stack): Likewise, in favor of field "m_stack".
14000         (unused_stack_instances): Likewise, in favor of field
14001         "m_unused_stack_instances".
14002         (start_time): Likewise, in favor of field "m_start_time".
14003         (get_time): Eliminate check for timevar_enable.
14004         (timer::timer): New function, built from part of timevar_init.
14005         (timevar_init): Rewrite idempotency test from using
14006         "timevar_enable" bool to using dynamic allocation of "g_timer".
14007         Move rest of implementation into timer's constructor.
14008         (timevar_push_1): Rename to...
14009         (timer::push): ...this, adding "m_" prefixes to variables that
14010         are now fields of timer.
14011         (timevar_pop_1): Likewise, rename to...
14012         (timer::pop): ...this, and add "m_" prefixes.
14013         (timevar_start): Replace test for "timevar_enable" with one for
14014         "g_timer", and move bulk of implementation to...
14015         (timer::start): ...here, adding "m_" prefixes.
14016         (timevar_stop): Likewise, from here...
14017         (timer::stop): ...to here.
14018         (timevar_cond_start): Likewise, from here...
14019         (timer::cond_start): ...to here.
14020         (timevar_cond_stop): Likewise, from here...
14021         (timer::cond_stop): ...to here.
14022         (validate_phases): Rename to...
14023         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
14024         locals "total" and "tv" const.
14025         (timevar_print): Rename to...
14026         (timer::print): ...this, and add "m_" prefixes.  Make locals
14027         "total" and "tv" const.  Eliminate test for timevar_enable.
14028         * timevar.h (timevar_enable): Eliminate.
14029         (g_timer): New declaration.
14030         (timevar_push_1): Eliminate.
14031         (timevar_pop_1): Eliminate.
14032         (timevar_print): Eliminate.
14033         (class timer): New class.
14034         (timevar_push): Rewrite to use g_timer.
14035         (timevar_pop): Likewise.
14036         * toplev.c (toplev::~toplev): Likewise.
14038 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
14040         * arm-protos.h (arm_sched_autopref): Delete.
14041         (tune_params): Re-organize, use enums for flag values.
14042         (FUSE_OPS): New macro.
14043         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
14044         (ARM_PREFETCH_BENEFICIAL): Likewise.
14045         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
14046         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
14047         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
14048         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
14049         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
14050         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
14051         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
14052         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
14053         format.
14054         (arm_option_override, thumb2_reorg, arm_print_tune_info)
14055         (aarch_macro_fusion_pair_p): Update uses of current_tune.
14056         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
14058 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
14060         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
14061         "break".
14063 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
14064             Sandra Loosemore <sandra@codesourcery.com>
14066         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
14067         value.
14068         (REG_CLASS_NAMES): Add "IJMP_REGS".
14069         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
14070         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
14071         use new "c" register constraint.
14072         * config/nios2/constraint.md (c): New register constraint
14073         corresponding to IJMP_REGS.
14075 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
14077         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
14078         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
14079         define_splits): Delete, revamp, transmogrify into ...
14080         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
14081         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
14082         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
14083         New.
14085 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
14087         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
14088         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
14090 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
14092         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
14093         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
14094         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
14095         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
14096         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
14097         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
14098         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
14099         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
14100         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
14101         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14102         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
14103         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
14104         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
14105         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
14106         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
14107         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
14108         and 30 corresponding splitters): Delete.
14110 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
14112         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
14113         zero_extract.
14115 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
14117         * combine.c (recog_for_combine_1): New function, factored out
14118         from recog_for_combine.
14119         (change_zero_ext): New function.
14120         (recog_for_combine): If recog fails, try again with the pattern
14121         modified by change_zero_ext; if that still fails, restore the
14122         pattern.
14124 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
14126         * combine.c (get_undo_marker): New function.
14127         (undo_to_marker): New function, largely factored out from ...
14128         (undo_all): ... this.  Adjust.
14130 2015-05-12  Richard Biener  <rguenther@suse.de>
14132         PR tree-optimization/66101
14133         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
14134         fixup if we turn a loop exit edge to a fallthru edge.
14136 2015-05-12  Richard Biener  <rguenther@suse.de>
14138         PR tree-optimization/37021
14139         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
14140         (SLP_TREE_TWO_OPERATORS): New define.
14141         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
14142         SLP_TREE_TWO_OPERATORS.
14143         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
14144         SLP node.
14145         (vect_build_slp_tree): Adjust.
14146         (vect_analyze_slp_cost_1): Likewise.
14147         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
14148         emitting two vector stmts and mixing the results.
14150 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14152         * call.c (print_z_candidates): Remove dead code.
14154 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14156         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
14157         and zEC12_simple_fp.
14158         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
14159         to 1.
14161 2015-05-12  Tom de Vries  <tom@codesourcery.com>
14163         PR tree-optimization/66010
14164         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
14165         ifn_va_arg.
14166         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
14167         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
14168         va_lists are passed, and remove corresponding handling.
14169         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
14170         do_deref argument to ifn_va_arg.
14171         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
14172         ifn_va_arg.
14174 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14176         PR target/65955
14177         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
14178         REG before taking its REGNO.
14180 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14182         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
14183         rsp->sign_bit_copies and rsp->nonzero_bits into ...
14184         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
14185         present to get more accurate information about the number of sign bit
14186         copies and non zero bits.
14188 2015-05-12  Richard Biener  <rguenther@suse.de>
14190         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
14191         do not allow unrolling.
14193 2015-05-11  Richard Henderson  <rth@redhat.com>
14195         * config/i386/i386-modes.def (CCP): New.
14196         * config/i386/i386.c (put_condition_code): Handle it.
14197         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
14199 2015-05-11  Richard Henderson  <rth@redhat.com>
14201         * target.def (md_asm_clobbers): Replace with...
14202         (md_asm_adjust): this.
14203         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
14204         (TARGET_MD_ASM_ADJUST): New.
14205         * tm.texi: Rebuild.
14206         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
14207         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
14208         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
14210         * cfgexpand.c (check_operand_nalternatives): Accept vector of
14211         constraints instead of lists of outputs and inputs.
14212         (expand_asm_stmt): Save and restore input_location around the
14213         body of the function.  Move asm data into vectors instead of
14214         building tree lists.  Generate cleanup sequences as needed,
14215         rather than waiting til the end.  Use new md_asm_adjust hook.
14217         * config/vxworks.c: Include vec.h before target.h.
14218         * gimple.c: Likewise.
14219         * incpath.c: Likewise.
14220         * mode-switching.c: Likewise.
14222         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
14223         (cris_md_asm_adjust): this.
14224         (TARGET_MD_ASM_CLOBBERS): Remove.
14225         (TARGET_MD_ASM_ADJUST): New.
14226         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
14227         (ix86_md_asm_adjust): this.
14228         (TARGET_MD_ASM_CLOBBERS): Remove.
14229         (TARGET_MD_ASM_ADJUST): New.
14230         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
14231         (mn10300_md_asm_adjust): this.
14232         (TARGET_MD_ASM_CLOBBERS): Remove.
14233         (TARGET_MD_ASM_ADJUST): New.
14234         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
14235         (rs6000_md_asm_adjust): this.
14236         (TARGET_MD_ASM_CLOBBERS): Remove.
14237         (TARGET_MD_ASM_ADJUST): New.
14238         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
14239         (visium_md_asm_adjust): this.
14240         (TARGET_MD_ASM_CLOBBERS): Remove.
14241         (TARGET_MD_ASM_ADJUST): New.
14243 2015-05-11  Richard Henderson  <rth@redhat.com>
14245         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
14246         if noutputs is zero.
14247         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
14249         * cfgexpand.c (expand_asm_operands): Merge into...
14250         (expand_asm_stmt): ... here.
14252         * cfgexpand.c (expand_asm_operands): Don't call
14253         resolve_asm_operand_names.
14254         * stmt.c (resolve_asm_operand_names): Clarify block comment.
14256 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
14258         * dwarf2out.c (gen_member_die): Sanity check that we access
14259         TYPE_MAIN_VARIANT for TYPE_METHODS.
14260         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
14261         checking TYPE_METHODS.
14262         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
14263         if non-null.
14264         (build_distinct_type_copy): Clear TYPE_METHODS.
14265         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
14266         (verify_type): Allow TYPE_METHODS to be error_mark_node.
14267         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
14269 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
14271         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
14272         (emit_pattern_before_setloc): Likewise.
14274 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
14276         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
14277         for define_peephole2s.
14278         (get_peephole2_pattern): New function.
14279         (main): Use it.  Call validate_pattern.
14281 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
14283         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
14284         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
14285         (Last callee saved reg is different for AVR_TINY architecture)
14287 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
14289         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
14290         when looking for memory references.
14292 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
14294         PR target/65753
14295         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
14296         via function pointers.
14298 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
14300         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
14301         indirect call by forcing address into a pseudo with -fno-plt.
14302         * common.opt (flag_plt): New option.
14303         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
14304         ([-fno-plt]): Document.
14306 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
14308         PR bootstrap/66105
14309         * config/rs6000/option-defaults.h: Add space between string literal
14310         and macro name.
14312 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14314         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
14315         accross ARM targets.
14317 2015-05-11  Christian Bruel  <christian.bruel@st.com>
14319         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
14320         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
14322 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
14324         PR rtl-optimization/66076
14325         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
14326         Don't grow the heap array if it is already big enough from a
14327         previous iteration.
14329 2015-05-11  Christian Bruel  <christian.bruel@st.com>
14331         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
14332         (is_called_in_ARM_mode): Remove.
14333         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
14334         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
14335         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
14336          arm_declare_function_name.
14338 2015-05-11  Christian Bruel  <christian.bruel@st.com>
14340         * config/arm/arm.c (arm_option_override): Reoganized and split into :
14341         (arm_option_params_internal); New function.
14342         (arm_option_check_internal): New function.
14343         (arm_option_override_internal): New function.
14344         (thumb_code, thumb1_code): Remove.
14345         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
14346         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
14347         (thumb_code, thumb1_code): Remove.
14348         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
14350 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
14352         * config/alpha/alpha.c (alpha_emit_set_const_1)
14353         (alpha_emit_set_long_const, alpha_extract_integer)
14354         (alpha_legitimate_constant_p, alpha_split_const_mov)
14355         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
14356         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14357         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
14358         HOST_WIDE_INT_1U.
14359         * config/alpha/predicates.md (mode_mask_operand): Do not match
14360         const_double RTX.
14361         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14362         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
14363         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
14364         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14365         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
14367 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
14369         PR target/65780
14370         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
14371         default_binds_local_p_2.
14372         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
14373         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
14375 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
14377         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
14379 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
14381         Patch by Richard Biener
14382         * coverage.c (coverage_obj_init): Delay building of type variant
14383         until the type is finished.
14385 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
14387         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
14388         mismatch between C and C++ type; compoare correctly ARG_TYPES
14389         for non-prototypes and output correctly parameter index for METHOD_TYPE.
14390         (odr_types_equivalent_p): Fix wording of warning about attributes;
14391         it is OK to match prototype and non-prototype.
14393 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
14395         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
14396         TYPE_ARG_TYPES list.
14397         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
14398         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
14400 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
14402         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
14403         * tree.h (is_lang_specific): Constify.
14405 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
14407         PR tree-optimization/64454
14408         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
14409         Rewrite.
14411 2015-05-08  Jason Merrill  <jason@redhat.com>
14413         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
14414         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
14415         config/darwin.h, config/darwin9.h, config/elfos.h,
14416         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
14417         config/microblaze/microblaze.h, config/mips/mips.h,
14418         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
14419         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
14420         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
14421         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
14422         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
14423         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
14424         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
14425         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
14426         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
14427         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
14428         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
14429         between string literal and macro name.
14431 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14433         * jump.c: Change argument types to rtx_insn *.
14434         * rtl.h: Adjust.
14436 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14438         * lra-constraints.c: Change argument type to rtx_insn *.
14440 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14442         * df-problems.c: Change argument type to rtx_insn *.
14444 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14446         * combine.c: Change argument type to rtx_insn *.
14448 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14450         * rtl.h: Adjust.
14451         * rtlanal.c: Change argument type to rtx_insn *.
14453 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14455         * sched-deps.c: Change argument types to rtx_insn *.
14456         * sched-int.h: Adjust.
14458 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14460         * dwarf2cfi.c: Change argument type to rtx_insn *.
14462 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14464         * ira.c (decrease_live_ranges_number): Changetype of local
14465         variable to rtx_insn *.
14466         * recog.c: Change argument types to rtx_insn *.
14467         * recog.h: Adjust.
14469 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14471         * reorg.c: Change argument types to rtx_insn *.
14473 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14475         * ira-color.c: Change argument types to rtx_insn *.
14476         * lra-eliminations.c: Likewise.
14477         * ira.h: Adjust.
14479 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14481         * gcse.c: Change argument types to rtx_insn *.
14483 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14485         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
14487 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14489         * emit-rtl.c (emit_debug_insn_before): Change argument type to
14490         rtx_insn *.
14491         * rtl.h: Adjust.
14493 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14495         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
14496         * rtl.h: Adjust.
14498 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14500         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
14501         * rtl.h: Adjust.
14503 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14505         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
14506         * rtl.h: Adjust.
14508 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14510         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
14511         * rtl.h: Adjust.
14513 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14515         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
14516         to rtx_insn *.
14517         * rtl.h: Adjust.
14519 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14521         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
14522         to rtx_insn *.
14523         * rtl.h: Likewise.
14525 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14527         * except.c (can_nonlocal_goto): Change type of argument to
14528         rtx_insn *.
14529         * rtl.h: Adjust.
14531 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14533         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
14534         * rtl.h: Adjust.
14536 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14538         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
14539         * cfgrtl.c (can_delete_label_p): Adjust.
14540         * rtl.h: likewise.
14542 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14544         * reorg.c (stop_search_p): Change argument to rtx_insn *.
14546 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14548         * except.c (make_reg_eh_region_note): Change argument to
14549         rtx_insn *.
14550         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
14551         * except.h: Adjust.
14553 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14555         * mode-switching.c (commit_mode_sets): Change type of local
14556         variable from rtx to rtx_insn *.
14558 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
14560         * doc/install.texi (--enable-languages): Add missing jit and lto info.
14561         Add ^ to grep command.
14562         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
14563         arg to last gimple_simplify declaration.  Add missing gimple_build
14564         declaration for built-in function case with four tree args.
14566 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
14567             Szabolcs Nagy  <szabolcs.nagy@arm.com>
14569         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
14570         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
14571         (GNU_USER_DYNAMIC_LINKERN32): Update.
14573 2015-05-08  Richard Biener  <rguenther@suse.de>
14575         PR tree-optimization/66036
14576         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14577         Handle strided group loads.
14578         (vect_verify_datarefs_alignment): Likewise.
14579         (vect_enhance_data_refs_alignment): Likewise.
14580         (vect_analyze_group_access): Likewise.
14581         (vect_analyze_data_ref_access): Likewise.
14582         (vect_analyze_data_ref_accesses): Likewise.
14583         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14584         (vectorizable_load): Likewise.
14586 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
14588         * config/rs6000/rs6000.md: Require operand inequality in one
14589         of the peepholes.
14591 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
14592             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14594         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14595         from (set ...).
14596         * config/rx/rx.md (movdi, movdf): Likewise.
14597         Likewise for define_peephole2s.
14599 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
14601         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14602         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14603         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14604         vtst_u64): Rewrite using gcc vector extensions.
14606 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
14608         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14609         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14611 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
14613         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14615 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14617         * config/glibc-stdint.h (OPTION_MUSL): Define.
14618         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14619         Change the definition based on OPTION_MUSL for 64 bit targets.
14620         * config/linux.h (OPTION_MUSL): Redefine.
14621         * config/alpha/linux.h (OPTION_MUSL): Redefine.
14622         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14623         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14625 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
14626             Szabolcs Nagy  <szabolcs.nagy@arm.com>
14628         * config.gcc (LIBC_MUSL): New tm_defines macro.
14629         * config/linux.h (OPTION_MUSL): Define.
14630         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14631         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14632         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14633         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14634         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14635         * config/linux.opt (mmusl): New option.
14636         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14637         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14638         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14639         * configure: Regenerate.
14641 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
14642             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14644         PR target/48904
14645         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
14646         * config/i386/knetbsd-gnu64.h: New file.
14648 2015-05-08  Marek Polacek  <polacek@redhat.com>
14650         PR c/64918
14651         * doc/invoke.texi: Document -Woverride-init-side-effects.
14653 2015-05-07  Marek Polacek  <polacek@redhat.com>
14655         PR c/65179
14656         * doc/invoke.texi: Document -Wshift-negative-value.
14658 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
14660         * gcov-tool.c (do_merge): Refactore to remove int ret.
14661         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
14662         !type == FUNC to type != FUNC.
14663         * reload.h (struct target_reload): Changee to type of
14664         x_spill_indirect_levels from bool to unsigned char.
14666 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
14668         * rtl.h (always_void_p): New function.
14669         * gengenrtl.c (always_void_p): Likewise.
14670         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
14671         with code foo are always VOIDmode.
14672         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
14673         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
14674         compare-elim.c, config/aarch64/aarch64.c,
14675         config/aarch64/aarch64.md, config/alpha/alpha.c,
14676         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
14677         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
14678         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
14679         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14680         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
14681         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
14682         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
14683         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
14684         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
14685         config/ia64/vect.md, config/iq2000/iq2000.c,
14686         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
14687         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
14688         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
14689         config/mep/mep.c, config/microblaze/microblaze.c,
14690         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
14691         config/mn10300/mn10300.c, config/msp430/msp430.c,
14692         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
14693         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
14694         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
14695         config/rs6000/altivec.md, config/rs6000/rs6000.c,
14696         config/rs6000/rs6000.md, config/rs6000/vector.md,
14697         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
14698         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
14699         config/sh/sh.md, config/sh/sh_treg_combine.cc,
14700         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
14701         config/spu/spu.md, config/stormy16/stormy16.c,
14702         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
14703         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
14704         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
14705         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
14706         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
14707         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
14708         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
14709         var-tracking.c: Update calls accordingly.
14711 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
14713         PR middle-end/192
14714         PR middle-end/54303
14715         * varasm.c (function_mergeable_rodata_prefix): New function.
14716         (mergeable_string_section): Use it.
14717         (mergeable_constant_section): Use it.
14719 2015-05-07  Jeff Law  <law@redhat.com>
14721         PR target/39726
14722         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14723         simplifier to narrow arithmetic.
14724         * generic-match-head.c: (types_match, single_use): New functions.
14725         * gimple-match-head.c: (types_match, single_use): New functions.
14727 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14729         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
14730         rtx type.
14732 2015-05-07  Richard Biener  <rguenther@suse.de>
14734         PR tree-optimization/66002
14735         * passes.def: Schedule another pass_merge_phi after ifcombine, right
14736         before phiopt.
14738 2015-05-07  Marek Polacek  <polacek@redhat.com>
14739             Martin Uecker  <uecker@eecs.berkeley.edu>
14741         * doc/invoke.texi: Document -fsanitize=bounds-strict.
14742         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
14743         into SANITIZE_NONDEFAULT.
14744         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
14746 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
14748         PR target/66015
14749         * config/alpha/alpha.c (alpha_override_options_after_change): New.
14750         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
14751         (alpha_override_options): Move align_loops, align_jumps and
14752         align_functions handling into alpha_override_options_after_change.
14754 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
14755             Chris Jones  <chrisj@nvidia.com>
14756             Joshua Conner  <jconner@nvidia.com>
14758         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
14759         linking of crtfastmath.o.
14760         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
14762 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
14764         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
14765         (cstore<mode>4_unsigned_imm): New expander.
14766         (cstore<mode>4): Remove empty constraint strings.  Use the new
14767         expanders.
14769 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
14771         PR target/64208
14772         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
14773         alternatives.
14775 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14777         * config/aarch64/geniterators.sh: Use standard BRE in sed.
14779 2015-05-06  Alan Modra  <amodra@gmail.com>
14781         PR target/66033
14782         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
14783         (UNSPEC_NOP): Define.
14784         (reload_vsx_from_gpr<mode>): Add missing DONE.
14785         (reload_gpr_from_vsx<mode>): Likewise.
14786         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
14787         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
14789 2015-05-06  Christian Bruel  <christian.bruel@st.com>
14791         PR target/66015
14792         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
14793         align_jumps, align_functions into aarch64_override_options_after_change.
14795 2015-05-06  Richard Biener  <rguenther@suse.de>
14797         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
14798         vect_transform_slp_perm_load to check if we support a permutation
14799         for basic-block vectorization.
14801 2015-05-06  Nick Clifton  <nickc@redhat.com>
14803         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
14804         used, even if it is not being used as a frame pointer.
14806 2015-05-05  Jason Merrill  <jason@redhat.com>
14808         * dwarf2out.c (gen_member_die): Don't emit anything for an
14809         anonymous class constructor.
14811 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
14813         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14814         that it reflects the block structure.
14815         (afdo_propagate_edge): Likewise.
14816         (afdo_calculate_branch_prob): Likewise.
14817         (afdo_annotate_cfg): Likewise.
14818         * cfgcleanup.c (equal_different_set_p): Likewise.
14819         (try_crossjump_to_edge): Likewise.
14820         * cgraph.c (cgraph_node::verify_node): Likewise.
14821         * cgraphunit.c (expand_all_functions): Likewise.
14822         * config/i386/i386.c (ix86_expand_copysign): Likewise.
14823         (exact_dependency_1): Likewise.
14824         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
14825         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
14826         * gensupport.c (process_define_subst): Likewise.
14827         * lto-wrapper.c (merge_and_complain): Likewise.
14828         * tree-if-conv.c (if_convertible_bb_p): Likewise.
14829         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
14830         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
14831         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14832         * tree-vect-loop.c (vectorizable_reduction): Likewise.
14833         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
14834         * tree-vect-stmts.c (vectorizable_shift): Likewise.
14835         * tree-vrp.c (vrp_finalize): Likewise.
14836         * tree.c (variably_modified_type_p): Likewise.
14838 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
14840         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
14841         on darwin12 and later.
14842         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
14843         file to pass -rdynamic on darwin12 and later.
14844         * config/darwin.opt (rdynamic): Add.
14846 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14848         * doc/extend.texi (C Extensions): Update menu for moved Variable
14849         Attributes and Type Attributes sections.
14851 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14853         PR target/65990
14854         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
14855         if rep_8byte stringop strategy was specified for 32-bit target.
14857 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
14859         PR target/65915
14860         * config/i386/i386.md (vector convert to float spltiter): Check for
14861         xmm16+, when splitting scalar float conversion.
14862         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
14864 2015-05-05  Nick Clifton  <nickc@redhat.com>
14866         * config/msp430/msp430-opts.h (enum msp430_regions): New.
14867         * config/msp430/msp430.c (msp430_override_options): Complain if
14868         -mcode-region or -mdata-region is used on a non MSP430X.
14869         (msp430_section_attr): New function.  Checks lower, upper and
14870         either attributes.
14871         (msp430_attribute_table): Add lower, upper and either.
14872         (gen_prefix): New function.  Generates a prefix for a section
14873         name.
14874         (msp430_select_section): New function - handles the choice of
14875         section for an object.  Takes into account memory region
14876         attributes and options.
14877         (msp430_function_section): Use gen_prefix.
14878         (TARGET_SECTION_TYPE_FLAGS): Define.
14879         (msp430_section_type_flags): New function.
14880         (TARGET_ASM_UNIQUE_SECTION): Define.
14881         (msp430_unique_section): New function.
14882         (msp430_output_aligned_decl_common): New function.
14883         (msp430_do_not_relax_short_jumps): New function.
14884         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
14885         Define.
14886         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14887         * config/msp430/msp430-protos.h
14888         (msp430_do_not_relax_short_jumps): New prototype.
14889         (msp430_output_aligned_decl_common): New prototype.
14890         * config/msp430/msp430.md (length): New attribute.
14891         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14892         then use a long code sequence for short jumps.
14893         * config/msp430/msp430.opt (mcode-region): New.
14894         (mdata-region): New.
14895         * doc/invoke.texi: Document new options.
14896         * doc/extend.texi: Document new attributes.
14898 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
14900         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14901         (tune_params): Add field branch_costs.
14902         (aarch64_branch_cost): Declare.
14903         * gcc/config/aarch64.c (generic_branch_cost): New.
14904         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14905         (cortexa53_tunings): Likewise.
14906         (cortexa57_tunings): Likewise.
14907         (thunderx_tunings): Likewise.
14908         (xgene1_tunings): Likewise.
14909         (aarch64_branch_cost): Define.
14910         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14912 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14914         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14915         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14916         * config/i386/i386.md: Ditto.
14917         * config/i386/winnt.c: Ditto.
14919 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
14921         * doc/extend.texi (__atomic Builtins): Move implementation details
14922         to the end of the description, rewrite opening paragraphs, state
14923         difference with __sync builtins, state C11/C++11 assumptions,
14924         weaken itemized descriptions, add explanation of memory model
14925         behaviour, expand description of compare-exchange, simplify text.
14927 2015-05-05  Renlin Li  <renlin.li@arm.com>
14929         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14931 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
14933         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14934         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14935         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14936         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14937         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14938         * configure: Regenerate.
14939         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14940         * doc/install.texi (aarch64*-*-*): Document new
14941         --enable-fix-cortex-a53-843419 option.
14942         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14943         and -mno-fix-cortex-a53-843419 options.
14945 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14947         PR target/65871
14948         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14950 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
14952         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
14953         fix overactive TYPE_MIN_VALUE check and add FIXME for type
14954         compatibility problems.
14956 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
14958         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
14959         constraints.
14960         (cbranchsi4_reg): New.
14961         * config/microblaze/microblaze.c
14962         (microblaze_expand_conditional_branch_reg): New.
14963         * config/microblaze/microblaze-protos.h
14964         (microblaze_expand_conditional_branch_reg): New prototype.
14966 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
14968         * config/microblaze/microblaze.md (peephole2): New.
14970 2015-05-04  Jeff Law  <law@redhat.com>
14972         Revert:
14973         2015-05-04  Jeff Law  <law@redhat.com>
14975         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14976         simplifier to narrow arithmetic.
14977         * generic-match-head.c: (types_match, single_use): New functions.
14978         * gimple-match-head.c: (types_match, single_use): New functions.
14980 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14982         PR target/65987
14983         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
14984         (split_branches): Likewise.
14986 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
14988         * common.opt (fdelete-null-pointer-checks): Init to -1.
14989         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
14990         override flag_delete_null_pointer_checks default.
14991         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
14992         behavior re address zero.  Better document target-specific behavior.
14993         (-fisolate-errneous-paths-dereference): Mention relationship to
14994         -fdelete-null-pointer-checks.
14996 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
14998         PR tree-optimization/65984
14999         * ubsan.c: Include tree-cfg.h.
15000         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
15001         stmt_could_throw_p test, rename can_throw variable to ends_bb.
15003 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
15005         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
15006         to CONST_DOUBLE_P predicate.
15007         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
15008         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
15009         allow only operands that satisfy standard_sse_constant_p predicate.
15010         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
15011         to CONST_DOUBLE_P predicate.
15013 2015-05-04  Jeff Law  <law@redhat.com>
15015         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
15016         simplifier to narrow arithmetic.
15017         * generic-match-head.c: (types_match, single_use): New functions.
15018         * gimple-match-head.c: (types_match, single_use): New functions.
15020 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
15022         * config/arm/arm.c: Restore bootstrap.
15024 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
15026         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
15027         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
15028         as CONST_WIDE_INT, not CONST_DOUBLE.
15029         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
15030         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
15031         (ix86_find_base_term): Do not check for CONST_DOUBLE.
15032         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
15033         (ix86_build_signbit_mask): Rewrite using wide ints.
15034         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
15035         (ix86_rtx_costs): Handle CONST_WIDE_INT.
15036         (find_constant): Ditto.
15037         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
15038         using gen_int_mode.
15039         * config/i386/predicates.md (x86_64_immediate_operand)
15040         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
15041         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
15042         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
15043         (const0_operand): Also match const_wide_int.
15044         (constm1_operand): Ditto.
15045         (const1_operand): Ditto.
15047 2015-05-04  Richard Biener  <rguenther@suse.de>
15049         PR tree-optimization/65965
15050         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
15051         store groups at gaps.
15053 2015-05-04  Richard Biener  <rguenther@suse.de>
15055         PR tree-optimization/65935
15056         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
15057         then make sure to apply that swapping to the IL.
15059 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
15061         * Makefile.in (PATCHLEVEL_c): New variable.
15062         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
15063         expand the same way as if DEVPHASE_c was non-empty.
15065 2015-05-04  Kai Tietz  <ktietz@redhat.com>
15067         PR target/65559
15068         * lto-wrapper.c (run_gcc): Open filename
15069         in binary-mode.
15071 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
15073         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
15074         sections up in file, to immediately after the Function Attributes
15075         section.
15077 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
15079         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
15081 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15083         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
15084         (insert_partition_copy_on_edge): Adjust.
15085         (insert_rtx_to_part_on_edge): Likewise.
15086         (insert_part_to_rtx_on_edge): Likewise.
15088 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15090         * function.c (set_return_jump_label): Change type of argument to
15091         rtx_insn *.
15092         * function.h (set_return_jump_label): Adjust.
15094 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15096         * reload.h (struct reg_equivs_t): Change type of init to
15097         rtx_insn *.
15098         * ira.c (fix_reg_equiv_init): Adjust.
15099         * reload1.c (eliminate_regs_1): Likewise.
15100         (init_eliminable_invariants): Likewise.
15102 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15104         * cselib.c (fp_setter_insn): Take a rtx_insn *.
15105         * cselib.h (fp_setter_insn): Adjust.
15107 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15109         * recog.c (struct validate_replace_src_data): Change type of
15110         insn field to rtx_insn *.
15111         (validate_replace_src_group): Change type of argument to rtx_insn *.
15112         * recog.h (validate_replace_src_group): Adjust.
15114 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15116         * haifa-sched.c: Change the type of some variables to rtx_insn *.
15117         * sched-deps.c: Likewise.
15118         * sched-int.h: Likewise.
15119         * sched-rgn.c: Likewise.
15120         * sel-sched.c: Likewise.
15122 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15124         to rtx_insn *.
15125         * config/i386/i386.c: Change the type of some arguments to
15126         rtx_insn *.
15127         * config/arm/arm.c: Likewise.
15129 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15131         * lra-constraints.c: Change type of some arguments to rtx_insn *.
15133 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15135         * regcprop.c (kill_autoinc_value): Change type of argument to
15136         rtx_insn *.
15138 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15140         * genrecog.c (print_subroutine): Adjust.
15141         * recog.c (get_bool_attr_mask_uncached): Likewise.
15142         * recog.h (struct recog_data_d): Change the type of insn to
15143         rtx_insn *.
15145 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15147         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
15149 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15151         * df-problems.c (df_set_note): Change type of argument to
15152         rtx_insn *.
15154 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15156         * builtins.c (expand_builtin_trap): Change type of local
15157         variable to rtx_insn *.
15158         (add_sched_insns_for_speculation): Likewise.
15159         (ix86_emit_save_regs): Likewise.
15160         (get_scratch_register_on_entry): Likewise.
15161         (ix86_emit_restore_reg_using_pop): Likewise.
15162         (ix86_emit_leave): Likewise.
15163         (ix86_emit_restore_regs_using_mov): Likewise.
15164         (ix86_expand_epilogue): Likewise.
15165         Likewise.
15166         (rl78_alloc_physical_registers_umul): Likewise.
15167         * cselib.c (discard_useless_locs): Likewise.
15168         (cselib_invalidate_regno): Likewise.
15169         (cselib_invalidate_mem): Likewise.
15170         * function.c (expand_function_start): Likewise.
15171         (emit_use_return_register_into_block): Likewise.
15172         * gcse.c: Likewise.
15173         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
15174         * ifcvt.c (noce_get_alt_condition): Likewise.
15175         * loop-doloop.c (doloop_condition_get): Likewise.
15176         * lra-constraints.c (inherit_in_ebb): Likewise.
15177         * modulo-sched.c (sms_schedule_by_order): Likewise.
15178         * recog.c (next_insn_tests_no_inequality): Likewise.
15179         * reorg.c (emit_delay_sequence): Likewise.
15180         (update_reg_dead_notes): Likewise.
15181         (fix_reg_dead_note): Likewise.
15182         (fill_slots_from_thread): Likewise.
15183         (delete_computation): Likewise.
15185 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
15187         * doc/extend.texi (Variable Attributes): Add menu and proper
15188         @nodes to subsections.  Move Microsoft Windows attributes to
15189         their own subsection.
15190         (Type Attributes): Reorganize introduction to remove duplicate
15191         list of attributes.  Add menu and proper @nodes to subsections.
15192         Alphabetize the main table of common attributes.
15194 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
15196         * match.pd: New simplification patterns.
15197         (x + (x & 1))  -> ((x + 1) & ~1)
15198         (x & ~(x & y)) -> ((x & ~y))
15199         (x | ~(x | y)) -> ((x | ~y))
15201 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15203         * target.def (attribute_table): Mention that struct attribute_spec
15204         is defined in tree-core.h rather than tree.h
15205         * doc/tm.texi: Regenerate.
15207 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
15209         * genrecog.c (test): Rename to rtx_test.  Update rest of file
15210         accordingly.
15212 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
15214         PR translation/65959
15215         * params.h (DEFPARAM): Rename msgid to nocmsgid.
15217 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
15219         * gcc/config/aarch64/aarch64-protos.h (tune_params):
15220         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
15221         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
15222         Return value depending on target.
15223         (generic_tunings): Initialize new target settings.
15224         (cortexa53_tunings): Likewise.
15225         (cortexa57_tunings): Likewise.
15226         (thunderx_tunings): Likewise.
15227         (xgene1_tunings): Likewise.
15229 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
15231         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
15232         Make Cortex-A53 shift costs more accurate.
15234 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15236         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
15237         UNSIGNED_FLOAT.
15239 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
15241         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
15242         Calculate cost of op0 and op1 in PLUS and MINUS cases.
15244 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15246         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15247         Add cost of op0 in the compare-with-fpzero case.
15249 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
15251         * builtins.c (fold_builtin_1): Remove spurious second
15252         semicolon.
15253         * cgraph.h (symtab_node::get_availability): Likewise.
15254         * opts.c (common_handle_option): Remove spurious second semicolon.
15255         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15256         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15258 2015-04-30  Caroline Tice  <cmtice@google.com>
15260         PR gcov-profile/65929
15261         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
15262         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
15263         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
15264         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
15265         * doc/tm.texi: Regenerate.
15266         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
15267         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
15268         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
15269         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
15271 2015-04-30  Marek Polacek  <polacek@redhat.com>
15273         * varasm.c (handle_cache_entry): Fix logic.
15275 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15277         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
15278         (*extrsi5_insn_uxtw_alt): Likewise.
15279         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
15280         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
15281         operations.
15283 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15285         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
15286         fabd in ABS case.
15288 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15290         * config/aarch64/aarch64.md
15291         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
15292         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
15293         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
15294         appropriately.  Handle alternative EON form.
15296 2015-04-30  Renlin Li  <renlin.li@arm.com>
15298         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
15299         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
15301 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
15303         PR ipa/65873
15304         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
15305         -fstrict-aliasing boundaries.
15307 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15309         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
15310         and [SU]MNEGL patterns.
15312 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15314         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
15315         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
15316         combined arithmetic-shift ops.  Properly handle all shift and extend
15317         operations that can occur in combination with PLUS/MINUS.
15318         Rename maybe_fma to compound_p.
15319         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
15320         arithmetic and shift operations.
15322 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15324         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
15325         rather than arith_shift cost when costing ADD/MINUS of an
15326         extended value.
15328 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
15330         PR lto/65948
15331         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
15332         to itself.
15334 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
15336         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
15337         are for the same position.
15339 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
15341         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
15342         vectorize_loops.
15343         (vectorize_loops): Use it.
15345 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
15347         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
15348         for aggregate types.
15349         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
15350         type to be non_ODR.
15351         * tree.c (need_assembler_name_p): Compute mangled name for
15352         non-fundamental types and integer types.
15354 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
15356         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
15357         manual swaps.
15358         * expr.c (expand_expr_real_2): Likewise.
15360 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
15362         * tree.c (build_common_builtin_nodes): Do not build
15363         __builtin_alloca_with_align as equivalent of library alloca.
15365 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
15367         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
15368         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
15369         bugus variants.
15370         * tree.c: Include print-tree.h and ipa-utils.h
15371         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
15372         (free_lang_data_in_cgraph): Call verify_type.
15373         (verify_type_variant): New function.
15374         (verify_type): New function.
15375         * tree.h (verify_type): Declare.
15377 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
15379         * config/mips/mips-cpus.def: (mips4): Change default processor
15380         from PROCESSOR_R8000 to PROCESSOR_R10000.
15382 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
15384         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
15385         la/jalr instead of jal.
15387 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
15389         PR target/65871
15390         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
15391         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
15392         (setcc+movzbl peephole2): Check also clobbered reg.
15393         (setcc+andl peephole2): Ditto.
15395 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
15397         PR libgomp/65099
15398         * config/nvptx/mkoffload.c (target_ilp32): New variable.
15399         (main): Set it depending on "-foffload-abi=[...]".
15400         (compile_native, main): Use it to pass "-m32" or "-m64" to the
15401         compiler.
15403 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
15405         PR target/65770
15406         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
15407         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
15408         Flip lane index back at assembly time for bigendian.
15410 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
15412         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
15413         * gimplify.c (gimplify_omp_workshare): Use it.
15415 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
15417         * Makefile.in (build/genrecog.o): Depend on inchash.h.
15418         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
15419         build/inchash.o
15420         * genrecog.c: Rewrite most of the code except for the third page.
15422 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
15424         * inchash.h, inchash.c: Include bconfig.h for build objects.
15425         * Makefile.in (build/inchash.o): New rule.
15427 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
15429         PR target/65924
15430         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
15431         number in type attribute expression.
15433 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
15435         * loop-iv.c (canon_condition): Generalize to all types of integer
15436         constant.
15438 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
15440         * gimple-walk.c: Prune duplicate or unneeded includes.
15441         (walk_gimple_asm): Only call parse_input_constraint or
15442         parse_output_constraint if their findings are used.
15443         Honour parse_input_constraint and parse_output_constraint
15444         result.
15446 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
15448         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
15450 2015-04-29  Tom de Vries  <tom@codesourcery.com>
15452         PR tree-optimization/65893
15453         * passes.def (pass_all_optimizations): Move pass_stdarg to after
15454         pass_dce.
15456 2015-04-29  Richard Biener  <rguenther@suse.de>
15458         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15459         compute GROUP_SIZE for basic-block SLP.
15460         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
15461         take into account gaps.
15462         (vect_get_mask_element): Properly reject references to previous
15463         vectors.
15464         (vect_transform_slp_perm_load): Likewise.
15466 2015-04-29  Christian Bruel  <christian.bruel@st.com>
15468         PR target/64835
15469         * config/i386/i386.c (ix86_default_align): New function.
15470         (ix86_override_options_after_change): Call ix86_default_align.
15471         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
15472         (ix86_override_options_after_change): New function.
15474 2015-04-28  Jeff Law  <law@redhat.com>
15476         * tree-ssa-dom.c (record_equality); Fix comment typos.
15478 2015-04-28  Tom de Vries  <tom@codesourcery.com>
15480         PR tree-optimization/65887
15481         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
15483 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
15485         * doc/extend.texi (Declaring Attributes of Functions): Split into
15486         subsections by target.  Alphabetize the table of common attributes.
15487         Rewrite some of the introductory text to reflect the new structure.
15488         Update some cross-references to point to the new subsections.
15489         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
15490         duplicate copies in the discussion of function, label, and type
15491         attributes.
15493 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
15495         PR bootstrap/65910
15496         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
15498 2015-04-28  Jason Merrill  <jason@redhat.com>
15500         PR c++/65734
15501         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
15502         (finalize_type_size): Respect TYPE_USER_ALIGN.
15503         (layout_type) [ARRAY_TYPE]: Likewise.
15505 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
15507         * config/arm/arm.md (*arm_movt): Fix type attribute.
15508         (*cmpsi_shiftsi): Likewise.
15509         (*cmpsi_shiftsi_swp): Likewise.
15510         (*movsicc_insn): Likewise.
15511         (*cond_move): Likewise.
15512         (*if_plus_move): Likewise.
15513         (*if_move_plus): Likewise.
15514         (*if_arith_move): Likewise.
15515         (*if_move_arith): Likewise.
15516         (*if_shift_move): Likewise.
15517         (*if_move_shift): Likewise.
15518         (*arm_movtas_ze): Likewise.
15519         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
15520         redundancy and type attribute.
15521         (*thumb2_movsi_insn): Fix type attribute.
15522         (*thumb2_addsi_short): Likewise.
15523         (thumb2_addsi3_compare0): Likewise.
15524         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
15525         attributes accordingly.
15527 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
15529         PR other/65911
15530         * function.c (pad_to_arg_alignment): Add parentheses.
15532 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
15534         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
15535         libgcc/config/frv/elf-lib.h.
15537 2015-04-28  Tom de Vries  <tom@codesourcery.com>
15539         * tree-call-cdce.c: Fix example in header comment.
15541 2015-04-28  Richard Biener  <rguenther@suse.de>
15543         PR tree-optimization/62283
15544         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
15545         fails fatally and we are vectorizing a basic-block simply
15546         cause the child to be constructed piecewise.
15547         (vect_analyze_slp_cost_1): Adjust.
15548         (vect_detect_hybrid_slp_stmts): Likewise.
15549         (vect_bb_slp_scalar_cost): Likewise.
15550         (vect_get_constant_vectors): For piecewise constructed
15551         constants place them after the last def.
15552         (vect_get_slp_defs): Adjust.
15553         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
15554         externals for basic-block vectorization.
15556 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15558         PR target/63503
15559         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
15560         aarch64-*-*.
15561         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
15562         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
15563         (AARCH64_TUNE_FMA_STEERING): Likewise.
15564         * config/aarch64/aarch64-cores.def: Set
15565         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
15566         FMUL/FMADD instructions.
15567         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
15568         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
15569         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
15570         * config/aarch64/cortex-a57-fma-steering.h: New file.
15571         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15573 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
15575         * gensupport.c (std_preds): Add missing codes to address_operand entry.
15577 2015-04-28  Richard Biener  <rguenther@suse.de>
15579         PR tree-optimization/65851
15580         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15581         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
15582         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
15583         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15584         (ccp_visit_phi_node): Adjust.
15585         (evaluate_stmt): For simplifications to SSA names return its
15586         lattice value if that isn't VARYING.  Return immediately when
15587         simplified to a constant.
15588         (visit_assignment): Adjust.
15589         (ccp_visit_stmt): Likewise.
15591 2015-04-28  Tom de Vries  <tom@codesourcery.com>
15593         PR tree-optimization/65818
15594         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15595         evaluated.
15597 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15599         * calls.c (save_fixed_argument_area): Don't check
15600         ARGS_GROW_DOWNWARD with the preprocessor.
15601         (restore_fixed_argument_area): Likewise.
15602         (mem_overlaps_already_clobbered_arg_p): Likewise.
15603         (check_sibcall_argument_overlap): Likewise.
15604         (expand_call): Likewise.
15605         (emit_library_call_value_1): Likewise.
15606         (store_one_arg): Likewise.
15607         * function.c (assign_parms): Likewise.
15608         (locate_and_pad_parm): Likewise.
15609         (pad_to_arg_alignment): Likewise.
15610         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15612 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15614         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15615         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15616         * calls.c (save_fixed_argument_area): Don't chekc if
15617         ARGS_GROW_DOWNWARD is defined.
15618         (restore_fixed_argument_area): Likewise.
15619         (mem_overlaps_already_clobbered_arg_p): Likewise.
15620         (check_sibcall_argument_overlap): Likewise.
15621         (expand_call): Likewise.
15622         (emit_library_call_value_1): Likewise.
15623         (store_one_arg): Likewise.
15624         * function.c (assign_parms): Likewise.
15625         (locate_and_pad_parm): Likewise.
15626         (pad_to_arg_alignment): Likewise.
15627         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15629 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15631         * defaults.h (gen_epilogue): New function.
15632         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15633         defined.
15634         * cfgrtl.c (cfg_layout_finalize): Likewise.
15635         * df-scan.c: Likewise.
15636         * function.c (thread_prologue_and_epilogue_insns): Likewise.
15637         (reposition_prologue_and_epilogue_notes): Likewise.
15638         * reorg.c (find_end_label): Likewise.
15639         * toplev.c: Likewise.
15641 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15643         * bb-reorder.c (HAVE_return): Don't check if its undefined.
15644         * defaults.h (gen_simple_return): New function.
15645         (gen_simple_return): Likewise.
15646         (HAVE_return): Add default definition to false.
15647         (HAVE_simple_return): Likewise.
15648         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
15649         HAVE_return and HAVE_simple_return are defined.
15650         * function.c (gen_return_pattern): Likewise.
15651         (convert_jumps_to_returns): Likewise.
15652         (thread_prologue_and_epilogue_insns): Likewise.
15653         * reorg.c (find_end_label): Likewise.
15654         (dbr_schedule): Likewise.
15655         * shrink-wrap.c: Likewise.
15656         * shrink-wrap.h: Likewise.
15658 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15660         * defaults.h (EPILOGUE_USES): Add default definition of false.
15661         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
15662         * resource.c (init_resource_info): Likewise.
15664 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15666         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
15667         to false.
15668         * dwarf2out.c (field_byte_offset): REmove check if
15669         PCC_BITFIELD_TYPE_MATTERS is defined.
15670         * stor-layout.c (layout_decl): Likewise.
15671         (update_alignment_for_field): Likewise.
15672         (place_field): Likewise.
15674 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15676         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
15677         true.
15678         * regrename.c (check_new_reg_p): Remove check if
15679         HARD_REGNO_RENAME_OK is defined.
15680         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
15682 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15684         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
15685         * cse.c (fold_rtx): Likewise.
15686         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
15687         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
15688         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
15689         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
15690         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
15691         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
15692         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
15693         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
15694         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
15695         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
15696         * Likewise.
15697         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
15698         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
15699         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
15700         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
15701         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
15702         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
15703         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
15704         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
15705         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
15706         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
15707         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
15708         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
15709         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
15710         * doc/tm.texi: Regenerate.
15711         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
15712         either true or false.
15714 2015-04-27  Jeff Law  <law@redhat.com>
15716         PR tree-optimization/65217
15717         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
15718         of them has a single use, make sure it is the LHS of the implied
15719         copy.
15721 2015-04-28  Alan Modra  <amodra@gmail.com>
15723         PR target/65810
15724         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
15725         (offsettable_ok_by_alignment): Use minimum of decl and toc
15726         pointer alignment.  Replace dead code with assertion.
15727         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
15728         case if size exceeds toc pointer alignment.
15729         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
15730         (rs6000_emit_move): Likewise.
15731         * configure.ac: Add linker toc pointer alignment check.
15732         * configure: Regenerate.
15733         * config.in: Regenerate.
15735 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
15737         * config.gcc: Add h8300-*-linux.
15738         * config/h8300/linux.h: New.
15739         * config/h8300/t-linux: New.
15740         * config/h8300/h8300.c (h8300_option_override): Normal mode
15741         is not supported for h8300-*-linux.
15742         (h8300_file_start): Target priority change.
15743         (get_shift_alg): Likewise.
15744         (h8300_shift_need_scratch_p): Likewise.
15745         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15746         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
15748 2015-04-27  Caroline Tice  <cmtice@google.com>
15750         * final.c (final_scan_insn):  Output cold_function_name as function
15751         type.
15752         * varasm.c (cold_function_name):  Make global.
15753         (assemble_start_function):  Re-set cold_function_name.
15754         (assemble_end_function): Output cold partition size.
15755         * varasm.h (cold_function_name):  Declare global.
15757 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
15759         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
15760         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
15761         constraint.
15762         (*movxi_internal_avx512f): Ditto.
15763         (define_split): Check for xmm16+, when splitting scalar float_extend.
15764         (*extendsfdf2_mixed): Use "v" constraint.
15765         (define_split): Check for xmm16+, when splitting scalar float_truncate.
15766         (*truncdfsf_fast_sse): Use "v" constraint.
15767         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
15768         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
15769         (define_peephole2): Check for xmm16+, when converting scalar
15770         float_truncate.
15771         (define_peephole2): Check for xmm16+, when converting scalar
15772         float_extend.
15773         (*fop_<mode>_comm_mixed): Use "v" constraint.
15774         (*fop_<mode>_comm_sse): Ditto.
15775         (*fop_<mode>_1_mixed): Ditto.
15776         (*sqrt<mode>2_sse): Ditto.
15777         (*ieee_s<ieee_maxmin><mode>3): Ditto.
15779 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15781         * combine.c (simplify_if_then_else): Use std::swap instead
15782         of manually swapping.
15783         (known_cond): Likewise.
15784         (simplify_comparison): Likewise.
15786 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
15788         PR target/64579
15789         * config/rs6000/htm.md: Remove all define_expands.
15790         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
15791         UNSPECV_HTM_TABORTWCI): Remove.
15792         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
15793         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
15794         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
15795         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
15796         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
15797         tabortwci_internal): Remove define_insns.
15798         (tabort<wd>c, tabort<wd>ci): New define_insns.
15799         (tabort): Use gpc_reg_operand.
15800         (tcheck): Remove operand.
15801         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
15802         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
15803         expected value.
15804         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
15805         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
15806         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
15807         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
15808         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
15809         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
15810         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
15811         (tcheck): Remove builtin argument.
15812         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
15813         not TARGET_64BIT.
15814         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
15815         tabortdc and tabortdci builtins when not in 64-bit mode.
15816         Modify code to handle the loss of the HTM define_expands.
15817         Emit code to copy the CR register to TARGET.
15818         (htm_init_builtins): Modify code to handle the loss of the HTM
15819         define_expands.
15820         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
15821         (RS6000_BTC_64BIT): Likewise.
15822         (RS6000_BTC_CR): New macro.
15823         * doc/extend.texi: Update documentation for htm builtins.
15825 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15827         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
15828         of manually swapping.
15829         (simplify_associative_operation): Likewise.
15830         (simplify_binary_operation): Likewise.
15831         (simplify_plus_minus): Likewise.
15832         (simplify_relational_operation): Likewise.
15833         (simplify_ternary_operation): Likewise.
15835 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
15837         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
15838         (xs_hi_nonmemory_operand): Remove error.
15839         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
15840         general_operand rather than xs_hi_general_operand.
15842 2015-04-27  Richard Biener  <rguenther@suse.de>
15844         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
15845         (record_equivalences_from_stmt): Valueize rhs.
15846         (record_equality): Canonicalize x and y order via
15847         tree_swap_operands_p.  Do not swap operands for same loop depth.
15849 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
15851         PR target/65296
15852         PR target/65895
15853         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
15854         Add hint how to use own spec file.
15856 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
15858         PR tree-optimization/65875
15859         * tree-vrp.c (update_value_range): If in is_new case setting
15860         old_vr to VR_VARYING, also set new_vr to it.  Remove
15861         old_vr->type == VR_VARYING test.
15862         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
15863         SSA_PROP_INTERESTING if update_value_range returned true,
15864         but new range is VR_VARYING.
15866 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15868         * combine.c (sign_extend_short_imm): New.
15869         (set_nonzero_bits_and_sign_copies): Use above new function for sign
15870         extension of src short immediate.
15871         (reg_nonzero_bits_for_combine): Likewise for tem.
15873 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15875         * stor-layout.c (self_referential_component_ref_p): New predicate.
15876         (copy_self_referential_tree_r): Use it.
15877         (self_referential_size): Punt for simple operations directly involving
15878         self-referential component references.
15879         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
15881 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15883         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
15885 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
15887         * vec.h (vec): Make splice arguments const.  Update definitions
15888         accordingly.
15890 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
15892         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15893         alternatives.
15895 2015-04-26  Tom de Vries  <tom@codesourcery.com>
15897         PR tree-optimization/65826
15898         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15900 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
15902         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15903         (*madd3<mode>): Ditto.
15904         (*msub4<mode>): Ditto.
15905         (*msub3<mode>): Ditto.
15906         (*nmadd4<mode>): Ditto.
15907         (*nmadd3<mode>): Ditto.
15908         (*nmadd4<mode>_fastmath): Ditto.
15909         (*nmadd3<mode>_fastmath): Ditto.
15910         (*nmsub4<mode>): Ditto.
15911         (*nmsub3<mode>): Ditto.
15912         (*nmsub4<mode>_fastmath): Ditto.
15913         (*nmsub3<mode>_fastmath): Ditto.
15915 2015-04-24  Jason Merrill  <jason@redhat.com>
15917         PR c++/50800
15918         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15919         down when building TYPE_CANONICAL.
15920         (build_pointer_type_for_mode): Likewise.
15922 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
15924         * genrecog.c (validate_pattern): Check matching constraint refers
15925         to a lower numbered operand.
15927 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15929         PR target/65849
15930         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15931         save to independent variables use the Save attribute.  This will
15932         allow these options to be modified with the #pragma/attribute
15933         target support.
15934         (-mallow-movmisalign): Likewise.
15935         (-mallow-df-permute): Likewise.
15936         (-msched-groups): Likewise.
15937         (-malways-hint): Likewise.
15938         (-malign-branch-targets): Likewise.
15939         (-mvectorize-builtins): Likewise.
15940         (-msave-toc-indirect): Likewise.
15942         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15943         can be set via the #pragma/attribute target support.
15944         (rs6000_opt_vars): Likewise.
15945         (rs6000_inner_target_options): If VSX was set, also set
15946         -mno-avoid-indexed-addresses.
15948 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15950         * config/arm/iterators.md (shiftable_ops): Rename to...
15951         (SHIFTABLE_OPS): ... This.  Update use in comments.
15952         (ior_xor): Rename to...
15953         (IOR_XOR): ... This.
15954         (vqh_ops): Rename to...
15955         (VQH_OPS): ... This.
15956         (vqhs_ops): Rename to...
15957         (VQHS_OPS): ... This.
15958         (rshifts): Rename to...
15959         (RSHIFTS): ... This.
15960         (returns): Rename to...
15961         (RETURNS): ... This.
15962         * config/arm/arm.md: Update uses of the above.
15963         * config/arm/neon.md: Likewise.
15965 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15967         * config.host (case ${host}): Add aarch64*-*-linux case.
15968         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
15969         fields to all the cores.
15970         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
15971         Add MCPU_MTUNE_NATIVE_SPECS.
15972         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
15973         field to all extensions.
15974         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
15975         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
15976         Adjust definition of AARCH64_OPT_EXTENSION.
15977         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
15978         (MCPU_MTUNE_NATIVE_SPECS): Define.
15979         * config/aarch64/driver-aarch64.c: New file.
15980         * config/aarch64/x-arch64: New file.
15981         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
15982         -mtune and -march.
15984 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
15985             Wei Mi  <wmi@google.com>
15987         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
15988         * config/i386/i386.c (extract_base_offset_in_addr): New function.
15989         (ix86_operands_ok_for_move_multiple): Ditto.
15990         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
15991         (movlpd/movhpd to movupd peephole2): Ditto.
15993 2015-04-24  Marek Polacek  <polacek@redhat.com>
15995         PR c/61534
15996         * input.h (from_macro_expansion_at): Define.
15998         PR c/63357
15999         * doc/invoke.texi: Update description of -Wlogical-op.
16001 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16003         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
16004         ternary operator in fprintf and harmonize spacing.
16006 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
16008         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
16009         Mark operand1 commutative.
16011 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
16013         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
16014         input operands in memory.
16015         (*vec_concatv2si_sse4_1): Ditto.
16016         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
16017         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
16018         register_operand.
16019         (vec_extract_hi_v32hi): Ditto.
16020         (vec_extract_hi_v64hi): Ditto.
16021         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
16023 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16024             Steven Bosscher <steven@gcc.gnu.org>
16026         PR rtl-optimization/34503
16027         * cprop.c (cprop_reg_p): New.
16028         (hash_scan_set): Use above function to check if register can be
16029         propagated.
16030         (find_avail_set): Return up to two sets, one whose source is a
16031         register and one whose source is a constant.  Sets are returned in an
16032         array passed as parameter rather than as a return value.
16033         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
16034         sets returned by find_avail_set, starting with the one whose source is
16035         a constant. Use cprop_reg_p to check if register can be propagated.
16036         (do_local_cprop): Use cprop_reg_p to check if register can be
16037         propagated.
16038         (implicit_set_cond_p): Likewise.
16040 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
16042         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
16043         (sem_function::equals): IGNORED_NODES parameter is now unused;
16044         update call of equals_private.
16045         (sem_function::equals_private): Do not call equals_wpa; skip
16046         gimple body matching if there is no body.
16047         (sem_function::init): Add logic to hash tthunk info.
16048         (sem_function::parse): Also parse thunks.
16049         * ipa-icf.h (equals_private): Update declaration.
16051 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16053         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
16054         asterisk from name so this can be generated directly.
16055         (*altivec_stvx_<mode>_internal): Likewise.
16056         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
16057         that this is never called during or after reload/lra.
16058         (rs6000_frame_related): Remove split_reg
16059         argument and logic that references it.
16060         (emit_frame_save): Remove last parameter from call to
16061         rs6000_frame_related.
16062         (rs6000_emit_prologue): Remove last parameter from eight calls to
16063         rs6000_frame_related.  Force generation of stvx instruction for
16064         Altivec register saves.  Remove split_reg handling, which is no
16065         longer needed.
16066         (rs6000_emit_epilogue):  Force generation of lvx instruction for
16067         Altivec register restores.
16069 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16071         * config/rs6000/rs6000.opt (mcrypto): Change option description to
16072         match category changes in ISA 2.07B.
16074 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16076         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
16077         iterators.
16078         (cmp_op, cmp_type): New code attributes.
16079         (NEON_VCMP, NEON_VACMP): New int iterators.
16080         (cmp_op_unsp): New int attribute.
16081         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
16082         (neon_vceq<mode>): Delete.
16083         (neon_vc<cmp_op><mode>_insn): New pattern.
16084         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
16085         (neon_vcgeu<mode>): Delete.
16086         (neon_vcle<mode>): Likewise.
16087         (neon_vclt<mode>: Likewise.
16088         (neon_vcage<mode>): Likewise.
16089         (neon_vcagt<mode>): Likewise.
16090         (neon_vca<cmp_op><mode>): New define_expand.
16091         (neon_vca<cmp_op><mode>_insn): New pattern.
16092         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
16094 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
16096         * tree.h (attribute_value_equal): Declare.
16097         * tree.c (attribute_value_equal): Export.
16099 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
16101         * ipa-icf.c (sem_item::compare_attributes): New function.
16102         (sem_item::compare_referenced_symbol_properties): Compare variable
16103         attributes.
16104         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
16105         (sem_function::param_used_p): New function.
16106         (sem_function::equals_wpa): Fix attribute comparsion; match
16107         parameter type codes; do not compare paremter flags when
16108         they are not used; compare edge flags; compare indirect calls.
16109         (sem_item::update_hash_by_addr_refs): Hash reference type.
16110         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
16111         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
16112         reference use type.
16113         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
16114         * ipa-icf.h (compare_attributes, param_used_p): Declare.
16116 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
16118         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
16119         cleanup.
16120         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
16121         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
16122         (sem_item::compare_referenced_symbol_properties): New.
16123         (sem_item::hash_referenced_symbol_properties): New.
16124         (sem_item::compare_cgraph_references): Rename to ...
16125         (sem_item::compare_symbol_references): ... this one; use
16126         compare_referenced_symbol_properties.
16127         (sem_function::equals_wpa): Do not compare
16128         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
16129         DECL_IS_OPERATOR_NEW; compare pointer sizes.
16130         (sem_item::update_hash_by_addr_refs): Call
16131         hash_referenced_symbol_properties.
16132         (sem_item::update_hash_by_local_refs): Cleanup.
16133         (sem_function::merge): Do not mix up symbol properties.
16134         (sem_variable::equals_wpa): Use compare_symbol_references.
16135         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
16136         (sem_item::hash_referenced_symbol_properties): New.
16137         (sem_item::compare_symbol_references): New.
16138         (sem_item::compare_cgraph_references): Remove.
16140 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
16142         PR target/26702
16143         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
16144         Emit size of local.
16146 2015-04-23  Nick Clifton  <nickc@redhat.com>
16148         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
16149         ATTRIBUTE_UNUSED to x parameter.
16150         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
16152 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16154         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
16155         TARGET_CRYPTO to TARGET_P8_VECTOR>
16156         (crypto_vpermxor_<mode>): Likewise.
16157         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
16158         (BU_CRYPTO_3A): Likewise.
16159         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
16160         (BU_CRYPTO_OVERLOAD_3A): New #define.
16161         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
16162         (VPMSUMH): Likewise.
16163         (VPMSUMW): Likewise.
16164         (VPMSUMD): Likewise.
16165         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
16166         (VPERMXOR_V4SI): Likewise.
16167         (VPERMXOR_V8HI): Likewise.
16168         (VPERMXOR_V16QI): Likewise.
16169         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
16170         BU_CRYPTO_OVERLOAD_2A.
16171         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
16172         BU_CRYPTO_OVERLOAD_3A.
16173         * config/rs6000/rs6000.opt (mcrypto): Change description of
16174         option.
16176 2015-04-23  Richard Biener  <rguenther@suse.de>
16178         * passes.def: Remove copy propagation passes run directly after CCP.
16179         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
16180         SSA names.
16181         (ccp_visit_phi_node): Rework to handle first executable edge
16182         specially.
16184 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
16186         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16187         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
16188         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
16189         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
16190         (thumb_legimitimize_reload_address): Remove.
16191         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
16192         Remove.
16193         (thumb_legimitimize_reload_address): Remove.
16195 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16197         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
16199 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16201         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
16202         MAX_LDM_STM_OPS.
16203         (store_multiple): Likewise.
16205 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16207         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
16208         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
16209         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
16210         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
16211         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
16212         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
16213         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
16214         Specify issue_rate value.
16215         (arm_issue_rate): Look up issue rate from tuning structs. Remove
16216         large switch statement.
16217         (arm_marvell_pj4_tune): New struct.
16218         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
16219         struct.
16221 2015-04-23  Richard Biener  <rguenther@suse.de>
16223         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
16224         (vect_find_last_store_in_slp_instance): Rename to ...
16225         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
16226         (vect_analyze_slp_cost_1): Use vector_load for constant defs
16227         and vec_construct for external defs when estimating prologue cost.
16228         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
16229         Compute costs here only when vectorizing loops.
16230         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
16231         have been determined.
16232         (vect_schedule_slp_instance): Simplify vectorized code placement
16233         and prepare for in-BB external defs.
16234         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
16235         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
16236         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
16237         guard.
16238         (vect_model_load_cost): Likewise.
16239         (vectorizable_store): Instead add it here.
16240         (vectorizable_load): Likewise.
16241         (vect_is_simple_use): Dump def type textually.
16243 2015-04-23  Richard Biener  <rguenther@suse.de>
16245         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
16246         * cfgloop.c (verify_loop_structure): Verify the root loop node.
16247         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
16248         instead of get_eh_region_from_lp_number.
16249         * loop-init.c (fix_loop_structure): If we removed a loop, reset
16250         the SCEV cache.
16252 2015-04-23  Anton Blanchard  <anton@samba.org>
16254         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
16255         need for -mprofile-kernel to save LR to stack.
16257 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16259         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
16260         adjustments.
16261         (insn_is_swappable_p): Return 1 for a convert from double to
16262         single precision when all of its uses are splats of BE element
16263         zero.
16265 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16267         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
16269 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16271         PR target/65456
16272         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
16273         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
16274         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
16275         option.
16276         (rs6000_builtin_mask_for_load): Return 0 for targets with
16277         efficient unaligned VSX accesses so that the vectorizer will use
16278         direct unaligned loads.
16279         (rs6000_builtin_support_vector_misalignment): Always return true
16280         for targets with efficient unaligned VSX accesses.
16281         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
16282         stores on targets with efficient unaligned VSX accesses is almost
16283         always the same as the cost of an aligned load or store, so model
16284         it that way.
16285         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
16286         unaligned vectors if we have efficient unaligned VSX accesses.
16287         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
16288         undocumented option.
16290 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16292         Revert:
16293         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
16295         * config.gcc (LIBC_MUSL): New tm_defines macro.
16296         * config/linux.h (OPTION_MUSL): Define.
16297         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16298         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16299         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16301         * config/linux.opt (mmusl): New option.
16302         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16303         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16305         * configure: Regenerate.
16307 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
16309         * config.gcc (LIBC_MUSL): New tm_defines macro.
16310         * config/linux.h (OPTION_MUSL): Define.
16311         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16312         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16313         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16315         * config/linux.opt (mmusl): New option.
16316         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16317         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16319         * configure: Regenerate.
16321 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
16323         * doc/invoke.texi (-fsanitize-sections): Update description.
16324         * asan.c (set_sanitized_sections): Parse incoming arg.
16325         (section_sanitized_p): Support wildcards.
16327 2015-04-22  Tom de Vries  <tom@codesourcery.com>
16329         PR tree-optimization/65823
16330         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
16331         equality between ap_copy and ap.
16333 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16335         PR target/47098
16336         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
16338 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16340         PR target/47122
16341         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
16343 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16345         PR target/55144
16346         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
16347         remove already contained t-files.
16349 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16351         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
16352         Remove unneeded forward declarations.
16353         (suitable_for_tail_call_opt_p): Commentary typo fix.
16355 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16357         * varasm.c (emit_bss): Remove redundant guard.
16359 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16361         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
16363 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16365         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
16367 2015-04-22  Hale Wang  <hale.wang@arm.com>
16368             Terry Guo  <terry.guo@arm.com>
16370         PR rtl-optimization/64818
16371         * combine.c (can_combine_p): Don't combine user-specified
16372         register if it is in an asm input.
16374 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
16376         PR ipa/65076
16377         * passes.def (early_optimizations): Add pass_dse.
16379 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16381         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
16382         * reorg.c (redundant_insn): Remove ifdef
16383         INSN_REFERENCES_ARE_DELAYED.
16384         * resource.c (mark_referenced_resources): Likewise.
16386 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16388         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
16389         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
16390         * resource.c (mark_set_resources): Likewise.
16392 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16394         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
16395         * cfgcleanup.c (flow_find_cross_jump): Likewise.
16396         (flow_find_head_matching_sequence): Likewise.
16397         (try_head_merge_bb): Likewise.
16398         * combine.c (can_combine_p): Likewise.
16399         (try_combine): Likewise.
16400         (distribute_notes): Likewise.
16401         * df-problems.c (can_move_insns_across): Likewise.
16402         * final.c (final): Likewise.
16403         * gcse.c (insert_insn_end_basic_block): Likewise.
16404         * ira.c (find_moveable_pseudos): Likewise.
16405         * reorg.c (try_merge_delay_insns): Likewise.
16406         (fill_simple_delay_slots): Likewise.
16407         (fill_slots_from_thread): Likewise.
16408         * sched-deps.c (sched_analyze_2): Likewise.
16410 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16412         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
16413         PIC_OFFSET_TABLE_REGNUM.
16415 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16417         * alias.c (init_alias_target): Remove ifdef
16418         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
16419         * df-scan.c (df_insn_refs_collect): Likewise.
16420         (df_get_regular_block_artificial_uses): Likewise.
16421         (df_get_eh_block_artificial_uses): Likewise.
16422         (df_get_entry_block_def_set): Likewise.
16423         (df_get_exit_block_use_set): Likewise.
16424         * emit-rtl.c (gen_rtx_REG): Likewise.
16425         * ira.c (ira_setup_eliminable_regset): Likewise.
16426         * reginfo.c (init_reg_sets_1): Likewise.
16427         * regrename.c (rename_chains): Likewise.
16428         * reload1.c (reload): Likewise.
16429         (eliminate_regs_in_insn): Likewise.
16430         * resource.c (mark_referenced_resources): Likewise.
16431         (init_resource_info): Likewise.
16433 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16435         * defaults.h (MASK_RETURN_ADDR): New definition.
16436         * except.c (expand_builtin_extract_return_addr): Remove ifdef
16437         MASK_RETURN_ADDR.
16439 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16441         * defaults.h (RETURN_ADDR_OFFSET): New definition.
16442         * except.c (expand_builtin_extract_return_addr): Remove ifdef
16443         RETURN_ADDR_OFFSET.
16444         (expand_builtin_frob_return_addr): Likewise.
16446 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16448         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
16449         (try_redirect_by_replacing_jump): Likewise.
16450         (rtl_tidy_fallthru_edge): Likewise.
16451         * combine.c (insn_a_feeds_b): Likewise.
16452         (find_split_point): Likewise.
16453         (simplify_set): Likewise.
16454         * cprop.c (cprop_jump): Likewise.
16455         * cse.c (cse_extended_basic_block): Likewise.
16456         * df-problems.c (can_move_insns_across): Likewise.
16457         * function.c (emit_use_return_register_into_block): Likewise.
16458         * haifa-sched.c (sched_init): Likewise.
16459         * ira.c (find_moveable_pseudos): Likewise.
16460         * loop-invariant.c (find_invariant_insn): Likewise.
16461         * lra-constraints.c (curr_insn_transform): Likewise.
16462         * postreload.c (reload_combine_recognize_const_pattern):
16463         * Likewise.
16464         * reload.c (find_reloads): Likewise.
16465         * reorg.c (delete_scheduled_jump): Likewise.
16466         (steal_delay_list_from_target): Likewise.
16467         (steal_delay_list_from_fallthrough): Likewise.
16468         (redundant_insn): Likewise.
16469         (fill_simple_delay_slots): Likewise.
16470         (fill_slots_from_thread): Likewise.
16471         (delete_computation): Likewise.
16472         * sched-rgn.c (add_branch_dependences): Likewise.
16474 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16476         * genconfig.c (main): Always define HAVE_cc0.
16477         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
16478         HAVE_cc0.
16479         * cfgcleanup.c (flow_find_cross_jump): Likewise.
16480         (flow_find_head_matching_sequence): Likewise.
16481         (try_head_merge_bb): Likewise.
16482         * cfgrtl.c (rtl_merge_blocks): Likewise.
16483         (try_redirect_by_replacing_jump): Likewise.
16484         (rtl_tidy_fallthru_edge): Likewise.
16485         * combine.c (do_SUBST_MODE): Likewise.
16486         (insn_a_feeds_b): Likewise.
16487         (combine_instructions): Likewise.
16488         (can_combine_p): Likewise.
16489         (try_combine): Likewise.
16490         (find_split_point): Likewise.
16491         (subst): Likewise.
16492         (simplify_set): Likewise.
16493         (distribute_notes): Likewise.
16494         * cprop.c (cprop_jump): Likewise.
16495         * cse.c (cse_extended_basic_block): Likewise.
16496         * df-problems.c (can_move_insns_across): Likewise.
16497         * final.c (final): Likewise.
16498         (final_scan_insn): Likewise.
16499         * function.c (emit_use_return_register_into_block): Likewise.
16500         * gcse.c (insert_insn_end_basic_block): Likewise.
16501         * haifa-sched.c (sched_init): Likewise.
16502         * ira.c (find_moveable_pseudos): Likewise.
16503         * loop-invariant.c (find_invariant_insn): Likewise.
16504         * lra-constraints.c (curr_insn_transform): Likewise.
16505         * optabs.c (prepare_cmp_insn): Likewise.
16506         * postreload.c (reload_combine_recognize_const_pattern):
16507         * Likewise.
16508         * reload.c (find_reloads): Likewise.
16509         (find_reloads_address_1): Likewise.
16510         * reorg.c (delete_scheduled_jump): Likewise.
16511         (steal_delay_list_from_target): Likewise.
16512         (steal_delay_list_from_fallthrough): Likewise.
16513         (try_merge_delay_insns): Likewise.
16514         (redundant_insn): Likewise.
16515         (fill_simple_delay_slots): Likewise.
16516         (fill_slots_from_thread): Likewise.
16517         (delete_computation): Likewise.
16518         (relax_delay_slots): Likewise.
16519         * sched-deps.c (sched_analyze_2): Likewise.
16520         * sched-rgn.c (add_branch_dependences): Likewise.
16522 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16524         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
16525         that is trivially ded on non cc0 targets.
16526         (simplify_set): Likewise.
16527         (mark_used_regs_combine): Likewise.
16528         * cse.c (new_basic_block): Likewise.
16529         (fold_rtx): Likewise.
16530         (cse_insn): Likewise.
16531         (cse_extended_basic_block): Likewise.
16532         (set_live_p): Likewise.
16533         * rtlanal.c (canonicalize_condition): Likewise.
16534         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16536 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16538         * conditions.h: Define macros even if HAVE_cc0 is undefined.
16539         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
16540         * final.c: Likewise.
16541         * jump.c: Likewise.
16542         * recog.c: Likewise.
16543         * recog.h: Declare functions even when HAVE_cc0 is undefined.
16544         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
16546 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16548         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
16549         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
16550         * builtins.c (expand_builtin): Remove check if
16551         EH_RETURN_DATA_REGNO is defined.
16552         * df-scan.c (df_bb_refs_collect): Likewise.
16553         (df_get_exit_block_use_set): Likewise.
16554         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16555         * ira-lives.c (process_bb_node_lives): Likewise.
16556         * lra-lives.c (process_bb_lives): Likewise.
16558 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
16560         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
16561         FIRST_PSEUDO_REG): New.
16562         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
16563         (ARG_POINTER_REGNUM): Define to ARGP_REG.
16564         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
16565         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
16566         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
16567         (FIRST_INT_REG): New.
16568         (LAST_INT_REG): New.
16569         (FIRST_*_REG): Define using *_REG.
16570         (LAST_*_REG): Ditto.
16571         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
16572         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
16573         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16575 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16577         * expmed.c: (synth_mult): Only assume overlapping
16578         shift with previous steps in alg_sub_t_m2 case.
16580 2015-04-21  Richard Biener  <rguenther@suse.de>
16582         PR tree-optimization/65650
16583         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16584         transitions involving copies.
16585         (set_lattice_value): Adjust for copy lattice state.
16586         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16587         if that doesn't dominate the merge point.
16588         (bit_value_unop): Adjust what we treat as varying mask.
16589         (bit_value_binop): Likewise.
16590         (bit_value_assume_aligned): Likewise.
16591         (evaluate_stmt): When we simplified to a SSA name record a copy
16592         instead of dropping to varying.
16593         (visit_assignment): Simplify.
16595         * gimple-match.h (gimple_simplify): Add another callback.
16596         * gimple-fold.c (fold_stmt_1): Adjust caller.
16597         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16598         for the 2nd callback.
16599         * gimple-match-head.c (gimple_simplify): Add a callback that is
16600         used to valueize the stmt operands and use it that way.
16602 2015-04-21  Richard Biener  <rguenther@suse.de>
16604         PR tree-optimization/65788
16605         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16607 2015-04-21  Richard Biener  <rguenther@suse.de>
16609         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16610         vec_construct cost by vec_stmt_cost.
16612 2015-04-21  Richard Biener  <rguenther@suse.de>
16614         * cfghooks.h (create_basic_block): Replace with two overloads
16615         for RTL and GIMPLE.
16616         (split_block): Likewise.
16617         * cfghooks.c (split_block): Rename to ...
16618         (split_block_1): ... this.
16619         (split_block): Add two type-safe overloads for RTL and GIMPLE.
16620         (split_block_after_labels): Call split_block_1.
16621         (create_basic_block): Rename to ...
16622         (create_basic_block_1): ... this.
16623         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16624         (create_empty_bb): Call create_basic_block_1.
16625         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16626         split_block_after_labels.
16627         * omp-low.c (expand_parallel_call): Likewise.
16628         (expand_omp_target): Likewise.
16629         (simd_clone_adjust): Likewise.
16630         * tree-chkp.c (chkp_get_entry_block): Likewise.
16631         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16632         create_basic_block overload.
16633         (cgraph_node::expand_thunk): Likewise.
16634         * tree-cfg.c (make_blocks): Likewise.
16635         (handle_abnormal_edges): Likewise.
16636         * tree-inline.c (copy_bb): Likewise.
16638 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16640         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16641         New pattern.
16642         (*xor_one_cmplsidi3_ze): Likewise.
16644 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16646         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
16647         use df_remove_problem rather than manually removing problems, leaving
16648         holes in df->problems_in_order[].
16650 2015-04-21  Tom de Vries  <tom@codesourcery.com>
16652         PR tree-optimization/65802
16653         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
16655 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16657         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
16658         Increase to 128.
16659         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
16660         at '.'.  Assert that there's enough space for everything.
16662 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
16664         PR tree-optimization/64950
16665         Revert:
16666         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
16668         PR target/41089
16669         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16670         as volatile.
16672 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
16674         PR rtl-optimization/64916
16675         * cfgcleanup.c (values_equal_p): New function.
16676         (can_replace_by): Use it.
16678 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
16680         PR c++/65801
16681         * doc/invoke.texi ([-Wnarrowing]): Update.
16683 2015-04-20  Jeff Law  <law@redhat.com>
16685         PR tree-optimization/65658
16686         * tree-ssa-threadupdate.c (redirection_block_p): Remove
16687         redundant test for GIMPLE_ASSIGN in last change.
16689 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
16691         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
16692         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
16693         (legitimize_tls_address): Ditto.
16694         (ix86_expand_move): Ditto.
16695         (ix86_expand_binary_operator): Remove reload_in_progress checks.
16696         (ix86_expand_unary_operator): Ditto.
16697         * config/i386/predicates.md (index_register_operand): Ditto.
16699 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
16701         * reorg.c (try_merge_delay_insns): Improve correctness checking
16702         for targets with multiple delay slots.
16704 2015-04-20  Jeff Law  <law@redhat.com>
16706         PR tree-optimization/65658
16707         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
16708         statements too.
16710 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
16712         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
16713         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
16714         Delete.
16716 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
16718         PR debug/65807
16719         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
16721 2015-04-20  Richard Biener  <rguenther@suse.de>
16723         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
16724         * gimple-fold.c (gimple_build_valueize): New function.
16725         (gimple_build): Always use gimple_build_valueize as valueize hook.
16727 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
16729         PR target/64134
16730         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
16731         and overwrite variable parts if <= 1/2 the elements are variable.
16733 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
16735         PR rtl-optimization/65805
16736         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
16737         Don't use difference of offset and previous offset if
16738         update_sp_offset is non-zero.
16739         (eliminate_regs_in_insn): Ditto.
16740         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
16741         lra_eliminate_regs_1 call.
16742         * lra-constraints.c (get_equiv_with_elimination): Ditto.
16744 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
16746         * hash-table.h: Remove version of hash_table that stored value_type *.
16747         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
16748         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
16749         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
16750         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
16751         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
16752         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
16753         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16754         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
16755         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
16756         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
16757         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
16758         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
16759         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
16760         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16761         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
16762         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
16764 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16765             Jakub Jelinek  <jakub@redhat.com>
16767         PR target/65787
16768         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
16769         subsequent SH_NONE operand does not overwrite an existing *special
16770         value.
16771         (adjust_extract): Handle case where a vec_extract operation is
16772         wrapped in a PARALLEL.
16774 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16776         PR target/65780
16777         * config/i386/i386.c (ix86_binds_local_p): Define only if
16778         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
16780 2015-04-17  Jeff Law  <law@redhat.com>
16782         PR tree-optimization/47679
16783         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
16784         * tree-ssa-scopedtables.c: New file.
16785         * tree-ssa-scopedtables.h: New file.
16786         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
16787         (const_and_copies): Change name/type.
16788         (record_const_or_copy): Move into tree-ssa-scopedtables.c
16789         (record_const_or_copy_1): Similarly.
16790         (restore_vars_to_original_value): Similarly.
16791         (pass_dominator::execute): Create and destroy const_and_copies table.
16792         (thread_across_edge): Update passing of const_and_copies.
16793         (record_temporary_equivalence): Use method calls rather than
16794         manipulating const_and_copies directly.
16795         (record_equality, cprop_into_successor_phis): Similarly.
16796         (dom_opt_dom_walker::before_dom_children): Similarly.
16797         (dom_opt_dom_walker::after_dom_children): Similarly.
16798         (eliminate_redundant_computations): Similarly.
16799         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
16800         (record_temporary_equivalence): Likewise.
16801         (invalidate_equivalences): Likewise.
16802         (record_temporary_equivalences_from_phis): Update due to type
16803         change of const_and_copies.  Use method calls rather than
16804         manipulating the stack directly.
16805         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
16806         (thread_through_normal_block, thread_across_edge): Likewise.
16807         (thread_across_edge): Likewise.
16808         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16809         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
16810         of equiv_stack.
16811         (identify_jump_threads): Update due to type change of equiv_stack.
16812         (finalize_jump_threads): Delete the equiv_stack when complete.
16814 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
16816         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16817         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
16818         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
16820 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
16822         PR target/65535
16823         * config.gcc: Exit with a comment when we do not have a major version
16824         number for the FreeBSD target.
16826 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
16828         PR target/65689
16829         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
16830         maybe_allows_mem bitfields.
16831         (maybe_allows_none_start, maybe_allows_none_end,
16832         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
16833         maybe_allows_mem_end): New variables.
16834         (compute_maybe_allows): New function.
16835         (add_constraint): Use it to initialize maybe_allows_reg and
16836         maybe_allows_mem fields.
16837         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
16838         is_address constraints such that those that allow neither mem nor
16839         reg come first, then those that only allow reg but not mem, then
16840         those that only allow mem but not reg, then the rest.
16841         (write_allows_reg_mem_function): New function.
16842         (write_tm_preds_h): Call it.
16843         * stmt.c (parse_output_constraint, parse_input_constraint): Use
16844         the generated insn_extra_constraint_allows_reg_mem function
16845         instead of always setting *allows_reg = true; *allows_mem = true;
16846         for unknown extra constraints.
16848 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16850         PR target/65780
16851         * output.h (default_binds_local_p_3): New.
16852         * varasm.c (default_binds_local_p_3): Make it public.  Take an
16853         argument to indicate if common symbol may be local.  If common
16854         symbol may be local, treat non-external variable as defined
16855         locally.
16856         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
16857         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
16858         * config/i386/i386.c (ix86_binds_local_p): New.
16859         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
16860         ix86_binds_local_p.
16862 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
16864         PR debug/65771
16865         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
16866         trying mem_loc_descriptor on XEXP (rtl, 0).
16868 2015-04-17  Martin Liska  <mliska@suse.cz>
16870         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16871         Release symbol_compare_collection.
16872         * ipa-reference.c: Add TODO that a vector should be released.
16874 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
16876         PR target/65296
16877         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
16878         to new AVR-LibC file layout (bug #44574).
16879         (*avrlibc_devicelib): Same.
16880         * config/avr/avr-mcus.def: Adjust comments.
16881         * config/avr/avr.opt (nodevicelib): Adjust help.
16883 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
16885         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
16887 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
16889         PR c++/64527
16890         * gimplify.c (gimplify_init_constructor): Always emit a
16891         side-effecting constructor.
16893 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16895         PR tree-optimization/64950
16896         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16897         in cfun->curr_properties.
16898         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16899         if we generate an IFN_VA_ARG.
16900         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16901         function if PROP_gimple_lva is not set in src function.
16903 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16904             Michael Matz  <matz@suse.de>
16906         PR tree-optimization/64950
16907         * gimple-iterator.c (update_modified_stmts): Remove static.
16908         * gimple-iterator.h (update_modified_stmts): Declare.
16909         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16910         (gimplify_va_arg_internal): New function.
16911         (gimplify_va_arg_expr): Use IFN_VA_ARG.
16912         * gimplify.h (gimplify_va_arg_internal): Declare.
16913         * internal-fn.c (expand_VA_ARG): New unreachable function.
16914         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16915         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16916         (expand_ifn_va_arg): New function.
16917         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16918         (pass_stdarg::execute): Call expand_ifn_va_arg.
16919         (pass_data_lower_vaarg): New pass_data.
16920         (pass_lower_vaarg): New gimple_opt_pass.
16921         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16922         (make_pass_lower_vaarg): New function.
16923         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16924         properties_required field.
16925         * passes.def (all_passes): Add pass_lower_vaarg.
16926         * tree-pass.h (PROP_gimple_lva): Add define.
16927         (make_pass_lower_vaarg): Declare.
16929 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16931         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16932         * calls.c (call_expr_flags): Same.
16934 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16936         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16937         (pass_stdarg::execute): ... here.
16939 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16940             Michael Matz  <matz@suse.de>
16942         * tree-cfg.c (make_blocks_1): Factor out of ...
16943         (make_blocks): ... here.
16944         (make_edges_bb): Factor out of ...
16945         (make_edges): ... here.
16946         (gimple_find_sub_bbs): New function.
16947         * tree-cfg.h (gimple_find_sub_bbs): Declare.
16949 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16951         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
16953 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
16955         * asan.c (set_sanitized_sections): New function.
16956         (section_sanitized_p): Ditto.
16957         (asan_protect_global): Optionally sanitize user-defined
16958         sections.
16959         * asan.h (set_sanitized_sections): Declare new function.
16960         * common.opt (fsanitize-sections): New option.
16961         * doc/invoke.texi (-fsanitize-sections): Document new option.
16962         * opts-global.c (handle_common_deferred_options): Handle new
16963         option.
16965 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
16967         PR debug/65771
16968         * dwarf2out.c (loc_list_from_tree): Return NULL
16969         for DEBUG_EXPR_DECL.
16971 2015-04-17  Christian Bruel  <christian.bruel@st.com>
16973         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
16974         same attributes.
16976 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16978         * ira-color.c (setup_left_conflict_sizes_p): Do not process
16979         node itself when computing left conflict subnode size.
16981 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
16983         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
16984         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
16985         *fop_<mode>_1_sse using enabled attribute.  Use
16986         register_mixssei387nonimm_operand operand 1 predicate. Change
16987         alternative 3 constraints from "x" to "v".
16989 2015-04-16  Richard Biener  <rguenther@suse.de>
16991         PR tree-optimization/65774
16992         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
16993         bit-value tracking on.
16995 2015-04-16  Richard Biener  <rguenther@suse.de>
16997         PR tree-optimization/64277
16998         * tree-vrp.c (check_array_ref): Fix anti-range handling,
16999         simplify upper bound handling.
17000         (search_for_addr_array): Simplify.
17001         (check_array_bounds): Handle ADDR_EXPRs here.
17002         (check_all_array_refs): Simplify.
17004 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
17006         * config/i386/i386.c (print_reg): Rewrite function.
17008 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17010         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
17011         Invert the condition.
17013 2015-04-16  Renlin Li  <renlin.li@arm.com>
17015         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
17016         simplifications for UNSIGNED_FLOAT.
17018 2015-04-16  Nick Clifton  <nickc@redhat.com>
17020         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
17021         MUL_UNINIT.
17022         (enum rl78_cpu_type): New.
17023         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
17024         (umulhi3_shift_virt): Remove m constraint from operand 1.
17025         (umulqihi3_virt): Likewise.
17026         * config/rl78/rl78.c (rl78_option_override): Add code to process
17027         -mcpu and -mmul options.
17028         (rl78_alloc_physical_registers): Add code to handle divhi and
17029         divsi valloc attributes.
17030         (set_origin): Likewise.
17031         * config/rl78/rl78.h (RL78_MUL_G14): Define.
17032         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
17033         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
17034         __RL78_Gxx__.
17035         (ASM_SPEC): Pass -mcpu on to assembler.
17036         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
17037         (mulqi3_rl78): Likewise.
17038         (mulhi3_g13): Likewise.
17039         (mulhi3): Generate the G13 or G14 versions of the insn directly.
17040         (mulsi3): Likewise.
17041         (mulhi3_g14): Add clobbers of AX and BC.
17042         (mulsi3_g14): Likewise.
17043         (mulsi3_g13): Likewise.
17044         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
17045         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
17046         * config/rl78/rl78.opt (mmul): Initialise value to
17047         RL78_MUL_UNINIT.
17048         (mcpu): New option.
17049         (m13, m14, mrl78): New option aliases.
17050         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
17051         (MULTILIB_DIRNAMES): Add g13 and g14.
17052         * doc/invoke.texi: Document -mcpu and -mmul options.
17054 2015-04-16  Richard Biener  <rguenther@suse.de>
17056         * tree-ssa-ccp.c (likely_value): See if we have operands that
17057         are marked as never simulate again and return CONSTANT in this
17058         case.
17059         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
17060         not have any operands that will be simulated again as
17061         not being simulated again.
17063 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
17065         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
17066         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
17067         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
17068         attribute.
17069         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
17070         enabled attribute.
17071         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
17072         *float<SWI48:mode><MODEF:mode>2_sse.
17073         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
17074         enabled attribute.
17075         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
17076         enabled attribute.
17078 2015-04-15  Tom de Vries  <tom@codesourcery.com>
17080         PR other/65487
17081         * function.c (push_dummy_function): New function.
17082         (init_dummy_function_start): Use push_dummy_function.
17083         (pop_dummy_function): New function.  Factored out of ...
17084         (expand_dummy_function_end): ... here.
17085         * function.h (push_dummy_function, pop_dummy_function): Declare.
17086         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
17087         pop_dummy_function.
17088         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
17090 2015-04-15  Jeff Law  <law@redhat.com>
17092         PR tree-optimization/47679
17093         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
17094         need for forward declaration in upcoming changes.
17095         (record_conditions, record_edge_info): Likewise.
17097         PR rtl-optimization/42522
17098         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
17099         SIGN_EXTRACT as a whole object rather than simplifying
17100         its operand.
17102 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
17104         PR ipa/65765
17105         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
17106         and GIMPLE_PREDICT use break instead of return true. For
17107         GIMPLE_EH_DISPATCH, compare dispatch region.
17109 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
17111         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
17112         details about the implementation.  Make clear preference for
17113         __atomic builtins.  Reduce possibility of future change.
17115 2015-04-15  Nick Clifton  <nickc@redhat.com>
17117         * config/rx/rx.opt (mallow-string-insns): New option.
17118         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
17119         builtin if string instructions are denied.
17120         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
17121         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
17122         appropriate.
17123         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
17124         * config/rx/rx.md (movstr): Enable pattern only if string
17125         instructions are allowed.
17126         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
17127         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
17128         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
17129         (MULTILIB_DIRNAMES): Add no-strings.
17130         * doc/invoke.texi: Document -mno-allow-string-insns.
17132 2015-04-15  Alan Modra  <amodra@gmail.com>
17134         PR target/65408
17135         PR target/58744
17136         PR middle-end/36043
17137         * calls.c (load_register_parameters): Don't load past end of
17138         mem unless suitably aligned.
17140 2015-04-15  Nick Clifton  <nickc@redhat.com>
17142         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
17143         decrement instruction as being frame related.
17144         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
17145         based addresses.
17146         If zero extending a function address enclose the operation in
17147         %code(...).
17148         (rl78_preferred_reload_class): New function.
17149         (TARGET_PREFERRED_RELOAD_CLASS): Define.
17150         * config/rl78/rl78.md: Remove useless constraints in expanders.
17151         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
17152         (mulhi3_rl78): Likewise.
17153         (mulhi3_g13): Likewise.
17154         (mulsi3_rl78): Likewise.
17155         (es_addr): Move to before the multiply patterns.
17157 2015-04-15  Alan Modra  <amodra@gmail.com>
17159         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
17160         and sequence_stack.  Add seq.
17161         (seq_stack): Delete.
17162         * function.c (prepare_function_start): Don't access x_last_insn.
17163         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
17164         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
17165         * emit_rtl.c (start_sequence, push_topmost_sequence,
17166         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
17167         sequence accessors.
17168         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
17169         remove_insn): Likewise.  Simplify.
17170         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
17171         and pop_topmost_sequence.
17172         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
17173         debug insns.
17174         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
17176 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
17178         PR target/65729
17179         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
17180         the assertiion.
17182 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
17184         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
17185         (LEGACY_INT_REGNO_P): Ditto.
17186         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
17187         (ANY_MASK_REG_P): Remove.
17188         (BND_REG_P): Rename from ANY_BND_REG_P.
17189         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
17190         legacy integer registers.  Do not handle MMX_REG_P in a special way.
17191         Merge 64byte and 32byte SSE handling.
17193 2015-04-14  Nick Clifton  <nickc@redhat.com>
17195         * expr.c (expand_assignment): Force an address offset computation
17196         into a register before changing its mode.
17197         (expand_expr_real_1): Likewise.
17199 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
17201         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
17202         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
17203         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
17204         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
17205         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
17206         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
17207         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
17208         and __aarch64_vget_lane_any.
17210 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
17212         PR rtl-optimization/65761
17213         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
17214         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
17216 2015-04-14  Richard Biener  <rguenther@suse.de>
17218         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
17219         (graphite_can_represent_scev): Use POINTER_TYPE_P.
17221 2015-04-14  Richard Biener  <rguenther@suse.de>
17223         PR tree-optimization/65758
17224         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
17225         against -1.
17226         (ccp_lattice_meet): Likewise.
17227         (bit_value_unop): Likewise.
17228         (bit_value_binop): Likewise.
17229         (bit_value_assume_aligned): Likewise.
17231 2015-04-14  Christian Bruel  <christian.bruel@st.com>
17233         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
17234         function.
17236 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
17238         PR tree-optimization/63387
17239         * match.pd ((x unord x) | (y unord y) -> (x unord y),
17240         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
17242 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
17244         * config/i386/predicates.md (any_QIreg_operand): Rename from
17245         q_regs_operand.  Do not process subregs.
17246         (QIreg_operand): Use QI_REGNO_P predicate.
17247         (ext_QIreg_operand): Ditto.
17248         (ext_register_operand): Ditto.
17249         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
17250         (AND splitters): Ditto.
17251         (AND with -65536 splitter): Add SWI48 mode for operand 0.
17252         (AND with -256 splitter): Use any_QIreg_operand predicate and
17253         SWI248 mode for operand 0.
17254         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
17255         mode for operand 0.
17256         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
17258 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
17260         * doc/plugins.texi: Rewrite first introductory paragraph.
17262 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
17264         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
17265         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
17267 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
17269         * ipa-profie.c (ipa_profile): Check number of parameters
17270         and possible polymorphic call targets before
17271         devirtualizing.
17273 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
17275         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
17276         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
17278 2015-04-13  Richard Biener  <rguenther@suse.de>
17280         PR tree-optimization/65204
17281         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
17282         takens for bit-CCP.
17284 2015-04-13  Richard Biener  <rguenther@suse.de>
17286         PR target/65660
17287         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
17288         and cond_not_taken_branch_cost to 4 and 2.
17289         (bdver2_cost): Likewise.
17290         (bdver3_cost): Likewise.
17291         (bdver4_cost): Likewise.
17293 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
17295         * hash-table.h (hash_table constructor): Add mem stats.
17296         (alloc_entries): Likewise.
17298 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
17300         * ipa-cp.c (ipcp_driver): Relase prev_edge.
17301         * passes.c (execute_one_pass): Only add transform if pass has one.
17303 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
17305         * config/i386/i386.c (ix86_option_override_internal): Don't set
17306         -fprefetch-loop-arrays if optimizing for size.
17308 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
17309             Gerald Pfeifer  <gerald@pfeifer.com>
17311         * doc/contrib.texi (Contributors): Add Martin Jambor and
17312         Michael Matz.
17314 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
17316         * BASE-VER: Set to 6.0.0.
17318         PR tree-optimization/65747
17319         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
17320         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
17322 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
17324         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
17325         sentence.  Improve grammar.
17327 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
17329         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
17331 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
17333         PR ipa/65743
17334         * ipa-inline-transform.c (speculation_removed): Remove static var.
17335         (check_speculations): New function.
17336         (clone_inlined_nodes): Do not check spculations.
17337         (inline_call): Call check_speculations.
17338         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
17339         consider non-invariants.
17341 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
17342             Martin Liska  <mliska@suse.cz>
17344         PR ipa/65722
17345         * ipa-icf.c (sem_item::compare_cgraph_references): function and
17346         variable can not match.
17347         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
17348         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
17350 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
17352         PR tree-optimization/65735
17353         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
17354         Remove visited_phis argument, add visited_bbs, avoid recursing into the
17355         same bb rather than just into the same phi node.
17356         (thread_through_normal_block): Adjust caller.
17358 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
17360         * doc/contrib.texi (Contributors): Add Ira Rosen.
17362 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
17364         * gcov.c (find_source): Fix miswording in error message.
17365         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
17366         (ix86_expand_sse_comi_round): Fix typo in error message.
17368 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
17370         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
17372 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
17374         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
17376 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
17378         PR target/65710
17379         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
17380         Print bad_spills_num and insn_pseudos_num.
17382 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17384         PR target/65694
17385         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
17386         when creating +1 values for SImode.
17388 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
17390         PR target/65729
17391         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
17392         assert.
17394 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
17395             Iain Sandoe  <iain@codesourcery.com>
17397         PR target/65351
17398         * configure: Regenerate.
17400 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
17402         PR target/65671
17403         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
17405 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
17407         * doc/contrib.texi (Contributors): Add John Marino.
17409 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
17411         PR tree-optimization/65709
17412         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
17413         TREE_TYPE (TREE_TYPE (t)).
17415 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
17417         PR target/65710
17418         * lra-int.h (lra_bad_spill_regno_start): New.
17419         * lra.c (lra_bad_spill_regno_start): New.
17420         (lra): Set up lra_bad_spill_regno_start.  Set up
17421         lra_constraint_new_regno_start unconditionally.
17422         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
17423         spill preferences.
17425 2015-04-09  Marek Polacek  <polacek@redhat.com>
17426             Jakub Jelinek  <jakub@redhat.com>
17428         PR middle-end/65554
17429         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
17430         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
17431         of STRIP_NOPS.
17433 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
17435         PR rtl-optimization/65693
17436         * combine.c (is_parallel_of_n_reg_sets): Move outside of
17437         #ifndef HAVE_cc0.
17439 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
17441         PR target/65296
17442         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
17443         device specs file if "device-specs%s" didn't resolve to a path.
17445 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
17447         PR target/65676
17448         * config/i386/i386.c (fixup_modeless_constant): New.
17449         (ix86_expand_args_builtin): Fixup modeless constant operand.
17450         (ix86_expand_round_builtin): Ditto.
17451         (ix86_expand_special_args_builtin): Ditto.
17452         (ix86_expand_builtin): Ditto.
17454 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
17456         PR target/65693
17457         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
17458         any pow2 integer in between 2 and 0x80000000U inclusive.
17460 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
17462         PR rtl-optimization/65693
17463         * combine.c (is_parallel_of_n_reg_sets): Change first argument
17464         from an rtx_insn * to an rtx.
17465         (try_combine): Adjust both callers.  Use it once more.
17467 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
17469         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
17470         (chkp_make_static_const_bounds): Search existing
17471         symbol by assembler name.  Use make_decl_one_only.
17472         (chkp_get_zero_bounds_var): Remove node search which
17473         is now performed in chkp_make_static_const_bounds.
17474         (chkp_get_none_bounds_var): Likewise.
17476 2015-04-08  Michael Witten  <mfwitten@gmail.com>
17478         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
17479         to an example.
17481 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17483         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
17485 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
17487         * doc/extend.texi (__sync Builtins): Fix grammar.
17489 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17491         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
17493 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17495         * varasm.c (emit_local): Move definition of align.
17497 2015-04-08  Julian Brown  <julian@codesourcery.com>
17499         * config/nvptx/mkoffload.c (process): Support variable mapping.
17501 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
17503         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
17504         alpha_links **.
17505         (alpha_write_one_linkage): Correct typo.
17507 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
17509         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
17511 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
17513         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
17515 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
17517         * tree-chkp.h (chkp_insert_retbnd_call): New.
17518         * tree-chkp.c (chkp_insert_retbnd_call): New.
17519         * ipa-split.c (insert_bndret_call_after): Remove.
17520         (split_function): Use chkp_insert_retbnd_call.
17521         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
17522         bounds for instrumented functions.
17524 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
17526         PR ipa/65540
17527         * calls.c (initialize_argument_information): When producing tail
17528         call also turn SSA_NAMES passed by references to original PARM_DECLs
17530 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
17532         PR target/65648
17533         * lra-remat.c (do_remat): Process input and non-input insn
17534         registers separately.
17536 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
17538         PR debug/65678
17539         * valtrack.c (debug_lowpart_subreg): New function.
17540         (dead_debug_insert_temp): Use it.
17542         PR middle-end/65680
17543         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
17544         into signed HOST_WIDE_INT the same as negative bit_offset.
17546 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
17548         * ipa-comdats.c (ipa_comdats): Visit all thunks
17549         to set proper comdat group.
17551 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17553         PR target/65489
17554         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
17555         on constants for NEON VSTRUCT modes.
17557 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
17558             Iain Sandoe  <iain@codesourcery.com>
17560         PR target/65351
17561         * configure: Regenerate.
17563 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17565         PR target/65614
17566         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
17567         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
17568         that LFD is used to load double constants instead of LFS.  Add
17569         defaults for all costs structures.  Add comments for missing
17570         initialization fields.
17571         (size32_cost): Likewise.
17572         (size64_cost): Likewise.
17573         (rs64a_cost): Likewise.
17574         (mpccore_cost): Likewise.
17575         (ppc403_cost): Likewise.
17576         (ppc405_cost): Likewise.
17577         (ppc440_cost): Likewise.
17578         (ppc476_cost): Likewise.
17579         (ppc601_cost): Likewise.
17580         (ppc603_cost): Likewise.
17581         (ppc604_cost): Likewise.
17582         (ppc604e_cost): Likewise.
17583         (ppc620_cost): Likewise.
17584         (ppc630_cost): Likewise.
17585         (ppccell_cost): Likewise.
17586         (ppc750_cost): Likewise.
17587         (ppc7450_cost): Likewise.
17588         (ppc8540_cost): Likewise.
17589         (ppce300c2c3_cost): Likewise.
17590         (ppce500mc_cost): Likewise.
17591         (ppce500mc64_cost): Likewise.
17592         (ppce5500_cost): Likewise.
17593         (ppce6500_cost): Likewise.
17594         (titan_cost): Likewise.
17595         (power4_cost): Likewise.
17596         (power6_cost): Likewise.
17597         (power7_cost): Likewise.
17598         (power8_cost): Likewise.
17599         (ppca2_cost): Likewise.
17600         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17602         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17603         instead of XXLOR to copy SFmode to clear out dirty bits created
17604         when SFmode denormals are generated.
17605         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17606         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17608 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
17610         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17611         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17612         * config/aarch64/aarch64-tune.md: Regenerate.
17614 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
17616         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17617         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17618         * config/arm/arm-cores.def (exynos-m1): New core.
17619         * config/arm/arm-tune.md: Regenerate.
17620         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17621         * config/arm/bpabi.h: Likewise.
17623 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
17625         * ipa-cp (set_single_call_flag): Remove too
17626         restrictive assert.
17628 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
17630         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17631         GOMP_offload_unregister from the destructor.
17633 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
17635         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17636         flags for instrumentation thunk.
17637         (chkp_produce_thunks): Likewise.
17639 2015-04-05  Martin Liska  <mliska@suse.cz>
17641         PR ipa/65665
17642         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17643         has computed data structure.
17644         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17646 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
17648         * invoke.texi (inline-unit-growth): Increase growth to 20%
17649         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
17651 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
17653         PR target/65647
17654         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
17655         value checking.
17656         (lra_rematerialization_iter): New.
17657         * lra.c (lra): Initialize lra_rematerialization_iter.
17658         Stop updating lra_constraint_new_regno_start after switching of
17659         inheritance and rematerialization.
17660         * lra-remat.c (lra_rematerialization_iter): New.
17661         (lra_remat): Add printing pass iteration.  Do rematerialization
17662         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
17664 2015-04-04  Richard Biener  <rguenther@suse.de>
17666         PR tree-optimization/64909
17667         PR tree-optimization/65660
17668         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
17669         to take a cost vector for scalar iteration cost.
17670         (vect_get_single_scalar_iteration_cost): Likewise.
17671         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
17672         Compute the scalar iteration cost into a cost vector.
17673         (vect_get_known_peeling_cost): Use the scalar cost vector to
17674         account for the cost of the peeled iterations.
17675         (vect_estimate_min_profitable_iters): Likewise.
17676         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17677         Likewise.
17679 2015-04-04  Alan Modra  <amodra@gmail.com>
17681         PR target/65576
17682         PR target/65240
17683         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
17684         0.0 constant unless TARGET_VSX.
17685         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
17686         alternative.
17688 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
17690         PR ipa/65654
17691         * ipa-inline-transform.c (inline_call): Skip sanity check to work
17692         around the ICE
17694 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
17696         PR ipa/65655
17697         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
17698         speculative indirect edges to avoid ordering issue.
17700 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
17702         PR ipa/65076
17703         * ipa-inline.c (edge_badness): Add combined size to the denominator.
17705 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
17707         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
17708         TYPE_ARTIFICIAL on the .omp_data* types.
17710 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17712         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
17713         instrumentation thunks.
17715 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17717         * config/i386/i386.c (ix86_expand_call): Avoid nested
17718         PARALLEL in returned call value.
17720 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17722         * lto-cgraph.c (input_cgraph_1): Always link instrumented
17723         assembler name with original one.
17725 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
17727         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
17729 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
17731         Revert parts of r216820.
17732         * config/i386/i386.md (movqi_internal): Correct type calculation
17733         for alternatives 3 and 5.
17735 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
17737         PR preprocessor/61977
17738         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
17739         predefine __vector/__bool/__pixel macros nor context sensitive
17740         macros for CLK_ASM.
17741         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
17743 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
17745         * config/pa/pa.c (pa_output_move_double): Directly handle register
17746         indexed memory operand.  Simplify handling of scaled register indexed
17747         memory operands.
17749 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17751         PR driver/65444
17752         * config/i386/linux-common.h (MPX_SPEC): New.
17753         (CHKP_SPEC): Add MPX_SPEC.
17754         * doc/invoke.texi (-fcheck-pointer-boudns): Document
17755         possible issues with '-z bndplt' support in linker.
17757 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
17759         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
17760         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
17761         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
17762         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
17763         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
17765 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
17767         * config/i386/sync.md (UNSPEC_MOVA): Remove.
17768         (atomic_load<mode>): Change operand 0 predicate to
17769         nonimmediate_operand and fix up the destination when needed.
17770         Use UNSPEC_LDA.
17771         (atomic_loaddi_fpu): Use UNSPEC_LDA.
17772         (atomic_store<mode>): Change operand 1 predicate to
17773         nonimmendate_operand and move the source to register when needed.
17774         Use UNSPEC_STA.
17775         (atomic_store<mode>_1): Use UNSPEC_STA.
17776         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
17777         Fix moves from memory operand.  Use UNSPEC_STA.
17779 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17781         * expmed.c (strict_volatile_bitfield_p): Check that the access will
17782         not cross a MODESIZE boundary.
17783         (store_bit_field, extract_bit_field): Added assertions in the
17784         strict volatile bitfields code path.
17786 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17788         PR target/65624
17789         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
17790         Increase args array size by one to avoid buffer overflow.
17792 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
17794         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17795         split_part.
17796         * ipa-inline.c (edge_badness): Add wrapper penalty.
17797         (sum_callers): Move up.
17798         (inline_small_functions): Set single_caller.
17799         * ipa-inline.h (inline_summary): Add single_caller.
17800         * ipa-split.c (split_function): Set split_part.
17801         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
17802         * cgraph.h (cgraph_node): Add split_part.
17804 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
17806         PR target/58945
17807         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
17808         Do not split operands 0 and operands 2 to halfmode.
17809         (atomic_compare_and_swap<mode>): Update for
17810         atomic_compare_and_swap<dwi>_doubleword changes.
17812 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
17814         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
17815         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
17816         no caching is done.
17818 2015-03-31  Martin Liska  <mliska@suse.cz>
17820         PR ipa/65557
17821         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
17822         has already filled up function summary.
17823         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17825 2015-03-31  Richard Biener  <rguenther@suse.de>
17827         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
17828         of types.
17830 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17832         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
17833         nested functions.
17834         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
17835         (s390_asm_output_function_label): Adapt to new signature of
17836         s390_function_num_hotpatch_hw
17837         Optimise the code generating assembler output.
17838         Add comments to assembler file.
17840 2015-03-31  Richard Biener  <rguenther@suse.de>
17842         PR middle-end/65626
17843         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
17844         of the noreturn call so it is last and cleanup_control_flow_bb
17845         can do the CFG part.
17847 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
17849         PR target/65531
17850         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
17851         same_comdat_group for external symbols.
17852         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
17853         infinite same_comdat_group traversal loop.
17855 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
17857         PR plugins/61176
17858         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
17859         automatically to $headers.
17861 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
17863         PR ipa/65610
17864         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
17865         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
17866         function.
17867         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
17868         Use it.
17869         * ipa-prop.c (param_type_may_change_p): Likewise.
17870         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
17871         (remove_unused_scope_block_p): Add in_ctor_dtor_block
17872         argument.  Before inlining, preserve
17873         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
17874         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
17875         recursive calls.
17876         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
17878 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17880         PR ipa/65076
17881         * ipa-inline.c (edge_badness): Base denominator on callee's
17882         grwoth squared.
17884 2015-03-27  Martin Jambor  <mjambor@suse.cz>
17886         PR ipa/65478
17887         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
17888         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
17889         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
17890         node_calling_single_call.
17891         * ipa-cp.c (count_callers): New function.
17892         (set_single_call_flag): Likewise.
17893         (initialize_node_lattices): Count callers and set single_flag_call if
17894         necessary.
17895         (incorporate_penalties): New function.
17896         (good_cloning_opportunity_p): Use it, dump new flags.
17897         (propagate_constants_topo): Set node_within_scc flag if appropriate.
17898         * doc/invoke.texi (ipa-cp-recursion-penalty,
17899         ipa-cp-single-call-pentalty): Document.
17901 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17903         PR ipa/65588
17904         * symtab.c (symtab_node::get_partitioning_class): Register vars
17905         are duplicated.
17906         * varpool.c (symbol_table::output_variables) Do not assemble unefined
17907         decls for non-symbols.
17909 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17911         PR target/65248
17912         * output.h (default_binds_local_p_2): New.
17913         * varasm.c (default_binds_local_p_2): Renamed to ...
17914         (default_binds_local_p_3): This.  Don't return true on protected
17915         data symbol if protected data may be external.
17916         (default_binds_local_p): Use default_binds_local_p_3.
17917         (default_binds_local_p_1): Likewise.
17918         (default_binds_local_p_2): New.
17919         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17920         default_binds_local_p_2 if TARGET_MACHO is undefined.
17922 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
17924         PR target/65593
17925         * config/i386/i386.c (legitimize_pic_address): If base
17926         is SYMBOL_REF or LABEL_REF using %rip addressing, force
17927         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17929 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17931         PR target/65531
17932         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17933         comdat groups.
17935 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17937         PR ipa/65600
17938         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17939         of optimized out indirect call.
17940         (redirect_to_unreachable): Always build symbol table node for
17941         BUILT_IN_UNREACHABLE
17943 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
17945         PR target/65407
17946         * ira-costs.c (record_reg_classes): Process all constraint string
17947         containing 0-9.
17949 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
17951         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
17952         memory_operand.
17954         PR target/65052
17955         * config/c6x/constraints.md (S3): New constraint.
17956         * config/c6x/c6x.md (real_jump): Use it.
17958 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17960         PR middle-end/65595
17961         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
17962         do redirection if the call is not optimized out.
17964 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
17966         PR target/65495
17967         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
17968         (fchkp-check-incomplete-type): Add LTO.
17969         (fchkp-zero-input-bounds-for-main): Likewise.
17970         (fchkp-first-field-has-own-bounds): Likewise.
17971         (fchkp-narrow-bounds): Likewise.
17972         (fchkp-narrow-to-innermost-array): Likewise.
17973         (fchkp-use-static-bounds): Likewise.
17974         (fchkp-use-static-const-bounds): Likewise.
17975         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17977 2015-03-27  Marek Polacek  <polacek@redhat.com>
17979         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
17981 2015-03-27  Marek Polacek  <polacek@redhat.com>
17983         PR sanitizer/65583
17984         * ubsan.c (ubsan_create_edge): New function.
17985         (instrument_bool_enum_load): Call it.
17986         (instrument_nonnull_arg): Likewise.
17987         (instrument_nonnull_return): Likewise.
17988         (instrument_object_size): Likewise.
17990 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17992         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
17993         auto_vec.
17995 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17997         PR lto/65536
17998         * lto-streamer.h (class lto_location_cache): New.
17999         (struct data_in): Add location_cache.
18000         (lto_input_location): Update prototype.
18001         (stream_input_location_now): New.
18002         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
18003         pointer to location.
18004         (stream_input_location): Update.
18005         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
18006         (warn_odr): Apply location cache before warning.
18007         (lto_input_location): Update prototype.
18008         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
18009         Use stream_input_location_now.
18010         * lto-streamer-in.c (lto_location_cache::current_cache): New static
18011         variable.
18012         (lto_location_cache::cmp_loc): New function.
18013         (lto_location_cache::apply_location_cache): New function.
18014         (lto_location_cache::accept_location_cache): New function.
18015         (lto_location_cache::revert_location_cache): New function.
18016         (lto_location_cache::input_location): New function.
18017         (lto_input_location): Do location caching.
18018         (stream_input_location_now): New function.
18019         (input_eh_region, input_struct_function_base): Use
18020         stream_input_location_now.
18021         (lto_data_in_create): use new.
18022         (lto_data_in_delete): Use delete.
18023         * tree-streamer-in.c (unpack_ts_block_value_fields,
18024         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
18025         lto_input_ts_exp_tree_pointers): Update for cached location api.
18027 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
18029         PR ipa/65076
18030         * passes.def: Add pass_nothrow.
18031         * ipa-pure-const.c: (pass_data_nothrow): New.
18032         (pass_nothrow): New.
18033         (pass_nothrow::execute): New.
18034         (make_pass_nothrow): New.
18035         * tree-pass.h (make_pass_nothrow): Declare.
18037 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
18039         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
18040         edge to change by speculation resolution or redirection.
18041         (edge_set_predicate): Likewise.
18042         (inline_summary_t::duplicate): Likewise.
18043         (remap_edge_summaries): Likewise.
18045 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
18047         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
18048         New macros.
18049         (can_inline_edge_p): Relax option matching for always inline functions.
18051 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
18053         PR target/65561
18054         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
18055         Check operand 4 and operand 0 for equality.
18056         (avx512f_vextract<shuffletype>32x4_1_maskm):
18057         Check operand 6 and operand 0 for equality.
18058         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
18059         for equality.
18060         (vec_extract_hi_<mode>_maskm): Ditto.
18062 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
18064         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
18065         dead calls back to live.
18066         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
18067         cross check to ...
18068         (cgraph_node::verify_node): ... here; verify only callee edges,
18069         not caller.
18070         * cif-code.def (CILK_SPAWN): New code.
18072 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
18074         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
18075         (edge_set_predicate): Use it to mark unreachable edges.
18076         (inline_summary_t::duplicate): Remove unnecesary code.
18077         (remap_edge_summaries): Likewise.
18078         (dump_inline_summary): Report contains_cilk_spawn.
18079         (compute_inline_parameters): Compute contains_cilk_spawn.
18080         (inline_read_section, inline_write_summary): Stream
18081         contains_cilk_spawn.
18082         * ipa-inline.c (can_inline_edge_p): Do not touch
18083         DECL_STRUCT_FUNCTION that may not be available;
18084         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
18085         remove check for callee_fun->can_throw_non_call_exceptions and
18086         replace it by optimization attribute check; check for flag_exceptions.
18087         * ipa-inline-transform.c (inline_call): Maintain
18088         DECL_FUNCTION_PERSONALITY
18089         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
18091 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
18093         PR tree-optimization/65551
18094         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
18095         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
18097 2015-03-26  Richard Biener  <rguenther@suse.de>
18099         PR middle-end/65555
18100         * tree-cfg.c (verify_gimple_call): Do not require a call to
18101         have no LHS if it wasn't recognized as control altering yet.
18103 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
18105         PR tree-optimization/64715
18106         * passes.def: Add another instance of pass_object_sizes before ccp1.
18107         * tree-object-size.c (pass_object_sizes::execute): In
18108         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
18109         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
18110         __bos result and the computed constant.  Remove redundant
18111         checks, obsoleted by gimple_call_builtin_p test.
18113         * var-tracking.c (variable_tracking_main_1): Don't track
18114         variables for targetm.no_register_allocation targets.
18116 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
18118         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
18119         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
18121 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
18123         PR target/65569
18124         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
18125         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
18126         0.0 is correctly setup.
18127         (extenddftf2_internal): Likewise.
18129 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
18131         PR tree-optimization/65177
18132         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
18133         (bb_in_bbs): New.
18134         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
18135         edges not adjacent on the path to the original code.
18137 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
18139         PR bootstrap/65537
18140         * doc/install.texi (Building a native compiler): Document new
18141         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
18142         configuration assumes that the host supports the linker plugin.
18144 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
18146         PR target/65508
18147         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
18148         chain for generated call.
18150 2015-03-25  Richard Biener  <rguenther@suse.de>
18152         * passes.c (pass_manager::execute_early_local_passes): Guard
18153         execution of pass_chkp_instrumentation_passes with
18154         flag_check_pointer_bounds.
18155         (pass_chkp_instrumentation_passes::gate): Likewise.
18157 2015-03-25  Martin Liska  <mliska@suse.cz>
18159         PR tree-optimization/65538
18160         * symbol-summary.h (function_summary::~function_summary):
18161         Relese memory for allocated summaries.
18162         (function_summary::release): New function.
18164 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
18166         PR lto/65515
18167         * lto-streamer-out.c (DFS::worklist): New struct.
18168         (DFS::worklist_vec): New data member.
18169         (DFS::next_dfs_num): Remove.
18170         (DFS::DFS): Rewritten using worklist instead of recursion,
18171         using most of code from DFS::DFS_write_tree.
18172         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
18173         pass it to DFS_write_tree calls.
18174         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
18175         quick initial checks push it into worklist_vec and return.
18177 2015-03-25  Richard Biener  <rguenther@suse.de>
18179         PR middle-end/65519
18180         * genmatch.c (expr::gen_transform): Re-write to avoid
18181         using gimple_build.
18183 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
18185         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
18187 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
18189         * config/arm/arm.opt (print_tune_info): New option.
18190         * config/arm/arm.c (arm_print_tune_info): New function.
18191         (arm_file_start): Call arm_print_tune_info.
18192         * config/arm/arm-protos.h (struct tune_params): Add comment.
18193         * doc/invoke.texi (@item -mprint-tune-info): New item.
18194         (-mtune): mention it in ARM Option Summary.
18196 2015-03-25  DJ Delorie  <dj@redhat.com>
18198         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
18199         correct clause.
18201 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
18202             Martin Liska  <mliska@suse.cz>
18204         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
18205         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
18206         (sem_item::add_type): New function.
18207         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
18208         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
18209         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
18210         (sem_function::equals_wpa): Fix typo.
18211         * ipa-icf.h (sem_item::add_type): New function.
18212         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
18213         order.
18215 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
18217         PR tree-optimization/65533
18218         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
18219         with swapped operands, call vect_free_slp_tree on
18220         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
18221         vector.
18223 2015-03-24  Richard Biener  <rguenther@suse.de>
18225         PR middle-end/65517
18226         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
18227         for fixup if necessary.
18229 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
18231         * doc/extend.texi (Function Attributes): Add @cindex entries
18232         for all attributes and regularize their format.  Delete text
18233         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
18234         information about "eightbit_data", "tiny_data", and "model"
18235         variable attributes to the Variable Attributes section.  Fix
18236         some obvious typos and copy-editing issues.
18237         (Variable Attributes, Type Attributes): Likewise add/fix
18238         @cindex entries for all attributes.
18240 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
18242         PR target/65523
18243         * tree-chkp.c (chkp_build_returned_bound): Ignore
18244         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
18246 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
18248         PR target/65505
18249         * config/sh/predicates.md (simple_mem_operand,
18250         displacement_mem_operand): Add test for reg.
18251         (short_displacement_mem_operand): Test for displacement_mem_operand
18252         before invoking sh_disp_addr_displacement.
18253         * config/sh/constraints.md (Sdd, Sra): Simplify.
18254         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
18255         Remove redundant displacement_mem_operand tests.
18257 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
18259         PR target/65296
18260         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
18261         the same -mmcu=MCU more than once.
18263 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
18265         PR bootstrap/65522
18266         * ipa-devirt.c: Remove duplicate demangle.h include.
18268         PR target/65504
18269         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
18270         on the pseudo.
18271         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
18272         REG_POINTER on *destptr after adjusting it for prologue size.
18274         PR ipa/65521
18275         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
18276         ultimate_alias_target ()->order ints instead of
18277         ultimate_alias_target () pointers.
18279 2015-03-23  Richard Biener  <rguenther@suse.de>
18281         PR tree-optimization/65518
18282         * tree-vect-stmts.c (vectorizable_load): Reject single-element
18283         interleaving cases we generate absymal code for.
18285 2015-03-23  Richard Biener  <rguenther@suse.de>
18287         PR tree-optimization/65494
18288         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
18289         matches here.
18290         (vect_analyze_slp_instance): But do that here, always and once.
18292 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18294         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
18295         adding T or multiplying by T+1 and subracting T.
18297 2015-03-22  Jeff Law  <law@redhat.com>
18299         PR rtl-optimization/64317
18300         * Makefile.in (OBJS): Add gcse-common.c
18301         * gcse.c: Include gcse-common.h
18302         (struct modify_pair_s): Move structure definition to gcse-common.h
18303         (compute_transp): Move function to gcse-common.c.
18304         (canon_list_insert): Similarly.
18305         (record_last_mem_set_info): Break out some code and put it into
18306         gcse-common.c.  Call into the new common code.
18307         (compute_local_properties): Pass additional arguments to compute_transp.
18308         * postreload-gcse.c: Include gcse-common.h and df.h
18309         (modify_mem_list_set, blocks_with_calls): New variables.
18310         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
18311         (get_bb_avail_insn): Pass in the expression index too.
18312         (alloc_mem): Allocate memory for the new bitmaps and lists.
18313         (free_mem): Free memory for the new bitmaps and lists.
18314         (insert_expr_in_table): Record a bitmap index for each entry we
18315         add to the table.
18316         (record_last_mem_set_info): Call into common code in gcse-common.c.
18317         (get_bb_avail_insn): If no available insn was found in the requested
18318         BB.  If BB has a single predecessor, see if the expression is
18319         transparent in BB and available in that single predecessor.
18320         (compute_expr_transp): New wrapper for compute_transp.
18321         (eliminate_partially_redundant_load): Pass expression's bitmap_index
18322         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
18323         (gcse_after_reload_main): If there are elements in the hash table,
18324         then compute transparency for all the elements in the hash table.
18325         * gcse-common.h: New file.
18326         * gcse-common.c: New file.
18328 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
18330         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
18331         as an adjective.
18332         (System Headers): Likewise.
18333         (Ifdef): Likewise.
18334         (Traditional macros): Likewise.
18335         (Invocation): Likewise.
18336         (Option Index): Likewise.
18337         * doc/cppopts.texi (-M): Likewise.
18338         (-finput-charset): Likewise.
18339         (--help): Likewise.
18340         * doc.invoke.texi (AVR Options): Likewise.
18341         (V850 Options): Likewise.
18343 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
18345         PR ipa/65475
18346         * ipa-devirt.c: Include demangle.h
18347         (odr_type_d): Add field rtti_broken.
18348         (odr_subtypes_equivalent_p): Do not require name to match.
18349         (compare_virtual_tables): Fix typo; if type already has ODR violation,
18350         bypass the tests; be ready for function referneces in vtables that are
18351         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
18352         (warn_odr): Give up for nameless types.
18353         (warn_types_mismatch): Report mismatch in mangled names;
18354         report mismatch in anonymous namespaces; look into component types to
18355         give useful error; report when mismatch is dragged in from other ODR
18356         type.
18357         (odr_types_equivalent_p): Match types for being polymorphic; avoid
18358         duplicated diagnostics.
18359         (add_type_duplicate): Reorder checks so more informative ones come
18360         first; fix typo; do not output "the extra base is defined here" when
18361         we did not warn.
18362         (BINFO_N_BASE_BINFOS): Relax sanity check.
18364 2015-03-22  Martin Liska  <mliska@suse.cz>
18365             Jakub Jelinek  <jakub@redhat.com>
18367         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
18368         masks that can potentially include a builtin.
18369         (ix86_add_new_builtins): Introduce fast filter for isa values
18370         that cannot trigger builtin inclusion.
18372 2015-03-22  Martin Liska  <mliska@suse.cz>
18374         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
18375         (sem_item::update_hash_by_local_refs): Likewise.
18376         (sem_variable::get_hash): Empty line is fixed.
18377         (sem_item_optimizer::execute): Include adding of hash references.
18378         (sem_item_optimizer::update_hash_by_addr_refs): New function.
18379         (sem_item_optimizer::build_hash_based_classes): Use local hash.
18380         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
18381         (sem_item::update_hash_by_local_refs): Likewise.
18383 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
18385         PR ipa/65502
18386         * ipa-comdats.c (enqueue_references): Walk through thunks.
18387         (ipa_comdats): Likewise.
18388         (set_comdat_group_1): New function.
18390 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
18392         PR ipa/65475
18393         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
18394         non-polymorphic
18396 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
18397             Gerald Pfeifer  <gerald@pfeifer.com>
18399         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
18401 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
18402             Sandra Loosemore  <sandra@codesourcery.com>
18404         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
18405         function parameter declaration.
18406         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
18407         Update arguments to nios2_adjust_call_address().
18408         (sibcall_internal): Rename from *sibcall.
18409         (sibcall_value_internal): Rename from *sibcall_value.
18410         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
18411         (nios2_large_got_address): Add target temp reg parameter.
18412         (nios2_got_address): Adjust call to nios2_large_got_address, add
18413         force_reg around it.
18414         (nios2_load_pic_address): Add target temp reg parameter, replace call
18415         to nios2_got_address with corresponding code.
18416         (nios2_legitimize_constant_address): Update call to
18417         nios2_load_pic_address.
18418         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
18419         to use temp reg for PIC loading purposes.
18420         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
18421         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18422         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
18424 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
18426         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
18427         usage of "the @option{...}".
18428         (-Wopenmp-simd): Likewise.
18429         (-fsanitize-recover): Likewise.
18430         (-fsanitize-undefined-trap-on-error): Likewise.
18431         (-flto): Likewise.
18432         (tracer-dynamic-coverage-feedback): Likewise.
18433         (reorder-block-duplicate-feedback): Likewise.
18434         (loop-unroll-jam-size): Likewise.
18435         (-B): Likewise.
18436         (-I-): Likewise.
18437         (-mabs=legacy): Likewise.
18438         (-mupper-regs-df): Likewise.
18439         (-mupper-regs-sf): Likewise.
18440         (-mpointers-to-nested-functions): Likewise.
18442 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
18444         * doc/extend.texi (Cilk Plus Builtins): Add markup.
18446 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
18448         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
18449         additional index entries and cross-references.
18450         (-fchkp-check-incomplete-type): Likewise.
18451         (-fchkp-first-field-has-own-bounds): Likewise.
18452         (-fchkp-narrow-to-innermost-array): Likewise.
18453         (-fchkp-use-fast-string-functions): Likewise.
18454         (-fchkp-use-nochk-string-functions): Likewise.
18455         (-fchkp-use-static-const-bounds): Likewise.
18456         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18457         (-fchkp-instrument-marked-only): Likewise.
18458         (-fchkp-use-wrappers): Likewise.
18459         (-static-libmpx): Likewise.
18460         (-static-libmpxwrappers): Likewise.
18461         * doc/extend.texi (bnd_legacy): Likewise.
18462         (bnd_instrument): Likewise.
18463         (bnd_variable_size): Likewise.
18464         (Pointer Bounds Checker builtins): Likewise.
18466 2015-03-21  Tom de Vries  <tom@codesourcery.com>
18468         PR tree-optimization/65458
18469         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
18470         * cgraph.h (cgraph_node): Add parallelized_function field.
18471         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
18472         (input_overwrite_node): Read parallelized_function field.
18473         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
18474         parallelized_function on cgraph_node for child_fn.
18475         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
18476         Remove include of gt-tree-parloops.h.
18477         (parallelized_functions): Remove static variable.
18478         (parallelized_function_p): Rewrite using parallelized_function field of
18479         cgraph_node.
18480         (create_loop_fn): Remove adding to parallelized_functions.
18481         * Makefile.in (GTFILES): Remove tree-parloops.c
18483 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
18485         PR rtl-optimization/64366
18486         * lra.c (lra_update_insn_regno_info): Consider regs in
18487         CALL_INSN_FUNCTION_USAGE memory.
18489 2015-03-20  Richard Biener  <rguenther@suse.de>
18491         PR middle-end/64715
18492         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
18493         for type comparison and gcc_checking_assert.
18494         (chrec_fold_plus_poly_poly): Likewise.
18495         (chrec_fold_multiply_poly_poly): Likewise.
18496         (chrec_convert_1): Likewise.
18497         * gimplify.c (gimplify_expr): Remove premature folding of
18498         &X + CST to &MEM[&X, CST].
18500 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
18502         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
18503         already is final.
18504         (ipa_inline): Recompute inline_failed codes.
18505         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18506         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
18507         CIF_FINAL_ERROR.
18509 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
18511         PR rtl-optimization/60851
18512         * recog.c (constrain_operands): Accept a pseudo register before reload
18513         for LRA enabled targets.
18515 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18517         PR target/65240
18518         * config/rs6000/predicates.md (easy_fp_constant): Remove special
18519         -ffast-math handling that kept non-0 constants live in the RTL
18520         until reload.  Remove logic testing the number of instructions it
18521         took to create a constant in a GPR that was never used, due to a
18522         test for soft-float earlier.
18523         (memory_fp_constant): Delete, no longer used.
18525         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
18526         alternatives for loading non-0 constants into GPRs for hard
18527         floating point that is no longer needed due to changes in
18528         easy_fp_constant.  Add support for loading 0.0 into GPRs.
18529         (mov<mode>_hardfloat32): Likewise.
18530         (mov<mode>_hardfloat64): Likewise.
18531         (mov<mode>_64bit_dm): Likewise.
18532         (movtd_64bit_nodm): Likewise.
18533         (pre-reload move FP constant define_split): Delete define_split,
18534         since it is no longer used.
18535         (extenddftf2_internal): Remove GHF constraints that are not valid
18536         for extenddftf2.
18538 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
18540         PR rtl-optimization/63491
18541         * lra-constraints.c (check_and_process_move): Use src instead of
18542         sreg.  Remove some dead code.
18544 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
18546         PR ipa/65380
18547         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
18548         (sem_variable::merge): Likewise.
18550 2015-03-19  Martin Liska  <mliska@suse.cz>
18552         PR ipa/65465
18553         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
18554         all fields of cgraph_thunk_info.
18556 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
18558         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
18559         clone instrumented thunks.
18561 2015-03-19  Richard Biener  <rguenther@suse.de>
18563         Revert
18564         2015-03-10  Richard Biener  <rguenther@suse.de>
18566         PR middle-end/63155
18567         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18568         * tree-ssa-coalesce.c: Include timevar.h.
18569         (attempt_coalesce): Handle graph being NULL.
18570         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18571         Split out abnormal coalescing to ...
18572         (perform_abnormal_coalescing): ... this function.
18573         (coalesce_ssa_name): Perform abnormal coalescing without computing
18574         live/conflict.
18575         (verify_ssa_coalescing_worker): New function.
18576         (verify_ssa_coalescing): Likewise.
18578 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18579             Jakub Jelinek  <jakub@redhat.com>
18581         PR sanitizer/65400
18582         * tsan.c (instrument_gimple): Clear tail call flag on
18583         calls.
18585 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
18587         PR sanitizer/65400
18588         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18589         call in the return bb.
18590         (find_split_points): Add RETURN_BB argument, don't call
18591         find_return_bb.
18592         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
18593         if true append TSAN_FUNC_EXIT internal call after the call to
18594         the split off function.
18595         (execute_split_functions): Call find_return_bb here.
18596         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18597         Adjust find_split_points and split_function calls.
18599 2015-03-18  DJ Delorie  <dj@redhat.com>
18601         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18602         (iorqi3_virt): Likewise.
18604 2015-03-18  Tom de Vries  <tom@codesourcery.com>
18606         * tree-parloops.c (parallelize_loops): Make static.
18607         * tree-parloops.h (parallelize_loops): Remove extern declaration.
18609 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
18611         PR middle-end/64491
18612         Revert:
18613         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
18615         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18616         condition would be removed due to undefined behaviour.
18618 2015-03-18  Martin Liska  <mliska@suse.cz>
18620         PR ipa/65432
18621         * cgraph.c (cgraph_node::get_create): Remove unnecessary
18622         xstrdup_for_dump wrapper.
18623         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18624         sem_item::name.
18625         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18626         with xstrdup_for_dump.
18627         (sem_variable::equals): Likewise.
18628         (sem_item_optimizer::read_section): Use symtab_node::name instead of
18629         sem_item::name.
18630         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18631         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18632         symtab_node::asm_name with xstrdup_for_dump.
18633         (congruence_class::dump): Use symtab_node::name instead of
18634         sem_item::name.
18635         * ipa-icf.h (symtab_node::name): Remove.
18636         (symtab_node::asm_name): Likewise.
18638 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
18640         PR tree-optimization/65450
18641         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18642         function.
18643         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18644         it instead of duplicate_ssa_name_ptr_info.
18646         PR target/65222
18647         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
18649 2015-03-18  Richard Biener  <rguenther@suse.de>
18651         * tree-data-ref.h (struct access_matrix): Remove.
18652         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18653         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18654         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
18655         (am_vector_index_for_loop): Likewise.
18656         (struct data_reference): Remove access_matrix member.
18657         (DR_ACCESS_MATRIX): Remove.
18658         (lambda_vector_new): Add comment.
18659         (lambda_matrix_new): Use XOBNEWVEC.
18661 2015-03-18  Richard Biener  <rguenther@suse.de>
18663         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
18664         (pass_ch::execute): Cleanup the CFG only if we did sth.
18665         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
18667 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18669         * expmed.c (synth_mult): Use std::swap instead of manually
18670         swapping algorithms.
18672 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
18674         PR target/65078
18675         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
18677 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
18679         PR target/65296
18680         * config/avr/avr.opt (-nodevicelib): New option.
18681         * doc/invoke.texi (AVR Options): Document it.
18682         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
18683         libgcc.a, libc.a, libm.a.
18684         * config/avr/specs.h: Same.
18685         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
18686         which don't (directly) depend on the device.  Print more help.
18687         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
18688         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
18689         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
18690         case of an error.
18691         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
18692         for specs file name.
18693         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
18694         * config/avr/avr-mcus.def: Adjust initializers and comments.
18696 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
18698         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
18699         DECL_ONE_ONLY to check if decl is one only.
18700         * ipa-split.c (consider_split): Limit splitt of one only functions.
18702 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
18704         PR tree-optimization/65427
18705         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
18706         functions.
18707         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
18709 2015-03-16  Marek Polacek  <polacek@redhat.com>
18711         * cgraph.h (add_new_static_var): Remove declaration.
18712         * varpool.c (add_new_static_var): Remove function.
18714 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
18716         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
18717         instead of vec<tree> * with vec_alloc and release for args.
18718         Adjust all users.
18720         PR middle-end/65431
18721         * omp-low.c (delete_omp_context): Only splay_tree_delete
18722         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
18723         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
18725 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
18727         PR sanitizer/64820
18728         * cfgexpand.c (align_base): New function.
18729         (alloc_stack_frame_space): Call it.
18730         (expand_stack_vars): Align prev_frame to be sure
18731         data->asan_vec elements aligned properly.
18733 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
18735         PR middle-end/65409
18736         * expr.c (store_field): Do not do a direct block copy if the source is
18737         a PARALLEL with BLKmode.
18739 2015-03-16  Tom de Vries  <tom@codesourcery.com>
18741         PR middle-end/65414
18742         Revert:
18743         2015-03-12  Tom de Vries  <tom@codesourcery.com>
18745         PR rtl-optimization/64895
18746         * lra-lives.c (check_pseudos_live_through_calls): Use
18747         actual_call_used_reg_set instead of call_used_reg_set, if available.
18749 2015-03-16  Alan Modra  <amodra@gmail.com>
18751         PR target/63150
18752         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
18753         Modify Z->r bswapdi splitter to use dest in place of scratch.
18754         In r->Z and Z->r bswapdi splitter rename word_high, word_low
18755         to word1, word2 and rearrange logic to suit.
18756         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
18757         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
18758         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
18759         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
18760         early clobber.
18762 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
18764         PR tree-optimization/65369
18765         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
18766         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
18767         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
18769         PR tree-optimization/65418
18770         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
18771         are casts in the first PLUS_EXPR operand, ensure tbias and
18772         *totallowp are in the inner type.
18774         PR rtl-optimization/65401
18775         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
18776         argument.  If true, adjust_address_nv of x with big-endian
18777         correction for the mode widening to GET_MODE (y).
18778         (make_field_assignment): Don't do MEM mode widening here.
18779         Use MEM_P instead of GET_CODE == MEM.
18781 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
18783         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
18784         the external decls.
18786 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18788         PR target/64600
18789         * config/arm/arm.c (arm_gen_constant, AND case): Use
18790         ARM_SIGN_EXTEND when constructing AND mask.
18792 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18794         * graph.c (print_graph_cfg): Make function names visible and append
18795         parenthesis to it.  Also make groups of basic blocks belonging to the
18796         same function visible.
18798 2015-03-12  Richard Biener  <rguenther@suse.de>
18800         PR middle-end/44563
18801         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
18802         to avoid quadratic behavior with inline expansion splitting blocks.
18803         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
18804         with the successor if the predecessor will be merged with it.
18805         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
18806         entry block with its successor.
18808 2015-03-13  Richard Biener  <rguenther@suse.de>
18810         PR middle-end/44563
18811         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
18812         (cleanup_tree_cfg_1): Do not call it.
18813         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
18814         (fixup_noreturn_call): Mark the stmt as control altering.
18815         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
18816         here.
18817         (pass_data_fixup_cfg): Produce a dump file.
18818         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
18819         (need_noreturn_fixup): New global.
18820         (pass_dominator::execute): Fixup queued noreturn calls.
18821         (optimize_stmt): Queue calls that became noreturn for fixup.
18822         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
18823         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
18824         (el_to_fixup): New global.
18825         (eliminate_dom_walker::before_dom_childre): Queue calls that
18826         became noreturn for fixup.
18827         (eliminate): Fixup queued noreturn calls.
18828         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
18829         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
18830         (substitute_and_fold_dom_walker::before_dom_children): Queue
18831         alls that became noreturn for fixup.
18832         (substitute_and_fold): Fixup queued noreturn calls.
18834 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
18836         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
18837         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
18838         are building; for methods check ODR type of class they belong to if
18839         they may lead to a polymorphic call.
18840         (sem_function::compare_polymorphic_p): Be bit smarter about testing
18841         when function may lead to a polymorphic call.
18842         (sem_function::compare_type_list): Remove.
18843         (sem_variable::equals): Update use of compatible_types_p.
18844         (sem_variable::parse_tree_refs): Remove.
18845         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
18846         cdtor.
18847         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
18848         matching here.
18849         (func_checker::compatible_polymorphic_types_p): Break out from ...
18850         (unc_checker::compatible_types_p): ... here.
18851         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
18852         Declare.
18853         (unc_checker::compatible_types_p): Update.
18854         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
18855         Remove.
18857 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18859         PR rtl-optimization/65235
18860         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
18861         When first element of vec_concat is const_int, calculate its size
18862         using second element.
18864 2015-03-12  Richard Biener  <rguenther@suse.de>
18866         PR middle-end/65270
18867         * fold-const.c (operand_equal_p): Fix ordering of resetting
18868         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
18870 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18872         * config/s390/s390.c (s390_reorg): Move code to output nops after label
18873         to s390_reorg ().
18874         (s390_asm_output_function_label): Likewise.
18875         * config/s390/s390.c (s390_asm_output_function_label):
18876         Fix function label alignment with -mhtopatch.
18877         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
18878         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
18879         ("nop_2_byte"): New define_insn.
18880         ("nop_4_byte"): Likewise.
18881         ("nop_6_byte"): Likewise.
18882         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
18883         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
18885 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
18887         PR target/65103
18888         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
18889         register.
18891 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
18893         PR target/65044
18894         * toplev.c (process_options): Restrict Pointer Bounds Checker
18895         usage with Address Sanitizer.
18897 2015-03-12  Richard Biener  <rguenther@suse.de>
18899         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18900         to split on.
18901         * omp-low.c (expand_omp_taskreg): Split block before removing
18902         the stmt.
18903         (expand_omp_target): Likewise.
18904         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18905         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18906         stmt to split_block.
18908 2015-03-12  Tom de Vries  <tom@codesourcery.com>
18910         PR rtl-optimization/64895
18911         * lra-lives.c (check_pseudos_live_through_calls): Use
18912         actual_call_used_reg_set instead of call_used_reg_set, if available.
18914 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
18916         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18917         (cgraph_node::remove): Likewise.
18918         (cgraph_node::get_untransformed_body): Likewise.
18919         * varpool.c (varpool_node::remove): Likewise.
18920         (varpool_node::get_constructor): Add sanity check.
18922 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
18924         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18925         old GCC versions.
18926         (-fabi-compat-version): Likewise.
18927         (-ffriend-injection): Likewise.
18928         (-Wdeclaration-after-statement): Likewise.
18929         (-fomit-frame-pointer): Likewise.
18930         (-ftree-coalesce-inlined-vars): Likewise.
18931         (-fvisibility=): Likewise.
18932         * doc/extend.texi (Typeof): Likewise.
18933         (Zero Length): Likewise.
18934         (Escaped Newlines): Likewise.
18935         (Compound Literals): Likewise.
18936         (Function Attributes): Likewise.
18937         (Label Attributes): Likewise.
18938         (Type Attributes): Likewise.
18939         (Function Names): Likewise.
18940         (Other Builtins): Likewise.
18941         (Function Specific Option Pragmas): Likewise.
18942         (C++ Interface): Likewise.
18944 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
18946         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18948 2015-03-11  Marek Polacek  <polacek@redhat.com>
18950         PR tree-optimization/65388
18951         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
18953 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
18955         PR target/65296
18956         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
18957         * configure: Regenerate.
18958         * config.in: Regenerate.
18959         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
18960         [-mn-flash]: Document it.
18961         [__AVR_ARCH__]: Document avrtiny.
18963         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
18964         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
18965         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
18967 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18969         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
18971 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18973         PR target/65242
18974         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
18975         allow reloads of PLUS in floating point/VSX registers.
18977 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
18979         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
18980         crypto_sha256_fast.
18981         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
18983 2015-03-11  Richard Biener  <rguenther@suse.de>
18985         PR tree-optimization/65310
18986         * tree-sra.c (build_ref_for_offset): Also preserve larger
18987         alignment.
18989 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
18991         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
18993 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
18995         PR target/65368
18996         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
18997         new define_expand.
18998         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
19000 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
19002         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
19003         (sem_function::equals_wpa): ... here.
19005 2015-03-10  Marek Polacek  <polacek@redhat.com>
19006             Jakub Jelinek  <jakub@redhat.com>
19008         PR sanitizer/65367
19009         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
19010         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
19011         separately.
19013 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
19015         PR target/65286
19016         * config/rs6000/t-linux: For powerpc64* target set
19017         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
19019 2015-03-10  Richard Biener  <rguenther@suse.de>
19021         PR middle-end/44563
19022         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
19023         for redirect_all_calls.
19025 2015-03-10  Marek Polacek  <polacek@redhat.com>
19027         * gdbinit.in (pcfun): Define and document.
19029 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
19031         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
19032         of libgomp-plugin.h.
19033         (find_target_compiler): Support a case when the path to gcc is
19034         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
19035         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
19036         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
19037         libgomp-plugin.h.
19038         (main): Use GCC_INSTALL_NAME as target_driver_name.
19039         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
19040         define.
19041         (mkoffload.o): Remove obsolete include path and defines.
19042         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
19044 2015-03-10  Richard Biener  <rguenther@suse.de>
19046         PR middle-end/63155
19047         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
19048         * tree-ssa-coalesce.c: Include timevar.h.
19049         (attempt_coalesce): Handle graph being NULL.
19050         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
19051         Split out abnormal coalescing to ...
19052         (perform_abnormal_coalescing): ... this function.
19053         (coalesce_ssa_name): Perform abnormal coalescing without computing
19054         live/conflict.
19055         (verify_ssa_coalescing_worker): New function.
19056         (verify_ssa_coalescing): Likewise.
19058 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
19060         PR target/65296
19061         * config.gcc (extra_options) [avr]: Remove.
19062         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
19063         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
19064         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
19066         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
19067         (-mmcu=): Add Var and MissingArgError properties.
19068         (-march=): Remove.
19069         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
19070         * config/avr/t-multilib: Regenerate.
19071         * config/avr/specs.h: New file.
19072         * config/avr/driver-avr.c: New file.
19073         * config/avr/genopt.sh: Remove file.
19074         * config/avr/avr-tables.opt: Remove file.
19075         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
19076         * config/avr/avr-c.c: Same.
19077         * avr-arch.h: Same.
19078         (avr_current_device): Remove proto.
19079         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
19080         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
19081         (EXTRA_SPEC_FUNCTIONS): Define.
19082         (avr_devicespecs_file): New specs function proto.
19083         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
19084         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
19085         (avr_current_device): Remove definition and usage.
19086         (avr_set_core_architecture): New static function.
19087         (avr_option_override): Use it.
19088         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
19089         (mcu_name): New static array.
19090         (comparator, avr_archs_str, avr_mcus_str): New static functions.
19091         (avr_inform_devices, avr_inform_core_architectures): New functions.
19092         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
19093         (avrlibc.h) [WITH_AVRLIBC]: Include.
19094         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
19095         (print_mcu): Rewrite from scratch.
19096         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
19097         Forward to avr-specific specs defined in device-specs file.
19098         * config/avr/t-avr (driver-avr.o): New rule.
19099         (avr-devices.o): Depend on avr-arch.h.
19100         (avr-mcus): No more depend on avr-tables.opt.
19101         (avr-tables.opt): Remove rule.
19102         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
19104 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
19106         * c-family/c.opt (fchkp-use-wrappers): New.
19107         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
19108         (chkp_wrap_function): New.
19109         (chkp_build_instrumented_fndecl): Support wrapped
19110         functions.
19111         * doc/invoke.texi (-fcheck-pointer-bounds): New.
19112         (-fchkp-check-incomplete-type): New.
19113         (-fchkp-first-field-has-own-bounds): New.
19114         (-fchkp-narrow-bounds): New.
19115         (-fchkp-narrow-to-innermost-array): New.
19116         (-fchkp-optimize): New.
19117         (-fchkp-use-fast-string-functions): New.
19118         (-fchkp-use-nochk-string-functions): New.
19119         (-fchkp-use-static-bounds): New.
19120         (-fchkp-use-static-const-bounds): New.
19121         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
19122         (-fchkp-check-read): New.
19123         (-fchkp-check-write): New.
19124         (-fchkp-store-bounds): New.
19125         (-fchkp-instrument-calls): New.
19126         (-fchkp-instrument-marked-only): New.
19127         (-fchkp-use-wrappers): New.
19128         (-static-libmpx): New.
19129         (-static-libmpxwrappers): New.
19131 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
19133         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
19134         (CHKP_SPEC): Add wrappers library.
19135         * c-family/c.opt (static-libmpxwrappers): New.
19137 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
19139         * config/i386/linux-common.h (LIBMPX_LIBS): New.
19140         (LIBMPX_SPEC): New.
19141         (CHKP_SPEC): New.
19142         * gcc.c (CHKP_SPEC): New.
19143         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
19144         * c-family/c.opt (static-libmpx): New.
19146 2015-03-10  Richard Biener  <rguenther@suse.de>
19148         PR middle-end/44563
19149         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
19150         for compare_type.
19151         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
19152         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
19153         (cgraph_add_edge_to_call_site_hash): Likewise.
19154         (cgraph_node::get_edge): Likewise.
19155         (cgraph_edge::set_call_stmt): Likewise.
19156         (cgraph_edge::remove_caller): Likewise.
19158 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
19160         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
19161         (callee_saved_gpr_regs_size): ... this.
19162         (callee_saved_regs_first_regno): Rename to ...
19163         (callee_saved_first_gpr_regno): ... this.
19164         (callee_saved_regs_last_regno) Rename to ...
19165         (callee_saved_last_gpr_regno): ... this.
19166         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
19167         variables.
19168         (nds32_initial_elimination_offset): Likewise.
19169         (nds32_expand_prologue): Likewise.
19170         (nds32_expand_epilogue): Likewise.
19171         (nds32_expand_prologue_v3push): Likewise.
19172         (nds32_expand_epilogue_v3pop): Likewise.
19173         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
19174         Adjust renamed variables.
19175         (nds32_output_stack_pop): Likewise.
19177 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19179         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
19180         code in comment.
19182 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
19184         PR rtl-optimization/65321
19185         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
19186         than shift mode.
19187         * var-tracking.c (use_narrower_mode): Likewise.
19189 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
19191         PR tree-optimization/65355
19192         * varasm.c (notice_global_symbol): Do not produce RTL.
19193         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
19194         anchor.
19195         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
19196         check for section anchors.
19198 2015-03-10  Alan Modra  <amodra@gmail.com>
19200         PR target/65286
19201         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
19202         to be single-arch by default.  Set cpu_is_64bit for powerpc64
19203         given --with-cpu=native.
19204         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
19205         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
19206         and powerpc64le.
19207         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
19208         rs6000_isa_flags rather than TARGET_64BIT.
19210 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
19211             Kaz Kojima  <kkojima@gcc.gnu.org>
19213         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
19215 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
19217         PR lto/65361
19218         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
19219         on a TREE_BINFO, instead use BINFO_TYPE.
19221 2015-03-09  Richard Biener  <rguenther@suse.de>
19223         PR middle-end/65270
19224         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
19225         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
19226         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
19227         of that.  When comparing dereferences compare alignment.
19228         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
19230 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
19232         * ipa-inline-analysis.c (check_callers): Check
19233         node->can_remove_if_no_direct_calls_and_refs_p.
19234         (growth_likely_positive): Reorganize to call
19235         can_remove_if_no_direct_calls_p later.
19236         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
19237         will_be_removed_from_program_if_no_direct_calls_p): Add
19238         will_inline parameter.
19239         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
19240         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19241         Handle inliner case correctly.
19243 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19245         PR tree-optimization/63743
19246         * cfgexpand.c (reorder_operands): Also reorder if only second operand
19247         had its definition forwarded by TER.
19249 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
19251         PR lto/65316
19252         * ipa-utils.h (types_odr_comparable): Add strict argument.
19253         * ipa-devirt.c: Fix whitespace;
19254         (odr_hasher): Remove.
19255         (odr_name_hasher, odr_vtable_hasher): New hashers.
19256         (can_be_name_hashed_p): New predicate.
19257         (hash_type_name): remove.
19258         (hash_odr_name): New.
19259         (odr_name_hasher::hash): new.
19260         (can_be_vtable_hashed_p): New.
19261         (hash_odr_vtable): New.
19262         (odr_vtable_hasher::hash): New.
19263         (types_same_for_odr): Add strict parameter.
19264         (types_odr_comparable): Likewise.
19265         (odr_name_hasher::equal): New.
19266         (odr_vtable_hasher::equal): New.
19267         (odr_name_hasher::remove): New.
19268         (odr_hash_type): Change to hash_table<odr_name_hasher>.
19269         (odr_vtable_hash_type): New.
19270         (odr_vtable_hash): New.
19271         (odr_subtypes_equivalent_p): Do strict comparsion.
19272         (add_type_duplicate): Merge type names; cleanup; avoid type
19273         duplicates.
19274         (register_odr_type): Initialize vtable hash.
19275         (build_type_inheritance_graph): Likewise
19276         (get_odr_type): Reorg to use two hashes.
19277         (dump_possible_polymorphic_call_targets): Move sanity check after debug
19278         output.
19279         (ipa_devirt): Dump type_inheritance_graph.
19280         (types_same_for_odr): Add strict mode.
19282 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
19284         PR ipa/65334
19285         * cgraph.h (symtab_node): Add definition_alignment,
19286         can_increase_alignment_p and increase_alignment.
19287         * symtab.c (symtab_node::can_increase_alignment_p,
19288         increase_alignment_1, symtab_node::increase_alignment,
19289         symtab_node::definition_alignment): New.
19290         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
19291         can_increase_alignment_p.
19292         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
19293         * tree-vect-stmts.c (ensure_base_align): Likewise.
19294         * varasm.c (function_section_1): Use definition_alignment.
19295         (assemble_start_function): Likewise.
19296         (emit_local): likewise.
19297         (build_constant_desc): Likewsie.
19298         (output_constant_def_contents): Likewise.
19299         (place_block_symbol): Likewise.
19300         (output_object_block): Likewise.
19302 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
19304         PR ipa/65316
19305         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
19306         when outputting debug.
19308 2015-03-07  Marek Polacek  <polacek@redhat.com>
19309             Martin Uecker  <uecker@eecs.berkeley.edu>
19311         PR sanitizer/65280
19312         * doc/invoke.texi: Update description of -fsanitize=bounds.
19314 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
19316         * tree-ssa-phiopt.c (neg_replacement): Remove.
19317         (tree_ssa_phiopt_worker): Remove negate optimization.
19319 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
19321         PR ipa/65302
19322         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
19324 2015-03-06  Richard Biener  <rguenther@suse.de>
19326         PR middle-end/64928
19327         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
19328         and liveout_obstack members.
19329         (calculate_live_on_exit): Remove.
19330         (calculate_live_ranges): Change declaration.
19331         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
19332         (new_tree_live_info): Adjust.
19333         (calculate_live_ranges): Delete livein when not wanted.
19334         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
19335         Deal with partly deleted live info.
19336         (loe_visit_block): Remove temporary bitmap by using
19337         bitmap_ior_and_compl_into.
19338         (live_worklist): Adjust accordingly.
19339         (calculate_live_on_exit): Make static.
19340         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
19341         we do not need livein.
19343 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
19345         * real.c (real_from_string): Fix typo in assertion.
19347 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
19349         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
19350         the patch.
19352 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
19354         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
19356 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
19358         PR target/64342
19359         * lra-assigns.c (find_hard_regno_for): Rename to
19360         find_hard_regno_for_1.  Add a new parameter.
19361         (find_hard_regno_for): New function using find_hard_regno_for_1.
19363 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19365         PR rtl-optimization/65067
19366         * expmed.c (store_bit_field, extract_bit_field): Reworked the
19367         strict volatile bitfield handling.
19369 2015-03-05  Martin Liska  <mliska@suse.cz>
19371         PR ipa/65318
19372         * ipa-icf.c (sem_variable::equals): Compare variables types.
19374 2015-03-05  Richard Henderson  <rth@redhat.com>
19376         PR target/65121
19377         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
19378         correctly check weak symbol binding.
19380 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
19382         PR middle-end/65315
19383         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
19384         needed alignment.
19386 2015-03-05  Martin Liska  <mliska@suse.cz>
19388         * ipa-inline.c (inline_small_functions): Set default value to
19389         prevent warning during bootstrap.
19390         * tree.h: Add pragma guard that ignores false positives during
19391         bootstrap.
19393 2015-03-05  Richard Biener  <rguenther@suse.de>
19395         PR tree-optimization/65310
19396         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19397         Properly preserve alignment of the base of the access.
19399 2015-03-05  Richard Biener  <rguenther@suse.de>
19401         PR ipa/65270
19402         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
19403         Compare dependence info.
19405 2015-03-05  Richard Biener  <rguenther@suse.de>
19407         PR middle-end/65233
19408         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
19409         tree-into-ssa.h.
19410         (walk_ssa_copies): Revert last chage.  Instead do not walk
19411         SSA names registered for SSA update.
19413 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
19415         PR ipa/65270
19416         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
19417         vtable references for their containing type.
19418         (sem_function::equals_wpa): Compare TYPE_RESTRICT
19419         and type attributes.
19421 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
19423         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
19424         before negating it.
19425         * stor-layout.c (finalize_record_size): Revert latest change.
19427 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
19429         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
19431 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
19433         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
19434         for correct comdat handling.
19435         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19436         Likewise.
19437         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
19438         (used_from_object_file_p_worker): Remove.
19439         (cgraph_node::only_called_directly_or_alised): Add
19440         used_from_object_file_p.
19441         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
19442         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
19443         can_remove_if_no_direct_calls_and_refs_p.
19445 2015-03-04  Nick Clifton  <nickc@redhat.com>
19447         * config/rl78/rl78.h (enum reg_class): Remove real registers from
19448         General register class.
19449         * config/rl78/rl78-real.md: Replace general register constraints
19450         with real+virtual register constraints.
19452 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19454         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
19455         from checking for -mhtm option.
19457 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
19459         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
19460         (struct ipa_sra_check_caller_data): Add has_thunk field.
19461         (ipa_sra_check_caller): Check for thunk.
19462         (ipa_sra_preliminary_function_checks): Give up on function with
19463         thunks.
19464         (ipa_early_sra): Use call_for_symbol_and_aliases.
19466 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
19468         PR target/65249
19469         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
19470         called for __stack_chk_guard symbol.
19472 2015-03-03  DJ Delorie  <dj@redhat.com>
19474         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
19475         inc/dec.
19476         (*addhi3_real): Likewise.
19477         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
19478         pattern to match incrementing memory.
19479         * config/rl78/predicates.md (rl78_1_2_operand): New.
19480         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
19481         it's the same and only mem.
19482         (rl78_alloc_physical_registers_op2): If there's effectively only
19483         one MEM, transcode it into HL.
19484         (rl78_far_p): Reject addresses that aren't legitimate.
19486 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
19488         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
19489         negating it.
19491         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
19493 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
19495         Implement call0 ABI for xtensa
19496         * config/xtensa/constraints.md ("a" constraint): Include stack
19497         pointer in case of call0 ABI.
19498         ("q" constraint): Make empty in case of call0 ABI.
19499         ("D" constraint): Include stack pointer in case of call0 ABI.
19500         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
19501         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
19502         prototypes.
19503         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
19504         variable.
19505         (xtensa_regno_to_class): Make it a local variable in the
19506         function xtensa_regno_to_class.
19507         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
19508         macro, function prototype and implementation.
19509         (reg_nonleaf_alloc_order): Make it a local variable in the
19510         function order_regs_for_local_alloc.
19511         (xtensa_conditional_register_usage): New function.
19512         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
19513         (xtensa_valid_move): Allow direct moves to stack pointer
19514         register in call0 ABI.
19515         (xtensa_setup_frame_addresses): Only spill register windows in
19516         windowed ABI.
19517         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
19518         call0 ABI respectively.
19519         (xtensa_function_arg_1): Only mark a7 register for copying in
19520         windowed ABI.
19521         (xtensa_call_save_reg): New function.
19522         (compute_frame_size): Add space for callee saved register
19523         storage to the frame size in call0 ABI.
19524         (xtensa_expand_prologue): Generate code to set up stack frame
19525         and save callee-saved registers in call0 ABI.
19526         (xtensa_expand_epilogue): New function.
19527         (xtensa_set_return_address): New function.
19528         (xtensa_return_addr): Calculate return address in call0 ABI.
19529         (xtensa_builtin_saveregs): Only mark a7 register for copying and
19530         emit copying code in windowed ABI.
19531         (order_regs_for_local_alloc): Add preferred register allocation
19532         order for non-leaf function in call0 ABI.
19533         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
19534         (xtensa_asm_trampoline_template): Add trampoline generation for
19535         call0 ABI.
19536         (xtensa_trampoline_init): Add trampoline initialization for
19537         call0 ABI.
19538         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
19539         functions.
19540         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
19541         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
19542         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
19543         ABI call-used registers.
19544         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
19545         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
19546         call0 ABI.
19547         (REG_CLASS_CONTENTS): Include all registers into the preferred
19548         reload registers set, adjust the set in the
19549         xtensa_conditional_register_usage.
19550         (xtensa_regno_to_class): Drop variable declaration.
19551         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
19552         function.
19553         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
19554         respectively.
19555         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
19556         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
19557         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
19558         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
19559         location in call0 ABI.
19560         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
19561         stack adjustment size when handling exception.
19562         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
19563         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
19564         definitions.
19565         ("return" pattern): Generate ret.n/ret in call0 ABI.
19566         ("epilogue" pattern): Expand epilogue.
19567         ("nonlocal_goto" pattern): Use default in call0 ABI.
19568         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
19569         emit eh_set_a0_* depending on ABI.
19570         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
19571         ("eh_set_a0_call0", "blockage"): New patterns.
19573 2015-03-03  Martin Liska  <mliska@suse.cz>
19575         PR ipa/65287
19576         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19578 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19580         PR 65138/target
19581         * config/rs6000/rs6000-tables.opt: Regenerate table.
19583 2015-03-03  Renlin Li  <renlin.li@arm.com>
19585         * doc/md.texi (@item ^): Change ? into ^.
19587 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
19589         * doc/tm.texi: Regenerated.
19591 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
19593         * builtins.c (expand_builtin_return_addr): Add
19594         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19595         surrounding #ifdef.
19596         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19597         definition to 1.
19598         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19599         Likewise.
19600         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19601         undefined.
19602         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19603         paragraph.
19605 2015-03-03  Martin Jambor  <mjambor@suse.cz>
19606             Eric Botcazou  <ebotcazou@adacore.com>
19608         * tree-sra.c (ipa_sra_check_caller_data): New type.
19609         (has_caller_p): Removed.
19610         (ipa_sra_check_caller): New function.
19611         (ipa_sra_preliminary_function_checks): Use it.
19613 2015-03-03  Martin Liska  <mliska@suse.cz>
19615         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19616         instead of if branch.
19618 2015-03-03  Martin Liska  <mliska@suse.cz>
19620         PR ipa/65282
19621         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19623 2015-03-23  Jeff Law  <law@redhat.com>
19625         PR tree-optimization/65241
19626         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19627         hash table if INSERT is true.
19629 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
19631         PR target/65296
19632         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19634 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
19636         PR target/64331
19637         * config/avr/avr.c (context.h, tree-pass.h): Include them.
19638         (avr_pass_data_recompute_notes): New static variable.
19639         (avr_pass_recompute_notes): New class.
19640         (avr_register_passes): New static function.
19641         (avr_option_override): Call it.
19643 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
19645         Fix various problems with specs file generation.
19647         PR target/65296
19648         * config.gcc (extra_gcc_objs) [avr]: Remove.
19649         * config/avr/driver-avr.c: Remove file.
19650         * config/avr/t-avr (driver-avr.o): Remove rule.
19651         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
19652         INCLUDES to build.  Depend on TM_H.
19653         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
19654         build warnings.  Fix non-matching types and non-existing %-codes.
19655         (tm.h): Include.
19656         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
19657         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
19658         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
19659         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
19660         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
19661         (LIBGCC_SPEC): Remove definitions.
19663 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
19665         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
19666         to create a register in testing mode.
19668 2015-03-03  Martin Liska  <mliska@suse.cz>
19669             Jan Hubicka  <hubicka@ucw.cz>
19671         PR ipa/65263
19672         * cgraph.c (cgraph_node::has_thunk_p): New function.
19673         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
19674         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
19675         (sem_function::merge): Assert is changed.
19677 2015-03-03  Martin Liska  <mliska@suse.cz>
19678             Martin Jambor  <mjambor@suse.cz>
19680         PR ipa/65087
19681         * ipa-icf.c (sem_item_optimizer::execute): Change function
19682         return value to boolean.
19683         (sem_item_optimizer::merge_classes): Likewise.
19684         (ipa_icf_driver): Return TODO_remove_functions in case there's
19685         a merge operation processed.
19686         * ipa-icf.h: Change function return value to boolean.
19688 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19690         PR 65138/target
19691         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
19692         processor type for 64-bit little endian PowerPC.
19694         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19695         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
19696         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
19697         printing built-in mask so it does not pass NULL pointers.
19699         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
19700         -mcpu=powerpc64le.
19702 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
19704         PR target/58158
19705         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
19706         !ISA_HAS_FP_CONDMOVE.
19708 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
19710         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
19711         reload_completed.
19713 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
19715         * doc/invoke.texi (Options for Code Generation Conventions):
19716         Fix URL of DSO paper.
19718 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
19720         PR ipa/65130
19721         * ipa-inline.c (check_callers): Looks for recursion.
19722         (inline_to_all_callers): Give up on uninlinable or recursive edges.
19723         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
19724         summary of inline clones.
19725         (do_estimate_growth_1): Fix recursion check.
19727 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
19729         PR ipa/64988
19730         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
19731         comdat groups.
19733 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
19734             Aldy Hernandez  <aldyh@redhat.com>
19736         PR lto/65276
19737         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
19738         when checking TYPE_BINFO.
19740 2015-03-02  Richard Biener  <rguenther@suse.de>
19742         PR ipa/65270
19743         * ipa-icf-gimple.c: Include builtins.h.
19744         (func_checker::compare_memory_operand): Compare base alignment.
19746 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19748         PR target/65184
19749         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
19750         are never passed by reference.
19752 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19754         PR target/65183
19755         * tree-chkp.c (chkp_check_lower): Don't check against
19756         zero bounds for already instrumented functions.
19757         (chkp_check_upper): Likewise.
19758         (chkp_fini): Clean pass local data to avoid wrong reusage.
19760 2015-02-28  Martin Liska  <mliska@suse.cz>
19761             Jan Hubicka  <hubicka@ucw.cz>
19763         * ipa-icf.c (sem_variable::equals): Improve debug output;
19764         get variable constructor.
19765         (sem_variable::parse): Do not filter out too early; give up on
19766         volatile and register vars.
19767         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
19768         variables.
19769         * ipa-icf.h (sem_variable::init): Do not set ctor.
19770         (sem_variable::ctor): Remove.
19772 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
19774         PR middle-end/65233
19775         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
19777 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19779         * ipa-icf.c: Include stor-layout.h
19780         (sem_function::compare_cgraph_references): Rename to ...
19781         (sem_item::compare_cgraph_references): ... this one.
19782         (sem_variable::equals_wpa): New function
19783         (sem_variable::equals): Do not check stuff already verified by
19784         equals_wpa.
19785         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
19786         * ipa-icf.h (sem_item): Add compare_cgraph_references.
19787         (sem_function): Remove compare_cgraph_references.
19788         (sem_variable): Turns equals_wpa into non-inline.
19790 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19792         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
19793         (sem_item::add_expr): New function.
19794         (sem_function::hash_stmt): Handle operands of most statements.
19795         (sem_variable::get_hash): Hash the actual constructor.
19796         * ipa-icf.h (sem_item): Add add_expr.
19797         (sem_function): Update prototype of hash_stmt
19799 2015-02-28  Martin Liska  <mliska@suse.cz>
19800             Jan Hubicka  <hubicka@ucw.cz>
19802         PR ipa/65245
19803         * ipa-icf-gimple.c (func_checker::compare_function_decl):
19804         Remove.
19805         (func_checker::compare_variable_decl): Skip symtab vars.
19806         (func_checker::compare_cst_or_decl): Update.
19807         * ipa-icf.c (sem_function::parse): Do not consider aliases.
19808         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
19809         use correct symtab predicates.
19810         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
19811         (sem_variable::parse):  Update comment.
19812         (sem_item_optimizer::build_graph): Consider ultimate aliases
19813         for references.
19815 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19817         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
19818         of OBJ_TYPE_REF.
19820 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19822         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
19823         (sem_variable::merge) Likewise.
19825 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19827         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
19828         target; also match flag_ipa_devirt.
19830 2015-03-01  Martin Liska  <mliska@suse.cz>
19831             Jan Hubicka  <hubicka@ucw.cz>
19833         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
19834         Validate variable alignment.
19835         * ipa-icf.c (sem_function::equals_private): Be more precise
19836         about non-common function attributes.
19837         (sem_variable::equals): Likewise.
19839 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19841         PR ipa/65237
19842         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
19843         across COMDAT group boundary.
19845 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19847         PR ipa/65232
19848         * ipa-icf.c (clear_decl_rtl): New function.
19849         (sem_function::merge): Clear RTL before forming alias.
19850         (sem_variable::merge): Clear RTL before forming alias.
19852 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19854         PR ipa/65236
19855         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
19857 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
19859         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
19860         to neon_to_gp<q>.
19862 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
19864         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
19865         a typo in the description.
19867 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
19869         PR target/64317
19870         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19871         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19872         * lra-constraints.c: Include "params.h".
19873         (EBB_PROBABILITY_CUTOFF): Use
19874         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
19875         (lra_inheritance): Use '<' instead of '<=' for
19876         EBB_PROBABILITY_CUTOFF.
19877         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
19878         Document change.
19880 2015-02-27  Martin Liska  <mliska@suse.cz>
19882         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
19883         vector length condition.
19885 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
19887         * doc/extend.texi (x86 transactional memory intrinsics):
19888         Reorganize discussion of _xbegin.  Clarify that the return
19889         value is a bit mask.  Expand example and move to end of section.
19891 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
19892             Aldy Hernandez  <aldyh@redhat.com>
19894         PR rtl-optimization/65220
19895         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19897 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
19899         PR target/65032
19900         * lra-remat.c (update_scratch_ops): New.
19901         (do_remat): Call it.
19902         * lra.c (lra_register_new_scratch_op): New. Take code from ...
19903         (remove_scratches): ... here.
19904         * lra-int.h (lra_register_new_scratch_op): New prototype.
19906 2015-02-27  Marek Polacek  <polacek@redhat.com>
19908         PR c/65040
19909         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19910         -Wformat-signedness anymore.
19912 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19914         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19915         function.
19916         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19918 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19920         * config/s390/s390.c (enum s390_builtin):
19921         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19922         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19923         (s390_init_builtins): Generate new builtin functions.
19924         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19925         (s390_sfpc, s390_efpc): New pattern definitions.
19927 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19929         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19930         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19931         (s390_builtin_decls): New array.
19932         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19933         (s390_builtin_decl): New function.
19934         (TARGET_BUILTIN_DECL): Define macro.
19936 2015-02-27  Richard Biener  <rguenther@suse.de>
19938         PR middle-end/63175
19939         * builtins.c (get_object_alignment_2): Make sure to re-apply
19940         the ANDed mask after recursing to its operand gets us a new
19941         misalignment bit position.
19943 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
19944             Martin Liska  <mliska@suse.cz>
19946         PR bootstrap/65150
19947         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19948         Use address_matters_p.
19949         (redirect_all_callers, set_addressable): New functions.
19950         (sem_function::merge): Reorganize and fix merging issues.
19951         (sem_variable::merge): Likewise.
19952         (sem_variable::compare_sections): Remove.
19953         * common.opt (fmerge-all-constants, fmerge-constants): Remove
19954         Optimization flag.
19955         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
19956         redirect them.
19957         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
19958         decl is used.
19959         (address_matters_1): New function.
19960         (symtab_node::address_matters_p): New function.
19961         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
19962         check for merged flag.
19963         * cgraph.h (address_matters_p): Declare.
19964         (symtab_node::address_taken_from_non_vtable_p): Remove.
19965         (symtab_node::address_can_be_compared_p): New method.
19966         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
19967         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
19968         Remove.
19969         (comdat_can_be_unshared_p_1) Use address_matters_p.
19970         (update_vtable_references): Fix formating.
19971         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
19972         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
19973         * cgraphclones.c: Preserve merged and icf_merged flags.
19975 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
19977         * doc/extend.texi (Function Attributes): Fix spelling and typos.
19978         (Label Attributes): Likewise.
19979         (Cilk Plus Builtins): Likewise.
19980         (ARC SIMD Built-in Functions): Likewise.
19981         (ARM C Language Extensions (ACLE)): Likewise.
19982         (PowerPC Built-in Functions): Likewise.
19983         (PowerPC Hardware Transactional Memory Built-in Functions):
19984         Likewise.
19986 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
19988         PR tree-optimization/65216
19989         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
19990         new stmt and new SSA_NAME for lhs whenever the arguments have
19991         changed and weren't just swapped.  Fix comment typo.
19993         PR tree-optimization/65215
19994         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
19995         for PDP endian targets.
19996         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
19997         Fix up formatting issues.
19998         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
19999         size is smaller than the original, adjust MEM_REF offset by the
20000         difference of sizes.  Use is_gimple_mem_ref_addr instead of
20001         is_gimple_min_invariant test to avoid adding address temporaries.
20003 2015-02-26  Martin Liska  <mliska@suse.cz>
20004             Jan Hubicka  <hubicka@ucw.cz>
20006         PR ipa/64693
20007         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
20008         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
20009         (sem_item_optimizer::process_cong_reduction): Include division by
20010         sensitive references.
20011         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
20012         * ipa-ref.c (ipa_ref::address_matters_p): New function.
20013         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
20015 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
20017         PR target/65192
20018         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
20019         Remove.
20020         * config/avr/avr.c: Same.
20021         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
20022         Refuse any constant address not in 0..0xbf.
20023         * config/avr/avr.md (*mov<mode>, *movsf): Remove
20024         tiny_valid_direct_memory_access_range from insn conditions.
20025         (mov<mode>): Don't special-case expansion of avrtiny addresses.
20027 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
20029         PR target/61142
20030         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
20031         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
20032         * config/sh/predicates.md (const_logical_operand): New predicate.
20033         * config/sh/sh.md: Add new peephole2 patterns.
20035 2015-02-26  Marek Polacek  <polacek@redhat.com>
20037         PR ipa/65008
20038         * ipa-inline.c (early_inliner): Recompute inline parameters.
20040 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20042         PR target/65171
20043         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
20044         instructions with TImode operands are included in the analysis.
20046 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
20048         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
20049         of an EDGE_FSM_THREAD.
20051 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20053         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
20055 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
20057         PR debug/46102
20058         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
20060 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
20062         PR tree-optimization/65048
20063         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
20064         (thread_through_all_blocks): Call valid_jump_thread_path.
20065         Remove invalid FSM jump-thread paths.
20067 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
20069         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
20070         (ipa_write_optimization_summaries): Likewise.
20071         * tree-streamer.h: Include data-streamer.h.
20072         (streamer_mode_table): Declare extern variable.
20073         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
20074         * lto-streamer-out.c (lto_output_init_mode_table,
20075         lto_write_mode_table): New functions.
20076         (produce_asm_for_decls): Call lto_write_mode_table when streaming
20077         offloading LTO.
20078         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
20079         (lto_create_simple_input_block): Add mode_table argument to the
20080         lto_input_block constructors.
20081         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
20082         Likewise.
20083         * data-streamer-in.c (string_for_index): Likewise.
20084         * ipa-inline-analysis.c (inline_read_section): Likewise.
20085         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
20086         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
20087         * lto-streamer-in.c (lto_read_body_or_constructor,
20088         lto_input_toplevel_asms): Likewise.
20089         (lto_input_mode_table): New function.
20090         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
20091         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
20092         Use bp_pack_machine_mode.
20093         * real.h (struct real_format): Add name field.
20094         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
20095         (class lto_input_block): Add mode_table member.
20096         (lto_input_block::lto_input_block): Add mode_table_ argument,
20097         initialize mode_table.
20098         (struct lto_file_decl_data): Add mode_table field.
20099         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
20100         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
20101         unpack_ts_decl_common_value_fields,
20102         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
20103         * tree-streamer.c (streamer_mode_table): New variable.
20104         * real.c (ieee_single_format, mips_single_format,
20105         motorola_single_format, spu_single_format, ieee_double_format,
20106         mips_double_format, motorola_double_format,
20107         ieee_extended_motorola_format, ieee_extended_intel_96_format,
20108         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
20109         ibm_extended_format, mips_extended_format, ieee_quad_format,
20110         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
20111         decimal_single_format, decimal_double_format, decimal_quad_format,
20112         ieee_half_format, arm_half_format, real_internal_format): Add name
20113         field.
20114         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
20116 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
20118         PR target/65161
20119         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
20120         reordering for selective scheduling.
20122 2015-02-26  Terry Guo  <terry.guo@arm.com>
20124         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
20125         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
20126         (arm_arch_no_volatile_ce): Declare new global variable.
20127         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
20128         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
20129         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
20130         (TARGET_NO_VOLATILE_CE): New macro.
20131         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
20132         volatile memory access in IT block
20134 2015-02-25  Kai Tietz  <ktietz@redhat.com>
20136         PR tree-optimization/61917
20137         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
20138         that reduc_def_stmt is null.
20140 2015-02-25  Martin Liska  <mliska@suse.cz>
20142         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
20143         hard register variables.
20145 2015-02-25  Kai Tietz  <ktietz@redhat.com>
20147         PR target/64212
20148         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
20149         (symtab::noninterposable_alias): Likewise.
20151 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
20153         PR target/65167
20154         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
20155         bounds registers.
20156         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
20158 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
20160         PR target/64997
20161         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
20162         as split condition; force split via '#' in output pattern.
20164 2015-02-25  Richard Biener  <rguenther@suse.de>
20165             Kai Tietz  <ktietz@redhat.com>
20167         PR tree-optimization/61917
20168         * tree-vect-loop.c (vectorizable_reduction): Allow
20169         vect_internal_def without reduction to exit graceful.
20171 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
20173         PR target/65196
20174         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
20175         only with NONDEBUG_INSN_P.
20177 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
20179         Use variadic macros with avr-log.c.
20181         * config/avr/avr-protos.h (avr_vdump): New prototype.
20182         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
20183         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
20184         * config/avr/avr-log.c: Adjust comments.
20185         (avr_vdump): New function.
20186         (avr_vadump): Pass caller as 2nd argument instead of format string.
20187         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
20188         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
20190 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
20192         PR lto/64374
20193         * target.def (target_option_stream_in): New target hook.
20194         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
20195         targetm.target_option.post_stream_in if non-NULL.
20196         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
20197         * doc/tm.texi: Updated.
20198         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
20199         function.
20200         (TARGET_OPTION_POST_STREAM_IN): Redefine.
20202 2015-02-24  Jeff Law  <law@redhat.com>
20204         PR target/65117
20205         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
20206         of operand 0 and operand 2.
20207         (zero_cost_loop_end, loop_end): Similarly.
20209 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
20211         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
20212         CXX_MEM_STAT_INFO.
20214 2015-02-24  DJ Delorie  <dj@redhat.com>
20216         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
20217         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
20218         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
20219         instead of hardcoding SImode.
20221 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
20223         * omp-low.c (create_omp_child_function): Tag entrypoint
20224         functions with a special attribute.
20226 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20228         PR target/65058
20229         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
20231 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
20233         PR rtl-optimization/65123
20234         * lra-remat.c (operand_to_remat): Check hard regs in insn
20235         definition too.
20237 2015-02-24  Nick Clifton  <nickc@redhat.com>
20239         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
20240         to the assembler.
20242 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
20244         PR libgomp/64625
20245         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
20246         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
20247         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
20248         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
20249         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
20250         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
20251         (BUILT_IN_GOACC_PARALLEL): Specify as
20252         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
20253         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
20254         * builtin-types.def
20255         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20256         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20257         Remove function types.
20258         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
20259         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20260         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20261         New function types.
20263 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
20265         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
20267 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
20269         PR tree-optimization/65170
20270         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
20271         if val[1] < 0, clear also val[2] and return 3.
20273 2015-02-24  Alan Modra  <amodra@gmail.com>
20275         PR target/65172
20276         * config/rs6000/rs6000.c (get_memref_parts): Only return true
20277         when *base is a reg.  Handle nested plus addresses.  Simplify
20278         pre_modify test.
20280 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
20282         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
20283         use natural alignment when optimizing for size.
20285 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
20287         PR target/65153
20288         * config/sh/sh.md (movsicc_true+3): Remove peephole.
20289         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
20290         * config/sh/sh.c (replace_n_hard_rtx): Remove.
20292 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
20294         PR fortran/63427
20295         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
20296         too big for a wide_int.  Implement missing wrapping operation.
20298 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
20300         PR target/65163
20301         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
20302         instead of const_int 4294901760.
20304 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
20306         * config/avr/t-avr: Fix typo in comment.
20308 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
20310         * doc/rtl.texi (fma): Clarify documentation.
20312 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
20314         PR debug/58123
20315         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
20316         over input_location.
20318 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
20320         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
20321         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
20322         restrict alignments to absolute_biggest_alignment.
20323         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
20324         Define.
20325         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
20326         * doc/tm.texi: Regenerate.
20327         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
20329 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
20331         PR target/64172
20332         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
20334 2015-02-20  Richard Biener  <rguenther@suse.de>
20336         PR tree-optimization/65136
20337         * tree-ssa-propagate.c: Include cfgloop.h.
20338         (replace_phi_args_in): Avoid replacing loop latch edge PHI
20339         arguments with constants.
20341 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
20342             Martin Liska  <mliska@suse.cz>
20344         PR target/63892
20345         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
20346         don't try to create_thunk if stdarg_p.  If
20347         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
20348         redirect_callers if possible.
20349         (sem_item_optimizer::execute): Call unregister_hooks here...
20350         (ipa_icf_driver): ... instead of here.
20352 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20354         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
20355         Mark operand 0 as earlyclobber in 2nd alternative.
20356         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
20357         Write negated shift amount into QI lowpart operand 0 and use it
20358         in the shift step.
20359         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20361 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
20363         * cgraph.h (clone_function_name_1): Declare.
20364         * cgraphclones.c (clone_function_name_1): New function.
20365         (clone_function_name): Use it.
20366         * lto-partition.c: Include "stringpool.h".
20367         (must_not_rename, maybe_rewrite_identifier)
20368         (validize_symbol_for_target): New static functions.
20369         (privatize_symbol_name): Use must_not_rename.
20370         (promote_symbol): Call validize_symbol_for_target.
20371         (lto_promote_cross_file_statics): Likewise.
20372         (lto_promote_statics_nonwpa): Likewise.
20374 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
20376         PR target/64452
20377         * config/avr/avr.md (pushhi_insn): New insn.
20378         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
20380 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
20381             Jakub Jelinek  <jakub@redhat.com>
20383         * tree-streamer.c (preload_common_nodes): Don't preload
20384         TI_VA_LIST* for offloading.
20385         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
20386         in_lto_p.
20388 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
20390         * config/pa/pa.c (pa_emit_move_sequence): Always force
20391         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
20392         note on insn.
20394         * config/pa/pa.c (pa_reloc_rw_mask): New function.
20395         (TARGET_ASM_RELOC_RW_MASK): Define.
20396         (pa_cannot_force_const_mem): Revert previous change.
20398 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
20399             Jan Hubicka  <hubicka@ucw.cz>
20401         PR ipa/65028
20402         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
20403         across jump functions.
20405 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
20407         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
20409 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
20411         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
20413 2015-02-19  Richard Henderson  <rth@redhat.com>
20415         PR middle-end/65074
20416         * varasm.c (default_binds_local_p_2): Don't test node->definition;
20417         test DECL_EXTERNAL independent of symtab_node.
20419 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
20421         PR lto/65012
20422         * varpool.c (varpool_node::get_constructor): Return early
20423         if this->lto_file_data is NULL.
20425 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20427         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
20428         (rank_for_schedule_debug): Update.
20429         (ready_sort): Make static.  Move sorting logic to ...
20430         (ready_sort_debug, ready_sort_real): New static functions.
20431         (schedule_block): Sort both debug insns and real insns in preparation
20432         for ready list trimming.  Improve debug output.
20433         * sched-int.h (ready_sort): Remove global declaration.
20435 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
20437         * ipa-icf.c (sem_function::equals_private): Adjust.
20438         (sem_function::bb_dict_test): Take a vec<int> * instead of
20439         auto_vec<int>.
20440         * ipa-icf.h (bb_dict_test): Likewise.
20442 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
20444         PR gcov-profile/64634
20445         * tree-eh.c (frob_into_branch_around): Fix up typos
20446         in function comment.
20447         (lower_catch): Put eh_seq resulting from EH lowering of
20448         the cleanup sequence after the cleanup rather than before it.
20450 2015-02-18  Tom de Vries  <tom@codesourcery.com>
20452         * common.opt (fstdarg-opt): New option.
20453         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
20454         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
20455         (@item -fstdarg-opt): New item.
20457 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20459         PR target/65064
20460         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
20461         for common symbols.
20463 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
20465         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
20466         insn-modes.h.
20467         (ALL_HOST_OBJS): Add mkoffload.o.
20468         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
20470 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
20472         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
20473         (compare_virtual_tables): Be smarter about skipping typeinfos;
20474         do sane output on virtual table table mismatch.
20475         (warn_odr): Be ready for forward declarations of enums;
20476         output sane info on base mismatch and virtual table mismatch.
20477         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
20478         when only one type is polymorphic.
20479         (get_odr_type): Fix hashtable corruption.
20480         (dump_odr_type): Dump mangled names.
20482 2015-02-18  Richard Biener  <rguenther@suse.de>
20484         PR tree-optimization/65063
20485         * tree-predcom.c (determine_unroll_factor): Return 1 if we
20486         have replaced looparound PHIs.
20488 2015-02-18  Martin Liska  <mliska@suse.cz>
20490         * lto-streamer.c (lto_streamer_init): Encapsulate
20491         streamer_check_handled_ts_structures with checking macro.
20493 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
20495         PR ipa/65087
20496         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
20497         section if !implicit_section.
20498         (cgraph_node::create_version_clone_with_body): Likewise.
20499         * trans-mem.c (ipa_tm_create_version): Likewise.
20501 2015-02-18  Richard Biener  <rguenther@suse.de>
20503         PR tree-optimization/62217
20504         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
20505         into BIVs.
20507 2015-02-18  Marek Polacek  <polacek@redhat.com>
20509         PR sanitizer/65081
20510         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
20511         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
20512         is in range [-16K, -1].  Don't issue run-time error if
20513         (ptr > ptr + offset).
20515 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
20517         * doc/install.texi (nvptx-*-none): New section.
20518         * doc/invoke.texi (Nvidia PTX Options): Likewise.
20519         * config/nvptx/nvptx.opt: Update.
20521         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
20522         (access_check): New functions, copied from
20523         config/i386/intelmic-mkoffload.c.
20524         (main): For non-installed testing, look in all COMPILER_PATHs for
20525         GCC_INSTALL_NAME.
20527         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
20529 2015-02-18  Andrew Pinski  <apinski@cavium.com>
20530             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20532         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
20533         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
20535 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
20537         * ipa-visibility.c (function_and_variable_visibility): Only
20538         check locality if node is not already local.
20539         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20540         call_for_symbol_and_aliases instead of
20541         call_for_symbol_thunks_and_aliases.
20542         (ipa_inline): Likewise.
20543         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20544         first walk aliases.
20545         * ipa.c (symbol_table::remove_unreachable_nodes): Use
20546         call_for_symbol_and_aliases.
20547         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20548         (ipa_propagate_frequency_1): Use it; use opt_for_fn
20549         (ipa_propagate_frequency): Update.
20550         (ipa_profile): Add opt_for_fn gueards.
20552 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
20554         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
20555         * doc/invoke.texi (SH options): Document it.
20556         * config/sh/sh.c (sh_insn_length_adjustment): Check
20557         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
20559 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
20561         * common.opt (fipa-cp-alignment): New.
20562         * ipa-cp.c (ipcp_store_alignment_results): Check
20563         flag_ipa_cp_alignment.
20564         * opts.c (default_options_table): Enable -fipa-cp-alignment for
20565         -O2.
20566         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
20567         * doc/invoke.texi: Document -fipa-cp-alignment.
20569 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
20571         PR target/64793
20572         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
20573         to nil.  Adjust comments.
20575 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
20577         * ipa-visibility.c (function_and_variable_visibility): Only
20578         check locality if node is not already local.
20579         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20580         call_for_symbol_and_aliases instead of
20581         call_for_symbol_thunks_and_aliases.
20582         (ipa_inline): Likewise.
20583         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20584         first walk aliases.
20585         * ipa.c (symbol_table::remove_unreachable_nodes): Use
20586         call_for_symbol_and_aliases.
20587         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20588         (ipa_propagate_frequency_1): Use it; use opt_for_fn
20589         (ipa_propagate_frequency): Update.
20590         (ipa_profile): Add opt_for_fn guards.
20592 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
20594         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20595         skipping of "strange" tokens.
20597 2015-02-17  Jeff Law  <law@redhat.com>
20599         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
20600         obsolete comment.
20602 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
20604         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20605         as forcing a HARD_DEP between instructions, thereby
20606         disallowing rewriting to break dependencies.
20608 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
20610         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20611         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20612         variables in boundary that have no inlitalizer encoded and are
20613         not aliases.
20614         * varasm.c (default_binds_local_p_2): External definitions do not
20615         count as definitions here.
20617 2015-02-16  Jeff Law  <law@redhat.com>
20619         PR tree-optimization/64823
20620         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20621         statements.
20622         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20623         threading through blocks with PHIs, but no statements.
20624         (thread_through_normal_block): Distinguish between blocks where
20625         we did not process all the statements and blocks with no statements.
20627 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
20628             James Greenhalgh  <james.greenhalgh@arm.com>
20630         PR ipa/64963
20631         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20632         section if not linkonce.  Fix up formatting.
20633         (cgraph_node::create_version_clone_with_body): Copy section.
20634         * trans-mem.c (ipa_tm_create_version): Likewise.
20636 2015-02-16  Richard Biener  <rguenther@suse.de>
20638         PR tree-optimization/65077
20639         * tree-ssa-structalias.c (get_constraint_for_1): Handle
20640         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20641         (find_func_aliases): Allow float values to carry pointers again.
20643 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20645         * doc/install.texi (Specific): Reorder targets list to put
20646         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
20647         from the top menu.
20649 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
20650             David Edelsohn  <dje.gcc@gmail.com>
20652         PR target/65058
20653         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
20654         mapping class to external variable or function reference.
20655         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
20656         mapping class.
20658 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
20660         PR target/53348
20661         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
20662         ASM_WEAKEN_DECL if defined.
20664 2015-02-16  Richard Biener  <rguenther@suse.de>
20666         PR lto/65015
20667         * varasm.c (default_file_start): For LTO produced units
20668         emit <artificial> as file directive.
20670 2015-02-16  Richard Biener  <rguenther@suse.de>
20672         PR tree-optimization/63593
20673         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
20674         stmts and releasing SSA names until...
20675         (execute_pred_commoning): ... after processing all chains.
20677 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
20679         PR ipa/65059
20680         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
20681         external functions.
20683 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
20685         * doc/bugreport.texi: Adjust section titles throughout the file
20686         to use "Title Case".
20687         * doc/extend.texi: Likewise.
20688         * doc/gcov.texi: Likewise.
20689         * doc/implement-c.texi: Likewise.
20690         * doc/implement-cxx.texi: Likewise.
20691         * doc/invoke.texi: Likewise.
20692         * doc/objc.texi: Likewise.
20693         * doc/standards.texi: Likewise.
20694         * doc/trouble.texi: Likewise.
20696 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
20698         * cgraph.h (symtab_node::has_aliases_p): Simplify.
20699         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
20700         * tree.c (lookup_binfo_at_offset): Make static.
20701         (get_binfo_at_offset): Do not shadow offset; add explanatory
20702         comment.
20704 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
20706         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
20707         for all floading point loads and stores except those using a register
20708         index address.
20709         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
20710         to a register.
20712 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
20714         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
20715         (do_estimate_growth_1): Record if any uninlinable edge was seen.
20716         (estimate_growth): Handle uninlinable edges correctly.
20717         (check_callers): New.
20718         (growth_likely_positive): Handle aliases correctly.
20720 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
20722         * ipa-chkp.c: Use iterate_direct_aliases.
20723         * symtab.c (resolution_used_from_other_file_p): Move inline.
20724         (symtab_node::create_reference): Fix formating.
20725         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20726         (symtab_node::iterate_reference): Move inline.
20727         (symtab_node::iterate_referring): Move inline.
20728         (symtab_node::iterate_direct_aliases): Move inline.
20729         (symtab_node::used_from_object_file_p_worker): Inline into ...
20730         (symtab_node::used_from_object_file_p): ... this one; move inline.
20731         (symtab_node::call_for_symbol_and_aliases): Move inline;
20732         use iterate_direct_aliases.
20733         (symtab_node::call_for_symbol_and_aliases_1): New method.
20734         (cgraph_node::call_for_symbol_and_aliases): Move inline;
20735         use iterate_direct_aliases.
20736         (cgraph_node::call_for_symbol_and_aliases_1): New method.
20737         (varpool_node::call_for_node_and_aliases): Rename to ...
20738         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20739         use iterate_direct_aliases.
20740         (varpool_node::call_for_symbol_and_aliases_1): New method.
20741         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
20742         (ipa_discover_readonly_nonaddressable_var): Update.
20743         * ipa-devirt.c: Fix formating.
20744         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
20745         Move inline.
20746         (cgraph_node::call_for_symbol_and_aliases): Move inline.
20747         (cgraph_node::call_for_symbol_and_aliases_1): New function..
20748         * cgraph.h (used_from_object_file_p_worker): Remove.
20749         (resolution_used_from_other_file_p): Move inline.
20750         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20751         (symtab_node::iterate_reference): Move inline.
20752         (symtab_node::iterate_referring): Move inline.
20753         (symtab_node::iterate_direct_aliases): Move inline.
20754         (symtab_node::used_from_object_file_p_worker): Inline into ...
20755         (symtab_node::used_from_object_file_p): Move inline.
20756         * tree-emutls.c (ipa_lower_emutls): Update.
20757         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
20758         (varpool_node::call_for_node_and_aliases): Remove.
20760 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
20762         PR tree-optimization/62209
20763         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
20764         op == range->exp, insert seq and gimplified code after labels
20765         instead of after the phi.
20767 2015-02-13  Jeff Law  <law@redhat.com>
20769         PR bootstrap/65060
20770         Revert my change for tree-optimization/64823.
20772 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
20774         PR tree-optimization/65053
20775         * tree-ssa-phiopt.c (value_replacement): When moving assign before
20776         cond, either reset VR on lhs or set it to phi result VR.
20778 2015-02-13  Jeff Law  <law@redhat.com>
20780         PR tree-optimization/64823
20781         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
20782         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20783         threading through blocks with PHIs, but no statements.
20784         (thread_through_normal_block): Distinguish between blocks where
20785         we did not process all the statements and blocks with no statements.
20787         PR rtl-optimization/47477
20788         * match.pd (convert (plus/minus (convert @0) (convert @1): New
20789         simplifier to narrow arithmetic.
20791 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
20793         PR ipa/65028
20794         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
20795         polymorphic call info when type is not known to be preserved.
20797 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
20799         PR ipa/65028
20800         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
20801         (inline_call): Use it.
20803 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
20805         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
20806         GOMP_DEVICE_NVIDIA_PTX.
20808 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
20810         PR ipa/65034
20811         * stmt.c (emit_case_nodes): Use void_type_node instead of
20812         NULL_TREE as LABEL_DECL type.
20814 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
20816         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
20817         constraints.
20818         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
20819         symbolic references to data to be forced to constant memory on the
20820         SOM target.
20822 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
20824         PR tree-optimization/65002
20825         * tree-cfg.c (pass_data_fixup_cfg): Don't update
20826         SSA on start.
20827         * tree-sra.c (some_callers_have_no_vuse_p): New.
20828         (ipa_early_sra): Reject functions whose callers
20829         assume function is read only.
20831 2015-02-13  Richard Biener  <rguenther@suse.de>
20833         PR lto/65015
20834         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
20835         for LTO produced CUs.
20837 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
20839         PR tree-optimization/64705
20840         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
20841         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
20842         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
20843         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
20844         expand_simple_operations.
20846 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
20847             Richard Henderson  <rth@redhat.com>
20849         PR rtl/32219
20850         * cgraphunit.c (cgraph_node::finalize_function): Set definition
20851         before notice_global_symbol.
20852         (varpool_node::finalize_decl): Likewise.
20853         * varasm.c (default_binds_local_p_2): Rename from
20854         default_binds_local_p_1, add weak_dominate argument.  Use direct
20855         returns instead of assigning to local variable.  Unify varpool and
20856         cgraph paths via symtab_node.  Reject undef weak variables before
20857         testing visibility.  Reorder tests for simplicity.
20858         (default_binds_local_p): Use default_binds_local_p_2.
20859         (default_binds_local_p_1): Likewise.
20860         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
20861         via symtab_node.
20862         (default_elf_asm_output_external): Emit visibility when specified.
20864 2015-02-13  Alan Modra  <amodra@gmail.com>
20866         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
20867         code setting up r11 for out-of-line fp restore.
20869 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20871         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
20872         (muser-mode): Likewise.
20874 2015-02-13  Alan Modra  <amodra@gmail.com>
20876         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
20877         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
20879 2015-02-12  David Howells  <dhowells@redhat.com>
20881         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
20882         warning.
20883         * tree-ssa-uninit.c (dump_predicates): Likewise.
20884         * opts.c (print_filtered_help): Likewise.
20886 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
20888         * dwarf2out.c (output_die): Use "%s", name instead of name to
20889         avoid -Wformat-security warning.
20891         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20892         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20893         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20894         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20896 2015-02-12  Jason Merrill  <jason@redhat.com>
20898         * common.opt (-flifetime-dse): New.
20900 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
20902         PR sanitizer/65019
20903         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20905         PR tree-optimization/65014
20906         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20907         use original second operand of arg0 or arg1 instead of
20908         that adjusted by STRIP_NOPS.
20910 2015-02-11  Jeff Law  <law@redhat.com>
20912         PR target/63347
20913         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20914         that needs to be queued, just queue it for a single cycle.
20916 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
20918         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20919         bodies of thunks; comment on why.
20920         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20921         symbols are extern.
20923 2015-02-11  Richard Henderson  <rth@redhat.com>
20925         PR sanitize/65000
20926         * tree-eh.c (mark_reachable_handlers): Mark source and destination
20927         regions of __builtin_eh_copy_values.
20929 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
20931         PR middle-end/65003
20932         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20933         ultimate alias is MEM with SYMBOL_REF satisfying
20934         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
20935         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20937 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
20939         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20940         "diagnostic-core.h".
20941         (main): Initialize progname, and call diagnostic_initialize.
20943         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20944         instead of __OPENMP_TARGET__.
20946         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20947         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20948         hard-coding PTX_ID.
20950 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
20952         * doc/sourcebuild.texi (pie_enabled): Document.
20954 2015-02-11  Martin Liska  <mliska@suse.cz>
20956         PR ipa/64813
20957         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
20958         a return value for call to a function that is noreturn.
20960 2015-02-11  Richard Biener  <rguenther@suse.de>
20962         PR lto/65015
20963         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
20964         and -fresolution.
20966 2015-02-11  Andrew Pinski  <apinski@cavium.com>
20968         PR target/64893
20969         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20970         Change the first argument type to size_type_node and add another
20971         size_type_node.
20972         (aarch64_simd_expand_builtin): Handle the new argument to
20973         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
20974         print an out when the first two arguments are not
20975         nonzero integer constants.
20976         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
20977         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
20979 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
20981         PR target/61925
20982         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
20983         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
20984         (ix86_set_current_function): Rewritten.
20985         (ix86_add_new_builtins): Temporarily clear current_target_pragma
20986         when creating builtin fndecls.
20988 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
20990         PR ipa/65005
20991         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
20992         function.
20993         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
20994         have no comdat group.
20995         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
20996         (lto_output_varpool_node): Always output alias info.
20997         (output_refs): Output refs of boundary aliases, too.
20998         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
20999         (output_symtab): Output call eges in thunks in boundary.
21000         (get_alias_symbol): Remove.
21001         (input_node, input_varpool_node): Do not special case weakrefs.
21002         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
21003         alias and thunks targets in the boundary; do not take removed symbols
21004         from their comdat groups.
21005         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
21006         (cgraph_node::global_info): Remove.
21007         (cgraph_node::rtl_info): Look through aliases and thunks.
21008         * cgrpah.h (global_info): Remove.
21009         (non_local_p): Remove.
21011 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
21012             Sandra Loosemore  <sandra@codesourcery.com>
21014         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
21015         to inline asm.  List dialects in proper order.
21017 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
21018             Sandra Loosemore  <sandra@codesourcery.com>
21020         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
21022 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
21024         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
21025         modified) reference to Solaris.
21027 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
21029         * doc/extend.texi (Extended Asm): Fix typos.
21031 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
21033         PR sanitizer/65004
21034         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
21036 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
21038         PR target/64661
21039         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
21040         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
21041         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
21042         * config/sh/constraints.md (Ara, Add): New constraints.
21043         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
21044         predicates.
21045         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
21046         atomic_mem_operand_0.  Don't use force_reg on the memory address.
21047         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
21048         Sra constraint.  Convert to insn_and_split.  Add workaround for
21049         PR 64974.
21050         (atomic_compare_and_swap<mode>_hard): Copy to
21051         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
21052         Use atomic_mem_operand_0 predicate.
21053         (atomic_compare_and_swap<mode>_soft_gusa,
21054         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
21055         AraAdd constraints.
21056         (atomic_compare_and_swap<mode>_soft_tcb,
21057         atomic_compare_and_swap<mode>_soft_imask,
21058         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
21059         atomic_mem_operand_0 predicate and SraSdd constraints.
21060         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
21061         constraint.
21062         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
21063         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
21064         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
21065         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
21066         force_reg on the memory address.
21067         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
21068         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
21069         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
21070         atomic_mem_operand_1 predicate and Sra constraint.
21071         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
21072         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
21073         Use atomic_mem_operand_1 predicate.
21074         (atomic_<fetchop_name><mode>_hard): Copy to
21075         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
21076         Use atomic_mem_operand_1 predicate.
21077         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
21078         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
21079         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
21080         insn_and_split.  Use atomic_mem_operand_1 predicate.
21081         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
21082         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
21083         Use atomic_mem_operand_1 predicate.
21084         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
21085         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
21086         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
21087         in generated insn with original mem operand before emitting the insn.
21088         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
21089         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
21090         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
21091         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
21092         Use atomic_mem_operand_1 predicate and AraAdd constraints.
21093         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
21094         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
21095         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
21096         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
21097         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
21098         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
21099         atomic_not_fetch<mode>_soft_tcb,
21100         atomic_<fetchop_name>_fetch<mode>_soft_imask,
21101         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
21102         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
21103         Use atomic_mem_operand_1 predicate and SraSdd constraints.
21105 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
21107         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
21108         and 3 earlyclobber operands.
21110 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
21112         * common.opt (fstack-reuse): Mark as optimization.
21114 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
21116         PR ipa/64982
21117         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
21119 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
21121         PR tree-optimization/64326
21122         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
21124 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
21126         PR gcov-profile/61889
21127         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
21129 2015-02-10  Richard Biener  <rguenther@suse.de>
21131         PR tree-optimization/64995
21132         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
21133         value we use is final.
21134         (visit_reference_op_store): Always valueize op.
21135         (visit_use): Properly valueize vuses.
21137 2015-02-10  Richard Biener  <rguenther@suse.de>
21139         PR tree-optimization/64909
21140         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
21141         pass a scalar-stmt count estimate to the cost model.
21142         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
21144 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
21146         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
21147         enabled by default together with var-tracking.
21149 2015-02-10  Nick Clifton  <nickc@redhat.com>
21151         * config/rl78/rl78.c: Remove DIV attribute code accidentally
21152         included in previous rl78 commit.
21154 2015-02-10  Richard Biener  <rguenther@suse.de>
21156         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
21157         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
21158         return the bitpack.
21160 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
21162         PR gcov-profile/61889
21163         * config.in: regenerate.
21164         * configure.in: Likewise.
21165         * configure.ac: Check for ftw.h.
21166         * gcov-tool.c: Check for ftw.h before using nftw.
21168 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
21170         PR lto/64076
21171         * ipa-visibility.c (update_visibility_by_resolution_info): Only
21172         assert when not in lto mode.
21174 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
21176         * ira-color.c (setup_left_conflict_sizes_p): Simplify
21177         initialization/assignment of conflict_size.
21179 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
21181         PR ipa/64978
21182         * ipa-cp.c (gather_caller_stats): Skip thunks.
21183         (propagate_constants_topo): Skip aliases.
21185 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
21187         PR target/64761
21188         * config/sh/sh.c (sh_option_override): Don't change
21189         -freorder-blocks-and-partition to -freorder-blocks even when
21190         unwinding is enabled.
21191         (sh_can_follow_jump): Return false if the followee jump is
21192         a crossing jump when -freorder-blocks-and-partition is specified.
21193         * config/sh/sh.md (*jump_compact_crossing): New insn.
21195 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
21196             Kaz Kojima  <kkojima@gcc.gnu.org>
21198         PR target/64761
21199         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
21200         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
21201         (sh_can_redirect_branch): Rename to ...
21202         (sh_can_follow_jump): ... this.  Constify argument types.
21203         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
21204         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
21205         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
21206         * doc/tm.texi: Regenerate.
21208 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
21210         PR sanitizer/64981
21211         * builtins.c (expand_builtin): Call targetm.expand_builtin
21212         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
21214 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
21216         PR ipa/61548
21217         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
21219 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
21221         PR ipa/63566
21222         * ipa-icf.c (set_local): New function.
21223         (sem_function::merge): Use it.
21225 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
21227         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
21228         (add_type_duplicate): Fix comparison of BINFOs.
21230 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
21232         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
21233         on getting VOID pointer.
21235 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
21237         PR target/64979
21238         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
21239         va_list escapes.
21241 2015-02-09  Richard Biener  <rguenther@suse.de>
21243         * genmatch.c (replace_id): Copy expr_type.
21245 2015-02-09  Richard Biener  <rguenther@suse.de>
21247         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
21248         (streamer_write_tree_bitfields): Declare.
21249         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
21250         properly unpack padding.
21251         (unpack_value_fields): Inline ...
21252         (streamer_read_tree_bitfields): ... here.
21253         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
21254         and properly add padding bits.
21255         (streamer_pack_tree_bitfields): Fold into ...
21256         (streamer_write_tree_bitfields): ... this new function,
21257         exposing the bitpack object.
21258         * lto-streamer-out.c (lto_write_tree_1): Call
21259         streamer_write_tree_bitfields.
21261 2015-02-09  Richard Biener  <rguenther@suse.de>
21263         PR tree-optimization/54000
21264         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
21265         (struct ivopts_data): Add loop_loc member.
21266         (tree_ssa_iv_optimize_loop): Dump loop location.
21267         (create_new_ivs): Likewise, also dump number of IVs generated.
21269 2015-02-09  Martin Liska  <mliska@suse.cz>
21271         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
21272         just if not yet registered.
21273         (ipa_icf_generate_summary): Register callgraph hooks.
21275 2015-02-08  Andrew Pinski  <apinski@cavium.com>
21277         * config/aarch64/aarch64.c (gty_dummy): Delete.
21279 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
21281         PR ipa/63566
21282         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
21283         (cgraph_node::local_p): Remove thunk related FIXME.
21285 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
21287         PR ipa/63566
21288         * i386.c (ix86_function_regparm): Look through aliases to see if callee
21289         is local and optimized.
21290         (ix86_function_sseregparm): Likewise; also use target's SSE math
21291         settings; error out instead of silently generating wrong code
21292         on mismatches.
21293         (init_cumulative_args): Look through aliases.
21295 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
21297         PR ipa/63566
21298         * ipa-split.c (execute_split_functions): Split if function has aliases.
21300 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
21302         PR ipa/63566
21303         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
21304         aliases before trying to expand it.
21305         (cgraph_node::expand_thunk): Fix formating.
21307 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
21309         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
21310         (Using Assembly Language with C): Expand introduction.
21311         (Basic Asm): Copy-edit.  Add more information about uses of
21312         basic asm.
21313         (Extended Asm): Copy-edit.  Document new escape syntax and
21314         %l[label] syntax.
21315         (Global Reg Vars): Copy-edit.
21316         (Local Reg Vars): Likewise.
21318 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
21320         PR debug/2714
21321         PR bootstrap/64256
21322         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
21323         (DBX_CONTIN_CHAR): Define.
21325 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
21326             Brian Rzycki  <b.rzycki@samsung.com>
21328         PR tree-optimization/64878
21329         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
21330         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
21331         Stop recursion at loop phi nodes after having visited a loop phi node.
21333 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
21335         * toplev.c (process_options): Change flag_ipa_ra before creating
21336         optimization_{default,current}_node.
21338         PR ipa/64896
21339         * cgraphunit.c (cgraph_node::expand_thunk): If
21340         restype is not is_gimple_reg_type nor the thunk_fndecl
21341         returns aggregate_value_p, set restmp to a temporary variable
21342         instead of resdecl.
21344 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
21346         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
21348 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21350         PR target/64205
21351         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
21352         add a general secondary reload handler for SDmode, unless we have
21353         both read/write support for SDmode.
21355 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
21357         PR middle-end/64937
21358         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
21359         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
21360         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
21361         1 before, push it to abstract_vec.
21362         (dwarf2out_abstract_function): Adjust caller.  Don't call
21363         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
21364         DECL_ABSTRACT_P flags for all abstract_vec elts.
21366 2015-02-06  Renlin Li  <renlin.li@arm.com>
21368         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
21369         complex gimple.
21370         * tree-ssa.c (execute_update_addresses_taken): Likewise.
21372 2015-02-06  Jeff Law  <law@redhat.com>
21374         PR target/64889
21375         * config/h8300/h8300.c (push): New argument "in_prologue".
21376         Pass "in_prologue" along to "F".
21377         (h8300_push_pop): Corresponding changes.
21378         (h8300_expand_prologue): Likewise.
21379         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
21381 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
21383         PR rtl-optimization/64957
21384         PR debug/64817
21385         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
21386         IOR rather than for AND.
21388 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
21390         PR target/62631
21391         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
21392         of shift-add and (add + shift) operations.  Rename local variable.
21394 2015-02-05  Jeff Law  <law@redhat.com>
21396         PR target/17306
21397         * config/h8300/constraints.md (U): Correctly dectect
21398         "eightbit_data" memory addresses.
21399         * config/h8300/h8300.c (eightbit_constant_address_p): Also
21400         handle (const (plus (symbol_ref (x)))) where x is declared
21401         as an 8-bit data memory address.
21402         * config/h8300/h8300.md (call, call_value): Correctly detect
21403         "funcvec" functions.
21405         PR target/43264
21406         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
21407         24 to 28 bits for the H8/300.
21409 2015-02-06  Alan Modra  <amodra@gmail.com>
21411         PR target/64876
21412         * config/rs6000/rs6000.c (chain_already_loaded): New function.
21413         (rs6000_call_aix): Use it.
21415 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
21417         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
21418         check.
21420 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
21422         * config/h8300/constraints.md ("U" constraint): Use strict
21423         variant of REG_OK_FOR_BASE_P after reload has started.
21425 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
21427         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
21428         define to zero if !TARGET_NEON.
21429         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
21431 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
21432             Trevor Saunders  <tsaunders@mozilla.com>
21434         PR ipa/61548
21435         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
21437 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
21439         PR ipa/61548
21440         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
21441         when removing varpool nodes.
21443 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
21445         PR ipa/61548
21446         * varpool.c (varpool_node::remove): Fix order of variables.
21448 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
21450         PR ipa/64686
21451         * ipa-inline.c (inline_small_functions): Fix ordering issue between
21452         speculation resolution and key updates.
21454 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
21456         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
21457         about not letting any speculative edges unupdated.
21459 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
21461         PR gcov/64123
21462         * gcov-io.c (gcov_var): Export.
21464 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
21466         PR middle-end/64922
21467         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
21468         edges that become speculative.
21470 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
21472         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
21473         or DW_LANG_Fortran08.
21474         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
21475         DW_LANG_Fortran08.
21476         (gen_compile_unit_die): Handle "GNU Fortran2003" and
21477         "GNU Fortran2008" language strings.
21478         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
21479         * langhooks.h (lang_GNU_Fortran): New prototype.
21480         * langhooks.c (lang_GNU_Fortran): New function.
21481         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
21482         lang_GNU_Fortran.
21484 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
21486         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
21487         (RTX_OK_FOR_OLO10_P): Likewise.
21489 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
21491         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
21493 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
21495         PR middle-end/64922
21496         * gimple.c: Include gimple-ssa.h.
21497         (maybe_remove_unused_call_args): New function.
21498         * gimple.h (maybe_remove_unused_call_args): Declare.
21499         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21500         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
21501         * gimple-fold.c (gimple_fold_call): Likewise.
21503 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
21505         PR rtl-optimization/64905
21506         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
21507         pointer alignment if it isn't needed.
21509 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
21511         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
21512         cortex-a72.cortex-a53.
21513         * config/aarch64/aarch64-tune.md: Regenerate.
21514         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
21516 2015-02-04  Nick Clifton  <nickc@redhat.com>
21518         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
21519         inside a MEM.
21521 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
21523         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
21524         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
21525         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
21526         of DEF_BUILTIN.
21527         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
21528         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
21529         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
21530         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
21531         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
21532         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
21533         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
21534         * tree-core.h (enum built_in_function): In between
21535         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
21536         for builtins that use DEF_BUILTIN_CHKP macro.
21538 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
21540         PR debug/64817
21541         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
21542         operands for tcc_comparison exprs.  Fix typos.
21544         PR debug/64817
21545         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
21546         of two XORs that have an intervening AND or IOR.
21548         PR debug/64817
21549         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
21550         simplification of XOR of AND to not allocate new rtx before
21551         committing to a simplification.
21553 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21555         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
21556         manual swaps in all peepholes.
21558 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21560         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
21561         of manual swapping implementation.
21562         (aarch64_expand_vec_perm_const_1): Likewise.
21564 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
21566         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
21567         (generic_addrcost_table): Remove NAMED_PARAM.
21568         (cortexa57_addrcost_table): Likewise.
21569         (xgene1_addrcost_table): Likewise.
21570         (generic_regmove_table): Likewise.
21571         (cortexa53_regmove_table): Likewise.
21572         (xgene1_regmove_table): Likewise.
21573         (generic_vector_table): Likewise.
21574         (cortexa57_vector_table): Likewise.
21575         (xgene1_vector_table): Likewise.
21576         (generic_tunings): Likewise.
21577         (cortexa53_tunings): Likewise.
21578         (cortexa57_tunings): Likewise.
21579         (xgene1_tunings): Likewise.
21581 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
21583         * config/arm/arm-cores.def: Add cortex-a72 and
21584         cortex-a72.cortex-a53.
21585         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21586         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21587         * config/arm/arm-tune.md: Regenerate.
21588         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21589         "cortex-a72.cortex-a53".
21590         * doc/invoke.texi (ARM Options/-mtune): Likewise.
21592 2015-02-04  Nick Clifton  <nickc@redhat.com>
21594         PR target/64408
21595         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21596         of accepted codes.
21597         (nonimmediate_di_operand): Likewise.
21599         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21600         prefixes of known F5 using MSP430 MCUs.
21602 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21604         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21605         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21606         instead of __builtin_sqrt.
21608 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
21610         * varasm.c (do_assemble_alias): Follow transparent alias
21611         chain for target.
21612         (default_assemble_visibility): Follow transparent alias
21613         chain for decl name.
21615 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21617         PR middle-end/62103
21618         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21619         to compute size of referenced value in the constant case.
21621 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
21623         PR rtl-optimization/64756
21624         * cse.c (invalidate_dest): New function.
21625         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
21626         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21627         invalidate and do not record it.
21629 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
21631         PR target/64660
21632         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21633         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21634         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21635         atomic_nand<mode>_soft_tcb): New insns.
21636         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21637         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21638         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21639         Split into atomic_not_fetchsi_hard if operands[0] is unused.
21640         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21641         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21642         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
21643         atomic_not<mode>_hard if operands[0] is unused.
21644         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
21645         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
21646         if operands[0] is unused.
21647         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
21648         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
21649         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
21650         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21651         unused.
21652         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
21653         into atomic_not<mode>_soft_tcb if operands[0] is unused.
21654         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
21655         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
21656         if operands[0] is unused.
21657         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
21658         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
21659         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
21660         atomic_nand_fetchsi_hard if operands[0] is unused.
21661         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
21662         atomic_nand<mode>_hard if operands[0] is unused.
21663         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
21664         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
21665         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
21666         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21667         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
21668         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
21669         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
21670         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21671         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
21672         atomic_not<mode>_hard if operands[0] is unused.
21673         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
21674         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21675         unused.
21676         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
21677         into atomic_not<mode>_soft_tcb if operands[0] is unused.
21678         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
21679         atomic_nand<mode>_hard if operands[0] is unused.
21680         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
21681         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21683 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
21685         PR jit/64810
21686         * Makefile.in (GCC_OBJS): Add gcc-main.o.
21687         * gcc-main.c: New file, containing "main" taken from gcc.c.
21688         * gcc.c (do_self_spec): Free decoded_options.
21689         (class driver): Move declaration to gcc.h.
21690         (main): Move declaration and implementation to new file
21691         gcc-main.c.
21692         (driver_get_configure_time_options): New function.
21693         * gcc.h (class driver): Move this declaration here, from
21694         gcc.c.
21695         (driver_get_configure_time_options): New declaration.
21697 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
21699         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
21700         cross-module inlining.
21701         * cgraph.h (cgraph_node): Add flag merged.
21702         * ipa-icf.c (sem_function::merge): Maintain it.
21704 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
21706         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
21707         instead of OBJECT_P.
21709 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
21711         PR target/62631
21712         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
21713         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
21714         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
21715         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
21717 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
21719         PR other/63504
21720         * combine.c (reg_n_sets_max): New variable.
21721         (can_change_dest_mode, reg_nonzero_bits_for_combine,
21722         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
21723         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
21724         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
21725         (rest_of_handle_combine): Initialize reg_n_sets_max.
21727 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
21729         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
21730         if some always_inline was inlined, apply changes before inlining
21731         heuristically.
21733 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
21735         PR jit/64810
21736         * config/arm/arm.c (arm_option_override): Set
21737         arm_selected_arch/cpu/tune to NULL on entry.
21739 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
21740             Andrew Pinski  <pinskia@gcc.gnu.org>
21741             Jakub Jelinek  <jakub@gcc.gnu.org>
21743         PR target/64231
21744         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
21745         integer typing for small model. Use IN_RANGE.
21747 2015-02-02  Richard Biener  <rguenther@suse.de>
21749         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
21750         * tree-vrp.c (vrp_valueize_1): Likewise.
21752 2015-02-02  Alan Modra  <amodra@gmail.com>
21754         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
21755         than mem for toc_restore.
21756         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
21757         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
21758         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
21760 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
21762         PR target/64047
21763         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
21764         explicit default options.
21766 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
21768         PR ipa/64872
21769         * ipa-utils.c (ipa_merge_profiles): Add release argument.
21770         * ipa-icf.c (sem_function::merge): Do not release body when merging.
21771         * ipa-utils.h (ipa_merge_profiles): Update prototype.
21773 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
21775         PR debug/64817
21776         * cfgexpand.c (deep_ter_debug_map): New variable.
21777         (avoid_deep_ter_for_debug): New function.
21778         (expand_debug_expr): If TERed SSA_NAME is in
21779         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
21780         instead of trying to expand SSA_NAME's def stmt.
21781         (expand_debug_locations): When expanding debug bind
21782         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
21783         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
21784         value.
21785         (pass_expand::execute): Call avoid_deep_ter_for_debug on
21786         all debug bind stmts.  Delete deep_ter_debug_map after
21787         expand_debug_location if non-NULL and clear it.
21789 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
21791         PR target/64851
21792         * config/sh/sync.md (atomic_fetch_notsi_hard,
21793         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
21794         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
21795         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
21796         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
21797         atomic_not_fetch<mode>_soft_imask): New insns.
21799 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21801         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
21802         (rank_for_schedule_debug): Split from ...
21803         (rank_for_schedule): ... this.
21804         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
21805         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
21807 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
21809         * doc/md.texi (Machine Constraints): Alphabetize table by target.
21810         * doc/extend.texi (x86 Variable Attributes): Move section to
21811         correct alphabetization after renaming.
21812         (x86 Type Attributes): Likewise.
21813         (Target Builtins): Re-alphabetize menu.
21814         (x86 Built-in Functions): Move section to correct alphabetization
21815         after renaming.
21816         (x86 transactional memory intrinsics): Likewise.
21817         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
21818         and x86 Windows Options in table and menu.
21819         (x86 Options): Move section to correct alphabetization after
21820         renaming.
21821         (x86 Windows Options): Likewise.
21823 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
21825         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
21826         preferred names of the architecture and its 32- and 64-bit
21827         variants.
21828         * doc/invoke.texi: Likewise.
21829         * doc/md.texi: Likewise.
21831 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
21833         PR target/64882
21834         * config/i386/predicates.md (address_no_seg_operand): Reject
21835         non-CONST_INT_P operands in invalid mode.
21837 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
21839         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
21840         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
21841         * config/i386/predicates.md (address_no_seg_operand): Call
21842         address_operand with VOIDmode.
21843         (vsib_address_operand): Ditto.
21844         (address_mpx_no_base_operand): Ditto.
21845         (address_mpx_no_index_operand): Ditto.
21847 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
21849         PR target/64688
21850         * lra-constraints.c (original_subreg_reg_mode): New.
21851         (simplify_operand_subreg): Try to simplify subreg of const.  Use
21852         original_subreg_reg_mode for it.
21853         (swap_operands): Update original_subreg_reg_mode.
21854         (curr_insn_transform): Set up original_subreg_reg_mode.
21856 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
21858         PR target/64617
21859         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
21860         function.
21861         (process_alt_operands): Use it.
21862         (curr_insn_transform): Check the optional reload pseudo class is
21863         ok for the mode.
21865 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
21867         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
21868         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
21869         prototype.
21870         * toplev.h (init_asm_output): Update comment on use of
21871         UNKNOWN_LOCATION with fatal_error.
21872         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
21873         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
21874         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
21875         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
21876         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
21877         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
21878         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
21879         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
21880         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
21881         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
21882         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
21883         fatal_error changed to pass input_location as first argument.
21885 2015-01-30  Martin Liska  <mliska@suse.cz>
21887         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
21888         in #pragma GCC diagnostic guards.
21890 2015-01-30  Richard Biener  <rguenther@suse.de>
21892         PR tree-optimization/64829
21893         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21894         not add a widening conversion pattern but hand off extra
21895         widenings to callers.
21896         (vect_recog_widen_mult_pattern): Handle extra widening produced
21897         by vect_handle_widen_op_by_const.
21898         (vect_recog_widen_shift_pattern): Likewise.
21899         (vect_pattern_recog_1): Remove excess vertical space in dumping.
21900         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21901         (vect_init_vector_1): Likewise.
21902         (vect_get_vec_def_for_operand): Likewise.
21903         (vect_finish_stmt_generation): Likewise.
21904         (vectorizable_load): Likewise.
21905         (vect_analyze_stmt): Likewise.
21906         (vect_is_simple_use): Likewise.
21908 2015-01-29  Jeff Law  <law@redhat.com>
21910         * combine.c (try_combine): Fix typo in comment.
21912 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
21914         PR target/64580
21915         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21916         (rs6000_stack_info): Add assert.
21917         (rs6000_output_savres_externs): New function, split off from...
21918         (rs6000_output_function_prologue): ... here.  Do not call it for
21919         thunks.
21921 2015-01-29  Jeff Law  <law@redhat.com>
21923         PR target/15184
21924         * combine.c (try_combine): If I0 is a memory load and I3 a store
21925         to a related address, increase the "goodness" of doing a 4-insn
21926         combination with I0-I3.
21927         (make_field_assignment): Handle SUBREGs in the ior+and case.
21929 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
21931         PR tree-optimization/64746
21932         * tree-if-conv.c (mask_exists): New function.
21933         (predicate_mem_writes): Save created mask with given size for further
21934         use.
21935         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21936         (ifcvt_repair_bool_pattern): Collect all statements that are root
21937         of bool pattern and use iterative algorithm to remove multiple uses
21938         of predicates, display number of required iterations.
21940 2015-01-29  Richard Biener  <rguenther@suse.de>
21942         PR tree-optimization/64853
21943         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21944         stmt will get simulated again.
21945         * tree-ssa-ccp.c (valueize_op_1): Likewise.
21947 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21949         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21950         return_in_pc.  Remove redundant assignments.
21951         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
21952         (arm_expand_epilogue): Don't compare boolean with true in if condition.
21954 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
21956         * config/i386/i386.c (ix86_mode_after): Make static.
21958 2015-01-29  Richard Biener  <rguenther@suse.de>
21960         PR tree-optimization/64844
21961         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
21962         dump cost model analysis.
21963         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21964         Do not register adjusted load/store costs here.
21966 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
21967             Uros Bizjak  <ubizjak@gmail.com>
21969         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
21970         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
21971         using x86_use_pseudo_pic_reg.
21972         * config/i386/i386.c (ix86_conditional_register_usage): Remove
21973         support for fixed PIC register.
21974         (ix86_use_pseudo_pic_reg): Not static any more.
21976 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
21978         PR middle-end/64805
21979         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
21980         to avoid error in cgraph node verification.
21982 2015-01-29  Marek Polacek  <polacek@redhat.com>
21984         * doc/standards.texi: Reflect that the default for C is gnu11.
21986 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21988         PR target/64761
21989         * reorg.c (switch_text_sections_between_p): New function.
21990         (relax_delay_slots): Call it when testing if the jump insn
21991         is removable.  Use targetm.can_follow_jump when testing if
21992         the conditional branch can follow an unconditional jump.
21994 2015-01-27  Caroline Tice  <cmtice@google.com>
21996         Committing VTV Cywin/Ming patch for Patrick Wollgast
21997         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
21998         if -fvtable-verify=preinit/std is used.
21999         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
22000         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
22001         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
22002         if -fvtable-verify=preinit/std is used.
22003         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22004         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
22005         if -fvtable-verify=preinit/std is used.
22006         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
22007         * config/i386/mingw32.h (LIB_SPEC): Likewise.
22008         * varasm.c (assemble_variable): Add code to properly set the comdat
22009         section and name for the .vtable_map_vars section in case the
22010         target is PE or COFF.
22012 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
22014         PR ipa/64801
22015         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
22016         make sane BB profile.
22017         (cgraph_node::expand_thunk): Make sane BB profile.
22018         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
22019         * cgraph.h (init_lowered_empty_function): Update prototype.
22020         * config/i386/i386.c (make_resolver_func): Update call.
22021         * predict.c (gate): Disable branch prediction pass if
22022         profile is already there.
22024 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
22026         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
22027         * opth-gen.awk: Likewise.
22028         * common.opt: Mark flag_fp_contract_mode as Optimization.
22030 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22032         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
22033         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
22035 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
22037         PR target/64659
22038         * config/sh/predicates.md (atomic_arith_operand,
22039         atomic_logical_operand): Remove.
22040         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
22041         (atomic_arith_operand_0): New predicate.
22042         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
22043         Use atomic_arith_operand_0 for input values.
22044         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
22045         atomic_compare_and_swap<mode>_soft_gusa,
22046         atomic_compare_and_swap<mode>_soft_tcb,
22047         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
22048         arith_reg_operand instead of register_operand.
22049         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
22050         atomic_arith_operand_0 for newval input.
22051         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
22052         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
22053         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
22054         arith_reg_operand instead of register_operand.
22055         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
22056         fetchop_predicate_1, fetchop_constraint_1_llcs,
22057         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
22058         fetchop_constraint_1_imask): New code iterator attributes.
22059         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
22060         register_operand.  Use fetchop_predicate_1.
22061         (atomic_fetch_<fetchop_name>si_hard,
22062         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
22063         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
22064         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
22065         and arith_reg_operand instead of register_operand.  Use
22066         fetchop_predicate_1, fetchop_constraint_1_gusa.
22067         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
22068         and arith_reg_operand instead of register_operand.  Use
22069         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
22070         to allow R0 usage.
22071         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
22072         and arith_reg_operand instead of register_operand.  Use
22073         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
22074         to allow R0 usage.
22075         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
22076         register_operand.  Use atomic_logical_operand_1.
22077         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
22078         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
22079         arith_reg_operand instead of register_operand.
22080         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
22081         Use arith_reg_dest and arith_reg_operand instead of register_operand.
22082         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
22083         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
22084         register_operand.  Use fetchop_predicate_1.
22085         (atomic_<fetchop_name>_fetchsi_hard,
22086         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
22087         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
22088         fetchop_constraint_1_llcs.
22089         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
22090         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
22091         fetchop_constraint_1_gusa.
22092         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
22093         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
22094         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
22095         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
22096         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
22097         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
22098         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
22099         register_operand.  Use atomic_logical_operand_1.
22100         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
22101         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
22102         arith_reg_operand instead of register_operand.
22103         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
22104         arith_reg_operand instead of register_operand.  Use logical_operand
22105         and K08.  Adjust asm sequence to allow R0 usage.
22106         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
22107         arith_reg_operand instead of register_operand.  Use logical_operand
22108         and K08.
22110 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
22112         PR other/63504
22113         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
22114         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
22115         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
22116         only get_full_len HOST_WIDE_INTs from get_val () array rather than
22117         all bits in *val_wide.
22119 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
22121         * varpool.c (tls_model_names): Fix names.
22122         (varpool_node::dump): Dump tls- prefix for tls models.
22124 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
22125             Bernd Schmidt  <bernds@codesourcery.com>
22126             Nathan Sidwell  <nathan@codesourcery.com>
22128         * config/nvptx/mkoffload.c: New file.
22129         * config/nvptx/t-nvptx: Add build rules for it.
22130         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
22131         (extra_programs): Add mkoffload.
22132         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
22133         function.
22134         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
22136 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
22138         PR middle-end/64809
22139         * cfgexpand.c (reorder_operands): Skip debug gimples.
22141 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
22143         PR tree-optimization/64277
22144         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
22145         range info when possible to refine estimation.
22147 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22149         PR tree-optimization/64718
22150         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
22151         be a 16bit unsigned integer when n->range is 16.
22152         (bswap_replace): Convert src to that type if necessary for all bswap
22153         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
22154         set in pass_optimize_bswap::execute ().
22156 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
22158         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
22159         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
22160         integer and floating point variants.
22161         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
22163 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
22165         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
22166         for all vector modes.
22168 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
22170         PR bootstrap/64612
22171         * doc/sourcebuild.texi (comdat_group): Document.
22173 2015-01-28  Terry Guo  <terry.guo@arm.com>
22175         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
22177 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
22179         * toplev.c (print_version): Add param "show_global_state", and
22180         only print GGC and plugin information if it is true.
22181         (init_asm_output): Pass in "true" for the new param when calling
22182         print_version.
22183         (process_options): Likewise.
22184         (toplev::main): Likewise.
22185         * toplev.h (print_version): Add new param to decl.
22187 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
22189         PR ipa/60871
22190         PR ipa/64139
22191         * tree.c (lookup_binfo_at_offset): New function.
22192         (get_binfo_at_offset): Use it.
22194 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
22196         PR ipa/64282
22197         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
22198         on vtable being vtable.
22200 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22202         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
22203         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
22204         -mhotpatch= option.
22205         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
22206         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
22207         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
22208         Renamed.
22209         (s390_hotpatch_trampoline_halfwords_max): Renamed.
22210         (s390_hotpatch_hw_max): New name.
22211         (s390_hotpatch_trampoline_halfwords): Renamed.
22212         (s390_hotpatch_hw_before_label): New name.
22213         (get_hotpatch_attribute): Removed.
22214         (s390_hotpatch_hw_after_label): New name.
22215         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
22216         attribute.
22217         (s390_attribute_table): Ditto.
22218         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
22219         (s390_function_num_hotpatch_hw): New name.
22220         Remove special handling of inline functions and hotpatching.
22221         Return number of nops before and after the function label.
22222         (s390_can_inline_p): Removed.
22223         (s390_asm_output_function_label): Emit a configurable number of nops
22224         after the function label.
22225         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
22226         (TARGET_CAN_INLINE_P) Removed.
22227         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
22229 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22230             Jiong Wang  <jiong.wang@arm.com>
22232         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
22233         of scratch reg.
22234         (cb<optab><mode>1): Likewise.
22235         * config/aarch64/iterators.md (bcond): New define_code_attr.
22237 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22239         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
22240         memory accesses.
22242 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22244         * config/s390/s390.c (s390_register_move_cost): Increase costs for
22245         FPR->GPR moves.
22247 2015-01-27  Richard Biener  <rguenther@suse.de>
22249         * tree-vrp.c (update_value_range): Intersect the range with
22250         old recorded SSA name range information.
22252 2015-01-27  Nick Clifton  <nickc@redhat.com>
22254         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
22255         BC, DE and HL registers directly, not via AX.
22256         When decrementing the stack pointer by a large amount, transfer SP
22257         into AX and perform the subtraction there.
22258         (rl78_expand_epilogue): Perform the inverse of the above
22259         enhancements.
22261 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22263         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
22265 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
22266             Yury Gribov  <y.gribov@samsung.com>
22268         PR ubsan/64741
22269         * ubsan.c (ubsan_source_location): Refactor code.
22270         (ubsan_type_descriptor): Update type size. Refactor code.
22272 2015-01-27  Richard Biener  <rguenther@suse.de>
22274         PR tree-optimization/56273
22275         PR tree-optimization/59124
22276         PR tree-optimization/64277
22277         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
22278         from the first VRP pass.
22280 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
22282         PR ipa/64776
22283         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
22284         handle the first argument in the same loop as all the other arguments.
22286         PR rtl-optimization/61058
22287         * jump.c (cleanup_barriers): Update basic block boundaries
22288         if BLOCK_FOR_INSN is non-NULL on PREV.
22290 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
22292         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
22293         bounds narrowing, already instrumented calls and calls to
22294         not instrumentable functions.
22296 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
22298         PR tree-optimization/64807
22299         * wide-int.cc (wi::divmod_internal): Clear
22300         b_dividend[dividend_blocks_needed].
22302 2015-01-26  DJ Delorie  <dj@redhat.com>
22304         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
22305         volatile memory references.
22307 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
22309         PR target/49263
22310         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
22311         remove_insn.
22312         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
22313         shifts if it already fits into K08.
22315 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
22317         PR ipa/64730
22318         * ipa-inline.c (inline_small_functions): Print "unknown" even
22319         if edge->call_stmt is non-NULL, but has builtins or unknown
22320         location.
22322         PR middle-end/64421
22323         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
22324         with asterisk, skip the first character.
22326 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
22328         PR target/64806
22329         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
22330         order change.
22332 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
22334         PR target/64795
22335         * config/i386/i386.md (*movdi_internal): Also check operand 0
22336         to determine TYPE_LEA operand.
22337         (*movsi_internal): Ditto.
22339 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
22341         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
22342         OPTION_MASK_QUAD_MEMORY_ATOMIC.
22344 2015-01-26  Renlin Li  <renlin.li@arm.com>
22346         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
22347         the comment.
22348         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
22349         for higher part.
22351 2015-01-26  Richard Biener  <rguenther@suse.de>
22353         PR middle-end/64764
22354         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
22355         combining two BIT_AND_EXPR predicates.
22357 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
22359         PR bootstrap/64754
22360         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
22362 2015-01-26  Terry Guo  <terry.guo@arm.com>
22364         * config/arm/arm.c (arm_file_start): Update the assignment of
22365         Tag_ABI_HardFP_use.
22367 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
22369         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
22370         pipeline model.
22371         config/arm/arm.md: Include the new Cortex-A57 model.
22372         (generic_sched): Don't use generic_sched when tuning for
22373         Cortex-A57.
22375 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
22376             Uros Bizjak  <ubizjak@gmail.com>
22378         * config/i386/i386.c (get_builtin_code_for_version): Add
22379         support for BMI and BMI2 multiversion functions.
22381 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22383         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
22384         (extract_bit_field): Likewise.
22385         (extract_low_bits): Likewise.
22386         (expand_mult): Likewise.
22387         (expand_mult_highpart_adjust): Likewise.
22389 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
22391         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
22392         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
22393         * config/i386/i386.c (processor_model): Add
22394         M_INTEL_COREI7_BROADWELL.
22395         (arch_names_table): Add "broadwell".
22397 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
22399         PR target/49263
22400         PR target/53987
22401         PR target/64345
22402         PR target/59533
22403         PR target/52933
22404         PR target/54236
22405         PR target/51244
22406         * config/sh/sh-protos.h
22407         (sh_extending_set_of_reg::can_use_as_unextended_reg,
22408         sh_extending_set_of_reg::use_as_unextended_reg,
22409         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
22410         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
22411         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
22412         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
22413         (sh_treg_insns): New class.
22414         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
22415         (scope_counter): New class.
22416         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
22417         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
22418         sh_extending_set_of_reg::can_use_as_unextended_reg,
22419         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
22420         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
22421         sh_split_treg_set_expr): New functions.
22422         (addsubcosts): Handle treg_set_expr.
22423         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
22424         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
22425         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
22426         (sh_insn_operands_modified_between_p): Make non-static.
22427         * config/sh/predicates.md (zero_extend_movu_operand): Allow
22428         simple_mem_operand in addition to displacement_mem_operand.
22429         (zero_extend_operand): Don't allow zero_extend_movu_operand.
22430         (treg_set_expr, treg_set_expr_not_const01,
22431         arith_reg_or_treg_set_expr): New predicates.
22432         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
22433         arith_or_int_operand instead of logical_operand.  Convert to
22434         insn_and_split.  Try to optimize constant operand in splitter.
22435         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
22436         (*tstqi_t_zero): Delete.
22437         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
22438         (tstsi_t_and_not): Delete.
22439         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
22440         Convert to insn_and_split.
22441         (unnamed split, tstsi_t_zero_extract_xor,
22442         tstsi_t_zero_extract_subreg_xor_little,
22443         tstsi_t_zero_extract_subreg_xor_big): Delete.
22444         (*tstsi_t_shift_mask): New insn_and_split.
22445         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
22446         to recombine with surrounding insns when splitting.
22447         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
22448         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
22449         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
22450         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
22451         (*cbranch_div0s: Delete.
22452         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
22453         Try to recombine with surrounding insns when splitting.  Add operand
22454         order variants.
22455         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
22456         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
22457         *addc_r_r_msb, *addc_2r_msb): Delete.
22458         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
22459         order variant.
22460         (*addc_negreg_t): New insn_and_split.
22461         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
22462         Try to recombine with surrounding insns when splitting.
22463         Add operand order variants.
22464         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
22465         insn_and_split patterns.
22466         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
22467         surrounding insns when splitting.
22468         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
22469         (*rotcl): Likewise.  Add zero_extract variant.
22470         (*ashrsi2_31): New insn_and_split.
22471         (*negc): Convert to insn_and_split.  Use treg_set_expr.
22472         (*zero_extend<mode>si2_disp_mem): Update comment.
22473         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
22474         condition.
22475         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
22476         with surrounding insns when splitting.
22477         (any_treg_expr_to_reg): New insn_and_split.
22478         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
22479         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
22480         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
22481         *zero_extract_2): New single bit zero extract patterns.
22482         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
22483         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
22484         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
22485         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
22486         set destination.
22487         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
22488         register_operand for set source.
22490 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
22492         * i386.opt (prefetch_sse): New targetsave.
22493         * i386.c (ix86_function_specific_save): Save prefetch_sse.
22494         (ix86_function_specific_restore): Restore prefetch_sse and initialize
22495         ix86_cost/ix86_tune_cost.
22497 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
22499         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
22500         Support the JIT by using 0 as the language type.
22502 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
22504         PR target/64317
22505         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
22506         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
22507         (mark_regno_live, process_bb_lives): Pass new parameter value to
22508         make_hard_regno_born.
22510 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
22512         PR rtl-optimization/63637
22513         PR rtl-optimization/60663
22514         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
22515         if elt->cost is MAX_COST for ASM_OPERANDS.
22516         (find_sets_in_insn): Fix up comment typo.
22517         (cse_insn): Don't set src_volatile for all non-volatile
22518         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
22519         or with "memory" clobber.  Set elt->cost to MAX_COST
22520         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
22521         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
22523 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
22525         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
22526         alternative 1.
22528 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
22530         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
22531         libgcc/config/i386/elf-lib.h.
22533 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
22535         PR driver/64737
22536         * gcc.c (print_configuration): Don't print a blank line at the end
22537         here...
22538         (run_attempt): ... but here unstead.
22540         PR middle-end/64734
22541         * omp-low.c (scan_sharing_clauses): Don't ignore
22542         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
22543         on target data/update constructs.
22545 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22547         PR target/50928
22548         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
22549         (DEBUG_RELOAD): Removed define.
22550         (m32c_limit_reload_class): Enable traces with if DEBUG0.
22551         (m32c_function_arg): Added a type cast.
22552         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
22553         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
22554         * config/m32c/bitops.md (andqi3_16): Likewise.
22555         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
22556         (push_a01_l): Likewise.
22558 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
22560         PR jit/64721
22561         * main.c (main): Construct toplev instances with init_signals=true.
22562         * toplev.c (general_init): Add param "init_signals", and use it to
22563         conditionalize the calls to signal and host_hooks.extra_signals.
22564         (toplev::toplev): Add param "init_signals".
22565         (toplev::main): When invoking general_init, pass m_init_signals
22566         to control whether signal-handlers are installed.
22567         * toplev.h (toplev::toplev): Add param "init_signals".
22568         (toplev::m_init_signals): New field.
22570 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
22572         PR jit/64722
22573         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
22574         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22575         latter may be affected by the former (e.g. on i686).
22577 2015-01-23  Martin Liska  <mliska@suse.cz>
22579         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22580         false positive during profiledbootstrap.
22582 2015-01-23  Tom de Vries  <tom@codesourcery.com>
22584         PR libgomp/64672
22585         * lto-opts.c (lto_write_options): Output non-explicit conservative
22586         -fno-openacc.
22587         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22588         (append_compiler_options): Pass -fopenacc through.
22590 2015-01-23  Tom de Vries  <tom@codesourcery.com>
22592         PR libgomp/64707
22593         * lto-opts.c (lto_write_options): Output non-explicit conservative
22594         -fno-openmp.
22595         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22596         (append_compiler_options): Pass -fopenmp through.
22598 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
22600         PR debug/64511
22601         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22602         GTY markup.
22604         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22605         * diagnostic.def (DK_ICE_NOBT): New kind.
22606         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22607         like DK_ICE, but never print backtrace.
22608         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22609         (internal_error_no_backtrace): New function.
22610         * gcc.c (execute): Use internal_error_no_backtrace instead of
22611         internal_error.
22613 2015-01-22  Jeff Law  <law@redhat.com>
22615         PR target/52076
22616         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22617         improve code density for small immediate to memory case.
22618         (insv): Better handle bitfield assignments when the field is
22619         being set to all ones.
22620         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22621         operand predicate.
22623 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22624             Jakub Jelinek  <jakub@redhat.com>
22626         PR middle-end/64729
22627         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22628         for !TARGET_LIBC_PROVIDES_SSP version and
22629         -fstack-protector-{all,strong,explicit} otherwise.
22630         * config/freebsd.h (LINK_SSP_SPEC): Handle
22631         -fstack-protector-{strong,explicit}.
22633 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
22634             H.J. Lu  <hongjiu.lu@intel.com>
22636         PR ipa/64694
22637         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22638         heap.
22640 2015-01-22  Wei Mi  <wmi@google.com>
22642         PR rtl-optimization/64557
22643         * dse.c (record_store): Call get_addr for mem_addr.
22644         (check_mem_read_rtx): Likewise.
22646 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22648         * fold-const.c (const_binop): Add early return for non-tcc_binary.
22650 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
22652         * toplev.c (init_local_tick): Process the failure when read
22653         fails for random_seed.
22655         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
22656         'pretty_name' to avoid memory overflow.
22658 2015-01-22  Richard Biener  <rguenther@suse.de>
22660         PR middle-end/64728
22661         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
22662         abnormal coalescing on undefined SSA names.
22664 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
22666         PR target/64688
22667         PR target/64477
22668         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
22669         for alternative 3.
22670         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
22672 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
22674         PR middle-end/63325
22675         * fold-const.c (fold_checksum_tree): Don't include value of
22676         expr->decl_with_vis.symtab_node in the checksum.
22678 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22680         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
22682 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
22684         PR driver/64690
22685         * gcc.c (insert_comments): New function.
22686         (try_generate_repro): Call it.
22687         (append_text): Removed.
22689 2015-01-22  Richard Biener  <rguenther@suse.de>
22691         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
22692         with IL incompatible options.  Properly honor user optimize
22693         attributes.
22695 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
22697         PR rtl-optimization/64682
22698         * combine.c (distribute_notes): When moving a death note for
22699         a register that is set in the new I2, make sure to put it
22700         before that new I2.
22702 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
22704         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
22705         not TARGET_DEFAULT.
22707 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
22709         PR debug/64511
22710         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
22711         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
22712         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
22714         PR sanitizer/64706
22715         * doc/invoke.texi (-fsanitize=vptr): Document.
22717         PR rtl-optimization/62078
22718         * dse.c: Include cfgcleanup.h.
22719         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
22720         anything call purge_all_dead_edges and cleanup_cfg at the end
22721         of the pass.
22723 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
22725         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
22726         edges.
22728 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22730         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
22731         decl attribute.
22733 2015-01-21  David Sherwood  <david.sherwood@arm.com>
22734             Tejas Belagod <Tejas.Belagod@arm.com>
22736         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
22737         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
22738         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
22739         Removed.
22741 2015-01-21  David Sherwood  <david.sherwood@arm.com>
22742             Tejas Belagod <Tejas.Belagod@arm.com>
22744         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
22745         (aarch64_reverse_mask): New decls.
22746         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
22747         (insn_count): New mode_attr.
22748         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
22749         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
22750         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
22751         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
22752         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
22753         (aarch64_simd_st4): New patterns.
22754         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
22755         (aarch64_reverse_mask): New functions.
22757 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
22759         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
22760         Declare.
22761         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
22762         addressing modes for BE.
22763         (aarch64_print_operand): Add 'R' specifier.
22764         (aarch64_simd_disambiguate_copy): Delete.
22765         (aarch64_simd_emit_reg_reg_move): New function.
22766         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
22767         in define_splits for structural moves.
22768         (mov<mode>): Use less restrictive predicates.
22769         (*aarch64_mov<mode>): Simplify and only allow for LE.
22770         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
22772 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
22774         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
22776 2015-01-21  Richard Henderson  <rth@redhat.com>
22778         PR target/64669
22779         * ccmp.c (used_in_cond_stmt_p): Remove.
22780         (expand_ccmp_expr): Don't use it.
22782 2015-01-21  Nick Clifton  <nickc@redhat.com>
22784         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
22785         PARALLELs.
22787 2015-01-21  Richard Biener  <rguenther@suse.de>
22789         PR middle-end/64313
22790         * tree-core.h (builtin_info, builtin_info_type): Turn from
22791         an object with two arrays into an array of an object with
22792         decl and two flags, implicit_p and declared_p.
22793         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
22794         set_builtin_decl, set_builtin_decl_implicit_p,
22795         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
22796         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
22797         * builtins.c (builtin_info): Adjust.
22798         * gimplify.c (gimplify_addr_expr): References to builtins
22799         that have been declared by the user makes them eligible for
22800         use by the compiler.  Call set_builtin_decl_implicit_p on them.
22802 2015-01-20  Jeff Law  <law@redhat.com>
22804         PR target/59946
22805         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
22806         allow pc-relative addresses in operand predicates or constraints.
22808 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
22810         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
22811         neon on aarch32 processors for stringops.
22813 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22815         PR ipa/63576
22816         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
22818 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22820         PR lto/45375
22821         * ipa-inline.c: Include lto-streamer.h
22822         (report_inline_failed_reason): Output source file differences and
22823         flags on optimization/target node mismatch.
22824         (can_inline_edge_p): Consider caller to be the outer inline function;
22825         be less restrictive about matching opimize and optimize_size attributes.
22826         (inline_account_function_p): Break out from ...
22827         (inline_small_functions): ... here.
22828         * ipa-inline-transform.c (clone_inlined_nodes): Use
22829         inline_account_function_p.
22830         (inline_call): Use optimize attribution; use inline_account_function_p.
22831         (inline_transform): Use opt_for_fn.
22832         * ipa-inline.h (inline_account_function_p): Declare.
22834 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
22836         PR debug/64663
22837         * dwarf2out.c (decl_piece_node): Don't put bitsize into
22838         mode if bitsize <= 0.
22839         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
22840         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
22841         sizes and positions.
22843 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
22845         * config/nios2/nios2.c (nios2_asm_file_end): Implement
22846         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
22847         needed.
22848         (TARGET_ASM_FILE_END): Define.
22850 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22852         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
22853         (struct tune_params): Use the enum.
22854         * arm.c (arm_*_tune): Update.
22855         (arm_option_override): Update.
22857 2015-01-20  Richard Biener  <rguenther@suse.de>
22859         PR ipa/64684
22860         * ipa-reference.c (add_static_var): Inline ...
22861         (analyze_function): ... here after splitting out from ...
22862         (is_proper_for_analysis): ... this.
22864 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
22866         PR target/64149
22867         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
22868         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
22869         replace the conditional with it's true branch.
22870         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
22871         (arm_lra_p): Remove.
22873 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
22875         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
22877 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22879         * config/tilegx/mul-tables.c: Move symtab.h include after
22880         coretypes.h include.
22881         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
22882         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
22883         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
22884         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
22885         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22887 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
22889         PR bootstrap/64676
22890         Revert:
22891         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
22893         PR rtl-optimization/64081
22894         * loop-iv.c (def_pred_latch_p): New function.
22895         (latch_dominating_def): Allow specific cases with non-single
22896         definitions.
22897         (iv_get_reaching_def): Likewise.
22898         (check_complex_exit_p): New function.
22899         (check_simple_exit): Use check_complex_exit_p to allow certain cases
22900         with exits not executing on any iteration.
22902 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22904         PR lto/45375
22905         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22906         to set branch cost.
22908 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22910         PR lto/45375
22911         * i386.c (gate): Check flag_expensive_optimizations and
22912         optimize_size.
22913         (ix86_option_override_internal): Drop optimize_size condition
22914         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22915         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22916         MASK_PREFER_AVX128.
22917         (ix86_avx256_split_vector_move_misalign,
22918         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22919         * sse.md (all uses of TARGET_PREFER_AVX128): Add
22920         optimize_insn_for_speed_p check.
22922 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
22924         * config/mips/mips.h (FP_ASM_SPEC): New define.
22925         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22926         instead.
22928 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
22930         PR target/53988
22931         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22932         nullptr for insn when reaching the first insn.
22933         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22934         (sh_insn_operands_modified_between_p): Add nullptr check.
22935         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
22936         sign extending mem load if the insn contains any UNSPEC or
22937         UNSPEC_VOLATILE.
22939 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22941         * params.def (inline-unit-growth): Drop to 15%.
22942         * invoke.texi (inline-unit-growth): Document change.
22944 2015-01-19  Martin Liska  <mliska@suse.cz>
22946         PR ipa/64668
22947         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22948         function for second argument of OBJ_TYPE_REF.
22950 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22952         PR ipa/64218
22953         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
22954         whether function is an alias.
22956 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22958         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
22959         cases.
22961 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
22963         PR rtl-optimization/64671
22964         * lra-remat.c (operand_to_remat): Don't consider jump and call
22965         insns.
22967 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
22969         PR target/59828
22970         * config/rs6000/default64.h: Include rs6000-cpus.def.
22971         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
22972         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
22973         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
22974         and POWER8.
22975         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
22976         POWER8.
22977         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
22978         pseudo-op to specify assembler dialect.
22980 2015-01-19  Martin Liska  <mliska@suse.cz>
22982         PR ipa/64664
22983         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
22984         Handle safe potentially removed nodes during filtering.
22986 2015-01-19  Martin Liska  <mliska@suse.cz>
22988         * doc/extend.texi (no_icf): Add new attribute description.
22989         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
22990         where the pass attempts to merge a function with no_icf attribute.
22992 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22994         PR target/64532
22995         * doc/md.texi (ARM Options): Document register constraints.
22997 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
22998             Andrew Pinski  <apinski@cavium.com>
23000         PR target/64304
23001         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
23002         (ashl<mode>3): Don't expand if operands[2] is not constant.
23004 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23006         PR target/64448
23007         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
23008         Match xor-and-xor RTL pattern.
23010 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
23012         PR rtl-optimization/64081
23013         * loop-iv.c (def_pred_latch_p): New function.
23014         (latch_dominating_def): Allow specific cases with non-single
23015         definitions.
23016         (iv_get_reaching_def): Likewise.
23017         (check_complex_exit_p): New function.
23018         (check_simple_exit): Use check_complex_exit_p to allow certain cases
23019         with exits not executing on any iteration.
23021 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
23023         * common.opt (fgraphite): Fix a typo.
23025 2015-01-19  Felix Yang  <felix.yang@huawei.com>
23027         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
23028         pattern.
23029         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
23030         uminp, smax_nanp, smin_nanp): New builtins.
23031         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
23032         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
23033         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
23034         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
23035         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
23036         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
23037         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
23038         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
23039         vpminnms_f32): Rewrite using builtin functions.
23041 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
23043         PR libgomp/64625
23044         * omp-low.c (offload_symbol_decl): Remove variable.
23045         (get_offload_symbol_decl): Remove function.
23046         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
23047         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
23048         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
23049         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
23050         BUILT_IN_GOACC_UPDATE don't pass it at all.
23052 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
23054         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
23055         callers.
23057 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
23059         * ipa-chkp.c (chkp_produce_thunks): Add early param
23060         to split thunks production into two passes.  Keep
23061         'always_inline' function bodies after the first pass.
23062         (pass_data_ipa_chkp_early_produce_thunks): New.
23063         (pass_ipa_chkp_early_produce_thunks): New.
23064         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
23065         chkp_produce_thunks signature.
23066         (make_pass_ipa_chkp_early_produce_thunks): New.
23067         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
23068         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
23069         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
23071 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
23073         * cgraph.c (cgraph_node::dump): Dump profile flags.
23075 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
23077         PR target/64652
23078         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
23079         reg appear first in the parallel.
23081 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
23083         * ipa-reference.c (set_reference_optimization_summary,
23084         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
23085         disabled.
23086         (ignore_module_statics): New static var.
23087         (propagate_bits): If ipa-reference is disabled, do not look into local
23088         properties.
23089         (analyze_function): Disable analysis when ipa_reference is disabled.
23090         (generate_summary): Do not dump when reference is disabled;
23091         collect vars accessed from functions with ipa-reference disabled.
23092         (get_read_write_all_from_node): When ipa-reference is disabled, use the
23093         node flags.
23094         (gate): Enable for LTO.
23095         (ignore_edge_p): New function.
23096         (propagate): Skip functions w/o ipa-reference analysis.
23097         * optc-save-gen.awk: Handle optimize_debug correctly.
23098         * opth-gen.awk: Likewise.
23099         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
23100         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
23101         fira-share-save-slots, fira-share-spill-slots,
23102         fmodulo-sched-allow-regmoves, fpartial-inlining,
23103         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
23104         ftracer, ftree-parallelize-loops, fassociative-math,
23105         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
23106         Optimization
23107         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
23108         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
23109         Optimization.
23110         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
23111         Fix for IPA.
23113 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
23115         PR ipa/64378
23116         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
23117         flag correctly.
23118         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
23120 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
23122         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
23123         Remove duplicate option listings.
23125 2015-01-18  Felix Yang  <felix.yang@huawei.com>
23127         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
23128         (autofdo_source_profile::get_callsite_total_count,
23129         function_instance::get_function_instance_by_decl,
23130         string_table::get_index, string_table::get_index_by_decl,
23131         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
23132         Fix comment typos. Reformatting and minor code rearrangement.
23134 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
23136         * config/rs6000/rs6000.md (probe_stack): Delete.
23137         (probe_stack_address): New.
23139 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
23141         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
23142         to test for 32-bit ABIs, not !TARGET_POWERPC64.
23144 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
23146         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
23147         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
23148         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
23149         snafu.
23150         (rs6000_libcall_value): Use the new function.
23152 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
23154         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
23156 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
23158         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
23159         implement a more precise life analysis for it during backward scan.
23161 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
23163         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
23165 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
23167         PR rtl-optimization/52773
23168         * calls.c (emit_library_call_value): When pushing arguments use
23169         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
23170         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
23171         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
23173 2015-01-17  Jeff Law  <law@redhat.com>
23175         PR rtl-optimization/32790
23176         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
23177         not ZERO_EXTEND in SET_DESTs.
23179 2015-01-17  Alan Modra  <amodra@gmail.com>
23181         * cprop.c (do_local_cprop): Revert last change.
23183 2015-01-16  DJ Delorie  <dj@redhat.com>
23184             Nick Clifton  <nickc@redhat.com>
23186         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
23187         (addhi3_real): Likewise.  Fix [HL+0] syntax.
23188         (subqi3_real): Likewise.
23189         (subhi3_real): Likewise.
23190         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
23191         (cbranchhi4_real): Likewise.
23192         (cbranchhi4_real_inverted): Likewise.
23193         (cbranchsi4_real_lt): Likewise.
23194         (cbranchsi4_real_ge): Likewise.
23195         (cbranchsi4_real_ge): Likewise.
23196         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
23197         (sub<mode>3_virt): Likewise.
23198         (cbranchqi4_virt): Likewise.
23199         (cbranchhi4_virt): Likewise.
23200         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
23201         always use '[reg+imm]' even when imm is zero.
23202         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
23203         (rl78_general_operand): New.
23204         (rl78_nonimmediate_operand): New.
23205         (rl78_nonfar_operand): Use them.
23206         (rl78_nonfar_nonimm_operand): Likewise.
23207         (rl78_stack_based_mem): Fix.
23208         * config/rl78/constraints.md (Ibqi): New.
23209         (IBqi): New.
23210         (Wsa): New.
23211         (Wsf): New.
23212         (Cs1): Fix.
23213         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
23214         (iorqi3): Likewise.
23215         (xorqi3): Likewise.
23216         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
23218         * config/rl78/constrains (Qs8): New constraint.
23219         * config/rl78/rl78.c (rl78_flags_already_set): New function.
23220         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
23221         * config/rl78/rl78-real.md (update_Z): New attribute.
23222         Update patterns to set it.
23223         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
23224         shorter compare and branch sequence can be used.
23225         (cbranchhi4_real): Likewise.
23226         (cbranchhi4_real_inverted): Likewise.
23228         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
23229         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
23230         address space.
23231         * config/rl78/rl78.c (rl78_get_name_encoding): New.
23232         (rl78_option_override): Allow -mes0 only if C.
23233         (characterize_address): Support subregs of symbol_refs.
23234         (rl78_addr_space_address_mode): Move.  Add __near.
23235         (rl78_far_p): Likewise.
23236         (rl78_addr_space_pointer_mode): Likewise.
23237         (rl78_as_legitimate_address): Likewise.
23238         (rl78_addr_space_subset_p): Likewise.
23239         (rl78_addr_space_convert): Likewise.
23240         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
23241         symbols with -mes0.
23242         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
23243         addressing.
23244         (rl78_alloc_physical_registers_op1): Change logic to prefer
23245         symbol[BC] addressing.
23246         (frodata_section): New.
23247         (rl78_asm_init_sections): Initialize it.
23248         (rl78_select_section): Put __far readonly symbols in .frodata.
23249         (rl78_make_type_far): New.
23250         (rl78_insert_attributes): Force all readonly symbols to be
23251         __far when -mes0.
23252         (rl78_asm_out_integer): New.
23253         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
23254         * config/rl78/rl78.opt (-mes0): New.
23256         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
23257         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23258         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23259         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
23260         (rl78_saddr_p): New.
23261         (rl78_output_aligned_common): New.
23262         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
23263         (rl78_handle_saddr_attribute): New.
23264         (rl78_handle_naked_attribute): New.
23265         (rl78_attribute_table): Add saddr.
23266         (rl78_print_operand_1): Don't print '!' on saddr operands.
23267         (rl78_print_operand_1): Strip encodings.
23268         (rl78_sfr_p): New.
23269         (rl78_strip_name_encoding): New.
23270         (rl78_attrlist_to_encoding): New.
23271         (rl78_encode_section_info): New.
23272         (rl78_asm_init_sections): New.
23273         (rl78_select_section): New.
23274         (rl78_output_labelref): New.
23275         (rl78_output_aligned_common): New.
23276         (rl78_asm_out_integer): New.
23277         (rl78_asm_ctor_dtor): New.
23278         (rl78_asm_constructor): New.
23279         (rl78_asm_destructor): New.
23281         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
23282         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
23283         (transcode_memory_rtx): Update.
23284         (rl78_expand_epilogue): Use A_REG instead of 0.
23286 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23288         * config/arm/arm-protos.h (struct tune_params): New field
23289         sched_autopref_queue_depth.
23290         * config/arm/arm.c (sched-int.h): Include header.
23291         (arm_first_cycle_multipass_dfa_lookahead_guard,)
23292         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
23293         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
23294         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
23295         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
23296         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
23297         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
23298         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
23299         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
23300         * config/arm/t-arm (arm.o): Update.
23301         * haifa-sched.c (update_insn_after_change): Update.
23302         (rank_for_schedule): Use auto-prefetcher model, if requested.
23303         (autopref_multipass_init): New static function.
23304         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
23305         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
23306         variable for debug dumps.
23307         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
23308         (autopref_multipass_dfa_lookahead_guard): New global function that
23309         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
23310         (init_h_i_d): Update.
23311         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
23312         * sched-int.h (enum autopref_multipass_data_status): New const enum.
23313         (autopref_multipass_data_): Structure for auto-prefetcher data.
23314         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
23315         (struct _haifa_insn_data:autopref_multipass_data): New field.
23316         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
23317         (autopref_multipass_dfa_lookahead_guard): Declare.
23319 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23321         * rtlanal.c (get_base_term): Handle SCRATCH.
23323 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23325         * config/aarch64/aarch64.c
23326         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
23327         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23328         * config/arm/arm.c
23329         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
23330         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23332 2015-01-17  Alan Modra  <amodra@gmail.com>
23334         * cprop.c (do_local_cprop): Disallow replacement of fixed
23335         hard registers.
23337 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23339         PR target/62066
23340         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
23341         early return 0.
23343 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23345         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
23346         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
23348 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23350         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
23351         * config/arm/thumb1.md: ... Here.
23353 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
23355         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
23356         TImode for TARGET_32BIT.
23358 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
23360         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
23361         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
23362         as ...
23363         (rs6000_abi_word_mode): New function.
23365 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
23367         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
23368         instead of UNITS_PER_WORD to describe the size of stack slots.
23370 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
23372         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
23373         as rs6000_promote_function_mode.  Move comment to there.
23374         (rs6000_promote_function_mode): New function.
23376 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
23378         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
23379         -mpowerpc64 is active.
23381 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
23383         PR middle-end/64353
23384         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
23385         virtuals on start.
23387 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
23389         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
23390         introduced in revision 219724.
23392 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23393             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23395         PR target/64263
23396         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
23397         destination is not a GP reg.
23398         (*movdi_aarch64): Likewise.
23400 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
23402         PR target/64623
23403         * config/rs6000/default64.h: Revert ISA change.
23405 2015-01-16  Richard Biener  <rguenther@suse.de>
23407         PR middle-end/64614
23408         * tree-ssa-uninit.c: Include tree-cfg.h.
23409         (MAX_SWITCH_CASES): New define.
23410         (convert_control_dep_chain_into_preds): Handle switch statements.
23411         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
23412         (normalize_one_pred_1): Do not split bit-manipulations.
23413         Record (x & CST).
23415 2015-01-16  Richard Biener  <rguenther@suse.de>
23417         PR tree-optimization/64568
23418         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
23419         complex load rewriting for TARGET_MEM_REFs.
23421 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
23423         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
23425 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
23427         PR target/64149
23428         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
23429         variable.
23430         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
23431         (aarch64_lra_p): Remove.
23433 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
23435         PR target/64363
23436         * ipa-chkp.h (chkp_instrumentable_p): New.
23437         * ipa-chkp.c: Include tree-inline.h.
23438         (chkp_instrumentable_p): New.
23439         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
23440         Fix processing of not instrumentable functions.
23441         (chkp_versioning): Use chkp_instrumentable_p. Warn about
23442         not instrumentable functions.
23443         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
23444         chkp_instrumentable_p.
23445         * tree-inline.h (copy_forbidden): New.
23446         * tree-inline.c (copy_forbidden): Not static anymore.
23448 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23450         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
23451         ptr1, ptr2 unused.
23453 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
23455         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
23456         type OP_OUT to OP_INOUT.
23458 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
23460         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
23461         (high x) y) to y if x and y have the same base.
23463 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
23465         * config/arm/cortex-a57.md: New.
23466         * config/aarch64/aarch64.md: Include it.
23467         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
23468         * config/aarch64/aarch64-tune.md: Regenerate.
23470 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
23472         PR target/64015
23473         * ccmp.c (expand_ccmp_next): New function.
23474         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
23475         and compare insn sequence.
23476         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
23477         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
23478         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
23479         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
23480         (*ccmp_ior): Changed to ccmp_ior<mode>.
23481         (cmp<mode>): New pattern.
23482         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
23483         parameters.
23484         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
23486 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
23488         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
23489         _mm256_bsrli_epi128): New.
23490         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
23492 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
23494         * expmed.c (store_bit_field_using_insv): Improve warning message.
23495         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
23497 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
23499         PR rtl-optimization/64011
23500         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
23501         there is partial overflow.
23503 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
23505         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
23506         prototype.
23507         (nds32_expand_epilogue_v3pop): Likewise.
23508         * config/nds32/nds32.md (sibcall): Define this for sibling call
23509         optimization.
23510         (sibcall_register): Likewise.
23511         (sibcall_immediate): Likewise.
23512         (sibcall_value): Likewise.
23513         (sibcall_value_register): Likewise.
23514         (sibcall_value_immediate): Likewise.
23515         (sibcall_epilogue): Likewise.
23516         (epilogue): Pass false to indicate this is not a sibcall epilogue.
23517         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
23518         (nds32_expand_epilogue_v3pop): Likewise.
23520 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
23522         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
23523         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
23524         (return_internal): New.
23525         (return): Define this named pattern.
23526         (simple_return): Define this named pattern.
23527         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
23528         pattern instead of unspec_volatile_func_return.
23529         (nds32_expand_epilogue_v3pop): Likewise.
23530         (nds32_can_use_return_insn): New function.
23532 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
23534         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
23535         * config/nds32/nds32.md (pop25return): New.
23536         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
23537         pop25return pattern.
23539 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
23541         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
23542         -mforbid-fp-as-gp, and -mex9 options.
23544 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
23546         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
23547         remove -mgp-direct option.
23549 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
23551         * doc/invoke.texi (--param early-inlining-insns): Update default value.
23552         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
23554 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
23556         * ipa-inline.c (inline_small_functions): Work around hints
23557         cache issue.
23559 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
23561         PR target/59710
23562         * doc/invoke.texi (Option Summary): Document new Nios II
23563         -mgpopt= syntax.
23564         (Nios II Options): Likewise.
23565         * config/nios2/nios2.opt: Add -mgpopt= option support.
23566         Modify existing -mgpopt and -mno-gpopt options to be aliases.
23567         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
23568         * config/nios2/nios2.c (nios2_option_override): Adjust
23569         -mgpopt defaulting.
23570         (nios2_in_small_data_p): Return true for explicit small data
23571         sections even with -G0.
23572         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
23573         option choices.
23575 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
23577         PR ipa/64612
23578         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23579         of comdat locals.
23580         (inline_call): Fix removal of aliases.
23582 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
23584         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23585         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23586         * opts.c (common_handle_option): Add -fsanitize=vptr.
23587         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23588         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23589         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23590         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23591         (ubsan_expand_vptr_ifn): New prototype.
23592         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23593         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23594         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23595         expand_LOOP_VECTORIZED): Make argument nameless, remove
23596         ATTRIBUTE_UNUSED.
23597         (expand_UBSAN_VPTR): New function.
23598         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23599         in fn spec.
23600         (UBSAN_VPTR): New internal function.
23601         * sanopt.c (tree_map_traits): Renamed to ...
23602         (sanopt_tree_map_traits): ... this.
23603         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23604         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23605         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
23606         (maybe_optimize_ubsan_vptr_ifn): New function.
23607         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23608         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
23609         -fsanitize=vptr.
23610         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23611         internal calls like pure functions for aliasing, even when they
23612         have other side-effects that prevent making them ECF_PURE.
23613         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23614         (ubsan_expand_vptr_ifn): New function.
23616 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
23618         PR rtl-optimization/64110
23619         * stmt.c (parse_output_constraint): Process '^' and '$'.
23620         (parse_input_constraint): Ditto.
23621         * lra-constraints.c (process_alt_operands): Process the new
23622         constraints.
23623         * ira-costs.c (record_reg_classes): Process the new constraint
23624         '^'.
23625         * genoutput.c (indep_constraints): Add '^' and '$'.
23626         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23627         * doc/md.texi: Add description of the new constraints.
23629 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
23630             Bernd Schmidt  <bernds@codesourcery.com>
23631             Cesar Philippidis  <cesar@codesourcery.com>
23632             James Norris  <jnorris@codesourcery.com>
23633             Tom de Vries  <tom@codesourcery.com>
23634             Ilmir Usmanov  <i.usmanov@samsung.com>
23635             Dmitry Bocharnikov  <dmitry.b@samsung.com>
23636             Evgeny Gavrin  <e.gavrin@samsung.com>
23637             Jakub Jelinek  <jakub@redhat.com>
23639         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23640         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23641         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23642         New function types.
23643         * builtins.c: Include "gomp-constants.h".
23644         (expand_builtin_acc_on_device): New function.
23645         (expand_builtin, is_inexpensive_builtin): Handle
23646         BUILT_IN_ACC_ON_DEVICE.
23647         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
23648         New macros.
23649         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
23650         flag_openmp.
23651         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
23652         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
23653         i386/intelmic-offload.h.
23654         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
23655         to libgomp and its dependencies.
23656         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
23657         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23658         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23659         * config/ia64/hpux.h (LIB_SPEC): Likewise.
23660         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23661         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23662         * doc/generic.texi: Update for OpenACC changes.
23663         * doc/gimple.texi: Likewise.
23664         * doc/invoke.texi: Likewise.
23665         * doc/sourcebuild.texi: Likewise.
23666         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
23667         GF_OMP_FOR_KIND_OACC_LOOP.
23668         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
23669         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
23670         GF_OMP_TARGET_KIND_OACC_UPDATE,
23671         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23672         Dump more data.
23673         * gimple.c: Update comments for OpenACC changes.
23674         * gimple.def: Likewise.
23675         * gimple.h: Likewise.
23676         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
23677         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23678         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
23679         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23680         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
23681         appropriate place.
23682         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
23683         * gimplify.c: Include "gomp-constants.h".
23684         Update comments for OpenACC changes.
23685         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
23686         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
23687         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23688         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
23689         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23690         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23691         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
23692         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23693         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
23694         OMP_CLAUSE_SEQ.
23695         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
23696         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
23697         OMP_CLAUSE_SET_MAP_KIND.
23698         (gimplify_oacc_cache): New function.
23699         (gimplify_omp_for): Handle OACC_LOOP.
23700         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
23701         OACC_DATA.
23702         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
23703         OACC_EXIT_DATA, OACC_UPDATE.
23704         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
23705         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
23706         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
23707         (gimplify_body): Consider flag_openacc next to flag_openmp.
23708         * lto-streamer-out.c: Include "gomp-constants.h".
23709         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
23710         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
23711         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
23712         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
23713         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
23714         (BUILT_IN_ACC_ON_DEVICE): New builtins.
23715         * omp-low.c: Include "gomp-constants.h".
23716         Update comments for OpenACC changes.
23717         (struct omp_context): Add reduction_map, gwv_below, gwv_this
23718         members.
23719         (extract_omp_for_data, use_pointer_for_field, install_var_field)
23720         (new_omp_context, delete_omp_context, scan_sharing_clauses)
23721         (create_omp_child_function, scan_omp_for, scan_omp_target)
23722         (check_omp_nesting_restrictions, lower_reduction_clauses)
23723         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
23724         Update for OpenACC changes.
23725         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
23726         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
23727         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
23728         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23729         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
23730         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
23731         OMP_CLAUSE_MAP_*.
23732         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23733         Handle GF_OMP_FOR_KIND_OACC_LOOP.
23734         (expand_omp_target, lower_omp_target): Handle
23735         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23736         GF_OMP_TARGET_KIND_OACC_UPDATE,
23737         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
23738         GF_OMP_TARGET_KIND_OACC_DATA.
23739         (pass_expand_omp::execute, execute_lower_omp)
23740         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
23741         flag_openmp.
23742         (offload_symbol_decl): New variable.
23743         (oacc_get_reduction_array_id, oacc_max_threads)
23744         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
23745         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
23746         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
23747         (oacc_gimple_assign, oacc_initialize_reduction_data)
23748         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
23749         functions.
23750         (is_targetreg_ctx): Remove function.
23751         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
23752         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
23753         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23754         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
23755         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
23756         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
23757         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
23758         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
23759         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
23760         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
23761         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
23762         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
23763         * tree-core.h: Update comments for OpenACC changes.
23764         (enum omp_clause_map_kind): Remove.
23765         (struct tree_omp_clause): Change type of map_kind member from enum
23766         omp_clause_map_kind to unsigned char.
23767         * tree-inline.c: Update comments for OpenACC changes.
23768         * tree-nested.c: Likewise.  Include "gomp-constants.h".
23769         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
23770         (convert_tramp_reference_stmt, convert_gimple_call): Update for
23771         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
23772         OMP_CLAUSE_SET_MAP_KIND.
23773         * tree-pretty-print.c: Include "gomp-constants.h".
23774         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
23775         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
23776         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
23777         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
23778         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23779         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
23780         instead of OMP_CLAUSE_MAP_*.
23781         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
23782         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
23783         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23784         * tree-streamer-in.c: Include "gomp-constants.h".
23785         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
23786         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
23787         * tree-streamer-out.c: Include "gomp-constants.h".
23788         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
23789         OMP_CLAUSE_MAP_*.
23790         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
23791         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
23792         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
23793         * tree.c (omp_clause_num_ops): Update accordingly.
23794         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
23795         Likewise.
23796         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
23797         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
23798         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
23799         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
23800         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
23801         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
23802         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
23803         (OMP_CLAUSE_SET_MAP_KIND): New macro.
23804         * varpool.c (varpool_node::get_create): Consider flag_openacc next
23805         to flag_openmp.
23806         * config/i386/intelmic-offload.h: New file.
23807         * config/nvptx/offload.h: Likewise.
23809 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23811         * explow.h: Remove duplicate contents.
23812         * dojump.h: Likewise.
23814 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
23816         * arm.c (arm_xgene_tune): Add default initializer for instruction
23817         fusion.
23819 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
23821         PR ipa/64068
23822         PR ipa/64559
23823         * ipa.c (symbol_table::remove_unreachable_nodes):
23824         Do not put abstract origins into boundary.
23826 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
23828         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
23829         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
23831 2015-01-15  Steve Ellcey  <sellcey@mips.com>
23833         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
23834         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
23835         builtins.def, and chkp-builtins.def.
23837 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
23839         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
23840         ISA 2.7 (POWER8).
23842 2015-01-15  Richard Biener  <rguenther@suse.de>
23844         PR tree-optimization/61743
23845         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
23846         information on PHIs for some simple cases.
23848 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23850         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
23851         Include xgene1.md.
23852         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
23853         * config/arm/arm-cores.def (xgene1): New entry.
23854         * config/arm/arm-tables.opt: Regenerate.
23855         * config/arm/arm-tune.md: Regenerate.
23856         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
23858 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
23860         * tree-if-conv.c: Include hash-map.h.
23861         (aggressive_if_conv): New variable.
23862         (fold_build_cond_expr): Add simplification of non-zero condition.
23863         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
23864         destination block is not always executed.
23865         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
23866         than two predecessors if AGGRESSIVE_IF_CONV is true.
23867         (if_convertible_stmt_p): Fix commentary.
23868         (all_preds_critical_p): New function.
23869         (has_pred_critical_p): New function.
23870         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
23871         BB can have more than two predecessors and all incoming edges can be
23872         critical.
23873         (predicate_bbs): Skip predication for loop exit block, use build2_loc
23874         to compute predicate for true edge.
23875         (find_phi_replacement_condition): Delete this function.
23876         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
23877         Allow interchange PHI arguments if EXTENDED is false.
23878         Change check that block containing reduction statement candidate
23879         is predecessor of phi-block since phi may have more than two arguments.
23880         (phi_args_hash_traits): New helper structure.
23881         (struct phi_args_hash_traits): New type.
23882         (phi_args_hash_traits::hash): New function.
23883         (phi_args_hash_traits::equal_keys): New function.
23884         (gen_phi_arg_condition): New function.
23885         (predicate_scalar_phi): Add handling of phi nodes with more than two
23886         arguments, delete COND and TRUE_BB arguments, insert body of
23887         find_phi_replacement_condition to predicate ordinary phi nodes.
23888         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
23889         delete call of find_phi_replacement_condition and invoke
23890         predicate_scalar_phi with two arguments.
23891         (insert_gimplified_predicates): Add assert that non-predicated block
23892         don't have statements to insert.
23893         (ifcvt_split_critical_edges): New function.
23894         (ifcvt_split_def_stmt): Likewise.
23895         (ifcvt_walk_pattern_tree): Likewise.
23896         (stmt_is_root_of_bool_pattern): Likewise.
23897         (ifcvt_repair_bool_pattern): Likewise.
23898         (ifcvt_local_dce): Likewise.
23899         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23900         is copy of inner or outer loop force_vectorize field, invoke
23901         ifcvt_split_critical_edges, ifcvt_local_dce and
23902         ifcvt_repair_bool_pattern for aggressive if-conversion.
23904 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
23906         * config/aarch64/aarch64.md: Include xgene1.md.
23907         * config/aarch64/xgene1.md: New file.
23909 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23911         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23912         xgene1 (APM XGene-1) core definition.
23913         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23914         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23915         * doc/invoke.texi: Document -mcpu=xgene1.
23917 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23919         * dojump.h: New header file.
23920         * explow.h: Likewise.
23921         * expr.h: Remove includes.
23922         Move expmed.c prototypes to expmed.h.
23923         Move dojump.c prototypes to dojump.h.
23924         Move alias.c prototypes to alias.h.
23925         Move explow.c prototypes to explow.h.
23926         Move calls.c prototypes to calls.h.
23927         Move emit-rtl.c prototypes to emit-rtl.h.
23928         Move varasm.c prototypes to varasm.h.
23929         Move stmt.c prototypes to stmt.h.
23930         (saved_pending_stack_adjust): Move to dojump.h.
23931         (adjust_address): Move to explow.h.
23932         (adjust_address_nv): Move to emit-rtl.h.
23933         (adjust_bitfield_address): Likewise.
23934         (adjust_bitfield_address_size): Likewise.
23935         (adjust_bitfield_address_nv): Likewise.
23936         (adjust_automodify_address_nv): Likewise.
23937         * explow.c (expr_size): Move to expr.c.
23938         (int_expr_size): Likewise.
23939         (tree_expr_size): Likewise.
23940         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23941         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23942         * genemit.c (main): Generate includes statistics.h, real.h,
23943         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23944         stmt.h.
23945         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23946         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23947         explow.h, emit-rtl.h, stmt.h.
23948         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23949         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23950         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23951         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
23952         emit-rtl.h, varasm.h, stmt.h.
23953         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
23954         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
23955         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
23956         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
23957         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23958         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
23959         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
23960         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
23961         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
23962         tm.h tree.h varasm.h vec.h wide-int.h.
23963         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23964         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23965         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
23966         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
23967         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
23968         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
23969         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
23970         * loop-iv.c: Likewise.
23971         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
23972         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
23973         statistics.h stmt.h tree.h varasm.h wide-int.h.
23974         * lra-constraints.c: Likewise.
23975         * lra-eliminations.c: Likewise.
23976         * lra-lives.c: Likewise.
23977         * lra-remat.c: Likewise.
23978         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23979         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
23980         statistics.h stmt.h tree.h varasm.h wide-int.h.
23981         * hw-doloop.c: Likewise.
23982         * ira-color.c: Likewise.
23983         * ira-emit.c: Likewise.
23984         * loop-doloop.c: Likewise.
23985         * loop-invariant.c: Likewise.
23986         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23987         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
23988         statistics.h stmt.h tree.h varasm.h wide-int.h.
23989         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
23990         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
23991         statistics.h stmt.h tree.h varasm.h wide-int.h.
23992         * combine-stack-adj.c: Likewise.
23993         * cse.c: Likewise.
23994         * ddg.c: Likewise.
23995         * ifcvt.c: Likewise.
23996         * ira-costs.c: Likewise.
23997         * jump.c: Likewise.
23998         * lra-coalesce.c: Likewise.
23999         * lra-spills.c: Likewise.
24000         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24001         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
24002         stmt.h varasm.h wide-int.h.
24003         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24004         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
24005         varasm.h.
24006         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
24007         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
24008         statistics.h stmt.h varasm.h wide-int.h.
24009         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
24010         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
24011         varasm.h wide-int.h.
24012         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
24013         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24014         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
24015         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
24016         statistics.h stmt.h.
24017         * config/tilepro/tilepro.c: Likewise.
24018         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
24019         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
24020         * config/pdp11/pdp11.c: Likewise.
24021         * config/xtensa/xtensa.c: Likewise.
24022         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
24023         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
24024         varasm.h.
24025         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24026         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
24027         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
24028         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24029         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
24030         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
24031         * rtl-chkp.c: Likewise.
24032         * tree-chkp-opt.c: Likewise.
24033         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
24034         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
24035         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
24036         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24037         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
24038         statistics.h stmt.h.
24039         * tree-vect-data-refs.c: Likewise.
24040         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
24041         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24042         rtl.h statistics.h stmt.h varasm.h.
24043         * internal-fn.c: Likewise.
24044         * ipa-icf-gimple.c: Likewise.
24045         * lto-section-out.c: Likewise.
24046         * tree-data-ref.c: Likewise.
24047         * tree-nested.c: Likewise.
24048         * tree-outof-ssa.c: Likewise.
24049         * tree-predcom.c: Likewise.
24050         * tree-pretty-print.c: Likewise.
24051         * tree-scalar-evolution.c: Likewise.
24052         * tree-ssa-strlen.c: Likewise.
24053         * tree-vect-loop.c: Likewise.
24054         * tree-vect-patterns.c: Likewise.
24055         * tree-vect-slp.c: Likewise.
24056         * tree-vect-stmts.c: Likewise.
24057         * tsan.c: Likewise.
24058         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24059         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
24060         stmt.h.
24061         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
24062         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24063         statistics.h stmt.h varasm.h.
24064         * loop-unroll.c: Likewise.
24065         * ubsan.c: Likewise.
24066         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
24067         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
24068         stmt.h varasm.h.
24069         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24070         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
24071         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
24072         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
24073         statistics.h stmt.h.
24074         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
24075         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
24076         statistics.h stmt.h varasm.h.
24077         * gimple-match-head.c: Likewise.
24078         * lto-cgraph.c: Likewise.
24079         * lto-section-in.c: Likewise.
24080         * lto-streamer-in.c: Likewise.
24081         * lto-streamer-out.c: Likewise.
24082         * tree-affine.c: Likewise.
24083         * tree-cfg.c: Likewise.
24084         * tree-cfgcleanup.c: Likewise.
24085         * tree-if-conv.c: Likewise.
24086         * tree-into-ssa.c: Likewise.
24087         * tree-ssa-alias.c: Likewise.
24088         * tree-ssa-copyrename.c: Likewise.
24089         * tree-ssa-dse.c: Likewise.
24090         * tree-ssa-forwprop.c: Likewise.
24091         * tree-ssa-live.c: Likewise.
24092         * tree-ssa-math-opts.c: Likewise.
24093         * tree-ssa-pre.c: Likewise.
24094         * tree-ssa-sccvn.c: Likewise.
24095         * tree-tailcall.c: Likewise.
24096         * tree-vect-generic.c: Likewise.
24097         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24098         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
24099         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24100         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
24101         * varasm.c: Likewise.
24102         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24103         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
24104         varasm.h.
24105         * init-regs.c: Likewise.
24106         * ira.c: Likewise.
24107         * omp-low.c: Likewise.
24108         * stack-ptr-mod.c: Likewise.
24109         * tree-ssa-reassoc.c: Likewise.
24110         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24111         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
24112         varasm.h.
24113         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24114         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
24115         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24116         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
24117         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24118         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
24119         * tree-ssa-phiopt.c: Likewise.
24120         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24121         fixed-value.h hashtab.h real.h statistics.h stmt.h.
24122         * config/fr30/fr30.c: Likewise.
24123         * config/frv/frv.c: Likewise.
24124         * expr.c: Likewise.
24125         * final.c: Likewise.
24126         * optabs.c: Likewise.
24127         * passes.c: Likewise.
24128         * simplify-rtx.c: Likewise.
24129         * stmt.c: Likewise.
24130         * toplev.c: Likewise.
24131         * var-tracking.c: Likewise.
24132         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24133         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24134         * lower-subreg.c: Likewise.
24135         * postreload-gcse.c: Likewise.
24136         * ree.c: Likewise.
24137         * reginfo.c: Likewise.
24138         * store-motion.c: Likewise.
24139         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24140         fixed-value.h hashtab.h real.h stmt.h varasm.h.
24141         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24142         fixed-value.h hashtab.h statistics.h stmt.h.
24143         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24144         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
24145         * except.c: Likewise.
24146         * explow.c: Likewise.
24147         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24148         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
24149         varasm.h.
24150         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24151         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
24152         * tree-ssa-structalias.c: Likewise.
24153         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24154         fixed-value.h insn-config.h real.h statistics.h.
24155         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24156         fixed-value.h insn-config.h real.h statistics.h stmt.h.
24157         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24158         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
24159         * cfgbuild.c: Likewise.
24160         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24161         fixed-value.h real.h rtl.h statistics.h stmt.h.
24162         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24163         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24164         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24165         fixed-value.h real.h statistics.h stmt.h.
24166         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24167         fixed-value.h real.h statistics.h stmt.h varasm.h.
24168         * cprop.c: Likewise.
24169         * modulo-sched.c: Likewise.
24170         * postreload.c: Likewise.
24171         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
24172         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
24173         statistics.h stmt.h varasm.h.
24174         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
24175         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24176         rtl.h statistics.h stmt.h varasm.h.
24177         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
24178         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
24179         varasm.h.
24180         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
24181         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
24182         varasm.h.
24183         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
24184         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
24185         varasm.h.
24186         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
24187         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24188         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24189         function.h real.h statistics.h stmt.h varasm.h.
24190         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24191         insn-config.h real.h statistics.h stmt.h.
24192         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24193         statistics.h stmt.h.
24194         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
24195         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
24196         statistics.h stmt.h varasm.h.
24197         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
24198         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
24199         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24200         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
24201         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
24202         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
24203         statistics.h stmt.h varasm.h.
24204         * ipa-polymorphic-call.c: Likewise.
24205         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
24206         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24207         statistics.h stmt.h.
24208         * config/c6x/c6x.c: Likewise.
24209         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
24210         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24211         statistics.h stmt.h varasm.h.
24212         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
24213         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
24214         stmt.h varasm.h.
24215         * ipa-split.c: Likewise.
24216         * tree-eh.c: Likewise.
24217         * tree-ssa-dce.c: Likewise.
24218         * tree-ssa-loop-niter.c: Likewise.
24219         * tree-vrp.c: Likewise.
24220         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
24221         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
24222         stmt.h.
24223         * config/nds32/nds32-fp-as-gp.c: Likewise.
24224         * config/nds32/nds32-intrinsic.c: Likewise.
24225         * config/nds32/nds32-isr.c: Likewise.
24226         * config/nds32/nds32-md-auxiliary.c: Likewise.
24227         * config/nds32/nds32-memory-manipulation.c: Likewise.
24228         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24229         * config/nds32/nds32-predicates.c: Likewise.
24230         * config/nds32/nds32.c: Likewise.
24231         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
24232         fixed-value.h hashtab.h real.h statistics.h.
24233         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
24234         fixed-value.h hashtab.h real.h statistics.h stmt.h.
24235         * config/arm/arm.c: Likewise.
24236         * config/avr/avr.c: Likewise.
24237         * config/bfin/bfin.c: Likewise.
24238         * config/h8300/h8300.c: Likewise.
24239         * config/i386/i386.c: Likewise.
24240         * config/ia64/ia64.c: Likewise.
24241         * config/iq2000/iq2000.c: Likewise.
24242         * config/m32c/m32c.c: Likewise.
24243         * config/m32r/m32r.c: Likewise.
24244         * config/m68k/m68k.c: Likewise.
24245         * config/mcore/mcore.c: Likewise.
24246         * config/mep/mep.c: Likewise.
24247         * config/mips/mips.c: Likewise.
24248         * config/mn10300/mn10300.c: Likewise.
24249         * config/moxie/moxie.c: Likewise.
24250         * config/pa/pa.c: Likewise.
24251         * config/rl78/rl78.c: Likewise.
24252         * config/rx/rx.c: Likewise.
24253         * config/s390/s390.c: Likewise.
24254         * config/sh/sh.c: Likewise.
24255         * config/sparc/sparc.c: Likewise.
24256         * config/spu/spu.c: Likewise.
24257         * config/stormy16/stormy16.c: Likewise.
24258         * config/v850/v850.c: Likewise.
24259         * config/vax/vax.c: Likewise.
24260         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
24261         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24262         * config/msp430/msp430.c: Likewise.
24263         * predict.c: Likewise.
24264         * value-prof.c: Likewise.
24265         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
24266         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
24267         * config/microblaze/microblaze.c: Likewise.
24268         * config/nios2/nios2.c: Likewise.
24269         * config/rs6000/rs6000.c: Likewise.
24270         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24271         insn-config.h real.h rtl.h statistics.h stmt.h.
24272         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24273         insn-config.h real.h statistics.h stmt.h.
24274         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
24275         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
24276         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
24277         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24278         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
24279         fixed-value.h real.h statistics.h stmt.h.
24280         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
24281         fixed-value.h statistics.h stmt.h.
24282         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
24283         stmt.h.
24285 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
24287         * gengtype.c (create_user_defined_type): Workaround
24288         -Wmaybe-uninitialized false positives.
24289         * cse.c (fold_rtx): Likewise.
24290         * loop-invariant.c (gain_for_invariant): Likewise.
24292 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
24294         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
24295         set the memory attributes in all cases but clear MEM_EXPR if need be.
24297 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
24299         PR tree-optimization/64434
24300         * cfgexpand.c (reorder_operands): New function.
24301         (expand_gimple_basic_block): Insert call of reorder_operands if
24302         optimized is true.
24304 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
24306         * config/mips/micromips.md (*swp): Remove explicit parallel.
24307         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
24308         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
24309         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
24310         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
24311         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
24312         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
24313         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
24314         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
24315         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
24316         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
24317         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
24318         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
24319         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
24320         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
24321         (mips_wrdsp): Likewise.
24322         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
24323         parallel.
24324         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
24325         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
24326         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
24327         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
24328         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
24329         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
24330         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
24331         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
24332         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
24334 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
24336         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
24337         (mips_print_operand): Support 'y' to print exact log2 in decimal
24338         of a const_int.
24339         * config/mips/mips.h (ISA_HAS_LSA): New define.
24340         (ISA_HAS_DLSA): Likewise.
24341         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
24342         * config/mips/predicates.md (const_immlsa_operand): New predicate.
24344 2015-01-15  Martin Liska  <mliska@suse.cz>
24346         PR target/64377
24347         * optc-save-gen.awk: Add support for array types.
24349 2015-01-15  Richard Biener  <rguenther@suse.de>
24351         PR middle-end/64365
24352         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
24353         for MEM_REF access functions with the same base can never partially
24354         overlap.
24356 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
24358         * common.opt: New option -fstack-protector-explicit.
24359         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
24360         (stack_protect_decl_phase): Handle stack_protect attribute for
24361         explicit stack protection requests.
24362         (expand_used_vars): Similarly.
24363         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
24364         * doc/extend.texi: Add documentation for "stack_protect" attribute.
24365         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
24367 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
24369         PR target/53988
24370         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
24371         reg-reg copies.
24372         (sh_extending_set_of_reg): New struct.
24373         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
24374         sh_remove_reg_dead_or_unused_notes): New Declarations.
24375         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
24376         sh_find_extending_set_of_reg, sh_split_tst_subregs,
24377         sh_extending_set_of_reg::use_as_extended_reg): New functions.
24378         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
24379         convert to insn_and_split and use new function sh_split_tst_subregs.
24381 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
24383         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
24384         option.
24385         (Optimization Options): Move -fuse-ld documentation to...
24386         (Link Options): ...here.
24388 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
24390         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
24391         offsets.
24392         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
24393         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
24394         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
24395         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
24396         instead of ZR for the memory operand of LL/SC.
24397         (compare_and_swap_12, sync_add<mode>): Likewise.
24398         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
24399         (sync_new_<optab>_12, sync_nand_12): Likewise.
24400         (sync_old_nand_12, sync_new_nand_12): Likewise.
24401         (sync_sub<mode>, sync_old_add<mode>): Likewise.
24402         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
24403         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
24404         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
24405         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
24406         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
24407         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
24408         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
24409         * doc/md.texi (ZC): Update description.
24411 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
24413         * builtins.c (expand_builtin_atomic_exchange): Remove error when
24414         memory model is CONSUME.
24415         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
24416         expand_builtin_atomic_store): Change invalid memory model errors to
24417         warnings.
24418         (expand_builtin_atomic_clear): Change invalid model errors to warnings
24419         and issue warning for CONSUME.
24421 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
24423         * lto-cgraph: Update function comments for
24424         lto_symtab_encoder_encode_*.
24426 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
24428         * Makefile.in (site.exp): Do not set ENABLE_LTO.
24430 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
24432         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
24433         * lto-cgraph.c (select_what_to_stream): Remove argument, use
24434         lto_stream_offload_p instead.
24435         * lto-streamer.h (select_what_to_stream): Remove argument.
24436         * passes.c (ipa_write_summaries): Likewise.
24437         * tree-pass.h (ipa_write_summaries): Likewise.
24439 2015-01-14  Richard Biener  <rguenther@suse.de>
24441         PR tree-optimization/59354
24442         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
24443         groups larger than the slp group size as having gaps.
24445 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
24447         PR middle-end/59448
24448         * builtins.c (get_memmodel): Promote consume to acquire always.
24450 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
24452         PR target/64386
24453         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
24454         V32HImode.
24456 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
24458         PR target/64393
24459         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
24460         Enable AVX512BW.
24461         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
24462         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
24463         AVX512VBMI, as it implies AVX512BW.
24465 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
24467         PR target/64387
24468         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
24469         (vec_unpacks_hi_v16sf): Ditto.
24471 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24473         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
24474         is not available.
24476 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24478         * doc/invoke.texi (mapcs): Mention deprecation.
24479         (mapcs-frame): Likewise.
24481 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24483         PR target/64453
24484         * config/arm/arm.c (callee_saved_reg_p): Define.
24485         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
24486         register is callee saved instead of !call_used_regs[reg].
24487         (thumb1_compute_save_reg_mask): Likewise.
24489 2015-01-14  Hale Wang  <hale.wang@arm.com>
24491         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
24492         Cortex-M7.
24494 2015-01-14  Richard Biener  <rguenther@suse.de>
24496         PR lto/64415
24497         * tree-inline.c (insert_debug_decl_map): Check destination
24498         function MAY_HAVE_DEBUG_STMTS.
24499         (insert_init_debug_bind): Likewise.
24500         (insert_init_stmt): Remove redundant check.
24501         (remap_gimple_stmt): Drop debug stmts if the destination
24502         function has var-tracking assignments disabled.
24504 2015-01-14  Martin Liska  <mliska@suse.cz>
24506         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
24507         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
24509 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24511         PR target/64460
24512         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
24513         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
24515 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
24517         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
24518         level from an ARCH; do not inject the default.
24519         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
24520         MIPS_ISA_LEVEL_SPEC.
24521         (MIPS_ISA_NAN2008_SPEC): Update comment.
24522         (BASE_DRIVER_SELF_SPECS): Likewise.
24523         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
24524         MIPS_DEFAULT_ISA_LEVEL_SPEC.
24525         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
24526         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
24527         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
24529 2015-01-14  Richard Biener  <rguenther@suse.de>
24531         PR tree-optimization/64493
24532         PR tree-optimization/64495
24533         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
24534         assign the proper vectorized PHI to the inner loop exit PHIs.
24536 2015-01-14  Joey Ye  <joey.ye@arm.com>
24538         * config/arm/arm.c (arm_compute_save_reg_mask):
24539         Do not save lr in case of tail call.
24540         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
24542 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
24544         * tree-vrp.c (check_array_ref): Emit more warnings
24545         for warn_array_bounds >= 2.
24546         * common.opt: New option -Warray-bounds=.
24547         * doc/invoke.texi: Document -Warray-bounds=.
24549 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
24551         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
24552         (mforbid-fp-as-gp): Remove.
24553         (mex9): Remove.
24554         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
24555         (nds32_symbol_load_store_p): Remove.
24556         (nds32_fp_as_gp_check_available): Clean up implementation.
24557         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
24558         cases.
24559         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
24560         fp-as-gp and ex9 cases.
24562 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
24564         * tree-profile.c (init_ic_make_global_vars): Drop workaround
24565         for bintuils bug 14342.
24566         (init_ic_make_global_vars): Likewise.
24567         (gimple_init_edge_profiler): Likewise.
24568         (gimple_gen_ic_func_profiler): Likewise.
24570 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
24572         * ipa-inline.c (inline_small_functions): Swap the operands in
24573         enum.
24575 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
24577         PR ipa/64481
24578         * ipa-inline-analysis.c (node_growth_cache): Remove.
24579         (initialize_growth_caches): Do not initialize it.
24580         (free_growth_caches): Do not free it.
24581         (do_estimate_growth): Rename to ...
24582         (estimate_growth): ... this one; drop growth cache code.
24583         (growth_likely_positive): Always go the heuristics way.
24584         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24585         (reset_edge_caches): Do not reset node growth.
24586         (heap_edge_removal_hook): Do not maintain cache.
24587         (inline_small_functions): Likewise; strenghten sanity check.
24588         (ipa_inline): Do not maintain caches.
24589         * ipa-inline.h (node_growth_cache): Remove.
24590         (do_estimate_growth): Remove to ...
24591         (estimate_growth): this one; remove inline version.
24592         (reset_node_growth_cache): Remove.
24594 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
24596         PR ipa/64565
24597         * ipa-inline.c (inline_small_functions): Update callee keys after
24598         resolving speculation
24599         (inline_small_functions): Always check monotonicity of the queue.
24601 2015-01-13  Marek Polacek  <polacek@redhat.com>
24603         PR middle-end/64391
24604         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24606 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
24608         PR rtl-optimization/64286
24609         * ree.c (combine_reaching_defs): Move part of comment earlier,
24610         remove !SCALAR_INT_MODE_P check.
24611         (add_removable_extension): Don't add vector mode
24612         extensions if all uses of the source register aren't the same
24613         vector extensions.
24615 2015-01-13  Renlin Li  <renlin.li@arm.com>
24617         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24618         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24620 2015-01-13  Martin Liska  <mliska@suse.cz>
24622         * ipa-icf.c (sem_function::equals_private): Call new functions
24623         cl_target_option_print_diff and cl_optimization_print_diff.
24624         * optc-save-gen.awk (cl_target_option_print_diff): New function.
24625         (cl_optimization_print_diff): Likewise.
24626         * opth-gen.awk: Likewise.
24628 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
24630         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24631         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24632         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24633         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24634         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24635         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24637 2015-01-13  Andrew Pinski  <apinski@cavium.com>
24639         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24640         instead of src mode.
24642 2015-01-13  Richard Biener  <rguenther@suse.de>
24644         PR lto/64373
24645         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
24646         DECL_CONTEXT.
24648 2015-01-13  Andrew Pinski  <apinski@cavium.com>
24650         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
24651         volatile mems.
24652         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
24654 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
24656         PR middle-end/63974
24657         * cfgexpand.c (expand_computed_goto): Don't call
24658         convert_memory_address here.
24660 2015-01-13  Richard Biener  <rguenther@suse.de>
24662         PR tree-optimization/64406
24663         * tree-loop-distibution.c (pass_loop_distribution::execute):
24664         Reset the SCEV hashtable if we distributed anything.
24666 2015-01-13  Richard Biener  <rguenther@suse.de>
24668         PR tree-optimization/64404
24669         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
24670         SLP types for CSEd loads.
24672 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24674         PR tree-optimization/64436
24675         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
24676         merge of two symbolic numbers for a bitwise OR to ...
24677         (perform_symbolic_merge): This. Also fix computation of the range and
24678         end of the symbolic number corresponding to the result of a bitwise OR.
24680 2015-01-13  Richard Biener  <rguenther@suse.de>
24682         PR tree-optimization/64568
24683         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
24684         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
24686 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24688         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
24689         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
24691 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24693         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
24694         target-specific symbol_ref flag.
24695         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
24696         resides in rodata section.
24697         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
24698         (nds32_encode_section_info): New function.
24700 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24702         * config/nds32/nds32.md (call): Use pseudo instruction bal which
24703         clobbers TA_REGNUM if large code model is specified.
24704         (call_register): Likewise.
24705         (call_immediate): Likewise.
24706         (call_value): Likewise.
24707         (call_value_register): Likewise.
24708         (call_value_immediate): Likewise.
24710 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24712         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
24713         (TARGET_CMODEL_MEDIUM): New macro.
24714         (TARGET_CMODEL_LARGE): New macro.
24715         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
24716         code model setting in assembly code.
24718 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24720         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24721         Remove MASK_GP_DIRECT flag.
24722         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
24723         one of the multilib default options.
24724         * config/nds32/nds32.opt (mgp-direct): Remove.
24725         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
24726         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
24728 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24730         * config/nds32/nds32.opt (mcmodel): Add new option.
24731         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
24732         to describe code model.
24734 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
24736         PR target/64479
24737         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
24739 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
24741         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
24742         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24743         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
24744         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
24745         __builtin_sh_set_fpscr.
24747 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24749         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
24750         after a funtion name just to indicate it is a function.
24751         ([-fsanitize-undefined-trap-on-error]): Likewise.
24752         ([-fdbg-cnt=]): Likewise.
24753         ([-mmemcpy]): Likewise.
24754         ([-mflush-func]): Likewise.
24755         ([-msynci]): Likewise.
24757 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24759         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
24760         example.
24762 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
24764         PR tree-optimization/64563
24765         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
24766         instead of != VR_VARYING.
24768         PR target/64513
24769         * config/i386/i386.c (ix86_expand_prologue): Add
24770         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
24772         PR tree-optimization/64454
24773         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
24774         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
24775         for signed or [0, op1 - 1] for unsigned modulo.
24776         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
24777         even if op1 does not satisfy integer_pow2p.
24779         PR other/64370
24780         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
24782 2015-01-12  Jeff Law  <law@redhat.com>
24784         PR target/64461
24785         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
24786         (trunchiqi2, truncsihi2): Similarly.
24788         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
24789         rather than calling F.
24791 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24793         * tsan.c (instrument_expr): Use force_gimple_operand.
24794         Use may_be_nonaddressable_p instead of is_gimple_addressable.
24796 2015-01-12  Richard Biener  <rguenther@suse.de>
24798         PR tree-optimization/64530
24799         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
24800         back dr1.
24802 2015-01-12  Richard Biener  <rguenther@suse.de>
24804         PR middle-end/64357
24805         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
24806         latches properly.
24808 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24810         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
24811         Cortex-A17 tuning parameters.
24812         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
24814 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24816         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
24817         * config/arm/arm.c (arm_macro_fusion_p): New function.
24818         (arm_macro_fusion_pair_p): Likewise.
24819         (TARGET_SCHED_MACRO_FUSION_P): Define.
24820         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
24821         (ARM_FUSE_NOTHING): Likewise.
24822         (ARM_FUSE_MOVW_MOVT): Likewise.
24823         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
24824         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
24825         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
24826         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
24827         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
24828         arm_cortex_a5_tune): Specify fuseable_ops value.
24830 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
24832         PR bootstrap/64561
24833         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
24834         test for PIE with copy reloc.
24835         * configure: Regenerated.
24837 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24839         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
24840         in gen_rtx_REG.
24841         (arm_tls_descseq_addr): Likewise.
24842         (arm_gen_movmemqi): Likewise.
24843         (arm_expand_epilogue_apcs_frame): Likewise.
24844         (arm_expand_epilogue): Likewise.
24845         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
24846         in gen_rtx_REG.
24848 2015-01-12  Martin Liska  <mliska@suse.cz>
24850         PR ipa/64550
24851         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
24852         volatility for correct operands.
24854 2015-01-12  Martin Liska  <mliska@suse.cz>
24856         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
24857         indication that a function is not leaf.
24858         (sem_function::compare_polymorphic_p): Likewise.
24860 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24862         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
24863         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
24864         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
24865         fold-const.h, tree-check.h.
24867 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
24869         PR ipa/63967
24870         PR ipa/64425
24871         * ipa-inline.c (compute_uninlined_call_time,
24872         compute_inlined_call_time): Use counts for extra precision when
24873         needed possible.
24874         (big_speedup_p): Fix formating.
24875         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
24876         (relative_time_benefit): Remove.
24877         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
24878         merge guessed and read profile paths.
24879         (inline_small_functions): Count only !optimize_size functions into
24880         initial size; be more lax about sanity check when profile is used;
24881         be sure to update inlined function profile when profile is read.
24883 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
24885         PR ipa/63470
24886         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
24887         cost when edge becomes direct.
24888         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
24889         is resolved or when introducing new speculation.
24891 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
24893         PR ipa/64551
24894         PR ipa/64552
24895         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24896         '||' to fix typo issue.
24898         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24899         accept and return NULL.
24901 2015-01-12  Martin Liska  <mliska@suse.cz>
24903         * cgraph.c (cgraph_edge::remove_callee): Move function to header
24904         file for being inlined.
24905         (cgraph_set_edge_callee): Delete.
24906         (cgraph_edge::redirect_callee): Move function to header file
24907         for being inlined.
24908         (cgraph_edge::make_direct): Use new function.
24909         (cgraph_edge::dump_edge_flags): New function created from
24910         static dump_edge_flags function.
24911         (cgraph_node::dump): Use new function.
24912         (cgraph_edge::verify_count_and_frequency): New function created
24913         from verify_edge_count_and_frequency.
24914         (cgraph_edge::verify_corresponds_to_fndecl): New function created
24915         from verify_edge_corresponds_to_fndecl.
24916         (verify_edge_corresponds_to_fndecl): Delete.
24917         (cgraph_node::verify_node): Use new function.
24918         * cgraph.h (cgraph_edge::set_callee): New function.
24919         (cgraph_edge::dump_edge_flags): Likewise.
24920         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24922 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
24924         * ipa-utils.c (estimate_function_body_sizes): Do not
24925         free node params when called late with early=true.
24927 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
24929         * doc/md.texi (Instruction Patterns): Rewrite text for
24930         clarity.
24931         (Example): Likewise.
24933 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
24935         * doc/invoke.texi (Option Summary): Break long lines.
24936         [(-fdiagnostics-color)]: Put long literal in @smallexample
24937         instead of inline.
24938         [(-fsanitize-recover)]: Likewise.
24939         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24940         [(-ffast-math)]: Likewise.
24941         [(--param max-inline-insns-recursive)]: Likewise.
24942         [(--param max-inline-recursive-depth)]: Likewise.
24943         [(-mno-text-section-literals)]: Likewise.
24945 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
24947         * doc/install.texi: Update for libgomp being renamed from "GNU
24948         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24949         Runtime Library".
24950         * doc/sourcebuild.texi: Likewise.
24952 2015-01-10  Anthony Green  <green@moxielogic.com>
24954         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
24955         mul.x availability for moxiebox configuration.
24957 2015-01-09  Anthony Green  <green@moxielogic.com>
24959         * config/moxie/moxie.md: Tabify assembly output.
24961 2015-01-09  Anthony Green  <green@moxielogic.com>
24963         * config/moxie/moxie.md (CC_REG): Correct register definition.
24965 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
24967         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
24968         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
24969         of log files.
24971 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
24973         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
24975 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
24976             Jakub Jelinek  <jakub@redhat.com>
24978         PR middle-end/64412
24979         * lto-streamer.h (lto_stream_offload_p): New declaration.
24980         * lto-streamer.c (lto_stream_offload_p): New variable.
24981         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
24982         at the same time as section_name_prefix.
24983         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
24984         if lto_stream_offload_p.
24985         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
24986         stream TREE_TARGET_OPTION if lto_stream_offload_p.
24987         (write_ts_function_decl_tree_pointers): Don't
24988         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
24989         * tree-streamer-in.c (unpack_value_fields): Don't stream
24990         TREE_TARGET_OPTION in if ACCEL_COMPILER.
24991         (lto_input_ts_function_decl_tree_pointers): Don't stream
24992         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
24993         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
24994         instead of section_name_prefix string comparisons.
24996 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
24998         PR rtl-optimization/64536
24999         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
25000         tablejumps.
25002 2015-01-09  Michael Collison  <michael.collison@linaro.org>
25004         PR tree-optimization/64322
25005         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
25006         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
25008 2015-01-09  Tom de Vries  <tom@codesourcery.com>
25010         PR rtl-optimization/64539
25011         * regcprop.c (kill_clobbered_values): Factor out of ...
25012         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
25013         instead of note_stores with kill_clobbered_value.
25015 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
25017          * ginclude/unwind-arm-common.h: Revert previous commit.
25019 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
25021         * config.gcc (arm*-*-freebsd*): New configuration.
25022         * config/arm/freebsd.h: New file.
25023         * config.host: Add extra components for arm*-*-freebsd*.
25024         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
25025         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
25027 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25029         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
25030         for -mcpu=e6500.
25031         * config/rs6000/t-rtems: Add e6500 multilibs.
25033 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25035         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
25036         MPC8540.
25038 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25040         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
25041         MULTILIB_EXCEPTIONS.
25043 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25045         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
25046         MULTILIB_EXCEPTIONS.
25048 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25050         * config/arm/t-rtems-eabi: Rename to...
25051         * config/arm/t-rtems: ...this.
25052         * config/arm/rtems-eabi.h: Rename to...
25053         * config/arm/rtems.h: ...this.
25054         * config.gcc (arm*-*-rtems*): Reflect changes above.
25056 2015-01-09  Richard Biener  <rguenther@suse.de>
25058         PR tree-optimization/64410
25059         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
25060         on the LHS.
25061         (execute_update_addresses_taken): Deal with that.
25062         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
25063         loads/stores for complex variables.
25065 2015-01-09  Martin Liska  <mliska@suse.cz>
25067         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
25068         name comparison.
25069         (func_checker::compare_memory_operand): New function.
25070         (func_checker::compare_operand): Split case to newly
25071         added functions.
25072         (func_checker::compare_cst_or_decl): New function.
25073         (func_checker::compare_gimple_call): Identify
25074         memory operands.
25075         (func_checker::compare_gimple_assign): Likewise.
25076         * ipa-icf-gimple.h: New function.
25078 2015-01-09  Martin Liska  <mliska@suse.cz>
25080         PR ipa/64503
25081         * sreal.c (sreal::dump): Change unsigned format to signed for
25082         m_exp value.
25083         (sreal::to_double): Replace exp2 with scalbln.
25085 2015-01-09  Martin Liska  <mliska@suse.cz>
25087         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
25088         * ipa-icf.c (sem_function::equals_private): Add support for target and
25089         (sem_item_optimizer::merge_classes): Remove redundant function
25090         optimization flags comparison.
25091         * tree.h (target_opts_for_fn): New function.
25093 2015-01-09  Tom de Vries  <tom@codesourcery.com>
25095         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
25097 2015-01-09  Kito Cheng  <kito@0xlab.org>
25099         PR rtl-optimization/64348
25100         * lra-constraints.c (split_reg): Fix caller-save store/restore
25101         instruction generation.
25103 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
25105         PR gcov-profile/61790
25106         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
25107         long long.  Fallback to int64_t if host doesn't have long long and
25108         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
25110 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
25112         PR tree-optimization/63989
25113         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
25114         from 1000 to 10000.
25115         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
25116         (get_stridx): If we don't have a record for certain SSA_NAME,
25117         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
25118         constant offset, call get_stridx_plus_constant.
25119         (get_stridx_plus_constant): New function.
25120         (zero_length_string): Don't use get_stridx here.
25122         PR target/55023
25123         PR middle-end/64388
25124         * dse.c (struct insn_info): Mention frame_read set also
25125         before reload for tail calls on some targets.
25126         (scan_insn): Revert 2014-12-22 change.  Set frame_read
25127         also before reload for tail calls if
25128         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
25129         instead of add_non_frame_wild_read for non-const/memset
25130         tail calls after reload.
25132 2015-01-08  Jason Merrill  <jason@redhat.com>
25134         * ubsan.c (do_ubsan_in_current_function): New.
25135         (pass_ubsan::gate): Use it.
25136         * ubsan.h: Declare it.
25137         * convert.c (convert_to_integer): Use it.
25139 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
25141         PR target/64338
25142         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
25143         compare_code when it is unconditionally overwritten afterwards.
25144         Use ix86_reverse_condition instead of reverse_condition.  Don't
25145         change code if *reverse_condition* returned UNKNOWN and don't
25146         swap ct/cf and negate diff in that case.
25148 2015-01-08  Mike Stump  <mikestump@comcast.net>
25150         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
25151         (pass_tsan_O0::gate): Likewise.
25152         * extend.texi (Function Attributes): Add no_sanitize_thread
25153         documentation.
25155 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
25157         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
25158         for registering builtins.
25159         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
25160         add -fopenmp to the argv_obstack used when invoking
25161         compile_for_target.
25163         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
25164         add "-m32" or "-m64" to argv_obstack.
25165         (generate_host_descr_file): Likewise, when invoking host_compiler.
25166         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
25167         ld.
25169 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
25171         * config/sh/sh-mem.cc: Use constant as second operand when emitting
25172         tstsi_t insns.
25174 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
25176         PR target/55212
25177         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
25178         constant load if constant operand fits into I08.
25180 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
25182         PR sanitizer/64336
25183         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
25184         and TREE_THIS_VOLATILE for MEM_REFs.
25185         (build5_stat): Fix up initialization of TREE_READONLY and
25186         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
25188 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
25190         PR target/64533
25191         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
25192         of r for the second alternative of the destination operand.
25194 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
25196         PR target/36557
25197         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
25199 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
25201         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
25202         keywords.
25203         ([-fivar-visibility], [-fvisibility]): Likewise.
25205 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
25207         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
25208         the file where @code, @command, etc is more appropriate.
25210 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
25212         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
25213         of -mrecip= documentation.
25215 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25217         PR target/64505
25218         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
25219         correct reload handler if -m32 -mpowerpc64 is used.
25221 2015-01-06  Tom de Vries  <tom@codesourcery.com>
25223         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
25225 2015-01-08  Christian Bruel  <christian.bruel@st.com>
25227         PR target/64507
25228         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
25230 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25232         PR tree-optimization/63259
25233         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
25234         if optab exists for 16bit byteswap.
25236 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
25238         * opts.c (common_handle_option): Add support for
25239         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
25240         * doc/invoke.texi: Document -fno-sanitize=all,
25241         -f{,no-}sanitize-recover=all.  Document that
25242         -fsanitize=float-cast-overflow is not enabled
25243         by -fsanitize=undefined.  Fix up documentation
25244         of -f{,no-}sanitize-recover.
25246 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
25248         * config.gcc: Add Visium support.
25249         * configure.ac: Likewise.
25250         * configure: Regenerate.
25251         * doc/extend.texi (interrupt attribute): Add Visium.
25252         * doc/invoke.texi: Document Visium options.
25253         * doc/install.texi: Document Visium target.
25254         * doc/md.texi: Document Visium constraints.
25255         * common/config/visium: New directory.
25256         * config/visium: Likewise.
25258 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
25260         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
25261         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
25263 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
25265         * combine.c (combine_validate_cost): Do not count the cost of a
25266         split I2 twice.  Do not display it twice in the dump, either.
25268 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25270         Revert parts of r219199.
25271         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
25272         <inttypes.h>.
25273         ([-Wtraditional]): Restore markup on <limits.h>.
25275 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
25277         PR c++/31397
25278         * doc/invoke.texi: Document -Wsuggest-override.
25280 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
25282         PR rtl-optimization/64287
25283         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
25284         (process_options): Disable flag_ipa_ra if profiling.
25286 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
25288         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
25290 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
25292         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
25293         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
25294         put under #if TARGET_LOOPS guard.
25296 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
25298         * config/i386/i386.c (output_387_binary_op): Use std::swap.
25300 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
25302         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
25303         * rtl.h (refers_to_regno_p): Add overload.
25304         * cse.c: Use it.
25305         * bt-load.c: Likewise.
25306         * combine.c: Likewise.
25307         * df-scan.c: Likewise.
25308         * sched-deps.c: Likewise.
25309         * config/s390/s390.c: Likewise.
25310         * config/m32r/m32r.c: Likewise.
25311         * config/rs6000/spe.md: Likewise.
25312         * config/rs6000/rs6000.c: Likewise.
25313         * config/pa/pa.c: Likewise.
25314         * config/stormy16/stormy16.c: Likewise.
25315         * config/cris/cris.c: Likewise.
25316         * config/arc/arc.md: Likewise.
25317         * config/arc/arc.c: Likewise.
25318         * config/sh/sh.md: Likewise.
25319         * config/sh/sh.c: Likewise.
25320         * config/frv/frv.c: Likewise.
25322 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
25324         PR sanitizer/64265
25325         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
25326         call as cleanup of the whole body.
25327         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
25328         * tsan.c (replace_func_exit): New function.
25329         (instrument_func_exit): Moved earlier.
25330         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
25331         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
25332         been found.
25333         (tsan_pass): Don't call instrument_func_exit.
25334         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
25335         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
25336         inlining.
25338         PR sanitizer/64344
25339         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
25340         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
25341         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
25342         if the result is integer_zerop, return NULL_TREE.
25343         * convert.c (convert_to_integer): Pass expr as ARG.
25345         PR tree-optimization/64465
25346         * tree-inline.c (redirect_all_calls): During inlining
25347         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
25348         changed the stmt to a non-throwing call.
25350 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25352         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
25353         etc markup throughout the file.
25355 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25357         Enable experimental TSAN support for Ada.
25358         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
25360 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
25362         PR tree-optimization/64494
25363         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
25364         clear SSA_NAME_ANTI_RANGE_P flag.
25366 2015-01-05  Marek Polacek  <polacek@redhat.com>
25368         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
25370 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
25372         Update copyright years.
25374         * gcc.c (process_command): Update copyright notice dates.
25375         * gcov-dump.c: Ditto.
25376         * gcov.c: Ditto.
25377         * doc/cpp.texi: Bump @copying's copyright year.
25378         * doc/cppinternals.texi: Ditto.
25379         * doc/gcc.texi: Ditto.
25380         * doc/gccint.texi: Ditto.
25381         * doc/gcov.texi: Ditto.
25382         * doc/install.texi: Ditto.
25383         * doc/invoke.texi: Ditto.
25385         * auto-profile.c, auto-profile.h: Fix up Copyright line.
25387 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
25389         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
25390         verb tense, etc.
25391         ([-fvtable-verify], [-fvtv-debug]): Likewise.
25392         ([-Wabi]): Likewise.
25393         ([-fmessage-length]): Likewise.
25394         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
25395         ([-Wno-discarded-qualifiers]): Likewise.
25396         ([-Wnodiscarded-array-qualifiers]): Likewise.
25397         ([-Wno-virtual-move-assign]): Likewise.
25398         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
25399         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
25400         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
25401         ([-fsanitize-undefined-trap-on-error]): Likewise.
25402         ([-floop-interchange]): Likewise.
25403         ([-ftree-coalesce-inlined-vars]): Likewise.
25404         ([-fvect-cost-model]): Likewise.
25405         ([-flto]): Likewise.
25406         ([--param]): Likewise.
25407         (Spec Files): Likewise.
25408         ([-mstrict-align]): Likewise.
25409         ([-mfix-cortex-a53-835769]): Likewise.
25410         ([-march], [-mtune]): Likewise.
25411         ([-mpic-register]): Likewise.
25412         ([-munaligned-access]): Likewise.
25413         ([-msp8]): Likewise.
25414         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
25415         (AVR Built-in Macros): Likewise.
25416         ([-mpreferred-stack-boundary]): Likewise.
25417         ([-mtune-crtl]): Likewise.
25418         ([-mashf]): Likewise.
25419         ([-mmcu=]): Likewise.
25420         ([-minrt]): Likewise.
25421         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
25422         ([-mupper-regs]): Likewise.
25423         ([-matomic-model]): Likewise.
25424         ([-mdiv]): Likewise.
25425         ([-mzdcbranch]): Likewise.
25426         ([-mdisable-callt]): Likewise.
25427         ([-msoft-float]): Likewise.
25428         ([-m8byte-align]): Likewise.
25429         ([-fstack-reuse]): Likewise.
25431 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
25433         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
25434         Fix markup, light copy-editing.
25435         ([-fauto-profile]): Rewrite to fix formatting and content
25436         problems.
25438 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
25440         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
25441         Copy-edit description.
25442         ([-fisolate-erroneous-paths-attribute]): Likewise.
25443         * common.opt (fisolate-erroneous-paths-dereference):
25444         Copy-edit description.
25445         (fisolate-erroneous-paths-attribute): Likewise.
25447 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
25449         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
25450         tidy grammar.
25452 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
25454         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
25455         ([-fvtv-debug]): Likewise.
25456         ([-Wc++-compat]): Likewise.
25457         ([-Wc++11-compat]): Likewise.
25458         ([-Wc++14-compat]): Likewise.
25459         ([-Wno-sized-deallocation]): Likewise.
25460         ([-femit-class-debug-always]): Likewise.
25461         ([-femit-struct-debug-detailed]): Likewise.
25462         ([-fno-keep-inline-dllexport]): Likewise.
25463         ([-fira-algorithm]): Likewise.
25464         ([-fira-region]): Likewise.
25465         ([-flra-remat]): Likewise.
25466         ([-fipa-ra]): Likewise.
25467         ([-fhoist-adjacent-loads]): Likewise.
25468         ([-fisolate-erroneous-paths-dereference]): Likewise.
25469         ([-fisolate-erroneous-paths-attribute]): Likewise.
25470         ([-ftree-switch-conversion]): Likewise.
25471         ([-ftree-tail-merge]): Likewise.
25472         ([-ftree-loop-if-convert]): Likewise.
25473         ([-ftree-loop-if-convert-stores]): Likewise.
25474         ([-ftree-loop-distribution]): Likewise.
25475         ([-ftree-loop-distribute-patterns]): Likewise.
25476         ([-flto-compression-level]): Likewise.
25477         ([-flto-report]): Likewise.
25478         ([-flto-report-wpa]): Likewise.
25479         ([-fuse-linker-plugin]): Likewise.
25480         ([-mfix-cortex-a53-835769]): Likewise.
25481         ([-mno-fix-cortex-a53-835769]): Likewise.
25482         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
25483         explicit listing; add a note to the discussion indicating they
25484         exist.  Reorder table to group similar options.  Add missing
25485         @opindex entries.  Add @need commands throughout the table to
25486         allow it to be split across multiple pages.
25487         ([-m8bit-idiv]): Fix @opindex.
25488         ([-mavx256-split-unaligned-load]): Likewise.
25489         ([-mavx256-split-unaligned-store]): Likewise.
25490         ([-mstack-protector-guard]): Likewise.
25491         ([-mcpu=]): Likewise.
25492         ([-mcpu]): Likewise.
25493         ([-mpointer-size=]): Likewise.
25495 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
25497         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
25498         instead of `m' constraint.  Likewise for unnamed movb comparison
25499         patterns using reg_before_reload_operand predicate.
25500         * config/pa/predicates.md (reg_before_reload_operand): Tighten
25501         predicate to reject register index and LO_SUM DLT memory forms
25502         after reload.
25504 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
25506         * doc/invoke.texi (Option Summary): Fix spelling of
25507         -fdevirtualize-at-ltrans.
25508         ([-fdevirtualize]): Fix markup.
25509         ([-fdevirtualize-speculatively]): Fix typo.
25510         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
25511         implementor-speaky.
25512         * common.opt (fdevirtualize-at-ltrans): Likewise.
25513         * ipa-devirt.c: Fix typos in comments throughout the file.
25514         (ipa_devirt): Fix typos in format strings for dump output.
25516 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
25518         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
25519         discussion of defaults, light copy-editing.
25521 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25523         * tsan.c (instrument_expr): corrected previous checkin.
25525 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25527         Instrument bit field and unaligned accesses for TSAN.
25528         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
25529         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
25530         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
25531         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
25532         unaligned memory regions.
25534 2015-01-01  Anthony Green  <green@moxielogic.com>
25536         * config/moxie/predicates.md (moxie_general_movsrc_operand):
25537         Restrict move source register offsets to 16 bits.
25539 Copyright (C) 2015 Free Software Foundation, Inc.
25541 Copying and distribution of this file, with or without modification,
25542 are permitted in any medium without royalty provided the copyright
25543 notice and this notice are preserved.