[ARM] Replacing variable swaps that use a temporary variable with a call to std:...
[official-gcc.git] / gcc / ChangeLog
blob93df84b82f164eaf89648bab0e37c22ec4d22b08
1 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
3         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4         operands[4] operands[5] swap with std::swap, removed tmp variable.
5         (arm_evpc_neon_vzip): Replaced in0/in1 and
6         out0/out1 swaps with std::swap, removed x variable.
7         (arm_evpc_neon_vtrn): Replaced in0/int1 and
8         out0/out1 swaos with std::swap, removed x variable.
9         (arm_expand_vec_perm_const_1): Replaced
10         d->op0/d->op1 swap with std::swap, removed x variable.
11         (arm_evpc_neon_vuzp): Replaced in0/in1 and
12         out0/out1 swaps with std::swap, removed x variable.
14 2015-09-21  Jonathan Yong  <10walls@gmail.com>
16         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
17         sysroot/usr/lib/32api for additional win32 libraries,
18         fixes failing Cygwin bootstrapping.
20 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
22         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
24 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
26         PR target/67126
27         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
28         (*mov_t_msb_neg): Rewrite negc pattern.
30 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
32         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
33         immediate generation code.
35 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
37         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
38         redundant immediate generation code.
40 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
42         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
43         (AARCH64_NUM_BITMASKS): Remove.
44         (aarch64_bitmasks_cmp): Remove.
45         (aarch64_build_bitmask_table): Remove.
47 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
49         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
50         slow immediate matching loops with a faster algorithm.
52 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
54         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
55         faster algorithm.
57 2015-09-20  Jeff Law  <law@redhat.com>
59         PR tree-optimization/47679
60         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
61         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
62         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
63         (thread_through_normal_block): Use record_temporary_equivalences.
65 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
67         * coretypes.h (gimple): Change typedef to be a forward
68         declaration.
69         * gimple.h (gimple_statement_base): rename to gimple.
70         * (all functions and types using gimple): Adjust.
71         * *.[ch]: Likewise.
73 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
74             David Edelsohn  <dje.gcc@gmail.com>
76         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
77         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
78         (EH_FRAME_THROUGH_COLLECT2): Define.
79         (EH_TABLES_CAN_BE_READ_ONLY): Define.
80         (ASM_OUTPUT_DWARF_PCREL): Define.
81         (ASM_OUTPUT_DWARF_DATAREL): Define.
83 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
85         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
86         of TARGET_ELF32.
88 2015-09-18  Jeff Law  <law@redhat.com>
90         PR tree-optimization/47679
91         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
92         it here ...
93         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
94         object.  Update constructor.
95         (pass_dominator::execute):  Corresponding chagnes to declaration
96         and initialization of avail_exprs_stack.  Update constructor call
97         for dom_opt_dom_walker object.
98         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
99         it down to children as needed.
100         (record_equivalences_from_incoming_edge): Likewise.
101         (eliminate_redundant_computations): Likewise.
102         (record_equivalences_from_stmt): Likewise.
103         (simplify_stmt_for_jump_threading): Likewise.
104         (record_temporary_equivalences): Likewise.
105         (optimize_stmt): Likewise.
106         (dom_opt_dom_walker::thread_across_edge): Update access to
107         avail_exprs_stack object and pass it to children as needed.
108         (dom_opt_dom_walker::before_dom_children): Similarly.
109         (dom_opt_dom_walker::after_dom_children): Similarly.
110         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
111         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
112         Add avail_expr_stack argument.  Pass it to children as needed.
113         (dummy_simplify): Likewise.
114         (simplify_control_stmt_condition): Likewise.
115         (thread_around_empty_blocks): Likewise.
116         (thread_through_normal_block): Likewise.
117         (thread_across_edge): Likewise.
118         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
119         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
121         PR tree-optimization/47679
122         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
123         it here ...
124         (dom_opt_dom_walker): New private member holding the const_and_copies
125         object.  Update constructor.
126         (pass_dominator::execute): Corresponding changes to declaration
127         and initialization of const_and_copies.  Update constructor call
128         for the dom_opt_dom_walker object.
129         (record_temporary_equivalences): Accept const_and_copies argument
130         pass it down to children as needed.
131         (record_equality): Likewise.
132         (record_equivalences_from_incoming_edge): Likewise.
133         (cprop_into_successor_phis, optimize_stmt): Likewise.
134         (eliminate_redundant_computations): Likewise.
135         (dom_opt_dom_walker::thread_across_edge): Update access to
136         const_and_copies object and pass it to children as needed.
137         (dom_opt_dom_walker::before_dom_children): Similarly.
138         (dom_opt_dom_walker::after_dom_children): Similarly.
140         PR tree-optimization/47679
141         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
142         it into the avail_exprs_stack class.
143         (pass_dominator::execute): Corresponding changes to declaration
144         and initialization of avail_exprs.  Pass avail_exprs to
145         dump_dominator_optimization_stats.
146         (record_cond): Extract avail_exprs from avail_exprs_stack.
147         (lookup_avail_expr): Similarly.
148         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
149         position in file.
150         (dump_dominator_optimization_stats): Make static and prototype.
151         Add argument for the hash table to dump.
152         (debug_dominator_optimization_stats): Remove.
153         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
154         prototype.
155         (debug_dominator_optimization_stats): Similarly.
156         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
157         "void" in prototype for pop_to_marker method.  Add accessor method
158         for the underlying avail_exprs table.
159         
160         * tree-ssa-threadedge.c: Remove trailing whitespace.
162 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
164         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
165         unsigned.
166         (pa_ldil_cint_p): Likewise.
167         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
168         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
169         Update callers.
170         * config/pa/pa.md: Likewise.
172 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
174         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
175         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
176         (diagnostic_show_locus): Likewise.
177         (diagnostic_print_caret_line): Likewise.
178         * diagnostic-show-locus.c: New file.
180 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
182         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
183         "back" parameter. Declare label in #if block.
185 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
187         PR middle-end/67619
188         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
189         the address to a register.
191 2015-09-18  Jeff Law  <law@redhat.com>
193         PR tree-optimization/47679
194         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
195         * tree-ssa-dom.c: Remove unnecessary header includes.
196         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
197         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
198         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
199         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
200         (pass_phi_only_cprop::execute): Likewise.
201         (make_pass_phi_only_cprop): Likewise.
202         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
203         uses of file scoped statics by passing the required objects
204         as parameters wherever needed.
206 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
207             David Edelsohn  <dje.gcc@gmail.com>
209         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
210         EH_FRAME_THROUGH_COLLECT2.
211         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
212         DW_EH_PE_datarel.
213         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
214         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
215         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
216         * except.c (switch_to_exception_section): Use a read-only section
217         even if EH_FRAME_SECTION_NAME is undefined.
218         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
219         * collect2.c (write_c_file_stat): Provide dbase on AIX.
220         (scan_prog_file): Don't export __dso_handle nor
221         __gcc_unwind_dbase.
222         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
223         (EH_TABLES_CAN_BE_READ_ONLY): Define.
224         (ASM_OUTPUT_DWARF_PCREL): Define.
225         (ASM_OUTPUT_DWARF_DATAREL): Define.
226         (EH_FRAME_THROUGH_COLLECT2): Define.
227         (EH_FRAME_IN_DATA_SECTION): Delete.
228         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
229         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
230         Declare.
231         (rs6000_asm_output_dwarf_datarel): Declare.
232         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
233         (rs6000_aix_asm_output_dwarf_datarel): New.
234         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
235         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
236         (EH_FRAME_THROUGH_COLLECT2): Define.
237         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
238         (EH_FRAME_THROUGH_COLLECT2): Define.
239         (EH_TABLES_CAN_BE_READ_ONLY): Define.
240         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
241         (EH_FRAME_THROUGH_COLLECT2): New.
242         (ASM_OUTPUT_DWARF_DATAREL): New.
243         * doc/tm.texi: Regenerate.
245 2015-09-18  Richard Biener  <rguenther@suse.de>
247         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
248         we're in early phase.
249         (schedule_generic_params_dies_gen): Likewise.
250         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
251         work as possible, retaining unhandled cases.
252         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
253         clear out generic_type_instances at the end.
254         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
255         (dwarf2out_early_finish): ... here.  Do most of
256         gen_remaining_tmpl_value_param_die_attribute here.
258 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
260         PR tree-optimization/67283
261         * tree-sra.c (type_consists_of_records_p): Rename to...
262         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
263         (completely_scalarize_record): Rename to...
264         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
265         (scalarize_elem): New.
266         (analyze_all_variable_accesses): Follow renamings.
268 2015-09-18  Richard Biener  <rguenther@suse.de>
270         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
271         in early-dwarf.
273 2015-09-18  Richard Biener  <rguenther@suse.de>
275         PR tree-optimization/66142
276         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
277         treat MEM[&x] and x the same.
278         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
279         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
280         when we simplified sth.
281         (vn_reference_maybe_forwprop_address): Likewise.
282         (valueize_refs_1): When we simplified through
283         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
284         set valueized_anything to true.
285         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
286         one ref kills the other instead of just a offset-based test.
287         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
288         for the operand_equal_p test to compare bases and also compare
289         sizes.
291 2015-09-17  Christian Bruel  <christian.bruel@st.com>
293         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
295 2015-09-17  Richard Henderson  <rth@redhat.com>
297         PR libstdc++/65913
298         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
299         pointers that encode the alignment of the object.
301 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
303         PR rtl-optimization/66790
304         * df-problems.c (LIVE): Amend documentation.
306 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
308         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
309         and optabs-tree.o.
310         (GTFILES): Replace optabs.c with optabs-libfunc.c.
311         * genopinit.c (main): Add an include guard to insn-opinit.h.
312         Protect the rtx_code parts with NUM_RTX_CODE.
313         * optabs.h: Split parts out to...
314         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these
315         new files.
316         * optabs.c: Split parts out to...
317         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these
318         new files.
319         * cilk-common.c: Include optabs-query.h rather than optabs.h.
320         * fold-const.c: Likewise.
321         * target-globals.c: Likewise.
322         * tree-if-conv.c: Likewise.
323         * tree-ssa-forwprop.c: Likewise.
324         * tree-ssa-loop-prefetch.c: Likewise.
325         * tree-ssa-math-opts.c: Include optabs-tree.h rather than
326         optabs.h.  Remove unncessary include files.
327         * tree-ssa-phiopt.c: Likewise.
328         * tree-ssa-reassoc.c: Likewise.
329         * tree-switch-conversion.c: Likewise.
330         * tree-vect-data-refs.c: Likewise.
331         * tree-vect-generic.c: Likewise.
332         * tree-vect-loop.c: Likewise.
333         * tree-vect-patterns.c: Likewise.
334         * tree-vect-slp.c: Likewise.
335         * tree-vect-stmts.c: Likewise.
336         * tree-vrp.c: Likewise.
337         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
338         rather than optabs.h.
339         * expr.c: Include optabs-tree.h.
340         * function.c: Likewise.
342 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
344         PR middle-end/65958
345         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
346         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
347         * config/arm/arm.c: Include common/common-target.h.
348         (use_return_insn): Return 0 if the static chain register was saved
349         above a non-APCS frame.
350         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
351         (struct scratch_reg): New.
352         (get_scratch_register_on_entry): New function.
353         (release_scratch_register_on_entry): Likewise.
354         (arm_emit_probe_stack_range): Likewise.
355         (output_probe_stack_range): Likewise.
356         (arm_expand_prologue): Factor out code dealing with the IP register
357         for nested function and adjust it for stack checking.
358         Invoke arm_emit_probe_stack_range if static builtin stack checking
359         is enabled.
360         (thumb1_expand_prologue): Sorry out if static builtin stack checking
361         is enabled.
362         (arm_expand_epilogue): Add the saved static chain register, if any, to
363         the amount of pre-pushed registers to pop.
364         (arm_frame_pointer_required): Return true if static stack checking is
365         enabled and we want to catch the exception with the EABI unwinder.
366         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
367         (UNSPEC_PROBE_STACK_RANGE): Likewise.
368         * config/arm/arm.md (probe_stack): New insn.
369         (probe_stack_range): Likewise.
371 2015-09-17  Richard Biener  <rguenther@suse.de>
373         * genmatch.c (parser::parse_expr): Improve error message
374         for mis-placed flags.
376 2015-09-17  Richard Biener  <rguenther@suse.de>
378         * passes.c (rest_of_decl_compilation): Always call early_global_decl
379         debug hook when we created a varpool node.
380         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
381         dwarf2out_early_global_decl, when not just add location or
382         value attributes to existing DIEs.
384 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
386         * config/aarch64/aarch64.md (copysigndf3): New.
387         (copysignsf3): Likewise.
389 2015-09-17  David S. Miller  <davem@davemloft.net>
391         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
392         Declare.
393         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
394         function.
395         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
396         (HARD_REGNO_CALLER_SAVE_MODE): Define.
397         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
398         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
399         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
400         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
401         provide when flag_pic.
403 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
405         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
406         object_allocator change.
408 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
410         PR tree-optimization/66388
411         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New
412         fields.
413         (dump_iv): Dump no_overflow information.
414         (alloc_iv): Initialize new field for struct iv.
415         (mark_bivs): Count number of no_overflow bivs.
416         (find_deriving_biv_for_expr, record_biv_for_address_use): New
417         functions.
418         (idx_find_step): Call new functions above.
419         (add_candidate_1, add_candidate): New paramter.
420         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
421         (get_computation_aff): Simplify convertion of cand for BIV.
422         (get_computation_cost_at): Step cand's base if necessary.
424 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
426         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
427         parameter.
428         (tree_simplify_using_condition): Ditto.
429         (simplify_using_initial_conditions): Ditto.
430         (loop_exits_before_overflow): Pass new argument to function
431         simplify_using_initial_conditions.  Remove case for type conversions
432         simplification.
433         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
434         parameter.
435         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
436         in iv base using loop initial conditions.
438 2015-09-16  Jeff Law  <law@redhat.com>
440         PR tree-optimization/47679
441         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
442         (free_all_edge_infos): Use it.
443         (allocate_edge_info): Free preexisting edge info data.
444         (pass_dominator::execute): Set up initial edge info structures.
445         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
446         thread_across_edge.
447         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.  If
448         non-null, then push/pop markers appropriately.
449         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
450         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
451         thread-across_edge.
453 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
455         * config/ft32/ft32.c Fix the memory address space predicate.
457 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
459         PR target/67573
460         * config/sh/sh.md (call_pcrel): Add early clobber to scratch
461         operand.
462         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
464 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
466         * toplev.h (check_global_declaration): Remove declaration.
467         * toplev.c (check_global_declaration): Move to ...
468         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
469         (analyze_functions): Update call.
471 2015-09-16  David S. Miller  <davem@davemloft.net>
473         * lra-constraints.c (simplify_operand_subreg): Do not assume that
474         lowpart of a SUBREG has offset zero.
476 2015-09-16  Jeff Law  <law@redhat.com>
478         PR tree-optimization/47679
479         * tree-ssa-dom.c (enum expr_kind): Moved from here to
480         tree-ssa-scopedtables.h.
481         (struct hashable_expr, class expr_hash_elt): Likewise.
482         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
483         Move associated methods into tree-ssa-scopedtables.c.
484         (avail_expr_hash, initialize_expr_from_cond): Similarly.
485         (hashable_expr_equal_p, add_expr_commutative): Likewise.
486         (add_hashable_expr): Likewise.
487         (record_cond): Delete element directly.
488         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
489         private copy ctor and assignment operator methods.
490         (expr_elt_hasher): Inline trivial methods.
491         (initialize_expr_from_cond): Prototype.
492         * tree-ssa-scopedtables.c: Add necessary includes, functions and
493         methods that were previously in tree-ssa-dom.c.  Improve various
494         comments.
496 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
498         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
500 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
502         PR bootstrap/67587
503         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
504         fixup_partitions.
506 2015-09-16  Richard Biener  <rguenther@suse.de>
508         PR middle-end/67253
509         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
510         location of possibly shared trees.
512 2015-09-16  Richard Biener  <rguenther@suse.de>
514         PR middle-end/67271
515         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
517 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
519         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
520         offset and size computations instead of HOST_WIDE_INT.
522 2015-09-16  Richard Biener  <rguenther@suse.de>
524         PR middle-end/67442
525         * fold-const.c (extract_muldiv_1): Properly extend multiplication
526         result before builting a tree via wide_int_to_tree.
528 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
530         * Makefile.in: Add memory-block.cc
531         (pool_allocator::initialize): Use fixed block size.
532         (pool_allocator::release): Use memory_block_pool.
533         (pool_allocator::allocate): Likewise.
534         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
535         object pools.
536         * cfg.c (initialize_original_copy_tables): Likewise.
537         * cselib.c (elt_list_pool, elt_loc_list_pool,
538         cselib_val_pool): Likewise.
539         * df-problems.c (df_chain_alloc): Likewise.
540         * df-scan.c (df_scan_alloc): Likewise.
541         * dse.c (cse_store_info_pool, rtx_store_info_pool,
542         read_info_type_pool, insn_info_type_pool, bb_info_pool,
543         group_info_pool, deferred_change_pool): Likewise.
544         * et-forest.c (et_nodes, et_occurrences): Likewise.
545         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
546         ipcp_agg_lattice_pool): Likewise.
547         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
548         * ipa-profile.c (histogram_pool): Likewise.
549         * ipa-prop.c (ipa_refdesc_pool): Likewise.
550         * ira-build.c (live_range_pool, allocno_pool, object_pool,
551         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
552         * ira-color.c (update_cost_record_pool): Likewise.
553         * lra-lives.c (lra_live_range_pool): Likewise.
554         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
555         * memory-block.cc: New file.
556         * memory-block.h: New file.
557         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
558         * sched-deps.c (sched_deps_init): Likewise.
559         * sel-sched-ir.c (sched_lists_pool): Likewise.
560         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
561         * tree-sra.c (access_pool): Likewise.
562         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
563         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
564         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
565         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
566         * tree-ssa-strlen.c (strinfo_pool): Likewise.
567         * tree-ssa-structalias.c (variable_info_pool): Likewise.
568         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
569         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
571 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
573         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
574         definition.
575         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
576         call0 ABI.
578 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
580         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
581         to pass TLS call argument, according to current ABI.
582         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
583         callx0 for TLS call, according to current ABI.
585 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
587         * tree-eh.c (lower_try_finally_dup_block): Clear location information
588         on stack restore statements.
589         (decide_copy_try_finally): Do not consider a stack restore statement as
590         coming from sources.
592 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
594         * config/alpha/alpha.c (alpha_expand_block_clear): Use
595         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
597 2015-09-15  Jeff Law  <law@redhat.com>
599         PR tree-optimization/47679
600         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
601         methods and private members.
602         (avail_exprs_stack): Similarly.  Change type of global
603         from a pair of expr_hash_elt_t to the new class.
604         (expr_elt_hasher::hash): Corresponding changes.
605         (expr_elt_hasher::equal): Similarly.
606         (avail_expr_hash): Similarly.
607         (pass_dominator::execute): Similarly.
608         (dom_opt_dom_walker::thread_across_edge): Similarly.
609         (record_cond): Similarly.
610         (dom_opt_dom_walker::before_dom_children): Similarly.
611         (dom_opt_dom_walker::after_dom_children): Similarly.
612         (lookup_avail_expr): Likewise.
613         (initialize_hash_element): Now a expr_hash_elt constructor.
614         (initialize_hash_element_from_expr): Similarly.
615         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
616         (free_expr_hash_elt): Call dtor for the element.
617         (remove_local_expressions_from_table): Now the "pop_to_marker"
618         method in the available_exprs_stack class.
619         (avail_expr_stack::record_expr): Method factored out.
620         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
621         Fix formatting.
622         (hashable_expr_equal_p): Fix formatting.
624 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
626         * input.h (location_get_source_line): Drop "expanded_location"
627         param in favor of a file and line number.
628         * input.c (location_get_source_line): Likewise.
629         (dump_location_info): Update for change in signature of
630         location_get_source_line.
631         * diagnostic.c (diagnostic_print_caret_line): Likewise.
633 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
635         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
636         Bump to 4KB for SJLJ exceptions.
637         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
638         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
639         * doc/tm.texi: Regenerate.
641 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
643         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
644         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
645         Update prototype.
647 2015-09-15  Richard Biener  <rguenther@suse.de>
649         PR tree-optimization/67470
650         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
651         structure for PHI hoisting by inserting a forwarder block
652         if appropriate.
654 2015-09-15  Christian Bruel  <christian.bruel@st.com>
656         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
657         (arm_option_print): New function.
659 2015-09-15  Christian Bruel  <christian.bruel@st.com>
661         PR target/52144
662         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
663         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
664         Remove flags parameter.
665         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
666         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
667         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
668         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
669         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
670         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
671         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
672         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
674 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
676         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
678         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
679         AARCH64_VALID_SIMD_DREG_MODE.
681 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
683         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
684         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
685         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
686         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
687         aarch64_ld4_lane<mode>): Combine together, making...
688         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
689         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
690         aarch64_st4_lane<mode>): Combine together, making...
691         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
692         * config/aarch64/iterators.md (nregs): Add comment.
694 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
696         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
697         Change operand mode from <V_TWO_ELEM> to BLK.
698         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
699         (aarch64_vec_store_lanesoi_lane<mode): Likewise
700         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
701         (aarch64_ld2_lane<mode>): Likewise.
702         (aarch64_st2_lane<VQ:mode>): Likewise.
703         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
705 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
707         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
708         Change operand mode from <V_FOUR_ELEM> to BLK.
709         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
710         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
711         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
712         (aarch64_ld4_lane<mode>): Likewise.
713         (aarch64_st4_lane<mode>): Likewise.
714         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
716 2015-09-15  Richard Biener  <rguenther@suse.de>
718         PR middle-end/67563
719         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
720         transfer EH info from old to new stmt.
721         (replace_call_with_value): Likewise.
722         (replace_call_with_call_and_fold): Likewise.
723         (gimple_fold_builtin_memory_op): Likewise.
724         (gimple_fold_builtin_memset): Likewise.
725         (gimple_fold_builtin_stpcpy): Likewise.
726         (gimple_fold_call): Likewise.
728 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
730         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
731         comment.
732         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
733         (aarch64_simd_intEI_type_node): Likewise.
734         (aarch64_simd_builtin_std_type): Remove EImode case.
735         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
736         * config/aarch64/aarch64-modes.def: Remove EImode.
738 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
740         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
741         Change operand mode from <V_THREE_ELEM> to BLK.
742         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
743         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
744         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
745         (aarch64_ld3_lane<mode>): Likewise.
746         (aarch64_st3_lane<mode>): Likewise.
747         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
749 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
751         * config/aarch64/aarch64-simd.md
752         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
753         Change all TImode operands to BLKmode.
754         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
755         Change all EImode operands to BLKmode.
756         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
757         Change all OImode operands to BLKmode.
759         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
760         and call set_mem_size.
761         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
763         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
765 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
767         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
768         to...
769         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
771         (vec_store_lanesci_lane<mode>): Rename to...
772         (aarch64_vec_store_lanesci_lane<mode>): ...this.
774         (vec_store_lanesxi_lane<mode>): Rename to...
775         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
777         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
778         aarch64_st4_lane<mode>): Follow renaming.
780 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
782         * config/s390/s390.c (s390_const_operand_ok): Add missing
783         brackets.
785 2015-09-15  Richard Biener  <rguenther@suse.de>
787         PR lto/67568
788         * lto-streamer.h (lto_location_cache::current_sysp): Properly
789         initialize.
790         * lto-streamer-out.c (clear_line_info): Likewise.
792 2015-09-15  Richard Biener  <rguenther@suse.de>
794         * doc/match-and-simplify.texi: Fix wording.
796 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
798         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
799         unnecessary type conversion in op1.
801 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
803         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
804         (dup_block_and_redirect): Delete function.
805         (can_dup_for_shrink_wrapping): New function.
806         (fix_fake_fallthrough_edge): New function.
807         (try_shrink_wrapping): Rewrite function.
808         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
810 2015-09-14  Rich Felker  <dalias@libc.org>
812         * configure.ac: Change target pattern for sh TLS support
813         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
814         * configure: Regenerate.
816 2015-09-14  Jeff Law  <law@redhat.com>
818         PR tree-optimization/47679
819         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
820         type rather than void *.
822 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
824         PR fortran/67460
825         * diagnostic.c (diagnostic_initialize): Do not set
826         some_warnings_are_errors.
827         (diagnostic_finish): Use DK_WERROR count instead.
828         (diagnostic_report_diagnostic): Do not set
829         some_warnings_are_errors.
830         * diagnostic.h (struct diagnostic_context): Remove
831         some_warnings_are_errors.
833 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
835         * config/sparc/predicates.md (const_all_ones_operand): Use
836         CONSTM1_RTX to simplify definition.
838 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
840         PR target/67061
841         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
842         Handle call insns.
844 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
846         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
847         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
848         OPT_fshow_column to handled saved option cases.
849         (append_compiler_options): Do not skip the above added options.
851 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
853         PR target/63304
854         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
855         nopcrelative_literal_loads.
856         (aarch64_classify_address): Likewise.
857         (aarch64_constant_pool_reload_icode): Define.
858         (aarch64_secondary_reload): Handle secondary reloads for
859         literal pools.
860         (aarch64_override_options): Handle nopcrelative_literal_loads.
861         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
862         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
863         Define.
864         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
865         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
866         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
867         predicate.
868         * doc/invoke.texi (mpc-relative-literal-loads): Document.
870 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
872         PR middle-end/67401
873         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
874         sync_compare_and_swap_optab libcall to target_oval.
876 2015-09-14  Marek Polacek  <polacek@redhat.com>
878         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
879         value.
880         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
882 2015-09-11  Mark Wielaard  <mjw@redhat.com>
884         PR c/28901
885         * toplev.c (check_global_declaration): Check and use
886         warn_unused_const_variable.
887         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
888         (-Wunused-variable): Remove non-constant. For C implies
889         -Wunused-const-variable.
890         (-Wunused-const-variable): New.
892 2015-09-14  Richard Biener  <rguenther@suse.de>
894         * doc/match-and-simplify.texi: Update for changed syntax
895         of inner ifs and the new switch expression.
897 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
899         * config/i386/haswell.md: New file describing Haswell pipeline.
900         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
901         haswell-like processors.
902         (ix86_reassociation_width): Increase reassociation width for 64-bit
903         Haswell processor family.
904         * config/i386/i386.md: Introduce haswell cpu and include new md file.
906 2015-09-14  Richard Biener  <rguenther@suse.de>
908         * doc/match-and-simplify.texi: Fixup some formatting issues
909         and document the 's' flag.
911 2015-09-13  Olivier Hainque  <hainque@adacore.com>
912             Eric Botcazou  <ebotcazou@adacore.com>
914         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
915         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
916         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
917         (TARGET_CPU_gr5): Likewise.
918         (TARGET_CPU_gr6): Likewise.
919         (MULTILIB_DEFAULTS): Likewise.
920         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
921         for mcpu=gr5 and mcpu=gr6.
922         (MULTILIB_DIRNAMES): Adjust accordingly.
924 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
926         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
927         (mem_ref_p): Likewise.
928         (outermost_indep_loop): Adjust.
929         (mem_ref_in_stmt): Likewise.
930         (determine_max_movement): Likewise.
931         (mem_ref_alloc): Likewise.
932         (record_mem_ref_loc): Likewise.
933         (set_ref_stored_in_loop): Likewise.
934         (mark_ref_stored): Likewise.
935         (gather_mem_refs_stmt): Likewise.
936         (mem_refs_may_alias_p): Likewise.
937         (for_all_locs_in_loop): Likewise.
938         (struct rewrite_mem_ref_loc): Likewise.
939         (rewrite_mem_refs): Likewise.
940         (struct first_mem_ref_loc_1): Likewise.
941         (first_mem_ref_loc): Likewise.
942         (struct sm_set_flag_if_changed): Likewise.
943         (execute_sm_if_changed_flag_set): Likewise.
944         (execute_sm): Likewise.
945         (hoist_memory_references):
946         (struct ref_always_accessed): Likewise.
947         (ref_always_accessed_p): Likewise.
948         (refs_independent_p): Likewise.
949         (record_dep_loop): Likewise.
950         (ref_indep_loop_p_1): Likewise.
951         (ref_indep_loop_p_2): Likewise.
952         (ref_indep_loop_p): Likewise.
953         (can_sm_ref_p): Likewise.
954         (find_refs_for_sm): Likewise.
955         (tree_ssa_lim_finalize): Likewise.
957 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
959         * dwarf2out.c (dw_attr_ref): Remove typedef.
960         (dw_line_info_ref): Likewise.
961         (pubname_ref): Likewise.
962         (dw_ranges_ref): Likewise.
963         (dw_ranges_by_label_ref): Likewise.
964         (comdat_type_node_ref): Likewise.
965         (get_AT): Adjust.
966         (get_AT_low_pc): Likewise.
967         (get_AT_hi_pc): Likewise.
968         (get_AT_string): Likewise.
969         (get_AT_flag): Likewise.
970         (get_AT_unsigned): Likewise.
971         (get_AT_ref): Likewise.
972         (get_AT_file): Likewise.
973         (remove_AT): Likewise.
974         (print_die): Likewise.
975         (check_die): Likewise.
976         (die_checksum): Likewise.
977         (attr_checksum_ordered): Likewise.
978         (struct checksum_attributes): Likewise.
979         (collect_checksum_attributes): Likewise.
980         (die_checksum_ordered): Likewise.
981         (same_die_p): Likewise.
982         (is_declaration_die): Likewise.
983         (clone_die): Likewise.
984         (clone_as_declaration): Likewise.
985         (copy_declaration_context): Likewise.
986         (break_out_comdat_types): Likewise.
987         (copy_decls_walk): Likewise.
988         (output_location_lists): Likewise.
989         (external_ref_hasher::hash): Likewise.
990         (optimize_external_refs_1): Likewise.
991         (build_abbrev_table): Likewise.
992         (size_of_die): Likewise.
993         (unmark_all_dies): Likewise.
994         (size_of_pubnames): Likewise.
995         (output_die_abbrevs): Likewise.
996         (output_die): Likewise.
997         (output_pubnames): Likewise.
998         (add_ranges_num): Likewise.
999         (add_ranges_by_labels): Likewise.
1000         (add_high_low_attributes): Likewise.
1001         (gen_producer_string): Likewise.
1002         (dwarf2out_set_name): Likewise.
1003         (new_line_info_table): Likewise.
1004         (prune_unused_types_walk_attribs): Likewise.
1005         (prune_unused_types_update_strings): Likewise.
1006         (prune_unused_types): Likewise.
1007         (resolve_addr): Likewise.
1008         (optimize_location_lists_1): Likewise.
1009         (index_location_lists): Likewise.
1010         (dwarf2out_finish): Likewise.
1012 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1014         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
1016 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1018         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
1019         (dump_asserts_for): Adjust.
1020         (register_new_assert_for): Likewise.
1021         (process_assert_insertions): Likewise.
1022         (insert_range_assertions): Likewise.
1024 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1026         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
1027         and remove typedef.
1028         (new_temp_expr_table): Adjust.
1029         (free_temp_expr_table): Likewise.
1030         (version_to_be_replaced_p): Likewise.
1031         (make_dependent_on_partition): Likewise.
1032         (add_to_partition_kill_list): Likewise.
1033         (remove_from_partition_kill_list): Likewise.
1034         (add_dependence): Likewise.
1035         (finished_with_expr): Likewise.
1036         (process_replaceable): Likewise.
1037         (kill_expr): Likewise.
1038         (kill_virtual_exprs): Likewise.
1039         (mark_replaceable): Likewise.
1040         (find_replaceable_in_bb): Likewise.
1041         (find_replaceable_exprs): Likewise.
1042         (debug_ter): Likewise.
1044 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1046         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
1047         (struct btr_user): Rename from btr_user_s.
1048         (struct btr_def): Rename from btr_def_s.
1049         (find_btr_def_group): Adjust.
1050         (add_btr_def): Likewise.
1051         (new_btr_user): Likewise.
1052         (note_other_use_this_block): Likewise.
1053         (compute_defs_uses_and_gen): Likewise.
1054         (link_btr_uses): Likewise.
1055         (build_btr_def_use_webs): Likewise.
1056         (block_at_edge_of_live_range_p): Likewise.
1057         (btr_def_live_range): Likewise.
1058         (combine_btr_defs): Likewise.
1059         (move_btr_def): Likewise.
1060         (migrate_btr_def): Likewise.
1061         (migrate_btr_defs): Likewise.
1063 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1065         * var-tracking.c (shared_hash_def): Rename to shared_hash.
1066         (shared_hash): Remove typedef.
1067         (struct dataflow_set): Adjust.
1068         (shared_hash_unshare): Likewise.
1069         (dataflow_set_merge): Likewise.
1070         (vt_initialize): Likewise.
1071         (vt_finalize): Likewise.
1073 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1075         * var-tracking.c (struct location_chain): Rename from
1076         location_chain_def.
1077         (struct variable_part): Adjust.
1078         (variable_htab_free): Likewise.
1079         (unshare_variable): Likewise.
1080         (get_init_value): Likewise.
1081         (get_addr_from_local_cache): Likewise.
1082         (drop_overlapping_mem_locs): Likewise.
1083         (val_reset): Likewise.
1084         (struct variable_union_info): Likewise.
1085         (variable_union): Likewise.
1086         (find_loc_in_1pdv): Likewise.
1087         (insert_into_intersection): Likewise.
1088         (intersect_loc_chains): Likewise.
1089         (canonicalize_loc_order_check): Likewise.
1090         (canonicalize_values_mark): Likewise.
1091         (canonicalize_values_star): Likewise.
1092         (canonicalize_vars_star): Likewise.
1093         (variable_merge_over_cur): Likewise.
1094         (remove_duplicate_values): Likewise.
1095         (variable_post_merge_new_vals): Likewise.
1096         (variable_post_merge_perm_vals): Likewise.
1097         (find_mem_expr_in_1pdv): Likewise.
1098         (dataflow_set_preserve_mem_locs): Likewise.
1099         (dataflow_set_remove_mem_locs): Likewise.
1100         (variable_part_different_p): Likewise.
1101         (onepart_variable_different_p): Likewise.
1102         (find_src_set_src): Likewise.
1103         (dump_var): Likewise.
1104         (set_slot_part): Likewise.
1105         (clobber_slot_part): Likewise.
1106         (delete_slot_part): Likewise.
1107         (vt_expand_var_loc_chain): Likewise.
1108         (emit_note_insn_var_location): Likewise.
1109         (vt_finalize): Likewise.
1111 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1113         * dse.c (store_info_t): Remove typedef.
1114         (group_info_t): Likewise.
1115         (const_group_info_t): Likewise.
1116         (deferred_change_t): Likewise.
1117         (get_group_info): Adjust.
1118         (free_store_info): Likewise.
1119         (canon_address): Likewise.
1120         (clear_rhs_from_active_local_stores): Likewise.
1121         (record_store): Likewise.
1122         (replace_read): Likewise.
1123         (check_mem_read_rtx): Likewise.
1124         (scan_insn): Likewise.
1125         (remove_useless_values): Likewise.
1126         (dse_step1): Likewise.
1127         (dse_step2_init): Likewise.
1128         (dse_step2_nospill): Likewise.
1129         (scan_stores_nospill): Likewise.
1130         (scan_reads_nospill): Likewise.
1131         (dse_step3_exit_block_scan): Likewise.
1132         (dse_step3): Likewise.
1133         (dse_step5_nospill): Likewise.
1134         (dse_step6): Likewise.
1136 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1138         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
1139         (alias_set_entry): Remove typedef.
1140         (alias_set_subset_of): Adjust.
1141         (alias_sets_conflict_p): Likewise.
1142         (init_alias_set_entry): Likewise.
1143         (get_alias_set): Likewise.
1144         (new_alias_set): Likewise.
1145         (record_alias_subset): Likewise.
1147 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
1149         * doc/install.texi (Downloading the source): Mark up
1150         contrib/download_prerequisites properly and drop leading "./".
1152 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1154         * config/arc/arc.h: Remove define of STRUCT_VALUE.
1155         * config/lm32/lm32.h: Likewise.
1156         * config/mep/mep.h: Likewise.
1157         * config/visium/visium.h: Likewise.
1158         * system.h: Poison STRUCT_VALUE macro.
1160 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
1162         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1163         CONSTANT_P operands.
1165 2015-09-11  David S. Miller  <davem@davemloft.net>
1167         * config/sparc/constraints.md: Make "U" constraint a real register
1168         constraint.
1169         * config/sparc/sparc.c (TARGET_LRA_P): Define.
1170         (D_MODES, DF_MODES): Add missing cast.
1171         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
1172         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
1173         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
1174         cost to 8.
1175         * config/sparc/sparc.h (PROMOTE_MODE): Define.
1176         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1177         provide these insn when flag_pic.
1179 2015-09-11  Jeff Law  <law@redhat.com>
1181         PR tree-optimization/47679
1182         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
1183         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
1184         member with m_.  Update inline member functions as necessary.  Add
1185         toplevel comment.
1186         * tree-ssa-scopedtables.c: Update const_and_copies's member
1187         functions to use m_ prefix to access the stack.
1189 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
1191         * graphite-optimize-isl.c (disable_tiling): Remove.
1192         (get_schedule_for_band): Do not use disable_tiling.
1193         (get_prevector_map): Delete function.
1194         (enable_polly_vector): Remove.
1195         (get_schedule_for_band_list): Remove dead code.
1197 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
1199         * graphite-optimize-isl.c (get_tile_map): Refactor.
1200         (get_schedule_for_band): Same.
1201         (getScheduleForBand): Same.
1202         (get_prevector_map): Same.
1203         (get_schedule_for_band_list): Same.
1204         (get_schedule_map): Same.
1205         (get_single_map): Same.
1206         (apply_schedule_map_to_scop): Same.
1207         (optimize_isl): Same.
1209 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1211         PR target/63304
1212         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
1213         (movtf): Delete.
1214         * config/aarch64/iterators.md (GPF_TF_F16): New.
1215         (GPF_F16): Delete.
1217 2015-09-10  Nathan Sidwell  <nathan@acm.org>
1219         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
1220         (nvptx_reorg): Adjust comments.
1222 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
1224         PR bootstrap/67363
1225         * configure.ac: Check if setenv and unsetenv are declared.
1226         * configure: Rebuild.
1227         * config.in: Rebuild.
1228         * system.h: Declare setenv and unsetenv if not declared.
1230 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1232         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
1233         commentary to simplify permute mask adjustment equation.
1234         (special_handling_values): Add SH_VPERM.
1235         (const_load_sequence_p): New function.
1236         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
1237         the mask loaded from the constant pool.
1238         (adjust_vperm): New function.
1239         (handle_special_swappables): Call adjust_vperm.
1240         (dump_swap_insn_table): Handle SH_VPERM.
1242 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1244         * shrink-wrap.c (requires_stack_frame_p): Remove static.
1245         * shrink-wrap.h (requires_stack_frame_p): Put back.
1247 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
1249         * reload1.c (elimination_costs_in_insn): Locally turn
1250         -Wmaybe-uninitialized into a warning.
1252 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
1254         * shrink-wrap.c (requires_stack_frame_p): Make static.
1255         (prepare_shrink_wrap): Likewise.
1256         (dup_block_and_redirect): Likewise.
1257         * shrink-wrap.h: Remove declarations of those functions.
1259 2015-09-10  Mark Wielaard  <mjw@redhat.com>
1261         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
1263 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
1265         PR target/67506
1266         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
1267         missing simplify_gen_subreg.
1269 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1271         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
1272         the vector element is bigger than 64 bit.
1274 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1276         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
1277         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
1279 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1281         * config/s390/s390.c: Add V1TImode to constant pool modes.
1283 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1285         PR target/67439
1286         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
1287         predicate.  Set predicable_short_it attr to "no".
1289 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
1291         PR rtl-optimization/67421
1292         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
1293         left wide shift tranformation.
1295 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
1297         * common/config/arc/arc-common.c: Remove references to A5.
1298         * config/arc/arc-opts.h: Likewise.
1299         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
1300         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
1301         * config/arc/t-arc-newlib: Likewise.
1303 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
1305         * config/arc/arc.md (length): Fix attribute length for conditional
1306         executed instructions with long immediate.
1308 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1310         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
1311         type for second alternative.
1313 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
1315         * doc/invoke.texi (Downloading GCC): Mention
1316         contrib/download_prerequisites script.
1318 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
1320         PR c++/67523
1321         * gimplify.c (gimplify_omp_for): If inner stmt is not found
1322         for combined loop, assert seen_error () and return GS_ERROR.
1324         PR middle-end/67521
1325         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
1326         if decl is already in outer->variables.
1328         PR middle-end/67517
1329         * gimplify.c (gimplify_scan_omp_clauses): Instead of
1330         asserting that decl is not specified in octx->variables,
1331         break out of the loop if it is.
1333         PR c++/67514
1334         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
1335         iterator is not explicitly determined, but is defined inside
1336         of the combined workshare region, handle it like if it has
1337         DECL_EXPR in OMP_FOR_PRE_BODY.
1339 2015-09-09  Nathan Sidwell  <nathan@acm.org>
1341         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
1342         (*cmp<mode>): Add assembler spacing.
1343         (setcc_int<mode>, set_cc_float<mode>): Likewise.
1344         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
1345         level.
1346         (write_func_decl_from_insn): Refactor argument loops & comma emission.
1347         (nvptx_expand_call): Likewise.
1348         (nvptx_output_call_insn): Likewise.
1349         (nvptx_reorg_subreg): Add spacing.
1351 2015-09-09  Marek Polacek  <polacek@redhat.com>
1353         PR middle-end/67512
1354         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
1355         for comparisons.
1357 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1359         PR c++/53184
1360         * doc/invoke.texi ([Wsubobject-linkage]): Document.
1362 2015-09-09  Tom de Vries  <tom@codesourcery.com>
1364         * params-list.h: Add missing copyright notice.
1366 2015-09-09  Nathan Sidwell  <nathan@acm.org>
1368         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
1369         sel_truesi, not andsi.
1371 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1373         * config/arm/arm.md (*subsi3_compare0): Rename to...
1374         (subsi3_compare0): ... This.
1375         (modsi3): New define_expand.
1376         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
1377         when operand is power of 2.
1379 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1381         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
1382         (*neg<mode>2_compare0): Rename to...
1383         (neg<mode>2_compare0): ... This.
1384         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
1385         Move check for speed inside the if-then-elses.  Reflect
1386         CSNEG sequence in MOD by power of 2 case.
1388 2015-09-09  Alan Modra  <amodra@gmail.com>
1390         PR target/67378
1391         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1392         reload replacement for PRE_MODIFY address reg.
1394 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
1396         PR tree-optimization/53852
1397         * config.in: Regenerate.
1398         * configure: Regenerate.
1399         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
1400         * graphite-optimize-isl.c (optimize_isl): Stop computation when
1401         PARAM_MAX_ISL_OPERATIONS is reached.
1402         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
1403         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
1404         result equal to isl_stat_ok as the status now can be isl_error_quota.
1405         (subtract_commutative_associative_deps): Same.
1406         (compute_deps): Same.
1408 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
1409             Sebastian Pop  <s.pop@samsung.com>
1411         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1412         Return the parameter if it was saved in corresponding
1413         parameter_rename_map of the region.
1414         (copy_def): Copy def from sese region to the newly created region.
1415         (copy_internal_parameters): Copy all the internal parameters defined
1416         within a region to the newly created region.
1417         (graphite_regenerate_ast_isl): Copy parameters to the new region before
1418         translating isl to gimple.
1419         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
1420         the loop-nest does not have any data-references.
1421         (build_graphite_scops): Create a scop only when there is at least one
1422         loop inside it.
1423         (contains_only_close_phi_nodes): Deleted.
1424         (print_graphite_scop_statistics): Deleted
1425         (print_graphite_statistics): Deleted
1426         (limit_scops): Deleted.
1427         (build_scops): Removed call to limit_scops.
1428         * sese.c (new_sese): Construct.
1429         (free_sese): Destruct.
1430         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
1431         added.
1432         (set_rename): Pass sese region so that parameters inside the region can
1433         be added to its parameter_rename_map.
1434         (rename_uses): Pass sese region.
1435         (graphite_copy_stmts_from_block): Do not copy parameters that have been
1436         generated in the header of the scop. For each SSA_NAME in the
1437         parameter_rename_map rename its usage.
1438         (invariant_in_sese_p_rec): Return false if tree t is defined outside
1439         sese region.
1440         (scalar_evolution_in_region): If the tree t is invariant just return t.
1441         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
1442         struct sese to keep track of all the parameters which need renaming.
1443         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
1444         any data-refs.
1445         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
1447 2015-09-08  Tom de Vries  <tom@codesourcery.com>
1449         * Makefile.in (generated_files): Add params.list.
1450         (params.list, s-params.list): Add rule.
1451         * params.h (enum compiler_param): Include params-list.h.  Move define
1452         DEFPARAM, include params.def and undef DEFPARAM ...
1453         * params-list.h: ... here.  New file.
1455 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
1457         * pretty-print.h (printer_fn): Fix typo in comment.
1459 2015-09-07  Jeff Law  <law@redhat.com>
1461         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
1463 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1465         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
1466         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
1467         (arm_neon_fp16_hw): New.
1469 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1471         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
1472         UNITS_PER_WORD >= 4.
1474 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1476         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
1477         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
1478         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
1479         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
1480         (aarch64_float_extend_lo_v2df): Rename to...
1481         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
1483         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
1484         (float_extend_lo): Add v4sf.
1486         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
1487         * config/aarch64/iterators.md (VQ_HSF): New iterator.
1488         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
1489         (Vwide): New mode_attr.
1491 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1493         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
1494         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
1495         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
1496         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
1497         V4HF and V8HF variants to iterator.
1499         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
1501         * config/aarch64/iterators.md (VDQF_F16): New.
1502         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
1504 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1506         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
1507         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1508         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
1509         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
1510         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
1511         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1512         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
1513         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
1514         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
1515         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
1516         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
1517         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1518         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
1519         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
1520         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
1521         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
1522         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
1523         vld1q_dup_f16): New.
1525 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1527         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
1528         Reparameterize to...
1529         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
1530         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
1531         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
1533         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
1534         v8hf variant.
1535         (float_truncate_lo_): Use BUILTIN_VDF iterator.
1537         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
1539         * config/aarch64/iterators.md (VDF, Vdtype): New.
1540         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
1542 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1544         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
1545         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
1546         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
1547         Add __builtin_aarch64_simd_hf.
1548         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
1549         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
1550         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
1551         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
1552         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
1553         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
1554         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
1555         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
1556         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
1558         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
1559         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
1560         (VDC, Vdbl): Add V4HF.
1562 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1564         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
1565         V4HFmode and V8HFmode.
1566         (aarch64_split_simd_move): Add case for V8HFmode.
1567         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
1568         (aarch64_simd_builtin_std_type): Handle HFmode.
1569         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
1571         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
1572         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
1573         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
1575         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
1576         Float16x8_t.
1578         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
1579         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
1580         New typedefs.
1581         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
1582         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
1583         vst1q_lane_f16): New.
1584         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
1585         (VALLDI_F16, VALL_F16): New.
1586         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
1587         Add cases for V4HF and V8HF.
1588         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
1590 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1592         * config/arm/arm-builtins.c (VAR11, VAR12): New.
1593         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
1594         vld4_dup): Add v4hf variant.
1595         (vget_high, vget_low): Add v8hf variant.
1596         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
1597         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
1598         v4hf and v8hf variants.
1600         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
1601         (VDX): Add V4HF.
1602         (V_DOUBLE): Add case for V4HF.
1603         (VQX): Add V8HF.
1604         (V_HALF): Add case for V8HF.
1605         (VDQX): Add V4HF, V8HF.
1606         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
1607         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
1609         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
1610         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
1611         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
1612         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
1613         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
1614         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
1615         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
1616         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
1617         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
1619         (neon_vcreate, neon_vreinterpretv8qi<mode>,
1620         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1621         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
1622         Change VDX to VD_RE.
1624         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
1625         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
1626         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
1628         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
1629         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
1630         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
1631         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
1632         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
1633         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
1634         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
1635         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
1636         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
1638 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1640         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
1641         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
1642         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
1643         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
1644         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
1645         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
1646         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
1647         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
1648         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
1649         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
1650         New.
1652 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1654         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
1656         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
1658         * config/arm/arm-builtins.c (v8hf_UP): New.
1659         (arm_init_simd_builtin_types): Initialise Float16x8_t.
1661         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
1663         * config/arm/arm_neon.h (float16x8_t): New typedef.
1665 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
1667         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
1668         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
1669         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
1670         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
1671         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
1672         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
1673         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
1674         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
1675         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
1676         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
1678 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
1680         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
1681         non-alphanumeric characters in the symbol name.
1683 2015-09-07  Marek Polacek  <polacek@redhat.com>
1685         PR inline-asm/67448
1686         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
1687         a memory input.
1689 2015-09-07  Marek Polacek  <polacek@redhat.com>
1691         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
1693 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
1695         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
1696         not warn.
1698 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
1700         PR middle-end/67452
1701         * tree-ssa-live.c: Include cfgloop.h.
1702         (remove_unused_locals): Clear loop->simduid if simduid is about
1703         to be removed from cfun->local_decls.
1705 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1707         PR target/65210
1708         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
1709         attribute as well.
1711 2015-09-04  Tom de Vries  <tom@codesourcery.com>
1713         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
1715 2015-09-04  Jeff Law  <law@redhat.com>
1717         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
1718         unnecessary constructor.  It's now trivial and implemented inside...
1719         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
1720         constructor.  Add comments to various methods.  Remove unused
1721         private fields.
1722         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
1723         * tree-vrp.c (identify_jump_threads): Likewise.
1724         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
1725         indentation issues.
1726         (thread_across_edge): Similarly.
1727         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
1728         arguments in constructor call.
1730 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
1732         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
1733         temp path contains a '-'.
1735 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
1736             Petr Murzin  <petr.murzin@intel.com>
1737             Kirill Yukhin <kirill.yukhin@intel.com>
1739         * config/i386/i386-builtin-types.def
1740         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
1741         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
1742         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
1743         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
1744         * config/i386/i386.c
1745         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
1746         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1747         IX86_BUILTIN_SCATTERALTDIV16SI.
1748         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
1749         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
1750         __builtin_ia32_scatteraltdiv8si.
1751         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
1752         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
1753         IX86_BUILTIN_SCATTERALTDIV16SI.
1754         (ix86_vectorize_builtin_scatter): New.
1755         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
1756         ix86_vectorize_builtin_scatter.
1758 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
1759             Petr Murzin  <petr.murzin@intel.com>
1760             Kirill Yukhin <kirill.yukhin@intel.com>
1762         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
1763         * doc/tm.texi: Regenerate.
1764         * target.def: Add scatter builtin.
1765         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
1766         for loads/stores in case of gather/scatter accordingly.
1767         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1768         (vect_check_gather): Rename to ...
1769         (vect_check_gather_scatter): this.
1770         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
1771         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
1772         (vect_check_gather_scatter): Use it instead of vect_check_gather.
1773         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
1774         and new checkings for it accordingly.
1775         * tree-vect-stmts.c
1776         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
1777         (vect_check_gather_scatter): Use it instead of vect_check_gather.
1778         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
1780 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
1782         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
1783         define_insn.
1784         (mulv16qi3): New define_expand.
1786 2015-09-03  Martin Sebor  <msebor@redhat.com>
1788         PR c/66516
1789         * doc/extend.texi (Other Builtins): Document when the address
1790         of a built-in function can be taken.
1792 2015-09-03  Richard Biener  <rguenther@suse.de>
1794         * dwarf2out.c (flush_limbo_die_list): Split out from ...
1795         (dwarf2out_early_finish): ... here.
1796         (dwarf2out_finish): Do not call dwarf2out_early_finish but
1797         flush_limbo_die_list.  Assert we have no deferred asm names.
1799 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1801         * optabs.c (expand_binop): Don't create a broadcast vector with a
1802         source element wider than the inner mode.
1804 2015-09-03  Richard Biener  <rguenther@suse.de>
1806         * varasm.c (output_constant): Use fold_convert instead of
1807         wide_int_to_tree.
1809 2015-09-03  Tom de Vries  <tom@codesourcery.com>
1811         PR tree-optimization/65637
1812         * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
1813         predecessors.
1815 2015-09-03  Tom de Vries  <tom@codesourcery.com>
1817         PR tree-optimization/65637
1818         * omp-low.c (find_phi_with_arg_on_edge): New function.
1819         (expand_omp_for_static_chunk): Fix inner loop phi.
1821 2015-09-03  Tom de Vries  <tom@codesourcery.com>
1823         PR tree-optimization/65637
1824         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
1825         that head is NULL.
1827 2015-09-03  Tom de Vries  <tom@codesourcery.com>
1829         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
1831 2015-09-03  Tom de Vries  <tom@codesourcery.com>
1833         * doc/invoke.texi (parloops-chunk-size): Add item.
1834         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
1835         * tree-parloops.c: Include params.h.
1836         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
1837         param parloops-chunk-size is used.
1839 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1841         PR middle-end/67351
1842         * fold-const.c (fold_binary_loc) : Move 
1843         Transform (x >> c) << c into x & (-1<<c) or
1844         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
1845         types using simplify and match.
1846         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
1847         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
1849 2015-09-03  Richard Biener  <rguenther@suse.de>
1851         PR ipa/66705
1852         * tree-ssa-structalias.c (ctor_for_analysis): New function.
1853         (create_variable_info_for_1): Use ctor_for_analysis instead
1854         of get_constructor.
1855         (create_variable_info_for): Likewise.
1857 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
1859         PR ipa/67280
1860         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
1861         in new callgraph edge.
1863 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
1865         PR target/59810
1866         PR target/63652
1867         PR target/63653
1868         * config/aarch64/aarch64-simd.md
1869         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
1870         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
1871         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
1872         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
1874 2015-09-02  Alan Modra  <amodra@gmail.com>
1876         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
1877         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
1878         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
1880 2015-09-02  Alan Modra  <amodra@gmail.com>
1882         PR target/67417
1883         * config/rs6000/predicates.md (current_file_function_operand): Don't
1884         return true for weak symbols.
1885         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
1887 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
1888             Andrew Bennett  <andrew.bennett@imgtec.com>
1890         * config/mips/mips-opts.h (mips_cb_setting): New enum.
1891         * config/mips/mips-protos.h: Add definitions for
1892         mips_output_jump and mips_output_equal_conditional_branch
1893         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
1894         JIC instruction.
1895         (mips_emit_compare): Add support for the MIPS R6 conditional
1896         compact branches.
1897         (mips_process_sync_loop): Likewise.
1898         (mips_output_order_conditional_branch): Likewise.
1899         (mips16_build_call_stub): Change MIPS_CALL to
1900         mips_output_jump.
1901         (mips_print_operand_punctuation): Update 's' case to only
1902         apply to micromips r2.
1903         (mips_adjust_insn_length): Add support for forbidden slot
1904         hazards.
1905         (mips_avoid_hazard): Likewise.
1906         (mips_reorg_process_insns): Likewise.
1907         (mips_output_jump): New function.
1908         (mips_output_equal_conditional_branch): Likewise.
1909         (mips_output_conditional_branch): Use jrc/bc if compact
1910         branch support is enabled.  Ensure the forbidden slots
1911         between the two branch instructions is filled with a nop.
1912         (mips_option_override): Add support to process the compact
1913         branch option and set the correct defaults.  Prevent
1914         non-explict relocs being using for MIPS R6.
1915         (mips_trampoline_init): Add compact branch support.
1916         (mips_mult_zero_zero_cost): Allow zero initialisation of
1917         accumulators with TARGET_DSP.
1918         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
1919         (TARGET_CB_MAYBE): New define.
1920         (TARGET_CB_ALWAYS): New define.
1921         (ISA_HAS_DELAY_SLOTS): New define.
1922         (ISA_HAS_COMPACT_BRANCHES): New define.
1923         (ISA_HAS_JRC): New define.
1924         (MIPS_BRANCH_C): New define.
1925         (MIPS_CALL): Removed.
1926         (MICROMIPS_J): Removed.
1927         * config/mips/mips.md (compact_form): New attr.
1928         (hazard): Add support for forbidden slots.
1929         (define_delay): Add support for compact branches.
1930         (*branch_order<mode>): Likewise.
1931         (*branch_order<mode>_inverted): Likewise.
1932         (*branch_equality<mode>): Likewise.
1933         (*branch_equality<mode>_inverted): Likewise.
1934         (*jump_absolute): Likewise.
1935         (*jump_pic): Likewise.
1936         (indirect_jump): Use mips_output_jump to produce assembly output.
1937         (tablejump_<mode>"): Likewise.
1938         (*<optab>"): Likewise.
1939         (<optab>_internal): Likewise.
1940         (sibcall_internal): Likewise.
1941         (sibcall_value_internal): Likewise.
1942         (sibcall_value_multiple_internal): Likewise.
1943         (call_internal): Likewise.
1944         (call_split): Likewise.
1945         (call_internal_direct): Likewise.
1946         (call_direct_split): Likewise.
1947         (call_value_internal): Likewise.
1948         (call_value_split): Likewise.
1949         (call_value_internal_direct): Likewise.
1950         (call_value_direct_split): Likewise.
1951         (call_value_multiple_internal): Likewise.
1952         (call_value_multiple_split): Likewise.
1953         (mips_get_fcsr_mips16_<mode>): Likewise.
1954         (mips_set_fcsr_mips16_<mode>): Likewise.
1955         (tls_get_tp_mips16_<mode>): Likewise.
1956         * config/mips/mips.opt: Add -mcompact-branches option.
1957         * config/mips/predicates.md (order_operator): Ensure the
1958         conditional compact branches are only used if the ISA them.
1959         * doc/invoke.texi: Document -mcompact-branches option.
1961 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
1963         PR target/61578
1964         * lra-lives.c (process_bb_lives): Process move pseudos with the
1965         same value for copies and preferences
1966         * lra-constraints.c (match_reload): Create match reload pseudo
1967         with the same value from single dying input pseudo.
1969 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
1971         PR target/67405
1972         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
1974 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
1976         * trans-mem.c: Add contributed-by.
1977         * trans-mem.h: Same.
1979 2015-09-01  Richard Biener  <rguenther@suse.de>
1981         * expr.c (expand_expr_real_1): For expanding TERed defs
1982         set the current location to that of the def if not UNKNOWN.
1984 2015-09-01  David Sherwood  <david.sherwood@arm.com>
1986         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
1988 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1990         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
1991         then_cost, else_cost fields.  Change branch_cost field to unsigned
1992         int.
1993         (end_ifcvt_sequence): Call set_used_flags on each insn in the
1994         sequence.
1995         Include rtl-iter.h.
1996         (noce_simple_bbs): New function.
1997         (noce_try_move): Bail if basic blocks are not simple.
1998         (noce_try_store_flag): Likewise.
1999         (noce_try_store_flag_constants): Likewise.
2000         (noce_try_addcc): Likewise.
2001         (noce_try_store_flag_mask): Likewise.
2002         (noce_try_cmove): Likewise.
2003         (noce_try_minmax): Likewise.
2004         (noce_try_abs): Likewise.
2005         (noce_try_sign_mask): Likewise.
2006         (noce_try_bitop): Likewise.
2007         (bbs_ok_for_cmove_arith): New function.
2008         (noce_emit_all_but_last): Likewise.
2009         (noce_emit_insn): Likewise.
2010         (noce_emit_bb): Likewise.
2011         (noce_try_cmove_arith): Handle non-simple basic blocks.
2012         (insn_valid_noce_process_p): New function.
2013         (contains_mem_rtx_p): Likewise.
2014         (bb_valid_for_noce_process_p): Likewise.
2015         (noce_process_if_block): Allow non-simple basic blocks
2016         where appropriate.
2018 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
2020         * tree-ssa-dom.c (record_equivalences_from_phis,
2021         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
2022         (lookup_avail_expr): Likewise, and remove comment and unused temp.
2024 2015-09-01  Nick Clifton  <nickc@redhat.com>
2026         * config/msp430/msp430.opt (mcpu): Fix typo.
2028 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2030         * config/aarch64/aarch64.c (aarch64_set_current_function):
2031         Re-layout any vector parameters have non-simd layout.
2032         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
2033         Delete.
2034         (aarch64_simd_expand_args): Delete call to the above.
2036 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
2038         * doc/invoke.texi (asan-stack): Add space before option.
2040 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
2042         * tree.h (zerop): New function.
2043         * tree.c (zerop): Likewise.
2044         (element_precision): Handle expressions.
2045         * match.pd (define_predicates): Add zerop.
2046         (x <= +Inf): Fix comment.
2047         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
2048         * fold-const.c (fold_binary_loc): ... here. Remove.
2050 2015-08-31  Richard Biener  <rguenther@suse.de>
2052         PR middle-end/67381
2053         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
2055 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
2057         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
2058         (CEXPI): New operator list.
2059         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
2060         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
2061         Converted from ...
2062         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
2064 2015-08-31  Tom de Vries  <tom@codesourcery.com>
2066         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
2067         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
2068         parameter.
2069         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
2070         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
2071         (rewrite_into_loop_closed_ssa): ... here.
2072         (replace_uses_in_dominated_bbs): Remove function.
2073         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
2074         rewrite_into_loop_closed_ssa_1.
2076 2015-08-31  Michael Matz  <matz@suse.de>
2078         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
2079         enter entry and exit blocks for reverse post order.
2081 2015-08-31  Richard Biener  <rguenther@suse.de>
2083         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
2084         (lto_location_cache::current_sysp): Likewise.
2085         (output_block::current_sysp): Likewise.
2086         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
2087         (lto_location_cache::apply_location_cache): Properly record
2088         system header locations.
2089         (lto_location_cache::input_location): Input whether a file
2090         is a system header.
2091         * lto-streamer-out.c (lto_output_location): Stream whether a file
2092         is a system header.
2094 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2096         PR bootstrap/67363
2097         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
2099 2015-08-31  Tom de Vries  <tom@codesourcery.com>
2101         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
2102         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
2103         Improve function header comments.
2105 2015-08-30  Michael Collison  <michael.collison@linaro.org>
2107         PR other/67320
2108         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
2109         standard names
2111 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2113         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
2114         special_handling bitfield.
2115         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
2116         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
2117         that represents a general xxpermdi.
2118         (insn_is_swappable_p): Add handling for vec_concat of two
2119         doublewords, which maps to a specific xxpermdi.
2120         (adjust_xxpermdi): New function.
2121         (adjust_concat): Likewise.
2122         (handle_special_swappables): Call adjust_xxpermdi and
2123         adjust_concat.
2124         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
2126 2015-08-30  Rich Felker <dalias@libc.org>
2128         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
2129         case instead of sh[123456ble]-*-*.
2131 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
2133         * ira.c (print_unform_and_important_classes,
2134         print_translated_classes): Remove reg_class_names static array.
2135         (print_unform_and_important_classes): Rename to ...
2136         (print_uniform_and_important_classes): ... this.
2137         (ira_debug_allocno_classes): Update accordingly.
2139 2015-08-29  Tom de Vries  <tom@codesourcery.com>
2141         PR tree-optimization/46193
2142         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
2143         clause.
2145 2015-08-28  Jeff Law  <law@redhat.com>
2147         PR lto/66752
2148         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2149         unable to find X NE 0 in the tables, return X as the simplified
2150         condition.
2151         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2152         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
2153         to VISISTED_BBS.
2154         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2155         after removing the control flow statement and unnecessary edges.
2157 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
2159         Revert:
2160         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
2161                 PR tree-optimization/67283
2162                 * tree-sra.c (type_consists_of_records_p): Rename to...
2163                 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2165                 (completely_scalarize_record): Rename to...
2166                 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
2167                  code to:
2168                 (scalarize_elem): New.
2170 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
2172         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
2173         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
2174         (aarch64_symbol_type): Likewise.
2175         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2176         Likewise.
2177         (aarch64_expand_mov_immediate): Likewise.
2178         (aarch64_print_operand): Likewise.
2179         (aarch64_classify_tls_symbol): Likewise.
2181 2015-08-28  Richard Biener  <rguenther@suse.de>
2183         * cgraphunit.c (symbol_table::compile): Move early debug generation
2184         and finish...
2185         (symbol_table::finalize_compilation_unit): ... back here and
2186         add a !seen_error () guard.
2188 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
2190         * toplev.c (process_options): Do not use flag_loop_block,
2191         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
2192         flag_loop_optimize_isl.
2194 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
2196         * Makefile.in (OBJS): Remove graphite-blocking.o and
2197         graphite-interchange.o.
2198         * common.opt (floop-strip-mine, floop-interchange, floop-block):
2199         Alias of floop-nest-optimize.
2200         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
2201         Document as alias of -floop-nest-optimize.
2202         * graphite-blocking.c: Remove.
2203         * graphite-interchange.c: Remove.
2204         * graphite-optimize-isl.c: Include dumpfile.h.
2205         (getScheduleForBand): Add dump for tiled loops.  Use
2206         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
2207         * graphite-poly.c (scop_max_loop_depth): Remove.
2208         (print_scattering_function_1): Remove.
2209         (print_scattering_function): Remove.
2210         (print_scattering_functions): Remove.
2211         (debug_scattering_function): Remove.
2212         (debug_scattering_functions): Remove.
2213         (apply_poly_transforms): Remove use of flag_loop_block,
2214         flag_loop_strip_mine, and flag_loop_interchange.
2215         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
2216         PBB_ORIGINAL.
2217         (print_pdr_access_layout): Remove.
2218         (print_pdr): Print ISL representation.
2219         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
2220         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2221         (free_scop): Same.
2222         (openscop_print_pbb_domain): Remove.
2223         (print_pbb): Remove call to print_scattering_function.
2224         (openscop_print_scop_context): Remove.
2225         (print_scop_context): Do not print matrices anymore.
2226         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
2227         SCOP_TRANSFORMED_SCHEDULE.
2228         (print_isl_set): Add printing of a new line.
2229         (print_isl_map): Same.
2230         (print_isl_aff): Same.
2231         (print_isl_constraint): Same.
2232         (loop_to_lst): Remove.
2233         (scop_to_lst): Remove.
2234         (lst_indent_to): Remove.
2235         (print_lst): Remove.
2236         (debug_lst): Remove.
2237         (dot_lst_1): Remove.
2238         (dot_lst): Remove.
2239         (reverse_loop_at_level): Remove.
2240         (reverse_loop_for_pbbs): Remove.
2241         * graphite-poly.h (pdr_dim_iter_domain): Remove.
2242         (pdr_nb_params): Remove.
2243         (pdr_alias_set_dim): Remove.
2244         (pdr_subscript_dim): Remove.
2245         (pdr_iterator_dim): Remove.
2246         (pdr_parameter_dim): Remove.
2247         (same_pdr_p): Remove.
2248         (struct poly_scattering): Remove.
2249         (struct poly_bb): Remove _original, _transformed, _saved.
2250         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
2251         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
2252         (PBB_NB_LOCAL_VARIABLES): Remove.
2253         (PBB_NB_SCATTERING_TRANSFORM): Remove.
2254         (schedule_to_scattering): Remove.
2255         (number_of_write_pdrs): Remove.
2256         (pbb_dim_iter_domain): Remove.
2257         (pbb_nb_params): Remove.
2258         (pbb_nb_scattering_orig): Remove.
2259         (pbb_nb_scattering_transform): Remove.
2260         (pbb_nb_dynamic_scattering_transform): Remove.
2261         (pbb_nb_local_vars): Remove.
2262         (pbb_iterator_dim): Remove.
2263         (pbb_parameter_dim): Remove.
2264         (psco_scattering_dim): Remove.
2265         (psct_scattering_dim): Remove.
2266         (psct_local_var_dim): Remove.
2267         (psco_iterator_dim): Remove.
2268         (psct_iterator_dim): Remove.
2269         (psco_parameter_dim): Remove.
2270         (psct_parameter_dim): Remove.
2271         (psct_dynamic_dim): Remove.
2272         (psct_static_dim): Remove.
2273         (psct_add_local_variable): Remove.
2274         (new_lst_loop): Remove.
2275         (new_lst_stmt): Remove.
2276         (free_lst): Remove.
2277         (copy_lst): Remove.
2278         (lst_add_loop_under_loop): Remove.
2279         (lst_depth): Remove.
2280         (lst_dewey_number): Remove.
2281         (lst_dewey_number_at_depth): Remove.
2282         (lst_pred): Remove.
2283         (lst_succ): Remove.
2284         (lst_find_pbb): Remove.
2285         (find_lst_loop): Remove.
2286         (lst_find_first_pbb): Remove.
2287         (lst_empty_p): Remove.
2288         (lst_find_last_pbb): Remove.
2289         (lst_contains_p): Remove.
2290         (lst_contains_pbb): Remove.
2291         (lst_create_nest): Remove.
2292         (lst_remove_from_sequence): Remove.
2293         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
2294         (lst_niter_for_loop): Remove.
2295         (pbb_update_scattering): Remove.
2296         (lst_update_scattering_under): Remove.
2297         (lst_update_scattering): Remove.
2298         (lst_insert_in_sequence): Remove.
2299         (lst_replace): Remove.
2300         (lst_substitute_3): Remove.
2301         (lst_distribute_lst): Remove.
2302         (lst_remove_all_before_including_pbb): Remove.
2303         (lst_remove_all_before_excluding_pbb): Remove.
2304         (struct scop): Remove original_schedule, transformed_schedule, and
2305         saved_schedule.
2306         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
2307         (SCOP_SAVED_SCHEDULE): Remove.
2308         (poly_scattering_new): Remove.
2309         (poly_scattering_free): Remove.
2310         (poly_scattering_copy): Remove.
2311         (store_scattering_pbb): Remove.
2312         (store_lst_schedule): Remove.
2313         (restore_lst_schedule): Remove.
2314         (store_scattering): Remove.
2315         (restore_scattering_pbb): Remove.
2316         (restore_scattering): Remove.
2317         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2318         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
2319         compute the scattering polyhedron dimension from the dimension of
2320         pbb->domain.
2321         (build_scop_scattering): Update call to
2322         build_pbb_scattering_polyhedrons.
2323         (build_poly_scop): Remove call to scop_to_lst.
2324         * graphite.c (graphite_transform_loops): Add call to print_scop.
2325         (gate_graphite_transforms): Remove use of flag_loop_block,
2326         flag_loop_interchange, and flag_loop_strip_mine.
2328 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
2330         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
2331         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
2332         -floop-nest-optimize.
2333         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
2334         (generate_luj_sepclass): Remove.
2335         (generate_luj_options): Remove.
2336         (set_options): Remove opt_luj.
2337         (scop_to_isl_ast): Remove opt_luj.
2338         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
2339         flag_loop_unroll_jam.
2340         (getPrevectorMap_full): Remove.
2341         (getScheduleForBandList): Remove map_sepcl.
2342         (getScheduleMap): Same.
2343         (apply_schedule_map_to_scop): Remove sepcl.
2344         (optimize_isl): Same.
2345         * graphite-poly.c (apply_poly_transforms): Remove check for
2346         flag_loop_unroll_jam.
2347         (new_poly_bb): Remove map_sepclass.
2348         * graphite-poly.h (struct poly_bb): Same.
2349         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
2350         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
2351         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
2352         * toplev.c (process_options): Remove flag_loop_unroll_jam.
2354 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
2356         PR target/67317
2357         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
2358         (addqi3_cc): Ditto.
2359         (UNSPEC_ADD_CARRY): Remove.
2360         (addqi3_cconly_overflow): New expander.
2361         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
2362         Adjust for changed add<mode>3_carry.
2363         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
2364         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
2365         (<plusminus_insn><mode>3_carry): Remove expander.
2366         (*<plusminus_insn><mode>3_carry): Split insn pattern to
2367         add<mode>3_carry and sub<mode>3_carry.
2368         (plusminus_carry_mnemonic): Remove code attribute.
2369         (add<mode>3_carry): Canonicalize insn pattern.
2370         (*addsi3_carry_zext): Ditto.
2371         (sub<mode>3_carry): Ditto.
2372         (*subsi3_carry_zext): Ditto.
2373         (adcx<mode>3): Remove insn pattern.
2374         (addcarry<mode>): New insn pattern.
2375         (subborrow<mode>): Ditto.
2376         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
2377         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
2378         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
2379         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
2380         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
2381         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
2382         Rewrite expander to not clobber carry flag chains.
2384 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
2386         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
2387         instead of a rotate.
2389 2015-08-27  Marek Polacek  <polacek@redhat.com>
2391         PR middle-end/67005
2392         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
2393         an entry into an irreducible region.
2395 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2397         * configure: Regenerate.
2399 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
2401         PR tree-optimization/67283
2402         * tree-sra.c (type_consists_of_records_p): Rename to...
2403         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2405         (completely_scalarize_record): Rename to...
2406         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2407         (scalarize_elem): New.
2409 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
2411         * tree-sra.c (completely_scalarize_var): Rename to...
2412         (create_total_scalarization_access): ... Here. Drop call to
2413         completely_scalarize_record.
2415         (analyze_all_variable_accesses): Replace completely_scalarize_var
2416         with create_total_scalarization_access and completely_scalarize_record.
2418 2015-08-27  Alan Modra  <amodra@gmail.com>
2420         PR target/67356
2421         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
2422         for operand 1.
2424 2015-08-27  Richard Biener  <rguenther@suse.de>
2426         * passes.c (rest_of_decl_compilation): Guard early_global_decl
2427         call with !seen_error ().
2428         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
2429         early debug generation and finish...
2430         (symbol_table::compile): ... here to put it after a !seen_error ()
2431         guard.
2433 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2435         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
2436         Solaris 12+.
2438 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2439             Andre Vieira  <andre.simoesdiasvieira@arm.com>
2441         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
2442         (*cb<optab><mode>1): Likewise.
2443         (*tb<optab><mode>1): Likewise.
2444         (*cb<optab><mode>1): Likewise.
2445         * config/aarch64/iterators.md (inv_cb): New code attribute.
2446         (inv_tb): Likewise.
2447         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
2448         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
2450 2015-08-27  Richard Biener  <rguenther@suse.de>
2452         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
2454 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2456         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
2457         trap to fix ICE.
2459 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2461         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
2462         Add declaration.
2464         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
2465         comment.
2466         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
2467         floating point in VSX registers.
2468         (rs6000_output_move_128bit): Always print out the set insn if we
2469         can't generate an appropriate 128-bit move.
2470         (rs6000_generate_compare): Add support for IEEE 128-bit floating
2471         point in VSX registers comparisons.
2472         (rs6000_expand_float128_convert): Likewise.
2474         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
2475         predicate for only GPR hard registers.
2477         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
2478         modes to iterators. Add new iterators for moving 128-bit values in
2479         scalar FPR registers and VSX registers.
2480         (FMOVE128): Likewise.
2481         (FMOVE128_FPR): Likewise.
2482         (FMOVE128_GPR): Likewise.
2483         (FMOVE128_VSX): Likewise.
2484         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
2485         in VSX registers.
2486         (IFKF): Likewise.
2487         (IBM128): Likewise.
2488         (TFIFKF): Likewise.
2489         (RELOAD): Add IEEE 128-bit floating point modes.
2490         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
2491         floating point in VSX registers modes.
2492         (signbit<mode>2, IBM128 iterator): Likewise.
2493         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
2494         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2495         (negtf2): Likewise.
2496         (neg<mode>2, TFIFKF iterator): Likewise.
2497         (negtf2_internal): Likewise.
2498         (abstf2): Likewise.
2499         (abs<mode>2, TFIFKF iterator): Likewise.
2500         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
2501         VSX insn support for negate, absolute value, and negative absolute
2502         value.
2503         (ieee_128bit_vsx_neg<mode>2): Likewise.
2504         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2505         (ieee_128bit_vsx_abs<mode>2): Likewise.
2506         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2507         (ieee_128bit_vsx_nabs<mode>2): Likewise.
2508         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2509         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
2510         floating point in VSX registers.
2511         (unpack<mode>_dm): Likewise.
2512         (unpack<mode>_nodm): Likewise.
2513         (pack<mode>): Likewise.
2514         (unpackv1ti): Likewise.
2515         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
2516         (packv1ti): Likewise.
2517         (pack<mode>, FMOVE128_VSX iterator): Likewise.
2518         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
2519         registers.
2520         (extenddftf2_internal): Likewise.
2521         (trunctfdf2): Likewise.
2522         (trunctfdf2_internal2): Likewise.
2523         (fix_trunc_helper): Likewise.
2524         (fix_trunctfdi2"): Likewise.
2525         (floatditf2): Likewise.
2526         (floatuns<mode>tf2): Likewise.
2527         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2528         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2529         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2530         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2531         (float<SDI:mode><IFKF:mode>2): Likewise.
2532         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2534 2015-08-26  Renlin Li  <renlin.li@arm.com>
2536         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
2538 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2539             Jiong Wang  <jiong.wang@arm.com>
2541         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
2542         (tlsie_tiny_<mode>): New define_insn.
2543         (tlsie_tiny_sidi): Likewise.
2544         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2545         SYMBOL_TINY_TLSIE.
2546         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
2547         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
2548         SYMBOL_TINY_TLSIE.
2549         (aarch64_expand_mov_immediate): Likewise.
2550         (aarch64_print_operand): Likewise.
2551         (arch64_classify_tls_symbol): Likewise.
2553 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
2555         * config/arm/arm-arches.def: Replace single value flags with
2556         an initializer built from ARM_FSET_MAKE_CPU1.
2557         * config/arm/arm-cores.def: Likewise.
2558         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
2559         derivation from the ARM_CORE macro definition, use the given value
2560         instead.
2561         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
2562         ARM_ARCH macro definition, use the given value instead.
2564 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
2566         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
2567         feature set.
2568         (struct builtin_description): Replace field mask with field
2569         features.
2570         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
2571         (IWMMXT2_BUILTIN): Likewise.
2572         (IWMMXT2_BUILTIN2): Likewise.
2573         (FP_BUILTIN): Likewise.
2574         (CRC32_BUILTIN): Likewise.
2575         (CRYPTO_BUILTIN): Likewise.
2576         (iwmmx_mbuiltin): Likewise.
2577         (iwmmx2_mbuiltin): Likewise.
2578         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
2579         struct builtin_description.
2581 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
2583         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
2584         (struct builtin_description): Change type of mask to unsigned
2585         long.
2586         * config/arm/arm-protos.h (insn_flags): Declare as type
2587         arm_feature_set.
2588         (tune_flags): Likewise.
2589         * config/arm/arm.c (feature_count): New.
2590         (insn_flags): Define as type arm_feature_set.
2591         (tune_flags): Likewise.
2592         (struct processors): Define field flags as type arm_feature_set.
2593         (all_cores): Update for change to struct processors.
2594         (all_architectures): Likewise.
2595         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
2596         macros.
2597         (arm_option_override_internal): Likewise.
2598         (arm_option_override): Likewise.
2600 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2601             Jiong Wang  <jiong.wang@arm.com>
2603         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
2604         tls size for tiny, small, large memory model.
2605         (aarch64_load_symref_appropriately): Support new symbol types.
2606         (aarch64_expand_mov_immediate): Likewise.
2607         (aarch64_print_operand): Likewise.
2608         (aarch64_classify_tls_symbol): Likewise.
2609         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
2610         (aarch64_symbol_type): Likewise.
2611         * config/aarch64/aarch64.md (tlsle): Deleted.
2612         (tlsle12_<mode>): New define_insn.
2613         (tlsle24_<mode>): Likewise.
2614         (tlsle32_<mode>): Likewise.
2615         (tlsle48_<mode>): Likewise.
2616         * doc/sourcebuild.texi (AArch64-specific attributes): Document
2617         "aarch64_tlsle32".
2619 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
2621         * config/arm/arm-protos.h (FL_NONE): New.
2622         (FL_ANY): New.
2623         (arm_feature_set): New.
2624         (ARM_FSET_MAKE): New.
2625         (ARM_FSET_MAKE_CPU1): New.
2626         (ARM_FSET_MAKE_CPU2): New.
2627         (ARM_FSET_CPU1): New.
2628         (ARM_FSET_CPU2): New.
2629         (ARM_FSET_EMPTY): New.
2630         (ARM_FSET_ANY): New.
2631         (ARM_FSET_HAS_CPU1): New.
2632         (ARM_FSET_HAS_CPU2): New.
2633         (ARM_FSET_HAS_CPU): New.
2634         (ARM_FSET_ADD_CPU1): New.
2635         (ARM_FSET_ADD_CPU2): New.
2636         (ARM_FSET_DEL_CPU1): New.
2637         (ARM_FSET_DEL_CPU2): New.
2638         (ARM_FSET_UNION): New.
2639         (ARM_FSET_INTER): New.
2640         (ARM_FSET_XOR): New.
2641         (ARM_FSET_EXCLUDE): New.
2642         (AFM_FSET_IS_EMPTY): New.
2643         (ARM_FSET_CPU_SUBSET): New.
2645 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
2647         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
2648         SYMBOL_TLSLE to SYMBOL_TLSLE24.
2649         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2650         Likewise.
2651         (aarch64_expand_mov_immediate): Likewise.
2652         (aarch64_print_operand): Likewise.
2653         (aarch64_classify_symbol): Likewise.
2655 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
2657         * config/aarch64/aarch64.opt (mtls-size): New entry.
2658         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
2659         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
2660         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
2662 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
2664         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
2665         ARM_CORE entry.  Fix some white-space.
2666         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
2667         ARM_CORE definition.
2669 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2671         * fold-const.c (fold_binary_loc) : Move Optimize 
2672         root(x)*root(y) as root(x*y) to match.pd.
2673         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
2674         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
2675         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
2676         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
2677         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
2678         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
2679         (mult (exps:s @0) (exps:s @1)) : New simplifier.
2680         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
2681         (rdiv @0 (exps:s @1)) : New simplifier.
2683 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
2685         * gcc.c (driver::finalize): Only assign to extra_specs if
2686         [EXTRA_SPECS].
2688 2015-08-25  Marek Polacek  <polacek@redhat.com>
2690         PR middle-end/67330
2691         * varasm.c (declare_weak): Return after giving an error.
2693 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
2695         * gcc-main.c (main): Add params to driver ctor.
2696         * gcc.c (class env_manager): New.
2697         (env): New global.
2698         (env_manager::init): New.
2699         (env_manager::get): New.
2700         (env_manager::xput): New.
2701         (env_manager::restore): New.
2702         Poison getenv and putenv.
2703         (DEFAULT_TARGET_SYSTEM_ROOT): New.
2704         (target_system_root): Update initialization to use
2705         DEFAULT_TARGET_SYSTEM_ROOT.
2706         (struct spec_list): Add field "default_ptr".
2707         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
2708         (init_spec): Likewise.
2709         (set_spec): Clear field "default_ptr".
2710         (read_specs): Free "spec" and "buffer".
2711         (xputenv): Reimplement in terms of env_manager.
2712         (process_command): Replace ::getenv calls with calls to the
2713         env_manager singleton.
2714         (process_brace_body): Free string in three places.
2715         (driver::driver): New.
2716         (driver::~driver): New.
2717         (used_arg): Convert from a function to...
2718         (class used_arg_t): ...this class, and...
2719         (used_arg): ...this new global instance.
2720         (used_arg_t::finalize): New function.
2721         (getenv_spec_function): Add "const" to local "value".  Replace
2722         ::getenv call with call to the env_manager singleton.
2723         (path_prefix_reset): New function.
2724         (driver::finalize): New function.
2725         * gcc.h (driver::driver): New.
2726         (driver::~driver): New.
2727         (driver::finalize): New.
2729 2015-08-25  Nathan Sidwell  <nathan@acm.org>
2731         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
2732         target doesn't have one.
2734 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
2736         PR target/67346
2737         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
2739 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
2741         PR target/67344
2742         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
2743         a define_insn, remove second alternative.
2745 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
2746             Joseph Myers  <joseph@codesourcery.com>
2748         * gcc.c (struct switchstr): Expand comment.
2750 2015-08-25  Nathan Sidwell  <nathan@acm.org>
2752         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
2753         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
2755 2015-08-25  Richard Biener  <rguenther@suse.de>
2757         PR middle-end/67306
2758         * genmatch.c (expr::gen_transform): Verify the result of
2759         builtin_decl_implicit.
2760         (dt_simplify::gen_1): Likewise.
2762 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2764         * config/arm/constraints.md: Also list Cs and US ARM-specific
2765         constraints as used.
2767 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2769         PR target/66609
2770         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
2771         UNSPEC_PCREL.
2772         (nonpic_symbol_mentioned_p): Likewise.
2773         (sh_delegitimize_address): Likewise.
2774         (sh_function_ok_for_sibcall): Take into account weak symbols.
2775         (sh_expand_sym_label2reg): New.
2776         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
2777         * config/sh/sh.md (UNSPEC_PCREL): New enum.
2778         (call_pcrel): Use sh_expand_sym_label2reg.
2779         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
2780         (symPCREL_label2reg) New expand.
2782 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
2784         * graphite-poly.c: Change type of region from void* to sese.
2785         * graphite-poly.h (struct scop): Changing the type of scop::region
2786         from void* to sese. Change accessor macro accordingly.
2787         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
2789 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
2791         * graphite-scop-detection.c (stmt_simple_for_scop_p):
2792         Constrain only on INTEGER_TYPE.
2794 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2796         PR target/67211
2797         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
2798         -mefficient-unaligned-vsx on ISA 2.7.
2800         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
2801         option to a masked option.
2803         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
2804         logic for -mefficient-unaligned-vsx so that it is set via an arch
2805         ISA option, instead of being set if -mtune=power8 is set. Move
2806         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
2807         near other default option handling.
2809 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2811         * genflags.c (gen_macro): Delete.
2812         (gen_proto): Don't create GEN.*CALL.* macros.
2813         * gensupport.h (get_file_location): Declare.
2814         * gensupport.c (rtx_locs): New variable.
2815         (read_md_rtx): Record rtx locations.
2816         (get_file_location): New function.
2817         * target-insns.def (call, call_pop, call_value, call_value_pop)
2818         (sibcall, sibcall_value): New patterns.
2819         * gentarget-def.c (parse_argument): New function.
2820         (def_target_insn): Use it.  Handle optional operands.  Raise an
2821         error if an .md pattern has the wrong number of operands for the
2822         pattern name.  Remove the names of unused operands from the prototype.
2823         * builtins.c (expand_builtin_apply): Use targetm functions
2824         instead of HAVE_call_value and GEN_CALL_VALUE.
2825         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
2826         and sibcall_value_pop.
2827         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
2828         of GEN_CALL.
2829         * config/alpha/alpha.md (untyped_call): Likewise.
2830         * config/iq2000/iq2000.md (untyped_call): Likewise.
2831         * config/m68k/m68k.md (untyped_call): Likewise.
2832         * config/mips/mips.md (untyped_call): Likewise.
2833         * config/pa/pa.md (untyped_call): Likewise.
2834         * config/rs6000/rs6000.md (untyped_call): Likewise.
2835         * config/sparc/sparc.md (untyped_call): Likewise.
2836         * config/tilegx/tilegx.md (untyped_call): Likewise.
2837         * config/tilepro/tilepro.md (untyped_call): Likewise.
2838         * config/visium/visium.md (untyped_call): Likewise.
2839         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
2840         gen_call_value instead of GEN_CALL_VALUE.
2841         * config/arm/arm.md (untyped_call): Likewise.
2842         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
2843         GEN_CALL.
2845 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2847         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
2848         (have_cbranchcc4): New variable.
2849         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
2850         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
2851         (if_convert): Initialize have_cbranchcc4.
2853 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2855         * builtins.c (expand_cmpstrn): Rename to...
2856         (expand_cmpstrn_or_cmpmem): ...this.
2857         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
2858         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
2859         Remove mode argument.
2860         (expand_builtin): Update accordingly.
2862 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2864         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
2865         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
2866         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
2867         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
2868         Add predicates for operands 0 and 3.
2869         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
2870         operand.
2871         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
2872         immediate_operand to nonmemory_operand.
2874 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2876         * df-scan.c (df_insn_info_init_fields): New function, split out
2877         from...
2878         (df_insn_create_insn_record): ...here.
2879         (df_insn_info_free_fields): New function, split out from...
2880         (df_insn_info_delete): ...here.
2881         (df_insn_rescan): Use the new functions instead of freeing and
2882         reallocating the df_insn_info.
2884 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2886         * doc/install.texi (Binaries): Remove links no longer valid.
2888 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
2890         * config/nvptx/mkoffload.c (process): Replace
2891         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
2893 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
2895         PR target/67329
2896         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
2898 2015-08-24  Renlin Li  <renlin.li@arm.com>
2900         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
2901         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
2902         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
2903         * config/arm/constraints.md ("j"): Add check for high code.
2905 2015-08-24  Tom de Vries  <tom@codesourcery.com>
2907         PR tree-optimization/65468
2908         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
2909         chunk_size is one.
2911 2015-08-24  Nathan Sidwell  <nathan@acm.org>
2913         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
2914         change to nvptx_type_from_mode call. Use arg_promotion for both
2915         split and non-split args.
2917 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2919         * target-insns.def (movstr): New pattern.
2920         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
2921         (expand_movstr): Use targetm rather than HAVE_movstr/
2922         CODE_FOR_movstr.
2924 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2926         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
2927         cast syntax.
2929 2015-08-24  Andrew Pinski  <apinski@cavium.com>
2931         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
2932         AARCH64_EXTRA_TUNING_OPTION.
2933         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
2934         (aarch64_extra_tuning_flags): Base the shifted value on the index instead
2935         of the argument to AARCH64_EXTRA_TUNING_OPTION.
2936         * config/aarch64/aarch64.c: Remove the last argument to
2937         AARCH64_EXTRA_TUNING_OPTION.
2939 2015-08-23  Nathan Sidwell  <nathan@acm.org>
2941         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
2942         decls.
2943         (nvptx_declare_function_name): Insert formatting tabs for
2944         consistency.
2946 2015-08-23  Tom de Vries  <tom@codesourcery.com>
2948         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
2949         parm_decl, rather than generating a dummy default def in cfun.
2950         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
2951         ssa_name from cfun and child_fn do not share a stmt as def stmt.
2952         (move_stmt_op): Handle PARM_DECl.
2953         (gather_ssa_name_hash_map_from): New function.
2954         (move_sese_region_to_fn): Add default defs for function params, and add
2955         them to vars_map.  Release copied ssa names.
2956         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
2958 2015-08-23  Tom de Vries  <tom@codesourcery.com>
2960         * doc/sourcebuild.texi: Rename vect_no_int_max with
2961         vect_no_int_min_max.  Update description.
2963 2015-08-22  Andrew Pinski  <apinski@cavium.com>
2965          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
2966         * config/aarch64/aarch64-protos.h
2967         (aarch64_fusion_pairs_index): New enum.
2968         (aarch64_fusion_pairs): Base the shifted value on the index instead
2969         Rewrite AARCH64_FUSE_ALL to be based on the end index.
2970         of the argument to AARCH64_FUSION_PAIR.
2971         * config/aarch64/aarch64.c: Remove the last argument to
2972         AARCH64_FUSION_PAIR.
2974 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
2976         * dominance.c (new_zero_array): Define.
2977         (dom_info): Redefine as class with proper encapsulation.
2978         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
2979         Add new members.
2980         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
2981         allocations/deallocations.  Pass function as parameter (instead of
2982         using cfun).
2983         (dom_info::get_idom): Define accessor method.
2984         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
2985         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
2986         (calculate_dominance_info): Adjust to use dom_info class.
2987         (verify_dominators): Likewise.
2989 2015-08-21  Alexandre Oliva <aoliva@redhat.com>
2991         * print-rtl.c (print_rtx): Check the correct range for
2992         flag_dump_unnumbered_links to behave as documented.
2994         PR rtl-optimization/67227
2995         PR rtl-optimization/64164
2996         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
2997         (nonoverlapping_memrefs_p): Test offsets and sizes when given
2998         identical gimple_reg exprs.
3000 2015-08-21  Nathan Sidwell  <nathan@acm.org>
3002         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
3003         expansion.
3004         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
3005         crtl->stack_alignment_needed to determine alignment.
3006         (nvptx_get_drap_rtx): New.
3007         (TARGET_GET_DRAP_RTX): Override.
3008         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
3010 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3012         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
3014 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3016         * configure.ac: Remove uwin* cases.
3017         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
3018         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
3019         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
3020         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
3021         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
3022         i[34567]86-*-uwin*, powerpc-*-beos*.
3024 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
3026         * gencodes.c (gencodes): Print the comma for the preceding
3027         enum value rather than the current one.  Use aliased enum values
3028         rather than #defines for compiled-out patterns.
3029         (main): Update accordingly.  Replace LAST_INSN_CODE with
3030         NUM_INSN_CODES.
3031         * lra.c (insn_code_data): Update accordingly.
3032         (finish_insn_code_data_once, get_static_insn_data): Likewise.
3033         * recog.h (target_recog): Likewise.
3034         (preprocess_insn_constraints): Change parameter to unsigned int.
3035         * recog.c (preprocess_insn_constraints): Likewise.
3036         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
3037         * tree-vect-stmts.c (vectorizable_operation): Simplify.
3039 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3041         PR rtl-optimization/61657
3042         * loop-iv.c (iv_number_of_iterations): Declare up and down as
3043         unsigned.  Remove superflous uint64_t cast.
3045 2014-08-21  Felix Yang  <felix.yang@huawei.com>
3046             Jiji Jiang  <jiangjiji@huawei.com>
3048         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
3049         and get builtin function code directly from CALL.
3050         (gimple_stringop_fixed_value): Modified accordingly.
3051         (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
3052         accordingly and only accept BUILT_IN_NORMAL string operations.
3054 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3056         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
3058 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3060         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
3061         to match.pd.
3062         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
3063         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
3064         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
3065         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
3066         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
3067         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
3068         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
3069         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
3070         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
3071         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
3073         * match.pd (SIN ) : New Operator.
3074         (TAN) : New Operator.
3075         (mult (SQRT@1 @0) @1) : New simplifier.
3076         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
3077         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3078         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
3079         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
3080         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
3081         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
3082         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
3083         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
3084         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
3085         (rdiv @0 (POW:s @1 @2)) : New simplifier.
3087 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
3089         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
3090         loop if EXPR is simplified to const value.
3092 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
3094         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3095         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
3097 2015-08-21  Richard Biener  <rguenther@suse.de>
3099         PR middle-end/67285
3100         * gimple-fold.c (replace_stmt_with_simplification): Assert
3101         seq is empty when replacing a call with itself but different
3102         arguments.
3103         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
3104         a call require that it is const.
3106 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3108         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
3109         * builtins.c (get_object_alignment_2): Adjust.
3110         * varasm.c (align_variable): Likewise.
3111         (get_variable_align): Likewise.
3112         (build_constant_desc): Likewise.
3113         (force_const_mem): Likewise.
3114         * doc/tm.texi.in: Likewise.
3115         * doc/tm.texi: Regenerate.
3117 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3119         * genconfig.c (main): Always define HAVE_cc0.
3120         * recog.c (rest_of_handle_peephole2): Adjust.
3122 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3124         * reorg.c (relax_delay_slots): Don't use #if to check value of
3125         HAVE_cc0.
3127 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3129         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
3130         * targhooks.c (default_have_conditional_execution): Adjust.
3132 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
3134         * rtl.h (rtvec_all_equal_p): Declare.
3135         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
3136         * rtl.c (rtvec_all_equal_p): New function.
3137         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
3138         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
3139         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
3140         * config/arm/arm.c (neon_vdup_constant): Likewise.
3141         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
3142         * config/tilegx/constraints.md (W, Y): Likewise.
3143         * config/tilepro/constraints.md (W, Y): Likewise.
3144         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
3145         (classify_immediate): Use unwrap_const_vec_duplicate.
3146         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
3147         (reg_or_v2s8bit_operand): Likewise.
3148         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
3149         (reg_or_v4s8bit_operand): Likewise.
3151 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3153         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
3154         (vec_shasigma_be): New #define.
3155         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
3156         (VPMSUMH): Likewise.
3157         (VPMSUMW): Likewise.
3158         (VPMSUMD): Likewise.
3159         (VPMSUM): New BU_P8V_OVERLOAD_2.
3160         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
3161         entries for VEC_MADD and VEC_VPMSUM.
3163 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
3165         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
3166         Multiply argument avr_n_flash by 64 to match unit of "KiB".
3167         (avr_pgm_check_var_decl): Same.
3169 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
3171         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
3172         initialization of HFmode scalar type (float16_t) to...
3173         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
3174         code.
3176         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
3178         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
3179         having an -mfp16-format.
3181 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
3183         * config/i386/predicates.md (vector_all_ones_operand): Use
3184         CONSTM1_RTX to simplify definition.
3186 2015-08-20  Richard Biener  <rguenther@suse.de>
3188         * toplev.c (compile_file): Remove loop calling late_global_decl
3189         on all symbols.
3190         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
3191         on decls we assembled.
3193 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
3195         * common/config/aarch64/aarch64-common.c
3196         (AARCH64_CPU_NAME_LENGTH): Delete.
3197         (aarch64_option_extension): New.
3198         (all_extensions): Likewise.
3199         (processor_name_to_arch): Likewise.
3200         (arch_to_arch_name): Likewise.
3201         (all_cores): New.
3202         (all_architectures): Likewise.
3203         (aarch64_get_extension_string_for_isa_flags): Likewise.
3204         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
3205         architecture names.
3206         * config/aarch64/aarch64-protos.h
3207         (aarch64_get_extension_string_for_isa_flags): New.
3208         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
3209         (aarch64_option_print): Get the string to print from
3210         aarch64_get_extension_string_for_isa_flags.
3211         (aarch64_declare_function_name): Likewise.
3212         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
3213         (MCPU_TO_MARCH_SPEC): This.
3214         (ASM_CPU_SPEC): Use it.
3215         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
3216         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
3217         (EXTRA_SPEC_FUNCTIONS): Use it.
3219 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
3221         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
3222         expansion when !ISA_HAS_LWL_LWR.
3223         (mips_block_move_straight): Update the size of elements copied to
3224         account for alignment when !ISA_HAS_LWL_LWR.
3225         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
3227 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
3229         * expr.c (expand_expr_real_2): Check gimple statement during
3230         LSHIFT_EXPR expand.
3232 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
3234         * common.opt (fstack-protector): Initialize to -1.
3235         (fstack-protector-all): Likewise.
3236         (fstack-protector-strong): Likewise.
3237         (fstack-protector-explicit): Likewise.
3238         * configure.ac: Add --enable-default-ssp.
3239         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
3240         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
3241         -1.
3242         * doc/install.texi: Document --enable-default-ssp.
3243         * config.in: Regenerated.
3244         * configure: Likewise.
3246 2015-08-19  Alexandre Oliva <aoliva@redhat.com>
3248         PR rtl-optimization/64164
3249         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
3250         (parm_in_stack_slot_p): ... this.  Disregard mode, what
3251         matters is whether the parm will live in a pseudo or a stack
3252         slot.
3253         (expand_one_ssa_partition): Deal with params without a default
3254         def.  Disregard mode.
3255         * cfgexpand.h: Renamed function declaration.
3256         * tree-ssa-coalesce.c: Adjust.
3257         * function.c (split_complex_args): Allocate stack slot for
3258         unassigned parms before splitting.
3259         (parm_in_unassigned_mem_p): New.  Use it instead of
3260         parm_maybe_byref_p throughout this file.
3261         (assign_parm_setup_block): Use it.  Accept pseudos in the
3262         expand-assigned rtl.
3263         (assign_parm_setup_reg): Drop BLKmode requirement.
3264         (assign_parm_setup_stack): Allocate and fill in the address of
3265         unassigned MEM parms.
3267 2015-08-19  David Sherwood  <david.sherwood@arm.com>
3269         * genmodes.c (emit_mode_unit_size_inline): New function.
3270         (emit_mode_unit_precision_inline): New function.
3271         (emit_insn_modes_h): Emit new #define.  Emit new functions.
3272         (emit_mode_unit_size): New function.
3273         (emit_mode_unit_precision): New function.
3274         (emit_mode_adjustments): Add mode_unit_size adjustments.
3275         (emit_insn_modes_c): Emit new arrays.
3276         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
3277         use new inline methods.
3279 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3281         * config/aarch64/aarch64.c (bit_count): Delete prototype
3282         and definition.
3283         (aarch64_print_operand): Use popcount_hwi instead of the above.
3285 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3287         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
3288         comment.
3290 2015-08-19  Marek Polacek  <polacek@redhat.com>
3292         PR middle-end/67133
3293         * gimple-ssa-isolate-paths.c
3294         (insert_trap_and_remove_trailing_statements): Rename to ...
3295         (insert_trap): ... this.  Don't remove trailing statements; split
3296         block instead.
3297         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
3299 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
3301         PR other/67042
3302         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
3303         conditionalize the whole on __GNUC__.  Add fallback code
3304         depending neither on undefined nor implementation-defined behaviour.
3306 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
3308         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
3309         whitespaces with tab.
3311 2015-08-19  Florian Weimer  <fweimer@redhat.com>
3313         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
3314         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
3315         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
3316         Move Name_Ids instantiation to the Prj.Proc package, to avoid
3317         trampolines.
3319 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3321         * config/arm/arm.c (bounds_check): Use %wd print format
3322         for HOST_WIDE_INT arguments.
3324 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
3326         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
3327         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
3328         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
3329         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
3330         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
3331         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
3332         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
3333         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
3334         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
3335         typedefs.
3337 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
3339         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
3340         function.c, graphite-scop-detection.c, haifa-sched.c,
3341         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
3342         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
3343         varasm.c: Remove typedefs of structs.
3345 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
3347         * config/rs6000/altivec.h (vec_adde): New define.
3348         (vec_addec): Likewise.
3349         (vec_double): Likewise.
3350         (vec_bperm): Likewise.
3351         (vec_gb): Likewise.
3352         * config/rs6000/rs6000-builtin.def (ADDE): New
3353         BU_ALTIVEC_OVERLOAD_3.
3354         (ADDEC): Likewise.
3355         (DOUBLE): New BU_VSX_OVERLOAD_1.
3356         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
3357         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
3358         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
3359         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
3360         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
3361         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
3362         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
3363         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
3364         and P8V_BUILTIN_VEC_VBPERMQ.
3366 2015-08-18  Jason Merrill  <jason@redhat.com>
3368         * print-tree.c (print_node): Handle TREE_BINFO.
3370 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3372         PR middle-end/36757
3373         * builtins.c (expand_builtin_signbit): Add asserts to make sure
3374         we can expand BUILT_IN_SIGNBIT inline.
3375         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
3376         * doc/extend.texi: Document the type-generic __builtin_signbit.
3378 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
3380         PR rtl-optimization/67218
3381         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
3382         (simplify_unary_operation_1): Use it.
3384 2015-08-18  Marek Polacek  <polacek@redhat.com>
3386         PR middle-end/67222
3387         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
3388         if the call isn't valid.
3389         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
3390         gimple_call_builtin_p.
3391         (call_may_clobber_ref_p_1): Likewise.
3392         (stmt_kills_ref_p): Likewise.
3394 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
3396         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
3397         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
3398         (mips_hard_regno_scratch_ok): Likewise.
3399         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
3400         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
3402 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
3404         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
3405         (determine_value_range): Call refine_value_range_using_guard for
3406         each loop initial condition to improve value range.
3408 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
3410         * config/i386/i386.c: Remove include of fibheap.h.
3412 2015-08-17  Richard Biener  <rguenther@suse.de>
3414         PR tree-optimization/67221
3415         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
3416         (sccvn_dom_walker::before_dom_children): Mark backedges of
3417         non-executable blocks as not executable.
3419 2015-08-17  David Sherwood  <david.sherwood@arm.com>
3421         * config/arm/arm.c (neon_element_bits): Replace call to
3422         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
3423         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
3424         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
3425         (neon_vdup_lane<mode>): Likewise.
3426         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
3427         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
3428         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
3429         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
3430         * config/spu/spu.c (arith_immediate_p): Likewise.
3431         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3432         * expr.c (expand_expr_real_2): Likewise.
3433         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
3434         * simplify-rtx.c (simplify_immed_subreg): Likewise.
3435         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
3436         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
3437         New variable.
3438         * fold-const.c (fold_binary_loc): Replace call to
3439         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
3440         GET_MODE_UNIT_PRECISION (m).
3442 2015-08-17  Mike Stump  <mikestump@comcast.net>
3444         * config/arm/arm.c (arm_block_move_unaligned_straight):
3445         Emit normal move instead of unaligned load when source or destination
3446         are appropriately aligned.
3448 2015-08-17  Richard Biener  <rguenther@suse.de>
3449             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3451         PR middle-end/16107
3452         * match.pd (div (coss (op @0) : New simplifier.
3454 2015-08-14  Alexandre Oliva <aoliva@redhat.com>
3456         PR rtl-optimization/64164
3457         PR bootstrap/66978
3458         PR middle-end/66983
3459         PR rtl-optimization/67000
3460         PR middle-end/67034
3461         PR middle-end/67035
3462         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3463         * tree-ssa-copyrename.c: Removed.
3464         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
3465         -ftree-coalesce-vars.
3466         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3467         * common.opt (ftree-copyrename): Ignore.
3468         (ftree-coalesce-inlined-vars): Likewise.
3469         * doc/invoke.texi: Remove the ignored options above.
3470         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3471         * tree-ssa-coalesce.h: ... here.
3472         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3473         headers required by it.
3474         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3475         across variables when flag_tree_coalesce_vars.  Check register
3476         use and promoted modes to allow coalescing.  Do not coalesce
3477         maybe-byref parms with SSA_NAMEs of other variables, or
3478         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
3479         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3480         with its member functions to tree-ssa-coalesce.c.
3481         (var_map_base_init): Likewise.  Renamed to
3482         compute_samebase_partition_bases.
3483         (partition_view_normal): Drop want_bases parameter.
3484         (partition_view_bitmap): Likewise.
3485         * tree-ssa-live.h: Adjust declarations.
3486         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
3487         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3488         default defs at the entry point.
3489         (dump_part_var_map): New.
3490         (compute_optimized_partition_bases): New, called by...
3491         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3492         of compute_samebase_partition_bases.  Adjust.
3493         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3494         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
3495         (ssa_default_def_partition): New.
3496         (get_rtl_for_parm_ssa_default_def): New.
3497         (align_local_variable, add_stack_var): Support anonymous SSA
3498         names.
3499         (defer_stack_allocation): Likewise.  Declare earlier.
3500         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3501         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3502         Do no record deferred-allocation marker in
3503         SA.partition_to_pseudo.
3504         (expand_stack_vars): Adjust check for the marker in it.
3505         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
3506         redundant MEM attr setting.
3507         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
3508         from...
3509         (expand_one_stack_var): ... this.  New wrapper to check and
3510         skip already expanded SSA partitions.
3511         (record_alignment_for_reg_var): New, factored out of...
3512         (expand_one_var): ... this.
3513         (expand_one_ssa_partition): New.
3514         (adjust_one_expanded_partition_var): New.
3515         (expand_one_register_var): Check and skip already expanded SSA
3516         partitions.
3517         (expand_used_vars): Don't create DECLs for anonymous SSA
3518         names.  Expand all SSA partitions, then adjust all SSA names.
3519         (pass::execute): Replace the loops that set
3520         SA.partition_to_pseudo from partition leaders and cleared
3521         DECL_RTL for multi-location variables, and that which used to
3522         rename vars and set attrs, with one that clears DECL_RTL and
3523         checks that PARMs and RESULTs default_defs match DECL_RTL.
3524         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3525         * emit-rtl.c: Include stor-layout.h.
3526         (set_reg_attrs_for_parm): Handle NULL decl.
3527         (set_reg_attrs_for_decl_rtl): Take mode from expression if
3528         it's not a DECL.
3529         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
3530         rather than its possibly-NULL DECL.
3531         * explow.c (promote_ssa_mode): New.
3532         * explow.h (promote_ssa_mode): Declare.
3533         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3534         (read_complex_part): Export.
3535         * expr.h (read_complex_part): Declare.
3536         * cfgexpand.h (parm_maybe_byref_p): Declare.
3537         * function.c: Include cfgexpand.h.
3538         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3539         (use_register_for_parm_decl): Wrapper for the above to
3540         special-case the result_ptr.
3541         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3542         (split_complex_args): Take assign_parm_data_all argument.
3543         Pass it to rtl_for_parm.  Set up rtl and context for split
3544         args.  Reset complex parm before fetching its default decl
3545         rtl.
3546         (assign_parms_unsplit_complex): Use the default-def complex
3547         parm rtl if it matches the components.
3548         (assign_parms_augmented_arg_list): Adjust.
3549         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3550         multiple locations.  Recognize split complex args.
3551         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3552         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
3553         (assign_parm_setup_block): Prefer SSA-assigned location, and
3554         fill in its address if the memory location of a maybe-byref
3555         parm was not assigned by cfgexpand.
3556         (assign_parm_setup_reg): Likewise.  Adjust its mode as
3557         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
3558         sure passed_pointer parms don't need conversion.  Copy address
3559         or value as needed.
3560         (assign_parm_setup_stack): Prefer SSA-assigned location.
3561         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
3562         rtl before testing for pointer bounds.  Special-case result_ptr.
3563         (expand_function_start): Maybe reset DECL_RTL of result.
3564         Prefer SSA-assigned location for result and static chain.
3565         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
3566         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
3567         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3568         anonymous SSA names.  Use promote_ssa_mode.
3569         (get_temp_reg): Likewise.
3570         (remove_ssa_form): Adjust.
3571         * stor-layout.c (layout_decl): Don't set mem attributes of
3572         non-MEMs.
3573         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3574         and get its reg_usage for reg invalidation.
3575         (compute_bb_dataflow): Pass it insn.
3576         (emit_notes_in_bb): Likewise.
3578 2015-08-14  Marek Polacek  <polacek@redhat.com>
3580         * tree-core.h (tree_base): Fix typo.
3582 2015-08-14  Marek Polacek  <polacek@redhat.com>
3584         PR middle-end/67133
3585         * gimple.c (infer_nonnull_range_by_attribute): Check that the
3586         nonnull argument position is not outside function arguments.
3588 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
3590         PR target/67143
3591         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
3592         'lconst_atomic' with 'const_atomic'.
3593         (atomic_fetch_<optab><mode>): Likewise.
3594         (atomic_<optab>_fetch<mode>): Likewise.
3595         * config/aarch64/iterators.md (lconst-atomic): Move below
3596         'const_atomic'.
3597         (const_atomic): New.
3599 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
3600             Bernd Schmidt  <bernds@codesourcery.com>
3602         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
3603         debug options.
3604         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
3605         (DWARF2_DEBUGGING_INFO): Don't define.
3606         * debug.h (dwarf2_lineno_debug_hooks): Declare.
3607         * toplev.c (process_options): Add a case for it.
3608         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
3609         (dwarf2out_init): Skip most initializations if
3610         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
3611         case.
3612         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
3613         DWARF2_LINENO_DEBUGGING_INFO.
3614         * opts.c (set_debug_level): Likewise.
3616 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
3618         * config/arm/types.md (is_neon_type): Add missing types.
3620 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
3622         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
3623         for skylake.
3624         * config/i386/i386.c (PTA_SKYLAKE): New macros.
3625         (processor_alias_table): Add skylake description.
3626         (enum processor_model): Add skylake processor.
3627         (arch_names_table): Add skylake record.
3628         * doc/invoke.texi: Add skylake item.
3630 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
3632         * ira-int.h: Include recog.h.
3633         * ira-build.c: Don't include recog.h.
3634         * ira-color.c: Likewise.
3635         * ira-conflicts.c: Likewise.
3636         * ira-costs.c: Likewise.
3637         * ira-emit.c: Likewise.
3638         * ira-lives.c: Likewise.
3639         * ira.c: Likewise.
3640         * sched-deps.c: Likewise.
3641         * sel-sched.c: Likewise.
3642         * target-globals.c: Likewise.
3644 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
3646         PR bootstrap/55035
3647         * reload1.c (elimination_costs_in_insn): Make it obvious to the
3648         compiler that the n_dups and n_operands loop bounds are invariant.
3650 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3652         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
3653         expressions in A and B.
3655 2015-08-13  Richard Biener  <rguenther@suse.de>
3657         * tree.c (nonnull_arg_p): Move from ...
3658         * tree-vrp.c (nonnull_arg_p): ... here.
3659         * tree.h (nonnull_arg_p): Declare.
3660         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
3661         here, register ptr != 0 for nonnull_arg_p pointer arguments.
3662         Properly initialize static chain and by-reference result pointer.
3663         (run_scc_vn): Adjust.
3665 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
3667         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
3668         TUNE_I6400.
3670 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
3672         * config/aarch64/aarch64-protos.h
3673         (aarch64_gen_atomic_cas): Declare.
3674         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
3675         Choose appropriate instruction pattern for the target.
3676         (aarch64_gen_atomic_cas): New.
3677         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
3678         (atomic_compare_and_swap<mode>_1): Rename to
3679         aarch64_compare_and_swap<mode>.  Fix some indentation.
3680         (aarch64_compare_and_swap<mode>_lse): New.
3681         (aarch64_atomic_cas<mode>): New.
3683 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
3685         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
3686         (TARGET_LSE): New.
3688 2015-08-13  Richard Biener  <rguenther@suse.de>
3690         PR tree-optimization/67191
3691         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
3692         assert we value-numbered last stmts operand because it can validly
3693         trigger for unreachable code.
3695 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3697         PR rtl-optimization/67103
3698         * ifcvt.c (noce_try_store_flag_constants): Move
3699         x = (-(test != 0) & (b - a)) + a transformation to...
3700         (noce_try_cmove): ... Here.  Try it if normal conditional
3701         move fails.
3703 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
3705         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
3706         pseudo-processors.
3707         * config/mips/mips.md (processor): Remove w32 and w64.
3709 2015-08-13  Richard Biener  <rguenther@suse.de>
3711         PR tree-optimization/66502
3712         PR tree-optimization/67167
3713         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
3714         backedge arguments.
3715         (vn_phi_lookup): Adjust.
3716         (vn_phi_insert): Likewise.
3717         (visit_phi): Prefer to value-number to another PHI node
3718         over value-numbering to a PHI argument.
3719         (init_scc_vn): Mark DFS back edges.
3721 2015-08-13  Richard Biener  <rguenther@suse.de>
3723         * gimple.h (gcall::code_): New constant static member.
3724         (gcond::code_): Likewise.
3725         * gimple.c (gcall::code_): Define.
3726         (gcond::code_): Likewise.
3727         (is_a_helper <const gcond *>): Add.
3728         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
3729         and forward to a new gcall overload with less checking and a
3730         cheaper way to access the operand.
3731         (gimple_call_lhs_ptr): Likewise.
3732         (gimple_call_set_lhs): Likewise.
3733         (gimple_call_internal_p): Likewise.
3734         (gimple_call_with_bounds_p): Likewise.
3735         (gimple_call_set_with_bounds): Likewise.
3736         (gimple_call_internal_fn): Likewise.
3737         (gimple_call_set_ctrl_altering): Likewise.
3738         (gimple_call_ctrl_altering_p): Likewise.
3739         (gimple_call_fntype): Likewise.
3740         (gimple_call_fn): Likewise.
3741         (gimple_call_fn_ptr): Likewise.
3742         (gimple_call_set_fndecl): Likewise.
3743         (gimple_call_fndecl): Likewise.
3744         (gimple_call_chain): Likewise.
3745         (gimple_call_num_args): Likewise.
3746         (gimple_call_arg): Likewise.
3747         (gimple_call_arg_ptr): Likewise.
3748         (gimple_call_set_arg): Likewise.
3749         (gimple_call_noreturn_p): Likewise.
3750         (gimple_cond_code): Likewise.
3751         (gimple_cond_lhs): Likewise.
3752         (gimple_cond_rhs): Likewise.
3753         (gimple_has_lhs): Reduce checking.
3755 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3757         PR middle-end/25529
3758         * match.pd (div (mult @0 @1) @1) : New simplifier.
3760 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
3762         PR target/67071
3763         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
3764         predicate to allow construction of vector constants using the
3765         VSLDOI vector shift instruction.
3767         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
3768         declaration.
3770         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
3771         the number of bytes to be shifted left and filled in with either
3772         all zero or all one bits.
3773         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
3774         methods exist.
3775         (output_vec_const_move): On power8, generate XXLORC to generate
3776         a vector constant with all 1's. Do a split if we need to use a
3777         VSLDOI instruction.
3779         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
3780         properly test for the MSB.
3782         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
3783         vector constants that can be created with VSLDOI.
3785 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
3787         revert:
3788         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3789         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3790         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3791         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3792         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3793         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3794         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3795         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3796         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3798 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
3800         * config/xtensa/constraints.md (define_constraint "Y"): New
3801         constraint.
3802         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
3803         * config/xtensa/linux.h (ASM_SPEC): Likewise.
3804         * config/xtensa/predicates.md (move_operand): Match constants
3805         and symbols in the presence of TARGET_AUTO_LITPOOLS.
3806         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
3807         immediate references to TLS data.
3808         (xtensa_emit_move_sequence): Don't force constants to memory in
3809         the presence of TARGET_AUTO_LITPOOLS.
3810         (print_operand): Add 'y' format, same as default, but capable of
3811         printing SF mode constants as well.
3812         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
3813         (movsf_internal): Add movi pattern that loads literal.
3814         (movsf, movdf): Don't force constants to memory in the presence
3815         of TARGET_AUTO_LITPOOLS.
3816         (movdf_internal): Add 'Y' constraint.
3817         * config/xtensa/xtensa.opt (mauto-litpools): New option.
3818         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
3820 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
3822         * config/arm/arm-fpus.def: Replace booleans with feature flags.
3823         Update comment.
3824         * config/arm/arm.c (ARM_FPU): Update macro.
3825         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
3826         (TARGET_FP16): Likewise.
3827         (TARGET_CRYPTO): Likewise.
3828         (TARGET_NEON): Likewise.
3829         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
3830         field features.
3832 2015-08-12  Tom de Vries  <tom@codesourcery.com>
3834         PR other/67092
3835         PR other/67098
3836         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
3837         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
3838         accordingly.  Mention default for --with-stage1-ldflags.
3840 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
3842         * config/arm/arm.h (arm_fpu_feature_set): New.
3843         (ARM_FPU_FSET_HAS): New.
3844         (FPU_FL_NONE): New.
3845         (FPU_FL_NEON): New.
3846         (FPU_FL_FP16): New.
3847         (FPU_FL_CRYPTO): New.
3849 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3851         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
3852         after -mcmodel=large -fPIC sorry.
3854 2015-08-12  Richard Biener  <rguenther@suse.de>
3856         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
3857         comparison operand order and commutative ternary op operand order.
3858         (sccvn_dom_walker::cond_stack): New state to track temporary
3859         expressions.
3860         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
3861         no longer valid.
3862         (sccvn_dom_walker::record_cond): Add a single temporary conditional
3863         expression.
3864         (sccvn_dom_walker::record_conds): Add a temporary conditional
3865         expressions and all related expressions also true/false.
3866         (sccvn_dom_walker::before_dom_children): Record temporary
3867         expressions based on the controlling condition of a single
3868         predecessor.  When trying to simplify a conditional statement
3869         lookup expressions we might have inserted earlier.
3871 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
3873         PR target/67127
3874         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
3875         to ARM core registers.
3877 2015-08-12  Nathan Sidwell  <nathan@acm.org>
3879         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
3880         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
3882 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
3884         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
3885         line with comments.
3886         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
3888 2015-08-12  Richard Biener  <rguenther@suse.de>
3890         * gimple.h (remove_pointer): New trait.
3891         (GIMPLE_CHECK2): New inline template function.
3892         (gassign::code_): New constant static member.
3893         (is_a_helper<const gassign *>): Add.
3894         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
3895         and forward to a new gassign overload with less checking and a
3896         cheaper way to access the operand.
3897         (gimple_assign_lhs_ptr): Likewise.
3898         (gimple_assign_set_lhs): Likewise.
3899         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
3900         Likewise.
3901         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
3902         Likewise.
3903         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
3904         Likewise.
3905         (gimple_assign_rhs_code): Likewise.
3906         * gimple.c (gassign::code_): Define.
3908 2015-08-12  Richard Biener  <rguenther@suse.de>
3910         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3911         Eliminate edges marked as not executable by SCCVN.
3912         * tree-ssa-sccvn.c: Include gimple-iterator.h.
3913         (cond_dom_walker): Rename to sccvn_dom_walker.
3914         (sccvn_dom_walker::before_dom_children): Value-number defs
3915         of all stmts.
3916         (run_scc_vn): Remove loop value-numbering all SSA names.
3917         Drop not visited SSA names to varying.
3919 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
3921         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3922         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3923         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3924         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3925         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3926         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3927         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3928         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3929         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3931 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
3933         PR target/66954
3934         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
3935         to enum feature_priority and feature_list.
3936         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
3937         and isa_names_table.
3939 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
3941         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
3942         vect_induction_def.
3944 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3946         PR c/66098
3947         PR c/66711
3948         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
3949         account when deciding what was the command-line status.
3951 2015-08-11  Nathan Sidwell  <nathan@acm.org>
3953         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
3955         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
3956         we're not the only contributor to target phi.
3958 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
3960         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
3961         FIXED_REG0.
3963 2015-08-11  Tom de Vries  <tom@codesourcery.com>
3965         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
3967 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
3969         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
3970         with CPU_SLM.
3971         * config/i386/i386.md (cpu): Remove knl.
3973 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
3975         PR libgomp/65742
3976         PR middle-end/66332
3977         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
3978         open-coded sequence.
3979         * omp-low.c (oacc_process_reduction_data): Remove handline of
3980         GOMP_DEVICE_HOST_NONSHM.
3982         * lto-streamer-in.c (lto_input_mode_table): Adjust to
3983         GET_MODE_INNER changes.
3985 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
3986             Ilya Verbin  <ilya.verbin@intel.com>
3988         * lto-streamer-in.c (lto_input_mode_table): Correctly advance
3989         iterator.
3991 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3993         * doc/options.texi (EnabledBy): Document that the argument must be
3994         a Common option.
3995         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
3996         Not enabled by -Wall.
3997         * optc-gen.awk: Give nicer error messages. Detect if the argument
3998         of EnabledBy is not a Common option.
3999         * common.opt (Wnull-dereference): Not enabled by -Wall.
4000         * opt-functions.awk (lang_enabled_by): Nicer error messages.
4002 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4004         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
4005         model == 0x4f as Broadwell.
4007 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
4009         PR rtl-optimization/67028
4010         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
4011         Add test to see if a const_int fits in the new mode.
4013 2015-08-07  DJ Delorie  <dj@redhat.com>
4015         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
4016         
4017 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
4019         PR rtl-optimization/67029
4020         * ira-color.c: Include "recog.h" before including "ira-int.h".
4021         * target-globals.c: Likewise.
4022         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
4023         adds an alternative_mask argument and use it instead of
4024         preferred_alternatives.
4025         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
4026         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
4027         * sched-deps.c: Include "ira-int.h" after including "ira.h".
4028         (sched_analyze_insn): Update call to
4029         ira_implicitly_set_insn_hard_regs.
4030         * sel-sched.c: Include "ira-int.h" after including "ira.h".
4031         (implicit_clobber_conflict_p): Update call to
4032         ira_implicitly_set_insn_hard_regs.
4034 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
4036         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
4038 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4040         PR target/67002
4041         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
4042         currently_expanding_to_rtl is set.
4044 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
4046         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
4047         * configure: Regenerate.
4049 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4050             Jiong Wang  <jiong.wang@arm.com>
4052         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4053         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4054         (REG_CLASS_NAMES): Likewise.
4055         (REG_CLASS_CONTENTS): Likewise.
4056         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4057         (aarch64_register_move_cost): Likewise.
4058         (aarch64_load_symref_appropriately): Invoke the new added pattern if
4059         possible.
4060         * config/aarch64/constraints.md (Uc0): New constraint.
4062 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
4064         * config/aarch64/constraints.md (Usf): Add the test of
4065         aarch64_is_noplt_call_p.
4067 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
4069         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
4070         declaration.
4071         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
4072         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
4073         (call_symbol): Likewise.
4075 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
4077         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
4078         for vectorizing multiplication patterns.
4079         * tree-vectorizer.h: Adjust the number of patterns.
4081 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
4083         * config/i386/sse.md (*vec_concatv2df): Declare added
4084         alternatives as sselog type.
4086 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4088         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
4089         all GPRs.
4091 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4093         * config/s390/s390.c (s390_expand_tbegin): Expand either
4094         tbegin_1_z13 or tbegin_1 depending on VX flag.
4095         * config/s390/s390.md ("tbegin_1_z13"): New expander.
4097 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4099         * config/s390/s390.opt: Clarify description for -mzvector
4100         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
4101         -mzvector.
4103 2015-08-06  Richard Biener  <rguenther@suse.de>
4105         * gimple.h (gimple_call_set_fn): Access op member directly.
4106         (gimple_call_chain_ptr): Likewise.
4107         (gimple_call_set_chain): Likewise.
4108         (gimple_cond_lhs_ptr): Likewise.
4109         (gimple_cond_set_lhs): Likewise.
4110         (gimple_cond_rhs_ptr): Likewise.
4111         (gimple_cond_set_rhs): Likewise.
4112         (gimple_cond_true_label): Likewise.
4113         (gimple_cond_set_true_label): Likewise.
4114         (gimple_cond_set_false_label): Likewise.
4115         (gimple_cond_false_label): Likewise.
4116         (gimple_label_label): Likewise.
4117         (gimple_label_set_label): Likewise.
4118         (gimple_goto_set_dest): Likewise.
4119         (gimple_asm_input_op): Likewise.
4120         (gimple_asm_input_op_ptr): Likewise.
4121         (gimple_asm_set_input_op): Likewise.
4122         (gimple_asm_output_op): Likewise.
4123         (gimple_asm_output_op_ptr): Likewise.
4124         (gimple_asm_set_output_op): Likewise.
4125         (gimple_asm_clobber_op): Likewise.
4126         (gimple_asm_set_clobber_op): Likewise.
4127         (gimple_asm_label_op): Likewise.
4128         (gimple_asm_set_label_op): Likewise.
4129         (gimple_switch_index): Likewise.
4130         (gimple_switch_index_ptr): Likewise.
4131         (gimple_return_retval_ptr): Likewise.
4132         (gimple_return_retval): Likewise.
4133         (gimple_return_set_retval): Likewise.
4134         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
4135         (gimple_switch_label): Likewise.
4136         (gimple_switch_set_label): Likewise.
4138 2015-08-06  Richard Biener  <rguenther@suse.de>
4140         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
4141         bool comparison canonicalization and restrict to integers.
4143 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
4145         * coretypes.h (enum symbol_visibility): Relocate here.
4146         * flag-types.h (enum symbol_visibility): Remove.
4147         * tree-core.h (enum symbol_visibility): Remove.
4149 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
4151         PR target/66870
4152         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
4153         for no_split_stack function attribute along with
4154         flag_split_stack.
4155         (rs6000_expand_split_stack_prologue): Likewise.
4157 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4158             Jeff Law  <law@redhat.com>
4160         PR c/16351
4161         * doc/invoke.texi (Wnull-dereference): New.
4162         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
4163         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
4164         Warn for potential NULL dereferences.
4165         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
4166         * ubsan.c (instrument_nonnull_arg): Call
4167         infer_nonnull_range_by_attribute.
4168         (instrument_nonnull_return): Likewise.
4169         * common.opt (Wnull-dereference); New.
4170         * gimple.c (infer_nonnull_range): Remove bool arguments.
4171         (infer_nonnull_range_by_dereference): New.
4172         (infer_nonnull_range_by_attribute): New.
4173         * gimple.h: Update declarations.
4175 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4177         * gensupport.c (sequence_num): Replace with...
4178         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
4179         ...these new variables.
4180         (init_rtx_reader_args_cb): Update accordingly.
4181         (get_num_code_insns): Likewise.
4182         (read_md_rtx): Rework to use a while loop and get_c_test.
4183         Use the new counters.  Remove redundant DEFINE_SUBST case.
4184         * genoutput.c (gen_split): Delete.
4185         (main): Don't call it.
4187 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4189         * gensupport.h (get_c_test): Declare.
4190         * gensupport.c (get_c_test): New function.
4191         * genconditions.c (main): Use it.
4192         * genrecog.c (validate_pattern): Likewise.
4193         (match_pattern_1): Likewise.  Remove c_test argument.
4194         (match_pattern): Update accordingly and remove c_test argument.
4195         (main): Update accordingly.
4197 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4199         * gensupport.h (get_num_insn_codes): Declare.
4200         * gensupport.c (get_num_insn_codes): New function.
4201         * genattrtab.c (optimize_attrs): Rename max_insn_code to
4202         num_insn_codes.
4203         (main): Likewise.  Use get_num_insn_codes.
4204         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
4206 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4208         PR middle-end/66311
4209         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
4210         is zero- rather than sign-extended.
4212 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
4214         * target-insns.def (can_extend): Delete.
4216 2015-08-05  Richard Biener  <rguenther@suse.de>
4218         PR tree-optimization/67121
4219         * tree-if-conv.c (combine_blocks): Clear range-info produced
4220         by stmts no longer executed conditionally.
4222 2015-08-05  Nick Clifton  <nickc@redhat.com>
4224         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
4225         to allow identical far pointers to remain.
4227 2015-08-05  Richard Biener  <rguenther@suse.de>
4229         PR middle-end/67120
4230         * match.pd: Compare address bases with == if they are decls
4231         or SSA names, not operand_equal_p.  Otherwise fail.
4233 2015-08-05  Richard Biener  <rguenther@suse.de>
4235         PR tree-optimization/67055
4236         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
4237         NULL gimple_block.
4239         * g++.dg/torture/pr67055.C: New testcase.
4241 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
4243         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
4244         noavx512vl.
4245         (define_attr "enabled"): Handle avx521vl and noavx512vl.
4246         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
4247         AVX-512 alternative out of SSE.
4248         (define_insn "*vec_concatv2df"): Ditto.
4250 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
4252         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
4253         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
4254         CODE_FOR_avx_ptestv4di.
4255         * config/i386/sse.md (define_mode_iterator V_AVX): New.
4256         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
4257         (define_insn "avx_ptest256"): Merge this ...
4258         (define_insn "sse4_1_ptest"): And this ...
4259         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
4261 2015-08-05  Richard Biener  <rguenther@suse.de>
4263         PR tree-optimization/67109
4264         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
4265         against too big groups.  Print whether this is a load or store
4266         group.  Rename from ...
4267         (vect_analyze_group_access): ... this which is now a wrapper
4268         dissolving an invalid group.
4269         (vect_analyze_data_ref_accesses): Print whether this is a load
4270         or store group.
4272 2015-08-05  Richard Biener  <rguenther@suse.de>
4274         PR middle-end/67107
4275         * match.pd: Guard const_binop result checking against NULL_TREE
4276         result.
4278 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
4280         * cse.c (cse_insn): Restoring old behaviour for src_eqv
4281          when dest and value in the REG_EQUAL are same and dest
4282          is STRICT_LOW_PART.
4284 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
4286         * config/moxie/moxie.h (PRINT_OPERAND,
4287           PRINT_OPERAND_ADDRESS): Remove macros.
4288         * config/moxie/moxie-protos.h (moxie_print_operand,
4289           moxie_print_operand_address): Remove declaration.
4290         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
4291           TARGET_PRINT_OPERAND_ADDRESS): Define.
4292           (moxie_print_operand, moxie_print_operand_address): Make static.
4294 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4296         PR target/66731
4297         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
4298         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
4300 2015-08-04  Richard Biener  <rguenther@suse.de>
4302         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
4303         generated code.
4304         (dt_operand::gen_gimple_expr): Adjust.
4306 2015-08-04  Richard Biener  <rguenther@suse.de>
4308         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
4309         bool compares on RHS.
4310         * match.pd: Add X ==/!= !X is false/true pattern.
4312 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
4314         * config/aarch64/aarch64.c: Change inner loop statement cost
4315         to be consistent with other targets.
4317 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
4319         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
4320         targets.
4322 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4324         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
4325         (machine_function): Remove pseudos field.
4327 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4329         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4330         Exit early and use target_option_current_node if processing current
4331         pragma.
4333 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4335         * doc/extend.texi (AArch64 Function Attributes): New node.
4336         (AArch64 Pragmas): Likewise.
4338 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4340         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
4341         Initialize simd builtins if TARGET_SIMD.
4342         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
4343         Make sure that the builtins are initialized only once no matter how
4344         many times the function is called.
4345         (aarch64_init_builtins): Unconditionally initialize crc builtins.
4346         (aarch64_relayout_simd_param): New function.
4347         (aarch64_simd_expand_args): Use above during argument expansion.
4348         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
4349         simd builtins if TARGET_SIMD.
4350         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
4351         prototype.
4352         (aarch64_relayout_simd_types): Likewise.
4354 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4356         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
4357         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
4358         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
4359         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4360         static keyword.
4361         (aarch64_reset_previous_fndecl): New function.
4362         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
4363         the string.
4364         * config/aarch64/aarch64-c.c: New file.
4365         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
4366         Push and pop options at beginning and end.  Remove ifdef
4367         __ARM_FEATURE_CRC32.
4368         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
4369         Add pragma +nothing+simd and +nothing+crypto where appropriate.
4370         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
4371         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
4372         Define prototype.
4373         (aarch64_register_pragmas): Likewise.
4374         (aarch64_reset_previous_fndecl): Likewise.
4375         (aarch64_process_target_attr): Likewise.
4376         (aarch64_override_options_internal): Likewise.
4378 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4380         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
4381         New function.
4382         (aarch64_can_inline_p): Likewise.
4383         (TARGET_CAN_INLINE_P): Define.
4385 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4387         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4388         Remove static.  Handle OPT_mgeneral_regs_only,
4389         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
4390         OPT_momit_leaf_frame_pointer.
4391         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
4392         (aarch64_attr_opt_type): New enum.
4393         (aarch64_attribute_info): New struct.
4394         (aarch64_handle_attr_arch): New function.
4395         (aarch64_handle_attr_cpu): Likewise.
4396         (aarch64_handle_attr_tune): Likewise.
4397         (aarch64_handle_attr_isa_flags): Likewise.
4398         (aarch64_attributes): New table.
4399         (aarch64_process_one_target_attr): New function.
4400         (num_occurences_in_str): Likewise.
4401         (aarch64_process_target_attr): Likewise.
4402         (aarch64_option_valid_attribute_p): Likewise.
4403         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
4404         * config/aarch64/aarch64-protos.h: Include input.h
4405         (aarch64_handle_option): Declare prototype.
4407 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4409         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
4410         * config/aarch64/aarch64.c: Include target-globals.h
4411         (aarch64_previous_fndecl): New variable.
4412         (aarch64_set_current_function): New function.
4413         (TARGET_SET_CURRENT_FUNCTION): Define.
4415 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4417         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
4418         (explicit_arch): Likewise.
4419         (x_aarch64_isa_flags): Likewise.
4420         (mgeneral-regs-only): Mark as Save.
4421         (mfix-cortex-a53-835769): Likewise.
4422         (mcmodel=): Likewise.
4423         (mstrict-align): Likewise.
4424         (momit-leaf-frame-pointer): Likewise.
4425         (mtls-dialect): Likewise.
4426         (master=): Likewise.
4427         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
4428         (aarch64_isa_flags): Remove extern declaration.
4429         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
4430         to indicate success or failure.
4431         (aarch64_validate_march): Likewise.
4432         (aarch64_validate_mtune): Likewise.
4433         (aarch64_isa_flags): Delete.
4434         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
4435         instead of aarch64_isa_flags.
4436         (aarch64_get_tune_cpu): New function.
4437         (aarch64_get_arch): Likewise.
4438         (aarch64_override_options): Use above and set up explicit_tune_core
4439         and explicit_arch.
4440         (aarch64_print_extension): Move earlier in file.  Add isa_flags
4441         argument and use that instead of the global aarch64_isa_flags.
4442         (aarch64_option_save): New function.
4443         (aarch64_option_restore): Likewise.
4444         (aarch64_option_print): Likewise.
4445         (aarch64_declare_function_name): Likewise.
4446         (aarch64_start_file): Delete.
4447         (TARGET_ASM_FILE_START): Do not define.
4448         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
4449         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
4450         Declare prototype.
4452 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4454         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
4455         flag_omit_leaf_frame_pointer to 2.
4457 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4459         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
4460         define to 0 or 1.
4461         (TARGET_FIX_ERR_A53_835769): New macro.
4462         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
4463         handling of opts->x_aarch64_fix_a53_err835769.
4464         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
4465         than aarch64_fix_a53_err835769.
4466         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
4467         * config/aarch64/aarch64-linux.h: Likewise.
4469 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
4471         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
4472         ix86_expand_int_movcc as boolean.
4474 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4476         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
4477         (aarch64_cpu_string): Likewise.
4478         (aarch64_tune_string): Likewise.
4479         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
4480         (aarch64_parse_extension): Return aarch64_parse_opt_result.
4481         Add extra argument to put result into.
4482         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
4483         (aarch64_parse_cpu): Add arguments to put results into. Return
4484         aarch64_parse_opt_result.
4485         (aarch64_parse_tune): Likewise.
4486         (aarch64_override_options_after_change_1): New function.
4487         (aarch64_override_options_internal): New function.
4488         (aarch64_validate_mcpu): Likewise.
4489         (aarch64_validate_march): Likewise.
4490         (aarch64_validate_mtune): Likewise.
4491         (aarch64_override_options): Update to reflect above changes.
4492         Move some logic into aarch64_override_options_internal.
4493         Initialize target_option_default_node and target_option_current_node.
4494         (aarch64_override_options_after_change): Move logic into
4495         aarch64_override_options_after_change_1 and call it with global_options.
4496         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
4497         flag values from that.
4499 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4501         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4502         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
4503         * config/aarch64/aarch64.c (struct processor): Add arch field.
4504         (all_architectures): Handle above, move above all_cores.
4505         (all_cores): Handle above.
4506         (aarch64_parse_arch): Handle above changes.
4507         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
4508         above.  Update comments.
4509         (armv8.1-a): Likewise.
4510         * config/aarch64/aarch64-cores.def: Update according to above.
4511         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
4512         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
4513         aarch64_arch_driver_info.
4515 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4517         * config/aarch64/aarch64.c (struct processor): Add ident field.
4518         Rename core sched_core.
4519         (all_cores): Handle above changes.
4520         (all_architectures): Likewise.
4521         (aarch64_parse_arch): Likewise.
4522         (aarch64_override_options): Likewise.
4524 2015-08-04  Richard Biener  <rguenther@suse.de>
4526         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
4527         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
4528         comparisons embedded in [VEC_]COND_EXPRs.
4530 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
4532         * tree-if-conv.c: Fix various typos in comments.
4533         * tree-vect-stmts.c: Likewise.
4535 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4537         PR tree-optimization/67043
4538         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
4539         preheader after hoisting invariant in it.
4540         (find_defs): Force recomputation of all luids.
4542 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
4544         * config/rs6000/htm.md (tabort.): Restrict the source operand to
4545         using a base register.
4547 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
4549         * main.c (main): Pass in NULL for toplev's external_timer.
4550         * timevar.c: Include coretypes.h.
4551         (class timer::named_items): New.
4552         (timer::named_items::named_items): New.
4553         (timer::named_items::~named_items): New.
4554         (timer::named_items::push): New.
4555         (timer::named_items::pop): New.
4556         (timer::named_items::print): New.
4557         (timer::timer): Initialize field "m_jit_client_items".
4558         (timer::~timer): New.
4559         (timer::push): Move bulk of implementation to...
4560         (timer::push_internal): ...here.  New function.
4561         (timer::pop): Move bulk of implementation to...
4562         (timer::pop_internal): ...here.  New function.
4563         (timer::push_client_item): New.
4564         (timer::pop_client_item): New.
4565         (timer::print_row): New function, taken from timer::print.
4566         (timer::print): Print "GCC items" header if we also have client
4567         items.  Move row-printing to timer::print_row.  Print any client
4568         items.
4569         (timer::get_topmost_item_name): New method.
4570         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
4571         (TV_JIT_CLIENT_CODE): New.
4572         * timevar.h (timer::push_client_item): New declaration.
4573         (timer::pop_client_item): New declaration.
4574         (timer::get_topmost_item_name): New method.
4575         (timer::push_internal): New declaration.
4576         (timer::pop_internal): New declaration.
4577         (timer::print_row): New declaration.
4578         (timer::named_items): New declaration.
4579         (timer::m_jit_client_items): New field.
4580         (timer): Add friend class named_items.
4581         (auto_timevar::auto_timevar): Add timer param.
4582         (auto_timevar::~auto_timevar): Use field "m_timer".
4583         (auto_timevar::m_timer): New field.
4584         * toplev.c (initialize_rtl): Add g_timer as param when
4585         constructing auto_timevar instance.
4586         (toplev::toplev): Add "external_timer" param, and use it to
4587         initialize the "g_timer" global if non-NULL.
4588         (toplev::~toplev): If this created "g_timer", delete it.
4589         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
4590         with "external_timer" timer *.
4592 2015-08-03  Alexander Basov <coohpt@gmail.com>
4594         PR middle-end/64744
4595         PR middle-end/48470
4596         PR middle-end/43404
4597         * cfgexpand.c (expand_one_var): Add check if stack is going to
4598         be used in naked function.
4599         * expr.c (expand_expr_addr_expr_1): Remove excess checking
4600         whether expression should not reside in MEM.
4601         * function.c (use_register_for_decl): Do not use registers for
4602         non-register things (volatile, float, BLKMode) in naked functions.
4604 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
4606         PR target/67060
4607         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
4608         Adjust splits to match new pattern.
4610 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4612         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
4613         (VEC_M): Likewise.
4614         (VEC_N): Likewise.
4615         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
4616         point in VSX registers.
4618         * config/rs6000/constraints.md (wb constraint): Document unused
4619         w<x> constraint.
4620         (we constraint): Likewise.
4621         (wo constraint): Likewise.
4622         (wp constraint): New constraint for IEEE 128-bit floating point in
4623         VSX registers.
4624         (wq constraint): Likewise.
4626         * config/rs6000/predicates.md (easy_fp_constant): Add support for
4627         IEEE 128-bit floating point in VSX registers.
4628         (easy_scalar_constant): Likewise.
4630         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
4631         constraints (wp, wq) for IEEE 128-bit floating point in VSX
4632         registers.
4633         (rs6000_init_hard_regno_mode_ok): Likewise.
4635         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
4636         floating point in VSX registers.
4637         (VSX_L): Likewise.
4638         (VSX_M): Likewise.
4639         (VSX_M2): Likewise.
4640         (VSm): Likewise.
4641         (VSs): Likewise.
4642         (VSr): Likewise.
4643         (VSa): Likewise.
4644         (VSv): Likewise.
4645         (vsx_le_permute_<mode>): Add support to properly swap bytes for
4646         IEEE 128-bit floating point in VSX registers on little endian.
4647         (vsx_le_undo_permute_<mode>): Likewise.
4648         (vsx_le_perm_load_<mode>): Likewise.
4649         (vsx_le_perm_store_<mode>): Likewise.
4650         (splitters for IEEE 128-bit fp moves): Likewise.
4652         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
4653         wq constraints.
4655         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
4656         floating point in VSX registers.
4657         (VM2): Likewise.
4659         * doc/md.text (Machine Constraints): Document wp and wq
4660         constraints on PowerPC.
4662 2015-08-03  Jeff Law  <law@redhat.com>
4664         PR middle-end/66314
4665         PR gcov-profile/66899
4666         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
4667         iterate over the jump threading paths when an element in the
4668         jump threading paths array is eliminated.
4670 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
4672         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
4674 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
4676         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
4677         is_use_properly_guarded the variable def_preds.  Free its
4678         contents before returning.
4679         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
4680         (is_use_properly_guarded): Replace local variable def_preds with
4681         a parameter.  Adjust accordingly.  Only update *def_preds if it's
4682         the empty vector.
4684 2015-08-03  Richard Biener  <rguenther@suse.de>
4686         * genmatch.c (simplify::for_subst_vec): New member.
4687         (binary_ok): New helper for for lowering.
4688         (lower_for): Delay substituting operators into result expressions
4689         if we can merge the results eventually again.
4690         (capture_info::walk_result): Adjust for user_id appearing as
4691         result expression operator.
4692         (expr::gen_transform): Likewise.
4693         (dt_simplify::gen_1): Likewise.
4694         (dt_simplify::gen): Pass not substituted operators to tail
4695         functions or initialize local variable with it.
4696         (decision_tree::gen): Adjust function signature.
4697         * match.pd: Fix tests against global code and add default
4698         cases to switch stmts.
4700 2015-08-03  Richard Biener  <rguenther@suse.de>
4702         * genmatch.c (dt_simplify::gen): Create captures array
4703         with an initializer.
4705 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4707         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
4708         the host compiler is affected by placement new aliasing bug.
4709         * configure: Regenerate.
4710         * Makefile.in (ALIASING_FLAGS): New variable.
4711         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
4713 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4715         PR target/66731
4716         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
4717         (negmulsf3_vfp): Likewise.
4718         (muldf3negdf_vfp): Disable for -frounding-math.
4719         (mulsf3negsf_vfp): Likewise.
4720         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
4721         fix MULT cost with -frounding-math.
4723 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4725         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
4726         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
4727         explicit.  Prefer to add the flag whenever possible.
4728         (noce_process_if_block): Try noce_try_store_flag_constants before
4729         noce_try_cmove.
4731 2015-08-03  Richard Biener  <rguenther@suse.de>
4733         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
4734         New hash-map to record equivalent transforms.
4735         (dt_node::analyze): Populate the equivalent transforms hash-map.
4736         (dt_simplify::info): Add reference to hash-map entry.
4737         (dt_simplify::gen): If we have split out a function for the
4738         transform, generate a call to it.
4739         (sinfo_hashmap_traits::hash): New function.
4740         (compare_op): New helper function for ...
4741         (sinfo_hashmap_traits::equal_keys): ... this new function.
4742         (decision_tree::gen): Split out common equivalent transforms
4743         into functions.
4745 2015-08-03  Richard Biener  <rguenther@suse.de>
4747         * gimple-fold.c (fold_gimple_assign): Remove folding of
4748         the comparison in COND_EXPRs.
4750 2015-08-03  Richard Biener  <rguenther@suse.de>
4752         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
4753         on the rhs of assignments first simplify the embedded
4754         GENERIC condition.
4756 2015-08-03  Richard Biener  <rguenther@suse.de>
4758         PR tree-optimization/66917
4759         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
4760         field.
4761         (DR_VECT_AUX): New macro.
4762         (set_dr_misalignment): Adjust.
4763         (dr_misalignment): Likewise.
4764         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4765         Compute whether the base is at least element aligned.
4766         * tree-vect-stmts.c (ensure_base_align): Adjust.
4767         (vectorizable_store): If the base is not element aligned
4768         preserve alignment of the original access if misalignment is unknown.
4769         (vectorizable_load): Likewise.
4771 2015-08-02  Martin Sebor  <msebor@redhat.com>
4773         * c-family/c.opt (-Wframe-address): New warning option.
4774         * doc/invoke.texi (Wframe-address): Document it.
4775         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
4776         Clarify possible effects of calling the functions with non-zero
4777         arguments and mention -Wframe-address.
4778         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
4780 2015-08-01  Michael Collison  <michael.collison@linaro.org
4781             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4783         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
4784         (*arm_umin_cmp): Likewise.
4786 2015-08-01  Caroline Tice  <cmtice@google.com>
4788         PR 66521
4789         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
4790         global variables.
4791         (vtbl_find_mangled_name):  New function.
4792         (vtbl_register_mangled_name):  New function.
4793         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
4794         mangled name in mangled name vectors.
4795         (find_or_create_vtbl_map_node):  Ditto.
4796         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
4797         update recursion_depth on function entry; pass it to every recursive
4798         call; automatically exit if depth > 25 (give up looking at that point).
4799         (verify_bb_vtables):  Initialize recursion_depth and pass it to
4800         var_is_used_for_virtual_call_p.
4801         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
4802         global variable decls.
4803         (vtbl_register_mangled_name): New extern function decl.
4805 2015-08-01  Tom de Vries  <tom@codesourcery.com>
4807         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
4808         function.
4809         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
4810         Declare.
4811         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
4812         operation_no_trapping_overflow.  Allow non-overflow operations.
4813         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
4814         operations.
4816 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4818         PR target/67049
4819         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
4821 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4823         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
4824         Enable for TARGET_32BIT.
4825         (*if_move_neg): Likewise.
4827 2015-07-31  Nick Clifton  <nickc@redhat.com>
4829         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
4830         Returns true for __model__.
4831         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4833 2015-07-31  Alan Modra  <amodra@gmail.com>
4835         PR target/66870
4836         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
4837         (rs6000_emit_prologue): Set it.
4838         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
4840 2015-07-31  Richard Biener  <rguenther@suse.de>
4842         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
4843         -> X == (C1 ^ C2) which is already implemented in match.pd.
4844         Remove redundant dispatching to fold_relational_const.
4845         Move unordered self and NaN compares ...
4846         * match.pd: ... as patterns here.  Remove some stray captures
4847         and add a comment.
4849 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
4851         * config/i386/i386.c
4852         (bdesc_special_args): Convert mask type from signed to unsigned for
4853         masked builtins.
4854         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
4855         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
4856         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
4857         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
4858         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
4859         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
4860         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
4861         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
4862         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
4863         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
4864         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
4865         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
4866         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
4867         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
4868         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
4869         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
4870         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
4871         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
4872         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
4873         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
4874         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
4875         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
4876         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
4877         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
4878         * config/i386/i386-builtin-types.def
4879         (V16QI_FTYPE_V16SI): Remove.
4880         (V8DF_FTYPE_V8SI): Ditto.
4881         (V8HI_FTYPE_V8DI): Ditto.
4882         (V8SI_FTYPE_V8DI): Ditto.
4883         (V8SF_FTYPE_V8DF): Ditto.
4884         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
4885         (V16HI_FTYPE_V16SI): Ditto.
4886         (V16SF_FTYPE_V16HI): Ditto.
4887         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
4888         (V16SF_FTYPE_V16SI): Ditto.
4889         (V4DI_FTYPE_V4DI): Ditto.
4890         (V16SI_FTYPE_V16SF): Ditto.
4891         (V16SF_FTYPE_FLOAT): Ditto.
4892         (V8DF_FTYPE_DOUBLE): Ditto.
4893         (V8DI_FTYPE_INT64): Ditto.
4894         (V8DI_FTYPE_V4DI): Ditto.
4895         (V16QI_FTYPE_V8DI): Ditto.
4896         (UINT_FTYPE_V4SF): Ditto.
4897         (UINT64_FTYPE_V4SF): Ditto.
4898         (UINT_FTYPE_V2DF): Ditto.
4899         (UINT64_FTYPE_V2DF): Ditto.
4900         (V16SI_FTYPE_V16SI): Ditto.
4901         (V8DI_FTYPE_V8DI): Ditto.
4902         (V16SI_FTYPE_PV4SI): Ditto.
4903         (V16SF_FTYPE_PV4SF): Ditto.
4904         (V8DI_FTYPE_PV2DI): Ditto.
4905         (V8DF_FTYPE_PV2DF): Ditto.
4906         (V4DI_FTYPE_PV2DI): Ditto.
4907         (V4DF_FTYPE_PV2DF): Ditto.
4908         (V16SI_FTYPE_PV2SI): Ditto.
4909         (V16SF_FTYPE_PV2SF): Ditto.
4910         (V8DI_FTYPE_PV4DI): Ditto.
4911         (V8DF_FTYPE_PV4DF): Ditto.
4912         (V8SF_FTYPE_FLOAT): Ditto.
4913         (V4SF_FTYPE_FLOAT): Ditto.
4914         (V4DF_FTYPE_DOUBLE): Ditto.
4915         (V8SF_FTYPE_PV4SF): Ditto.
4916         (V8SI_FTYPE_PV4SI): Ditto.
4917         (V4SI_FTYPE_PV2SI): Ditto.
4918         (V8SF_FTYPE_PV2SF): Ditto.
4919         (V8SI_FTYPE_PV2SI): Ditto.
4920         (V16SF_FTYPE_PV8SF): Ditto.
4921         (V16SI_FTYPE_PV8SI): Ditto.
4922         (V8DI_FTYPE_V8SF): Ditto.
4923         (V4DI_FTYPE_V4SF): Ditto.
4924         (V2DI_FTYPE_V4SF): Ditto.
4925         (V64QI_FTYPE_QI): Ditto.
4926         (V32HI_FTYPE_HI): Ditto.
4927         (V8UHI_FTYPE_V8UHI): Ditto.
4928         (V16UHI_FTYPE_V16UHI): Ditto.
4929         (V32UHI_FTYPE_V32UHI): Ditto.
4930         (V2UDI_FTYPE_V2UDI): Ditto.
4931         (V4UDI_FTYPE_V4UDI): Ditto.
4932         (V8UDI_FTYPE_V8UDI): Ditto.
4933         (V4USI_FTYPE_V4USI): Ditto.
4934         (V8USI_FTYPE_V8USI): Ditto.
4935         (V16USI_FTYPE_V16USI): Ditto.
4936         (V2DF_FTYPE_V2DF_UINT64): Ditto.
4937         (V2DI_FTYPE_V2DF_V2DF): Ditto.
4938         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
4939         (V8DF_FTYPE_V8DF_V8DI): Ditto.
4940         (V4SF_FTYPE_V4SF_UINT64): Ditto.
4941         (V4SI_FTYPE_V4SF_V4SF): Ditto.
4942         (V16SF_FTYPE_V16SF_V16SI): Ditto.
4943         (V64QI_FTYPE_V32HI_V32HI): Ditto.
4944         (V32HI_FTYPE_V16SI_V16SI): Ditto.
4945         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
4946         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
4947         (V32HI_FTYPE_V64QI_V64QI): Ditto.
4948         (V32HI_FTYPE_V32HI_V32HI): Ditto.
4949         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
4950         (V16SI_FTYPE_V16SI_V4SI): Ditto.
4951         (V16SI_FTYPE_V16SI_V16SI): Ditto.
4952         (V16SI_FTYPE_V32HI_V32HI): Ditto.
4953         (V16SI_FTYPE_V16SI_SI): Ditto.
4954         (V8DI_FTYPE_V8DI_V8DI): Ditto.
4955         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
4956         (V8DI_FTYPE_V16SI_V16SI): Ditto.
4957         (V8DI_FTYPE_V8DI_V2DI): Ditto.
4958         (QI_FTYPE_QI): Ditto.
4959         (SI_FTYPE_SI): Ditto.
4960         (DI_FTYPE_DI): Ditto.
4961         (QI_FTYPE_QI_QI): Ditto.
4962         (QI_FTYPE_QI_INT): Ditto.
4963         (HI_FTYPE_HI_INT): Ditto.
4964         (SI_FTYPE_SI_INT): Ditto.
4965         (DI_FTYPE_DI_INT): Ditto.
4966         (HI_FTYPE_V16QI_V16QI): Ditto.
4967         (SI_FTYPE_V32QI_V32QI): Ditto.
4968         (DI_FTYPE_V64QI_V64QI): Ditto.
4969         (QI_FTYPE_V8HI_V8HI): Ditto.
4970         (HI_FTYPE_V16HI_V16HI): Ditto.
4971         (SI_FTYPE_V32HI_V32HI): Ditto.
4972         (QI_FTYPE_V4SI_V4SI): Ditto.
4973         (QI_FTYPE_V8SI_V8SI): Ditto.
4974         (QI_FTYPE_V2DI_V2DI): Ditto.
4975         (QI_FTYPE_V4DI_V4DI): Ditto.
4976         (QI_FTYPE_V8DI_V8DI): Ditto.
4977         (HI_FTYPE_V16SI_V16SI): Ditto.
4978         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
4979         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
4980         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
4981         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
4982         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
4983         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
4984         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
4985         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
4986         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
4987         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
4988         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
4989         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
4990         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
4991         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
4992         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
4993         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
4994         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
4995         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
4996         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
4997         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
4998         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
4999         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
5000         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
5001         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
5002         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
5003         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
5004         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
5005         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
5006         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
5007         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
5008         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
5009         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
5010         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
5011         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
5012         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
5013         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
5014         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
5015         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
5016         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
5017         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
5018         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
5019         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
5020         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
5021         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
5022         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
5023         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
5024         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
5025         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
5026         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
5027         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
5028         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
5029         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
5030         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
5031         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
5032         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
5033         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
5034         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
5035         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
5036         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
5037         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
5038         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
5039         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
5040         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
5041         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
5042         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
5043         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
5044         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
5045         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
5046         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
5047         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
5048         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
5049         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
5050         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
5051         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
5052         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
5053         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
5054         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
5055         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
5056         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
5057         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
5058         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
5059         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
5060         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
5061         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
5062         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
5063         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
5064         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
5065         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5066         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5067         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5068         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
5069         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5070         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
5071         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
5072         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5073         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5074         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5075         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5076         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
5077         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
5078         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
5079         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5080         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5081         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5082         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5083         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
5084         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
5085         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
5086         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
5087         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5088         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5089         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5090         (HI_FTYPE_HI): Ditto.
5091         (HI_FTYPE_V16QI): Ditto.
5092         (SI_FTYPE_V32QI): Ditto.
5093         (DI_FTYPE_V64QI): Ditto.
5094         (QI_FTYPE_V8HI): Ditto.
5095         (HI_FTYPE_V16HI): Ditto.
5096         (SI_FTYPE_V32HI): Ditto.
5097         (QI_FTYPE_V4SI): Ditto.
5098         (QI_FTYPE_V8SI): Ditto.
5099         (HI_FTYPE_V16SI): Ditto.
5100         (QI_FTYPE_V2DI): Ditto.
5101         (QI_FTYPE_V4DI): Ditto.
5102         (QI_FTYPE_V8DI): Ditto.
5103         (V16QI_FTYPE_HI): Ditto.
5104         (V32QI_FTYPE_SI): Ditto.
5105         (V64QI_FTYPE_DI): Ditto.
5106         (V8HI_FTYPE_QI): Ditto.
5107         (V16HI_FTYPE_HI): Ditto.
5108         (V32HI_FTYPE_SI): Ditto.
5109         (V4SI_FTYPE_QI): Ditto.
5110         (V4SI_FTYPE_HI): Ditto.
5111         (V8SI_FTYPE_QI): Ditto.
5112         (V8SI_FTYPE_HI): Ditto.
5113         (V2DI_FTYPE_QI): Ditto.
5114         (V4DI_FTYPE_QI): Ditto.
5115         (HI_FTYPE_HI_HI): Ditto.
5116         (SI_FTYPE_SI_SI): Ditto.
5117         (DI_FTYPE_DI_DI): Ditto.
5118         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5119         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5120         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5121         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5122         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5123         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5124         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5125         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5126         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5127         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5128         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5129         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5130         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5131         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5132         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5133         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5134         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5135         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5136         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5137         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5138         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
5139         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
5140         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
5141         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
5142         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
5143         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
5144         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
5145         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
5146         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
5147         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
5148         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
5149         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
5150         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
5151         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
5152         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
5153         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
5154         (V16SI_FTYPE_HI): Ditto.
5155         (V8DI_FTYPE_QI): Ditto.
5156         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5157         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5158         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5159         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5160         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5161         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5162         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5163         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5164         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5165         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5166         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5167         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5168         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5169         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5170         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5171         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
5172         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
5173         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5174         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5175         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5176         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5177         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5178         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5179         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5180         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5181         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
5182         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
5183         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
5184         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5185         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5186         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5187         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5188         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5189         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
5190         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
5191         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
5192         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5193         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
5194         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
5195         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
5196         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
5197         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
5198         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
5199         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
5200         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
5201         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
5202         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
5203         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
5204         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5205         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5206         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5207         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5208         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
5209         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5210         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5211         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5212         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5213         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5214         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5215         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5216         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5217         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5218         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5219         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5220         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5221         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
5222         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
5223         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
5224         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5225         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
5226         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
5227         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
5228         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
5229         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
5230         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
5231         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
5232         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
5233         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
5234         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
5235         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
5236         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
5237         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
5238         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
5239         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
5240         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
5241         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
5242         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
5243         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
5244         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
5245         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
5246         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
5247         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
5248         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
5249         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
5250         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
5251         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
5252         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
5253         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
5254         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
5255         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
5256         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
5257         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
5258         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
5259         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
5260         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
5261         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
5262         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
5263         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
5264         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
5265         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
5266         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
5267         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
5268         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
5269         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
5270         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
5271         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
5272         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
5273         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
5274         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
5275         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
5276         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
5277         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
5278         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
5279         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
5280         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
5281         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
5282         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
5283         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
5284         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
5285         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
5286         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
5287         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
5288         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
5289         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
5290         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
5291         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
5292         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
5293         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
5294         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
5295         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
5296         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
5297         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
5298         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
5299         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
5300         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
5301         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
5302         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
5303         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
5304         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
5305         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
5306         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
5307         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
5308         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
5309         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
5310         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
5311         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
5312         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
5313         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
5314         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
5315         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
5316         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
5317         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
5318         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
5319         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
5320         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
5321         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
5322         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
5323         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
5324         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
5325         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
5326         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
5327         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
5328         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
5329         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
5330         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
5331         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
5332         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
5333         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
5334         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
5335         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
5336         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
5337         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
5338         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
5339         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
5340         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
5341         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
5342         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
5343         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
5344         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
5345         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
5346         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
5347         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
5348         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
5349         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
5350         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
5351         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
5352         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
5353         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
5354         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
5355         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
5356         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
5357         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
5358         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
5359         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
5360         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
5361         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
5362         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
5363         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
5364         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
5365         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
5366         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
5367         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
5368         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
5369         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
5370         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
5371         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
5372         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
5373         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
5374         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
5375         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
5376         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
5377         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
5378         (QI_FTYPE_V8DF_INT_QI): Ditto.
5379         (QI_FTYPE_V4DF_INT_QI): Ditto.
5380         (QI_FTYPE_V2DF_INT_QI): Ditto.
5381         (HI_FTYPE_V16SF_INT_HI): Ditto.
5382         (QI_FTYPE_V8SF_INT_QI): Ditto.
5383         (QI_FTYPE_V4SF_INT_QI): Ditto.
5384         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
5386 2015-07-31  Richard Biener  <rguenther@suse.de>
5388         * gimple-fold.c (fold_gimple_assign): Remove folding of
5389         GIMPLE_BINARY_RHS.
5391 2015-07-31  Tom de Vries  <tom@codesourcery.com>
5393         PR tree-optimization/66846
5394         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
5395         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
5396         (expand_omp_target) [ENABLE_CHECKING]: Same.
5397         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
5398         cfun if !LOOPS_NEED_FIXUP.
5399         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
5400         that omp_for already has its own loop struct.
5401         * tree-parloops.c (create_phi_for_local_result)
5402         (create_call_for_reduction): Handle simple latch bb.
5403         (create_parallel_loop): Add simple latch bb to preserve
5404         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
5405         (gen_parallel_loop): Remove call to cancel_loop_tree.
5406         (parallelize_loops): Skip loops that are inner loops of parallelized
5407         loops.
5408         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
5409         verify_loop_structure.
5411 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
5413         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
5414         * config/v850/v850.md (RV_REGNUM): New constants.
5415         * config/v850/v850.c (v850_libcall_value): New functions.
5416         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
5417         (TARGET_LIBCALL_VALUE): Define.
5419 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
5421         * rtl.h (lowpart_subreg): Move in file.
5422         * loop-iv.c (lowpart_subreg): Move to...
5423         * simplify-rtx.c (lowpart_subreg): ...here.
5424           (simplify_binary_operation_1): Use lowpart_subreg instead of
5425           simplify_gen_subreg.
5426         * expr.c (expand_expr_real_2): Ditto.
5427         * emit-rtl.c (gen_lowpart_common): Ditto.
5428         * combine.c (gen_lowpart_for_combine): Ditto.
5429         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
5430           expand_debug_source_expr): Ditto.
5432 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
5434         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
5435         (expand_builtin_atomic_clear): Remove support for atomic_clear
5436         pattern.
5438 2015-07-30  Richard Biener  <rguenther@suse.de>
5440         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
5441         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
5442         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
5443         redundant operand canonicalization.
5445 2015-07-30  David Sherwood  <david.sherwood@arm.com>
5447         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
5448         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
5449         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
5450         * config/arm/arm.c (neon_valid_immediate): Likewise.
5451         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
5452         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
5453         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
5454         (expand_vec_perm_vpshufb2_vpermq): Likewise.
5455         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
5456         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
5457         * config/i386/sse.md
5458         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
5459         (*ssse3_palignr<mode>_perm): Likewise.
5460         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
5461         * config/spu/spu.c (arith_immediate_p): Likewise.
5462         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5463         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
5465 2015-07-30  Richard Biener  <rguenther@suse.de>
5467         * genmatch.c (decision_tree::gen_gimple): Merge with ...
5468         (decision_tree::gen_generic): ... this into ...
5469         (decision_tree::gen): ... this.
5470         (main): Adjust callers.
5472 2015-07-30  Richard Biener  <rguenther@suse.de>
5474         * genmatch.c (verbose): New global.
5475         (warning_at): Add overload with source_location.
5476         (capture_info::capture_info): Add bool whether generating gimple
5477         or generic.  Add gimple member.
5478         (capture_info::cinfo): Add capture member.
5479         (capture_info::walk_match): Record capture.  Warn on
5480         non-captured leafs.
5481         (capture_info::walk_c_expr): Add more fragments captures cannot
5482         escape through.  Warn on escaped captures.
5483         (dt_simplify::gen_1): Warn on operands we force to have no
5484         side-effects.
5485         (main): Initialize verbose.
5486         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
5488 2015-07-30  Richard Biener  <rguenther@suse.de>
5490         PR middle-end/67053
5491         * match.pd: Allow both operands to independently have conversion
5492         when simplifying compares of addresses.
5494 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
5496         PR target/66217
5497         PR target/67045
5498         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
5499         around those cases that need one.
5501 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
5503         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
5505 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
5507         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
5508         New.  Copied from config/i386/gnu-user.h.
5509         (ASM_COMMENT_START): Likewise.
5510         (DBX_REGISTER_NUMBER): Likewise.
5512 2015-07-29  Richard Biener  <rguenther@suse.de>
5514         * gimple-fold.c (fold_gimple_cond): Remove.
5515         (fold_stmt_1): Do not call it.
5517 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
5519         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
5520         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
5522         * config/aarch64/aarch64-modes.def: Add HFmode.
5524         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5525         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
5527         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
5528         aarch64_promoted_type): New.
5530         (aarch64_float_const_representable_p): Disable HFmode.
5531         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
5532         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
5533         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
5535         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
5536         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
5538         * config/aarch64/iterators.md (GPF_F16): New.
5540 2015-07-29  Richard Biener  <rguenther@suse.de>
5542         * match.pd: Merge address comparison patterns and make them
5543         handle some more cases.
5545 2015-07-29  Richard Biener  <rguenther@suse.de>
5547         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
5548         (parser::parse_capture): Add bool argument on whether to reject
5549         unknown captures.
5550         (parser::parse_expr): Adjust.
5551         (parser::parse_op): Likewise.
5552         (parser::parse_pattern): Likewise.
5554 2015-07-29  Richard Biener  <rguenther@suse.de>
5556         * gimple-fold.c (has_use_on_stmt): New function.
5557         (replace_stmt_with_simplification): Use it to allow
5558         abnormals originally referenced in the stmt.
5559         (fold_stmt_1): Canonicalize operand order.
5561 2015-07-28  David Sherwood  <david.sherwood@arm.com>
5563         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
5564         GET_MODE_INNER unconditionally.
5565         * config/spu/spu.c (arith_immediate_p): Likewise.
5566         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
5567         * expmed.c (synth_mult): Remove check for VOIDmode result from
5568         GET_MODE_INNER.
5569         (expand_mult_const): Likewise.
5570         * fold-const.c (fold_binary_loc): Replace call to element_precision
5571         with call to GET_MODE_PRECISION.
5572         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
5573         m->name.
5574         (emit_mode_inner): Likewise.
5575         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
5576         result check.
5577         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
5578         (GET_MODE_UNIT_PRECISION): Likewise.
5579         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
5580         * simplify-rtx.c (simplify_immed_subreg): Likewise.
5581         * stor-layout.c (bitwise_type_for_mode): Update assert.
5582         (element_precision): Remove.
5584 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
5586         * target-insns.def (reload_load_address): New targetm instruction
5587         pattern.
5588         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
5590 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
5592         * target-insns.def (atomic_test_and_set): New targetm instruction
5593         pattern.
5594         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
5595         HAVE_*/gen_* interface.
5597 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
5599         * target-insns.def (can_extend, ptr_extend): New targetm instruction
5600         patterns.
5601         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
5602         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5603         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5604         * rtlanal.c (nonzero_bits1): Likewise.
5605         (num_sign_bit_copies1): Likewise.
5607 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
5609         * target-insns.def (eh_return): New targetm instruction pattern.
5610         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
5611         interface.
5612         * function.c (thread_prologue_and_epilogue_insns): Remove
5613         preprocessor condition.
5615 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
5617         * target-insns.def (indirect_jump): New targetm instruction pattern.
5618         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
5619         interface.
5621 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
5623         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
5624         instead of nonimmediate_operand.  Remove C condiition.
5626 2015-07-28  Richard Biener  <rguenther@suse.de>
5628         * match.pd: Add more simplification of address comparisons.
5630 2015-07-28  Richard Biener  <rguenther@suse.de>
5632         * match.pd: Re-order two cases in comparison with max/min
5633         value simplification to make it apply for bools.
5635 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5637         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
5638         Handle simple SIGN_EXTEND or ZERO_EXTEND.
5639         (aarch64_rtx_costs): Properly strip extend or extract before
5640         passing down to rtx costs again.
5642 2015-07-28  Nick Clifton  <nickc@redhat.com>
5644         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
5645         Optimizes the case where -mes0 is active and a constant symbolic
5646         address is used.
5647         * config/rl78/rl78-protos.h: Prototype the new function.
5648         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
5650 2015-07-28  Tom de Vries  <tom@codesourcery.com>
5652         * tree-parloops.c (reduc_stmt_res): New function.
5653         (initialize_reductions, add_field_for_reduction)
5654         (create_phi_for_local_result, create_loads_for_reductions)
5655         (create_stores_for_reduction, build_new_reduction): Handle case that
5656         reduc_stmt is a phi.
5657         (gather_scalar_reductions): Allow double_reduc reductions.
5659 2015-07-28  Richard Biener  <rguenther@suse.de>
5661         * fold-const.c (fold_comparison): Remove equality folding
5662         of decl addresses ...
5663         * match.pd: ... here and merge with existing pattern.
5665 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5667         PR tree-optimization/66828
5668         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
5669         from int64_t to uint64_t.
5671 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5673         * opts-common.c (read_cmdline_option): List DriverOnly enum values
5674         as valid only in the error message of the driver, not in the
5675         messages of the language compilers.
5677 2015-07-27  Tom de Vries  <tom@codesourcery.com>
5679         * tree-parloops.c (gather_scalar_reductions): Simplify function
5680         structure.
5682 2015-07-27  Marek Polacek  <polacek@redhat.com>
5684         * ipa-devirt.c (types_same_for_odr): Fix typo.
5686 2015-07-27  Jason Merrill  <jason@redhat.com>
5688         PR debug/66468
5689         * dwarf2out.c (gen_inlined_subroutine_die): Check
5690         cgraph_function_possibly_inlined_p.
5692 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
5694         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
5695         Place integer variant first.
5696         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5698 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
5700         PR/63870
5701         * config/arm/arm-builtins.c (enum arm_builtins):
5702         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
5703         (ARM_BUILTIN_NEON_BASE): Rename macro to....
5704         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
5705         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
5706         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
5708 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
5710         PR/63870
5711         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
5712         Add qualifier_lane_index.
5713         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
5714         (arm_getlane_qualifiers): Use qualifier_lane_index.
5715         (arm_lanemac_qualifiers): Rename to...
5716         (arm_mac_n_qualifiers): ...this.
5717         (LANEMAC_QUALIFIERS): Rename to...
5718         (MAC_N_QUALIFIERS): ...this.
5719         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
5720         (arm_setlane_qualifiers): Use qualifier_lane_index.
5721         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
5722         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
5723         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
5724         (arm_expand_neon_builtin): Handle qualifier_lane_index.
5726         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
5727         * config/arm/arm.c (bounds_check): Likewise, improve error message.
5728         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
5729         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
5730         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
5731         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
5732         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
5733         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
5734         qualifiers to TERNOP_IMM.
5735         (vdup_lane): Change qualifiers to GETLANE.
5736         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
5737         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
5738         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
5739         vqdmlsl_n): Change qualifiers to MAC_N.
5741         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
5742         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
5743         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
5744         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
5745         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
5746         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
5747         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
5748         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
5749         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
5750         Remove call to neon_lane_bounds.
5752 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
5754         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5755         Place integer variant first.
5757 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
5759         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
5760         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
5761         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
5762         for armv6kz targets.
5763         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
5764         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
5765         (FL_FOR_ARCH6ZK): Remove.
5766         (FL_FOR_ARCH6KZ): New.
5767         (arm_arch6zk): New declaration.
5768         * config/arm/arm-tables.opt: Regenerate.
5769         * config/arm/arm.c (arm_arch6kz): New.
5770         (arm_option_override): Set arm_arch6kz.
5771         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
5772         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
5773         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
5775 2015-07-27  Marek Polacek  <polacek@redhat.com>
5777         PR c++/66555
5778         PR c/54979
5779         * doc/invoke.texi: Document -Wtautological-compare.
5781 2015-07-27  Richard Biener  <rguenther@suse.de>
5783         * genmatch.c (decision_tree::gen_gimple): Split out large
5784         subtrees into separate functions.
5785         (decision_tree::gen_generic): Likewise.
5787 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
5789         * config/alpha/alpha.c: Use SUBREG_P predicate.
5790         * config/alpha/predicates.md: Ditto.
5792 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5794         * config.host (s390*-*-*): Include driver-native.c only when
5795         building with s390* as host *and* target.
5797 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
5799         PR target/66930
5800         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
5801         T bit register modified_between_p check.
5803 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
5805         * config/i386/i386.c: Use SUBREG_P predicate.
5806         * config/i386/i386.md: Ditto.
5807         * config/i386/sse.md: Ditto.
5808         * config/i386/predicates.md: Ditto.
5810 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
5812         PR target/67004
5813         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
5814         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
5816 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
5818         * Makefile.in: Remove use of TREEBROWSER.
5819         * config.in: Regenerated.
5820         * configure: Regenerated.
5821         * configure.ac: Remove definition of TREEBROWSER.
5822         * tree-browser.c: Removed.
5823         * tree-browser.def: Removed.
5825 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
5827         * graphite-scop-detection.c: Include gimple-pretty-print.h.
5828         (stmt_simple_for_scop_p): Print when a stmt is not handled in
5829         Graphite.
5830         (scopdet_basic_block_info): Print when a loop or bb cannot be
5831         represented in Graphite.
5833 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
5835         PR target/66648
5836         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
5837         execution guard when min_size is less than size_needed.
5839 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
5841         * doc/install.texi: Document supported versions of ISL.
5843 2015-07-25  Jeff Law  <law@redhat.com>
5845         Revert:
5846         PR lto/66752
5847         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5848         unable to find X NE 0 in the tables, return X as the simplified
5849         condition.
5850         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5851         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
5852         to VISISTED_BBS.  */
5853         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5854         after removing the control flow statement and unnecessary edges.
5856 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
5858         Revert:
5859         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
5861         PR rtl-optimization/64164
5862         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5863         * tree-ssa-copyrename.c: Removed.
5864         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
5865         -ftree-coalesce-vars.
5866         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5867         * common.opt (ftree-copyrename): Ignore.
5868         (ftree-coalesce-inlined-vars): Likewise.
5869         * doc/invoke.texi: Remove the ignored options above.
5870         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5871         * tree-ssa-coalesce.h: ... here.
5872         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5873         headers required by it.
5874         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5875         across variables when flag_tree_coalesce_vars.  Check register
5876         use and promoted modes to allow coalescing.  Moved to
5877         tree-ssa-coalesce.c.
5878         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5879         with its member functions to tree-ssa-coalesce.c.
5880         (var_map_base_init): Likewise.  Renamed to
5881         compute_samebase_partition_bases.
5882         (partition_view_normal): Drop want_bases parameter.
5883         (partition_view_bitmap): Likewise.
5884         * tree-ssa-live.h: Adjust declarations.
5885         * tree-ssa-coalesce.c: Include explow.h.
5886         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5887         default defs at the entry point.
5888         (dump_part_var_map): New.
5889         (compute_optimized_partition_bases): New, called by...
5890         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5891         of compute_samebase_partition_bases.  Adjust.
5892         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5893         * cfgexpand.c (leader_merge): New.
5894         (get_rtl_for_parm_ssa_default_def): New.
5895         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5896         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5897         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
5898         redundant MEM attr setting.
5899         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
5900         from...
5901         (expand_one_stack_var): ... this.  New wrapper to check and
5902         skip already expanded SSA partitions.
5903         (record_alignment_for_reg_var): New, factored out of...
5904         (expand_one_var): ... this.
5905         (expand_one_ssa_partition): New.
5906         (adjust_one_expanded_partition_var): New.
5907         (expand_one_register_var): Check and skip already expanded SSA
5908         partitions.
5909         (expand_used_vars): Don't create DECLs for anonymous SSA
5910         names.  Expand all SSA partitions, then adjust all SSA names.
5911         (pass::execute): Replace the loops that set
5912         SA.partition_to_pseudo from partition leaders and cleared
5913         DECL_RTL for multi-location variables, and that which used to
5914         rename vars and set attrs, with one that clears DECL_RTL and
5915         checks that PARMs and RESULTs default_defs match DECL_RTL.
5916         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5917         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5918         * explow.c (promote_ssa_mode): New.
5919         * explow.h (promote_ssa_mode): Declare.
5920         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5921         * function.c: Include cfgexpand.h.
5922         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5923         (use_register_for_parm_decl): Wrapper for the above to
5924         special-case the result_ptr.
5925         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5926         (split_complex_args): Take assign_parm_data_all argument.
5927         Pass it to rtl_for_parm.  Set up rtl and context for split
5928         args.
5929         (assign_parms_augmented_arg_list): Adjust.
5930         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5931         multiple locations.  Recognize split complex args.
5932         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5933         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
5934         (assign_parm_setup_block): Prefer SSA-assigned location.
5935         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
5936         if stack_parm is NULL.
5937         (assign_parm_setup_stack): Prefer SSA-assigned location.
5938         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
5939         rtl before testing for pointer bounds.  Special-case result_ptr.
5940         (expand_function_start): Maybe reset DECL_RTL of result.
5941         Prefer SSA-assigned location for result and static chain.
5942         Factor out DECL_RESULT and SET_DECL_RTL.
5943         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5944         anonymous SSA names.  Use promote_ssa_mode.
5945         (get_temp_reg): Likewise.
5946         (remove_ssa_form): Adjust.
5947         * stor-layout.c (layout_decl): Don't set mem attributes of
5948         non-MEMs.
5949         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5950         and get its reg_usage for reg invalidation.
5951         (compute_bb_dataflow): Pass it insn.
5952         (emit_notes_in_bb): Likewise.
5954 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
5956         * config/i386/i386.c (ix86_va_start): Remove
5957         unneeded !TARGET_64BIT check.
5958         (ix86_gimplify_va_arg): Ditto.
5960 2015-07-24  Tom de Vries  <tom@codesourcery.com>
5962         * graphite-sese-to-poly.c (build_poly_scop): Always call
5963         rewrite_commutative_reductions_out_of_ssa.
5965 2015-07-24  Tom de Vries  <tom@codesourcery.com>
5967         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
5968         flag_associative_math to FLOAT_TYPE_P.  Honour
5969         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
5971 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5973         PR c++/64079
5974         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
5975         and "%qD" in warning_at instead of "%q+D" in warning.
5977 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
5979         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
5980         (ix86_function_abi): Cleanup.
5982 2015-07-24  Michael Darling  <darlingm@gmail.com>
5984         PR other/66259
5985         * acinclude.m4: Reflects renaming of configure.in to configure.ac
5986         * configure: Likewise
5987         * configure.ac: Likewise
5988         * doc/install.texi: Likewise
5989         * doc/tm.texi: Likewise
5990         * doc/tm.texi.in: Likewise
5992 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5994         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
5995         manually swapping values.
5996         * cse.c (fold_rtx): Likewise.
5997         * lra-eliminations.c (form_sum): Likewise.
5999 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
6001         PR target/64003
6002         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
6003         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
6004         (*jcc_1, *jcc_2, jump, simple_return_internal)
6005         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
6006         Set length_nobnd attribute instead of length attribute.
6007         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
6008         (length_nobnd): Remove attribute.
6009         (length): Remove length_nobnd processing.
6011 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
6013         * gimplify.c (omp_default_clause): New function.  Reorganize flow
6014         for clarity. Broken out of ...
6015         (omp_notice_variable): ... here.
6017 2015-07-24  Gary Funck  <gary@intrepid.com>
6019         PR middle-end/66984
6020         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
6021         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
6023 2015-07-24  Tom de Vries  <tom@codesourcery.com>
6025         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
6026         exit-first loop transform.
6028 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
6030         PR 66714
6031         * tree-cfg.c (struct replace_decls_d): New struct.
6032         (replace_block_vars_by_duplicates_1): New function.
6033         (replace_block_vars_by_duplicates): Use it to replace the decls
6034         in the value exprs by duplicates.
6036 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6038         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
6039         -shared, -symbolic, -rdynamic.
6041 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6043         PR target/65711
6044         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
6045         -dynamic-linker within %{!static %{!shared, and -rdynamic within
6046         %{!static.
6048 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
6050         PR ipa/66566
6051         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
6052         edge summary is available.
6054 2015-07-24  Richard Biener  <rguenther@suse.de>
6056         * genmatch.c (struct dt_node): Add statistic fields.
6057         (dt_node::analyze): New method.
6058         (decision_tree::gen_gimple): Call analyze on the root node
6059         and print statistics to stderr.
6060         (decision_tree::gen_generic): Likewise.
6062 2015-07-24  Richard Biener  <rguenther@suse.de>
6064         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
6065         against the highest or lowest possible integer ...
6066         * match.pd: ... as patterns here.
6068 2015-07-24  Richard Biener  <rguenther@suse.de>
6070         * genmatch.c (struct capture_info): Add same_as field.
6071         (capture_info::capture_info): Initialize same_as.
6072         (capture_info::walk_match): Compute same_as.
6073         (capture_info::walk_result): Compute stuff for the leader.
6074         (capture_info::walk_c_expr): Likewise.
6075         (dt_simplify::gen_1): Only look at leaders when deciding
6076         to force no side-effects or emit side-effects of omitted operands.
6078 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6080         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
6081         reg note to the GPR -> FPR save instructions.
6083 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6085         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
6086         cheaper.
6087         (s390_expand_insv): Don't generate risbg pattern for constant zero
6088         sources.
6089         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
6090         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
6091         splitters.
6093 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6095         * config/s390/s390.c (s390_reorg): Clean up handling of processors
6096         with
6097         -mtune=
6098         (s390_issue_rate): Likewise.
6099         (s390_sched_reorder): Likewise.
6100         (s390_sched_variable_issue): Likewise.
6101         (s390_loop_unroll_adjust): Likewise.
6102         (s390_option_override):  Likewise.
6104 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6106         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
6107         processor capabilities with -march=native.
6108         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
6109         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
6110         (S390_TARGET_BITS_STRING): Macro to simplify specs.
6112 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6114         * config/s390/s390.c (s390_issue_rate): Handle
6115         PROCESSOR_2094_Z9_EC.
6116         (s390_option_override): Likewise.
6117         (s390_adjust_priority): Likewise.
6119 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6121         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
6122         when cross compiling.
6124 2015-07-24  Richard Biener  <rguenther@suse.de>
6126         * fold-const.c (maybe_canonicalize_comparison_1): Move
6127         A code CST canonicalization ...
6128         * match.pd: ... to a pattern here.
6130 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
6132         Revert:
6133         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
6134         PR target/63521
6135         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6136         (HONOR_REG_ALLOC_ORDER): Define.
6138 2015-07-24  Richard Biener  <rguenther@suse.de>
6140         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
6141         * fold-const.c (fold_comparison): Move parameter does not
6142         alias &local simplification ...
6143         * match.pd: ... as a pattern here.
6145 2015-07-24  Richard Biener  <rguenther@suse.de>
6147         * gimple-fold.c (replace_stmt_with_simplification): Special-case
6148         valueizing call operands.
6149         * gimple-match-head.c (maybe_push_res_to_seq): Take
6150         number of call arguments from ops array.
6151         (do_valueize): New function.
6152         (gimple_simplify): Return true if valueization changed
6153         any operand even if the result didn't simplify further.
6155 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6157         PR middle-end/25530
6158         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
6160 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6162         PR middle-end/25529
6163         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
6165 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
6167         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
6168         instruction.
6170 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
6172         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
6173         clean up.
6175 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
6177         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
6178         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
6179         targets here.
6180         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
6181         ms_va_list_type_node initialization.
6183 2015-07-23  Jeff Law  <law@redhat.com>
6185         PR lto/66752
6186         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
6187         unable to find X NE 0 in the tables, return X as the simplified
6188         condition.
6189         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
6190         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
6191         to VISISTED_BBS.  */
6192         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
6193         after removing the control flow statement and unnecessary edges.
6195 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6197         * tree-pass.h (get_current_pass_name): Removed.
6199 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
6201         PR rtl-optimization/64164
6202         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6203         * tree-ssa-copyrename.c: Removed.
6204         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6205         -ftree-coalesce-vars.
6206         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6207         * common.opt (ftree-copyrename): Ignore.
6208         (ftree-coalesce-inlined-vars): Likewise.
6209         * doc/invoke.texi: Remove the ignored options above.
6210         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6211         * tree-ssa-coalesce.h: ... here.
6212         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6213         headers required by it.
6214         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6215         across variables when flag_tree_coalesce_vars.  Check register
6216         use and promoted modes to allow coalescing.  Moved to
6217         tree-ssa-coalesce.c.
6218         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6219         with its member functions to tree-ssa-coalesce.c.
6220         (var_map_base_init): Likewise.  Renamed to
6221         compute_samebase_partition_bases.
6222         (partition_view_normal): Drop want_bases parameter.
6223         (partition_view_bitmap): Likewise.
6224         * tree-ssa-live.h: Adjust declarations.
6225         * tree-ssa-coalesce.c: Include explow.h.
6226         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6227         default defs at the entry point.
6228         (dump_part_var_map): New.
6229         (compute_optimized_partition_bases): New, called by...
6230         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6231         of compute_samebase_partition_bases.  Adjust.
6232         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6233         * cfgexpand.c (leader_merge): New.
6234         (get_rtl_for_parm_ssa_default_def): New.
6235         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6236         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6237         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6238         redundant MEM attr setting.
6239         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6240         from...
6241         (expand_one_stack_var): ... this.  New wrapper to check and
6242         skip already expanded SSA partitions.
6243         (record_alignment_for_reg_var): New, factored out of...
6244         (expand_one_var): ... this.
6245         (expand_one_ssa_partition): New.
6246         (adjust_one_expanded_partition_var): New.
6247         (expand_one_register_var): Check and skip already expanded SSA
6248         partitions.
6249         (expand_used_vars): Don't create DECLs for anonymous SSA
6250         names.  Expand all SSA partitions, then adjust all SSA names.
6251         (pass::execute): Replace the loops that set
6252         SA.partition_to_pseudo from partition leaders and cleared
6253         DECL_RTL for multi-location variables, and that which used to
6254         rename vars and set attrs, with one that clears DECL_RTL and
6255         checks that PARMs and RESULTs default_defs match DECL_RTL.
6256         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6257         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6258         * explow.c (promote_ssa_mode): New.
6259         * explow.h (promote_ssa_mode): Declare.
6260         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6261         * function.c: Include cfgexpand.h.
6262         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6263         (use_register_for_parm_decl): Wrapper for the above to
6264         special-case the result_ptr.
6265         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6266         (split_complex_args): Take assign_parm_data_all argument.
6267         Pass it to rtl_for_parm.  Set up rtl and context for split
6268         args.
6269         (assign_parms_augmented_arg_list): Adjust.
6270         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6271         multiple locations.  Recognize split complex args.
6272         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6273         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6274         (assign_parm_setup_block): Prefer SSA-assigned location.
6275         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
6276         if stack_parm is NULL.
6277         (assign_parm_setup_stack): Prefer SSA-assigned location.
6278         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6279         rtl before testing for pointer bounds.  Special-case result_ptr.
6280         (expand_function_start): Maybe reset DECL_RTL of result.
6281         Prefer SSA-assigned location for result and static chain.
6282         Factor out DECL_RESULT and SET_DECL_RTL.
6283         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6284         anonymous SSA names.  Use promote_ssa_mode.
6285         (get_temp_reg): Likewise.
6286         (remove_ssa_form): Adjust.
6287         * stor-layout.c (layout_decl): Don't set mem attributes of
6288         non-MEMs.
6289         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6290         and get its reg_usage for reg invalidation.
6291         (compute_bb_dataflow): Pass it insn.
6292         (emit_notes_in_bb): Likewise.
6294 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
6296         PR target/66217
6297         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
6298         prototype.
6299         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
6300         (rs6000_emit_2insn_and): Handle dot forms.
6301         * config/rs6000/rs6000.md (and<mode>3): Adjust.
6302         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
6303         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
6305 2015-07-23  Richard Biener  <rguenther@suse.de>
6307         * generic-match-head.c: Include cgraph.h.
6308         * gimple-match-head.c: Likewise.
6309         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
6310         SSA names.
6311         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
6312         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
6313         pattern.
6315 2015-07-23  Richard Biener  <rguenther@suse.de>
6317         * gimple-fold.c (fold_gimple_cond): Do not require folding
6318         results to pass valid_gimple_rhs_p.
6319         * tree-cfg.h (fold_cond_expr_cond): Remove.
6320         * tree-cfg.c (fold_cond_expr_cond): Likewise.
6321         (make_edges): Do not call it.
6322         * tree-inline.c (tree_function_versioning): Likewise.
6324 2015-07-23  Tom de Vries  <tom@codesourcery.com>
6326         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
6327         vect_force_simple_reduction.
6328         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
6329         (vect_is_simple_reduction_1): Add and handle
6330         need_wrapping_integral_overflow parameter.
6331         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
6332         need_wrapping_integral_overflow parameter.
6333         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
6334         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
6335         decl.
6337 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
6339         PR tree-optimization/66926,66951
6340         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
6341         INNER_LOOP and fix up condition for renaming virtual operands.
6343 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6345         * combine.c (try_combine): Use std::swap instead of manually
6346         swapping.
6348 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
6350         * config/mips/i6400.md: New file.
6351         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
6352         (mips64r6): Likewise.
6353         (i6400): Define.
6354         * config/mips/mips-tables.opt: Regenerate.
6355         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
6356         (mips_issue_rate): Add support for i6400.
6357         (mips_multipass_dfa_lookahead): Likewise.
6358         * config/mips/mips.h (TUNE_I6400): Define.
6359         * config/mips/mips.md: Include i6400.md.
6360         (processor): Add i6400.
6361         * doc/invoke.texi (-march=@var{arch}): Add i6400.
6363 2015-07-23  Richard Biener  <rguenther@suse.de>
6365         PR middle-end/66916
6366         * match.pd: Guard widen and sign-change comparison simplification
6367         with single_use.
6369 2015-07-23  Richard Biener  <rguenther@suse.de>
6371         PR tree-optimization/66945
6372         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
6373         ::before_dom_children): Force the propagators idea of
6374         non-executable edges to materialize, not what the folder
6375         chooses.
6377 2015-07-23  Richard Biener  <rguenther@suse.de>
6379         * gimple.h (gimple_cond_make_false): Use 0 != 0.
6380         (gimple_cond_make_true): Use 1 != 0.
6382 2015-07-22  DJ Delorie  <dj@redhat.com>
6384         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
6385         slashes.
6387         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
6388         (ashrhi3): Likewise.
6389         (lshrhi3): Likewise.
6390         (movhi): Take advantage of zero-extend to load small constants.
6391         (movpsi): Likewise.
6392         (and<mode>3): Likewise.
6393         (zero_extendqihi2): Likewise.
6394         (zero_extendqisi2): New.
6395         * config/msp430/constraints.md (N,O): New.
6396         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
6398 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
6400         PR target/66954
6401         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
6402         to enum feature_priority and feature_list.
6403         (fold_builtin_cpu): Add F_AES to enum processor_features
6404         and isa_names_table.
6406 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
6408         PR driver/66737
6409         * config/i386/linux-common.h (MPX_SPEC): Use linker option
6410         for 64bit target only.
6412 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6414         * config/nvptx/nvptx.c: Expand some comments.
6416 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
6418         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
6419         (cortex_a53_advsimd): ...This.
6421 2015-07-22  Richard Biener  <rguenther@suse.de>
6423         * genmatch.c (expr::gen_transform): Clarify error message
6424         and display location.
6426 2015-07-22  Richard Biener  <rguenther@suse.de>
6428         * genmatch.c (struct operand): Add location member.
6429         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
6430         constructors.
6431         (struct simplify): Remove match_location and result_location
6432         members.
6433         (elsehwere): Adjust.
6435 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
6437         * config/mips/m5100.md: New file.
6438         * config/mips/mips-cpus.def (m5100, m5101): Define.
6439         * config/mips/mips-tables.opt: Regenerate.
6440         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
6441         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
6442         -march=m5101 to -mips32r5.
6443         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
6444         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
6445         !-msoft-float.
6446         * config/mips/mips.md: Include m5100.md.
6447         (processor): Add m5100.
6448         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
6450 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
6452         * config/mips/mips-cpus.def (interaptiv): Define.
6453         * config/mips/mips-tables.opt: Regenerate.
6454         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
6455         -mips32r2.
6456         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
6457         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
6459 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
6461         PR target/63521
6462         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
6463         (HONOR_REG_ALLOC_ORDER): Define.
6465 2015-07-22  Richard Biener  <rguenther@suse.de>
6467         PR tree-optimization/66952
6468         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
6469         blocks we end up executing unconditionally reset all SSA
6470         info such as range and alignment.
6471         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
6472         * tree-ssanames.c (reset_flow_sensitive_info): New function.
6474 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
6476         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
6477         typo in attribute.
6479 2015-07-22  Richard Biener  <rguenther@suse.de>
6481         * genmatch.c (parser::parse_result): Properly handle
6482         match with result operands and conditions.
6484 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
6486         PR target/63870
6487         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6488         Add qualifier_struct_load_store_lane_index.
6489         (aarch64_types_loadstruct_lane_qualifiers): Use
6490         qualifier_struct_load_store_lane_index for lane index argument for
6491         last argument.
6492         (aarch64_types_storestruct_lane_qualifiers): Ditto.
6493         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6494         (aarch64_simd_expand_args): Add new argument describing mode of
6495         builtin. Check lane bounds for arguments with
6496         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6497         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
6498         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6499         (aarch64_simd_expand_builtin): Handle arguments with
6500         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
6501         aarch64_simd_expand_args.
6502         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
6503         vst[234]_lane with BUILTIN_VALLDIF.
6504         * config/aarch64/aarch64-simd.md:
6505         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
6506         endianness reversal on lane index.
6507         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
6508         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
6509         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
6510         (vec_store_lanesci_lane<mode>): Ditto.
6511         (vec_store_lanesxi_lane<mode>): Ditto.
6512         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
6513         reversal of lane index.
6514         (aarch64_ld3_lane<mode>): Ditto.
6515         (aarch64_ld4_lane<mode>): Ditto.
6516         (aarch64_st2_lane<mode>): Ditto.
6517         (aarch64_st3_lane<mode>): Ditto.
6518         (aarch64_st4_lane<mode>): Ditto.
6519         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
6520         to qmode. Add new mode parameter. Update uses.
6521         (__LD3_LANE_FUNC): Ditto.
6522         (__LD4_LANE_FUNC): Ditto.
6523         (__ST2_LANE_FUNC): Ditto.
6524         (__ST3_LANE_FUNC): Ditto.
6525         (__ST4_LANE_FUNC): Ditto.
6527 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
6529         * doc/invoke.texi (Language Independent Options): Rename node to
6530         Diagnostic Message Formatting Options.
6532 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
6534         PR ipa/66424.
6535         * lra-remat.c (operand_to_remat): Prevent using insns with input
6536         subregs processed separately by IRA.
6538 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
6540         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
6541         straight loops.
6542         (single_imm_use): Check for iterator node.
6543         (num_imm_uses): Likewise.
6544         * tree-ssa-operands.c (has_zero_uses_1): Delete.
6545         (single_imm_use_1): Check for iterator node.
6547 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
6548             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6550         * configure.ac: Add check for new options in isl-0.15.
6551         * config.in, configure: Rebuilt.
6552         * graphite-blocking.c: Include <isl/constraint.h>
6553         * graphite-interchange.c,  graphite-poly.c: Likewise.
6554         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
6555         * graphite.c: Likewise.
6556         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
6557         <isl/union_set.h>.
6558         * graphite-dependences.c: Include <isl/constraint.h>.
6559         (max_number_of_out_dimensions): Returns isl_stat.
6560         (extend_schedule_1): Likewise
6561         (extend_schedule): Corresponding changes.
6562         * graphite-optimize-isl.c: Include <isl/constraint.h> and
6563         <isl/union_set.h>.
6564         (getSingleMap): Change return type of isl_stat.
6565         (optimize_isl): Conditionally use
6566         isl_options_set_schedule_serialize_sccs.
6567         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
6568         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
6570 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
6572         PR target/66956
6573         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
6574         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
6576 2015-07-21  Richard Biener  <rguenther@suse.de>
6578         PR tree-optimization/66948
6579         * genmatch.c (capture_info::walk_match): Also recurse to
6580         captures.  Properly compute expr state from captures of
6581         captures.
6582         * match.pd: Add single-use guards to
6583         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
6585 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
6587         * config/nvptx/mkoffload.c (process): Add static destructor call.
6589 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6591         PR middle-end/66915
6592         * match.pd (A - B -> A + (-B)): Don't allow folding
6593         when type if a fixed-point type.
6595 2015-07-20  DJ Delorie  <dj@redhat.com>
6597         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
6598         (iorqi3_real): Likewise for set1.
6600 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
6602         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
6603         for !TARGET_64BIT.
6605 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
6607         * graphite-isl-ast-to-gimple.c:
6608         Refactor so that each function can access 'region'. This will help
6609         maintain a parameter rename_map within a region.
6611 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
6613         * config/rs6000/rs6000.md (*lt0_disi): New.
6615 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
6617         PR target/66217
6618         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
6619         "available letters" comment.
6620         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
6621         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
6622         and_2rld_operand):  Delete.
6623         (and_operand): Adjust.
6624         (rotate_mask_operator): New.
6625         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
6626         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
6627         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
6628         extract_ME): Delete.
6629         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6630         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
6631         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
6632         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6633         rs6000_emit_2insn_and): New.
6634         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
6635         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
6636         includes_rldic_lshift_p, includes_rldicr_lshift_p,
6637         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
6638         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
6639         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
6640         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
6641         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
6642         rs6000_emit_2insn_and): New.
6643         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
6644         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
6645         handling.
6646         <NOT>: Don't fall through to next case.
6647         <AND>: Handle the various rotate-and-mask cases directly.
6648         <IOR>: Always cost as one insn.
6649         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
6650         (and<mode>3): Adjust expander for the new patterns.
6651         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
6652         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
6653         (*and<mode>3_imm_dot_shifted): New.
6654         (*and<mode>3_mask): Delete, rewrite as ...
6655         (and<mode>3_mask): ... New.
6656         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
6657         (andsi3_internal0_nomc): Delete.
6658         (*andsi3_internal6): Delete.
6659         (*and<mode>3_2insn): New.
6660         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
6661         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
6662         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
6663         *insvdi_internal3): Delete.
6664         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
6665         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
6666         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
6667         *ior<mode>_mask): New.
6668         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
6669         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6670         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6671         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6672         Delete.
6673         (ashr<mode>3): Delete expander.
6674         (*ashr<mode>3): Rename to ...
6675         (ashr<mode>3): ... This.
6676         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
6677         (*rotldi3_internal4, *rotldi3_internal5 and split,
6678         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
6679         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
6680         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
6681         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
6682         (splitter for loading a mask): Adjust.
6683         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
6685 2015-07-20  Marek Polacek  <polacek@redhat.com>
6687         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
6688         output_add_clobbers, output_added_clobbers_hard_reg_p,
6689         gen_rtx_scratch): Remove declarations.
6691 2015-07-20  Marek Polacek  <polacek@redhat.com>
6693         PR c++/55095
6694         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
6696 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6698         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
6699         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
6701 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6703         * combine.c (combine_simplify_rtx): Move simplification step
6704         before various transformations/substitutions.
6706 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
6708         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
6709         (struct int_traits): Likewise.
6711 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6713         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
6714         function to vmsdbgout_function_decl.
6716 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
6718         PR target/66922
6719         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
6720         from misaligned positions.
6721         (ix86_expand_pinsr): Reject insertions to misaligned positions.
6723 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
6725         PR middle-end/46851
6726         PR middle-end/60340
6727         * Makefile.in: Removed omega.o.
6728         * common.opt: Document flag fcheck-data-deps as deprecated.
6729         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
6730         its associated params: omega-max-vars, omega-max-geqs,
6731         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
6732         omega-max-keys, omega-eliminate-redundant-constraints.
6733         * doc/loop.texi: Remove all the section on Omega.
6734         * graphite-blocking.c: Include missing params.h: it used to be
6735         included through tree-data-ref.h and omega.h.
6736         * graphite-isl-ast-to-gimple.c: Same.
6737         * graphite-optimize-isl.c: Same.
6738         * graphite-sese-to-poly.c: Same.
6739         * graphite.c: Same.
6740         * omega.c: Remove.
6741         * omega.h: Remove.
6742         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
6743         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
6744         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
6745         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
6746         * passes.def: Remove pass_check_data_deps.
6747         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
6748         (dump_conflict_function): Same.
6749         (dump_subscript): Same.
6750         (print_direction_vector): Same.
6751         (print_dir_vectors): Same.
6752         (print_lambda_vector): Same.
6753         (print_dist_vectors): Same.
6754         (dump_data_dependence_relation): Same.
6755         (dump_data_dependence_relations): Same.
6756         (dump_dist_dir_vectors): Same.
6757         (dump_ddrs): Same.
6758         (init_omega_eq_with_af): Removed.
6759         (omega_extract_distance_vectors): Removed.
6760         (omega_setup_subscript): Removed.
6761         (init_omega_for_ddr_1): Removed.
6762         (init_omega_for_ddr): Removed.
6763         (ddr_consistent_p): Removed.
6764         (compute_affine_dependence): Do not use omega to check data
6765         dependences.
6766         (compute_data_dependences_for_bb): Removed.
6767         (analyze_all_data_dependences): Removed.
6768         (tree_check_data_deps): Removed.
6769         * tree-data-ref.h: Do not include omega.h.
6770         (compute_data_dependences_for_bb): Removed.
6771         (tree_check_data_deps): Removed.
6772         * tree-ssa-loop.c (pass_check_data_deps): Removed.
6773         (make_pass_check_data_deps): Removed.
6774         * tree-ssa-phiopt.c: Include params.h.
6775         * tree-vect-data-refs.c: Same.
6776         * tree-vect-slp.c: Same.
6778 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
6780         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
6781         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
6782         (mem->fpreg splitters): Ditto.
6783         (general_operand->nonimmediate_operand splitter): Use explicit modes.
6784         Disable DFmode for TARGET_64BIT.
6786 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
6788         PR target/66906
6789         * config/i386/i386.c (ix86_expand_prologue): Replicate static
6790         chain on the stack.
6792 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
6794         * config/nvptx/mkoffload.c (process): Constify host data.
6795         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6796         Constify host data.
6797         (generate_host_descr_file): Likewise.
6799 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
6800             Sebastian Pop  <s.pop@samsung.com>
6802         PR middle-end/61929
6803         * graphite-dependences.c (add_pdr_constraints): Renamed
6804         pdr->extent to pdr->subscript_sizes.
6805         * graphite-interchange.c (build_linearized_memory_access): Add
6806         back all gcc_assert's that the "isl_int to isl_val conversion"
6807         patch has removed.  Refactored.
6808         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
6809         * graphite-poly.c (new_poly_dr): Same.
6810         (free_poly_dr): Same.
6811         * graphite-poly.h (struct poly_dr): Same.
6812         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
6813         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
6814         * graphite-scop-detection.h: Fix space.
6815         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
6816         back all gcc_assert's removed by a previous patch.
6817         (wrap): Remove the_isl_ctx global variable that the same patch has
6818         added.
6819         (build_loop_iteration_domains): Same.
6820         (add_param_constraints): Same.
6821         (pdr_add_data_dimensions): Same.  Refactored.
6822         (build_poly_dr): Renamed extent to subscript_sizes.
6824 2015-07-17  Marek Polacek  <polacek@redhat.com>
6826         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
6827         * match.pd: ... here.
6829 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
6831         * config/nvptx/mkoffload.c (process): Constify target data.
6832         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
6833         Constify target data.
6834         (generate_target_offloadend_file): Likewise.
6836 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
6838         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
6839         to allow renaming of PHI arguments on edges incoming from outer
6840         loop header, add corresponding check before start PHI iterator.
6841         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
6842         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
6843         with true force_vectorize.  Set-up dominator for outer loop too.
6844         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
6845         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
6846         was marked with force_vectorize and has restricted cfg.
6847         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
6848         inner loop.
6849         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
6850         do peeling for outer loops.
6852 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
6853             Matthias Klose  <doko@ubuntu.com>
6855         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
6856         build-sysroot, sysroot from the `Miscenalleous configure options' to
6857         the `Directories' section and strip trailing `/' from with_sysroot.
6858         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
6859         * configure: Regenerated.
6861 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
6863         PR target/66824
6864         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
6865         (TARGET_HARD_DF_REGS): Ditto.
6866         (TARGET_HARD_XF_REGS): Ditto.
6867         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
6868         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
6869         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
6870         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
6871         (*movsf_internal): Add alternatives 16 and 17. Enable
6872         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
6874 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
6876         PR rtl-optimization/66891
6877         * calls.c (expand_call): Wrap precompute_register_parameters with
6878         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
6880 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
6882         * config/nvptx/mkoffload.c (process): Constify mapping variables.
6883         Define target data struct and initialize it.
6885 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
6887         PR rtl-optimization/66626
6888         * ira.h (emit-rtl.h): Include.
6889         (non_spilled_static_chain_regno_p): New.
6890         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
6891         unless it is non spilled static chain pseudo.
6892         (assign_hard_rego): Spill memory profitable allocno unless it is
6893         non spilled static chain pseudo.
6894         (allocno_spill_priority_compare): Put non spilled static chain
6895         pseudo at the end of sorted array.
6896         (improve_allocation): Do nothing if we have static chain and
6897         non-local goto.
6898         (allocno__priority_compare_func): Put non spilled static chain
6899         pseudo at the beginning of sorted array.
6900         (move_spill_restore): Ignore non spilled static chain pseudo.
6901         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
6902         to non spilled static chain pseudo.
6903         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
6904         pseudo at the beginning of sorted array.
6905         (spill_for): Spill non spilled static chain pseudo last.
6906         * lra-constraints.c (lra_constraints): Remove static chain pseudo
6907         check for equivalence.
6909 2015-07-16  Martin Liska  <mliska@suse.cz>
6911         PR ipa/66896.
6912         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
6913         dst_ctx if it does not exist.
6915 2015-07-16  Martin Liska  <mliska@suse.cz>
6917         * hash-set.h (remove): New function.
6918         (iterator): New iteration class for hash_set.
6920 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6922         * genattrtab.c (make_canonical): Add a file_location parameter.
6923         Use fatal_at rather than fatal.
6924         (get_attr_value): Likewise.  Update call to make_canonical.
6925         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
6926         (make_internal_attr): Update calls accordingly.
6928 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6930         * read-md.h (message_with_line, error_with_line): Delete.
6931         * read-md.c (message_with_line, error_with_line): Delete.
6932         * gensupport.h: Include read-md.h.
6933         (md_rtx_info): New structure.
6934         (read_md_rtx): Use it.  Return a bool success value.
6935         * gensupport.c (read_md_rtx): Likewise.
6936         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
6937         (main): Update after interface changes.
6938         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
6939         (main): Update after interface changes.
6940         * genattrtab.c (insn_code_number): Delete.
6941         (optimize_attrs): Add a max_insn_code parameter and use it instead
6942         of insn_code_number.
6943         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
6944         Use *_at rather than *_with_line functions.
6945         (gen_insn): Likewise.
6946         (gen_delay): Likewise.
6947         (gen_insn_reserv): Likewise.
6948         (gen_bypass): Take an md_rtx_info rather than an rtx.
6949         (main): Update after interface changes.  Use a local max_insn_code
6950         variable instead of insn_code_number.
6951         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
6952         an rtx.  Use fatal_at rather than fatal.
6953         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
6954         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
6955         (gen_absence_set, gen_final_absence_set, gen_automaton)
6956         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
6957         (main): Update after interface changes.
6958         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
6959         and code number.
6960         (main): Update after interface changes.
6961         * genconditions.c (main): Use new read_md_rtx interface.
6962         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
6963         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
6964         (main): Update after interface changes.
6965         * genemit.c (insn_code_number, insn_index_number): Delete.
6966         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6967         Use fatal_at rather than fatal.
6968         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
6969         rather than fatal.
6970         (gen_split): Likewise.
6971         (main): Update after interface changes.
6972         * genextract.c (line_no): Delete.
6973         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6974         Update call to walk_rtx.
6975         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
6976         rather than message_with_line.
6977         (walk_rtx): Add an md_rtx_info argument.  Update call to
6978         VEC_safe_set_locstr.
6979         (main): Update after interface changes.
6980         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
6981         and lineno.  Use error_at rather than separate message_with_line
6982         calls and have_error assignments.
6983         (main): Update after interface changes.
6984         * genmddump.c (main): Use new read_md_rtx interface.
6985         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
6986         (main): Update after interface changes.
6987         * genoutput.c (next_code_number): Delete.
6988         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6989         (gen_peephole, gen_expand, gen_split): Likewise.
6990         (note_constraint): Likewise.  Use *_at rather than *_with_line
6991         functions.
6992         (main): Update after interface changes.
6993         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
6994         rtx and lineno.
6995         (main): Update after interface changes.
6996         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
6997         than an rtx and lineno.
6998         (process_define_constraint): Likewise.
6999         (process_define_register_constraint): Likewise.
7000         (main): Update after interface changes.
7001         * genrecog.c (next_insn_code, pattern_lineno): Delete.
7002         (validate_pattern): Replace top-level rtx with an md_rtx_info.
7003         Use *_at rather than *_with_line functions.
7004         (match_pattern_2): Likewise.
7005         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
7006         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
7007         Use *_at rather than *_with_line functions.
7008         * gentarget-def.c (add_insn): New function.
7009         (main): Use it.  Use new read_md_rtx interface.
7011 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7013         * gensupport.h (compute_test_codes): Take a file_location rather
7014         than a line number.
7015         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
7016         rather than *_with_line functions.
7017         (process_define_predicate): Update call to compute_test_codes.
7018         * genpreds.c (validate_exp): Take a file_location rather than a
7019         line number.  Use *_at functions rather than *_with_line functions.
7020         (process_define_predicate): Update call to validate_exp.
7021         (constraint_data): Replace lineno field with a file_location.
7022         (add_constraint): Take a file_location rather than a line number.
7023         Use *_at functions rather than *_with_line functions.  Fix error
7024         message for address constraints.  Update after changes to
7025         validate_exp, constraint_data and compute_test_codes.
7026         (process_define_constraint): Update accordingly.
7027         (process_define_register_constraint): Likewise.
7029 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7031         * genoutput.c (data): Use a file_location to record the source
7032         position.
7033         (nothing): Delete.
7034         (idata, idata_end): Remove initialization.
7035         (constraint_data): Replace lineno with a file_location.
7036         (output_insn_data): Update after changes to data.
7037         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
7038         (scan_operands): Likewise, using *_at rather than *_with_line
7039         functions.
7040         (process_template): Likewise.
7041         (validate_insn_alternatives): Likewise.
7042         (validate_insn_operands): Likewise.
7043         (validate_optab_operands): Likewise.
7044         (init_insn_for_nothing): Initialize idata and idata_end.
7045         (note_constraint): Update after changes to constraint_data,
7046         using at rather than with_line functions.
7047         (mdep_constraint_len): Take a file_location rather than a
7048         line number.  Use at rather than with_line functions.
7050 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7052         * read-md.h (fatal_at): Declare.
7053         * read-md.c (fatal_at): New function.
7054         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
7055         to record the source position.
7056         (check_attr_test): Take a file_location instead of a line number.
7057         Use fatal_at instead of fatal.
7058         (check_attr_value): Update after above changes, using "at"
7059         rather than "with_line" reporting functions.
7060         (convert_set_attr_alternative): Likewise.
7061         (gen_attr): Likewise.
7062         (check_defs): Likewise.  Don't assign to read_md_filename.
7063         (gen_insn): Update initialization after above changes.
7064         (gen_delay): Likewise.
7065         (write_insn_cases): Print the filename for a define_peephole.
7066         (gen_insn_reserv): Take a line number as argument and update
7067         the call to check_attr_test.
7068         (main): Pass a line number to gen_insn_reserv.
7070 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7072         * read-md.h (file_location): New structure.
7073         (directive_handler_t): Take a file_location rather than a line number.
7074         (message_at, error_at): Declare.
7075         (read_skip_construct): Delete.
7076         * read-md.c (message_with_line_1): Replace with...
7077         (message_at_1): ...this new function.
7078         (message_at, error_at): New functions.
7079         (message_with_line, error_with_line): Update to use message_at_1.
7080         (handle_enum): Take a file_location rather than a line number
7081         and use error_at for error reporting.
7082         (handle_include): Likewise.
7083         (read_skip_construct): Likewise.  Make static.
7084         (handle_file): Update after above changes.  Pass a file_location
7085         rather than a line number to handle_directive.
7086         * gensupport.c (queue_elem): Replace separate filename and lineno
7087         with a file_location.
7088         (queue_pattern): Replace filename and lineno arguments with a
7089         file_location.  Update after change to queue_elem.
7090         (process_define_predicate): Replace lineno argument with a
7091         file_location and use error_at for error reporting.  Update
7092         after above changes.
7093         (process_rtx): Likewise.
7094         (subst_pattern_match): Likewise.
7095         (get_alternatives_number): Likewise.
7096         (alter_predicate_for_insn): Likewise.
7097         (rtx_handle_directive): Likewise.
7098         (is_predicable): Update after above changes, using error_at rather
7099         than error_with_line.
7100         (has_subst_attribute): Likewise.
7101         (identify_predicable_attribute): Likewise.
7102         (alter_attrs_for_subst_insn): Likewise.
7103         (process_one_cond_exec): Likewise.
7104         (process_substs_on_one_elem): Likewise.
7105         (process_define_subst): Likewise.
7106         (check_define_attr_duplicates): Likewise.
7107         (read_md_rtx): Update after change to queue_elem.
7109 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7111         * genoutput.c (next_index_number): Delete.
7112         (data): Remove index_number.
7113         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
7114         (main): Remove manipulation of next_index_number.
7116 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
7118         * genattrtab.c (check_attr_value): Remove handling of null attrs.
7119         (make_canonical): Likewise.
7121 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
7123         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
7124         instead of adjust_address_nv.
7125         (restore_stack_nonlocal): Likewise.
7126         (nonlocal_goto): Likewise.
7128 2015-07-16  Tom de Vries  <tom@codesourcery.com>
7130         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
7131         not have a corresponding loop header phi.
7133 2015-07-16  Tom de Vries  <tom@codesourcery.com>
7135         * tree-parloops.c (create_loads_for_reductions): Handle case that
7136         reduction is unused.
7138 2015-07-16  Richard Biener  <rguenther@suse.de>
7140         PR tree-optimization/66894
7141         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
7142         about deriving NE_EXPR from truncated values.
7144 2015-07-16  Martin Liska  <mliska@suse.cz>
7146         * alloc-pool.h
7147         (object_allocator): Add new class.
7148         (pool_allocator::initialize): Use the underlying class.
7149         (pool_allocator::allocate): Likewise.
7150         (pool_allocator::remove): Likewise.
7151         (operator new): A new generic allocator.
7152         * asan.c (struct asan_mem_ref): Remove unused members.
7153         (asan_mem_ref_new): Replace new operator with
7154         object_allocator::allocate.
7155         (free_mem_ref_resources): Change deallocation.
7156         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
7157         with object_allocator.
7158         * config/sh/sh.c (add_constant): Replace new operator with
7159         object_allocator::allocate.
7160         (sh_reorg): Change call to a release method.
7161         * cselib.c (struct elt_list): Remove unused members.
7162         (new_elt_list): Replace new operator with
7163         object_allocator::allocate.
7164         (new_elt_loc_list): Likewise.
7165         (new_cselib_val): Likewise.
7166         (unchain_one_elt_list): Change delete operator with remove method.
7167         (unchain_one_elt_loc_list): Likewise.
7168         (unchain_one_value): Likewise.
7169         (cselib_finish): Release newly added static allocators.
7170         * cselib.h (struct cselib_val): Remove unused members.
7171         (struct elt_loc_list): Likewise.
7172         * df-problems.c (df_chain_alloc): Replace pool_allocator with
7173         object_allocator.
7174         * df-scan.c (struct df_scan_problem_data): Likewise.
7175         (df_scan_alloc): Likewise.
7176         * df.h (struct dataflow): Likewise.
7177         * dse.c (struct read_info_type): Likewise.
7178         (struct insn_info_type): Likewise.
7179         (struct dse_bb_info_type): Likewise.
7180         (struct group_info): Likewise.
7181         (struct deferred_change): Likewise.
7182         (get_group_info): Likewise.
7183         (delete_dead_store_insn): Likewise.
7184         (free_read_records): Likewise.
7185         (replace_read): Likewise.
7186         (check_mem_read_rtx): Likewise.
7187         (scan_insn): Likewise.
7188         (dse_step1): Likewise.
7189         (dse_step7): Likewise.
7190         * et-forest.c (struct et_occ): Remove unused members.
7191         (et_new_occ): Use allocate instead of new operator.
7192         (et_new_tree): Likewise.
7193         (et_free_tree): Call release method explicitly.
7194         (et_free_tree_force): Likewise.
7195         (et_free_pools): Likewise.
7196         (et_split): Use remove instead of delete operator.
7197         * et-forest.h (struct et_node): Remove unused members.
7198         * ipa-cp.c: Change pool_allocator to object_allocator.
7199         * ipa-inline-analysis.c: Likewise.
7200         * ipa-profile.c: Likewise.
7201         * ipa-prop.c: Likewise.
7202         * ipa-prop.h: Likewise.
7203         * ira-build.c (initiate_cost_vectors): Cast return value.
7204         (ira_allocate_cost_vector): Likewise.
7205         * ira-color.c (struct update_cost_record): Remove unused members.
7206         * lra-int.h (struct lra_live_range): Likewise.
7207         (struct lra_copy): Likewise.
7208         (struct lra_insn_reg): Likewise.
7209         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
7210         * lra.c (new_insn_reg): Replace new operator with allocate method.
7211         (free_insn_regs): Same for operator delete.
7212         (finish_insn_regs): Release new static allocator.
7213         (finish_insn_recog_data): Likewise.
7214         (lra_free_copies): Replace delete operator with remove method.
7215         (lra_create_copy): Replace operator new with allocate method.
7216         (invalidate_insn_data_regno_info): Same for remove method.
7217         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
7218         (free_debug_insn_changes): Replace delete operator with remove method.
7219         (replace_oldest_value_reg): Replace operator new with allocate method.
7220         (pass_cprop_hardreg::execute): Release new static variable.
7221         * sched-deps.c (sched_deps_init): Change pool_allocator to
7222         object_allocator.
7223         * sel-sched-ir.c: Likewise.
7224         * sel-sched-ir.h: Likewise.
7225         * stmt.c (expand_case): Likewise.
7226         (expand_sjlj_dispatch_table): Likewise.
7227         * tree-sra.c (struct access): Remove unused members.
7228         (struct assign_link): Likewise.
7229         (sra_deinitialize): Release newly added static pools.
7230         (create_access_1):Replace operator new with allocate method.
7231         (build_accesses_from_assign): Likewise.
7232         (create_artificial_child_access): Likewise.
7233         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
7234         pool_allocator to object_allocator.
7235         * tree-ssa-pre.c: Likewise.
7236         * tree-ssa-reassoc.c: Likewise.
7237         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7238         * tree-ssa-strlen.c: Likewise.
7239         * tree-ssa-structalias.c: Likewise.
7240         * var-tracking.c (onepart_pool_allocate): New function.
7241         (unshare_variable): Use the newly added function.
7242         (variable_merge_over_cur): Likewise.
7243         (variable_from_dropped): Likewise.
7244         (variable_was_changed): Likewise.
7245         (set_slot_part): Likewise.
7246         (emit_notes_for_differences_1): Likewise.
7247         (vt_finalize): Release newly added static pools.
7249 2015-07-16  Martin Jambor  <mjambor@suse.cz>
7251         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
7252         all uses.  Fix two typos in its general comment.
7253         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
7255 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
7257         * config/i386/linux-common.h (LINK_MPX): New.
7258         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
7259         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
7260         indicating '-z bndplt' support by linker.
7261         * configure: Regenerate.
7262         * config.in: Regenerate.
7264 2015-07-16  Richard Biener  <rguenther@suse.de>
7266         * fold-const.c (fold_widened_comparison): Remove.
7267         (fold_sign_changed_comparison): Likewise.
7268         (fold_comparison): Move widened and sign-changed comparison
7269         simplification ...
7270         * match.pd: ... to patterns here.
7271         * generic-match-head.c: Include target.h.
7272         * gimple-match-head.c: Likewise.
7274 2015-07-16  Richard Biener  <rguenther@suse.de>
7276         * tree-ssa-dom.c (dom_valueize): New function.
7277         (record_temporary_equivalences): Also record equivalences
7278         for dominating stmts that have uses of equivalences we are
7279         about to record.
7281 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
7283         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
7284         add_autoinc_candidates.
7285         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
7286         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
7287         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
7288         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
7289         Call new function.
7290         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
7291         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
7292         Remove parameter struct iv*.  Call add_autoinc_candidates here.
7293         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
7294         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
7295         Call new function.
7296         (find_iv_candidates): Call new functions.
7298 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
7300         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
7301         uninitialized-variable warning.
7303 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
7305         PR target/65249
7306         * config/sh/sh.md (movdi): Split simple reg move to two movsi
7307         when the destination is R0.
7309 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
7311         PR target/66866
7312         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
7313         * config/i386/i386.c (ix86_expand_pextr): New function.
7314         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
7315         for non-lowpart subregs.
7316         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
7317         (insv<mode>): Use SWI248 mode iterator.
7318         (insv<mode>_1): Ditto.
7320 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
7321             Sebastian Pop  <s.pop@samsung.com>
7323         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
7324         iterator to use_stmt.
7326 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
7327             Sebastian Pop <s.pop@samsung.com>
7329         * graphite-scop-detection.c (build_scops_1): Discard scops for
7330         which entry==exit.
7332 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
7333             Sebastian Pop <s.pop@samsung.com>
7335         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
7336         case of a return statement in scop.
7338 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
7339             Sebastian Pop <s.pop@samsung.com>
7341         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
7342         INTEGER_TYPE parameters.
7343         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
7344         VECTOR_CST in scan_tree_for_params.
7345         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
7347 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
7349         * gimple-pretty-print.h: Don't include pretty-print.h.
7350         * tree-streamer.h: Don't include lto-streamer.h.
7351         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
7352         * gimple-streamer-in.c: Remove redundant includes.
7353         * gimple-streamer-out.c: Likewise.
7354         * ipa-devirt.c: Likewise.
7355         * ipa-icf.c: Likewise.
7356         * ipa-inline-analysis.c: Likewise.
7357         * ipa-polymorphic-call.c: Likewise.
7358         * ipa-profile.c: Likewise.
7359         * ipa-prop.c: Likewise.
7360         * ipa-pure-const.c: Likewise.
7361         * lto-cgraph.c: Likewise.
7362         * lto-streamer-in.c: Likewise.
7363         * lto-streamer-out.c: Likewise.
7364         * lto-streamer.c: Likewise.
7365         * tree-streamer-in.c: Likewise.
7366         * tree-streamer-out.c: Likewise.
7367         * tree-streamer.c: Likewise.
7369 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
7371         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
7372         include input.h.
7373         * opts.c: Remove multiline #include comment.
7375 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
7377         * config/nvptx/mkoffload.c (process): Add C++ protection to
7378         emitted code.
7380 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7382         PR target/66854
7383         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
7384         null before IEEE 128-bit floating point support patch.
7386 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7388         * simplify-rtx.c (simplify_ternary_operation): Add simplification
7389         for (!c) != {0,...,0} ? a : b for vector modes.
7391 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
7392             Martin Jambor  <mjambor@suse.cz>
7394         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
7395         struct func_body_info* instead of struct ipa_node_params*, expecting
7396         fbi->info to be filled in.  Replace throughout.  Adjust call to
7397         ipa_load_from_parm_agg.
7398         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
7399         instead of struct ipa_node_params*.  Adjust calls to other functions
7400         so that they pass either fbi or fbi->info.
7401         (set_switch_stmt_execution_predicate): Likewise.
7402         (will_be_nonconstant_predicate): Likewise.
7403         (compute_bb_predicates): Likewise.
7404         (estimate_function_body_sizes): Move asserts earlier.  Fill in
7405         struct func_body_info, replace parms_info with fbi.info.  Adjust
7406         calls to functions that now accept struct func_body_info.
7407         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
7408         (struct func_body_info): Likewise.
7409         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
7410         remove static.  Adjust callers.
7411         (ipa_load_from_parm_agg): Remove.
7412         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
7413         (func_body_info): Likewise.
7414         (ipa_load_from_parm_agg): Adjust prototype.
7416 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7418         * gensupport.c (rtx_handle_directive): Adjust.
7419         * read-rtl.c (apply_iterators): Take vector to add rtxs to
7420         instead of expr list rtx.
7421         (add_define_attr_for_define_subst): Likewise.
7422         (add_define_subst_attr): Likewise.
7423         (read_subst_mapping): Likewise.
7424         (read_rtx): Likewise.
7425         * rtl.h (read_rtx): Adjust.
7427 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7429         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
7431 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
7433         PR target/58066
7434         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
7435         (*tls_local_dynamic_base_64_<mode>): Ditto.
7436         (*tls_local_dynamic_base_64_largepic): Ditto.
7437         (tls_global_dynamic_64_<mode>): Update expander pattern.
7438         (tls_local_dynamic_base_64_<mode>): Ditto.
7440 2015-07-15  Richard Biener  <rguenther@suse.de>
7442         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
7443         and bool_var == 1 -> bool_var simplifications ...
7444         * match.pd: ... to patterns here.  Factor out negate_expr_p
7445         cases from the A - B -> A + (-B) patterns as negate_expr_p
7446         predicate and add a -(A + B) -> (-B) - A pattern.
7448 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
7450         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
7452 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
7453             Robert Suchanek  <robert.suchanek@imgtec.com>
7455         * config/mips/mips.c (mips_int_mask): New enum.
7456         (mips_shadow_set): Likewise.
7457         (int_mask): New variable.
7458         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
7459         (machine_function): Add int_mask and use_shadow_register_set.
7460         (mips_attribute_table): Add attribute handlers for interrupt and
7461         use_shadow_register_set.
7462         (mips_interrupt_mask): New static function.
7463         (mips_handle_interrupt_attr): Likewise.
7464         (mips_handle_use_shadow_register_set_attr): Likewise.
7465         (mips_use_shadow_register_set): Change return type to enum
7466         mips_shadow_set.  Add argument handling for use_shadow_register_set
7467         attribute.
7468         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
7469         compare with mips_shadow_set enum.
7470         (mips_compute_frame_info): Add interrupt mask and
7471         use_shadow_register_set to per-function information structure.
7472         Add a stack slot for EPC unconditionally.
7473         (mips_expand_prologue): Compare use_shadow_register_set value
7474         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
7475         masked interrupt register but in EIC mode use K0 and save Cause in K0.
7476         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
7477         copying the stack pointer from the shadow register set.
7478         * config/mips/mips.h (SR_IM0): New define.
7479         * config/mips/mips.md (mips_rdpgpr): Rename to...
7480         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
7481         * doc/extend.texi (Declaring Attributes of Functions): Document
7482         optional arguments for interrupt and use_shadow_register_set
7483         attributes.
7485 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
7487         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
7488         interrupt attribute.
7489         (mips_expand_prologue): Disable the floating point unit in an ISR.
7490         * config/mips/mips.h (SR_COP1): New define.
7492 2015-07-15  Richard Biener  <rguenther@suse.de>
7494         * genmatch.c (parser::peek, parser::peek_ident): Add argument
7495         to tell how many tokens to peek ahead (default 1).
7496         (parser::eat_token, parser::eat_ident): Return token consumed.
7497         (parser::parse_result): Parse new switch statement.
7498         * match.pd: Use case statements where appropriate.
7500 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
7502         PR rtl-optimization/58066
7503         * calls.c (expand_call): Precompute register parameters before stack
7504         alignment is performed.
7506 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
7508         PR rtl-optimization/66838
7509         * postreload.c (reload_cse_move2add): Also process
7510         CALL_INSN_FUNCTION_USAGE when resetting information of
7511         call-clobbered registers.
7513 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
7514             Cesar Philippidis  <cesar@codesourcery.com>
7515             Chung-Lin Tang  <cltang@codesourcery.com>
7517         * config/nios2/constraints.md (U, v): New constraints.
7518         * config/nios2/predicates.md (rdprs_dcache_operand): New.
7519         (ldstex_memory_operand): New.
7520         * config/nios2/sync.md: New file.
7521         * config/nios2/nios2.md (unspecv): Add new builtin function
7522         UNSPECV codes.
7523         (rdprs, flushd, flushda, wrpie, eni): New patterns.
7524         (top-level): Include sync.md.
7525         * config/nios2/nios2.c (N2_FTYPES): Add function types for
7526         new builtins.
7527         (N2_BUILTINS): Add arch field setting, add new builtins.
7528         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
7529         for arch field.
7530         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
7531         Also handle ldex/stex/ldsex/stsex builtins.
7532         (nios2_expand_rdprs_builtin): New function.
7533         (nios2_expand_cache_builtin): New function.
7534         (nios2_expand_wrpie_builtin): New function.
7535         (nios2_expand_eni_builtin): New function.
7536         (nios2_expand_builtin): Add arch field handling and new builtin
7537         cases.
7538         * doc/extend.texi (Altera Nios II Built-in Functions): Document
7539         new builtins.
7540         * doc/md.texi (Machine Constraints): Document U and v constraints.
7542 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
7543             Cesar Philippidis  <cesar@codesourcery.com>
7544             Chung-Lin Tang  <cltang@codesourcery.com>
7546         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
7547         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
7548         callee_save_reg_size and uses_anonymous_args fields.
7549         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
7550         (nios2_create_cfa_notes): New function.
7551         (nios2_adjust_stack): New function for adjusting stack.
7552         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
7553         Use nios2_adjust_stack.
7554         (nios2_expand_epilogue): Likewise.
7555         (nios2_expand_return): New function.
7556         (nios2_can_use_return_insn): Update for CDX pop.n usage.
7557         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
7558         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
7559         * config/nios2/nios2.md (return): Use nios2_expand_return.
7561 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
7562             Cesar Philippidis  <cesar@codesourcery.com>
7563             Chung-Lin Tang  <cltang@codesourcery.com>
7565         * config/nios2/predicates.md (pop_operation): New.
7566         (ldwm_operation, stwm_operation): New.
7567         (nios2_hard_register_operand): New.
7568         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
7569         (ldstwm_operation_p): Declare.
7570         (gen_ldstwm_peep): Declare.
7571         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
7572         (base_reg_adjustment_p): New.
7573         (pop_operation_p): New.
7574         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
7575         (nios2_ldstwm_regset_p): New.
7576         (ldstwm_operation_p): New.
7577         (gen_ldst): New.
7578         (nios2_ldst_parallel): New.
7579         (struct ldswm_operand): Declare.
7580         (compare_ldstwm_operands): New.
7581         (can_use_cdx_ldstw): New.
7582         (gen_ldstwm_peep): New.
7583         * config/nios2/nios2-ldstwm.sml: New.
7584         * config/nios2/nios2.md: Include ldstwm.md.
7585         * config/nios2/ldstwm.md: Generated.
7587 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
7588             Cesar Philippidis  <cesar@codesourcery.com>
7589             Chung-Lin Tang  <cltang@codesourcery.com>
7591         * config/nios2/nios2.h (LABEL_ALIGN): Define.
7592         (REG_ALLOC_ORDER): Define.
7593         (ADJUST_REG_ALLOC_ORDER): Define.
7594         (HONOR_REG_ALLOC_ORDER): Define.
7595         (CDX_REG_P): Define.
7596         (ANDCLEAR_INT): Define.
7597         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
7598         (nios2_label_align): Declare.
7599         (nios2_cdx_narrow_form_p): Declare.
7600         (nios2_adjust_reg_alloc_order): Declare.
7601         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
7602         operation.
7603         (nios2_large_unspec_reloc_p): New function, split from...
7604         (nios2_legitimate_pic_operand_p): ...here.
7605         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
7606         (nios2_print_operand_punct_valid_p): New.
7607         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
7608         (split_mem_address): New.
7609         (split_alu_insn): New.
7610         (cdxreg): New.
7611         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
7612         (enum nios2_add_insn_kind): New.
7613         (nios2_add_insn_names, nios2_add_insn_narrow): New.
7614         (nios2_add_insn_classify): New.
7615         (nios2_add_insn_asm): New.
7616         (nios2_cdx_narrow_form_p): New.
7617         (label_align, min_labelno, max_labelno): New.
7618         (nios2_reorg): New.
7619         (nios2_label_align): New.
7620         (nios2_adjust_reg_alloc_order): New.
7621         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7622         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7623         * config/nios2/constraints.md (P): New constraint.
7624         * config/nios2/predicates.md (const_and_operand): New.
7625         (and_operand): New.
7626         (stack_memory_operand): New.
7627         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
7628         (length): Update to use nios2_cdx_narrow_form_p().
7629         (type): Add new insn type values.
7630         (control, alu, st, ld, shift): Update insn reservations with
7631         new insn type values.
7632         (*high, *lo_sum): Define new insn patterns for constant generation.
7633         (movqi_internal, movhi_internal, movsi_internal): Reduce
7634         alternatives, update asm template to handle CDX variants, update
7635         type attributes.
7636         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
7637         template, update type attributes.
7638         (extendhisi2, extendqi<mode>2): Likewise.
7639         (addsi3): Change to use function for asm string.
7640         (subsi3): Add CDX notation to asm template, update type attributes.
7641         (negsi3, one_cmplsi3): Likewise.
7642         (andsi3): New pattern, specialized from logical patterns.
7643         (<code>si3): Remove and case, combine alternatives, update asm
7644         template.
7645         (<shift_op>si3): Add CDX notation, update type attributes.
7646         (rotrsi3): Update type attribute.
7647         (*merge, extzv, insv): New insn patterns.
7648         (return): Change to define_expand.
7649         (simple_return): Add CDX notation, update type attributes.
7650         (indirect_jump): Add CDX notation.
7651         (jump): Update asm cases, update length attribute expression.
7652         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
7653         (nios2_cbranch): Update asm cases and length attribute expression
7654         to handle CDX variants.
7655         (nios2_cmp<code>): Update asm template.
7656         (nop): Add CDX notation, update type attributes.
7657         (trap): Add CDX notation.
7658         (ctrapsi4): Update asm cases and length attribute expression to
7659         handle CDX variant.
7660         * doc/md.texi (Machine Constraints): Document P constraint.
7662 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
7663             Cesar Philippidis  <cesar@codesourcery.com>
7664             Chung-Lin Tang  <cltang@codesourcery.com>
7666         * config/nios2/nios2.h (SMALL_INT12): New macro.
7667         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
7668         (nios2_valid_addr_expr_p): Use it.
7669         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
7670         with implicit "io" instructions on R2.
7671         * config/nios2/constraints.md (w): New constraint.
7672         * config/nios2/predicates.md (ldstio_memory_operand): New.
7673         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
7674         operand predicate and constraint.
7675         (ld<bh>io_signed, st<bhw>io>): Likewise.
7676         * doc/md.texi (Machine Constraints): Document w constraint.
7678 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
7679             Cesar Philippidis  <cesar@codesourcery.com>
7680             Chung-Lin Tang  <cltang@codesourcery.com>
7682         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
7683         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
7684         Nios II architecture level.
7685         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
7686         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
7687         (OPTION_DEFAULT_SPECS): Define.
7688         (ASM_SPEC): Add -march= spec strings.
7689         * config/nios2/nios2.c (nios2_option_override): Check for
7690         conflicts involving new options.
7691         * config.gcc (nios2*-*-*): Support --with-arch=.
7692         * doc/invoke.texi (Option Summary, Nios II Options): Document
7693         -march=, -mbmx, and -mcdx.
7695 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
7697         PR rtl-optimization/66626
7698         * lra-constraints.c (lra_constraints): Prevent equivalence
7699         substitution for static chain pseudo in functions with nonlocal
7700         goto.
7702 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
7704         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
7705         (nios2_emit_stack_limit_check): Add size parameter.  Handle
7706         -fstack-limit-symbol as well as -fstack-limit-register.
7707         (nios2_expand_prologue): Emit only a single stack limit check,
7708         even if multiple stack adjustments are required.
7709         (nios2_option_override): Diagnose unsupported combination of -fpic
7710         and -stack-limit-symbol.
7712 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
7714         * Makefile.in (top_srcdir): New.
7715         * configure.ac: Use AM_ZLIB.
7716         * configure: Regeneated.
7718 2015-07-14  Matthias Klose  <doko@ubuntu.com>
7720         PR target/66840
7721         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
7723 2015-07-14  Richard Biener  <rguenther@suse.de>
7725         PR tree-optimization/66863
7726         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
7727         what we record for conversion use stmt lhs inequalities.
7729 2015-07-14  Richard Biener  <rguenther@suse.de>
7731         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
7732         (decision_tree::gen_gimple): Likewise.
7734 2015-07-14  Tom de Vries  <tom@codesourcery.com>
7736         * gcc.c (greater_than_spec_func): Declare forward.
7737         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
7738         -ftree-parallelize-loops={0,1}.
7739         (static_spec_functions): Add greater_than_spec_func function with name
7740         "gt".
7741         (greater_than_spec_func): New function.
7743 2015-07-14  Richard Biener  <rguenther@suse.de>
7745         * tree-ssa-dom.c (record_temporary_equivalences): Merge
7746         wideing type conversion case from record_equivalences_from_incoming_edge
7747         and use record_equality to record equivalences.
7748         (record_equivalences_from_incoming_edge): Call
7749         record_temporary_equivalences.
7751 2015-07-14  Richard Biener  <rguenther@suse.de>
7753         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
7754         (struct if_expr): New.
7755         (struct with_expr): Likewise.
7756         (is_a_helper): Add helpers for if_expr and with_expr.
7757         (struct simplify): Add simplify_kind enum and member.  Remove
7758         ifexpr_vec member.
7759         (simplify::simplify): Adjust.
7760         (lower_commutative): Adjust.
7761         (lower_opt_convert): Likewise.
7762         (lower_cond): Likewise.
7763         (replace_id): Handle with_expr and if_expr.
7764         (lower_for): Adjust.
7765         (dt_simplify::gen_1): New recursive worker, split out from ...
7766         (dt_simplify::gen): ... here.  Deal with if and with expansion
7767         recursively.
7768         (capture_info::capture_info): Take context argument
7769         (capture_info::walk_result): Only analyze specific result.
7770         (parser::parse_result): New function.
7771         (parser::parse_simplify): Adjust to parse ifs with then end
7772         else case.
7773         (parser::parse_if): Simplify.
7774         (parser::parse_pattern): Pass down simplify kind.
7775         * match.pd: Convert if structure to new syntax.
7777 2015-07-13  Marek Polacek  <polacek@redhat.com>
7779         * rtl.c (rtx_equal_p_cb): Fix typo.
7781 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
7783         * omega.h: Don't include config.h, don't include params.h again if
7784         omega.h has already been included.
7785         * graphite-poly.h: Include sese.h.
7786         * graphite.c: Don't include sese.h, remove needless includes and
7787         minimize includes outside #ifdef HAVE_isl block.
7788         * graphite-blocking.c: Don't include sese.h, remove needless includes,
7789         and wrap entire file in #ifdef HAVE_isl
7790         * graphite-dependences.c: Likewise.
7791         * graphite-interchange.c: Likewise.
7792         * graphite-isl-ast-to-gimple.c: Likewise.
7793         * graphite-optimize-isl.c: Likewise.
7794         * graphite-poly.c: Likewise.
7795         * graphite-scop-detection.c: Likewise.
7796         * graphite-sese-to-poly.c: Likewise.
7798 2015-07-13  Tom de Vries  <tom@codesourcery.com>
7800         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
7802 2015-07-13  Renlin Li  <renlin.li@arm.com>
7804         PR rtl/66556
7805         * simplify-rtx.c (simplify_const_relational_operation): Add
7806         side_effects_p checks.
7808 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
7810         * bitmap.h: Fix double word typos.
7811         * builtins.c: Same.
7812         * calls.c: Same.
7813         * cfgloopmanip.c: Same.
7814         * cgraph.c: Same.
7815         * cgraph.h: Same.
7816         * cgraphclones.c: Same.
7817         * combine.c: Same.
7818         * config/aarch64/aarch64-protos.h: Same.
7819         * config/aarch64/aarch64.c: Same.
7820         * config/aarch64/aarch64.md: Same.
7821         * config/arm/arm.md: Same.
7822         * config/arm/arm1020e.md: Same.
7823         * config/arm/arm1026ejs.md: Same.
7824         * config/arm/arm926ejs.md: Same.
7825         * config/arm/fa526.md: Same.
7826         * config/arm/fa606te.md: Same.
7827         * config/arm/fa626te.md: Same.
7828         * config/arm/fa726te.md: Same.
7829         * config/arm/fmp626.md: Same.
7830         * config/darwin.c: Same.
7831         * config/epiphany/epiphany.c: Same.
7832         * config/frv/frv.c: Same.
7833         * config/ft32/ft32.c: Same.
7834         * config/gnu-user.h: Same.
7835         * config/h8300/constraints.md: Same.
7836         * config/i386/i386.c: Same.
7837         * config/i386/i386.md: Same.
7838         * config/iq2000/iq2000.md: Same.
7839         * config/mips/mips.c: Same.
7840         * config/mmix/mmix.md: Same.
7841         * config/moxie/moxie.c: Same.
7842         * config/nds32/nds32.md: Same.
7843         * config/pa/pa.h: Same.
7844         * config/rs6000/aix.h: Same.
7845         * config/rs6000/rs6000.h: Same.
7846         * config/sh/sh.c: Same.
7847         * config/tilegx/tilegx.md: Same.
7848         * config/tilepro/gen-mul-tables.cc: Same.
7849         * cse.c: Same.
7850         * dbxout.c: Same.
7851         * doc/invoke.texi: Same.
7852         * dse.c: Same.
7853         * dwarf2out.c: Same.
7854         * final.c: Same.
7855         * gcc.c: Same.
7856         * genmatch.c: Same.
7857         * gimplify.c: Same.
7858         * hash-table.h: Same.
7859         * internal-fn.c: Same.
7860         * ipa-cp.c: Same.
7861         * ipa-devirt.c: Same.
7862         * ipa-icf.c: Same.
7863         * ipa-icf.h: Same.
7864         * ipa-profile.c: Same.
7865         * ipa-prop.c: Same.
7866         * ipa-prop.h: Same.
7867         * ira.c: Same.
7868         * omp-low.c: Same.
7869         * reg-stack.c: Same.
7870         * regcprop.c: Same.
7871         * reorg.c: Same.
7872         * rtl.h: Same.
7873         * sbitmap.h: Same.
7874         * tree-eh.c: Same.
7875         * tree-inline.c: Same.
7876         * tree-sra.c: Same.
7877         * tree-ssa-dom.c: Same.
7878         * tree-ssa-loop-ivopts.c: Same.
7879         * tree-ssa-structalias.c: Same.
7880         * tree-ssa-tail-merge.c: Same.
7881         * tree-ssa-ter.c: Same.
7882         * tree-ssa-threadupdate.c: Same.
7883         * tree-ssa-uninit.c: Same.
7884         * tree-ssanames.c: Same.
7885         * tree-vect-loop-manip.c: Same.
7886         * tree-vrp.c: Same.
7887         * tree.c: Same.
7888         * valtrack.c: Same.
7889         * vec.h: Same.
7891 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
7893         PR middle-end/66726
7894         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
7895         tree_ssa_phiopt_worker): Call it.
7897 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
7899         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
7900         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
7901         REG_EQUAL note.
7903 2015-07-11  Marek Polacek  <polacek@redhat.com>
7905         PR middle-end/66353
7906         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
7907         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
7908         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
7909         rather than bb_has_abnormal_call_pred.
7910         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
7911         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
7912         rather than bb_has_abnormal_call_pred.
7914 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
7916         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7917         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
7918         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7919         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
7920         v850_legitimate_address_p): New functions.
7921         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7923 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7925         PR target/66819
7926         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
7927         indirect sibcall with register arguments if register available
7928         for argument passing.
7929         (init_cumulative_args): Set cfun->machine->arg_reg_available
7930         to (cum->nregs > 0) or to true if function has a variable
7931         argument list.
7932         (function_arg_advance_32): Set cfun->machine->arg_reg_available
7933         to false if cum->nregs <= 0.
7934         * config/i386/i386.h (machine_function): Add arg_reg_available.
7936 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
7938         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
7939         and gen_higpart instead of gen_rtx_SUBREG.
7940         * config/i386/i386.md
7941         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
7942         (read-modify peephole2): Use gen_lowpart instead of
7943         gen_rtx_SUBREG for operand 5.
7945 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
7947         * config/tilepro/gen-mul-tables.cc (main): Change include list for
7948         generated files.
7949         * config/tilepro/mul-tables.c: Regenerate.
7950         * config/tilegx/mul-tables.c: Regenerate.
7952 2015-07-10  Richard Biener  <rguenther@suse.de>
7954         * fold-const.c (distribute_bit_expr): Remove.
7955         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
7956         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
7957         to A & (B | C) and simplifying A << C1 << C2 to ...
7958         * match.pd: ... patterns here.
7960 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
7962         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7963         Mark mem as READONLY and NOTRAP for PIC symbol.
7965 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
7967         * gimple-predict.h: New file.
7968         (gimple_predict_predictor, gimple_predict_set_predictor,
7969         gimple_predict_outcome, gimple_predict_set_outcome,
7970         gimple_build_predict): Relocate here.
7971         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
7972         gimple_predict_outcome, gimple_predict_set_outcome): Move to
7973         gimple-predict.h.
7974         * gimple.c (gimple_build_predict): Move to gimple-predict.h
7975         * basic-block.h: Don't include cfghooks.h.
7976         * backend.h: Don't include predict.h.
7977         * cfghooks.h: Include predict.h.
7978         * gimple-pretty-print.c: Include gimple-predict.h.
7979         * gimplify.c: Likwise.
7980         * predict.c: Adjust includes.
7981         * tree-inline.c: Likewise.
7982         * asan.c: Likewise.
7983         * auto-inc-dec.c: Likewise.
7984         * auto-profile.c: Likewise.
7985         * bb-reorder.c: Likewise.
7986         * builtins.c: Likewise.
7987         * caller-save.c: Likewise.
7988         * calls.c: Likewise.
7989         * cfganal.c: Likewise.
7990         * cfgbuild.c: Likewise.
7991         * cfg.c: Likewise.
7992         * cfgcleanup.c: Likewise.
7993         * cfgexpand.c: Likewise.
7994         * cfghooks.c: Likewise.
7995         * cfgloopanal.c: Likewise.
7996         * cfgloop.c: Likewise.
7997         * cfgloopmanip.c: Likewise.
7998         * cfgrtl.c: Likewise.
7999         * cgraph.c: Likewise.
8000         * cgraphunit.c: Likewise.
8001         * combine.c: Likewise.
8002         * cprop.c: Likewise.
8003         * cse.c: Likewise.
8004         * dce.c: Likewise.
8005         * dojump.c: Likewise.
8006         * dse.c: Likewise.
8007         * except.c: Likewise.
8008         * expmed.c: Likewise.
8009         * expr.c: Likewise.
8010         * final.c: Likewise.
8011         * fold-const.c: Likewise.
8012         * function.c: Likewise.
8013         * fwprop.c: Likewise.
8014         * gcc-plugin.h: Likewise.
8015         * gcse.c: Likewise.
8016         * genattrtab.c: Likewise.
8017         * genemit.c: Likewise.
8018         * gengtype.c: Likewise.
8019         * genopinit.c: Likewise.
8020         * genoutput.c: Likewise.
8021         * genpreds.c: Likewise.
8022         * genrecog.c: Likewise.
8023         * gimple-fold.c: Likewise.
8024         * gimple-iterator.c: Likewise.
8025         * gimple-ssa-isolate-paths.c: Likewise.
8026         * gimple-ssa-strength-reduction.c: Likewise.
8027         * graph.c: Likewise.
8028         * graphite-blocking.c: Likewise.
8029         * graphite.c: Likewise.
8030         * graphite-dependences.c: Likewise.
8031         * graphite-interchange.c: Likewise.
8032         * graphite-isl-ast-to-gimple.c: Likewise.
8033         * graphite-optimize-isl.c: Likewise.
8034         * graphite-poly.c: Likewise.
8035         * graphite-scop-detection.c: Likewise.
8036         * graphite-sese-to-poly.c: Likewise.
8037         * haifa-sched.c: Likewise.
8038         * ifcvt.c: Likewise.
8039         * internal-fn.c: Likewise.
8040         * ipa-cp.c: Likewise.
8041         * ipa-profile.c: Likewise.
8042         * ipa-split.c: Likewise.
8043         * ipa-utils.c: Likewise.
8044         * ira-build.c: Likewise.
8045         * ira-color.c: Likewise.
8046         * ira-conflicts.c: Likewise.
8047         * ira-costs.c: Likewise.
8048         * ira-emit.c: Likewise.
8049         * ira-lives.c: Likewise.
8050         * jump.c: Likewise.
8051         * loop-doloop.c: Likewise.
8052         * loop-init.c: Likewise.
8053         * loop-invariant.c: Likewise.
8054         * loop-unroll.c: Likewise.
8055         * lower-subreg.c: Likewise.
8056         * lra-assigns.c: Likewise.
8057         * lra.c: Likewise.
8058         * lra-coalesce.c: Likewise.
8059         * lra-constraints.c: Likewise.
8060         * lra-lives.c: Likewise.
8061         * lto-cgraph.c: Likewise.
8062         * lto-streamer-in.c: Likewise.
8063         * mode-switching.c: Likewise.
8064         * modulo-sched.c: Likewise.
8065         * omp-low.c: Likewise.
8066         * optabs.c: Likewise.
8067         * passes.c: Likewise.
8068         * postreload.c: Likewise.
8069         * postreload-gcse.c: Likewise.
8070         * profile.c: Likewise.
8071         * recog.c: Likewise.
8072         * regstat.c: Likewise.
8073         * reload1.c: Likewise.
8074         * reorg.c: Likewise.
8075         * rtlanal.c: Likewise.
8076         * sched-ebb.c: Likewise.
8077         * sel-sched-ir.c: Likewise.
8078         * sese.c: Likewise.
8079         * shrink-wrap.c: Likewise.
8080         * simplify-rtx.c: Likewise.
8081         * stmt.c: Likewise.
8082         * store-motion.c: Likewise.
8083         * tracer.c: Likewise.
8084         * trans-mem.c: Likewise.
8085         * tree-call-cdce.c: Likewise.
8086         * tree-cfg.c: Likewise.
8087         * tree-cfgcleanup.c: Likewise.
8088         * tree-chkp.c: Likewise.
8089         * tree-complex.c: Likewise.
8090         * tree-eh.c: Likewise.
8091         * tree-if-conv.c: Likewise.
8092         * tree-loop-distribution.c: Likewise.
8093         * tree-outof-ssa.c: Likewise.
8094         * tree-parloops.c: Likewise.
8095         * tree-predcom.c: Likewise.
8096         * tree-pretty-print.c: Likewise.
8097         * tree-profile.c: Likewise.
8098         * tree-sra.c: Likewise.
8099         * tree-ssa.c: Likewise.
8100         * tree-ssa-coalesce.c: Likewise.
8101         * tree-ssa-dce.c: Likewise.
8102         * tree-ssa-dom.c: Likewise.
8103         * tree-ssa-forwprop.c: Likewise.
8104         * tree-ssa-ifcombine.c: Likewise.
8105         * tree-ssa-loop-ch.c: Likewise.
8106         * tree-ssa-loop-im.c: Likewise.
8107         * tree-ssa-loop-ivcanon.c: Likewise.
8108         * tree-ssa-loop-ivopts.c: Likewise.
8109         * tree-ssa-loop-manip.c: Likewise.
8110         * tree-ssa-loop-prefetch.c: Likewise.
8111         * tree-ssa-loop-unswitch.c: Likewise.
8112         * tree-ssa-math-opts.c: Likewise.
8113         * tree-ssa-phiopt.c: Likewise.
8114         * tree-ssa-pre.c: Likewise.
8115         * tree-ssa-reassoc.c: Likewise.
8116         * tree-ssa-sink.c: Likewise.
8117         * tree-ssa-tail-merge.c: Likewise.
8118         * tree-ssa-threadedge.c: Likewise.
8119         * tree-ssa-threadupdate.c: Likewise.
8120         * tree-switch-conversion.c: Likewise.
8121         * tree-tailcall.c: Likewise.
8122         * tree-vect-data-refs.c: Likewise.
8123         * tree-vect-loop.c: Likewise.
8124         * tree-vect-loop-manip.c: Likewise.
8125         * tree-vectorizer.c: Likewise.
8126         * tree-vrp.c: Likewise.
8127         * ubsan.c: Likewise.
8128         * value-prof.c: Likewise.
8129         * varasm.c: Likewise.
8130         * var-tracking.c: Likewise.
8131         * config/aarch64/aarch64-builtins.c: Likewise.
8132         * config/aarch64/aarch64.c: Likewise.
8133         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8134         * config/alpha/alpha.c: Likewise.
8135         * config/arc/arc.c: Likewise.
8136         * config/arm/arm.c: Likewise.
8137         * config/avr/avr.c: Likewise.
8138         * config/bfin/bfin.c: Likewise.
8139         * config/c6x/c6x.c: Likewise.
8140         * config/cr16/cr16.c: Likewise.
8141         * config/cris/cris.c: Likewise.
8142         * config/darwin.c: Likewise.
8143         * config/darwin-c.c: Likewise.
8144         * config/epiphany/epiphany.c: Likewise.
8145         * config/epiphany/mode-switch-use.c: Likewise.
8146         * config/epiphany/resolve-sw-modes.c: Likewise.
8147         * config/fr30/fr30.c: Likewise.
8148         * config/frv/frv.c: Likewise.
8149         * config/ft32/ft32.c: Likewise.
8150         * config/h8300/h8300.c: Likewise.
8151         * config/i386/i386.c: Likewise.
8152         * config/i386/winnt.c: Likewise.
8153         * config/ia64/ia64.c: Likewise.
8154         * config/iq2000/iq2000.c: Likewise.
8155         * config/lm32/lm32.c: Likewise.
8156         * config/m32c/m32c.c: Likewise.
8157         * config/m32r/m32r.c: Likewise.
8158         * config/m68k/m68k.c: Likewise.
8159         * config/mcore/mcore.c: Likewise.
8160         * config/mep/mep.c: Likewise.
8161         * config/microblaze/microblaze.c: Likewise.
8162         * config/mips/mips.c: Likewise.
8163         * config/mmix/mmix.c: Likewise.
8164         * config/mn10300/mn10300.c: Likewise.
8165         * config/moxie/moxie.c: Likewise.
8166         * config/msp430/msp430.c: Likewise.
8167         * config/nds32/nds32.c: Likewise.
8168         * config/nds32/nds32-cost.c: Likewise.
8169         * config/nds32/nds32-fp-as-gp.c: Likewise.
8170         * config/nds32/nds32-intrinsic.c: Likewise.
8171         * config/nds32/nds32-isr.c: Likewise.
8172         * config/nds32/nds32-md-auxiliary.c: Likewise.
8173         * config/nds32/nds32-memory-manipulation.c: Likewise.
8174         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8175         * config/nds32/nds32-predicates.c: Likewise.
8176         * config/nios2/nios2.c: Likewise.
8177         * config/nvptx/nvptx.c: Likewise.
8178         * config/pa/pa.c: Likewise.
8179         * config/pdp11/pdp11.c: Likewise.
8180         * config/rl78/rl78.c: Likewise.
8181         * config/rs6000/rs6000.c: Likewise.
8182         * config/rx/rx.c: Likewise.
8183         * config/s390/s390.c: Likewise.
8184         * config/sh/sh.c: Likewise.
8185         * config/sh/sh-mem.cc: Likewise.
8186         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8187         * config/sh/sh_treg_combine.cc: Likewise.
8188         * config/sparc/sparc.c: Likewise.
8189         * config/spu/spu.c: Likewise.
8190         * config/stormy16/stormy16.c: Likewise.
8191         * config/tilegx/tilegx.c: Likewise.
8192         * config/tilepro/tilepro.c: Likewise.
8193         * config/v850/v850.c: Likewise.
8194         * config/vax/vax.c: Likewise.
8195         * config/visium/visium.c: Likewise.
8196         * config/xtensa/xtensa.c: Likewise.
8198 2015-07-10  Richard Biener  <rguenther@suse.de>
8200         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
8201         (decision_tree::gen_gimple): Likewise.
8202         (decision_tree::gen_generic): Likewise.
8204 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
8206         PR target/66813
8207         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
8208         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
8210 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
8212         PR middle-end/66820
8213         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
8214         or ORT_TASK contexts.
8215         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
8216         is non-zero.
8218 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8220         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
8221         above function.
8223 2015-07-10  Tom de Vries  <tom@codesourcery.com>
8225         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
8226         insert nit + 1 bound.
8228 2015-07-10  Richard Biener  <rguenther@suse.de>
8230         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
8231         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
8232         (if_convertible_loop_p_1): For this always compute bb predicates.
8233         (if_convertible_loop_p): And free them.
8235 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8237         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
8238         in dump message.
8240 2015-07-10  Richard Biener  <rguenther@suse.de>
8242         PR tree-optimization/66823
8243         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
8244         inverted predicate.
8246 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
8248         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
8249         to handle mips[32|64]r3 and mips[32|64]r5.
8251 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
8253         PR middle-end/66633
8254         * tree-nested.c (get_static_chain): Or in a flag into
8255         info->static_chain_added.
8256         (get_frame_field, get_nonlocal_debug_decl): Likewise.
8257         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
8258         2015-07-01 changes.
8259         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
8260         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
8261         add it to clauses.
8263         PR tree-optimization/66718
8264         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
8265         field.
8266         (vect_simd_lane_linear): New function.
8267         (vectorizable_simd_clone_call): Support using linear arguments for
8268         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
8270 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
8272         PR target/66821
8273         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
8275 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
8277         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
8278         Use machine mode, not enum machine_mode in the prototype.
8280         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
8281         classify 128-bit floating point support.
8282         (FLOAT128_IBM_P): Likewise.
8283         (FLOAT128_VECTOR_P): Likewise.
8284         (FLOAT128_2REG_P): Likewise.
8285         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
8286         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
8287         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8288         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
8290         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
8291         tests against TFmode/TDmode, since those modes do not use VSX
8292         addresses.
8293         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
8294         support.
8295         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
8296         tests against TFmode, etc.
8297         (invalid_e500_subreg): Add tests against IFmode/KFmode.
8298         (reg_offset_addressing_ok_p): Likewise.
8299         (rs6000_legitimate_offset_address_p): Likewise.
8300         (rs6000_legitimize_address): Likewise.
8301         (rs6000_legitimize_reload_address): Likewise.
8302         (rs6000_legitimate_address_p): Clean up tests against TFmode and
8303         TDmode to use the new helper macros, which will include IFmode and
8304         KFmode.
8305         (rs6000_emit_move): Likewise.
8306         (rs6000_darwin64_record_arg_recurse): Likewise.
8307         (print_operand): Likewise.
8308         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
8309         that uses a single vector register as a vector and not as a
8310         floating point register in terms of the calling sequence.
8311         (rs6000_discover_homogeneous_aggregate): Likewise.
8312         (rs6000_return_in_memory): Likewise.
8313         (init_cumulative_args): Likewise.
8314         (rs6000_function_arg_boundary): Likewise.
8315         (rs6000_function_arg_advance_1): Likewise.
8316         (rs6000_function_arg): Likewise.
8317         (rs6000_pass_by_reference): Likewise.
8318         (rs6000_gimplify_va_arg): Likewise.
8319         (rs6000_secondary_reload_memory): Use machine_mode not enum
8320         machine mode.
8321         (rs6000_split_multireg_move): Use new helper macros.
8322         (spe_func_has_64bit_regs_p): Likewise.
8323         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
8324         (output_toc): Use new helper macros.
8325         (rs6000_register_move_cost): Likewise.
8326         (rs6000_function_value): Add IEEE 128-bit floating point calling
8327         sequence support.
8328         (rs6000_libcall_value): Likewise.
8329         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
8330         floating point support.
8331         (rs6000_vector_mode_supported_p): Likewise.
8333 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
8335         PR rtl-optimization/66782
8336         * lra-int.h (struct lra_insn_recog_data): Add comment about
8337         clobbered hard regs for arg_hard_regs.
8338         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
8339         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
8340         Add condition for processing used hard regs.
8341         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
8342         Process clobbered hard regs.
8344 2015-07-09  Michael Matz  <matz@suse.de>
8346         * genmatch.c (fprintf_indent): New function.
8347         (operand::gen_transform): Add indent parameter.
8348         (expr::gen_transform, c_expr::gen_transform,
8349         capture::gen_transform): Ditto and use fprintf_indent.
8350         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
8351         (dt_operand::gen, dt_operand::gen_predicate,
8352         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
8353         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
8354         (decision_tree::gen_gimple): Adjust calls and indent generated
8355         code.
8356         (decision_tree::gen_generic): Ditto.
8357         (write_predicate): Ditto.
8359 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
8361         PR target/66814
8362         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
8363         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
8364         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
8365         {GENERAL,SSE,MMX}_REG_P where appropriate.
8367 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
8369         * lto-streamer.h: Don't include target.h and alloc-pool.h.
8370         * builtins.c: Adjust includes.
8371         * gimple.c: Likewise.
8372         * ipa-icf.c: Likewise.
8373         * lto-opts.c: Likewise.
8374         * ipa-reference.c: Likewise.
8375         * lto-section-out.c: Likewise.
8376         * lto-streamer-in.c: Likewise.
8377         * lto-streamer-out.c: Likewise.
8378         * opts-global.c: Likewise.
8379         * symtab.c: Likewise.
8380         * tree-chkp.c: Likewise.
8381         * tree-ssa-live.c: Likewise.
8382         * tree-streamer-in.c: Likewise.
8383         * tree-streamer-out.c: Likewise.
8384         * config/darwin.c: Likewise.
8385         * config/i386/winnt.c: Likewise.
8387 2015-07-09  Richard Biener  <rguenther@suse.de>
8389         * genmatch.c (struct expr): Add force_single_use flag.
8390         (expr::expr): Add copy constructor.
8391         (capture_info::walk_match): Gather force_single_use captures.
8392         (expr::gen_transform): Use possibly NULLified sequence.
8393         (dt_simplify::gen): Apply single-use restrictions by NULLifying
8394         seq if any constrained expr is not single-use.
8395         (parser::parse_expr): Refactor to allow multiple flags.  Handle
8396         's' flag to force an expression have a single-use if the pattern
8397         simplifies to more than one statement.
8398         * match.pd: Convert most single_use conditionals to :s flags.
8400 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
8402         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
8403         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8404         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8406 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
8408         * flags.h: Don't include flag-types.h or options.h.
8409         * opts-common.c: Adjust includes.
8410         * opts-global.c: Likewise.
8411         * common/config/epiphany/epiphany-common.c: Likewise.
8413 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
8415         PR target/66818
8416         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
8417         for IA MCU.
8419 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
8421         PR target/66817
8422         * config/i386/i386.c (ix86_return_in_memory): Return true
8423         if int_size_in_bytes returns negative for IA MCU.
8425 2015-07-09  Marek Polacek  <polacek@redhat.com>
8427         PR tree-optimization/66718
8428         * Makefile.in (OBJS): Add gimple-laddress.o.
8429         * passes.def: Schedule pass_laddress.
8430         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
8431         * tree-pass.h (make_pass_laddress): Declare.
8432         * gimple-laddress.c: New file.
8434 2015-07-09  Richard Biener  <rguenther@suse.de>
8436         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
8438 2015-07-09  Richard Biener  <rguenther@suse.de>
8440         PR tree-optimization/66807
8441         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
8443 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
8445         * function.c (stack_protect_epilogue): Use if rather than switch for
8446         check targetm.have_stack_protect_test.
8448 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8450         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
8451         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
8452         * config/arc/arc.h: Likewise.
8453         * config/arm/arm.h: Likewise.
8454         * config/bfin/bfin.h: Likewise.
8455         * config/epiphany/epiphany.h: Likewise.
8456         * config/frv/frv.h: Likewise.
8457         * config/ia64/ia64.h: Likewise.
8458         * config/iq2000/iq2000.h: Likewise.
8459         * config/lm32/lm32.h: Likewise.
8460         * config/m32r/m32r.h: Likewise.
8461         * config/mcore/mcore.h: Likewise.
8462         * config/mep/mep.h: Likewise.
8463         * config/microblaze/microblaze.h: Likewise.
8464         * config/mips/mips.h: Likewise.
8465         * config/mmix/mmix.h: Likewise.
8466         * config/mn10300/mn10300.h: Likewise.
8467         * config/nds32/nds32.h: Likewise.
8468         * config/nios2/nios2.h: Likewise.
8469         * config/pa/pa.h: Likewise.
8470         * config/rl78/rl78.h: Likewise.
8471         * config/sh/sh.h: Likewise.
8472         * config/sparc/sparc.h: Likewise.
8473         * config/stormy16/stormy16.h: Likewise.
8474         * config/tilegx/tilegx.h: Likewise.
8475         * config/tilepro/tilepro.h: Likewise.
8476         * config/v850/v850.h: Likewise.
8477         * config/xtensa/xtensa.h: Likewise.
8478         * doc/tm.texi: Regenerate.
8479         * doc/tm.texi.in: Adjust.
8480         * combine.c (simplify_set): Likewise.
8481         (simplify_comparison): Likewise.
8482         * expr.c (store_constructor): Likewise.
8483         * internal-fn.c (expand_arith_overflow): Likewise.
8484         * reload.c (push_reload): Likewise.
8485         (find_reloads): Likewise.
8486         (find_reloads_subreg_address): Likewise.
8487         * reload1.c (eliminate_regs_1): Likewise.
8488         * rtlanal.c (nonzero_bits1): Likewise.
8489         (num_sign_bit_copies1): Likewise.
8490         * simplify-rtx.c (simplify_truncation): Likewise.
8492 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8494         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
8495         of AUTO_INC_DEC with the preprocessor.
8496         * combine.c (combine_instructions): Likewise.
8497         (can_combine_p): Likewise.
8498         (try_combine): Likewise.
8499         * emit-rtl.c (try_split): Likewise.
8500         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8501         * lower-subreg.c (resolve_simple_move): Likewise.
8502         * lra.c (update_inc_notes): Likewise.
8503         * recog.c (asm_operand_ok): Likewise.
8504         (constrain_operands): Likewise.
8505         * regrename.c (scan_rtx_address): Likewise.
8506         * reload.c (update_auto_inc_notes): Likewise.
8507         (reg_inc_found_and_valid_p): Likewise.
8508         * reload1.c (reload): Likewise.
8509         (emit_input_reload_insns): Likewise.
8510         (delete_output_reload): Likewise.
8511         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8512         * valtrack.c (cleanup_auto_inc_dec): Likewise.
8514 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8516         * rtl.h: Always define AUTO_INC_DEC.
8517         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
8518         * combine.c (combine_instructions): Likewise.
8519         (can_combine_p): Likewise.
8520         (try_combine): Likewise.
8521         * emit-rtl.c (try_split): Likewise.
8522         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
8523         * lower-subreg.c (resolve_simple_move): Likewise.
8524         * lra.c (update_inc_notes): Likewise.
8525         * recog.c (asm_operand_ok): Likewise.
8526         (constrain_operands): Likewise.
8527         * regrename.c (scan_rtx_address): Likewise.
8528         * reload.c (update_auto_inc_notes): Likewise.
8529         (find_equiv_reg): Likewise.
8530         * reload1.c (reload): Likewise.
8531         (reload_as_needed): Likewise.
8532         (choose_reload_regs): Likewise.
8533         (emit_input_reload_insns): Likewise.
8534         (delete_output_reload): Likewise.
8535         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8536         * valtrack.c (cleanup_auto_inc_dec): Likewise.
8538 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8540         * combine.c (can_combine_def_p): Don't check the value of
8541         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
8542         (combinable_i3pat): Likewise.
8543         (mark_used_regs_combine): Likewise.
8544         * regrename.c (rename_chains): Likewise.
8545         * reload.c (find_reloads_address): Likewise.
8546         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8548 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8550         * combine.c (update_rsp_from_reg_equal): Don't check if
8551         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
8552         (reg_nonzero_bits_for_combine): Likewise.
8553         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
8554         1.
8555         * config/frv/frv.h: Likewise.
8556         * config/lm32/lm32.h: Likewise.
8557         * config/mep/mep.h: Likewise.
8558         * config/mips/mips.h: Likewise.
8559         * config/rs6000/rs6000.h: Likewise.
8560         * config/sh/sh.h: Likewise.
8561         * config/tilegx/tilegx.h (enum reg_class): Likewise.
8562         * config/tilepro/tilepro.h: Likewise.
8563         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
8564         * doc/tm.texi: Regenerate.
8565         * doc/tm.texi.in: Adjust.
8566         * rtlanal.c (nonzero_bits1): Likewise.
8568 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8570         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
8571         with the preprocessor.
8572         (combine_instructions): Likewise.
8573         (try_combine): Likewise.
8574         (subst): Likewise.
8575         (distribute_notes): Likewise.
8577 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8579         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
8580         defined.
8581         (simplify_set): Likewise.
8582         * cse.c (cse_insn): Likewise.
8583         * fold-const.c (fold_single_bit_test): Likewise.
8584         (fold_unary_loc): Likewise.
8585         * postreload.c (reload_cse_simplify_set): Likewise.
8586         (reload_cse_simplify_operands): Likewise.
8588 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
8590         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
8591         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
8593 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
8595         PR target/66746
8596         * config/i386/x86intrin.h: Include <adxintrin.h> even if
8597         __iamcu__ is defined.
8599 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
8601         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
8603 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
8605         PR target/66523
8606         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
8607         names from preservation.
8609 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
8611         PR target/66806
8612         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
8613         change for IAMCU.
8614         (function_arg_advance_32): Don't pass vectors in registers for
8615         IAMCU.
8616         (function_arg_32): Likewise.
8617         (ix86_return_in_memory): Don't return vectors in registers for
8618         IAMCU.
8620 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
8622         PR middle-end/66334
8623         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
8624         hard regno live at the start of BB with incoming abnormal edges.
8625         * lra-lives.c (process_bb_lives): Ditto.
8627 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
8629         PR libgomp/65099
8630         * config/nvptx/mkoffload.c (main): Create an offload image only in
8631         64-bit configurations.
8633 2015-07-08  Martin Liska  <mliska@suse.cz>
8635         PR bootstrap/66744
8636         * tree-sra.c (create_access_1): Call ctor without brackets.
8637         (create_artificial_child_access): Likewise.
8639 2015-07-08  Richard Biener  <rguenther@suse.de>
8641         PR tree-optimization/66793
8642         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
8643         Properly split the block after stmts ending it.
8645 2015-07-08  Richard Biener  <rguenther@suse.de>
8647         PR tree-optimization/66794
8648         * passes.c (execute_function_todo): Assert that post-dominators
8649         are not computed.
8650         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
8651         Free post-dominators.
8653 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8655         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
8656         with early exit.
8658 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
8660         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
8661         more than or equal 8 and less than 32 when optimizing for size.
8663 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8665         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
8666         COSTS_N_INSNS (1) and increment it appropriately throughout the
8667         function.
8669 2015-07-08  Richard Biener  <rguenther@suse.de>
8671         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
8673 2015-07-08  Alan Modra  <amodra@gmail.com>
8675         * target.def (rtx_costs): Remove "code" param, add "mode".
8676         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
8677         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
8678         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
8679         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
8680         call.  Track mode when given in rtx.
8681         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
8682         (default_address_cost): Pass Pmode to rtx_cost.
8683         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
8684         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
8685         with NULL set.
8686         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
8687         (notreg_cost): Add mode param.  Use it.
8688         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
8689         mode param and pass to set_src_cost.  Update all calls.
8690         (hash_scan_set): Formatting.
8691         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
8692         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
8693         * hooks.h: Ditto.
8694         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
8695         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
8696         emit_store_flag): Update set_src_cost and rtx_cost calls.
8697         * auto-inc-dec.c (attempt_change): Likewise.
8698         * calls.c (precompute_register_parameters): Likewise.
8699         * combine.c (expand_compound_operation, make_extraction,
8700         force_to_mode, distribute_and_simplify_rtx): Likewise.
8701         * dojump.c (prefer_and_bit_test): Likewise.
8702         * dse.c (find_shift_sequence): Likewise.
8703         * expr.c (compress_float_constant): Likewise.
8704         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
8705         * ifcvt.c (noce_try_sign_mask): Likewise.
8706         * loop-doloop.c (doloop_optimize): Likewise.
8707         * loop-invariant.c (create_new_invariant): Likewise.
8708         * lower-subreg.c (shift_cost, compute_costs): Likewise.
8709         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
8710         lshift_cheap_p): Likewise.
8711         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
8712         try_replace_in_use, reload_cse_move2add): Likewise.
8713         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
8714         Likewise.
8715         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8716         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8717         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
8718         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
8719         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
8720         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
8721         to rtx_cost calls.
8722         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
8723         * config/arc/arc.c (arc_rtx_costs): Likewise.
8724         * config/arm/arm.c (arm_rtx_costs): Likewise.
8725         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
8726         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8727         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
8728         * config/cris/cris.c (cris_rtx_costs): Likewise.
8729         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
8730         * config/frv/frv.c (frv_rtx_costs): Likewise.
8731         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
8732         * config/i386/i386.c (ix86_rtx_costs): Likewise.
8733         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
8734         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
8735         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
8736         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
8737         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
8738         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
8739         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
8740         * config/mep/mep.c (mep_rtx_cost): Likewise.
8741         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
8742         * config/mips/mips.c (mips_rtx_costs): Likewise.
8743         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
8744         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
8745         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
8746         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
8747         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
8748         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
8749         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
8750         * config/pa/pa.c (hppa_rtx_costs): Likewise.
8751         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
8752         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
8753         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
8754         * config/s390/s390.c (s390_rtx_costs): Likewise.
8755         * config/sh/sh.c (sh_rtx_costs): Likewise.
8756         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
8757         * config/spu/spu.c (spu_rtx_costs): Likewise.
8758         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
8759         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
8760         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
8761         * config/v850/v850.c (v850_rtx_costs): Likewise.
8762         * config/vax/vax.c (vax_rtx_costs): Likewise.
8763         * config/visium/visium.c (visium_rtx_costs): Likewise.
8764         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
8765         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
8766         "code" param, and pass as outer_code to first rtx_cost call.  Pass
8767         mode to rtx_cost calls.
8768         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
8769         calls.
8770         (aarch64_rtx_costs_wrapper): Update.
8771         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
8772         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
8773         rtx_cost calls.
8774         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
8775         and rtx_cost calls.
8776         (avr_operand_rtx_cost): Similarly.
8777         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
8778         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
8779         * config/mips/mips.c (mips_stack_address_p): Comment typo.
8780         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
8781         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
8782         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
8783         rtx_cost.
8784         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
8785         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
8786         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
8787         * doc/tm.texi: Regenerate.
8789 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
8791         * tree-core.h: Include symtab.h.
8792         * rtl.h: Include hard-reg-set.h but not flags.h.
8793         (HARD_CONST): Remove condition compilation involving HARD_CONST since
8794         hard-reg-set.h is always included.
8795         * regs.h: Don't include hard-reg-set.h or rtl.h.
8796         * cfg.h: Include dominance.h.
8797         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
8798         * backend.h: New.  Aggregate commonly used backend header files.
8799         * gimple-ssa.h: Don't include tree-hasher.h.
8800         * ssa.h: New.  Aggregate commonly used SSA header files.
8801         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
8802         * sel-sched-ir.h: Flatten includes.
8803         * lra-int.h: Flatten completely.
8804         * sel-sched-dump.h: Flatten includes.
8805         * ira-int.h: Flatten includes.
8806         * gimple-streamer.h: Remove all includes.
8807         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
8808         * resource.h: Flatten hard-reg-set.h and df.h.
8809         * sched-int.h: Flatten insn-arrt.h and df.h.
8810         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
8811         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
8812         * genattrtab.c (write_header): Adjust generated includes.
8813         * genautomata.c (main): Likewise.
8814         * genconditions.c (write-header): Likewise.
8815         * genemit.c (main): Likewise.
8816         * gengtype.c (open_base_files): Likewise.
8817         * genopinit.c (main): Likewise.
8818         * genoutput.c (output_prologue): Likewise.
8819         * genpeep.c (main): Likewise.
8820         * genpreds.c (write_insn_preds_c): Likewise.
8821         * genrecog.c (write_header): Likewise.
8822         * alias.c: Adjust includes.
8823         * asan.c: Likewise.
8824         * attribs.c: Likewise.
8825         * auto-inc-dec.c: Likewise.
8826         * auto-profile.c: Likewise.
8827         * bb-reorder.c: Likewise.
8828         * bt-load.c: Likewise.
8829         * builtins.c: Likewise.
8830         * caller-save.c: Likewise.
8831         * calls.c: Likewise.
8832         * ccmp.c: Likewise.
8833         * cfg.c: Likewise.
8834         * cfganal.c: Likewise.
8835         * cfgbuild.c: Likewise.
8836         * cfgcleanup.c: Likewise.
8837         * cfgexpand.c: Likewise.
8838         * cfghooks.c: Likewise.
8839         * cfgloop.c: Likewise.
8840         * cfgloopanal.c: Likewise.
8841         * cfgloopmanip.c: Likewise.
8842         * cfgrtl.c: Likewise.
8843         * cgraph.c: Likewise.
8844         * cgraphbuild.c: Likewise.
8845         * cgraphclones.c: Likewise.
8846         * cgraphunit.c: Likewise.
8847         * cilk-common.c: Likewise.
8848         * combine-stack-adj.c: Likewise.
8849         * combine.c: Likewise.
8850         * compare-elim.c: Likewise.
8851         * convert.c: Likewise.
8852         * coverage.c: Likewise.
8853         * cppbuiltin.c: Likewise.
8854         * cprop.c: Likewise.
8855         * cse.c: Likewise.
8856         * cselib.c: Likewise.
8857         * data-streamer-in.c: Likewise.
8858         * data-streamer-out.c: Likewise.
8859         * data-streamer.c: Likewise.
8860         * dbxout.c: Likewise.
8861         * dce.c: Likewise.
8862         * ddg.c: Likewise.
8863         * debug.c: Likewise.
8864         * df-core.c: Likewise.
8865         * df-problems.c: Likewise.
8866         * df-scan.c: Likewise.
8867         * dfp.c: Likewise.
8868         * dojump.c: Likewise.
8869         * dominance.c: Likewise.
8870         * domwalk.c: Likewise.
8871         * double-int.c: Likewise.
8872         * dse.c: Likewise.
8873         * dumpfile.c: Likewise.
8874         * dwarf2asm.c: Likewise.
8875         * dwarf2cfi.c: Likewise.
8876         * dwarf2out.c: Likewise.
8877         * emit-rtl.c: Likewise.
8878         * et-forest.c: Likewise.
8879         * except.c: Likewise.
8880         * explow.c: Likewise.
8881         * expmed.c: Likewise.
8882         * expr.c: Likewise.
8883         * final.c: Likewise.
8884         * fixed-value.c: Likewise.
8885         * fold-const.c: Likewise.
8886         * function.c: Likewise.
8887         * fwprop.c: Likewise.
8888         * gcc-plugin.h: Likewise.
8889         * gcse-common.c: Likewise.
8890         * gcse.c: Likewise.
8891         * generic-match-head.c: Likewise.
8892         * ggc-page.c: Likewise.
8893         * gimple-builder.c: Likewise.
8894         * gimple-expr.c: Likewise.
8895         * gimple-fold.c: Likewise.
8896         * gimple-iterator.c: Likewise.
8897         * gimple-low.c: Likewise.
8898         * gimple-match-head.c: Likewise.
8899         * gimple-pretty-print.c: Likewise.
8900         * gimple-ssa-isolate-paths.c: Likewise.
8901         * gimple-ssa-strength-reduction.c: Likewise.
8902         * gimple-streamer-in.c: Likewise.
8903         * gimple-streamer-out.c: Likewise.
8904         * gimple-walk.c: Likewise.
8905         * gimple.c: Likewise.
8906         * gimplify-me.c: Likewise.
8907         * gimplify.c: Likewise.
8908         * godump.c: Likewise.
8909         * graph.c: Likewise.
8910         * graphite-blocking.c: Likewise.
8911         * graphite-dependences.c: Likewise.
8912         * graphite-interchange.c: Likewise.
8913         * graphite-isl-ast-to-gimple.c: Likewise.
8914         * graphite-optimize-isl.c: Likewise.
8915         * graphite-poly.c: Likewise.
8916         * graphite-scop-detection.c: Likewise.
8917         * graphite-sese-to-poly.c: Likewise.
8918         * graphite.c: Likewise.
8919         * haifa-sched.c: Likewise.
8920         * hw-doloop.c: Likewise.
8921         * ifcvt.c: Likewise.
8922         * init-regs.c: Likewise.
8923         * internal-fn.c: Likewise.
8924         * ipa-chkp.c: Likewise.
8925         * ipa-comdats.c: Likewise.
8926         * ipa-cp.c: Likewise.
8927         * ipa-devirt.c: Likewise.
8928         * ipa-icf-gimple.c: Likewise.
8929         * ipa-icf.c: Likewise.
8930         * ipa-inline-analysis.c: Likewise.
8931         * ipa-inline-transform.c: Likewise.
8932         * ipa-inline.c: Likewise.
8933         * ipa-polymorphic-call.c: Likewise.
8934         * ipa-profile.c: Likewise.
8935         * ipa-prop.c: Likewise.
8936         * ipa-pure-const.c: Likewise.
8937         * ipa-ref.c: Likewise.
8938         * ipa-reference.c: Likewise.
8939         * ipa-split.c: Likewise.
8940         * ipa-utils.c: Likewise.
8941         * ipa-visibility.c: Likewise.
8942         * ipa.c: Likewise.
8943         * ira-build.c: Likewise.
8944         * ira-color.c: Likewise.
8945         * ira-conflicts.c: Likewise.
8946         * ira-costs.c: Likewise.
8947         * ira-emit.c: Likewise.
8948         * ira-lives.c: Likewise.
8949         * ira.c: Likewise.
8950         * jump.c: Likewise.
8951         * langhooks.c: Likewise.
8952         * lcm.c: Likewise.
8953         * loop-doloop.c: Likewise.
8954         * loop-init.c: Likewise.
8955         * loop-invariant.c: Likewise.
8956         * loop-iv.c: Likewise.
8957         * loop-unroll.c: Likewise.
8958         * lower-subreg.c: Likewise.
8959         * lra-assigns.c: Likewise.
8960         * lra-coalesce.c: Likewise.
8961         * lra-constraints.c: Likewise.
8962         * lra-eliminations.c: Likewise.
8963         * lra-lives.c: Likewise.
8964         * lra-remat.c: Likewise.
8965         * lra-spills.c: Likewise.
8966         * lra.c: Likewise.
8967         * lto-cgraph.c: Likewise.
8968         * lto-compress.c: Likewise.
8969         * lto-opts.c: Likewise.
8970         * lto-section-in.c: Likewise.
8971         * lto-section-out.c: Likewise.
8972         * lto-streamer-in.c: Likewise.
8973         * lto-streamer-out.c: Likewise.
8974         * lto-streamer.c: Likewise.
8975         * mcf.c: Likewise.
8976         * mode-switching.c: Likewise.
8977         * modulo-sched.c: Likewise.
8978         * omega.c: Likewise.
8979         * omp-low.c: Likewise.
8980         * optabs.c: Likewise.
8981         * opts-global.c: Likewise.
8982         * passes.c: Likewise.
8983         * plugin.c: Likewise.
8984         * postreload-gcse.c: Likewise.
8985         * postreload.c: Likewise.
8986         * predict.c: Likewise.
8987         * print-rtl.c: Likewise.
8988         * print-tree.c: Likewise.
8989         * profile.c: Likewise.
8990         * real.c: Likewise.
8991         * realmpfr.c: Likewise.
8992         * recog.c: Likewise.
8993         * ree.c: Likewise.
8994         * reg-stack.c: Likewise.
8995         * regcprop.c: Likewise.
8996         * reginfo.c: Likewise.
8997         * regrename.c: Likewise.
8998         * regstat.c: Likewise.
8999         * reload.c: Likewise.
9000         * reload1.c: Likewise.
9001         * reorg.c: Likewise.
9002         * resource.c: Likewise.
9003         * rtl-chkp.c: Likewise.
9004         * rtlanal.c: Likewise.
9005         * rtlhooks.c: Likewise.
9006         * sanopt.c: Likewise.
9007         * sched-deps.c: Likewise.
9008         * sched-ebb.c: Likewise.
9009         * sched-rgn.c: Likewise.
9010         * sched-vis.c: Likewise.
9011         * sdbout.c: Likewise.
9012         * sel-sched-dump.c: Likewise.
9013         * sel-sched-ir.c: Likewise.
9014         * sel-sched.c: Likewise.
9015         * sese.c: Likewise.
9016         * shrink-wrap.c: Likewise.
9017         * simplify-rtx.c: Likewise.
9018         * stack-ptr-mod.c: Likewise.
9019         * stmt.c: Likewise.
9020         * stor-layout.c: Likewise.
9021         * store-motion.c: Likewise.
9022         * stringpool.c: Likewise.
9023         * symtab.c: Likewise.
9024         * target-globals.c: Likewise.
9025         * targhooks.c: Likewise.
9026         * toplev.c: Likewise.
9027         * tracer.c: Likewise.
9028         * trans-mem.c: Likewise.
9029         * tree-affine.c: Likewise.
9030         * tree-browser.c: Likewise.
9031         * tree-call-cdce.c: Likewise.
9032         * tree-cfg.c: Likewise.
9033         * tree-cfgcleanup.c: Likewise.
9034         * tree-chkp-opt.c: Likewise.
9035         * tree-chkp.c: Likewise.
9036         * tree-chrec.c: Likewise.
9037         * tree-complex.c: Likewise.
9038         * tree-data-ref.c: Likewise.
9039         * tree-dfa.c: Likewise.
9040         * tree-diagnostic.c: Likewise.
9041         * tree-dump.c: Likewise.
9042         * tree-eh.c: Likewise.
9043         * tree-emutls.c: Likewise.
9044         * tree-if-conv.c: Likewise.
9045         * tree-inline.c: Likewise.
9046         * tree-into-ssa.c: Likewise.
9047         * tree-iterator.c: Likewise.
9048         * tree-loop-distribution.c: Likewise.
9049         * tree-nested.c: Likewise.
9050         * tree-nrv.c: Likewise.
9051         * tree-object-size.c: Likewise.
9052         * tree-outof-ssa.c: Likewise.
9053         * tree-parloops.c: Likewise.
9054         * tree-phinodes.c: Likewise.
9055         * tree-predcom.c: Likewise.
9056         * tree-pretty-print.c: Likewise.
9057         * tree-profile.c: Likewise.
9058         * tree-scalar-evolution.c: Likewise.
9059         * tree-sra.c: Likewise.
9060         * tree-ssa-address.c: Likewise.
9061         * tree-ssa-alias.c: Likewise.
9062         * tree-ssa-ccp.c: Likewise.
9063         * tree-ssa-coalesce.c: Likewise.
9064         * tree-ssa-copy.c: Likewise.
9065         * tree-ssa-copyrename.c: Likewise.
9066         * tree-ssa-dce.c: Likewise.
9067         * tree-ssa-dom.c: Likewise.
9068         * tree-ssa-dse.c: Likewise.
9069         * tree-ssa-forwprop.c: Likewise.
9070         * tree-ssa-ifcombine.c: Likewise.
9071         * tree-ssa-live.c: Likewise.
9072         * tree-ssa-loop-ch.c: Likewise.
9073         * tree-ssa-loop-im.c: Likewise.
9074         * tree-ssa-loop-ivcanon.c: Likewise.
9075         * tree-ssa-loop-ivopts.c: Likewise.
9076         * tree-ssa-loop-manip.c: Likewise.
9077         * tree-ssa-loop-niter.c: Likewise.
9078         * tree-ssa-loop-prefetch.c: Likewise.
9079         * tree-ssa-loop-unswitch.c: Likewise.
9080         * tree-ssa-loop.c: Likewise.
9081         * tree-ssa-math-opts.c: Likewise.
9082         * tree-ssa-operands.c: Likewise.
9083         * tree-ssa-phiopt.c: Likewise.
9084         * tree-ssa-phiprop.c: Likewise.
9085         * tree-ssa-pre.c: Likewise.
9086         * tree-ssa-propagate.c: Likewise.
9087         * tree-ssa-reassoc.c: Likewise.
9088         * tree-ssa-sccvn.c: Likewise.
9089         * tree-ssa-scopedtables.c: Likewise.
9090         * tree-ssa-sink.c: Likewise.
9091         * tree-ssa-strlen.c: Likewise.
9092         * tree-ssa-structalias.c: Likewise.
9093         * tree-ssa-tail-merge.c: Likewise.
9094         * tree-ssa-ter.c: Likewise.
9095         * tree-ssa-threadedge.c: Likewise.
9096         * tree-ssa-threadupdate.c: Likewise.
9097         * tree-ssa-uncprop.c: Likewise.
9098         * tree-ssa-uninit.c: Likewise.
9099         * tree-ssa.c: Likewise.
9100         * tree-ssanames.c: Likewise.
9101         * tree-stdarg.c: Likewise.
9102         * tree-streamer-in.c: Likewise.
9103         * tree-streamer-out.c: Likewise.
9104         * tree-streamer.c: Likewise.
9105         * tree-switch-conversion.c: Likewise.
9106         * tree-tailcall.c: Likewise.
9107         * tree-vect-data-refs.c: Likewise.
9108         * tree-vect-generic.c: Likewise.
9109         * tree-vect-loop-manip.c: Likewise.
9110         * tree-vect-loop.c: Likewise.
9111         * tree-vect-patterns.c: Likewise.
9112         * tree-vect-slp.c: Likewise.
9113         * tree-vect-stmts.c: Likewise.
9114         * tree-vectorizer.c: Likewise.
9115         * tree-vrp.c: Likewise.
9116         * tree.c: Likewise.
9117         * tsan.c: Likewise.
9118         * ubsan.c: Likewise.
9119         * valtrack.c: Likewise.
9120         * value-prof.c: Likewise.
9121         * var-tracking.c: Likewise.
9122         * varasm.c: Likewise.
9123         * varpool.c: Likewise.
9124         * vmsdbgout.c: Likewise.
9125         * vtable-verify.c: Likewise.
9126         * web.c: Likewise.
9127         * wide-int.cc: Likewise.
9128         * xcoffout.c: Likewise.
9129         * config/aarch64/aarch64-builtins.c: Likewise.
9130         * config/aarch64/aarch64.c: Likewise.
9131         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9132         * config/alpha/alpha.c: Likewise.
9133         * config/arc/arc.c: Likewise.
9134         * config/arm/aarch-common.c: Likewise.
9135         * config/arm/arm-builtins.c: Likewise.
9136         * config/arm/arm-c.c: Likewise.
9137         * config/arm/arm.c: Likewise.
9138         * config/avr/avr-c.c: Likewise.
9139         * config/avr/avr-log.c: Likewise.
9140         * config/avr/avr.c: Likewise.
9141         * config/bfin/bfin.c: Likewise.
9142         * config/c6x/c6x.c: Likewise.
9143         * config/cr16/cr16.c: Likewise.
9144         * config/cris/cris.c: Likewise.
9145         * config/darwin-c.c: Likewise.
9146         * config/darwin.c: Likewise.
9147         * config/epiphany/epiphany.c: Likewise.
9148         * config/epiphany/mode-switch-use.c: Likewise.
9149         * config/epiphany/resolve-sw-modes.c: Likewise.
9150         * config/fr30/fr30.c: Likewise.
9151         * config/frv/frv.c: Likewise.
9152         * config/ft32/ft32.c: Likewise.
9153         * config/h8300/h8300.c: Likewise.
9154         * config/i386/i386-c.c: Likewise.
9155         * config/i386/i386.c: Likewise.
9156         * config/i386/msformat-c.c: Likewise.
9157         * config/i386/winnt-cxx.c: Likewise.
9158         * config/i386/winnt-stubs.c: Likewise.
9159         * config/i386/winnt.c: Likewise.
9160         * config/ia64/ia64-c.c: Likewise.
9161         * config/ia64/ia64.c: Likewise.
9162         * config/iq2000/iq2000.c: Likewise.
9163         * config/lm32/lm32.c: Likewise.
9164         * config/m32c/m32c-pragma.c: Likewise.
9165         * config/m32c/m32c.c: Likewise.
9166         * config/m32r/m32r.c: Likewise.
9167         * config/m68k/m68k.c: Likewise.
9168         * config/mcore/mcore.c: Likewise.
9169         * config/mep/mep-pragma.c: Likewise.
9170         * config/mep/mep.c: Likewise.
9171         * config/microblaze/microblaze-c.c: Likewise.
9172         * config/microblaze/microblaze.c: Likewise.
9173         * config/mips/mips.c: Likewise.
9174         * config/mmix/mmix.c: Likewise.
9175         * config/mn10300/mn10300.c: Likewise.
9176         * config/moxie/moxie.c: Likewise.
9177         * config/msp430/msp430-c.c: Likewise.
9178         * config/msp430/msp430.c: Likewise.
9179         * config/nds32/nds32-cost.c: Likewise.
9180         * config/nds32/nds32-fp-as-gp.c: Likewise.
9181         * config/nds32/nds32-intrinsic.c: Likewise.
9182         * config/nds32/nds32-isr.c: Likewise.
9183         * config/nds32/nds32-md-auxiliary.c: Likewise.
9184         * config/nds32/nds32-memory-manipulation.c: Likewise.
9185         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9186         * config/nds32/nds32-predicates.c: Likewise.
9187         * config/nds32/nds32.c: Likewise.
9188         * config/nios2/nios2.c: Likewise.
9189         * config/nvptx/nvptx.c: Likewise.
9190         * config/pa/pa.c: Likewise.
9191         * config/pdp11/pdp11.c: Likewise.
9192         * config/rl78/rl78-c.c: Likewise.
9193         * config/rl78/rl78.c: Likewise.
9194         * config/rs6000/rs6000-c.c: Likewise.
9195         * config/rs6000/rs6000.c: Likewise.
9196         * config/rx/rx.c: Likewise.
9197         * config/s390/s390-c.c: Likewise.
9198         * config/s390/s390.c: Likewise.
9199         * config/sh/sh-c.c: Likewise.
9200         * config/sh/sh-mem.cc: Likewise.
9201         * config/sh/sh.c: Likewise.
9202         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9203         * config/sh/sh_treg_combine.cc: Likewise.
9204         * config/sol2-c.c: Likewise.
9205         * config/sol2-cxx.c: Likewise.
9206         * config/sol2-stubs.c: Likewise.
9207         * config/sol2.c: Likewise.
9208         * config/sparc/sparc-c.c: Likewise.
9209         * config/sparc/sparc.c: Likewise.
9210         * config/spu/spu-c.c: Likewise.
9211         * config/spu/spu.c: Likewise.
9212         * config/stormy16/stormy16.c: Likewise.
9213         * config/tilegx/mul-tables.c: Likewise.
9214         * config/tilegx/tilegx-c.c: Likewise.
9215         * config/tilegx/tilegx.c: Likewise.
9216         * config/tilepro/mul-tables.c: Likewise.
9217         * config/tilepro/tilepro-c.c: Likewise.
9218         * config/tilepro/tilepro.c: Likewise.
9219         * config/v850/v850-c.c: Likewise.
9220         * config/v850/v850.c: Likewise.
9221         * config/vax/vax.c: Likewise.
9222         * config/visium/visium.c: Likewise.
9223         * config/vms/vms-c.c: Likewise.
9224         * config/vms/vms.c: Likewise.
9225         * config/vxworks.c: Likewise.
9226         * config/xtensa/xtensa.c: Likewise.
9228 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
9230         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
9231         Remove operand constraints.  Change operand 2 predicate to
9232         nonmemory operand.  Limit const_int values to mode bitsize.  Only
9233         allow const_int values less than 32 when optimizing for size.
9234         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
9235         Remove operand constraints.
9236         (*bt<mode>): Use SImode for const_int values less than 32.
9237         (regmode): Remove mode attribute.
9239 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
9241         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9242         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
9243           moxie_legitimate_address_p): New functions.
9244           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9246 2015-07-07  Tom de Vries  <tom@codesourcery.com>
9248         PR tree-optimization/66642
9249         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
9250         header comment.  Rename split_edge variable to edge_at_split.  Split
9251         exit edge to create new loop exit bb.  Insert loop exit phis in new
9252         loop exit bb.
9254 2015-07-07  Tom de Vries  <tom@codesourcery.com>
9256         * tree-cfg.c (get_virtual_phi): New function.
9257         * tree-cfg.h (get_virtual_phi): Declare.
9258         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
9259         (rewrite_virtuals_into_loop_closed_ssa): New function.
9260         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
9261         Declare.
9262         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
9263         (transform_to_exit_first_loop_alt): Use
9264         rewrite_virtuals_into_loop_closed_ssa.
9266 2015-07-07  Richard Biener  <rguenther@suse.de>
9268         * fold-const.c (fold_binary_loc): Move
9269         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
9270         * match.pd: ... here.
9271         Add (X * C1) % C2 -> 0 simplification pattern derived from
9272         extract_muldiv_1.
9274 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
9276         PR target/66780
9277         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
9278         change for target/65249.
9280 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
9282         * symtab.c (address_matters_1): Fix typo in comment above.
9283         (can_increase_alignment_p): Likewise.
9285 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9287         * function.c (free_after_compilation): Clear PROP_cfg in
9288         f->curr_properties.
9290 2015-07-07  Richard Biener  <rguenther@suse.de>
9292         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
9293         add which use to.
9294         (add_control_edge): Remove excessive vertical space in dumping.
9295         (process_ssa_edge_worklist): Simulate at most one statement and
9296         return whether we did.  Do not simulate PHIs if they are in a
9297         BB not yet simulated.
9298         (ssa_propagate): Adjust to always drain the BB worklist whenever
9299         a BB is available there, likewise the VARYING edges list before
9300         the interesting edge list.
9302 2015-07-07  Christian Bruel  <christian.bruel@st.com>
9304         PR target/52144
9305         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
9307 2015-07-07  Richard Biener  <rguenther@suse.de>
9309         PR middle-end/66739
9310         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
9311         A - B.
9313 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
9315         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
9316         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
9317         Copy operand 0 to a temporary if !ext_register_operand.  Remove
9318         ancient extract_bit_field workaround.
9319         (insv<mode>_1): Rename from mov<mode>_insv_1.
9320         (*insvqi): Rename from *movqi_insv_2.
9321         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
9322         for renamed insvsi_1.
9323         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
9325 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
9327         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
9328         call to nvptx_reorg_subreg.
9330 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
9332         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
9333         * graphite-dependencies.c, graphite-interchange.c,
9334         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
9335         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
9336         Likewise.
9338 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
9340         * match.pd: Remove element_mode inside HONOR_*.
9341         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
9342         (~X | X -> -1, ~X ^ X -> -1): Merge.
9343         * tree.c (build_each_one_cst): New function.
9344         * tree.h (build_each_one_cst): Likewise.
9346 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9348         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9349         PROCESSOR_IAMCU.
9351 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
9353         * config.gcc <mips*-*-*>: Add fused-madd.opt.
9354         * config/mips/mips.opt (mfused-madd): Remove.
9355         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
9356         * config/mips/mips.h (TARGET_MIPS8000): New.
9357         (ISA_HAS_FP_MADD4_MSUB4): Remove.
9358         (ISA_HAS_FP_MADDF_MSUBF): Remove.
9359         (ISA_HAS_FP_MADD3_MSUB3): Remove.
9360         (ISA_HAS_NMADD4_NMSUB4): Remove.
9361         (ISA_HAS_NMADD3_NMSUB3): Remove.
9362         (ISA_HAS_FUSED_MADD4): New.
9363         (ISA_HAS_UNFUSED_MADD4): New.
9364         (ISA_HAS_FUSED_MADDF): New.
9365         (ISA_HAS_FUSED_MADD3): New.
9366         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
9367         (*fma<mode>4_madd3) New.
9368         (*fma<mode>4_madd4) New.
9369         (*fma<mode>4_maddf) New.
9370         (fms<mode>4) New.
9371         (*fms<mode>4_msub3) New.
9372         (*fms<mode>4_msub4) New.
9373         (fnma<mode>4) New.
9374         (*fnma<mode>4_nmadd3) New.
9375         (*fnma<mode>4_nmadd4) New.
9376         (fnms<mode>4) New.
9377         (*fnms<mode>4_nmsub3) New.
9378         (*fnms<mode>4_nmsub4) New.
9379         (*madd4<mode>) Modify to be unfused only.
9380         (*msub4<mode>) Modify to be unfused only.
9381         (*nmadd4<mode>) Modify to be unfused only.
9382         (*nmsub4<mode>) Modify to be unfused only.
9383         (*madd3<mode>) Remove.
9384         (*msub3<mode>) Remove.
9385         (*nmadd3<mode>) Remove.
9386         (*nmsub3<mode>) Remove.
9387         (*nmadd3<mode>_fastmath) Remove.
9388         (*nmsub3<mode>_fastmath) Remove.
9389         (*nmadd4<mode>_fastmath) Update condition.
9390         (*nmsub4<mode>_fastmath) Update condition.
9392 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
9394         PR target/65956
9395         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
9396         alignment attribute, exploring one level down for records and arrays.
9398 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
9400         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
9401         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
9402         Copy operand 1 to a temporary if !ext_register_operand.  Remove
9403         ancient extract_bit_field workaround.
9404         (*extv<mode>): Rename from *mov<mode>_extv_1.
9405         (*extvqi): Rename from *movqi_extv_1.
9406         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
9407         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
9408         to a temporary if !ext_register_operand.  Remove ancient
9409         extract_bit_field workaround.
9410         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
9411         (*extzvqi): Rename from *movqi_extzv_2.
9412         (*testqi_ext_3): Remove modes from const_int_operand predicated
9413         operands.  Add "n" constraint.
9414         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
9415         operand.  Add "J" constraint.
9416         (*btsq, *btrq, *btcq peephole2s): Remove mode from
9417         const_0_to_63 predicated operand.
9418         (regmode): New insn attribute.
9419         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
9420         to nonmemory_operand.  Use regmode insn attribute.
9421         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
9422         (*jcc_bt<mode>_mask): Remove mode from operand 3.
9423         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
9424         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
9425         operands.  Use "N" constraint instead of "n".
9427 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
9429         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
9431 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9433         PR target/66749
9434         * config/i386/i386.c (iamcu_cost): New.
9435         (m_IAMCU): Likewise.
9436         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
9437         (processor_target_table): Add an entry for "iamcu".
9438         (processor_alias_table): Likewise.
9439         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
9440         (ix86_adjust_cost): Likewise.
9441         (ia32_multipass_dfa_lookahead): Likewise.
9442         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
9443         * config/i386/x86-tune.def: Updated for m_IAMCU.
9445 2015-07-06  Richard Biener  <rguenther@suse.de>
9447         PR tree-optimization/66772
9448         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
9449         values are available in the PHI node BB when there are
9450         still unexecutable edges.
9452 2015-07-06  Richard Biener  <rguenther@suse.de>
9454         PR tree-optimization/66767
9455         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
9456         Make sure to build the alignment test on a SSA name without
9457         final alignment info valid only if the alignment test
9458         evaluates to true.
9460 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9462         PR target/66620
9463         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
9464         loop start when inserting LSETUP.
9466 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9468         PR target/53383
9469         * config/i386/i386.c (ix86_option_override_internal): Allow
9470         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
9472 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9474         * read-md.c (decimal_string): Rename to ...
9475         (md_decimal_string): ... this.
9476         (handle_enum): Reflect this.
9478 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9480         PR target/66731
9481         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
9483 2015-07-06  Richard Biener  <rguenther@suse.de>
9485         PR middle-end/66759
9486         * match.pd: Add missing constraint of y to REAL_CST in
9487         REAL_CST - x CMP y to y - CST CMP x simplification.
9489 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
9491         PR tree-optimization/66757
9492         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
9494 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
9495             Sandra Loosemore <sandra@codesourcery.com>
9497         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
9498         Delete extern declaration.
9499         (gprel_constant_p): Add extern declaration.
9500         * config/nios2/constraints.md ("S"): Use gprel_constant_p
9501         instead of nios2_symbol_ref_in_small_data_p.
9502         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
9503         (nios2_symbol_ref_in_small_data_p): Make static.
9504         (gprel_constant_p): Make non-static.
9506 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
9508         * doc/fragments.texi (Target Fragment): Convert debian.org
9509         link to use https.
9510         * doc/install.texi (Configuration): Ditto.
9512 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
9514         PR tree-optimization/66718
9515         * tree-vect-stmts.c (vectorizable_call): Replace uses of
9516         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
9518         PR tree-optimization/66718
9519         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
9520         vectorizable_load, vectorizable_condition): Move vectype,
9521         nunits, ncopies computation after checking what kind of statement
9522         stmt is.
9524 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9526         * target-insns.def (extv, extzv, insv): New targetm instruction
9527         patterns.
9528         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
9529         interface.
9530         * recog.c (simplify_while_replacing): Likewise.
9532 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9534         * target-insns.def (doloop_begin, doloop_end): New targetm
9535         instruction patterns.
9536         * loop-init.c: Include target.h.
9537         (pass_loop2::gate): Use the new targetm patterns instead of
9538         HAVE_*/gen_* interface.
9539         (pass_rtl_doloop::gate): Likewise.
9540         (pass_rtl_doloop::execute): Remove preprocessor condition.
9541         * hw-doloop.c: Build unconditionally.
9542         * loop-doloop.c: Likewise.
9543         (doloop_optimize): Use the new targetm patterns instead of
9544         HAVE_*/gen_* interface.
9545         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
9546         * modulo-sched.c (doloop_register_get): Likewise.
9548 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9550         * target-insns.def (clear_cache): New targetm instruction pattern.
9551         * builtins.c (expand_builtin___clear_cache): Use it instead of
9552         HAVE_*/gen_* interface.
9554 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9556         * target-insns.def (allocate_stack, check_stack, probe_stack)
9557         (probe_stack_address, split_stack_prologue, split_stack_space_check):
9558         New targetm instruction patterns.
9559         * explow.c (allocate_dynamic_stack_space): Use them instead of
9560         HAVE_*/gen_* interface.
9561         (emit_stack_probe): Likewise.
9562         (probe_stack_range): Likewise.
9563         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9565 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9567         * target-insns.def (stack_protect_set, stack_protect_test): New
9568         targetm instruction patterns.
9569         * cfgexpand.c (stack_protect_prologue): Use them instead of
9570         HAVE_*/gen_* interface.
9571         * function.c (stack_protect_epilogue): Likewise.
9573 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9575         * expr.h (gen_move_insn_uncast): Delete.
9576         * expr.c (gen_move_insn_uncast): Delete.
9578 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9580         * target-insns.def (restore_stack_block, restore_stack_function)
9581         (restore_stack_nonlocal, save_stack_block, save_stack_function)
9582         (save_stack_nonlocal): New targetm instruction patterns.
9583         * builtins.c (expand_builtin_apply): Use them instead of
9584         HAVE_*/gen_* interface.
9585         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
9587 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9589         * target-insns.def (trap): New targetm instruction pattern.
9590         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
9591         interface.
9592         * explow.c (allocate_dynamic_stack_space): Likewise.
9593         * ifcvt.c (find_if_header): Likewise.
9595 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9597         * target-insns.def (prefetch): New targetm instruction pattern.
9598         * tree-ssa-loop-prefetch.c: Include targeth.
9599         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
9600         of HAVE_*/gen_* interface.
9601         * builtins.c (expand_builtin_prefetch): Likewise.
9602         * toplev.c (process_options): Likewise.
9604 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9606         * target-insns.def (untyped_call, untyped_return): New targetm
9607         instruction patterns.
9608         * builtins.c (expand_builtin_apply): Use them instead of
9609         HAVE_*/gen_* interface.
9610         (result_vector): Define unconditionally.
9612 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9614         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
9615         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
9616         (nonlocal_goto_receiver): New targetm instruction patterns.
9617         * builtins.c (expand_builtin_setjmp_setup): Use them instead
9618         of HAVE_*/gen_* interface.
9619         (expand_builtin_setjmp_receiver): Likewise.
9620         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
9621         * except.c (expand_dw2_landing_pad_for_region): Likewise.
9623 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
9625         * target.def: Add code_for_* hooks.
9626         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
9627         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
9628         * target-insns.def (casesi, tablejump): New targetm instruction
9629         patterns.
9630         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
9631         (do_tablejump): Likewise.
9632         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
9633         (expand_sjlj_dispatch_table): Likewise.
9634         * targhooks.c (default_case_values_threshold): Likewise.
9636 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
9638         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
9639         Use rtx_insn * instead of rtx.
9640         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
9641         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
9642         (nios2_call_tls_get_addr): Likewise.
9643         (nios2_emit_expensive_div): Likewise.
9644         (nios2_emit_move_sequence): Change return type to bool.
9645         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
9646         Change return type to bool.
9648 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9650         PR target/66747
9651         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
9653 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
9655         PR target/66114
9656         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
9657         of register_operand.  Remove constraint.
9659 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
9661         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
9662         the first argument.
9664 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
9666         * attribs.c (decl_attributes): Guard inform with the return value
9667         of the preceding warning.
9669 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
9671         * doc/invoke.texi (moverride): Move to correct section.
9673 2015-07-03  Richard Biener  <rguenther@suse.de>
9675         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
9676         Copy from tree.c
9677         (dt_operand::gen_gimple_expr): After valueizing operands
9678         re-canonicalize operand order for commutative tree codes.
9680 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
9682         PR target/66746.
9683         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
9684         is defined.
9685         (__crc32w): Likewise.
9686         (__crc32d): Likewise.
9687         (__rdpmc): Likewise.
9688         (__rdtscp): Likewise.
9689         (_rdpmc): Likewise.
9690         (_rdtscp): Likewise.
9691         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
9692         is defined.
9694 2015-07-03  Richard Biener  <rguenther@suse.de>
9696         * fold-const.c (fold_mathfn_compare): Remove.
9697         (fold_inf_compare): Likewise.
9698         (fold_comparison): Move floating point comparison simplifications...
9699         * match.pd: ... to patterns here.  Introduce simple_comparisons
9700         operator list and use it for patterns formerly in fold_comparison.
9702 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
9704         PR tree-optimization/66119
9705         * toplev.c (process_options): Don't set up default values for
9706         the sra_max_scalarization_size_{speed,size} parameters.
9707         * tree-sra (analyze_all_variable_accesses): If no values
9708         have been set for the sra_max_scalarization_size_{speed,size}
9709         parameters, call get_move_ratio to get target defaults.
9711 2015-07-03  Richard Biener  <rguenther@suse.de>
9713         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
9714         * match.pd: ... here.
9716 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
9718         PR target/37072
9719         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
9720         is not actually the default on FreeBSD.
9722 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9724         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
9725         definition.
9726         (CMPGE_8HI): Likewise.
9727         (CMPGE_4SI): Likewise.
9728         (CMPGE_2DI): Likewise.
9729         (CMPGE_U16QI): Likewise.
9730         (CMPGE_U8HI): Likewise.
9731         (CMPGE_U4SI): Likewise.
9732         (CMPGE_U2DI): Likewise.
9733         (CMPLE_16QI): Likewise.
9734         (CMPLE_8HI): Likewise.
9735         (CMPLE_4SI): Likewise.
9736         (CMPLE_2DI): Likewise.
9737         (CMPLE_U16QI): Likewise.
9738         (CMPLE_U8HI): Likewise.
9739         (CMPLE_U4SI): Likewise.
9740         (CMPLE_U2DI): Likewise.
9741         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9742         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
9743         ALTIVEC_BUILTIN_VEC_CMPLE.
9744         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
9745         floating-point vector modes.
9746         (vector_nlt<mode>): New define_expand.
9747         (vector_nltu<mode>): Likewise.
9748         (vector_ngt<mode>): Likewise.
9749         (vector_ngtu<mode>): Likewise.
9751 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
9753         PR rtl-optimization/66706
9754         * combine.c (make_compound_operation): If an AND of SUBREG of
9755         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
9757 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
9759         * tree-pass.h (make_pass_ch_vect): New.
9760         * passes.def: Add pass_ch_vect just before pass_if_conversion.
9762         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
9763         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
9764         make_pass_ch_vect): New.
9765         (pass_ch): Extend ch_base.
9767         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
9768         (ch_base::copy_headers): ...here.
9770 2015-07-02  Richard Biener  <rguenther@suse.de>
9772         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
9773         * fold-const.c (get_pointer_modulus_and_residue): Remove.
9774         (fold_binary_loc): Implement (T)ptr & CST in terms of
9775         get_pointer_alignment_1.
9776         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
9777         Make sure to build the alignment test on a SSA name without
9778         final alignment info valid only after the prologue.
9780 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
9782         * config/cris/cris.md ("epilogue"): Remove condition.
9783         ("prologue"): Ditto.
9785 2015-07-02  Richard Biener  <rguenther@suse.de>
9787         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
9788         parameter to record a condition that is false.
9789         (record_conditions): When recording an extra NE_EXPR that is
9790         true also record a EQ_EXPR that is false.
9792 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
9794         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
9795         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
9796         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
9797         (set_iv, find_interesting_uses_address, add_candidate_1): New
9798         argument to alloc_iv.
9799         (find_interesting_uses_op, find_interesting_uses_cond): Don't
9800         duplicate struct iv.
9801         (free_loop_data): Don't free struct iv explicitly.
9802         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
9804 2015-07-01  DJ Delorie  <dj@redhat.com>
9806         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
9807         (LIB_SPEC): Add.
9808         (SUPPORTS_DISCRIMINATOR): Define.
9810 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
9812         PR bootstrap/66685
9813         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
9814         there are no CALLs in the same pattern.
9816 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9818         PR rtl-optimization/61047
9819         * rtlanal.c (get_initial_register_offset): New function.
9820         (rtx_addr_can_trap_p_1): Check offsets of stack references.
9822 2015-07-01  Richard Biener  <rguenther@suse.de>
9824         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
9825         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
9826         ~X CMP C -> X CMP' ~C to ...
9827         * match.pd: ... patterns here.
9829 2015-07-01  Nick Clifton  <nickc@redhat.com>
9831         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
9832         a 16-bit value into a 20-bit memory slot.
9834 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
9836         * doc/sourcebuild.texi (AArch64-specific attributes): Document
9837         "aarch64_tiny", "aarch64_small", "aarch64_large",
9838         "aarch64_little_endian", "aarch64_big_endian".
9840 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
9842         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
9843         Document "aarch64_small_fpic".
9845 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
9847         * configure.ac: Add check for aarch64 assembler -fpic relocation
9848         modifier support.
9849         * configure: Regenerate.
9850         * config.in: Regenerate.
9851         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
9852         to -fPIC if not support of -fpic relocation modifier in assembler.
9854 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
9856         PR bootstrap/66685
9857         * rtl.c (classify_insn): Handle returns in PARALLELs.
9859 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
9861         PR middle-end/66633
9862         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
9863         to true if the function is nested and if not optimizing.
9864         (convert_local_omp_clauses): Initialize need_frame to true if the
9865         function contains nested functions and if not optimizing.
9867 2015-07-01  Richard Biener  <rguenther@suse.de>
9869         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
9870         (X & Y) ^ Y -> ~X & Y transforms to ...
9871         * match.pd: ... here.
9873 2015-07-01  Richard Biener <rguenther@suse.de>
9875         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
9876         of converts to avoid uninteresting noise from the conversion
9877         simplifying patterns.
9879 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
9881         * config/c6x/c6x.c (try_rename_operands): Do not depend on
9882         gcc_assert evaluating its argument for side-effect.
9884 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
9886         PR target/64833
9887         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
9888         flag_pic is set.
9890 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9892         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
9893         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
9894         (hash_scc): Add this_ref_p and ref_p parameters and pass them
9895         to the inner DFS walk.
9897 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
9899         * target-insns.def (jump): New targetm instruction pattern.
9900         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
9901         instead of gen_jump.
9902         (fix_up_crossing_landing_pad): Likewise.
9903         (add_labels_and_missing_jumps): Likewise.
9904         (fix_crossing_conditional_branches): Likewise.
9905         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9906         (force_nonfallthru_and_redirect): Likewise.
9907         * cse.c (cse_insn): Likewise.
9908         * expmed.c (expand_divmod): Likewise.
9909         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
9910         * haifa-sched.c (init_before_recovery): Likewise.
9911         (sched_create_recovery_edges): Likewise.
9912         * ifcvt.c (find_cond_trap): Likewise.
9913         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
9914         (expand_float, expand_fix): Likewise.
9915         * stmt.c (emit_jump): Likewise.
9917 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
9919         * defaults.h (HAVE_load_multiple, gen_load_multiple)
9920         (HAVE_store_multiple, gen_store_multiple): Delete.
9921         * target-insns.def (load_multiple, store_multiple): New targetm
9922         instruction patterns.
9923         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
9924         of HAVE_*/gen_* interface.
9926 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
9928         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
9929         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
9930         (gen_mem_signal_fence): Delete.
9931         * target-insns.def (mem_signal_fence, mem_thread_fence)
9932         (memory_barrier): New targetm instruction patterns.
9933         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
9934         interface.
9935         (expand_mem_signal_fence): Likewise.
9937 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
9939         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
9940         * target-insns.def (epilogue, prologue, sibcall_prologue): New
9941         targetm instruction patterns.
9942         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
9943         interface.
9944         * calls.c (expand_call): Likewise.
9945         * cfgrtl.c (cfg_layout_finalize): Likewise.
9946         * df-scan.c (df_get_entry_block_def_set): Likewise.
9947         (df_get_exit_block_use_set): Likewise.
9948         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
9949         * final.c (final_start_function): Likewise.
9950         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9951         (reposition_prologue_and_epilogue_notes): Likewise.
9952         * reorg.c (find_end_label): Likewise.
9953         * toplev.c (process_options): Likewise.
9955 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
9957         * typed-splay-tree.h: New file.
9959 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
9961         PR debug/66691
9962         * lra-int.h (lra_substitute_pseudo): Add a parameter.
9963         (lra_substitute_pseudo_within_insn): Ditto.
9964         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
9965         of constant.
9966         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
9967         to lra_substitute_pseudo.
9968         * lra-lives.c (process_bb_lives): Add an argument to
9969         lra_substitute_pseudo_within_insn call.
9970         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
9971         argument to lra_substitute_pseudo and
9972         lra_substitute_pseudo_within_insn calls.
9973         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
9975 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9977         * configure: Regenerated.
9979 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9981         * config.gcc: Support i[34567]86-*-elfiamcu target.
9982         * config/i386/iamcu.h: New.
9983         * config/i386/i386.opt: Add -miamcu.
9984         * doc/invoke.texi: Document -miamcu.
9985         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
9986         off x87/MMX/SSE/AVX codegen for -miamcu.
9987         * config/i386/i386-c.c (ix86_target_macros_internal): Define
9988         __iamcu/__iamcu__ for -miamcu.
9989         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
9990         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
9991         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
9992         * config/i386/i386.c (ix86_option_override_internal): Ignore and
9993         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
9994         MCU by default.  Default long double to 64-bit for Intel MCU.
9995         Turn on -freg-struct-return for Intel MCU.  Issue an error when
9996         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
9997         AVX is turned on.
9998         (function_arg_advance_32): Pass value whose size is no larger
9999         than 8 bytes in registers for Intel MCU.
10000         (function_arg_32): Likewise.
10001         (ix86_return_in_memory): Return value whose size is no larger
10002         than 8 bytes in registers for Intel MCU.
10003         (iamcu_alignment): New function.
10004         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
10005         true.
10006         (ix86_local_alignment): Don't increase alignment for Intel MCU.
10007         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
10008         true.
10010 2015-06-30  Marek Polacek  <polacek@redhat.com>
10012         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
10013         both operands of the resulting expression.
10015         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
10016         the final expression with the operand's type and then convert
10017         it to the type of the expression.
10019 2015-06-30  Richard Biener  <rguenther@suse.de>
10021         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
10022         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
10023         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
10024         * match.pd: ... to patterns here.
10026 2015-06-30  Richard Biener  <rguenther@suse.de>
10028         PR tree-optimization/66704
10029         * tree-vect-data-refs.c (vect_setup_realignment): Use
10030         make_ssa_name for non-SSA name source.
10032 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10034         PR middle-end/66702
10035         * omp-low.c (simd_clone_adjust): Handle addressable linear
10036         or uniform parameters or non-gimple type uniform parameters.
10038 2015-06-30  Richard Biener  <rguenther@suse.de>
10040         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
10041         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
10042         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
10043         * match.pd: ... here.
10044         Add a few cases of A - B -> A + (-B) when B "easily" negates.
10045         Move (x & y) | x -> x and friends before
10046         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
10048 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10050         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
10051         -mfix-ut699 is not specified.
10052         (leon3_load): Rename into...
10053         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
10054         is specified.
10056 2015-06-30  Marek Polacek  <polacek@redhat.com>
10058         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
10059         * match.pd: ... here.
10061 2015-06-30  Richard Biener  <rguenther@suse.de>
10063         * target-insns.def (canonicalize_funcptr_for_compare): Add.
10064         * fold-const.c (build_range_check): Replace uses of
10065         HAVE_canonicalize_funcptr_for_compare.
10066         (fold_widened_comparison): Likewise.
10067         (fold_sign_changed_comparison): Likewise.
10068         * dojump.c: Include "target.h".
10069         (do_compare_and_jump): Replace uses of
10070         HAVE_canonicalize_funcptr_for_compare and
10071         gen_canonicalize_funcptr_for_compare.
10072         * expr.c (do_store_flag): Likewise.
10074 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10076         PR tree-optimization/66652
10077         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
10078         max_loop_iterations to determine if nit + 1 overflows.
10080 2015-06-30  Richard Biener  <rguenther@suse.de>
10082         * tree-vrp.c (register_edge_assert_for_2): Also register
10083         asserts for dominating conversion results.
10085 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
10087         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
10088         field in struct iv.
10090 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
10092         PR target/66509
10093         * configure.ac: Fix filds and fildq test for 64-bit.
10094         * configure: Regenerated.
10096 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
10098         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
10099         (nvptx_reorg): Here.  Keep the non-subreg pieces.
10101 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
10103         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
10104         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10106 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
10108         * config/i386/i386.md (*jcc_1): Use %! in asm template.
10109         Set attribute "length_nobnd" instead of "length".
10110         (*jcc_2): Ditto.
10111         (jump): Ditto.
10112         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
10114 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
10116         * config/nios2/nios2.c (nios2_delegitimize_address): Make
10117         assert less restrictive.
10119 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10121         PR fortran/66605
10122         * cgraphunit.c (cgraph_node::finalize_function): Do not call
10123         do_warn_unused_parameter.
10124         * function.c (do_warn_unused_parameter): Move from here.
10125         * function.h (do_warn_unused_parameter): Do not declare.
10127 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
10129         PR target/65697
10130         * gcc.target/arm/armv-sync-comp-swap.c: New.
10131         * gcc.target/arm/armv-sync-op-acquire.c: New.
10132         * gcc.target/arm/armv-sync-op-full.c: New.
10133         * gcc.target/arm/armv-sync-op-release.c: New.
10135 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
10137         PR target/65697
10138         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
10139         initial acquire barrier with final barrier.
10141 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
10143         PR target/65697
10144         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
10145         initial acquire barrier with final barrier.
10147 2015-06-29  Richard Henderson  <rth@redhat.com>
10149         * config/i386/constraints.md (Bf): New constraint.
10150         * config/i386/i386-c.c (ix86_target_macros): Define
10151         __GCC_ASM_FLAG_OUTPUTS__.
10152         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
10153         as flags outputs.
10154         * doc/extend.texi (FlagOutputOperands): Document them.
10156 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
10158         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
10159         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
10160         unspec name.
10161         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
10162         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
10163         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
10164         (aarch64_symbol_context): Ditto.
10165         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
10166         and use new pattern name.
10167         (aarch64_expand_mov_immediate): Ditto.
10168         (aarch64_print_operand): Ditto.
10169         (aarch64_classify_tls_symbol): Ditto.
10171 2015-06-29  Marek Polacek  <polacek@redhat.com>
10172             Marc Glisse  <marc.glisse@inria.fr>
10174         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
10175         * match.pd: ... pattern here.
10177 2015-06-29  Tom de Vries  <tom@codesourcery.com>
10179         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
10180         function structure.
10182 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
10184         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
10185         feature description, split out the native option, add a link to
10186         the feature documentation, rearrange and slightly rewrite text.
10187         (Aarch64 options, -mcpu): Likewise.
10188         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
10189         +rdma implies Adv. SIMD.
10191 2015-06-29  Marek Polacek  <polacek@redhat.com>
10193         PR c/66322
10194         * function.c (stack_protect_epilogue): Remove a cast to int.
10195         * doc/invoke.texi: Update -Wswitch-bool description.
10197 2015-06-29  Richard Biener  <rguenther@suse.de>
10199         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
10200         * fold-const.c (fold_binary_loc): Move &A - &B simplification
10201         via ptr_difference_const ...
10202         * match.pd: ... here.
10203         When matching (X ^ Y) == Y also match with swapped operands.
10205 2015-06-29  Richard Biener  <rguenther@suse.de>
10207         * lto-streamer.h (LTO_major_version): Bump to 5.
10209 2015-06-29  Richard Biener  <rguenther@suse.de>
10211         PR tree-optimization/66677
10212         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
10213         STMT_VINFO_VEC_STMT clobbering less strict.
10215 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
10217         PR middle-end/64130
10218         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
10219         division, compute max and min when value ranges for dividend and
10220         divisor are available.
10222 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
10223             Sandra Loosemore <sandra@codesourcery.com>
10225         * regrename.h (regrename_do_replace): Change to return bool.
10226         * regrename.c (rename_chains): Check return value of
10227         regname_do_replace.
10228         (regrename_do_replace): Re-validate the modified insns and
10229         return bool status.
10230         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10231         Update to match rename_chains changes.
10232         * config/c6x/c6x.c (try_rename_operands): Assert that
10233         regrename_do_replace returns true.
10235 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
10237         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
10238         operand 2 here.  Use copy_addr_to_reg to copy non-index
10239         register operand 2 to a temporary.
10240         (<mode>_stx): Ditto for operand 1.
10241         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
10242         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
10243         (ix86_store_bounds): Ditto.
10245 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
10247         * print-tree.c (print_node) [TREE_VEC]: Print its length.
10249 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
10251         * gimple.c (gimple_call_set_fndecl): Remove.
10252         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
10253         build1_loc directly instead of build_fold_addr_expr_loc.
10255 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
10257         * hash-map.h (hash_map::traverse): Use the definition of the
10258         Key typedef rather than the typedef itself.
10260 2015-06-26  Martin Jambor  <mjambor@suse.cz>
10262         PR debug/66301
10263         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
10264         NULL instead of calling dump_enabled_p.
10266 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10268         * config/aarch64/aarch64.opt: (override): New.
10269         * doc/invoke.texi (override): Document.
10270         * config/aarch64/aarch64.c (aarch64_flag_desc): New
10271         (aarch64_fusible_pairs): Likewise.
10272         (aarch64_tuning_flags): Likewise.
10273         (aarch64_tuning_override_function): Likewise.
10274         (aarch64_tuning_override_functions): Likewise.
10275         (aarch64_parse_one_option_token): Likewise.
10276         (aarch64_parse_boolean_options): Likewise.
10277         (aarch64_parse_fuse_string): Likewise.
10278         (aarch64_parse_tune_string): Likewise.
10279         (aarch64_parse_one_override_token): Likewise.
10280         (aarch64_parse_override_string): Likewise.
10281         (aarch64_override_options): Parse the -override string if it
10282         is present.
10284 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10286         * config/aarch64/aarch64-protos.h (tune_params): Remove
10287         const from members.
10288         (aarch64_tune_params): Remove const, change to no longer be
10289         a pointer.
10290         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
10291         change to no longer be a pointer, initialize to generic_tunings.
10292         (aarch64_min_divisions_for_recip_mul): Change dereference of
10293         aarch64_tune_params to member access.
10294         (aarch64_reassociation_width): Likewise.
10295         (aarch64_rtx_mult_cost): Likewise.
10296         (aarch64_address_cost): Likewise.
10297         (aarch64_branch_cost): Likewise.
10298         (aarch64_rtx_costs): Likewise.
10299         (aarch64_register_move_cost): Likewise.
10300         (aarch64_memory_move_cost): Likewise.
10301         (aarch64_sched_issue_rate): Likewise.
10302         (aarch64_builtin_vectorization_cost): Likewise.
10303         (aarch64_override_options): Take a copy of the selected tuning
10304         struct in to aarch64_tune_params, rather than just setting
10305         a pointer, change dereferences of aarch64_tune_params to member
10306         accesses.
10307         (aarch64_override_options_after_change): Change dereferences of
10308         aarch64_tune_params to member access.
10309         (aarch64_macro_fusion_p): Likewise.
10310         (aarch_macro_fusion_pair_p): Likewise.
10311         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
10313 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10315         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
10316         (aarch64_tune_flags): Likewise.
10317         (AARCH64_TUNE_FMA_STEERING): Likewise.
10318         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
10319         to AARCH64_FL_USE_FMA_STEERING_PASS.
10320         (cortex-a57.cortex-a53): Likewise.
10321         (cortex-a72): Use cortexa72_tunings.
10322         (cortex-a72.cortex-a53): Likewise.
10323         (exynos-m1): Likewise.
10324         * config/aarch64/aarch64-protos.h (tune_params): Add
10325         a field: extra_tuning_flags.
10326         * config/aarch64/aarch64-tuning-flags.def: New.
10327         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
10328         (aarch64_extra_tuning_flags): Likewise.
10329         (aarch64_tune_params): Declare here.
10330         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
10331         (cortexa53_tunings): Likewise.
10332         (cortexa57_tunings): Likewise.
10333         (thunderx_tunings): Likewise.
10334         (xgene1_tunings): Likewise.
10335         (cortexa72_tunings): New.
10336         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
10337          (gate): Check against aarch64_tune_params.
10338         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
10339         aarch64-protos.h.
10341 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
10343         * config/aarch64/aarch64-fusion-pairs.def: New.
10344         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
10345         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
10346         aarch64_fusion_pairs.
10347         (AARCH64_FUSE_MOV_MOVK): Likewise.
10348         (AARCH64_FUSE_ADRP_ADD): Likewise.
10349         (AARCH64_FUSE_MOVK_MOVK): Likewise.
10350         (AARCH64_FUSE_ADRP_LDR): Likewise.
10351         (AARCH64_FUSE_CMP_BRANCH): Likewise.
10353 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
10355         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
10356         SYMBOL_SMALL_GOT_28K.
10357         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
10358         relocation modifiers.
10359         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
10360         (ldr_got_small_28k_<mode>): New.
10361         (ldr_got_small_28k_sidi): New.
10362         * config/aarch64/iterators.md (got_modifier): New mode iterator.
10363         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
10364         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
10365         SYMBOL_SMALL_GOT_28K.
10366         (aarch64_rtx_costs): Add costs for new instruction sequences.
10367         (initialize_aarch64_code_model): Initialize new model.
10368         (aarch64_classify_symbol): Recognize new model and new symbol classification.
10369         (aarch64_asm_preferred_eh_data_format): Support new model.
10370         (aarch64_load_symref_appropriately): Generate new instruction
10371         sequences for -fpic.
10372         (TARGET_USE_PSEUDO_PIC_REG): New definition.
10373         (aarch64_use_pseudo_pic_reg): New function.
10375 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
10377         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
10378         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
10379         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
10380         (aarch64_expand_mov_immediate): Ditto.
10381         (aarch64_print_operand): Ditto.
10382         (aarch64_classify_symbol): Ditto.
10384 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
10386         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
10388 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
10390         PR bootstrap/66638
10391         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
10392         assertion failed.  Remove assertion itself.
10394 2015-06-26  Richard Biener  <rguenther@suse.de>
10396         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
10397         and -A CMP CST -> A CMP -CST which is redundant with a pattern
10398         in match.pd.
10399         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
10400         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
10401         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
10402         * match.pd: ... patterns here.
10404 2015-06-26  Marek Polacek  <polacek@redhat.com>
10406         * match.pd ((x | y) & ~(x & y) -> x ^ y,
10407         (x | y) & (~x ^ y) -> x & y): New patterns.
10409 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
10411         * rtl.h (emit): Add an optional boolean parameter to control
10412         whether barriers are emitted.
10413         * emit-rtl.c (emit): Likewise.
10414         * gensupport.c (get_emit_function): Return null rather than "emit".
10415         * genemit.c (gen_emit_seq): Handle the null return value.
10416         Don't emit barriers after the final instruction in the sequence.
10417         * gentarget-def.c (main): Don't emit barriers after the instruction.
10419 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10421         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
10422         TARGET_UNIFIED_ASM.
10424 2015-06-26  Richard Biener  <rguenther@suse.de>
10426         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
10428 2015-06-26  Richard Biener  <rguenther@suse.de>
10430         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
10431         irrespective on whether the inner operation has a single use
10432         of both off are constant.
10434 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
10435             Segher Boessenkool  <segher@kernel.crashing.org>
10437         PR target/66412
10438         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
10439         before doing PUT_MODE or PUT_CODE on operands to avoid
10440         in-place RTX modification.
10442 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10444         * gentarget-def.c (def_target_insn): Cast return of strtol to
10445         unsigned int.
10447 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
10449         * gimple.h (gimple_call_set_fn): Move inline function.
10450         * gimple.c (gimple_call_set_fn): Relocate here.
10452 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
10454         PR target/65979
10455         PR target/66611
10456         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
10457         the replacement insn will work.
10459 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10461         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
10462         by default.
10464 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
10466         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
10467         * cgraph.h: Include ipa-ref.h and plugin-api.h.
10468         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
10469         (symtab_node::address_can_be_compared_p): Move function.
10470         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
10471         definition here.
10472         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
10473         * auto-profile.c: Likewise.
10474         * bb-reorder.c: Likewise.
10475         * builtins.c: Likewise.
10476         * calls.c: Likewise.
10477         * cfgexpand.c: Likewise.
10478         * cgraphbuild.c: Likewise.
10479         * cgraphclones.c: Likewise.
10480         * cgraphunit.c: Likewise.
10481         * combine.c: Likewise.
10482         * coverage.c: Likewise.
10483         * data-streamer-in.c: Likewise.
10484         * data-streamer-out.c: Likewise.
10485         * data-streamer.c: Likewise.
10486         * dbxout.c: Likewise.
10487         * dwarf2out.c: Likewise.
10488         * except.c: Likewise.
10489         * expr.c: Likewise.
10490         * final.c: Likewise.
10491         * fold-const.c: Likewise.
10492         * ggc-page.c: Likewise.
10493         * gimple-fold.c: Likewise.
10494         * gimple-iterator.c: Likewise.
10495         * gimple-pretty-print.c: Likewise.
10496         * gimple-streamer-in.c: Likewise.
10497         * gimple-streamer-out.c: Likewise.
10498         * gimple.c: Likewise.
10499         * gimplify.c: Likewise.
10500         * ipa-chkp.c: Likewise.
10501         * ipa-comdats.c: Likewise.
10502         * ipa-cp.c: Likewise.
10503         * ipa-devirt.c: Likewise.
10504         * ipa-icf-gimple.c: Likewise.
10505         * ipa-icf.c: Likewise.
10506         * ipa-inline-analysis.c: Likewise.
10507         * ipa-inline-transform.c: Likewise.
10508         * ipa-inline.c: Likewise.
10509         * ipa-polymorphic-call.c: Likewise.
10510         * ipa-profile.c: Likewise.
10511         * ipa-prop.c: Likewise.
10512         * ipa-pure-const.c: Likewise.
10513         * ipa-ref.c: Likewise.
10514         * ipa-reference.c: Likewise.
10515         * ipa-split.c: Likewise.
10516         * ipa-utils.c: Likewise.
10517         * ipa-visibility.c: Likewise.
10518         * ipa.c: Likewise.
10519         * langhooks.c: Likewise.
10520         * lto-cgraph.c: Likewise.
10521         * lto-compress.c: Likewise.
10522         * lto-opts.c: Likewise.
10523         * lto-section-in.c: Likewise.
10524         * lto-section-out.c: Likewise.
10525         * lto-streamer-in.c: Likewise.
10526         * lto-streamer-out.c: Likewise.
10527         * lto-streamer.c: Likewise.
10528         * omp-low.c: Likewise.
10529         * opts-global.c: Likewise.
10530         * passes.c: Likewise.
10531         * predict.c: Likewise.
10532         * print-tree.c: Likewise.
10533         * profile.c: Likewise.
10534         * ree.c: Likewise.
10535         * sanopt.c: Likewise.
10536         * stor-layout.c: Likewise.
10537         * symtab.c: Likewise.
10538         * toplev.c: Likewise.
10539         * trans-mem.c: Likewise.
10540         * tree-cfg.c: Likewise.
10541         * tree-chkp.c: Likewise.
10542         * tree-eh.c: Likewise.
10543         * tree-emutls.c: Likewise.
10544         * tree-inline.c: Likewise.
10545         * tree-nested.c: Likewise.
10546         * tree-parloops.c: Likewise.
10547         * tree-pretty-print.c: Likewise.
10548         * tree-profile.c: Likewise.
10549         * tree-sra.c: Likewise.
10550         * tree-ssa-alias.c: Likewise.
10551         * tree-ssa-live.c: Likewise.
10552         * tree-ssa-loop-ivcanon.c: Likewise.
10553         * tree-ssa-loop-ivopts.c: Likewise.
10554         * tree-ssa-pre.c: Likewise.
10555         * tree-ssa-sccvn.c: Likewise.
10556         * tree-ssa-strlen.c: Likewise.
10557         * tree-ssa-structalias.c: Likewise.
10558         * tree-streamer-in.c: Likewise.
10559         * tree-streamer-out.c: Likewise.
10560         * tree-streamer.c: Likewise.
10561         * tree-switch-conversion.c: Likewise.
10562         * tree-tailcall.c: Likewise.
10563         * tree-vect-data-refs.c: Likewise.
10564         * tree-vect-stmts.c: Likewise.
10565         * tree-vectorizer.c: Likewise.
10566         * tree.c: Likewise.
10567         * tsan.c: Likewise.
10568         * ubsan.c: Likewise.
10569         * value-prof.c: Likewise.
10570         * varasm.c: Likewise.
10571         * varpool.c: Likewise.
10572         * config/arm/arm.c: Likewise.
10573         * config/bfin/bfin.c: Likewise.
10574         * config/c6x/c6x.c: Likewise.
10575         * config/cris/cris.c: Likewise.
10576         * config/darwin-c.c: Likewise.
10577         * config/darwin.c: Likewise.
10578         * config/i386/i386.c: Likewise.
10579         * config/i386/winnt.c: Likewise.
10580         * config/microblaze/microblaze.c: Likewise.
10581         * config/mips/mips.c: Likewise.
10582         * config/rs6000/rs6000.c: Likewise.
10583         * config/rx/rx.c: Likewise.
10584         * config/s390/s390.c: Likewise.
10585         * config/tilegx/mul-tables.c: Likewise.
10587 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10589         * config/aarch64/aarch64.c, config/alpha/alpha.c,
10590         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
10591         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
10592         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
10593         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10594         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10595         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10596         config/microblaze/microblaze.c, config/mips/mips.c,
10597         config/mmix/mmix.c, config/mn10300/mn10300.c,
10598         config/moxie/moxie.c, config/msp430/msp430.c,
10599         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10600         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10601         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10602         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10603         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10604         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10605         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
10606         target-def.h include.
10607         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
10609 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10611         * Makefile.in (TARGET_DEF): Add target-insns.def.
10612         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
10613         (build/gentarget-def.o): New rule.
10614         (genprogrtl): Add target-def.
10615         * target-insns.def, gentarget-def.c: New files.
10616         * target.def: Add targetm.have_* and targetm.gen_* hooks,
10617         based on the contents of target-insns.def.
10618         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
10619         (HAVE_return, gen_return): Delete.
10620         * target-def.h: Include insn-target-def.h.
10621         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
10622         instead of direct calls.  Rely on them to do the appropriate assertions.
10623         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
10624         (convert_jumps_to_returns): Use targetm interface instead of
10625         direct calls.
10626         (thread_prologue_and_epilogue_insns): Likewise.
10627         * reorg.c (find_end_label, dbr_schedule): Likewise.
10628         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
10629         * shrink-wrap.c (convert_to_simple_return): Likewise.
10630         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
10632 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10634         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
10635         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10636         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
10637         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
10638         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
10639         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
10640         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
10641         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
10642         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
10643         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
10644         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
10645         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
10646         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
10647         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
10648         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
10649         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
10650         includes to end.
10652 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10654         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
10655         (unbounded_int_hashmap_traits::key_type): Likewise.
10656         * hash-map.h (hash_map): Get the key type from the traits.
10657         * hash-traits.h (default_hash_traits): By default, inherit from the
10658         template parameter.
10659         * alias.c (alias_set_traits): Delete.
10660         (alias_set_entry_d::children): Use alias_set_hash as the first
10661         template parameter.
10662         (record_alias_subset): Update accordingly.
10663         * except.c (tree_hash_traits): Delete.
10664         (type_to_runtime_map): Use tree_hash as the first template parameter.
10665         (init_eh): Update accordingly.
10666         * genmatch.c (capture_id_map_hasher): Delete.
10667         (cid_map_t): Use nofree_string_hash as first template parameter.
10668         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
10669         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10670         Use symbol_compare_hash as the first template parameter in
10671         subdivide_hash_map.
10672         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
10673         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
10674         template parameter.
10675         * passes.c (pass_registry_hasher): Delete.
10676         (name_to_pass_map): Use nofree_string_hash as the first template
10677         parameter.
10678         (register_pass_name): Update accordingly.
10679         * sanopt.c (sanopt_tree_map_traits): Delete.
10680         (sanopt_tree_triplet_map_traits): Delete.
10681         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
10682         template parameter.
10683         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
10684         the first template parameter.
10685         * sese.c (rename_map_hasher): Delete.
10686         (rename_map_type): Use tree_ssa_name_hash as the first template
10687         parameter.
10688         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
10689         (function_summary::m_map): Use map_hash as the first template
10690         parameter.
10691         (function_summary::release): Update accordingly.
10692         * tree-if-conv.c (phi_args_hash_traits): Delete.
10693         (predicate_scalar_phi): Use tree_operand_hash as the first template
10694         parameter to phi_arg_map.
10695         * tree-inline.h (dependence_hasher): Delete.
10696         (copy_body_data::dependence_map): Use dependence_hash as the first
10697         template parameter.
10698         * tree-inline.c (remap_dependence_clique): Update accordingly.
10699         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
10700         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
10701         parameter.
10702         (addr_stridxptr): Update accordingly.
10703         * value-prof.c (profile_id_traits): Delete.
10704         (cgraph_node_map): Use profile_id_hash as the first template
10705         parameter.
10706         (init_node_map): Update accordingly.
10707         * config/alpha/alpha.c (string_traits): Delete.
10708         (machine_function::links): Use nofree_string_hash as the first
10709         template parameter.
10710         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
10711         * config/m32c/m32c.c (pragma_traits): Delete.
10712         (pragma_htab): Use nofree_string_hash as the first template parameter.
10713         (m32c_note_pragma_address): Update accordingly.
10714         * config/mep/mep.c (pragma_traits): Delete.
10715         (pragma_htab): Use nofree_string_hash as the first template parameter.
10716         (mep_note_pragma_flag): Update accordingly.
10717         * config/mips/mips.c (mips16_flip_traits): Delete.
10718         (mflip_mips16_htab): Use nofree_string_hash as the first template
10719         parameter.
10720         (mflip_mips16_use_mips16_p): Update accordingly.
10721         (local_alias_traits): Delete.
10722         (mips16_local_aliases): Use nofree_string_hash as the first template
10723         parameter.
10724         (mips16_local_alias): Update accordingly.
10726 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10728         * hash-map-traits.h (default_hashmap_traits): Delete.
10730 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10732         * hash-map-traits.h (unbounded_hashmap_traits): New class.
10733         (unbounded_int_hashmap_traits): Likewise.
10734         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
10736 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10738         * ipa-icf.h (symbol_compare_hash): New class.
10739         (symbol_compare_hashmap_traits): Use it.
10740         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
10741         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
10742         (mem_alloc_description::reverse_mem_map_t): Remove redundant
10743         default_hashmap_traits.
10744         * sanopt.c (sanopt_tree_triplet_hash): New class.
10745         (sanopt_tree_triplet_map_traits): Use it.
10747 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10749         * gengtype-parse.c (require_template_declaration): Allow '+' in
10750         template parameters.  Consolidate cases.
10751         * hash-traits.h (int_hash): New class.
10752         * alias.c (alias_set_hash): New structure.
10753         (alias_set_traits): Use it.
10754         * symbol-summary.h (function_summary::map_hash): New class.
10755         (function_summary::summary_hashmap_traits): Use it.
10756         * tree-inline.h (dependence_hash): New class.
10757         (dependence_hasher): Use it.
10758         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
10759         * value-prof.c (profile_id_hash): New class.
10760         (profile_id_traits): Use it.
10762 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10764         * config/mips/mips.c (mips16_flip_traits): Use it.
10765         (local_alias_traits, mips16_local_aliases): Convert from a map of
10766         rtxes to a map of symbol names.
10767         (mips16_local_alias): Update accordingly.
10769 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10771         * hash-traits.h (string_hash, nofree_string_hash): New classes.
10772         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
10773         * passes.c (pass_registry_hasher): Likewise.
10774         * config/alpha/alpha.c (string_traits): Likewise.
10775         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
10776         * config/m32c/m32c.c (pragma_traits): Likewise.
10777         * config/mep/mep.c (pragma_traits): Likewise.
10779 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10781         * tree-hash-traits.h (tree_hash): New class.
10782         * except.c: Include tree-hash-traits.h.
10783         (tree_hash_traits): Use tree_hash.
10785 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10787         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
10788         * sese.c: Include tree-hash-traits.h.
10789         (rename_map_hasher): Use tree_ssa_name_hasher.
10791 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10793         * tree-hash-traits.h (tree_decl_hash): New class.
10794         * tree-ssa-strlen.c: Include tree-hash-traits.h.
10795         (stridxlist_hash_traits): Use tree_decl_hash.
10797 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10799         * tree-hash-traits.h: New file.
10800         (tree_operand_hash): New class.
10801         * sanopt.c: Include tree-hash-traits.h.
10802         (sanopt_tree_map_traits): Use tree_operand_hash.
10803         * tree-if-conv.c: Include tree-hash-traits.h.
10804         (phi_args_hash_traits): Use tree_operand_hash.
10805         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
10806         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
10808 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10810         * hash-map-traits.h: Include hash-traits.h.
10811         (simple_hashmap_traits): New class.
10812         * mem-stats.h (hash_map): Change the default traits to
10813         simple_hashmap_traits<default_hash_traits<Key> >.
10815 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10817         * hash-table.h: Update comments.
10819 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10821         * hash-traits.h (default_hash_traits): New structure.
10822         * hash-set.h (default_hashset_traits): Delete.
10823         (hash_set): Use default_hash_traits<Key> instead of
10824         default_hashset_traits.  Delete hash_entry type and use Key directly.
10825         * ipa-devirt.c (pair_traits): Delete.
10826         (default_hash_traits <type_pair>): Override.
10827         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
10828         (odr_types_equivalent_p, add_type_duplicate): Likewise.
10830 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10832         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
10834 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10836         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
10837         (has_is_empty, is_empty_helper): Delete.
10838         (has_mark_deleted, mark_deleted_helper): Delete.
10839         (has_mark_empty, mark_empty_helper): Delete.
10840         (hash_table::is_deleted): Call the Descriptor unconditionally.
10841         (hash_table::is_empty): Likewise.
10842         (hash_table::mark_deleted): Likewise.
10843         (hash_table::mark_empty): Likewise.
10845 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10847         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
10848         redundant typedefs and members.
10849         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
10850         redundant typedefs.
10851         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
10852         * ipa-devirt.c (odr_name_hasher): Likewise.
10853         (polymorphic_call_target_hasher): Likewise.
10854         * ira-costs.c (cost_classes_hasher): Likewise.
10855         * statistics.c (stats_counter_hasher): Likewise.
10856         * trans-mem.c (log_entry_hasher): Likewise.
10857         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10858         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
10859         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
10860         * var-tracking.c (variable_hasher): Likewise.
10861         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
10862         Remove redundant typedefs and members.
10864 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10866         * hash-traits.h (ggc_cache_hasher): Rename to...
10867         (ggc_cache_remove): ...this and remove typedefs.
10868         (ggc_cache_ptr_hash): New class.
10869         * hash-table.h: Update commentary.
10870         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
10871         rather than ggc_cache_hasher.
10872         (const_wide_int_hasher, reg_attr_hasher): Likewise.
10873         (const_double_hasher, const_fixed_hasher): Likewise.
10874         * function.c (insn_cache_hasher): Likewise.
10875         * trans-mem.c (tm_wrapper_hasher): Likewise.
10876         * tree.h (tree_decl_map_cache_hasher): Likewise.
10877         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
10878         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
10879         * ubsan.c (tree_type_map_cache_hasher): Likewise.
10880         * varasm.c (tm_clone_hasher): Likewise.
10881         * config/i386/i386.c (dllimport_hasher): Likewise.
10882         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
10883         (tree_hasher): Likewise.
10885 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10887         * hash-traits.h (ggc_hasher): Rename to...
10888         (ggc_remover): ...this and remove typedefs.
10889         (ggc_cache_hasher): Update accordingly.  Add typedefs.
10890         (ggc_ptr_hash): New class.
10891         * hash-table.h: Update comment.
10892         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
10893         ggc_hasher.
10894         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
10895         (tree_descriptor_hasher): Likewise.
10896         * cgraph.c (function_version_hasher): Likewise.
10897         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
10898         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
10899         (dw_loc_list_hasher, addr_hasher): Likewise.
10900         * function.h (used_type_hasher): Likewise.
10901         * function.c (temp_address_hasher): Likewise.
10902         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
10903         * libfuncs.h (libfunc_hasher): Likewise.
10904         * lto-streamer.h (decl_state_hasher): Likewise.
10905         * optabs.c (libfunc_decl_hasher): Likewise.
10906         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
10907         * varasm.c (section_hasher, object_block_hasher): Likewise.
10908         (const_rtx_desc_hasher): Likewise.
10909         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
10910         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
10912 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10914         * hash-traits.h (free_ptr_hash): New class.
10915         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
10916         rather than typed_free_remove.  Remove redudant typedefs.
10917         (external_ref_hasher): Likewise.
10918         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
10919         (ehspec_hasher): Likewise.
10920         * ggc-common.c (saving_hasher): Likewise.
10921         * gimplify.c (gimplify_hasher): Likewise.
10922         * haifa-sched.c (delay_i2_hasher): Likewise.
10923         * loop-invariant.c (invariant_expr_hasher): Likewise.
10924         * loop-iv.c (biv_entry_hasher): Likewise.
10925         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
10926         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
10927         * tree-cfg.c (locus_discrim_hasher): Likewise.
10928         * tree-eh.c (finally_tree_hasher): Likewise.
10929         * tree-into-ssa.c (var_info_hasher): Likewise.
10930         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
10931         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
10932         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
10933         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
10934         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
10935         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
10936         (shared_bitmap_hasher): Likewise.
10937         * tree-ssa-threadupdate.c (redirection_data): Likewise.
10938         * tree-vectorizer.h (peel_info_hasher): Likewise.
10939         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
10940         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
10942 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10944         * hash-table.h: Update comments.
10945         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
10946         (nofree_ptr_hash): New class.
10947         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
10948         than typed_noop_remove.  Remove redudant typedefs.
10949         * attribs.c (attribute_hasher): Likewise.
10950         * cfg.c (bb_copy_hasher): Likewise.
10951         * cselib.c (cselib_hasher): Likewise.
10952         * dse.c (invariant_group_base_hasher): Likewise.
10953         * dwarf2cfi.c (trace_info_hasher): Likewise.
10954         * dwarf2out.c (macinfo_entry_hasher): Likewise.
10955         (comdat_type_hasher, loc_list_hasher): Likewise.
10956         * gcse.c (pre_ldst_expr_hasher): Likewise.
10957         * genmatch.c (id_base): Likewise.
10958         * genrecog.c (test_pattern_hasher): Likewise.
10959         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
10960         * haifa-sched.c (delay_i1_hasher): Likewise.
10961         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
10962         * ipa-icf.h (congruence_class_group_hash): Likewise.
10963         * ipa-profile.c (histogram_hash): Likewise.
10964         * ira-color.c (allocno_hard_regs_hasher): Likewise.
10965         * lto-streamer.h (string_slot_hasher): Likewise.
10966         * lto-streamer.c (tree_entry_hasher): Likewise.
10967         * plugin.c (event_hasher): Likewise.
10968         * postreload-gcse.c (expr_hasher): Likewise.
10969         * store-motion.c (st_expr_hasher): Likewise.
10970         * tree-sra.c (uid_decl_hasher): Likewise.
10971         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
10972         (ssa_name_var_hash): Likewise.
10973         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
10974         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
10975         * tree-ssa-pre.c (pre_expr_d): Likewise.
10976         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
10977         * vtable-verify.h (registration_hasher): Likewise.
10978         * vtable-verify.c (vtbl_map_hasher): Likewise.
10979         * config/arm/arm.c (libcall_hasher): Likewise.
10980         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
10981         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
10982         * config/sol2.c (comdat_entry_hasher): Likewise.
10983         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
10984         (print_fold_checksum, fold_checksum_tree): Likewise.
10985         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
10986         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
10987         (fold_build_call_array_loc): Likewise.
10988         * tree-ssa-ccp.c (gimple_htab): Likewise.
10989         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
10990         rather than pointer_type.
10992 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10994         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
10995         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
10997 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10999         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
11000         (ggc_hasher::ggc_mx): Likewise.
11001         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
11002         that duplicate ggc_hasher ones.
11004 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11006         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
11007         (gt_cleare_cache): Check here for deleted and empty entries.
11008         Replace handle_cache_entry with a call to keep_cache_entry.
11009         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
11010         (ggc_cache_hasher::keep_cache_entry): New function.
11011         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
11012         (tm_wrapper_hasher::keep_cache_entry): New function.
11013         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
11014         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11015         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
11016         (type_cache_hasher::keep_cache_entry): New function.
11017         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
11018         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
11019         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
11020         (tree_type_map_cache_hasher::keep_cache_entry): New function.
11021         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
11022         (tm_clone_hasher::keep_cache_entry): New function.
11023         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
11024         (dllimport_hasher::keep_cache_entry): New function.
11026 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11028         * hash-table.h: Include hash-traits.h.
11029         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
11030         (ggc_cache_hasher): Move to...
11031         * hash-traits.h: ...this new file.
11033 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
11035         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
11036         struct cl_optimization.
11037         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
11038         * tree.c (make_node_stat): Allocate cl_optimization struct.
11039         (copy_node_stat): Allocate and copy cl_optimization struct.
11041 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
11043         * function.h (struct incoming_args): Move struct.
11044         (pass_by_reference, reference_callee_copied): Remove prototypes.
11045         * emit-rtl.h (struct incoming_args): Relocate struct here.
11046         * calls.h (pass_by_reference, reference_callee_copied): Relocate
11047         prototypes here.
11048         * function.c (pass_by_reference, reference_callee_copied): Move.
11049         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
11050         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
11051         * ipa-chkp.c: Include calls.h.
11053 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
11055         * alias.h (alias_set_type): Move typedef.
11056         * coretypes.h (alias_set_type): Relocate typedef here.
11057         * rtl.h: Don't include alias.h.
11059 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
11061         * cgraph.h (cgraph_rtl_info): Move to rtl.h
11062         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
11063         and instance.
11064         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
11065         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
11066         doesn't exist.
11067         * calls.c: Include hard-reg-set.h before rtl.h.
11068         * ira.c: Likewise.
11070 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
11071             Vladimir Makarov  <vmakarov@redhat.com>
11073         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
11074         Add assert.
11076 2015-06-25  Richard Biener  <rguenther@suse.de>
11078         * fold-const.c (fold_binary_loc): Move simplification of
11079         (X <<>> C1) & C2 ...
11080         * match.pd: ... here.
11082 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
11084         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
11086 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
11088         * match.pd: Add patterns for vec_conds between 1 and 0.
11090 2015-06-25  Richard Biener  <rguenther@suse.de>
11092         * tree-vect-stmts.c (vectorizable_conversion): Do not set
11093         STMT_VINFO_VEC_STMT for SLP.
11094         (vectorizable_store): Likewise.
11095         (vectorizable_load): Likewise.
11096         (vect_transform_stmt): Catch SLP vectorization clobbering
11097         STMT_VINFO_VEC_STMT.
11099 2015-06-25  Richard Biener  <rguenther@suse.de>
11101         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
11102         dumping.
11103         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
11104         cleanup resulting dead code and parameters.
11105         (vect_transform_slp_perm_load): Adjust.
11107 2015-06-25  Nick Clifton  <nickc@redhat.com>
11109         * config/bfin/bfin.c (bfin_expand_prologue): Set
11110         current_function_static_stack_size if flag_stack_usage_info is set.
11111         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11112         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
11113         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11114         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
11116 2015-06-25  Tom de Vries  <tom@codesourcery.com>
11118         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
11119         comment that the generated IV is unsigned.
11121 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11123         PR target/29693
11124         * config/arm/arm.c (arm_dbx_register_number): Return
11125         DWARF_FRAME_REGISTERS by default.
11127 2015-06-25  Tom de Vries  <tom@codesourcery.com>
11129         * dominance.c (calculate_dominance_info): Fix verify_dominators call
11130         argument.  Call verify_dominator when reusing dominator info.
11132 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
11134         PR target/66563
11135         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
11136         an additional element of the unspec vector.  Modify indices
11137         of operands.
11138         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
11139         * config/sh/sh.c (prepare_move_operands): Pass incremented
11140         const_int to gen_GOTaddr2picreg.
11141         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
11143 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
11145         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
11146         Condition on TARGET_FLOAT.
11148 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
11150         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
11151         and (no)crypto.
11153 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
11155         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
11157         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
11158         aarch64_err_no_fpadvsimd.
11160         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
11161         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
11162         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
11163         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
11164         Turn error into assert, test TARGET_FLOAT.
11165         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
11166         TARGET_FLOAT.
11168 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
11170         PR debug/66482
11171         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
11173 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
11175         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
11177 2015-06-24  Renlin Li <renlin.li@arm.com>
11179         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
11180         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
11182 2015-06-24  Richard Biener  <rguenther@suse.de>
11184         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
11185         (main): Likewise.
11186         (lower_opt_convert): Support lowering of conditional view_convert.
11187         (parser::parse_operation): Likewise.
11188         (parser::parse_for): Likewise.
11190 2015-06-24  Renlin Li  <renlin.li@arm.com>
11192         * varasm.c (emit_local): Use unsigned int for align variable.
11194 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11196         PR target/63408
11197         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
11198         for negative numbers.
11200 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11202         PR rtl-optimization/66306
11203         * reload.c (find_reloads): Swap the match_dup info for
11204         commutative operands.
11206 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11208         * config/s390/vx-builtins.md
11209         ("vec_scatter_element<mode>_<non_vec_int>")
11210         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
11211         attribute with bhfgq.
11213 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11215         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
11217 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11219         * config/s390/s390-builtin-types.def: Add flag to indicate the
11220         options under which the function type is needed.
11221         * config/s390/s390-builtins.def: Add flag to indicate the options
11222         under which the builtin is enabled.
11223         * config/s390/s390-builtins.h: Add flags parameter to macro
11224         definitions.
11225         (bflags_for_builtin): New function.
11226         (flags_for_builtin): Renamed to ...
11227         (opflags_for_builtin): ... this.
11228         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
11229         flags_for_builtin to bflags_for_builtin and
11230         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
11231         * config/s390/s390.c: Add initialization of bflags_builtin and
11232         opflags_builtin arrays.
11233         Remove code for flags_builtin.
11234         (s390_init_builtins): Only create builtin function types if one of
11235         their flags is active.
11236         Only create builtins if all of their flags are active.
11237         (s390_expand_builtin): Rename flags_for_builtin to
11238         opflags_for_builtin.
11240 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11242         * config/s390/vecintrin.h: Remove internal builtins.
11244 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11246         * config/s390/s390.c (s390_secondary_reload): Fix check for
11247         GENERAL_REGS register class.
11249 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11251         * config/s390/s390.c (s390_support_vector_misalignment): Call
11252         default implementation for !TARGET_VX.
11254 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11256         * config/s390/s390.c (s390_legitimate_constant_p): Add
11257         TARGET_VX check.
11259 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11261         * config/s390/s390.c (s390_vector_abi): New variable definition.
11262         (s390_check_type_for_vector_abi): New function.
11263         (TARGET_ASM_FILE_END): New macro definition.
11264         (s390_asm_file_end): New function.
11265         (s390_function_arg): Call s390_check_type_for_vector_abi.
11266         (s390_gimplify_va_arg): Likewise.
11267         * configure: Regenerate.
11268         * configure.ac: Check for .gnu_attribute Binutils feature.
11270 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
11272         PR target/65803
11273         * config/bfin/bfin.c (hwloop_optimize): Initialize
11274         JUMP_LABEL for newly created jump.
11276 2015-06-23  Tristan Gingold  <gingold@adacore.com>
11278         * collect-utils.c (collect_wait): Unlink the response file here
11279         instead of...
11280         (do_wait): ...here.
11281         (utils_cleanup): ...and here.
11283 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
11285         * df-scan.c: Don't include target-def.h.
11286         * targhooks.c: Likewise.
11287         * config/arm/arm-c.c: Likewise.
11288         * config/i386/i386-c.c: Likewise.
11289         * config/nds32/nds32-cost.c: Likewise.
11290         * config/nds32/nds32-fp-as-gp.c: Likewise.
11291         * config/nds32/nds32-intrinsic.c: Likewise.
11292         * config/nds32/nds32-isr.c: Likewise.
11293         * config/nds32/nds32-md-auxiliary.c: Likewise.
11294         * config/nds32/nds32-memory-manipulation.c: Likewise.
11295         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11296         * config/nds32/nds32-predicates.c: Likewise.
11298 2015-06-23  Richard Biener  <rguenther@suse.de>
11300         PR tree-optimization/66636
11301         * tree-vect-stmts.c (vectorizable_store): Properly compute the
11302         def type for further defs for strided stores.
11304 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
11306         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
11307         conditional selects.
11308         (setcc_int<mode>, setcc_float<mode>): Reformat.
11310 2015-06-23  Marek Polacek  <polacek@redhat.com>
11312         * match.pd ((x + y) - (x | y) -> x & y,
11313         (x + y) - (x & y) -> x | y): New patterns.
11315 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
11317         PR 65711
11318         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
11319         '-dynamic-linker' within %{!shared: ...}.
11321 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
11323         PR target/66560
11324         * config/i386/predicates.md (addsub_vm_operator): New predicate.
11325         (addsub_vs_operator): Ditto.
11326         (addsub_vs_parallel): Ditto.
11327         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
11328         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
11329         Put minus RTX before plus and adjust vec_merge selector.
11330         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
11331         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
11332         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
11333         (addsub vec_merge splitters): New combiner splitters.
11334         (addsub vec_select/vec_concat splitters): Ditto.
11336 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
11338         PR tree-optimization/66449
11339         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
11340         POINTER_PLUS_EXPR for pointers.
11342 2015-06-23  Alan Modra  <amodra@gmail.com>
11344         * rtlanal.c (commutative_operand_precedence): Correct comments.
11345         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
11346         declaration.  Return an int.  Distinguish REG,REG return from
11347         others.
11348         (struct simplify_plus_minus_op_data): Make local to function.
11349         (simplify_plus_minus): Don't set canonicalized if merely sorting
11350         registers.  Avoid packing ops if nothing changes.  White space fixes.
11352 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
11354         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
11355         -fdump-ada-spec is passed but not if -fsyntax-only is.
11357 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
11359         PR bootstrap/63740
11360         * lra-lives.c (process_bb_lives): Check insn copying the same
11361         reload pseudo and don't create a copy for it.
11363 2015-06-22  Tom de Vries  <tom@codesourcery.com>
11365         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
11366         for cond_stmt.
11368 2015-06-22  Tom de Vries  <tom@codesourcery.com>
11370         * builtins.def (DEF_GOMP_BUILTIN): Test
11371         'flag_tree_parallelize_loops > 1' instead of
11372         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
11374 2015-06-22  Tom de Vries  <tom@codesourcery.com>
11376         * dominance.c (calculate_dominance_info): Verify dominators if
11377         early-out.
11379 2015-06-22  Marek Polacek  <polacek@redhat.com>
11381         * match.pd ((x ^ y) ^ (x | y) -> x & y,
11382         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
11383         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
11384         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
11386 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
11388         PR target/65871
11389         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
11390         cost of embedded comparison.
11392 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11394         PR target/65914
11395         * config/rs6000/predicates.md (altivec_register_operand): Permit
11396         virtual stack registers.
11397         (vsx_register_operand): Likewise.
11398         (vfloat_operand): Likewise.
11399         (vint_operand): Likewise.
11400         (vlogical_operand): Likewise.
11402 2015-06-22  Richard Biener  <rguenther@suse.de>
11404         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
11405         and single_scalar_iteration_cost members.
11406         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
11407         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
11408         (vect_get_single_scalar_iteration_cost): Remove.
11409         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11410         Use LOOP_VINFO_SCALAR_ITERATION_COST.
11411         * tree-vect-loop.c (destroy_loop_vec_info): Free
11412         scalar_cost_vec.
11413         (vect_get_single_scalar_iteration_cost): Compute result into
11414         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
11415         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
11416         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
11417         (vect_estimate_min_profitable_iters): Use them.
11419 2015-06-22  Christian Bruel  <christian.bruel@st.com>
11421         PR target/52144
11422         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
11423         (TARGET_INSERT_ATTRIBUTES): Define.
11424         (thumb_flipper): New var.
11425         * config/arm/arm.opt (-mflip-thumb): New switch.
11427 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
11428             Martin Liska  <mliska@suse.cz>
11430         PR ipa/65908
11431         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
11432         construction of arg_types.
11433         (sem_function::sem_function): Likewise.
11434         (sem_function::~sem_function): Remove destruction of arg_types.
11435         (sem_function::compatible_parm_types_p): New function.
11436         (sem_function::equals_wpa): Reorg matching of return values
11437         and parameter types.
11438         (sem_function::equals_private): Reorg mathcing of argument types.
11439         (sem_function::parse_tree_args): Remove.
11440         * ipa-icf.h (init_wpa): Do not call it.
11441         (parse_tree_args): Remove.
11442         (compatible_parm_types_p): Declare.
11443         (result_type): Remove.
11444         (arg_types): Remove.
11446 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
11448         PR ipa/66351
11449         * ipa-polymorphic-call.c
11450         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
11451         initializing alias oracle; fix formating; set base_alias_set if it
11452         is known.
11454 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
11456         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
11457         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
11458         (find_inc): Likewise.
11459         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
11460         swapping.
11461         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11462         * df-scan.c (df_swap_refs): Remove.
11463         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
11464         * dominance.c (link_roots): Use std::swap instead of manually swapping.
11465         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
11466         * fold-const.c (fold_relational_const): Likewise.
11467         * genattrtab.c (simplify_test_exp): Likewise.
11468         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
11469         gimple_simplify): Likewise.
11470         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
11471         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
11472         * ipa-devirt.c (add_type_duplicate): Likewise.
11473         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
11474         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
11475         * lra.c (lra_create_copy): Likewise.
11476         * lto-streamer-out.c (DFS::DFS): Likewise.
11477         * modulo-sched.c (get_sched_window): Likewise.
11478         * omega.c (omega_pretty_print_problem): Likewise.
11479         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
11480         * reload1.c (reloads_unique_chain_p): Likewise.
11481         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
11482         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
11483         use std::swap.
11484         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
11485         manually swapping.
11486         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
11487         predicate_mem_writes): Likewise.
11488         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
11489         * tree-predcom.c (combine_chains): Likewise.
11490         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
11491         refs_may_alias_p_1): Likewise.
11492         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
11493         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
11494         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
11495         number_of_iterations_cond): Likewise.
11496         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
11497         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
11498         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
11499         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
11500         * tree-vrp.c (extract_range_from_binary_expr_1,
11501         extract_range_from_unary_expr_1): Likewise.
11503 2015-06-20  Marek Polacek  <polacek@redhat.com>
11505         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
11507 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
11509         PR target/66591
11510         * config/sh/sh.c (prepare_move_operands): Replace subreg
11511         index term with R0 for base and index addressing.
11513 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
11515         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
11516         op1 is an fp zero.
11517         (movsf_aarch64): Change condition from register_operand to
11518         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
11519         load1.  Change type for alternative 7 to store1.
11520         (movdf_aarch64): Likewise.
11522 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
11524         * config/vax/vax.md: Adjust sign/zero extend patterns to
11525         handle SUBREGs in operands[1].
11527 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11529         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
11530         of manually swapping.
11531         (expand_vec_perm_interleave2): Likewise.
11533 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
11535         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
11536         reuse bounds created for abnormal ssa names.
11538 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
11540         * config/nvptx/nvptx.md (allocate_stack): Rename to...
11541         (allocate_stack_<mode>): ... this, and add :P on both
11542         match_operand and unspec.
11543         (allocate_stack): New expander.
11545 2015-06-19  Christian Bruel  <christian.bruel@st.com>
11547         PR target/66541
11548         PR target/52144
11549         * config/arm/arm.c (arm_set_current_function): Handle
11550         explicit default options.
11552 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
11554         * config/i386/i386.md (*movsicc_noc_zext): New insn.
11555         (zero-extended cmove with mem peephole2): New pattern.
11556         (cmove with mem peephole2): Merge patterns.
11558 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
11560         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
11562 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
11564         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
11565         * config/mips/mips.md (*madd4<mode>): Ditto.
11566         (*nmadd3<mode>) Ditto.
11567         (*nmadd4<mode>_fastmath): Ditto.
11568         (*nmadd3<mode>_fastmath): Ditto.
11569         (*nmsub4<mode>): Ditto.
11570         (*nmsub3<mode>): Ditto.
11571         (*nmsub4<mode>_fastmath): Ditto.
11572         (*nmsub3<mode>_fastmath): Ditto.
11574 2015-06-18  Michael Matz  <matz@suse.de>
11576         PR middle-end/66253
11577         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
11578         grouped strided stores.
11579         (vectorizable_load): Don't use the DR from first_stmt in
11580         the non-SLP grouped strided case.
11582 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11584         PR target/66569
11585         * function.c (assign_bounds): Add arguments assign_regs,
11586         assign_special, assign_bt.
11587         (assign_parms): For vararg functions handle bounds in BT
11588         and special slots after incoming vararg bounds.
11590 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11592         PR middle-end/66568
11593         * cfgexpand.c (expand_return): Handle missing bounds.
11594         (expand_gimple_stmt_1): Likewise.
11595         * tree-chkp.c (chkp_expand_zero_bounds): New.
11596         * tree-chkp.h (chkp_expand_zero_bounds): New.
11598 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11600         PR middle-end/66567
11601         * ipa-chkp.c (chkp_maybe_create_clone): Require
11602         functions to be instrumentable.
11603         * tree-chkp.c (chkp_replace_function_pointer): Use
11604         chkp_instrumentable_p instead of attribute check.
11606 2015-06-18  Richard Biener  <rguenther@suse.de>
11608         PR tree-optimization/66510
11609         * tree-vect-stmts.c (vectorizable_load): Properly compute the
11610         number of vector loads for SLP permuted loads.
11611         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
11612         check the stride for loop vectorization.
11613         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
11614         vectorization factor.
11615         (vect_analyze_group_access): If the group size is not a power
11616         of two require a epilogue loop.
11617         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
11618         compute and optimizing and alias test pruning after final
11619         vectorization factor computation.
11620         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
11621         vector alignment.
11622         (vect_transform_slp_perm_load): Properly compute the original
11623         number of vector load stmts.
11625 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
11627         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
11628         "unlikely character , in @var" warning.
11630 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
11632         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
11633         (ix86_function_arg_advance): Ditto.
11634         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
11636 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
11638         * function.h (struct rtl_data): Remove struct and accessor macros.
11639         * emit-rtl.h (struct rtl_data): Relocate to here.
11640         * Makefile.in (GTFILES): Add emit-rtl.h.
11641         * df-core.c: Include emit-rtl.h.
11642         * genattrtab.c: Likewise.
11643         * genconditions.c: Likewise.
11644         * genpreds.c: Likewise.
11645         * genrecog.c: Likewise.
11646         * regcprop.c: Likewise.
11647         * resource.c: Likewise.
11648         * sched-rgn.c: Likewise.
11649         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11650         * config/i386/winnt.c: Likewise.
11652 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
11654         PR middle-end/66429
11655         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
11656         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
11657         and has_force_vectorize_loops flags from cfun into
11658         child_cfun.
11659         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
11660         if simduid is non-NULL.
11661         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
11662         * passes.def (pass_simduid_cleanup): Add new pass after loop
11663         passes.
11664         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
11665         indirection from htab argument's type.
11666         (shrink_simd_arrays): New function.
11667         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
11668         Don't call adjust_simduid_builtins if there are no loops.
11669         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
11670         (pass_simduid_cleanup::execute): New method.
11671         (make_pass_simduid_cleanup): New function.
11673 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
11675         * tree-core.h (tree_target_option): Make opts field a pointer to a
11676         cl_target_option instead of an instance of the struct.
11677         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
11678         the structure.
11679         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
11680         TARGET_OPTION_NODE.
11681         (copy_node_stat): Allocate and copy struct cl_target_option.
11683 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
11685         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
11686         Remove conditional exposure of prototypes.
11687         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
11688         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
11689         definitions in tree.h with functions.
11690         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
11691         anon_aggrname_p.
11692         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
11694 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
11696         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
11697         (*cmp<mode>_signed): ... this.
11698         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
11699         (*cmp<mode>_unsigned): ... this.  Remove %b.
11701 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
11703         * coretypes.h: Include input.h and as-a.h.
11704         * rtl.h: Include input.h and as-a.h for generator files.
11705         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
11706         * vec.c: Don't include diagnostic-core.h.
11707         * alias.c: Do not include input.h, line-map.h or is-a.h.
11708         * asan.c: Likewise.
11709         * attribs.c: Likewise.
11710         * auto-inc-dec.c: Likewise.
11711         * auto-profile.c: Likewise.
11712         * bb-reorder.c: Likewise.
11713         * bt-load.c: Likewise.
11714         * builtins.c: Likewise.
11715         * caller-save.c: Likewise.
11716         * calls.c: Likewise.
11717         * ccmp.c: Likewise.
11718         * cfg.c: Likewise.
11719         * cfganal.c: Likewise.
11720         * cfgbuild.c: Likewise.
11721         * cfgcleanup.c: Likewise.
11722         * cfgexpand.c: Likewise.
11723         * cfghooks.c: Likewise.
11724         * cfgloop.c: Likewise.
11725         * cfgloop.h: Likewise.
11726         * cfgloopanal.c: Likewise.
11727         * cfgloopmanip.c: Likewise.
11728         * cfgrtl.c: Likewise.
11729         * cgraph.c: Likewise.
11730         * cgraphbuild.c: Likewise.
11731         * cgraphclones.c: Likewise.
11732         * cgraphunit.c: Likewise.
11733         * cilk-common.c: Likewise.
11734         * combine-stack-adj.c: Likewise.
11735         * combine.c: Likewise.
11736         * compare-elim.c: Likewise.
11737         * convert.c: Likewise.
11738         * coverage.c: Likewise.
11739         * cppbuiltin.c: Likewise.
11740         * cprop.c: Likewise.
11741         * cse.c: Likewise.
11742         * cselib.c: Likewise.
11743         * data-streamer-in.c: Likewise.
11744         * data-streamer-out.c: Likewise.
11745         * data-streamer.c: Likewise.
11746         * dbxout.c: Likewise.
11747         * dce.c: Likewise.
11748         * ddg.c: Likewise.
11749         * debug.c: Likewise.
11750         * df-core.c: Likewise.
11751         * df-problems.c: Likewise.
11752         * df-scan.c: Likewise.
11753         * df.h: Likewise.
11754         * dfp.c: Likewise.
11755         * diagnostic-core.h: Likewise.
11756         * diagnostic.c: Likewise.
11757         * dojump.c: Likewise.
11758         * dominance.c: Likewise.
11759         * domwalk.c: Likewise.
11760         * double-int.c: Likewise.
11761         * dse.c: Likewise.
11762         * dumpfile.c: Likewise.
11763         * dumpfile.h: Likewise.
11764         * dwarf2asm.c: Likewise.
11765         * dwarf2cfi.c: Likewise.
11766         * dwarf2out.c: Likewise.
11767         * emit-rtl.c: Likewise.
11768         * et-forest.c: Likewise.
11769         * except.c: Likewise.
11770         * explow.c: Likewise.
11771         * expmed.c: Likewise.
11772         * expr.c: Likewise.
11773         * final.c: Likewise.
11774         * fixed-value.c: Likewise.
11775         * fold-const.c: Likewise.
11776         * function.c: Likewise.
11777         * fwprop.c: Likewise.
11778         * gcc-plugin.h: Likewise.
11779         * gcse.c: Likewise.
11780         * generic-match-head.c: Likewise.
11781         * ggc-page.c: Likewise.
11782         * gimple-builder.c: Likewise.
11783         * gimple-expr.c: Likewise.
11784         * gimple-fold.c: Likewise.
11785         * gimple-iterator.c: Likewise.
11786         * gimple-low.c: Likewise.
11787         * gimple-match-head.c: Likewise.
11788         * gimple-pretty-print.c: Likewise.
11789         * gimple-ssa-isolate-paths.c: Likewise.
11790         * gimple-ssa-strength-reduction.c: Likewise.
11791         * gimple-streamer-in.c: Likewise.
11792         * gimple-streamer-out.c: Likewise.
11793         * gimple-streamer.h: Likewise.
11794         * gimple-walk.c: Likewise.
11795         * gimple.c: Likewise.
11796         * gimplify-me.c: Likewise.
11797         * gimplify.c: Likewise.
11798         * godump.c: Likewise.
11799         * graph.c: Likewise.
11800         * graphite-blocking.c: Likewise.
11801         * graphite-dependences.c: Likewise.
11802         * graphite-interchange.c: Likewise.
11803         * graphite-isl-ast-to-gimple.c: Likewise.
11804         * graphite-optimize-isl.c: Likewise.
11805         * graphite-poly.c: Likewise.
11806         * graphite-scop-detection.c: Likewise.
11807         * graphite-sese-to-poly.c: Likewise.
11808         * graphite.c: Likewise.
11809         * haifa-sched.c: Likewise.
11810         * hw-doloop.c: Likewise.
11811         * ifcvt.c: Likewise.
11812         * init-regs.c: Likewise.
11813         * input.c: Likewise.
11814         * internal-fn.c: Likewise.
11815         * ipa-chkp.c: Likewise.
11816         * ipa-comdats.c: Likewise.
11817         * ipa-cp.c: Likewise.
11818         * ipa-devirt.c: Likewise.
11819         * ipa-icf-gimple.c: Likewise.
11820         * ipa-icf.c: Likewise.
11821         * ipa-inline-analysis.c: Likewise.
11822         * ipa-inline-transform.c: Likewise.
11823         * ipa-inline.c: Likewise.
11824         * ipa-polymorphic-call.c: Likewise.
11825         * ipa-profile.c: Likewise.
11826         * ipa-prop.c: Likewise.
11827         * ipa-pure-const.c: Likewise.
11828         * ipa-ref.c: Likewise.
11829         * ipa-reference.c: Likewise.
11830         * ipa-split.c: Likewise.
11831         * ipa-utils.c: Likewise.
11832         * ipa-visibility.c: Likewise.
11833         * ipa.c: Likewise.
11834         * ira-build.c: Likewise.
11835         * ira-color.c: Likewise.
11836         * ira-conflicts.c: Likewise.
11837         * ira-costs.c: Likewise.
11838         * ira-emit.c: Likewise.
11839         * ira-lives.c: Likewise.
11840         * ira.c: Likewise.
11841         * jump.c: Likewise.
11842         * langhooks.c: Likewise.
11843         * lcm.c: Likewise.
11844         * loop-doloop.c: Likewise.
11845         * loop-init.c: Likewise.
11846         * loop-invariant.c: Likewise.
11847         * loop-iv.c: Likewise.
11848         * loop-unroll.c: Likewise.
11849         * lower-subreg.c: Likewise.
11850         * lra-assigns.c: Likewise.
11851         * lra-coalesce.c: Likewise.
11852         * lra-constraints.c: Likewise.
11853         * lra-eliminations.c: Likewise.
11854         * lra-lives.c: Likewise.
11855         * lra-remat.c: Likewise.
11856         * lra-spills.c: Likewise.
11857         * lra.c: Likewise.
11858         * lto-cgraph.c: Likewise.
11859         * lto-compress.c: Likewise.
11860         * lto-opts.c: Likewise.
11861         * lto-section-in.c: Likewise.
11862         * lto-section-out.c: Likewise.
11863         * lto-streamer-in.c: Likewise.
11864         * lto-streamer-out.c: Likewise.
11865         * lto-streamer.c: Likewise.
11866         * mcf.c: Likewise.
11867         * mode-switching.c: Likewise.
11868         * modulo-sched.c: Likewise.
11869         * omega.c: Likewise.
11870         * omp-low.c: Likewise.
11871         * optabs.c: Likewise.
11872         * opts-global.c: Likewise.
11873         * opts.h: Likewise.
11874         * passes.c: Likewise.
11875         * plugin.c: Likewise.
11876         * postreload-gcse.c: Likewise.
11877         * postreload.c: Likewise.
11878         * predict.c: Likewise.
11879         * pretty-print.h: Likewise.
11880         * print-rtl.c: Likewise.
11881         * print-tree.c: Likewise.
11882         * profile.c: Likewise.
11883         * real.c: Likewise.
11884         * realmpfr.c: Likewise.
11885         * recog.c: Likewise.
11886         * ree.c: Likewise.
11887         * reg-stack.c: Likewise.
11888         * regcprop.c: Likewise.
11889         * reginfo.c: Likewise.
11890         * regrename.c: Likewise.
11891         * regstat.c: Likewise.
11892         * reload.c: Likewise.
11893         * reload1.c: Likewise.
11894         * reorg.c: Likewise.
11895         * resource.c: Likewise.
11896         * rtl-chkp.c: Likewise.
11897         * rtl-error.c: Likewise.
11898         * rtlanal.c: Likewise.
11899         * rtlhooks.c: Likewise.
11900         * sanopt.c: Likewise.
11901         * sched-deps.c: Likewise.
11902         * sched-ebb.c: Likewise.
11903         * sched-rgn.c: Likewise.
11904         * sched-vis.c: Likewise.
11905         * sdbout.c: Likewise.
11906         * sel-sched-dump.c: Likewise.
11907         * sel-sched-ir.c: Likewise.
11908         * sel-sched.c: Likewise.
11909         * sese.c: Likewise.
11910         * shrink-wrap.c: Likewise.
11911         * simplify-rtx.c: Likewise.
11912         * stack-ptr-mod.c: Likewise.
11913         * statistics.c: Likewise.
11914         * stmt.c: Likewise.
11915         * stor-layout.c: Likewise.
11916         * store-motion.c: Likewise.
11917         * streamer-hooks.c: Likewise.
11918         * stringpool.c: Likewise.
11919         * symtab.c: Likewise.
11920         * target-globals.c: Likewise.
11921         * targhooks.c: Likewise.
11922         * toplev.c: Likewise.
11923         * tracer.c: Likewise.
11924         * trans-mem.c: Likewise.
11925         * tree-affine.c: Likewise.
11926         * tree-browser.c: Likewise.
11927         * tree-call-cdce.c: Likewise.
11928         * tree-cfg.c: Likewise.
11929         * tree-cfgcleanup.c: Likewise.
11930         * tree-chkp-opt.c: Likewise.
11931         * tree-chkp.c: Likewise.
11932         * tree-chrec.c: Likewise.
11933         * tree-complex.c: Likewise.
11934         * tree-data-ref.c: Likewise.
11935         * tree-dfa.c: Likewise.
11936         * tree-diagnostic.c: Likewise.
11937         * tree-dump.c: Likewise.
11938         * tree-eh.c: Likewise.
11939         * tree-emutls.c: Likewise.
11940         * tree-if-conv.c: Likewise.
11941         * tree-inline.c: Likewise.
11942         * tree-into-ssa.c: Likewise.
11943         * tree-iterator.c: Likewise.
11944         * tree-loop-distribution.c: Likewise.
11945         * tree-nested.c: Likewise.
11946         * tree-nrv.c: Likewise.
11947         * tree-object-size.c: Likewise.
11948         * tree-outof-ssa.c: Likewise.
11949         * tree-parloops.c: Likewise.
11950         * tree-phinodes.c: Likewise.
11951         * tree-predcom.c: Likewise.
11952         * tree-pretty-print.c: Likewise.
11953         * tree-profile.c: Likewise.
11954         * tree-scalar-evolution.c: Likewise.
11955         * tree-sra.c: Likewise.
11956         * tree-ssa-address.c: Likewise.
11957         * tree-ssa-alias.c: Likewise.
11958         * tree-ssa-ccp.c: Likewise.
11959         * tree-ssa-coalesce.c: Likewise.
11960         * tree-ssa-copy.c: Likewise.
11961         * tree-ssa-copyrename.c: Likewise.
11962         * tree-ssa-dce.c: Likewise.
11963         * tree-ssa-dom.c: Likewise.
11964         * tree-ssa-dse.c: Likewise.
11965         * tree-ssa-forwprop.c: Likewise.
11966         * tree-ssa-ifcombine.c: Likewise.
11967         * tree-ssa-live.c: Likewise.
11968         * tree-ssa-loop-ch.c: Likewise.
11969         * tree-ssa-loop-im.c: Likewise.
11970         * tree-ssa-loop-ivcanon.c: Likewise.
11971         * tree-ssa-loop-ivopts.c: Likewise.
11972         * tree-ssa-loop-manip.c: Likewise.
11973         * tree-ssa-loop-niter.c: Likewise.
11974         * tree-ssa-loop-prefetch.c: Likewise.
11975         * tree-ssa-loop-unswitch.c: Likewise.
11976         * tree-ssa-loop.c: Likewise.
11977         * tree-ssa-math-opts.c: Likewise.
11978         * tree-ssa-operands.c: Likewise.
11979         * tree-ssa-phiopt.c: Likewise.
11980         * tree-ssa-phiprop.c: Likewise.
11981         * tree-ssa-pre.c: Likewise.
11982         * tree-ssa-propagate.c: Likewise.
11983         * tree-ssa-reassoc.c: Likewise.
11984         * tree-ssa-sccvn.c: Likewise.
11985         * tree-ssa-scopedtables.c: Likewise.
11986         * tree-ssa-sink.c: Likewise.
11987         * tree-ssa-strlen.c: Likewise.
11988         * tree-ssa-structalias.c: Likewise.
11989         * tree-ssa-tail-merge.c: Likewise.
11990         * tree-ssa-ter.c: Likewise.
11991         * tree-ssa-threadedge.c: Likewise.
11992         * tree-ssa-threadupdate.c: Likewise.
11993         * tree-ssa-uncprop.c: Likewise.
11994         * tree-ssa-uninit.c: Likewise.
11995         * tree-ssa.c: Likewise.
11996         * tree-ssanames.c: Likewise.
11997         * tree-stdarg.c: Likewise.
11998         * tree-streamer-in.c: Likewise.
11999         * tree-streamer-out.c: Likewise.
12000         * tree-streamer.c: Likewise.
12001         * tree-switch-conversion.c: Likewise.
12002         * tree-tailcall.c: Likewise.
12003         * tree-vect-data-refs.c: Likewise.
12004         * tree-vect-generic.c: Likewise.
12005         * tree-vect-loop-manip.c: Likewise.
12006         * tree-vect-loop.c: Likewise.
12007         * tree-vect-patterns.c: Likewise.
12008         * tree-vect-slp.c: Likewise.
12009         * tree-vect-stmts.c: Likewise.
12010         * tree-vectorizer.c: Likewise.
12011         * tree-vrp.c: Likewise.
12012         * tree.c: Likewise.
12013         * tsan.c: Likewise.
12014         * ubsan.c: Likewise.
12015         * valtrack.c: Likewise.
12016         * value-prof.c: Likewise.
12017         * var-tracking.c: Likewise.
12018         * varasm.c: Likewise.
12019         * varpool.c: Likewise.
12020         * vmsdbgout.c: Likewise.
12021         * vtable-verify.c: Likewise.
12022         * web.c: Likewise.
12023         * wide-int.cc: Likewise.
12024         * xcoffout.c: Likewise.
12025         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
12026         * common/common-targhooks.c: Likewise.
12027         * config/aarch64/aarch64-builtins.c: Likewise.
12028         * config/aarch64/aarch64.c: Likewise.
12029         * config/alpha/alpha.c: Likewise.
12030         * config/arc/arc.c: Likewise.
12031         * config/arm/aarch-common.c: Likewise.
12032         * config/arm/arm-builtins.c: Likewise.
12033         * config/arm/arm-c.c: Likewise.
12034         * config/arm/arm.c: Likewise.
12035         * config/avr/avr-c.c: Likewise.
12036         * config/avr/avr-log.c: Likewise.
12037         * config/avr/avr.c: Likewise.
12038         * config/bfin/bfin.c: Likewise.
12039         * config/c6x/c6x.c: Likewise.
12040         * config/cr16/cr16.c: Likewise.
12041         * config/cris/cris.c: Likewise.
12042         * config/darwin-c.c: Likewise.
12043         * config/darwin.c: Likewise.
12044         * config/default-c.c: Likewise.
12045         * config/epiphany/epiphany.c: Likewise.
12046         * config/epiphany/mode-switch-use.c: Likewise.
12047         * config/epiphany/resolve-sw-modes.c: Likewise.
12048         * config/fr30/fr30.c: Likewise.
12049         * config/frv/frv.c: Likewise.
12050         * config/ft32/ft32.c: Likewise.
12051         * config/glibc-c.c: Likewise.
12052         * config/h8300/h8300.c: Likewise.
12053         * config/i386/i386-c.c: Likewise.
12054         * config/i386/i386.c: Likewise.
12055         * config/i386/msformat-c.c: Likewise.
12056         * config/i386/winnt-cxx.c: Likewise.
12057         * config/i386/winnt-stubs.c: Likewise.
12058         * config/i386/winnt.c: Likewise.
12059         * config/ia64/ia64-c.c: Likewise.
12060         * config/ia64/ia64.c: Likewise.
12061         * config/iq2000/iq2000.c: Likewise.
12062         * config/lm32/lm32.c: Likewise.
12063         * config/m32c/m32c-pragma.c: Likewise.
12064         * config/m32c/m32c.c: Likewise.
12065         * config/m32r/m32r.c: Likewise.
12066         * config/m68k/m68k.c: Likewise.
12067         * config/mcore/mcore.c: Likewise.
12068         * config/mep/mep-pragma.c: Likewise.
12069         * config/mep/mep.c: Likewise.
12070         * config/microblaze/microblaze-c.c: Likewise.
12071         * config/microblaze/microblaze.c: Likewise.
12072         * config/mips/mips.c: Likewise.
12073         * config/mmix/mmix.c: Likewise.
12074         * config/mn10300/mn10300.c: Likewise.
12075         * config/moxie/moxie.c: Likewise.
12076         * config/msp430/msp430-c.c: Likewise.
12077         * config/msp430/msp430.c: Likewise.
12078         * config/nds32/nds32-cost.c: Likewise.
12079         * config/nds32/nds32-fp-as-gp.c: Likewise.
12080         * config/nds32/nds32-intrinsic.c: Likewise.
12081         * config/nds32/nds32-isr.c: Likewise.
12082         * config/nds32/nds32-md-auxiliary.c: Likewise.
12083         * config/nds32/nds32-memory-manipulation.c: Likewise.
12084         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12085         * config/nds32/nds32-predicates.c: Likewise.
12086         * config/nds32/nds32.c: Likewise.
12087         * config/nios2/nios2.c: Likewise.
12088         * config/nvptx/nvptx.c: Likewise.
12089         * config/pa/pa.c: Likewise.
12090         * config/pdp11/pdp11.c: Likewise.
12091         * config/rl78/rl78-c.c: Likewise.
12092         * config/rl78/rl78.c: Likewise.
12093         * config/rs6000/rs6000-c.c: Likewise.
12094         * config/rs6000/rs6000.c: Likewise.
12095         * config/rx/rx.c: Likewise.
12096         * config/s390/s390-c.c: Likewise.
12097         * config/s390/s390.c: Likewise.
12098         * config/sh/sh-c.c: Likewise.
12099         * config/sh/sh-mem.cc: Likewise.
12100         * config/sh/sh.c: Likewise.
12101         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12102         * config/sh/sh_treg_combine.cc: Likewise.
12103         * config/sol2-c.c: Likewise.
12104         * config/sol2-cxx.c: Likewise.
12105         * config/sol2-stubs.c: Likewise.
12106         * config/sol2.c: Likewise.
12107         * config/sparc/sparc-c.c: Likewise.
12108         * config/sparc/sparc.c: Likewise.
12109         * config/spu/spu-c.c: Likewise.
12110         * config/spu/spu.c: Likewise.
12111         * config/stormy16/stormy16.c: Likewise.
12112         * config/tilegx/mul-tables.c: Likewise.
12113         * config/tilegx/tilegx-c.c: Likewise.
12114         * config/tilegx/tilegx.c: Likewise.
12115         * config/tilepro/mul-tables.c: Likewise.
12116         * config/tilepro/tilepro-c.c: Likewise.
12117         * config/tilepro/tilepro.c: Likewise.
12118         * config/v850/v850-c.c: Likewise.
12119         * config/v850/v850.c: Likewise.
12120         * config/vax/vax.c: Likewise.
12121         * config/visium/visium.c: Likewise.
12122         * config/vms/vms-c.c: Likewise.
12123         * config/vms/vms.c: Likewise.
12124         * config/vxworks.c: Likewise.
12125         * config/winnt-c.c: Likewise.
12126         * config/xtensa/xtensa.c: Likewise.
12128 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
12130         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
12131         function.
12132         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
12134 2015-06-17  Richard Biener  <rguenther@suse.de>
12136         PR tree-optimization/66251
12137         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
12138         stmts for SLP strided stores.
12140         Revert
12141         2015-05-22  Richard Biener  <rguenther@suse.de>
12143         PR tree-optimization/66251
12144         * tree-vect-stmts.c (vectorizable_conversion): Properly
12145         set STMT_VINFO_VEC_STMT even for the SLP case.
12147         2015-05-26  Michael Matz  <matz@suse.de>
12149         PR middle-end/66251
12150         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
12151         STMT_VINFO_VEC_STMT, also with SLP.
12153 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
12155         PR target/56766
12156         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
12157         (*avx_addsubv4df3_1s): Ditto.
12158         (*sse3_addsubv2df3_1): Ditto.
12159         (*sse3_addsubv2df3_1s): Ditto.
12160         (*avx_addsubv8sf3_1): Ditto.
12161         (*avx_addsubv8sf3_1s): Ditto.
12162         (*sse3_addsubv4sf3_1): Ditto.
12163         (*sse3_addsubv4sf3_1s): Ditto.
12165 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
12167         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
12168         (SYSROOT_SUFFIX_SPEC): Update.
12169         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
12170         (STARTFILE_PREFIX_SPEC): Update.
12171         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
12172         (MULTILIB_REQUIRED): New.
12173         (MULTILIB_OSDIRNAMES): New.
12174         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
12175         (MULTILIB_REQUIRED): New.
12176         (MULTILIB_OSDIRNAMES): New.
12178 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
12180         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
12181         * config/aarch64/aarch64-options-extensions.def: Update "fP",
12182         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
12183         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
12184         (AARCH64_FL_PAN): New.
12185         (AARCH64_FL_LOR): New.
12186         (AARCH64_FL_RDMA): New.
12187         (AARCH64_FL_FOR_ARCH8_1): New.
12188         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
12189         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
12191 2015-06-16  Martin Liska  <mliska@suse.cz>
12193         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
12194         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
12195         guard.
12197 2015-06-16  Richard Biener  <rguenther@suse.de>
12199         * tree-vect-stmts.c (vectorizable_store): Adjust.
12200         (vectorizable_load): Likewise.
12201         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12202         Simplify.
12203         (vect_create_data_ref_ptr): Likewise.
12204         (bump_vector_ptr): Adjust.
12206 2015-06-16  Richard Biener  <rguenther@suse.de>
12208         * tree-vect-stmts.c (vectorizable_load): Properly start loads
12209         with the first element if this is grouped loads.
12211 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
12213         * config/arm/arm-protos.h (struct tune_params): Rename
12214         log_op_non_sc to log_op_non_short_circuit, and rename enum
12215         values to expand SC to SHORT_CIRCUIT.
12216         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
12217         to LOG_OP_NON_SHORT_CIRCUIT.
12218         (arm_fastmul_tune):Likewise
12219         (arm_strongarm_tune): Likewise.
12220         (arm_xscale_tune): Likewise.
12221         (arm_9e_tune): Likewise.
12222         (arm_marvell_pj4_tune): Likewise.
12223         (arm_v6t2_tune): Likewise.
12224         (arm_cortex_tune): Likewise.
12225         (arm_cortex_a8_tune): Likewise.
12226         (arm_cortex_a7_tune): Likewise.
12227         (arm_cortex_a15_tune): Likewise.
12228         (arm_cortex_a53_tune): Likewise.
12229         (arm_cortex_a57_tune): Likewise.
12230         (arm_xgene1_tune): Likewise.
12231         (arm_cortex_a5_tune): Likewise.
12232         (arm_cortex_a9_tune): Likewise.
12233         (arm_cortex_a12_tune): Likewise.
12234         (arm_v7m_tune): Likewise.
12235         (arm_cortex_m7_tune): Likewise.
12236         (arm_v6m_tune): Likewise.
12237         (arm_fa726te_tune): Likewise.
12239 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
12241         * altivec.md: Delete UNSPEC_VMLADDUHM.
12242         (mulv4si3_p8): New pattern.
12243         (mulv4si3): Use it for POWER8.
12244         (mulv8hi3): Use vmladduhm with zero addend.
12245         (altivec_vmladduhm): Descriptive RTL.
12247 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
12249         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
12250         to use neon_move instead of mov_imm.
12251         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
12252         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
12254         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
12255         aarch64_float_const_zero_rtx_p check before TFmode check.
12256         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
12257         an fp zero.
12258         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
12259         code and attributes to match.  Change condition from register_operand
12260         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
12261         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
12262         to store2.
12264 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
12266         PR debug/66535
12267         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
12268         there is no parent.
12270 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
12272         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
12273         HOST_WIDE_INT parameter.
12275 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
12277         PR ipa/66181
12278         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
12279         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
12280         TYPE_NO_FORCE_BLK.
12281         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
12283 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
12285         * rtl.h (classify_insn): Declare.
12286         * emit-rtl.c (classify_insn): Move to...
12287         * rtl.c: ...here and add generator support.
12288         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
12289         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
12290         * genemit.c (gen_emit_seq): New function.
12291         (gen_expand, gen_split): Use it.
12293 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
12295         * tree.c (make_vector_stat): Fix comment to state that the
12296         function returns a VECTOR_CST.
12298 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
12300         * gensupport.h (add_implicit_parallel): Declare.
12301         * genrecog.c (add_implicit_parallel): Move to...
12302         * gensupport.c (add_implicit_parallel): ...here.
12303         (process_one_cond_exec): Use it.
12304         * genemit.c (gen_insn): Likewise.
12306 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
12308         PR bootstrap/66448
12309         * passes.c (rest_of_decl_compilation): Do not register globals for
12310         early debug if they are declared in built-ins.
12312 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
12314         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
12316 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12318         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
12319         manually swapping.
12320         (noce_try_cmove_arith): Likewise.
12321         (noce_get_alt_condition): Likewise.
12323 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12325         * common/config/i386/i386-common.c
12326         (OPTION_MASK_ISA_MWAITX_SET): New.
12327         (ix86_handle_option): Handle mwaitx.
12328         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
12329         (x86_64-*-*): Likewise.
12330         * config/i386/mwaitxintrin.h: New header.
12331         * config/i386/cpuid.h (bit_MWAITX):  Define.
12332         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12333         MWAITX support.
12334         * config/i386/i386.opt (mwaitx): New.
12335         * config/i386/i386-builtin-types.def
12336         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
12337         * config/i386/i386-c.c: Define __MWAITX__ if needed.
12338         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
12339         (PTA_MWAITX): New.
12340         (ix86_option_override_internal): Handle new option.
12341         (processor_alias_table): Added PTA_MWAITX.
12342         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
12343         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
12344         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
12345         IX86_BUILTIN_MONITORX  built-ins.
12346         * config/i386/i386.h (TARGET_MWAITX): New.
12347         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
12348         UNSPEC_MONITORX.
12349         (mwaitx):  New pattern.
12350         (monitorx_<mode>): New pattern.
12351         * config/i386/x86intrin.h: Include mwaitxintrin.h.
12352         * doc/extend.texi: Document monitorx and mwaitx builtins.
12353         * doc/invoke.texi: Document -mmwaitx option.
12355 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
12357         * emit-rtl.c (need_atomic_barrier_p): Mask model with
12358         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
12360 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
12362         * dbxout.c (xcoff_debug_hooks): Provide a function for
12363         register_main_translation_unit hook.
12365 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
12367         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
12368         variants cases from switch.
12369         (rs6000_post_atomic_barrier): Same.
12370         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
12371         (rs6000_expand_atomic_exchange): Same.
12372         (rs6000_expand_atomic_op): Same.
12373         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
12374         SYNC variants cases from switch.
12375         (atomic_load): Same.
12376         (atomic_store): Same.
12378 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
12380         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
12381         CONST_INT for goto.
12383 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
12385         PR bootstrap/66448
12386         * dwarf2out.c (check_die): Check for common duplicate attributes.
12387         (add_location_or_const_value_attribute): Do not add duplicate
12388         attributes.
12389         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
12390         time around.
12391         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
12392         (gen_type_die_with_usage): Call check_die.
12393         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
12395 2015-06-11  Jason Merrill  <jason@redhat.com>
12397         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
12398         dies.
12400 2015-06-11  Marek Polacek  <polacek@redhat.com>
12402         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
12404 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
12406         PR bootstrap/66252
12407         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
12408         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
12409         (*addx_extend_sp32): Fix pasto.
12410         (*subx_extend): Rename into...
12411         (*subx_extend_sp32): ...this.
12412         (*adddi3_extend_sp32): Add earlyclobber.
12413         (*subdi3_insn_sp32): Likewise.
12414         (*subdi3_extend_sp32): Likewise.
12415         (*and_not_di_sp32): Likewise.
12416         (*or_not_di_sp32): Likewise.
12417         (*xor_not_di_sp32): Likewise.
12418         (*negdi2_sp32): Likewise.
12419         (*one_cmpldi2_sp32): Likewise.
12421 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
12423         * debug.h (struct gcc_debug_hooks): Add a
12424         register_main_translation_unit hook.
12425         * debug.c (do_nothing_debug_hooks): Provide a function for this
12426         new hook.
12427         * dbxout.c (dbx_debug_hooks): Likewise.
12428         * sdbout.c (sdb_debug_hooks): Likewise.
12429         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12430         * dwarf2out.c (main_translation_unit): New global variable.
12431         (dwarf2out_register_main_translation_unit): New function
12432         implementing the new hook.
12433         (dwarf2_debug_hooks): Assign
12434         dwarf2out_register_main_translation_unit to this new hook.
12435         (dwarf2out_init): Associate any main translation unit to
12436         comp_unit_die ().
12438 2015-06-11  Marek Polacek  <polacek@redhat.com>
12440         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
12442 2015-06-11  Marek Polacek  <polacek@redhat.com>
12444         * match.pd: Use single_use throughout.
12446 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12448         * config/arm/arm.c (arm_option_params_internal): When optimising
12449         for speed set max_insns_skipped when arm_restrict_it.
12451 2015-06-11  Christian Bruel  <christian.bruel@st.com>
12453         PR target/52144
12454         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
12455          macros in ...
12456         (arm_cpu_builtins): New function.
12457         (arm_pragma_target_parse): Call arm_cpu_builtins.
12458         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
12459         (arm_register_target_pragmas): Likewise.
12460         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
12461          Call arm_register_target_pragmas.
12462         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
12463         (arm_pragma_target_parse): Likewise.
12465 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
12467         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
12468         of the second operand.
12470 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
12472         PR target/66473
12473         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
12474         to prepare mask operand for AVX512 modes.
12476 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
12478         PR target/66474
12479         * doc/md.texi (Machine Constraints): Document that on the PowerPC
12480         if you use a constraint that targets a VSX register, you must use
12481         %x<n> in the template.
12483 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
12485         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
12486         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
12487         (define_insn "trap"): New definition.
12489 2015-06-10  Richard Biener  <rguenther@suse.de>
12491         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
12492         out from ...
12493         (vect_supported_load_permutation_p): ... here.  Handle
12494         supportable permutations in reductions.
12495         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
12496         for vectorizing strided group loads.
12498 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
12500         PR target/66470
12501         * config/i386/i386.c (ix86_split_long_move): For collisions
12502         involving direct tls segment refs, move the UNSPEC_TP possibly
12503         wrapped in ZERO_EXTEND out of the address for lea, to each of
12504         the memory loads.
12506 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12508         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
12509         dmb sy. Adjust tabs.
12511 2015-06-10  Tom de Vries  <tom@codesourcery.com>
12513         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
12515 2015-06-10  Martin Liska  <mliska@suse.cz>
12517         PR bootstrap/66471
12518         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
12519         all enum values in mem_alloc_origin.
12520         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
12521         name.
12522         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
12523         * bitmap.c (bitmap_register): Likewise.
12524         (dump_bitmap_statistics): Likewise.
12525         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
12526         (ggc_record_overhead): Likewise.
12527         * hash-map.h: Likewise.
12528         * hash-set.h: Likewise.
12529         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
12530         * hash-table.h: Likewise.
12531         * vec.c (vec_prefix::register_overhead): Likewise.
12532         (vec_prefix::release_overhead): Likewise.
12533         (dump_vec_loc_statistics): Likewise.
12535 2015-06-09  Christian Bruel  <christian.bruel@st.com>
12537         PR target/52144
12538         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
12539         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
12540         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
12541         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
12542         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
12543         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
12544         (arm_valid_target_attribute_p): Likewise.
12545         (arm_set_current_function, arm_can_inline_p): Likewise.
12546         (arm_valid_target_attribute_rec): Likewise.
12547         (arm_previous_fndecl): New variable.
12548         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12549         (TARGET_CAN_INLINE_P): Define.
12550         (arm_asm_trampoline_template): Emit mode.
12551         (arm_file_start): Don't set unified syntax.
12552         (arm_declare_function_name): Set unified syntax and mode.
12553         (arm_option_override): Init target_option_default_node.
12554         and target_option_current_node.
12555         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
12556         (*call_symbol): Likewise.
12557         * doc/extend.texi: Document ARM/Thumb target attribute.
12558         * doc/invoke.texi: Likewise.
12560 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
12562         Revert:
12563         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
12564         PR rtl-optimization/64164
12565         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12566         * tree-ssa-copyrename.c: Removed.
12567         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
12568         -ftree-coalesce-vars.
12569         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12570         * common.opt (ftree-copyrename): Ignore.
12571         (ftree-coalesce-inlined-vars): Likewise.
12572         * doc/invoke.texi: Remove the ignored options above.
12573         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12574         * tree-ssa-coalesce.h: ... here.
12575         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12576         headers required by it.
12577         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12578         across variables when flag_tree_coalesce_vars.  Check register
12579         use and promoted modes to allow coalescing.  Moved to
12580         tree-ssa-coalesce.c.
12581         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12582         with its member functions to tree-ssa-coalesce.c.
12583         (var_map_base_init): Likewise.  Renamed to
12584         compute_samebase_partition_bases.
12585         (partition_view_normal): Drop want_bases parameter.
12586         (partition_view_bitmap): Likewise.
12587         * tree-ssa-live.h: Adjust declarations.
12588         * tree-ssa-coalesce.c: Include explow.h.
12589         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12590         default defs at the entry point.
12591         (dump_part_var_map): New.
12592         (compute_optimized_partition_bases): New, called by...
12593         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12594         of compute_samebase_partition_bases.  Adjust.
12595         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12596         * cfgexpand.c (leader_merge): New.
12597         (get_rtl_for_parm_ssa_default_def): New.
12598         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12599         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12600         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
12601         redundant MEM attr setting.
12602         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
12603         from...
12604         (expand_one_stack_var): ... this.  New wrapper to check and
12605         skip already expanded SSA partitions.
12606         (record_alignment_for_reg_var): New, factored out of...
12607         (expand_one_var): ... this.
12608         (expand_one_ssa_partition): New.
12609         (adjust_one_expanded_partition_var): New.
12610         (expand_one_register_var): Check and skip already expanded SSA
12611         partitions.
12612         (expand_used_vars): Don't create DECLs for anonymous SSA
12613         names.  Expand all SSA partitions, then adjust all SSA names.
12614         (pass::execute): Replace the loops that set
12615         SA.partition_to_pseudo from partition leaders and cleared
12616         DECL_RTL for multi-location variables, and that which used to
12617         rename vars and set attrs, with one that clears DECL_RTL and
12618         checks that PARMs and RESULTs default_defs match DECL_RTL.
12619         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12620         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12621         * explow.c (promote_ssa_mode): New.
12622         * explow.h (promote_ssa_mode): Declare.
12623         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12624         * function.c: Include cfgexpand.h.
12625         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12626         (use_register_for_parm_decl): Wrapper for the above to
12627         special-case the result_ptr.
12628         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12629         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12630         multiple locations.
12631         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12632         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
12633         (assign_parm_setup_block): Prefer SSA-assigned location.
12634         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
12635         if stack_parm is NULL.
12636         (assign_parm_setup_stack): Prefer SSA-assigned location.
12637         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
12638         rtl before testing for pointer bounds.  Special-case result_ptr.
12639         (expand_function_start): Maybe reset DECL_RTL of result.
12640         Prefer SSA-assigned location for result and static chain.
12641         Factor out DECL_RESULT and SET_DECL_RTL.
12642         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12643         anonymous SSA names.  Use promote_ssa_mode.
12644         (get_temp_reg): Likewise.
12645         (remove_ssa_form): Adjust.
12646         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12647         and get its reg_usage for reg invalidation.
12648         (compute_bb_dataflow): Pass it insn.
12649         (emit_notes_in_bb): Likewise.
12650         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12651         fail assert on conversion between unsigned types.
12653 2015-06-09  Tom de Vries  <tom@codesourcery.com>
12655         PR tree-optimization/65460
12656         * omp-low.c (expand_omp_target): Set parallelized_function on
12657         cgraph_node for child_fn.
12659 2015-06-09  Tom de Vries  <tom@codesourcery.com>
12661         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
12662         parallelized_function before add_new_function.
12664 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
12666         * gcc-plugin.h: Move decls to plugin.h and include it.
12667         * plugin.h: Relocate decls from gcc-plugin.h
12668         * ggc-page.c: Include required header files.
12669         * passes.c: Likewise.
12670         * cgraphunit.c: Likewise.
12672 2015-06-09  Tom de Vries  <tom@codesourcery.com>
12674         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
12676 2015-06-09  Jason Merrill  <jason@redhat.com>
12678         PR bootstrap/66448
12679         * toplev.c (check_global_declaration): Don't warn about a clone.
12681 2015-06-09  Marek Polacek  <polacek@redhat.com>
12683         PR tree-optimization/66299
12684         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
12685         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
12686         patterns.
12688 2015-06-09  Richard Biener  <rguenther@suse.de>
12690         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
12691         (vect_analyze_slp_instance): Instead do not falsely drop
12692         load permutations.
12694 2015-06-09  Richard Biener  <rguenther@suse.de>
12696         PR middle-end/66423
12697         * match.pd: Handle A % (unsigned)(1 << B).
12699 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
12701         * varasm.c (output_object_block_htab): Remove.
12702         (output_object_block_compare): New.
12703         (output_object_blocks): Sort named object_blocks before outputting
12704         them.
12706 2015-06-09  Richard Biener  <rguenther@suse.de>
12708         PR tree-optimization/66419
12709         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
12710         consider GROUP_GAP when detecting a perfect subchain.
12712 2015-06-09  Nick Clifton  <nickc@redhat.com>
12714         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
12715         place read only data in the .frodata section.
12717 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
12719         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
12720         (atomic_store<mode>): Likewise.
12722 2015-06-09  Richard Biener  <rguenther@suse.de>
12724         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
12726 2015-06-09  Richard Biener  <rguenther@suse.de>
12728         PR middle-end/66413
12729         * tree-inline.c (insert_init_debug_bind): Unshare value.
12731 2015-06-09  Richard Biener  <rguenther@suse.de>
12733         PR tree-optimization/66396
12734         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
12735         Rename virtual operands.
12737 2015-06-09  Tom de Vries  <tom@codesourcery.com>
12739         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
12740         always return false.
12742 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
12744         PR rtl-optimization/64164
12745         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12746         * tree-ssa-copyrename.c: Removed.
12747         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
12748         -ftree-coalesce-vars.
12749         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12750         * common.opt (ftree-copyrename): Ignore.
12751         (ftree-coalesce-inlined-vars): Likewise.
12752         * doc/invoke.texi: Remove the ignored options above.
12753         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12754         * tree-ssa-coalesce.h: ... here.
12755         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12756         headers required by it.
12757         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12758         across variables when flag_tree_coalesce_vars.  Check register
12759         use and promoted modes to allow coalescing.  Moved to
12760         tree-ssa-coalesce.c.
12761         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12762         with its member functions to tree-ssa-coalesce.c.
12763         (var_map_base_init): Likewise.  Renamed to
12764         compute_samebase_partition_bases.
12765         (partition_view_normal): Drop want_bases parameter.
12766         (partition_view_bitmap): Likewise.
12767         * tree-ssa-live.h: Adjust declarations.
12768         * tree-ssa-coalesce.c: Include explow.h.
12769         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12770         default defs at the entry point.
12771         (dump_part_var_map): New.
12772         (compute_optimized_partition_bases): New, called by...
12773         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12774         of compute_samebase_partition_bases.  Adjust.
12775         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12776         * cfgexpand.c (leader_merge): New.
12777         (get_rtl_for_parm_ssa_default_def): New.
12778         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12779         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12780         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
12781         redundant MEM attr setting.
12782         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
12783         from...
12784         (expand_one_stack_var): ... this.  New wrapper to check and
12785         skip already expanded SSA partitions.
12786         (record_alignment_for_reg_var): New, factored out of...
12787         (expand_one_var): ... this.
12788         (expand_one_ssa_partition): New.
12789         (adjust_one_expanded_partition_var): New.
12790         (expand_one_register_var): Check and skip already expanded SSA
12791         partitions.
12792         (expand_used_vars): Don't create DECLs for anonymous SSA
12793         names.  Expand all SSA partitions, then adjust all SSA names.
12794         (pass::execute): Replace the loops that set
12795         SA.partition_to_pseudo from partition leaders and cleared
12796         DECL_RTL for multi-location variables, and that which used to
12797         rename vars and set attrs, with one that clears DECL_RTL and
12798         checks that PARMs and RESULTs default_defs match DECL_RTL.
12799         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12800         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
12801         * explow.c (promote_ssa_mode): New.
12802         * explow.h (promote_ssa_mode): Declare.
12803         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12804         * function.c: Include cfgexpand.h.
12805         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12806         (use_register_for_parm_decl): Wrapper for the above to
12807         special-case the result_ptr.
12808         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12809         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12810         multiple locations.
12811         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12812         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
12813         (assign_parm_setup_block): Prefer SSA-assigned location.
12814         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
12815         if stack_parm is NULL.
12816         (assign_parm_setup_stack): Prefer SSA-assigned location.
12817         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
12818         rtl before testing for pointer bounds.  Special-case result_ptr.
12819         (expand_function_start): Maybe reset DECL_RTL of result.
12820         Prefer SSA-assigned location for result and static chain.
12821         Factor out DECL_RESULT and SET_DECL_RTL.
12822         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12823         anonymous SSA names.  Use promote_ssa_mode.
12824         (get_temp_reg): Likewise.
12825         (remove_ssa_form): Adjust.
12826         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12827         and get its reg_usage for reg invalidation.
12828         (compute_bb_dataflow): Pass it insn.
12829         (emit_notes_in_bb): Likewise.
12830         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
12831         fail assert on conversion between unsigned types.
12833 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
12835         PR debug/58315
12836         * tree-inline.c (reset_debug_binding): New.
12837         (reset_debug_bindings): Likewise.
12838         (expand_call_inline): Call it.
12840 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
12842         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
12843         TYPE_STRING_FLAG.
12845 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
12847         * lto-streamer-out.c (lto_output_location): Stream
12848         reserved locations correctly.
12849         * lto-streamer-in.c (lto_output_location): Likewise.
12851 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
12853         * coretypes.h: Include hash-table.h and hash-set.h for host files.
12854         * ggc.h: Don't include statistics.h>
12855         * hash-map.h: Remove all includes.
12856         * hash-set.h: Likewise.
12857         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
12858         the include list. Remove <new>.
12859         * inchash.h: Remove all includes.
12860         * mem-stats.h: Likewise.
12861         * vec.h: No special processing for generators or ggc.
12862         * alias.c : Adjust include files.
12863         * alloc-pool.c : Likewise.
12864         * alloc-pool.h : Likewise.
12865         * asan.c : Likewise.
12866         * attribs.c : Likewise.
12867         * auto-inc-dec.c : Likewise.
12868         * auto-profile.c : Likewise.
12869         * bb-reorder.c : Likewise.
12870         * bitmap.c : Likewise.
12871         * bitmap.h : Likewise.
12872         * bt-load.c : Likewise.
12873         * builtins.c : Likewise.
12874         * caller-save.c : Likewise.
12875         * calls.c : Likewise.
12876         * ccmp.c : Likewise.
12877         * cfg.c : Likewise.
12878         * cfganal.c : Likewise.
12879         * cfgbuild.c : Likewise.
12880         * cfgcleanup.c : Likewise.
12881         * cfgexpand.c : Likewise.
12882         * cfghooks.c : Likewise.
12883         * cfgloop.c : Likewise.
12884         * cfgloop.h : Likewise.
12885         * cfgloopanal.c : Likewise.
12886         * cfgloopmanip.c : Likewise.
12887         * cfgrtl.c : Likewise.
12888         * cgraph.c : Likewise.
12889         * cgraphbuild.c : Likewise.
12890         * cgraphclones.c : Likewise.
12891         * cgraphunit.c : Likewise.
12892         * cilk-common.c : Likewise.
12893         * combine-stack-adj.c : Likewise.
12894         * combine.c : Likewise.
12895         * compare-elim.c : Likewise.
12896         * context.c : Likewise.
12897         * convert.c : Likewise.
12898         * coverage.c : Likewise.
12899         * cppbuiltin.c : Likewise.
12900         * cprop.c : Likewise.
12901         * cse.c : Likewise.
12902         * cselib.c : Likewise.
12903         * data-streamer-in.c : Likewise.
12904         * data-streamer-out.c : Likewise.
12905         * data-streamer.c : Likewise.
12906         * data-streamer.h : Likewise.
12907         * dbxout.c : Likewise.
12908         * dce.c : Likewise.
12909         * ddg.c : Likewise.
12910         * debug.c : Likewise.
12911         * df-core.c : Likewise.
12912         * df-problems.c : Likewise.
12913         * df-scan.c : Likewise.
12914         * df.h : Likewise.
12915         * dfp.c : Likewise.
12916         * dojump.c : Likewise.
12917         * dominance.c : Likewise.
12918         * domwalk.c : Likewise.
12919         * double-int.c : Likewise.
12920         * dse.c : Likewise.
12921         * dumpfile.c : Likewise.
12922         * dwarf2asm.c : Likewise.
12923         * dwarf2cfi.c : Likewise.
12924         * dwarf2out.c : Likewise.
12925         * emit-rtl.c : Likewise.
12926         * et-forest.c : Likewise.
12927         * except.c : Likewise.
12928         * except.h : Likewise.
12929         * explow.c : Likewise.
12930         * expmed.c : Likewise.
12931         * expr.c : Likewise.
12932         * final.c : Likewise.
12933         * fixed-value.c : Likewise.
12934         * fold-const.c : Likewise.
12935         * function.c : Likewise.
12936         * fwprop.c : Likewise.
12937         * gcc-plugin.h : Likewise.
12938         * gcc.c : Likewise.
12939         * gcse-common.c : Likewise.
12940         * gcse.c : Likewise.
12941         * genattrtab.c : Likewise.
12942         * genautomata.c : Likewise.
12943         * genconditions.c : Likewise.
12944         * genemit.c : Likewise.
12945         * generic-match-head.c : Likewise.
12946         * genextract.c : Likewise.
12947         * gengtype-state.c : Likewise.
12948         * gengtype.c : Likewise.
12949         * genhooks.c : Likewise.
12950         * genmatch.c : Likewise.
12951         * genmodes.c : Likewise.
12952         * genrecog.c : Likewise.
12953         * gensupport.c : Likewise.
12954         * ggc-common.c : Likewise.
12955         * ggc-internal.h : Likewise.
12956         * ggc-none.c : Likewise.
12957         * ggc-page.c : Likewise.
12958         * gimple-builder.c : Likewise.
12959         * gimple-expr.c : Likewise.
12960         * gimple-fold.c : Likewise.
12961         * gimple-iterator.c : Likewise.
12962         * gimple-low.c : Likewise.
12963         * gimple-match-head.c : Likewise.
12964         * gimple-pretty-print.c : Likewise.
12965         * gimple-ssa-isolate-paths.c : Likewise.
12966         * gimple-ssa-strength-reduction.c : Likewise.
12967         * gimple-ssa.h : Likewise.
12968         * gimple-streamer-in.c : Likewise.
12969         * gimple-streamer-out.c : Likewise.
12970         * gimple-streamer.h : Likewise.
12971         * gimple-walk.c : Likewise.
12972         * gimple.c : Likewise.
12973         * gimplify-me.c : Likewise.
12974         * gimplify.c : Likewise.
12975         * godump.c : Likewise.
12976         * graph.c : Likewise.
12977         * graphds.c : Likewise.
12978         * graphite-blocking.c : Likewise.
12979         * graphite-dependences.c : Likewise.
12980         * graphite-interchange.c : Likewise.
12981         * graphite-isl-ast-to-gimple.c : Likewise.
12982         * graphite-optimize-isl.c : Likewise.
12983         * graphite-poly.c : Likewise.
12984         * graphite-scop-detection.c : Likewise.
12985         * graphite-sese-to-poly.c : Likewise.
12986         * graphite.c : Likewise.
12987         * haifa-sched.c : Likewise.
12988         * hard-reg-set.h : Likewise.
12989         * hw-doloop.c : Likewise.
12990         * ifcvt.c : Likewise.
12991         * inchash.c : Likewise.
12992         * incpath.c : Likewise.
12993         * init-regs.c : Likewise.
12994         * input.c : Likewise.
12995         * internal-fn.c : Likewise.
12996         * ipa-chkp.c : Likewise.
12997         * ipa-comdats.c : Likewise.
12998         * ipa-cp.c : Likewise.
12999         * ipa-devirt.c : Likewise.
13000         * ipa-icf-gimple.c : Likewise.
13001         * ipa-icf.c : Likewise.
13002         * ipa-inline-analysis.c : Likewise.
13003         * ipa-inline-transform.c : Likewise.
13004         * ipa-inline.c : Likewise.
13005         * ipa-polymorphic-call.c : Likewise.
13006         * ipa-profile.c : Likewise.
13007         * ipa-prop.c : Likewise.
13008         * ipa-pure-const.c : Likewise.
13009         * ipa-ref.c : Likewise.
13010         * ipa-reference.c : Likewise.
13011         * ipa-split.c : Likewise.
13012         * ipa-utils.c : Likewise.
13013         * ipa-visibility.c : Likewise.
13014         * ipa.c : Likewise.
13015         * ira-build.c : Likewise.
13016         * ira-color.c : Likewise.
13017         * ira-conflicts.c : Likewise.
13018         * ira-costs.c : Likewise.
13019         * ira-emit.c : Likewise.
13020         * ira-lives.c : Likewise.
13021         * ira.c : Likewise.
13022         * jump.c : Likewise.
13023         * langhooks.c : Likewise.
13024         * lcm.c : Likewise.
13025         * libfuncs.h : Likewise.
13026         * lists.c : Likewise.
13027         * loop-doloop.c : Likewise.
13028         * loop-init.c : Likewise.
13029         * loop-invariant.c : Likewise.
13030         * loop-iv.c : Likewise.
13031         * loop-unroll.c : Likewise.
13032         * lower-subreg.c : Likewise.
13033         * lra-assigns.c : Likewise.
13034         * lra-coalesce.c : Likewise.
13035         * lra-constraints.c : Likewise.
13036         * lra-eliminations.c : Likewise.
13037         * lra-lives.c : Likewise.
13038         * lra-remat.c : Likewise.
13039         * lra-spills.c : Likewise.
13040         * lra.c : Likewise.
13041         * lto-cgraph.c : Likewise.
13042         * lto-compress.c : Likewise.
13043         * lto-opts.c : Likewise.
13044         * lto-section-in.c : Likewise.
13045         * lto-section-out.c : Likewise.
13046         * lto-streamer-in.c : Likewise.
13047         * lto-streamer-out.c : Likewise.
13048         * lto-streamer.c : Likewise.
13049         * lto-streamer.h : Likewise.
13050         * mcf.c : Likewise.
13051         * mode-switching.c : Likewise.
13052         * modulo-sched.c : Likewise.
13053         * omega.c : Likewise.
13054         * omp-low.c : Likewise.
13055         * optabs.c : Likewise.
13056         * opts-global.c : Likewise.
13057         * opts.h : Likewise.
13058         * passes.c : Likewise.
13059         * plugin.c : Likewise.
13060         * postreload-gcse.c : Likewise.
13061         * postreload.c : Likewise.
13062         * predict.c : Likewise.
13063         * print-rtl.c : Likewise.
13064         * print-tree.c : Likewise.
13065         * profile.c : Likewise.
13066         * read-md.c : Likewise.
13067         * read-md.h : Likewise.
13068         * read-rtl.c : Likewise.
13069         * real.c : Likewise.
13070         * realmpfr.c : Likewise.
13071         * recog.c : Likewise.
13072         * ree.c : Likewise.
13073         * reg-stack.c : Likewise.
13074         * regcprop.c : Likewise.
13075         * reginfo.c : Likewise.
13076         * regrename.c : Likewise.
13077         * regstat.c : Likewise.
13078         * reload.c : Likewise.
13079         * reload1.c : Likewise.
13080         * reorg.c : Likewise.
13081         * resource.c : Likewise.
13082         * rtl-chkp.c : Likewise.
13083         * rtl.c : Likewise.
13084         * rtl.h : Likewise.
13085         * rtlanal.c : Likewise.
13086         * rtlhash.c : Likewise.
13087         * rtlhash.h : Likewise.
13088         * rtlhooks.c : Likewise.
13089         * sanopt.c : Likewise.
13090         * sched-deps.c : Likewise.
13091         * sched-ebb.c : Likewise.
13092         * sched-rgn.c : Likewise.
13093         * sched-vis.c : Likewise.
13094         * sdbout.c : Likewise.
13095         * sel-sched-dump.c : Likewise.
13096         * sel-sched-ir.c : Likewise.
13097         * sel-sched-ir.h : Likewise.
13098         * sel-sched.c : Likewise.
13099         * sese.c : Likewise.
13100         * shrink-wrap.c : Likewise.
13101         * shrink-wrap.h : Likewise.
13102         * simplify-rtx.c : Likewise.
13103         * stack-ptr-mod.c : Likewise.
13104         * statistics.c : Likewise.
13105         * stmt.c : Likewise.
13106         * stor-layout.c : Likewise.
13107         * store-motion.c : Likewise.
13108         * stringpool.c : Likewise.
13109         * symtab.c : Likewise.
13110         * target-globals.c : Likewise.
13111         * targhooks.c : Likewise.
13112         * tlink.c : Likewise.
13113         * toplev.c : Likewise.
13114         * tracer.c : Likewise.
13115         * trans-mem.c : Likewise.
13116         * tree-affine.c : Likewise.
13117         * tree-affine.h : Likewise.
13118         * tree-browser.c : Likewise.
13119         * tree-call-cdce.c : Likewise.
13120         * tree-cfg.c : Likewise.
13121         * tree-cfgcleanup.c : Likewise.
13122         * tree-chkp-opt.c : Likewise.
13123         * tree-chkp.c : Likewise.
13124         * tree-chrec.c : Likewise.
13125         * tree-complex.c : Likewise.
13126         * tree-data-ref.c : Likewise.
13127         * tree-dfa.c : Likewise.
13128         * tree-diagnostic.c : Likewise.
13129         * tree-dump.c : Likewise.
13130         * tree-eh.c : Likewise.
13131         * tree-eh.h : Likewise.
13132         * tree-emutls.c : Likewise.
13133         * tree-hasher.h : Likewise.
13134         * tree-if-conv.c : Likewise.
13135         * tree-inline.c : Likewise.
13136         * tree-inline.h : Likewise.
13137         * tree-into-ssa.c : Likewise.
13138         * tree-iterator.c : Likewise.
13139         * tree-loop-distribution.c : Likewise.
13140         * tree-nested.c : Likewise.
13141         * tree-nrv.c : Likewise.
13142         * tree-object-size.c : Likewise.
13143         * tree-outof-ssa.c : Likewise.
13144         * tree-parloops.c : Likewise.
13145         * tree-phinodes.c : Likewise.
13146         * tree-predcom.c : Likewise.
13147         * tree-pretty-print.c : Likewise.
13148         * tree-profile.c : Likewise.
13149         * tree-scalar-evolution.c : Likewise.
13150         * tree-sra.c : Likewise.
13151         * tree-ssa-address.c : Likewise.
13152         * tree-ssa-alias.c : Likewise.
13153         * tree-ssa-ccp.c : Likewise.
13154         * tree-ssa-coalesce.c : Likewise.
13155         * tree-ssa-copy.c : Likewise.
13156         * tree-ssa-copyrename.c : Likewise.
13157         * tree-ssa-dce.c : Likewise.
13158         * tree-ssa-dom.c : Likewise.
13159         * tree-ssa-dse.c : Likewise.
13160         * tree-ssa-forwprop.c : Likewise.
13161         * tree-ssa-ifcombine.c : Likewise.
13162         * tree-ssa-live.c : Likewise.
13163         * tree-ssa-loop-ch.c : Likewise.
13164         * tree-ssa-loop-im.c : Likewise.
13165         * tree-ssa-loop-ivcanon.c : Likewise.
13166         * tree-ssa-loop-ivopts.c : Likewise.
13167         * tree-ssa-loop-manip.c : Likewise.
13168         * tree-ssa-loop-niter.c : Likewise.
13169         * tree-ssa-loop-prefetch.c : Likewise.
13170         * tree-ssa-loop-unswitch.c : Likewise.
13171         * tree-ssa-loop.c : Likewise.
13172         * tree-ssa-math-opts.c : Likewise.
13173         * tree-ssa-operands.c : Likewise.
13174         * tree-ssa-phiopt.c : Likewise.
13175         * tree-ssa-phiprop.c : Likewise.
13176         * tree-ssa-pre.c : Likewise.
13177         * tree-ssa-propagate.c : Likewise.
13178         * tree-ssa-reassoc.c : Likewise.
13179         * tree-ssa-sccvn.c : Likewise.
13180         * tree-ssa-scopedtables.c : Likewise.
13181         * tree-ssa-sink.c : Likewise.
13182         * tree-ssa-strlen.c : Likewise.
13183         * tree-ssa-structalias.c : Likewise.
13184         * tree-ssa-tail-merge.c : Likewise.
13185         * tree-ssa-ter.c : Likewise.
13186         * tree-ssa-threadedge.c : Likewise.
13187         * tree-ssa-threadupdate.c : Likewise.
13188         * tree-ssa-uncprop.c : Likewise.
13189         * tree-ssa-uninit.c : Likewise.
13190         * tree-ssa.c : Likewise.
13191         * tree-ssanames.c : Likewise.
13192         * tree-stdarg.c : Likewise.
13193         * tree-streamer-in.c : Likewise.
13194         * tree-streamer-out.c : Likewise.
13195         * tree-streamer.c : Likewise.
13196         * tree-streamer.h : Likewise.
13197         * tree-switch-conversion.c : Likewise.
13198         * tree-tailcall.c : Likewise.
13199         * tree-vect-data-refs.c : Likewise.
13200         * tree-vect-generic.c : Likewise.
13201         * tree-vect-loop-manip.c : Likewise.
13202         * tree-vect-loop.c : Likewise.
13203         * tree-vect-patterns.c : Likewise.
13204         * tree-vect-slp.c : Likewise.
13205         * tree-vect-stmts.c : Likewise.
13206         * tree-vectorizer.c : Likewise.
13207         * tree-vectorizer.h : Likewise.
13208         * tree-vrp.c : Likewise.
13209         * tree.c : Likewise.
13210         * tsan.c : Likewise.
13211         * ubsan.c : Likewise.
13212         * valtrack.c : Likewise.
13213         * valtrack.h : Likewise.
13214         * value-prof.c : Likewise.
13215         * var-tracking.c : Likewise.
13216         * varasm.c : Likewise.
13217         * varpool.c : Likewise.
13218         * vec.c: Likewise.
13219         * vmsdbgout.c : Likewise.
13220         * vtable-verify.c : Likewise.
13221         * vtable-verify.h : Likewise.
13222         * web.c : Likewise.
13223         * wide-int.cc : Likewise.
13224         * xcoffout.c : Likewise.
13225         * config/aarch64/aarch64-builtins.c : Likewise.
13226         * config/aarch64/aarch64.c : Likewise.
13227         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
13228         * config/alpha/alpha.c : Likewise.
13229         * config/arc/arc.c : Likewise.
13230         * config/arm/aarch-common.c : Likewise.
13231         * config/arm/arm-builtins.c : Likewise.
13232         * config/arm/arm-c.c : Likewise.
13233         * config/arm/arm.c : Likewise.
13234         * config/avr/avr-c.c : Likewise.
13235         * config/avr/avr-log.c : Likewise.
13236         * config/avr/avr.c : Likewise.
13237         * config/bfin/bfin.c : Likewise.
13238         * config/c6x/c6x.c : Likewise.
13239         * config/cr16/cr16.c : Likewise.
13240         * config/cris/cris.c : Likewise.
13241         * config/darwin-c.c : Likewise.
13242         * config/darwin.c : Likewise.
13243         * config/default-c.c : Likewise.
13244         * config/epiphany/epiphany.c : Likewise.
13245         * config/epiphany/mode-switch-use.c : Likewise.
13246         * config/epiphany/resolve-sw-modes.c : Likewise.
13247         * config/fr30/fr30.c : Likewise.
13248         * config/frv/frv.c : Likewise.
13249         * config/ft32/ft32.c : Likewise.
13250         * config/glibc-c.c : Likewise.
13251         * config/h8300/h8300.c : Likewise.
13252         * config/i386/i386-c.c : Likewise.
13253         * config/i386/i386.c : Likewise.
13254         * config/i386/msformat-c.c : Likewise.
13255         * config/i386/winnt-cxx.c : Likewise.
13256         * config/i386/winnt-stubs.c : Likewise.
13257         * config/i386/winnt.c : Likewise.
13258         * config/ia64/ia64-c.c : Likewise.
13259         * config/ia64/ia64.c : Likewise.
13260         * config/iq2000/iq2000.c : Likewise.
13261         * config/lm32/lm32.c : Likewise.
13262         * config/m32c/m32c-pragma.c : Likewise.
13263         * config/m32c/m32c.c : Likewise.
13264         * config/m32r/m32r.c : Likewise.
13265         * config/m68k/m68k.c : Likewise.
13266         * config/mcore/mcore.c : Likewise.
13267         * config/mep/mep-pragma.c : Likewise.
13268         * config/mep/mep.c : Likewise.
13269         * config/microblaze/microblaze-c.c : Likewise.
13270         * config/microblaze/microblaze.c : Likewise.
13271         * config/mips/mips.c : Likewise.
13272         * config/mmix/mmix.c : Likewise.
13273         * config/mn10300/mn10300.c : Likewise.
13274         * config/moxie/moxie.c : Likewise.
13275         * config/msp430/msp430-c.c : Likewise.
13276         * config/msp430/msp430.c : Likewise.
13277         * config/nds32/nds32-cost.c : Likewise.
13278         * config/nds32/nds32-fp-as-gp.c : Likewise.
13279         * config/nds32/nds32-intrinsic.c : Likewise.
13280         * config/nds32/nds32-isr.c : Likewise.
13281         * config/nds32/nds32-md-auxiliary.c : Likewise.
13282         * config/nds32/nds32-memory-manipulation.c : Likewise.
13283         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
13284         * config/nds32/nds32-predicates.c : Likewise.
13285         * config/nds32/nds32.c : Likewise.
13286         * config/nios2/nios2.c : Likewise.
13287         * config/nvptx/nvptx.c : Likewise.
13288         * config/pa/pa.c : Likewise.
13289         * config/pdp11/pdp11.c : Likewise.
13290         * config/rl78/rl78-c.c : Likewise.
13291         * config/rl78/rl78.c : Likewise.
13292         * config/rs6000/rs6000-c.c : Likewise.
13293         * config/rs6000/rs6000.c : Likewise.
13294         * config/rx/rx.c : Likewise.
13295         * config/s390/s390-c.c : Likewise.
13296         * config/s390/s390.c : Likewise.
13297         * config/sh/sh-c.c : Likewise.
13298         * config/sh/sh-mem.cc : Likewise.
13299         * config/sh/sh.c : Likewise.
13300         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
13301         * config/sh/sh_treg_combine.cc : Likewise.
13302         * config/sol2-c.c : Likewise.
13303         * config/sol2-cxx.c : Likewise.
13304         * config/sol2-stubs.c : Likewise.
13305         * config/sol2.c : Likewise.
13306         * config/sparc/sparc-c.c : Likewise.
13307         * config/sparc/sparc.c : Likewise.
13308         * config/spu/spu-c.c : Likewise.
13309         * config/spu/spu.c : Likewise.
13310         * config/stormy16/stormy16.c : Likewise.
13311         * config/tilegx/mul-tables.c : Likewise.
13312         * config/tilegx/tilegx-c.c : Likewise.
13313         * config/tilegx/tilegx.c : Likewise.
13314         * config/tilepro/mul-tables.c : Likewise.
13315         * config/tilepro/tilepro-c.c : Likewise.
13316         * config/tilepro/tilepro.c : Likewise.
13317         * config/v850/v850-c.c : Likewise.
13318         * config/v850/v850.c : Likewise.
13319         * config/vax/vax.c : Likewise.
13320         * config/visium/visium.c : Likewise.
13321         * config/vms/vms-c.c : Likewise.
13322         * config/vms/vms.c : Likewise.
13323         * config/vxworks.c : Likewise.
13324         * config/winnt-c.c : Likewise.
13325         * config/xtensa/xtensa.c : Likewise.
13327 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
13329         PR lto/65378
13330         * ipa-utils.h (warn_types_mismatch): Update prototype.
13331         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
13332         parameters.
13333         (type_mismatch_p): New function.
13334         (warn_types_mismatch): Reorg to work better on non-C++ types.
13335         (odr_types_equivalent_p): Add loc1/loc2 parameters.
13336         (add_type_duplicate): Update.
13338 2015-06-08  Tom de Vries  <tom@codesourcery.com>
13340         PR rtl-optimization/66444
13341         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
13342         call_used_regs.
13344 2015-06-08  Richard Biener  <rguenther@suse.de>
13346         PR tree-optimization/66422
13347         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
13348         block after inserted gcc_unreachable.
13350 2015-06-08  Nick Clifton  <nickc@redhat.com>
13352         * config/rx/rx.c (rx_function_value): Do not promote vector types.
13353         (rx_promote_function_mode): Likewise.
13354         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
13356 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
13358         * genattrtab.c (insn_alternatives): Change type from int *
13359         to uint64_t *.
13360         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
13361         (get_attr_value): Change type of num_alt to uint64_t.
13362         (compute_alternative_mask): Change return type from
13363         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
13364         (make_alternative_compare, mk_attr_alt): Change argument type
13365         from int to uint64_t.
13366         (simplify_test_exp): Change type of i from int to uint64_t.
13367         Shift ((uint64_t) 1) instead of 1 up.
13368         (main): Adjust oballocvec first argument from int to uint64_t.
13369         Shift ((uint64_t) 1) instead of 1 up.
13371 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
13373         PR other/65366
13374         * gdbhooks.py: Import sys.
13375         (intptr): New function.  Replace int(...) by intptr(...).
13377 2015-06-08  Richard Biener  <rguenther@suse.de>
13379         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
13380         adjustment for gaps at the end of a SLP load group properly.
13381         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
13382         all permutations we can generate.
13383         (vect_transform_slp_perm_load): Use the correct group-size.
13385 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
13387         * genmatch.c (expr::gen_transform): For conditions, guess the type
13388         from the second operand.
13390 2015-06-08  Tom de Vries  <tom@codesourcery.com>
13392         PR tree-optimization/66442
13393         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
13394         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
13395         if the loop latch is not a singleton.  Use
13396         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
13398 2015-06-08  Marek Polacek  <polacek@redhat.com>
13400         PR sanitizer/66452
13401         * toplev.c (check_global_declaration): Don't warn about artificial
13402         decls.
13404 2015-06-08  Tom de Vries  <tom@codesourcery.com>
13406         PR tree-optimization/66436
13407         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
13408         dump file.
13409         * gimplify.c: Add tree-dump.h include.
13410         (gimplify_function_tree): Dump function to gimple dump file.
13411         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
13412         dump file.
13414 2015-06-08  Tom de Vries  <tom@codesourcery.com>
13416         PR tree-optimization/66435
13417         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
13418         function.
13420 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
13422         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
13423         of ptr_type_node to not be ptr_to_node.
13424         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
13425         TREE_TYPE of pointers.
13426         * gimple-expr.c (useless_type_conversion): Reorder the check for
13427         function pointers and TYPE_CANONICAL.
13429 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
13431         PR bootstrap/66319
13432         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
13433         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
13434         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
13435         later.
13436         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
13437         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
13438         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
13439         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
13440         and non iso if unix2003.
13442 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
13444         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
13446 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
13448         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
13449         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
13450         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
13451         except.c, final.c, function.c, gcse-common.c, genemit.c,
13452         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
13453         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
13454         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
13455         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
13456         more derived ones.
13458 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
13460         * combine.c (combine_split_insns): Remove cast.
13461         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
13462         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
13463         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
13464         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
13465         * genemit.c (gen_split): Change return type of generated functions to
13466         rtx_insn.
13467         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
13468         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
13469         gen_peephole2_* functions.
13470         (print_subroutine, main): Likewise.
13471         * recog.c (peephole2_optimize): Remove cast.
13472         (peep2_next_insn): Promote return type to rtx_insn.
13473         * recog.h (peep2_next_insn): Fix prototype.
13474         * rtl.h (try_split, split_insns): Likewise.
13476 2015-06-06  DJ Delorie  <dj@redhat.com>
13478         * config/msp430/msp430.c (msp430_asm_integer): Support addition
13479         and subtraction too.
13481 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
13483         PR target/66410
13484         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
13485         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
13486         instead of Snd.  Disparage Sid/z alternative with '^'.
13488 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
13490         * dwarf2out.c: Remove deferred_locations*.
13491         (dwarf2_debug_hooks): Add early_finish hook.
13492         Remove global_decl hook.
13493         Add early_global_decl and late_global_decl hook.
13494         New global early_dwarf.
13495         New structure set_early_dwarf.
13496         (output_die): Indicate whether a DIE was generated early
13497         when generating assembly with -dA.
13498         (struct limbo_die_struct): Document created_for field.
13499         Remove file_table_last_lookup.
13500         (remove_AT): Return TRUE if successful.
13501         (remove_child_TAG): Clear die_parent.
13502         (reparent_child): New function abstracted from...
13503         (splice_child_die): ...here.
13504         (new_die): ICE if a DIE ends up in limbo too late.
13505         (check_die): New.
13506         (defer_location): Remove.
13507         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
13508         (fill_variable_array_bounds): New.
13509         (decl_start_label): Call fill_variable_array_bounds.
13510         (gen_formal_parameter_die): Rewrite to reuse previously generated
13511         DIEs.
13512         (gen_subprogram_die): Same.
13513         (gen_variable_die): Same.
13514         (gen_const_die): Same.
13515         (gen_label_die): Same.
13516         (gen_lexical_block_die): Same.
13517         (decl_will_get_specification_p): New.
13518         (local_function_static): New.
13519         (gen_struct_or_union_type_die): Fill in variable-length fields.
13520         (gen_typedef_die): Fill in variable-length typedefs.
13521         (gen_tagged_type_die): Gracefully return on error_mark_node.
13522         Handle re-entrancy.
13523         (gen_type_die_with_usage): Handle variable-length types.
13524         Remove duplicate code for ARRAY_TYPE case.
13525         (process_scope_var): Only process imported modules during early
13526         dwarf.
13527         (dwarf2out_early_global_decl): New.
13528         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
13529         (dwarf2out_type_decl): Set early_dwarf while calling
13530         dwarf2out_decl.
13531         (dwarf2out_decl): Verify that we did not recreate a previously
13532         generated DIE.
13533         Do not return on DECL_EXTERNALs in VAR_DECLs.
13534         Abstract some code to local_function_static.
13535         (lookup_filename): Remove use of file_table_last_lookup.
13536         Gracefully exit on missing file_name.
13537         (dwarf2out_finish): Verify limbo list.
13538         Remove deferred_locations_list use.
13539         Move deferred_asm_name and limbo flushing to...
13540         (dwarf2out_early_finish): ...here.  New.
13541         (dwarf2out_c_finalize): Remove set of deferred_location_list,
13542         deferred_asm_name, and file_table_last_lookup.
13543         * cgraph.h (referred_to_p): Add default argument.
13544         * cgraphunit.c (referred_to_p): Add and handle include_self
13545         argument.
13546         (analyze_functions): Add first_time argument.
13547         Call check_global_declaration for all symbols.
13548         Call late_global_decl for nodes for moribund nodes.
13549         (finalize_compilation_unit): Add new argument to
13550         analyze_functions.
13551         Call early_global_decl for functions.
13552         Call early_finish debug hook.
13553         * dbxout.c (dbxout_early_global_decl): New.
13554         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
13555         (dbx_debug_hooks): Add new hooks.
13556         (xcoff_debug_hooks): Same.
13557         * debug.c (do_nothing_debug_hooks): Add early_finish field.
13558         Add early and late debug hooks.
13559         Remove global_decl hook.
13560         * debug.h (struct gcc_debug_hooks): Add early_finish,
13561         early_global_decl, and late_global_decl fields.
13562         Remove global_decl field.
13563         Document gcc_debug_hooks.
13564         * gengtype.c (output_typename): Remove.
13565         * godump.c (go_early_global_decl): New.
13566         (go_late_global_decl): New.
13567         (go_global_decl): Remove.
13568         (dump_go_spec_init): Remove global_decl.  Add
13569         {early,late}_global_decl.
13570         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
13571         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
13572         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
13573         (write_global_declarations): Remove.
13574         (global_decl_processing): New.
13575         * langhooks.h (struct lang_hooks_for_decls): Remove
13576         final_write_globals field.
13577         Add post_compilation_parsing_cleanups field.
13578         * passes.c (rest_of_decl_compilation): Call early_global_decl.
13579         * sdbout.c: Add early and late_global_decl hooks.  Remove
13580         sdbout_global_decl hook.
13581         Add early_finish field for sdb_debug_hooks.
13582         (sdbout_global_decl): Remove.
13583         (sdbout_early_global_decl): New.
13584         (sdbout_late_global_decl): New.
13585         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
13586         * toplev.c (check_global_declaration): Rename from
13587         check_global_declaration_1.
13588         Adapt to use symtab infrastructure.
13589         (check_global_declarations): Remove.
13590         (emit_debug_global_declarations): Remove.
13591         (compile_file): Remove call to final_write_globals langhook.
13592         Run the actual compilation process.
13593         Perform any post compilation parser cleanups.
13594         Generate late debug info.
13595         * toplev.h (check_global_declaration): New.
13596         (check_global_declaration_1): Remove.
13597         (check_global_declarations): Remove.
13598         (write_global_declarations): Remove.
13599         (emit_debug_global_declarations): Remove.
13600         (global_decl_processing): New.
13601         * tree-core.h (struct tree_block): Add DIE field.
13602         * tree.h (BLOCK_DIE): New.
13603         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
13604         throughout.
13605         (vmsdbgout_early_global_decl): New.
13606         (vmsdbgout_late_global_decl): New.
13607         Add early_finish debug hook field to vmsdbg_debug_hooks.
13608         Remove vmsdbgout_decl to vmsdbgout_function_decl.
13609         Add early and late_global_decl debug hooks.
13611 2015-06-05  Julian Brown  <julian@codesourcery.com>
13612             Sandra Loosemore  <sandra@codesourcery.com>
13614         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
13615         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
13616         to print-sysroot-suffix.sh script.
13618 2015-06-05  Tom de Vries  <tom@codesourcery.com>
13620         merge from gomp4 branch:
13621         2015-05-28  Tom de Vries  <tom@codesourcery.com>
13623         PR tree-optimization/65443
13624         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
13625         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
13626         (try_transform_to_exit_first_loop_alt): New function.
13627         (transform_to_exit_first_loop): Use
13628         try_transform_to_exit_first_loop_alt.
13630 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
13632         * builtins.c (expand_builtin_atomic_compare_exchange): Call
13633         emit_cmp_and_jump_insns with the mode of target.
13635 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13637         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
13639 2015-06-04  DJ Delorie  <dj@redhat.com>
13641         * config/msp430/msp430.md (movsi_s): New.  Special case for
13642         storing a 20-bit symbol into a 32-bit register.
13643         * config/msp430/msp430.c (msp430_subreg): Add support for it.
13644         * config/msp430/predicates.md (msp430_symbol_operand): New.
13646 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
13648         * c-family/c-common.c (noplt): New attribute.
13649         (handle_noplt_attribute): New handler.
13650         * calls.c (prepare_call_address): Check for noplt
13651         attribute.
13652         * config/i386/i386.c (ix86_expand_call): Check
13653         for noplt attribute.
13654         (ix86_nopic_noplt_attribute_p): New function.
13655         (ix86_output_call_insn): Output indirect call for non-pic
13656         no plt calls.
13657         * doc/extend.texi (noplt): Document new attribute.
13658         * doc/invoke.texi: Document new attribute.
13660 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
13662         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
13663         real.h, and fixed-value.h when included in host source files.
13664         * double-int.h: Remove redundant #includes listed above.
13665         * fixed-value.h: Likewise.
13666         * real.h: Likewise.
13667         * wide-int.h: Likewise.
13668         * inchash.h: Likewise.
13669         * rtl.h: Add some include files When included from a generator file.
13670         * target.h: Remove wide-int.h and insn-modes.h from the include list.
13671         * internal-fn.h: Don't include coretypes.h.
13672         * alias.c: Adjust includes for restructured coretypes.h.
13673         * asan.c: Likewise.
13674         * attribs.c: Likewise.
13675         * auto-inc-dec.c: Likewise.
13676         * auto-profile.c: Likewise.
13677         * bb-reorder.c: Likewise.
13678         * bt-load.c: Likewise.
13679         * builtins.c: Likewise.
13680         * caller-save.c: Likewise.
13681         * calls.c: Likewise.
13682         * ccmp.c: Likewise.
13683         * cfg.c: Likewise.
13684         * cfganal.c: Likewise.
13685         * cfgbuild.c: Likewise.
13686         * cfgcleanup.c: Likewise.
13687         * cfgexpand.c: Likewise.
13688         * cfghooks.c: Likewise.
13689         * cfgloop.c: Likewise.
13690         * cfgloop.h: Likewise.
13691         * cfgloopanal.c: Likewise.
13692         * cfgloopmanip.c: Likewise.
13693         * cfgrtl.c: Likewise.
13694         * cgraph.c: Likewise.
13695         * cgraphbuild.c: Likewise.
13696         * cgraphclones.c: Likewise.
13697         * cgraphunit.c: Likewise.
13698         * cilk-common.c: Likewise.
13699         * combine-stack-adj.c: Likewise.
13700         * combine.c: Likewise.
13701         * compare-elim.c: Likewise.
13702         * convert.c: Likewise.
13703         * coverage.c: Likewise.
13704         * cppbuiltin.c: Likewise.
13705         * cprop.c: Likewise.
13706         * cse.c: Likewise.
13707         * cselib.c: Likewise.
13708         * data-streamer-in.c: Likewise.
13709         * data-streamer-out.c: Likewise.
13710         * data-streamer.c: Likewise.
13711         * dbxout.c: Likewise.
13712         * dce.c: Likewise.
13713         * ddg.c: Likewise.
13714         * debug.c: Likewise.
13715         * df-core.c: Likewise.
13716         * df-problems.c: Likewise.
13717         * df-scan.c: Likewise.
13718         * df.h: Likewise.
13719         * dfp.c: Likewise.
13720         * dojump.c: Likewise.
13721         * dominance.c: Likewise.
13722         * domwalk.c: Likewise.
13723         * double-int.c: Likewise.
13724         * dse.c: Likewise.
13725         * dumpfile.c: Likewise.
13726         * dwarf2asm.c: Likewise.
13727         * dwarf2cfi.c: Likewise.
13728         * dwarf2out.c: Likewise.
13729         * dwarf2out.h: Likewise.
13730         * emit-rtl.c: Likewise.
13731         * et-forest.c: Likewise.
13732         * except.c: Likewise.
13733         * explow.c: Likewise.
13734         * expmed.c: Likewise.
13735         * expr.c: Likewise.
13736         * final.c: Likewise.
13737         * fixed-value.c: Likewise.
13738         * fold-const.c: Likewise.
13739         * function.c: Likewise.
13740         * fwprop.c: Likewise.
13741         * gcc-plugin.h: Likewise.
13742         * gcse.c: Likewise.
13743         * generic-match-head.c: Likewise.
13744         * ggc-page.c: Likewise.
13745         * gimple-builder.c: Likewise.
13746         * gimple-expr.c: Likewise.
13747         * gimple-fold.c: Likewise.
13748         * gimple-iterator.c: Likewise.
13749         * gimple-low.c: Likewise.
13750         * gimple-match-head.c: Likewise.
13751         * gimple-pretty-print.c: Likewise.
13752         * gimple-ssa-isolate-paths.c: Likewise.
13753         * gimple-ssa-strength-reduction.c: Likewise.
13754         * gimple-streamer-in.c: Likewise.
13755         * gimple-streamer-out.c: Likewise.
13756         * gimple-streamer.h: Likewise.
13757         * gimple-walk.c: Likewise.
13758         * gimple.c: Likewise.
13759         * gimplify-me.c: Likewise.
13760         * gimplify.c: Likewise.
13761         * godump.c: Likewise.
13762         * graph.c: Likewise.
13763         * graphite-blocking.c: Likewise.
13764         * graphite-dependences.c: Likewise.
13765         * graphite-interchange.c: Likewise.
13766         * graphite-isl-ast-to-gimple.c: Likewise.
13767         * graphite-optimize-isl.c: Likewise.
13768         * graphite-poly.c: Likewise.
13769         * graphite-scop-detection.c: Likewise.
13770         * graphite-sese-to-poly.c: Likewise.
13771         * graphite.c: Likewise.
13772         * haifa-sched.c: Likewise.
13773         * hooks.h: Likewise.
13774         * hw-doloop.c: Likewise.
13775         * ifcvt.c: Likewise.
13776         * incpath.c: Likewise.
13777         * init-regs.c: Likewise.
13778         * internal-fn.c: Likewise.
13779         * ipa-chkp.c: Likewise.
13780         * ipa-comdats.c: Likewise.
13781         * ipa-cp.c: Likewise.
13782         * ipa-devirt.c: Likewise.
13783         * ipa-icf-gimple.c: Likewise.
13784         * ipa-icf.c: Likewise.
13785         * ipa-inline-analysis.c: Likewise.
13786         * ipa-inline-transform.c: Likewise.
13787         * ipa-inline.c: Likewise.
13788         * ipa-polymorphic-call.c: Likewise.
13789         * ipa-profile.c: Likewise.
13790         * ipa-prop.c: Likewise.
13791         * ipa-pure-const.c: Likewise.
13792         * ipa-ref.c: Likewise.
13793         * ipa-reference.c: Likewise.
13794         * ipa-split.c: Likewise.
13795         * ipa-utils.c: Likewise.
13796         * ipa-visibility.c: Likewise.
13797         * ipa.c: Likewise.
13798         * ira-build.c: Likewise.
13799         * ira-color.c: Likewise.
13800         * ira-conflicts.c: Likewise.
13801         * ira-costs.c: Likewise.
13802         * ira-emit.c: Likewise.
13803         * ira-lives.c: Likewise.
13804         * ira.c: Likewise.
13805         * jump.c: Likewise.
13806         * langhooks.c: Likewise.
13807         * lcm.c: Likewise.
13808         * loop-doloop.c: Likewise.
13809         * loop-init.c: Likewise.
13810         * loop-invariant.c: Likewise.
13811         * loop-iv.c: Likewise.
13812         * loop-unroll.c: Likewise.
13813         * lower-subreg.c: Likewise.
13814         * lra-assigns.c: Likewise.
13815         * lra-coalesce.c: Likewise.
13816         * lra-constraints.c: Likewise.
13817         * lra-eliminations.c: Likewise.
13818         * lra-lives.c: Likewise.
13819         * lra-remat.c: Likewise.
13820         * lra-spills.c: Likewise.
13821         * lra.c: Likewise.
13822         * lto-cgraph.c: Likewise.
13823         * lto-compress.c: Likewise.
13824         * lto-opts.c: Likewise.
13825         * lto-section-in.c: Likewise.
13826         * lto-section-out.c: Likewise.
13827         * lto-streamer-in.c: Likewise.
13828         * lto-streamer-out.c: Likewise.
13829         * lto-streamer.c: Likewise.
13830         * mcf.c: Likewise.
13831         * mode-switching.c: Likewise.
13832         * modulo-sched.c: Likewise.
13833         * omega.c: Likewise.
13834         * omp-low.c: Likewise.
13835         * optabs.c: Likewise.
13836         * opts-global.c: Likewise.
13837         * passes.c: Likewise.
13838         * plugin.c: Likewise.
13839         * postreload-gcse.c: Likewise.
13840         * postreload.c: Likewise.
13841         * predict.c: Likewise.
13842         * print-rtl.c: Likewise.
13843         * print-tree.c: Likewise.
13844         * profile.c: Likewise.
13845         * real.c: Likewise.
13846         * realmpfr.c: Likewise.
13847         * realmpfr.h: Likewise.
13848         * recog.c: Likewise.
13849         * ree.c: Likewise.
13850         * reg-stack.c: Likewise.
13851         * regcprop.c: Likewise.
13852         * reginfo.c: Likewise.
13853         * regrename.c: Likewise.
13854         * regs.h: Likewise.
13855         * regstat.c: Likewise.
13856         * reload.c: Likewise.
13857         * reload1.c: Likewise.
13858         * reorg.c: Likewise.
13859         * resource.c: Likewise.
13860         * rtl-chkp.c: Likewise.
13861         * rtlanal.c: Likewise.
13862         * rtlhooks.c: Likewise.
13863         * sanopt.c: Likewise.
13864         * sched-deps.c: Likewise.
13865         * sched-ebb.c: Likewise.
13866         * sched-rgn.c: Likewise.
13867         * sched-vis.c: Likewise.
13868         * sdbout.c: Likewise.
13869         * sel-sched-dump.c: Likewise.
13870         * sel-sched-ir.c: Likewise.
13871         * sel-sched.c: Likewise.
13872         * sese.c: Likewise.
13873         * shrink-wrap.c: Likewise.
13874         * shrink-wrap.h: Likewise.
13875         * simplify-rtx.c: Likewise.
13876         * stack-ptr-mod.c: Likewise.
13877         * statistics.c: Likewise.
13878         * stmt.c: Likewise.
13879         * stor-layout.c: Likewise.
13880         * store-motion.c: Likewise.
13881         * stringpool.c: Likewise.
13882         * symtab.c: Likewise.
13883         * target-globals.c: Likewise.
13884         * targhooks.c: Likewise.
13885         * toplev.c: Likewise.
13886         * tracer.c: Likewise.
13887         * trans-mem.c: Likewise.
13888         * tree-affine.c: Likewise.
13889         * tree-affine.h: Likewise.
13890         * tree-browser.c: Likewise.
13891         * tree-call-cdce.c: Likewise.
13892         * tree-cfg.c: Likewise.
13893         * tree-cfgcleanup.c: Likewise.
13894         * tree-chkp-opt.c: Likewise.
13895         * tree-chkp.c: Likewise.
13896         * tree-chrec.c: Likewise.
13897         * tree-complex.c: Likewise.
13898         * tree-data-ref.c: Likewise.
13899         * tree-dfa.c: Likewise.
13900         * tree-diagnostic.c: Likewise.
13901         * tree-dump.c: Likewise.
13902         * tree-eh.c: Likewise.
13903         * tree-emutls.c: Likewise.
13904         * tree-if-conv.c: Likewise.
13905         * tree-inline.c: Likewise.
13906         * tree-into-ssa.c: Likewise.
13907         * tree-iterator.c: Likewise.
13908         * tree-loop-distribution.c: Likewise.
13909         * tree-nested.c: Likewise.
13910         * tree-nrv.c: Likewise.
13911         * tree-object-size.c: Likewise.
13912         * tree-outof-ssa.c: Likewise.
13913         * tree-parloops.c: Likewise.
13914         * tree-phinodes.c: Likewise.
13915         * tree-predcom.c: Likewise.
13916         * tree-pretty-print.c: Likewise.
13917         * tree-pretty-print.h: Likewise.
13918         * tree-profile.c: Likewise.
13919         * tree-scalar-evolution.c: Likewise.
13920         * tree-sra.c: Likewise.
13921         * tree-ssa-address.c: Likewise.
13922         * tree-ssa-alias.c: Likewise.
13923         * tree-ssa-ccp.c: Likewise.
13924         * tree-ssa-coalesce.c: Likewise.
13925         * tree-ssa-copy.c: Likewise.
13926         * tree-ssa-copyrename.c: Likewise.
13927         * tree-ssa-dce.c: Likewise.
13928         * tree-ssa-dom.c: Likewise.
13929         * tree-ssa-dse.c: Likewise.
13930         * tree-ssa-forwprop.c: Likewise.
13931         * tree-ssa-ifcombine.c: Likewise.
13932         * tree-ssa-live.c: Likewise.
13933         * tree-ssa-loop-ch.c: Likewise.
13934         * tree-ssa-loop-im.c: Likewise.
13935         * tree-ssa-loop-ivcanon.c: Likewise.
13936         * tree-ssa-loop-ivopts.c: Likewise.
13937         * tree-ssa-loop-manip.c: Likewise.
13938         * tree-ssa-loop-niter.c: Likewise.
13939         * tree-ssa-loop-prefetch.c: Likewise.
13940         * tree-ssa-loop-unswitch.c: Likewise.
13941         * tree-ssa-loop.c: Likewise.
13942         * tree-ssa-loop.h: Likewise.
13943         * tree-ssa-math-opts.c: Likewise.
13944         * tree-ssa-operands.c: Likewise.
13945         * tree-ssa-phiopt.c: Likewise.
13946         * tree-ssa-phiprop.c: Likewise.
13947         * tree-ssa-pre.c: Likewise.
13948         * tree-ssa-propagate.c: Likewise.
13949         * tree-ssa-reassoc.c: Likewise.
13950         * tree-ssa-sccvn.c: Likewise.
13951         * tree-ssa-scopedtables.c: Likewise.
13952         * tree-ssa-sink.c: Likewise.
13953         * tree-ssa-strlen.c: Likewise.
13954         * tree-ssa-structalias.c: Likewise.
13955         * tree-ssa-tail-merge.c: Likewise.
13956         * tree-ssa-ter.c: Likewise.
13957         * tree-ssa-threadedge.c: Likewise.
13958         * tree-ssa-threadupdate.c: Likewise.
13959         * tree-ssa-uncprop.c: Likewise.
13960         * tree-ssa-uninit.c: Likewise.
13961         * tree-ssa.c: Likewise.
13962         * tree-ssanames.c: Likewise.
13963         * tree-stdarg.c: Likewise.
13964         * tree-streamer-in.c: Likewise.
13965         * tree-streamer-out.c: Likewise.
13966         * tree-streamer.c: Likewise.
13967         * tree-switch-conversion.c: Likewise.
13968         * tree-tailcall.c: Likewise.
13969         * tree-vect-data-refs.c: Likewise.
13970         * tree-vect-generic.c: Likewise.
13971         * tree-vect-loop-manip.c: Likewise.
13972         * tree-vect-loop.c: Likewise.
13973         * tree-vect-patterns.c: Likewise.
13974         * tree-vect-slp.c: Likewise.
13975         * tree-vect-stmts.c: Likewise.
13976         * tree-vectorizer.c: Likewise.
13977         * tree-vrp.c: Likewise.
13978         * tree.c: Likewise.
13979         * tsan.c: Likewise.
13980         * ubsan.c: Likewise.
13981         * valtrack.c: Likewise.
13982         * value-prof.c: Likewise.
13983         * var-tracking.c: Likewise.
13984         * varasm.c: Likewise.
13985         * varpool.c: Likewise.
13986         * vmsdbgout.c: Likewise.
13987         * vtable-verify.c: Likewise.
13988         * web.c: Likewise.
13989         * wide-int-print.cc: Likewise.
13990         * wide-int-print.h: Likewise.
13991         * wide-int.cc: Likewise.
13992         * xcoffout.c: Likewise.
13993         * config/aarch64/aarch64-builtins.c: Likewise.
13994         * config/aarch64/aarch64.c: Likewise.
13995         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13996         * config/alpha/alpha.c: Likewise.
13997         * config/arc/arc.c: Likewise.
13998         * config/arm/aarch-common.c: Likewise.
13999         * config/arm/arm-builtins.c: Likewise.
14000         * config/arm/arm-c.c: Likewise.
14001         * config/arm/arm.c: Likewise.
14002         * config/avr/avr-c.c: Likewise.
14003         * config/avr/avr-log.c: Likewise.
14004         * config/avr/avr.c: Likewise.
14005         * config/bfin/bfin.c: Likewise.
14006         * config/c6x/c6x.c: Likewise.
14007         * config/cr16/cr16.c: Likewise.
14008         * config/cris/cris.c: Likewise.
14009         * config/darwin-c.c: Likewise.
14010         * config/darwin.c: Likewise.
14011         * config/default-c.c: Likewise.
14012         * config/epiphany/epiphany.c: Likewise.
14013         * config/epiphany/mode-switch-use.c: Likewise.
14014         * config/epiphany/resolve-sw-modes.c: Likewise.
14015         * config/fr30/fr30.c: Likewise.
14016         * config/frv/frv.c: Likewise.
14017         * config/ft32/ft32.c: Likewise.
14018         * config/glibc-c.c: Likewise.
14019         * config/h8300/h8300.c: Likewise.
14020         * config/i386/i386-c.c: Likewise.
14021         * config/i386/i386.c: Likewise.
14022         * config/i386/msformat-c.c: Likewise.
14023         * config/i386/winnt-cxx.c: Likewise.
14024         * config/i386/winnt-stubs.c: Likewise.
14025         * config/i386/winnt.c: Likewise.
14026         * config/ia64/ia64-c.c: Likewise.
14027         * config/ia64/ia64.c: Likewise.
14028         * config/iq2000/iq2000.c: Likewise.
14029         * config/lm32/lm32.c: Likewise.
14030         * config/m32c/m32c-pragma.c: Likewise.
14031         * config/m32c/m32c.c: Likewise.
14032         * config/m32r/m32r.c: Likewise.
14033         * config/m68k/m68k.c: Likewise.
14034         * config/mcore/mcore.c: Likewise.
14035         * config/mep/mep-pragma.c: Likewise.
14036         * config/mep/mep.c: Likewise.
14037         * config/microblaze/microblaze-c.c: Likewise.
14038         * config/microblaze/microblaze.c: Likewise.
14039         * config/mips/mips.c: Likewise.
14040         * config/mmix/mmix.c: Likewise.
14041         * config/mn10300/mn10300.c: Likewise.
14042         * config/moxie/moxie.c: Likewise.
14043         * config/msp430/msp430-c.c: Likewise.
14044         * config/msp430/msp430.c: Likewise.
14045         * config/nds32/nds32-cost.c: Likewise.
14046         * config/nds32/nds32-fp-as-gp.c: Likewise.
14047         * config/nds32/nds32-intrinsic.c: Likewise.
14048         * config/nds32/nds32-isr.c: Likewise.
14049         * config/nds32/nds32-md-auxiliary.c: Likewise.
14050         * config/nds32/nds32-memory-manipulation.c: Likewise.
14051         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14052         * config/nds32/nds32-predicates.c: Likewise.
14053         * config/nds32/nds32.c: Likewise.
14054         * config/nios2/nios2.c: Likewise.
14055         * config/nvptx/nvptx.c: Likewise.
14056         * config/pa/pa.c: Likewise.
14057         * config/pdp11/pdp11.c: Likewise.
14058         * config/rl78/rl78-c.c: Likewise.
14059         * config/rl78/rl78.c: Likewise.
14060         * config/rs6000/rs6000-c.c: Likewise.
14061         * config/rs6000/rs6000.c: Likewise.
14062         * config/rx/rx.c: Likewise.
14063         * config/s390/s390-c.c: Likewise.
14064         * config/s390/s390.c: Likewise.
14065         * config/sh/sh-c.c: Likewise.
14066         * config/sh/sh-mem.cc: Likewise.
14067         * config/sh/sh.c: Likewise.
14068         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14069         * config/sh/sh_treg_combine.cc: Likewise.
14070         * config/sol2-c.c: Likewise.
14071         * config/sol2-cxx.c: Likewise.
14072         * config/sol2-stubs.c: Likewise.
14073         * config/sol2.c: Likewise.
14074         * config/sparc/sparc-c.c: Likewise.
14075         * config/sparc/sparc.c: Likewise.
14076         * config/spu/spu-c.c: Likewise.
14077         * config/spu/spu.c: Likewise.
14078         * config/stormy16/stormy16.c: Likewise.
14079         * config/tilegx/mul-tables.c: Likewise.
14080         * config/tilegx/tilegx-c.c: Likewise.
14081         * config/tilegx/tilegx.c: Likewise.
14082         * config/tilepro/mul-tables.c: Likewise.
14083         * config/tilepro/tilepro-c.c: Likewise.
14084         * config/tilepro/tilepro.c: Likewise.
14085         * config/v850/v850-c.c: Likewise.
14086         * config/v850/v850.c: Likewise.
14087         * config/vax/vax.c: Likewise.
14088         * config/visium/visium.c: Likewise.
14089         * config/vms/vms-c.c: Likewise.
14090         * config/vms/vms.c: Likewise.
14091         * config/vxworks.c: Likewise.
14092         * config/winnt-c.c: Likewise.
14093         * config/xtensa/xtensa.c: Likewise.
14094         * common/config/bfin/bfin-common.c: Likewise.
14096 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
14098         * tree.h (tree_code_for_canonical_type_merging): New function.
14099         * tree.c (gimple_canonical_types_compatible_p): Use
14100         tree_code_for_canonical_type_merging..
14102 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14104         PR c++/66192
14105         PR target/66200
14106         * doc/tm.texi: Regenerate.
14107         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
14108         * target.def (TARGET_RELAXED_ORDERING): Likewise.
14109         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
14110         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
14111         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
14112         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
14113         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14114         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
14115         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
14117 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14119         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
14120         register fma steering pass.
14121         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
14122         AARCH64_TUNE_FMA_STEERING.
14124 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
14126         * tree.c (verify_type_variant): Verify that type and variant is
14127         compatible.
14128         (gimple_canonical_types_compatible_p): Look for main variants.
14130 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14132         * config.gcc (powerpc*-*-*): Add support for a new configure
14133         option --with-advance-toolchain=<xxx> which overrides using the
14134         default header files, libraries and dynamic linker.
14136         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
14137         specs to support the configure --with-advance-toolchain=<xxx>
14138         option.
14139         (INCLUDE_EXTRA_SPEC): Likewise.
14140         (LINK_OS_EXTRA_SPEC32): Likewise.
14141         (LINK_OK_EXTRA_SPEC64): Likewise.
14142         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
14143         (DYNAMIC_LINKER_PREFIX): Likewise.
14144         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
14145         toolchain support.
14146         (GLIBC_DYNAMIC_LINKER32): Likewise.
14147         (GLIBC_DYNAMIC_LINKER64): Likewise.
14148         (LINK_OS_LINUX_SPEC32): Likewise.
14149         (LINK_OS_LINUX_SPEC64): Likewise.
14151         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
14152         configuration option.
14154 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
14156         PR target/66275
14157         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
14158         to determine current function ABI.
14159         (ix86_function_value_regno_p): Ditto.
14161 2015-06-03  Martin Liska  <mliska@suse.cz>
14163         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
14164         * bitmap.h (struct bitmap_usage): Likewise.
14165         * ggc-common.c (struct ggc_usage): Likewise.
14166         * mem-stats.h (struct mem_location): Likewise.
14167         (struct mem_usage): Likewise.
14168         * vec.c (struct vec_usage): Likewise.
14170 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
14172         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
14173         -Bsymbolic.
14175 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
14177         * doc/plugins.texi (enum plugin_event): New event.
14178         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
14179         and PLUGIN_FINISH_FUNCTION.
14180         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
14181         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
14183 2015-06-03  Richard Biener  <rguenther@suse.de>
14185         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14186         compute GROUP_GAP for the first element.
14187         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
14188         on in-group gaps.
14190 2015-06-03  Nick Clifton  <nickc@redhat.com>
14192         * config/rl78/rl78-real.md: Add peepholes to avoid a register
14193         copy when calling a function.
14194         * config/rl78/rl78.c (need_to_save): Do not push the frame
14195         pointer in an interrupt handler prologue if it is never used.
14197 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14199         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
14201 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
14203         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
14204         reference when cloning alias node.
14206 2015-06-03  Martin Liska  <mliska@suse.cz>
14208         * alloc-pool.h (struct pool_usage): Correct space padding.
14209         * ggc-page.c (ggc_print_statistics): Align columns in a report.
14210         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
14211         * tree.c (dump_tree_statistics): Align columns in a report.
14213 2015-06-03  Martin Liska  <mliska@suse.cz>
14215         * alloc-pool.c (allocate_pool_descriptor): Remove.
14216         (struct pool_output_info): Likewise.
14217         (print_alloc_pool_statistics): Likewise.
14218         (dump_alloc_pool_statistics): Likewise.
14219         * alloc-pool.h (struct pool_usage): New struct.
14220         (pool_allocator::initialize): Change usage of memory statistics
14221         to a new interface.
14222         (pool_allocator::release): Likewise.
14223         (pool_allocator::allocate): Likewise.
14224         (pool_allocator::remove): Likewise.
14225         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
14226         for a pool allocator.
14227         * mem-stats.h (struct mem_location): Add new ctor.
14228         (struct mem_usage): Add counter for number of
14229         instances.
14230         (mem_alloc_description::register_descriptor): New overload of
14231         * mem-stats.h (mem_location::to_string): New function.
14232         * bitmap.h (struct bitmap_usage): Use this new function.
14233         * ggc-common.c (struct ggc_usage): Likewise.
14234         the function.
14236 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
14238         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
14239         of GCC_INSN_FLAGS_H block.
14241 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
14243         * explow.c (plus_constant): Update check after force_const_mem call
14244         to see if the value returned is not a NULL_RTX.
14246 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
14248         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
14249         remove instumentation thunks calling reachable functions.
14250         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
14251         * lto/lto-partition.c (privatize_symbol_name_1): New.
14252         (privatize_symbol_name): Privatize both decl and orig_decl
14253         names for instrumented functions.
14254         * cgraph.c (cgraph_node::verify_node): Add transparent
14255         alias chain check for instrumented node.
14257 2015-06-03  Marek Polacek  <polacek@redhat.com>
14259         PR c/64223
14260         PR c/29358
14261         * tree.c (attribute_value_equal): Handle attribute format.
14262         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
14264 2015-06-03  Richard Biener  <rguenther@suse.de>
14266         PR tree-optimization/63916
14267         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14268         Forward-propagate non-invariant addresses by splicing their
14269         reference ops if the result isn't going to be used by PRE.
14270         (vn_reference_lookup_3): Remove pointless assert.
14272 2015-06-03  Richard Biener  <rguenther@suse.de>
14274         PR tree-optimization/66375
14275         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
14276         add to the evolution before following SSA edges.
14278 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
14280         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
14281         (dump_use, dump_cand, find_induction_variables): Pass new argument
14282         to dump_iv.
14283         (record_use): Preserve the ssa name information in IV.
14285 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
14287         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
14288         NO_MODE_TEST.
14289         (add_mode_tests): Don't add mode tests if the predicate only
14290         accepts scalar constant integers.  Otherwise, allow the mode
14291         of "op" to be VOIDmode if the predicate does accept such integers.
14293 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
14295         PR target/66258
14296         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
14297         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
14298         (aarch64_secondary_reload): Likewise
14299         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
14300         to !TARGET_FLOAT.
14301         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
14302         Likewise.
14304 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
14305             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14307         PR target/65768
14308         * cprop.c (try_replace_reg): Check cost of constants before propagating.
14310 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14312         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
14313         provide access to the IBM extended double floating point mode if
14314         long double is IEEE 128-bit floating point.
14315         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
14316         point if long double is the IBM extended double type.
14318         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
14319         enable adding IEEE 128-bit floating point support.
14320         (-mfloat128-software): Likewise.
14321         (-mfloat128-sw): Likewise.
14323         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
14324         128-bit floating point types to occupy any register if
14325         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
14326         -mfloat128-software is enabled.
14327         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
14328         support.
14329         (rs6000_option_override_internal): Add -mfloat128-* support.
14330         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
14332         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
14333         and float128 type nodes.
14334         (ieee128_float_type_node): Likewise.
14335         (ibm128_float_type_node): Likewise.
14337 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14339         PR target/66136
14340         * config/aarch64/geniterators.sh: Rewrite in awk.
14342 2015-06-02  Martin Liska  <mliska@suse.cz>
14344         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
14345         values to avoid -Wmaybe-uninitialized errors.
14347 2015-06-02  Richard Biener  <rguenther@suse.de>
14349         PR debug/65549
14350         * dwarf2out.c (lookup_context_die): New function.
14351         (resolve_addr): Avoid forcing a full DIE for the
14352         target of a DW_TAG_GNU_call_site during late compilation.
14353         Instead create a stub DIE without a type if we have a
14354         context DIE present.
14356 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
14358         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
14360 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
14362         PR tree-optimization/48052
14363         * cfgloop.h (struct control_iv): New.
14364         (struct loop): New field control_ivs.
14365         * tree-ssa-loop-niter.c : Include "stor-layout.h".
14366         (number_of_iterations_lt): Set no_overflow information.
14367         (number_of_iterations_exit): Init control iv in niter struct.
14368         (record_control_iv): New.
14369         (estimate_numbers_of_iterations_loop): Call record_control_iv.
14370         (loop_exits_before_overflow): New.  Interface factored out of
14371         scev_probably_wraps_p.
14372         (scev_probably_wraps_p): Factor loop niter related code into
14373         loop_exits_before_overflow.
14374         (free_numbers_of_iterations_estimates_loop): Free control ivs.
14375         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
14377 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14379         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
14380         the target doesn't belong to the current function.
14382 2015-06-02  Marek Polacek  <polacek@redhat.com>
14384         PR middle-end/66345
14385         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
14386         get_maxval_strlen does not produce an INTEGER_CST.
14388 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
14390         * config/arc/constraints.md: Use lower-case names in match_code.
14391         * config/mmix/constraints.md: Likewise.
14393 2015-06-02  Richard Biener  <rguenther@suse.de>
14395         PR tree-optimization/65961
14396         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
14397         check and clarify dump message.
14398         (vect_build_slp_tree): If all children are built up from scalars
14399         build up the parent from scalars instead.
14400         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
14402 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
14404         PR other/65366
14405         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
14406         instead of print ... .
14408 2015-06-02  Alan Modra  <amodra@gmail.com>
14410         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
14411         2014-08-11 change.
14413 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
14415         PR tree-optimization/52563
14416         PR tree-optimization/62173
14417         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
14418         (alloc_iv, set_iv): New parameter.
14419         (determine_biv_step): Delete.
14420         (find_bivs): Inline original determine_biv_step.  Pass new
14421         argument to set_iv.
14422         (idx_find_step): Use no_overflow information for conversion.
14423         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
14424         resolve_mixers handle folded_casts.
14425         (instantiate_scev_name): Change bool parameter to bool pointer.
14426         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
14427         (instantiate_array_ref, instantiate_scev_not): Ditto.
14428         (instantiate_scev_3, instantiate_scev_2): Ditto.
14429         (instantiate_scev_1, instantiate_scev_r): Ditto.
14430         (instantiate_scev_convert, ): Change parameter.  Pass argument
14431         to chrec_convert_aggressive.
14432         (instantiate_scev): Change argument.
14433         (resolve_mixers): New parameter and set it.
14434         (scev_const_prop): New argument.
14435         * tree-scalar-evolution.h (resolve_mixers): New parameter.
14436         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
14437         of chrec_conert_1.
14438         (chrec_convert): New parameter.  Move definition below.
14439         (chrec_convert_aggressive): New parameter and set it.  Call
14440         convert_affine_scev.
14441         * tree-chrec.h (chrec_convert): New parameter.
14442         (chrec_convert_aggressive): Ditto.
14444 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
14446         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
14447         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
14448         the LHS of a no-return call if its type has variable size.
14449         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14450         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
14452 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
14454         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
14455         * config.in: Regenerate.
14457 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
14459         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14460         consecutive accesses within outer-loop with force_vectorize
14461         for references with zero step in inner-loop.
14463 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
14465         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
14466         rather than from gcc/build directory.
14468 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
14470         PR target/65697
14471         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
14472         for __sync memory models, emit initial loads and final barriers as
14473         appropriate.
14475 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
14477         PR target/65697
14478         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
14479         (aarch64_split_atomic_op): Check for __sync memory models, emit
14480         appropriate initial loads and final barriers.
14482 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
14484         * Makefile.in: Fix gcov dependencies that should
14485         not point to a build folder.
14487 2015-06-01  Richard Biener  <rguenther@suse.de>
14489         Revert
14490         2015-05-29  Richard Biener  <rguenther@suse.de>
14492         PR tree-optimization/66314
14493         * tree-ssa-threadupdate.c (create_block_for_threading): Add
14494         parameter that says which loop the new block belongs to.
14495         (ssa_create_duplicates): Blocks duplicated for the threaded
14496         path belong to the loop of the thread destination.
14498 2015-06-01  Martin Liska  <mliska@suse.cz>
14500         * sched-deps.c: Include pool-alloc.h before
14501         cselib.h header file is included.
14503 2015-06-01  Richard Biener  <rguenther@suse.de>
14505         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
14506         functions.
14508 2015-06-01  Martin Liska  <mliska@suse.cz>
14510         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
14511         a function local variable.
14513 2015-06-01  Martin Liska  <mliska@suse.cz>
14515         * alloc-pool.c (create_alloc_pool): Remove.
14516         (empty_alloc_pool): Likewise.
14517         (free_alloc_pool): Likewise.
14518         (free_alloc_pool_if_empty): Likewise.
14519         (pool_alloc): Likewise.
14520         (pool_free): Likewise.
14521         * alloc-pool.h: Remove old declarations.
14523 2015-06-01  Martin Liska  <mliska@suse.cz>
14525         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
14526         (ira_create_object): Likewise.
14527         (ira_create_allocno): Likewise.
14528         (ira_create_live_range): Likewise.
14529         (copy_live_range): Likewise.
14530         (ira_finish_live_range): Likewise.
14531         (ira_free_allocno_costs): Likewise.
14532         (finish_allocno): Likewise.
14533         (finish_allocnos): Likewise.
14534         (initiate_prefs): Likewise.
14535         (ira_create_pref): Likewise.
14536         (finish_pref): Likewise.
14537         (finish_prefs): Likewise.
14538         (initiate_copies): Likewise.
14539         (ira_create_copy): Likewise.
14540         (finish_copy): Likewise.
14541         (finish_copies): Likewise.
14542         (finish_prefs): Likewise.
14544 2015-06-01  Martin Liska  <mliska@suse.cz>
14546         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
14547         (allocate_and_init_ipcp_value): Likewise.
14548         (ipcp_lattice::add_value): Likewise.
14549         (merge_agg_lats_step): Likewise.
14550         (ipcp_driver): Likewise.
14551         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
14552         (ipa_free_all_structures_after_iinln): Likewise.
14553         * ipa-prop.h: Likewise.
14555 2015-06-01  Martin Liska  <mliska@suse.cz>
14557         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
14558         pool allocator.
14559         (set_hint_predicate): Likewise.
14560         (inline_summary_alloc): Likewise.
14561         (reset_inline_edge_summary): Likewise.
14562         (reset_inline_summary): Likewise.
14563         (set_cond_stmt_execution_predicate): Likewise.
14564         (set_switch_stmt_execution_predicate): Likewise.
14565         (compute_bb_predicates): Likewise.
14566         (estimate_function_body_sizes): Likewise.
14567         (inline_free_summary): Likewise.
14569 2015-06-01  Martin Liska  <mliska@suse.cz>
14571         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
14572         (ipa_edge_duplication_hook): Likewise.
14573         (ipa_free_all_structures_after_ipa_cp): Likewise.
14574         (ipa_free_all_structures_after_iinln): Likewise.
14576 2015-06-01  Martin Liska  <mliska@suse.cz>
14578         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
14579         (ipa_profile_generate_summary): Likewise.
14580         (ipa_profile_read_summary): Likewise.
14581         (ipa_profile): Likewise.
14583 2015-06-01  Martin Liska  <mliska@suse.cz>
14585         * tree-ssa-structalias.c (new_var_info): Use new type-based
14586         pool allocator.
14587         (new_constraint): Likewise.
14588         (init_alias_vars): Likewise.
14589         (delete_points_to_sets): Likewise.
14591 2015-06-01  Martin Liska  <mliska@suse.cz>
14593         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
14594         (free_strinfo): Likewise.
14595         (pass_strlen::execute): Likewise.
14597 2015-06-01  Martin Liska  <mliska@suse.cz>
14599         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
14600         pool allocator.
14601         (vn_reference_insert_pieces): Likewise.
14602         (vn_phi_insert): Likewise.
14603         (visit_reference_op_call): Likewise.
14604         (copy_phi): Likewise.
14605         (copy_reference): Likewise.
14606         (process_scc): Likewise.
14607         (allocate_vn_table): Likewise.
14608         (free_vn_table): Likewise.
14610 2015-06-01  Martin Liska  <mliska@suse.cz>
14612         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
14613         pool allocator.
14614         (add_repeat_to_ops_vec): Likewise.
14615         (get_ops): Likewise.
14616         (maybe_optimize_range_tests): Likewise.
14617         (init_reassoc): Likewise.
14618         (fini_reassoc): Likewise.
14620 2015-06-01  Martin Liska  <mliska@suse.cz>
14622         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
14623         pool allocator.
14624         (bitmap_set_new): Likewise.
14625         (get_or_alloc_expr_for_constant): Likewise.
14626         (get_or_alloc_expr_for): Likewise.
14627         (phi_translate_1): Likewise.
14628         (compute_avail): Likewise.
14629         (init_pre): Likewise.
14630         (fini_pre): Likewise.
14632 2015-06-01  Martin Liska  <mliska@suse.cz>
14634         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
14635         (delete_dep_node): Likewise.
14636         (create_deps_list): Likewise.
14637         (free_deps_list): Likewise.
14638         (sched_deps_init): Likewise.
14639         (sched_deps_finish): Likewise.
14641 2015-06-01  Martin Liska  <mliska@suse.cz>
14643         * regcprop.c (free_debug_insn_changes): Use new type-based
14644         pool allocator.
14645         (replace_oldest_value_reg): Likewise.
14646         (pass_cprop_hardreg::execute): Likewise.
14648 2015-06-01  Martin Liska  <mliska@suse.cz>
14650         * ira-build.c (initiate_cost_vectors): Use new type-based
14651         pool allocator.
14652         (ira_allocate_cost_vector): Likewise.
14653         (ira_free_cost_vector): Likewise.
14654         (finish_cost_vectors): Likewise.
14656 2015-06-01  Martin Liska  <mliska@suse.cz>
14658         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
14659         pool allocator.
14660         (free_sched_pools): Likewise.
14661         * sel-sched-ir.h (_list_alloc): Likewise.
14662         (_list_remove): Likewise.
14664 2015-06-01  Martin Liska  <mliska@suse.cz>
14666         * stmt.c (add_case_node): Use new type-based pool allocator.
14667         (expand_case): Likewise.
14668         (expand_sjlj_dispatch_table): Likewise.
14670 2015-06-01  Martin Liska  <mliska@suse.cz>
14672         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
14673         (free_bb): Likewise.
14674         (pass_cse_reciprocals::execute): Likewise.
14676 2015-06-01  Martin Liska  <mliska@suse.cz>
14678         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
14679         (sra_deinitialize) Likewise.
14680         (create_access_1) Likewise.
14681         (build_accesses_from_assign) Likewise.
14682         (create_artificial_child_access) Likewise.
14684 2015-06-01  Martin Liska  <mliska@suse.cz>
14686         * dse.c (get_group_info):Use new type-based pool allocator.
14687         (dse_step0) Likewise.
14688         (free_store_info) Likewise.
14689         (delete_dead_store_insn) Likewise.
14690         (free_read_records) Likewise.
14691         (record_store) Likewise.
14692         (replace_read) Likewise.
14693         (check_mem_read_rtx) Likewise.
14694         (scan_insn) Likewise.
14695         (dse_step1) Likewise.
14696         (dse_step7) Likewise.
14698 2015-06-01  Martin Liska  <mliska@suse.cz>
14700         * df-scan.c (struct df_scan_problem_data):Use new type-based
14701         pool allocator.
14702         (df_scan_free_internal) Likewise.
14703         (df_scan_alloc) Likewise.
14704         (df_grow_reg_info) Likewise.
14705         (df_free_ref) Likewise.
14706         (df_insn_create_insn_record) Likewise.
14707         (df_mw_hardreg_chain_delete) Likewise.
14708         (df_insn_info_delete) Likewise.
14709         (df_free_collection_rec) Likewise.
14710         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
14711         (df_sort_and_compress_mws) Likewise.
14712         (df_ref_create_structure) Likewise.
14713         (df_ref_record) Likewise.
14715 2015-06-01  Martin Liska  <mliska@suse.cz>
14717         * df-problems.c (df_chain_create):Use new type-based pool allocator.
14718         (df_chain_unlink_1) Likewise.
14719         (df_chain_unlink) Likewise.
14720         (df_chain_remove_problem) Likewise.
14721         (df_chain_alloc) Likewise.
14722         (df_chain_free) Likewise.
14723         * df.h (struct dataflow) Likewise.
14725 2015-06-01  Martin Liska  <mliska@suse.cz>
14727         * cselib.c (new_elt_list):Use new type-based pool allocator.
14728         (new_elt_loc_list) Likewise.
14729         (unchain_one_elt_list) Likewise.
14730         (unchain_one_elt_loc_list) Likewise.
14731         (unchain_one_value) Likewise.
14732         (new_cselib_val) Likewise.
14733         (cselib_init) Likewise.
14734         (cselib_finish) Likewise.
14736 2015-06-01  Martin Liska  <mliska@suse.cz>
14738         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
14739         (sh_reorg) Likewise.
14741 2015-06-01  Martin Liska  <mliska@suse.cz>
14743         * cfg.c (initialize_original_copy_tables):Use new type-based
14744         pool allocator.
14745         (free_original_copy_tables) Likewise.
14746         (copy_original_table_clear) Likewise.
14747         (copy_original_table_set) Likewise.
14749 2015-06-01  Martin Liska  <mliska@suse.cz>
14751         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
14752         pool allocator.
14753         (asan_mem_ref_new) Likewise.
14754         (free_mem_ref_resources) Likewise.
14756 2015-06-01  Martin Liska  <mliska@suse.cz>
14758         * var-tracking.c (variable_htab_free):Use new type-based
14759         pool allocator.
14760         (attrs_list_clear) Likewise.
14761         (attrs_list_insert) Likewise.
14762         (attrs_list_copy) Likewise.
14763         (shared_hash_unshare) Likewise.
14764         (shared_hash_destroy) Likewise.
14765         (unshare_variable) Likewise.
14766         (var_reg_delete_and_set) Likewise.
14767         (var_reg_delete) Likewise.
14768         (var_regno_delete) Likewise.
14769         (drop_overlapping_mem_locs) Likewise.
14770         (variable_union) Likewise.
14771         (insert_into_intersection) Likewise.
14772         (canonicalize_values_star) Likewise.
14773         (variable_merge_over_cur) Likewise.
14774         (dataflow_set_merge) Likewise.
14775         (remove_duplicate_values) Likewise.
14776         (variable_post_merge_new_vals) Likewise.
14777         (dataflow_set_preserve_mem_locs) Likewise.
14778         (dataflow_set_remove_mem_locs) Likewise.
14779         (variable_from_dropped) Likewise.
14780         (variable_was_changed) Likewise.
14781         (set_slot_part) Likewise.
14782         (clobber_slot_part) Likewise.
14783         (delete_slot_part) Likewise.
14784         (loc_exp_insert_dep) Likewise.
14785         (notify_dependents_of_changed_value) Likewise.
14786         (emit_notes_for_differences_1) Likewise.
14787         (vt_emit_notes) Likewise.
14788         (vt_initialize) Likewise.
14789         (vt_finalize) Likewise.
14791 2015-06-01  Martin Liska  <mliska@suse.cz>
14793         * ira-color.c (init_update_cost_records):Use new type-based
14794         pool allocator.
14795         (get_update_cost_record) Likewise.
14796         (free_update_cost_record_list) Likewise.
14797         (finish_update_cost_records) Likewise.
14798         (initiate_cost_update) Likewise.
14800 2015-06-01  Martin Liska  <mliska@suse.cz>
14802         * lra.c (init_insn_regs): Use new type-based pool allocator.
14803         (new_insn_reg) Likewise.
14804         (free_insn_reg) Likewise.
14805         (free_insn_regs) Likewise.
14806         (finish_insn_regs) Likewise.
14807         (init_insn_recog_data) Likewise.
14808         (init_reg_info) Likewise.
14809         (finish_reg_info) Likewise.
14810         (lra_free_copies) Likewise.
14811         (lra_create_copy) Likewise.
14812         (invalidate_insn_data_regno_info) Likewise.
14814 2015-06-01  Martin Liska  <mliska@suse.cz>
14816         * lra-lives.c (free_live_range): Use new type-based pool allocator.
14817         (free_live_range_list) Likewise.
14818         (create_live_range) Likewise.
14819         (copy_live_range) Likewise.
14820         (lra_merge_live_ranges) Likewise.
14821         (remove_some_program_points_and_update_live_ranges) Likewise.
14822         (lra_live_ranges_init) Likewise.
14823         (lra_live_ranges_finish) Likewise.
14825 2015-06-01  Martin Liska  <mliska@suse.cz>
14827         * et-forest.c (et_new_occ): Use new type-based pool allocator.
14828         (et_new_tree): Likewise.
14829         (et_free_tree): Likewise.
14830         (et_free_tree_force): Likewise.
14831         (et_free_pools): Likewise.
14832         (et_split): Likewise.
14834 2015-06-01  Martin Liska  <mliska@suse.cz>
14836         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
14837         to header file.
14838         * alloc-pool.h (pool_allocator::pool_allocator): New function.
14839         (pool_allocator::release): Likewise.
14840         (inline pool_allocator::release_if_empty): Likewise.
14841         (inline pool_allocator::~pool_allocator): Likewise.
14842         (pool_allocator::allocate): Likewise.
14843         (pool_allocator::remove): Likewise.
14845 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
14847         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
14848         in comment.
14850 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
14852         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
14853         to fusible_ops.
14854         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
14855         (arm_macro_fusion_p): Likewise.
14856         (arm_macro_fusion_pair_p): Likewise.
14858 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
14860         * config/aarch64/aarch64-protos.h (tune_params): Rename
14861         fuseable_ops to fusible_ops.
14862         * config/aarch64/aarch64.c (generic_tunings): Rename
14863         fuseable_ops to fusible_ops.
14864         (cortexa53_tunings): Likewise.
14865         (cortexa57_tunings): Likewise.
14866         (thunderx_tunings): Likewise.
14867         (xgene1_tunings): Likewise.
14868         (aarch64_macro_fusion_p): Likewise.
14869         (aarch64_macro_fusion_pair_p): Likewise.
14871 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14873         * config/s390/driver-native.c: New file.
14874         * config/s390/x-native: New file.
14875         * config.host: Add new files for s390.
14876         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
14877         and -march=native
14878         * config.gcc: Likewise.
14879         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
14880         * config/s390/s390-opts.h (enum processor_type): Ditto.
14881         * config/s390/s390.c (s390_option_override): Catch unhandled
14882         PROCESSOR_NATIVE
14884 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
14886         PR target/65527
14887         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
14888         redirection for instrumented calls.
14889         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
14890         (append_compiler_options): Append -fcheck-pointer-bounds.
14891         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
14892         (chkp_redirect_edge): New.
14893         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
14894         (chkp_redirect_edge): New.
14896 2015-06-01  Richard Biener  <rguenther@suse.de>
14898         PR tree-optimization/66280
14899         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
14900         def-use walking.
14902 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14904         * config/aarch64/aarch64.md
14905         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
14906         logic_shift_imm.
14908 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
14910         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
14911         Remove obsolete kludge.
14913 2015-06-01  Richard Biener  <rguenther@suse.de>
14915         * tree-ssa-reassoc.c (get_rank): Simplify.
14917 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14919         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
14920         * configure: Regenerated.
14922 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
14924         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
14925         issue (add space between string literal and macro).
14926         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
14928 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
14930         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
14931         implict or explicit -fPIE or -fpie.
14933 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
14935         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
14937 2015-05-28  DJ Delorie  <dj@redhat.com>
14939         * expmed.c (extract_bit_field_1): Avoid clobbering a
14940         yet-to-be-used base/index register.
14942 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
14944         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
14945         (alias_stats): Add num_universal.
14946         (alias_set_subset_of): Special case pointers; be ready for NULL
14947         children.
14948         (alias_sets_conflict_p): Special case pointers; be ready for NULL
14949         children.
14950         (init_alias_set_entry): Break out from ...
14951         (record_alias_subset): ... here; propagate new fields;
14952         allocate children only when really needed.
14953         (get_alias_set): Do less generous pointer globbing.
14954         (dump_alias_stats_in_alias_c): Update statistics.
14956 2015-05-30  Alan Modra  <amodra@gmail.com>
14958         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
14959         correct block for use of r12.
14960         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
14962 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14964         PR target/66215
14965         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
14966         with -mhotpatch=.
14968 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
14970         PR tree-optimization/66142
14971         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
14972         virtual phis that feed themselves.
14974 2015-05-29  Richard Biener  <rguenther@suse.de>
14976         PR tree-optimization/66314
14977         * tree-ssa-threadupdate.c (create_block_for_threading): Add
14978         parameter that says which loop the new block belongs to.
14979         (ssa_create_duplicates): Blocks duplicated for the threaded
14980         path belong to the loop of the thread destination.
14982 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14984         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
14985         to cleanup-saved-temps.
14986         * doc/sourcebuild.texi (Clean up generated test files): Expand
14987         introduction.
14988         (dg-keep-saved-temps): Document new proc.
14989         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
14990         cleanup-saved-temps): Remove.
14992 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
14994         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
14995         gcc_AC_CHECK_DECLS.
14996         * configure: Regenerate.
14998 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
15000         * config/nios2/linux.h (CPP_SPEC): Define.
15002 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
15004         * config/microblaze/linux.h (CPP_SPEC): Define.
15006 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
15008         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
15009         -pthread is specified.
15011 2015-05-28  Richard Biener  <rguenther@suse.de>
15013         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
15014         (vect_fixup_scalar_cycles_with_patterns): Likewise.
15015         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
15016         after pattern recog.
15017         (vect_create_epilog_for_reduction): Properly handle reductions
15018         with patterns.
15019         (vectorizable_reduction): Likewise.
15020         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
15021         reduction chains.
15022         (vect_get_constant_vectors): Create the correct number of
15023         initial values for reductions.
15024         (vect_schedule_slp_instance): Handle reduction chains that are
15025         type changing properly.
15026         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
15028 2015-05-28  Richard Biener  <rguenther@suse.de>
15030         PR tree-optimization/66142
15031         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
15032         values better in memcpy destination handling.  Handle non-aliasing
15033         we discover here.
15035 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
15037         PR target/63810
15038         * config/darwin-c.c (version_components): New global enum.
15039         (parse_version, version_as_legacy_macro)
15040         (version_as_modern_macro, macosx_version_as_macro): New functions.
15041         (version_as_macro): Remove.
15042         (darwin_cpp_builtins): Use new function.
15044 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
15046         * builtins.c (expand_builtin_acc_on_device): Mark parameters
15047         with ATTRIBUTE_UNUSED.
15049 2015-05-28  Julian Brown  <julian@codesourcery.com>
15051         PR libgomp/65742
15053         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
15054         sequence for !ACCEL_COMPILER.
15056 2015-05-28  Nick Clifton  <nickc@redhat.com>
15058         * config/rx/rx.c (push_regs): New function.  Extracts code from...
15059         (rx_expand_prologue): ... here.  Use push_regs to push even small
15060         spans of registers.
15061         (pop_regs): New function.
15062         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
15063         registers.
15065 2015-05-28  Richard Biener  <rguenther@suse.de>
15067         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
15068         member.
15069         (SLP_INSTANCE_BODY_COST_VEC): Remove.
15070         (vect_update_slp_costs_according_to_vf): Likewise.
15071         (vect_slp_analyze_operations): Update prototype.
15072         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
15073         vect_update_slp_costs_according_to_vf, adjust.
15074         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
15075         (vect_analyze_slp_cost_1): Likewise.
15076         (vect_analyze_slp_cost): Likewise.  Properly deal with
15077         widening reduction ops.  Commit body costs.
15078         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
15079         cost for loops from here.
15080         (vect_slp_analyze_operations): But do it from here when
15081         the vectorization factor is known and stmts are analyzed.
15082         (vect_bb_vectorization_profitable_p): Simplify.
15083         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
15084         (vect_update_slp_costs_according_to_vf): Remove.
15086 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
15087             H.J. Lu  <hongjiu.lu@intel.com>
15089         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
15090         (BUILD_CFLAGS): Likewise.
15091         (BUILD_CXXFLAGS): Likewise.
15092         (LINKER): Add @NO_PIE_FLAG@.
15093         (BUILD_LDFLAGS): Likewise.
15094         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
15095         --enable-default-pie.
15096         * common.opt (fPIE): Initialize to -1.
15097         (fpie): Likewise.
15098         (no-pie): New option.
15099         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
15100         * configure.ac: Add --enable-default-pie.
15101         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
15102         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
15103         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
15104         * gcc.c (NO_PIE_SPEC): New.
15105         (PIE_SPEC): Likewise.
15106         (NO_FPIE1_SPEC): Likewise.
15107         (FPIE1_SPEC): Likewise.
15108         (NO_FPIE2_SPEC): Likewise.
15109         (FPIE2_SPEC): Likewise.
15110         (NO_FPIE2_SPEC): Likewise.
15111         (FPIE_SPEC): Likewise.
15112         (NO_FPIE_SPEC): Likewise.
15113         (NO_FPIC1_SPEC): Likewise.
15114         (FPIC1_SPEC): Likewise.
15115         (NO_FPIC2_SPEC): Likewise.
15116         (FPIC2_SPEC): Likewise.
15117         (NO_FPIC2_SPEC): Likewise.
15118         (FPIC_SPEC): Likewise.
15119         (NO_FPIC_SPEC): Likewise.
15120         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
15121         (FPIE1_OR_FPIC1_SPEC): Likewise.
15122         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
15123         (FPIE2_OR_FPIC2_SPEC): Likewise.
15124         (NO_FPIE_AND_FPIC_SPEC): Likewise.
15125         (FPIE_OR_FPIC_SPEC): Likewise.
15126         (LD_PIE_SPEC): Likewise.
15127         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
15128         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
15129         * config/darwin.h (PIE_SPEC): Renamed to ...
15130         (DARWIN_PIE_SPEC): This.
15131         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
15132         * config/darwin9.h (PIE_SPEC): Renamed to ...
15133         (DARWIN_PIE_SPEC): This.
15134         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
15135         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15136         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
15137         FPIE2_OR_FPIC2_SPEC.
15138         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
15139         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
15140         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
15141         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15142         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15143         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
15144         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
15145         * config/m32r/m32r.h (ASM_SPEC): Likewise.
15146         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
15147         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15148         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
15149         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
15150         * config/sparc/linux.h (ASM_SPEC): Likewise.
15151         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15152         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
15153         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
15154         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15155         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15156         * config/sparc/sparc.h (ASM_SPEC): Likewise.
15157         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
15158         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
15159         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
15160         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
15161         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
15162         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
15163         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
15164         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
15165         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
15166         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
15167         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
15168         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
15169         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15170         * config/vax/linux.h (ASM_SPEC): Likewise.
15171         * doc/install.texi: Document --enable-default-pie.
15172         * doc/invoke.texi: Document -no-pie.
15173         * config.in: Regenerated.
15174         * configure: Likewise.
15176 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15178         PR rtl-optimization/66168
15179         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
15180         can_move_invariant_reg.
15182 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
15184         PR target/66148
15185         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
15186         REG_EQUAL note when doing insert.
15188         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
15189         instead of "%d" for 'o' operand.
15191 2015-05-27  Nathan Sidwell  <nathan@acm.org>
15193         PR c++/66270
15194         * tree.c (build_pointer_type_for_mode): Canonical type does not
15195         inherit can_alias_all.
15196         (build_reference_type_for_mode): Likewise.
15198 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15200         * expr.h (array_at_struct_end_p): Move to...
15201         (array_ref_element_size): Likewise.
15202         (component_ref_field_offset): Likewise.
15203         * tree.h (array_ref_element_size): ...here.
15204         (array_at_struct_end_p): Likewise.
15205         (component_ref_field_offset): Likewise.
15206         * expr.c (array_ref_element_size): Move to...
15207         (array_ref_low_bound): Likewise.
15208         (array_at_struct_end_p): Likewise.
15209         (array_ref_up_bound): Likewise.
15210         (component_ref_field_offset): Likewise.
15211         * tree.c (array_ref_element_size): ...here.
15212         (array_ref_low_bound): Likewise.
15213         (array_ref_up_bound): Likewise.
15214         (array_at_struct_end_p): Likewise.
15215         (component_ref_field_offset): Likewise.
15217 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
15218             Szabolcs Nagy  <szabolcs.nagy@arm.com>
15220         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
15222 2015-05-27  Jason Merrill  <jason@redhat.com>
15224         PR bootstrap/66304
15225         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
15226         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
15227         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
15229 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
15231         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
15232         is true.
15234         * statistics.c (statistics_fini_pass): Print pass name.
15236 2015-05-27  Richard Biener  <rguenther@suse.de>
15238         PR tree-optimization/66272
15239         Revert parts of
15240         2014-08-15  Richard Biener  <rguenther@suse.de>
15242         PR tree-optimization/62031
15243         * tree-data-ref.c (dr_analyze_indices): Do not set
15244         DR_UNCONSTRAINED_BASE.
15245         (dr_may_alias_p): All indirect accesses have to go the
15246         formerly DR_UNCONSTRAINED_BASE path.
15247         * tree-data-ref.h (struct indices): Remove
15248         unconstrained_base member.
15249         (DR_UNCONSTRAINED_BASE): Remove.
15251 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
15253         * dwarf2out.c: Remove block_map.
15254         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
15255         (gen_lexical_block_die): Same.
15256         (dwarf2out_function_decl): Remove block_map use.
15257         (dwarf2out_c_finalize): Same.
15258         * tree-core.h (struct tree_block): Add die field.
15259         * tree.h (BLOCK_DIE): New.
15261 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15263         PR target/65358
15264         * expr.c (memory_load_overlap): New function.
15265         (emit_push_insn): When pushing partial args to the stack would
15266         clobber the register part load the overlapping part into a pseudo
15267         and put it into the hard reg after pushing.  Change return type
15268         to bool.  Add bool argument.
15269         * expr.h (emit_push_insn): Change return type to bool.
15270         Add bool argument.
15271         * calls.c (expand_call): Cancel sibcall optimization when encountering
15272         partial argument on targets with ARGS_GROW_DOWNWARD and
15273         !STACK_GROWS_DOWNWARD.
15274         (emit_library_call_value_1): Update callsite of emit_push_insn.
15275         (store_one_arg): Likewise.
15277 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
15279         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
15281 2015-05-27  Martin Liska  <mliska@suse.cz>
15283         * Makefile.in: Add additional dependencies related to memory report
15284         enhancement.
15285         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
15286         * bitmap.c (struct bitmap_descriptor_d): Remove.
15287         (struct loc): Likewise.
15288         (struct bitmap_desc_hasher): Likewise.
15289         (bitmap_desc_hasher::hash): Likewise.
15290         (bitmap_desc_hasher::equal): Likewise.
15291         (get_bitmap_descriptor): Likewise.
15292         (bitmap_register): User new memory descriptor API.
15293         (register_overhead): Likewise.
15294         (bitmap_find_bit): Register nsearches and search_iter statistics.
15295         (struct bitmap_output_info): Remove.
15296         (print_statistics): Likewise.
15297         (dump_bitmap_statistics): Use new memory descriptor.
15298         * bitmap.h (struct bitmap_usage): New class.
15299         * genmatch.c: Extend header file inclusion.
15300         * genpreds.c: Likewise.
15301         * ggc-common.c (struct ggc_usage): New class.
15302         (struct ggc_loc_desc_hasher): Remove.
15303         (ggc_loc_desc_hasher::hash): Likewise.
15304         (ggc_loc_desc_hasher::equal): Likewise.
15305         (struct ggc_ptr_hash_entry): Likewise.
15306         (struct ptr_hash_hasher): Likewise.
15307         (ptr_hash_hasher::hash): Likewise.
15308         (ptr_hash_hasher::equal): Likewise.
15309         (make_loc_descriptor): Likewise.
15310         (ggc_prune_ptr): Likewise.
15311         (dump_ggc_loc_statistics): Use new memory descriptor.
15312         (ggc_record_overhead): Likewise.
15313         (ggc_free_overhead): Likewise.
15314         (final_cmp_statistic): Remove.
15315         (cmp_statistic): Likewise.
15316         (ggc_add_statistics): Liekwise.
15317         (ggc_prune_overhead_list): Likewise.
15318         * hash-map-traits.h: New file.
15319         * hash-map.h (struct default_hashmap_traits): Move the traits to a
15320         separate header file.
15321         * hash-set.h: Pass memory statistics info to ctor.
15322         * hash-table.c (void dump_hash_table_loc_statistics): New function.
15323         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
15324         (hash_table::~hash_table): Register memory release operation.
15325         (hash_table::alloc_entries): Handle memory allocation operation.
15326         (hash_table::expand): Likewise.
15327         * inchash.c (iterative_hash_hashval_t): Move implementation to header
15328         file.
15329         (iterative_hash_host_wide_int): Likewise.
15330         * inchash.h (class hash): Likewise.
15331         * mem-stats-traits.h: New file.
15332         * mem-stats.h: New file.
15333         (mem_location): Add new class.
15334         (mem_usage): Likewise.
15335         (mem_alloc_description): Likewise.
15336         * sese.c: Add new header file inclusision.
15337         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
15338         and hash_set.
15339         * tree-sra.c: Add new header file inclusision.
15340         * vec.c (struct vec_descriptor): Remove.
15341         (hash_descriptor): Likewise.
15342         (struct vec_usage): Likewise.
15343         (struct ptr_hash_entry): Likewise.
15344         (hash_ptr): Likewise.
15345         (eq_ptr): Likewise.
15346         (vec_prefix::register_overhead): Use new memory descriptor API.
15347         (vec_prefix::release_overhead): Likewise.
15348         (add_statistics): Remove.
15349         (dump_vec_loc_statistics): Use new memory descriptor API.
15350         * vec.h (struct vec_prefix): Likewise.
15351         (va_heap::reserve): Likewise.
15352         (va_heap::release): Likewise.
15353         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
15355 2015-05-27  Richard Biener  <rguenther@suse.de>
15357         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
15358         earlier and remove ??? comment.
15359         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
15360         and got called from loop analysis bail out.  Always pass the SLP
15361         node to the vectorizable_* functions.
15362         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
15363         the premature SLP check here.
15364         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
15365         detected SLP stmts.
15366         (vect_detect_hybrid_slp_1): Likewise.
15368 2015-05-26  Jeff Law  <law@redhat.com>
15370         * combine.c (find_split_point): Verify that the shift count is a
15371         constant when choosing (plus (ashift ...)) as a split point.
15373         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
15374         No functional changes.
15376 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
15378         * ipa-polymorphic-call.c
15379         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
15380         case when call target is already known.
15382 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
15384         PR target/65979
15385         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
15386         take into account the case that operands[1] and operands[2]
15387         are the same register.
15389 2015-05-26  Michael Matz  <matz@suse.de>
15391         PR middle-end/66251
15393         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
15394         stores.
15395         (vect_create_vectorized_demotion_stmts): Always set
15396         STMT_VINFO_VEC_STMT, also with SLP.
15397         (vectorizable_store): Handle strided group stores.
15399 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15401         PR target/66049
15402         * config/aarch64/aarch64.md
15403         (*adds_shift_imm_<mode>):  New pattern.
15404         (*subs_shift_imm_<mode>):  Likewise.
15405         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
15406         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
15407         (*add_uxt<mode>_shift2): Likewise.
15408         (*add_uxtsi_shift2_uxtw): Likewise.
15409         (*sub_uxt<mode>_shift2): Likewise.
15410         (*sub_uxtsi_shift2_uxtw): Likewise.
15412 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
15414         * config/rs6000/constraints.md (Y, U): Use match_test.
15416 2015-05-26  Christian Bruel  <christian.bruel@st.com>
15418         PR target/52144
15419         * config/arm/arm.c (arm_option_check_internal)
15420         (arm_option_params_internal): Check opts->target_flags to set macros.
15421         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15422         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
15423         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15424         (builtin_define): Replaced with def_or_undef_macro.
15425         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
15426         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
15427         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
15428         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
15429         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
15430         (TARGET_ARM_FEATURE_LDREX_P)
15431         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
15432         * config/arm/arm-c.c (def_or_undef_macro): New function.
15433         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
15435 2015-05-26  Christian Bruel  <christian.bruel@st.com>
15437         * c-common.h (builtin_define_with_int_value)
15438         (builtin_define_type_sizeof): Declare.
15439         * c-cppbuiltin.c (builtin_define_with_int_value)
15440         (builtin_define_type_sizeof): Externalize.
15441         (builtin_define_std): Cleanup declaration.
15442         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
15443         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
15444         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
15445         (builtin_define, builtin_assert): New macros.
15447 2015-05-26  Richard Biener  <rguenther@suse.de>
15449         PR tree-optimization/66142
15450         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
15451         MEM_REFs for the same base address.
15453 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15455         PR ipa/66181
15456         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
15458 2015-05-26  Jason Merrill  <jason@redhat.com>
15460         * configure.ac: Set CXXFLAGS for ISL test.
15461         * configure: Regenerate.
15463         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
15464         strstr and basename.
15465         * configure: Regenerate.
15467 2015-05-26  Richard Biener  <rguenther@suse.de>
15469         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
15470         X % C -> X & (C - 1) for C being a power-of two to ...
15471         * match.pd: ... patterns.
15473 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
15475         * match.pd (swapped_tcc_comparison): New operator list.
15476         (-A CMP -B): New simplification.
15477         * fold-const.c (fold_comparison): Remove corresponding code.
15479 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
15481         * caller-save.c (init_caller_save): Base temporary register numbers
15482         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
15483         * cfgloopanal.c (init_set_costs): Likewise.
15484         * dojump.c (prefer_and_bit_test): Likewise.
15485         * expr.c (init_expr_target): Likewise.
15486         * ira.c (setup_prohibited_mode_move_regs): Likewise.
15487         * lower-subreg.c (init_lower_subreg): Likewise.
15488         * postreload.c (reload_cse_regs_1): Likewise.
15490 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
15492         * gensupport.h (compute_test_codes): Declare.
15493         * gensupport.c (compute_predicate_codes): Rename to...
15494         (compute_test_codes): ...this.  Generalize error message.
15495         (process_define_predicate): Update accordingly.
15496         * genpreds.c (compute_maybe_allows): Delete.
15497         (add_constraint): Use compute_test_codes to determine whether
15498         something can accept a SUBREG, REG or MEM.
15500 2015-05-26  Torvald Riegel  <triegel@redhat.com>
15502         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
15503         'memory model' to align with C++11; fix description of memory orders;
15504         fix a few typos.
15506 2015-05-26  Richard Biener  <rguenther@suse.de>
15508         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
15509         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
15510         detect whether we apply SLP.  Remove call to
15511         vect_update_slp_costs_according_to_vf.
15512         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
15513         vect_update_slp_costs_according_to_vf from here.  Dispatch
15514         to vect_slp_analyze_operations to analyze SLP stmts.
15515         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
15516         unused bb_vec_info parameter, adjust assert.
15517         (vect_slp_analyze_operations): Pass in the slp instance tree
15518         instead of bb_vec_info.
15519         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
15520         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
15522 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
15524         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
15525         Q_REGS.  Expand comment.
15526         (REG_CLASS_NAMES): Ditto.
15527         (REG_CLASS_CONTENTS): Ditto.
15529 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
15531         PR target/66274
15532         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
15533         when LEGACY_INT_REGNO_P is processed.
15535 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
15537         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
15539 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15541         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
15542         register if not marked dead/unused, before return.
15544 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
15546         PR lto/66180
15547         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
15548         is set; check for assembler name at LTO time.
15549         (type_in_anonymous_namespace): Remove hacks, check that all
15550         anonymous types are called "<anon>"
15551         (odr_type_p): Simplify; add check for "<anon>"
15552         (odr_subtypes_equivalent): Add odr_type_p check.
15553         * tree.c (need_assembler_name_p): Even anonymous namespace needs
15554         assembler name.
15556 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
15558         * ipa-utils.h (method_class_type): Remove.
15559         * cgraphunit.c (walk_polymorphic_call_targets): Use
15560         TYPE_METHOD_BASETYPE.
15561         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
15562         on main variants only.
15563         (method_class_type): Remove.
15564         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
15565         (build_type_inheritance_graph): Likewise.
15566         * ipa-icf.c (sem_function::equals_wpa): Likewise.
15567         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
15568         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
15570 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
15572         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
15573         is_typedef_decl, typedef_variant_p): Constify.
15574         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
15575         is_typedef_decl, typedef_variant_p): Constify.
15577 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15579         * defaults.h (gen_tablejump): New function.
15580         (HAVE_tablejump): Add default value.
15581         * expr.c: Adjust.
15582         * stmt.c: Likewise.
15584 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15586         * defaults.h (gen_store_multiple): New function.
15587         (HAVE_store_multiple): Add default value.
15588         * expr.c (move_block_from_reg): Adjust.
15590 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15592         * defaults.h (gen_load_multiple): New function.
15593         (HAVE_load_multiple): Add default value.
15594         * expr.c (move_block_to_reg): Adjust.
15596 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15598         * defaults.h (gen_mem_signal_fence): New function.
15599         (HAVE_mem_signal_fence): Add default value.
15600         * optabs.c: Adjust.
15602 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15604         * defaults.h (gen_memory_barrier): New function.
15605         (HAVE_memory_barrier): Add default value.
15606         * optabs.c: Adjust.
15608 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15610         * defaults.h (gen_mem_thread_fence): New function.
15611         (HAVE_mem_thread_fence): Add default definition.
15612         * optabs.c: Adjust.
15614 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15616         * combine.c (find_split_point): Check the value of HAVE_lo_sum
15617         instead of if it is defined.
15618         (combine_simplify_rtx): Likewise.
15619         * lra-constraints.c (process_address_1): Likewise.
15620         * config/darwin.c: Adjust.
15621         * genconfig.c (main): Always define HAVE_lo_sum.
15623 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15625         * genmatch.c (parser::parse_operation): Reject expanding
15626         operator-list inside 'for'.
15628 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15630         * genmatch.c (parser::parse_for): Reject iterator if used as
15631         operator-list.
15633 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15635         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
15636         after end of id-list.
15638 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
15640         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
15641         we do not try to compute canonical type for type that does not need
15642         alias set.
15643         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
15644         FUNCITON_TYPE.
15645         * tree.h (type_with_alias_set_p): New.
15647 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
15649         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
15650         function attributes.
15651         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
15653 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
15655         * Makefile.in (check_gcc_parallelize): Delete.
15656         (lang_checks_parallelized): Update comment.
15658 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
15660         PR rtl-optimization/66237
15661         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
15662         location of an "as_a" cast.
15664 2015-05-22  Jeff Law  <law@redhat.com>
15666         * config/pa/pa.md (non-canonical shift-add insns): Remove.
15667         (peepholes with non-canonical RTL sources): Remove.
15668         (peepholes for indexed stores of FP regs in integer modes): Match and
15669         generate canonical RTL.
15671 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
15673         PR tree-optimization/63387
15674         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
15675         ((x ord x) & (y ord y) -> (x ord y),
15676         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
15677         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
15678         vectors like scalars.
15680 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
15682         * convert.c (convert_to_integer, convert_to_vector): Include the
15683         types in the error message.
15685 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
15687         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
15688         simplifications.
15690 2015-05-22  Jeff Law  <law@redhat.com>
15692         * config/pa/pa.md (integer_indexed_store splitters): Use
15693         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
15694         insns -- adjusting the constant 2nd operand accordingly.
15696         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
15697         (plus (ashift X log2) Y) if it is a split point.
15699         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
15700         out of hppa_legitimize_address to handle both forms of a multiply
15701         by 2, 4 or 8.
15702         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
15703         Always generate the ASHIFT variant as the result is not directly
15704         used in a MEM.  Update comments and refactor slightly to improve
15705         readability.
15707 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15709         PR target/65491
15710         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
15711         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
15712         (aarch64_composite_type_p): Return false if given type and mode are
15713         for a short vector.
15715 2015-05-22  Richard Biener  <rguenther@suse.de>
15717         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
15718         member.
15719         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
15720         patterns when determining whether SLP is pure.
15721         (vect_is_slp_reduction): Remove check for pattern stmts.
15722         (vect_is_simple_reduction_1): Remove dead code.
15723         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
15724         (vect_get_and_check_slp_defs): Pass in the stmt number.
15725         Allow the first def in a reduction to be not a pattern stmt when
15726         the rest of the stmts def are patterns.
15727         (vect_build_slp_tree_1): Allow tcc_expression codes like
15728         SAD_EXPR and DOT_PROD_EXPR.
15729         (vect_build_slp_tree): Adjust.
15730         (vect_analyze_slp): Refactor and move BB vect error message ...
15731         (vect_slp_analyze_bb_1): ... here.
15733 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
15735         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
15736         for CSWTCH temporary.
15738 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15740         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
15741         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
15742         unknown unspecs.
15744 2015-05-22  Richard Biener  <rguenther@suse.de>
15746         PR tree-optimization/66251
15747         * tree-vect-stmts.c (vectorizable_conversion): Properly
15748         set STMT_VINFO_VEC_STMT even for the SLP case.
15750 2015-05-22  Marek Polacek  <polacek@redhat.com>
15752         * doc/extend.texi: Use @pxref instead of @xref.
15754 2015-05-22  hiraditya  <hiraditya@msn.com>
15756         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
15757         redundant if.
15759 2015-05-22  Richard Biener  <rguenther@suse.de>
15761         PR tree-optimization/65701
15762         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15763         Move peeling cost models into one place.  Peel for alignment
15764         for single loads only if an aligned load is cheaper than
15765         an unaligned load.
15767 2015-05-22  Marek Polacek  <polacek@redhat.com>
15769         PR c/47043
15770         * doc/extend.texi (Enumerator Attributes): New section.
15771         Document syntax of enumerator attributes.
15773 2015-05-22  Richard Biener  <rguenther@suse.de>
15775         * tree-vect-loop.c (get_reduction_op): New function.
15776         (vect_model_reduction_cost): Use it, add reduc_index parameter.
15777         Make ready for BB reductions.
15778         (vect_create_epilog_for_reduction): Use get_reduction_op.
15779         (vectorizable_reduction): Init reduc_index to a valid value.
15780         Adjust vect_model_reduction_cost call.
15781         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
15782         operand for reduction defaults.  Add SAD_EXPR support.
15783         Assert we have a neutral op for SLP reductions.
15784         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
15785         walking pattern stmt ops only recurse to SSA names.
15787 2015-05-22  Richard Biener  <rguenther@suse.de>
15789         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
15790         assert with guard, remove check on detected reduction.
15791         (vect_recog_sad_pattern): Likewise.
15792         (vect_recog_widen_sum_pattern): Likewise.
15794 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15796         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
15797         __always_inline__ attribute.
15798         (vaesdq_u8): Likewise.
15799         (vaesmcq_u8): Likewise.
15800         (vaesimcq_u8): Likewise.
15801         (vsha1cq_u32): Likewise.
15802         (vsha1mq_u32): Likewise.
15803         (vsha1pq_u32): Likewise.
15804         (vsha1h_u32): Likewise.
15805         (vsha1su0q_u32): Likewise.
15806         (vsha1su1q_u32): Likewise.
15807         (vsha256hq_u32): Likewise.
15808         (vsha256h2q_u32): Likewise.
15809         (vsha256su0q_u32): Likewise.
15810         (vsha256su1q_u32): Likewise.
15811         (vmull_p64): Likewise.
15812         (vmull_high_p64): Likewise.
15814 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15816         * final.c (final_scan_insn): Don't check HAVE_peephole with the
15817         preprocessor.
15818         * output.h: Likewise.
15819         * genconfig.c (main): Alwways define HAVE_peephole.
15820         * genpeep.c: Don't emit checks of HAVE_peephole.
15822 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15824         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
15825         check HAVE_conditional_move with the preprocessor.
15827 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15829         * genconfig.c (main): Always define HAVE_conditional_move.
15830         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
15831         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
15832         is defined.
15834 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15836         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
15837         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
15838         and FRAME_POINTER_REGNUM with the preprocessor.
15840 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15842         * defaults.h: Add default for STACK_PUSH_CODE.
15843         * expr.c: Don't redefine STACK_PUSH_CODE.
15844         * recog.c: Likewise.
15846 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15848         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
15849         sched-deps.c: Use if instead of preprocessor checks with
15850         STACK_GROWS_DOWNWARD.
15852 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15854         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
15855         is defined.
15856         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
15857         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
15858         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
15859         * doc/tm.texi: Regenerate.
15861 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15863         PR target/66232
15864         * config/i386/constraints.md (Bg): New constraint for GOT memory
15865         operand.
15866         * config/i386/i386.md (*call_got_x32): New pattern.
15867         (*call_value_got_x32): Likewise.
15868         * config/i386/predicates.md (GOT_memory_operand): New predicate.
15870 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
15872         PR tree-optimization/66233
15873         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
15874         Simplify.
15876 2015-05-21  Jeff Law  <law@redhat.com>
15878         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
15879         than MULT for shadd sequences.
15881 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
15883         * alias.c (alias_stats): New static var.
15884         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
15885         (dump_alias_stats_in_alias_c): New function.
15886         * alias.h (dump_alias_stats_in_alias_c): Declare.
15887         * tree-ssa-alias.c (dump_alias_stats): Call it.
15889 2015-05-08  Michael Matz  <matz@suse.de>
15891         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
15892         to strided_p.
15893         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
15894         (STMT_VINFO_STRIDED_P): ... this.
15895         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
15896         (vect_verify_datarefs_alignment): Likewise.
15897         (vect_enhance_data_refs_alignment): Likewise.
15898         (vect_analyze_data_ref_access): Likewise.
15899         (vect_analyze_data_refs): Accept strided stores.
15900         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
15901         (vect_model_load_cost): Adjust for macro rename.
15902         (vectorizable_mask_load_store): Likewise.
15903         (vectorizable_load): Likewise.
15904         (vectorizable_store): Open code strided stores.
15906 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15908         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
15909         Document sqrt_insn.
15911 2015-05-21  Richard Biener  <rguenther@suse.de>
15913         PR c++/66211
15914         * match.pd: Guard pattern optimzing (int)(float)int
15915         conversions to apply only on GIMPLE.
15917 2015-05-21  Jeff Law  <law@redhat.com>
15919         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
15920         multiply-accumulate/shift-add insn generation.
15922 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
15924         PR target/54236
15925         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
15926         operands[1] are the same.
15928 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
15930         PR middle-end/66221
15931         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
15932         build_distinct_type_copy to copy bounds.
15934 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
15936         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
15937         Change to unsigned int.
15939 2015-05-20  Jeff Law  <law@redhat.com>
15941         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
15942         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
15943         (pa_shadd_constant_p): Allow constants for shadd insns rather
15944         than valid scaling constants for memory addresses.
15945         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
15946         * config/pa/predicates.md (mem_shadd_operand): New predicate.
15947         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
15948         (shift-add insns using ASHIFT): New patterns.
15950 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
15952         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
15953         feasible.
15954         (fix_up_fall_thru_edges): Likewise.
15955         (fix_crossing_conditional_branches): Likewise. Promote jump targets
15956         from to rtx_insn to rtx_code_label where feasible.
15957         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
15958         gen_move_insn (returned type changed to rtx_insn).
15959         * builtins.c (expand_errno_check): Fix arguments of
15960         do_compare_rtx_and_jump (now expects rtx_code_label).
15961         (expand_builtin_acc_on_device): Likewise.
15962         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
15963         invert_jump (now exprects rtx_jump_insn).
15964         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
15965         (construct_init_block): Use rtx_code_label.
15966         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
15967         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
15968         calling redirect_jump.
15969         (patch_jump_insn): Likewise.
15970         (redirect_branch_edge): Likewise.
15971         (force_nonfallthru_and_redirect): Likewise.
15972         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
15973         when suitable.
15974         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
15975         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
15976         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
15977         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
15978         to store the value retured by gen_label_rtx.
15979         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
15980         rtx_jump_insn.
15981         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
15982         (split_branches): Fix calls of redirect_jump.
15983         * dojump.c (jumpifnot): Promote argument type from rtx to
15984         rtx_code_label.
15985         (jumpifnot_1): Likewise.
15986         (jumpif): Likewise.
15987         (jumpif_1): Likewise.
15988         (do_jump_1): Likewise.
15989         (do_jump): Likewise. Use rtx_code_label when feasible.
15990         (do_jump_by_parts_greater_rtx): Likewise.
15991         (do_jump_by_parts_zero_rtx): Likewise.
15992         (do_jump_by_parts_equality_rtx): Likewise.
15993         (do_compare_rtx_and_jump): Likewise.
15994         * dojump.h: Update function prototypes.
15995         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
15996         returns rtx_insn).
15997         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
15998         rtx_jump_insn.
15999         (emit_label_before): Likewise.
16000         (emit_jump_insn_after_noloc): Likewise.
16001         (emit_jump_insn_after_setloc): Likewise.
16002         (emit_jump_insn_after): Likewise
16003         (emit_jump_insn_before_setloc): Likewise.
16004         (emit_jump_insn_before): Likewise.
16005         (emit_label_before): Promote return type to rtx_code_label.
16006         (emit_label): Likewise.
16007         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
16008         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
16009         gen_move_insn.
16010         (emit_stack_restore): Likewise.
16011         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
16012         (do_cmp_and_jump): Likewise.
16013         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
16014         from rtx to rtx_code_label.
16015         (gen_move_insn_uncast): New function.
16016         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
16017         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
16018         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
16019         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
16020         invert_jump_1 and redirect_jump_1.
16021         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
16022         do_compare_rtx_and_jump.
16023         (expand_addsub_overflow): Likewise.
16024         (expand_neg_overflow): Likewise.
16025         (expand_mul_overflow): Likewise.
16026         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
16027         return value of gen_move_insn.
16028         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
16029         * loop-doloop.c (add_test): Use rtx_code_label.
16030         (doloop_modify): Likewise.
16031         (doloop_optimize): Likewise.
16032         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
16033         * lra-constraints.c (emit_spill_move): Remove cast of value returned
16034         by gen_move_insn.
16035         (inherit_reload_reg): Add cast when calling dump_insn_slim.
16036         (split_reg): Likewise.
16037         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
16038         gen_move_insn.
16039         * optabs.c (expand_binop_directly): Remove casts of values returned by
16040         maybe_gen_insn.
16041         (expand_unop_direct): Likewise.
16042         (expand_abs): Likewise.
16043         (maybe_emit_unop_insn): Likewise.
16044         (maybe_gen_insn): Promote return type to rtx_insn.
16045         * optabs.h: Update prototype of maybe_gen_insn.
16046         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
16047         redundant cast.
16048         * recog.c (struct peep2_insn_data): Promote type of insn field to
16049         rtx_insn.
16050         (peep2_reinit_state): Use NULL instead of NULL_RTX.
16051         (peep2_attempt): Remove casts of insn in peep2_insn_data.
16052         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
16053         * recog.h (struct insn_gen_fn): Promote return types of function
16054         pointers and operator ().from rtx to rtx_insn.
16055         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
16056         (fill_eager_delay_slots): Likewise.
16057         (relax_delay_slots): Likewise.
16058         (make_return_insns): Likewise.
16059         (dbr_schedule): Likewise.
16060         (optimize_skips): Likewise.
16061         (reorg_redirect_jump): Likewise.
16062         (fill_slots_from_thread): Likewise.
16063         * reorg.h: Update prototypes.
16064         * resource.c (find_dead_or_set_registers): Use dyn_cast to
16065         rtx_jump_insn instead of check.  Use it's jump_target method.
16066         * rtl.h (rtx_jump_insn::jump_label): Define new method.
16067         (rtx_jump_insn::jump_target): Define new method.
16068         (rtx_jump_insn::set_jump_target): Define new method.
16069         * rtlanal.c (tablejump_p): Promote type of one local variable.
16070         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
16071         (sched_analyze_insn): Likewise.
16072         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
16073         (print_insn): Likewise.
16074         * stmt.c (label_rtx): Promote return type to rtx_insn.
16075         (force_label_rtx): Likewise.
16076         (jump_target_rtx): Define new function.
16077         (expand_label): Use it, get rid of one cast.
16078         (expand_naked_return): Promote rtx to rtx_code_label.
16079         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
16080         (expand_case): Use rtx_code_label instread of rtx where feasible.
16081         (expand_sjlj_dispatch_table): Likewise.
16082         (emit_case_nodes): Likewise.
16083         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
16084         * store-motion.c (insert_store): Make use of new return type of
16085         gen_move_insn and remove a cast.
16086         (replace_store_insn): Likewise.
16088 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
16090         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
16091         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
16093 2015-05-20  Jeff Law  <law@redhat.com>
16095         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
16096         dispose of the jump thread path when the jump threading
16097         opportunity is cancelled.
16099 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16101         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
16102         when printing the caret character.
16104 2015-05-20  Marek Polacek  <polacek@redhat.com>
16106         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
16108 2015-05-20  Marek Polacek  <polacek@redhat.com>
16110         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
16111         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
16112         * gimple-fold.c (canonicalize_bool): Likewise.
16113         (same_bool_result_p): Likewise.
16114         * tree-if-conv.c (parse_predicate): Likewise.
16116 2015-05-20  Marek Polacek  <polacek@redhat.com>
16118         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
16119         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
16121 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16123         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
16124         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
16125         values.
16127 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
16129         * config/mips/mips.h (micromips_globals): Declare.
16131 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
16133         * timevar.def (TV_INITIALIZE_RTL): New.
16134         * toplev.c (initialize_rtl): Use an auto_timevar to account this
16135         function's time to TV_INITIALIZE_RTL.
16137 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
16139         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
16140         gimple_build_nop calls.
16141         (chkp_find_bounds_for_elem): Likewise.
16142         (chkp_get_zero_bounds): Likewise.
16143         (chkp_get_none_bounds): Likewise.
16144         (chkp_get_bounds_by_definition): Likewise.
16145         (chkp_generate_extern_var_bounds): Likewise.
16146         (chkp_get_bounds_for_decl_addr): Likewise.
16147         (chkp_get_bounds_for_string_cst): Likewise.
16149 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
16151         PR tree-optimization/65447
16152         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
16153         (dump_use, dump_uses): Support to dump sub use.
16154         (record_use): New parameters to support sub use.  Remove call to
16155         dump_use.
16156         (record_sub_use, record_group_use): New functions.
16157         (compute_max_addr_offset, split_all_small_groups): New functions.
16158         (group_address_uses, rewrite_use_address): New functions.
16159         (strip_offset): New declaration.
16160         (find_interesting_uses_address): Call record_group_use.
16161         (add_candidate): New assertion.
16162         (infinite_cost_p): Move definition forward.
16163         (add_costs): Check INFTY cost and return immediately.
16164         (get_computation_cost_at): Clear setup cost and dependent bitmap
16165         for sub uses.
16166         (determine_use_iv_cost_address): Compute cost for sub uses.
16167         (rewrite_use_address_1): Rename from old rewrite_use_address.
16168         (free_loop_data): Free sub uses.
16169         (tree_ssa_iv_optimize_loop): Call group_address_uses.
16171 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16172             Jim Wilson  <jim.wilson@linaro.org>
16174         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
16175         new  fields loadv and storev.
16176         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
16177         Initialize loadv and storev.
16178         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
16179         (cortexa53_extra_costs): Likewise.
16180         (cortexa57_extra_costs): Likewise.
16181         (xgene1_extra_costs): Likewise.
16182         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
16183         rtx_costs.
16185 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
16187         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
16188          storev.
16189         (cortexa8_extra_costs): Likewise.
16190         (cortexa5_extra_costs): Likewise.
16191         (cortexa7_extra_costs): Likewise.
16192         (cortexa12_extra_costs): Likewise.
16193         (cortexa15_extra_costs): Likewise.
16194         (v7m_extra_costs): Likewise.
16196 2015-05-20  Jeff Law  <law@redhat.com>
16198         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
16199         instead of open-coded version.  Also delete the jump thread created
16200         within this function.
16202 2015-05-20  Alan Modra  <amodra@gmail.com>
16204         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
16205         stack adjusting insn.  Formatting.
16206         (rs6000_emit_prologue): Track stack adjusting insn, and use of
16207         r12.  If possible, emit first -fsplit-stack arg pointer insn
16208         before stack adjust.  Don't use r12 to save cr if split-stack.
16210 2015-05-20  Alan Modra  <amodra@gmail.com>
16212         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
16213         Define.
16214         (rs6000_supports_split_stack): New function.
16215         * gcc/config/rs6000/rs6000.c (machine_function): Add
16216         split_stack_arg_pointer.
16217         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
16218         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
16219         rather than virtual_incoming_args_rtx.
16220         (rs6000_va_start): Likewise.
16221         (split_stack_arg_pointer_used_p): New function.
16222         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
16223         (morestack_ref): New var.
16224         (gen_add3_const, rs6000_expand_split_stack_prologue,
16225         rs6000_internal_arg_pointer, rs6000_live_on_entry,
16226         rs6000_split_stack_space_check): New functions.
16227         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
16228         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
16229         (UNSPECV_SPLIT_STACK_RETURN): Define.
16230         (split_stack_prologue, load_split_stack_limit,
16231         load_split_stack_limit_di, load_split_stack_limit_si,
16232         split_stack_return, split_stack_space_check): New expands and insns.
16233         * gcc/config/rs6000/rs6000-protos.h
16234         (rs6000_expand_split_stack_prologue): Declare.
16235         (rs6000_split_stack_space_check): Declare.
16237 2015-05-20  Alan Modra  <amodra@gmail.com>
16239         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
16240         (direct_return): Test vrsave_size rather than vrsave_mask.
16241         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
16242         (rs6000_emit_epilogue): Likewise.
16244 2015-05-20  Alan Modra  <amodra@gmail.com>
16246         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
16247         when not saving registers.
16248         (debug_stack_info): Adjust to omit printing unused offsets,
16249         as before.
16250         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
16251         expression.
16253 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16255         PR c++/65835
16256         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
16257         value_type to const char *.
16259 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
16261         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
16262         to build a biarch toolchain again.
16264 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
16266         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
16267         or implicit declarations.
16268         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
16269         into it.
16270         (get_odr_type): Check type has linkage before adding bases.
16271         (register_odr_type): Check that type has linkage before adding it.
16272         (type_known_to_have_no_deriavations_p): Rename to ..
16273         (type_known_to_have_no_derivations_p): This one.
16274         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
16275         (type_known_to_have_no_derivations_p): This one.
16276         * ipa-polymorphic-call.c
16277         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
16278         type has linkage.
16280 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16282         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
16283         (layout_type): Use RECORD_OR_UNION_TYPE_P.
16285 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16287         * config/s390/s390.c (s390_vector_bool_type_p): New function.
16288         (s390_invalid_binary_op): New function.
16289         (TARGET_INVALID_BINARY_OP): Define macro.
16291 2015-05-19  David Sherwood  <david.sherwood@arm.com>
16293         * loop-invariant.c (create_new_invariant): Don't calculate address cost
16294         if mode is not a scalar integer.
16295         (get_inv_cost): Increase computational cost for unused invariants.
16297 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16299         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
16300         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
16301         * config/s390/s390-builtin-types.def: New file.
16302         * config/s390/s390-builtins.def: New file.
16303         * config/s390/s390-builtins.h: New file.
16304         * config/s390/s390-c.c: New file.
16305         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
16306         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
16307         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
16308         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
16309         prototypes.
16310         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
16311         Include.
16312         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
16313         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
16314         variable definitions.
16315         (s390_const_operand_ok): New function.
16316         (s390_expand_builtin): Rewrite.
16317         (s390_init_builtins): New function.
16318         (s390_handle_vectorbool_attribute): New function.
16319         (s390_attribute_table): Add s390_vector_bool attribute.
16320         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
16321         (s390_branch_condition_mask): Generate masks for new modes.
16322         (s390_expand_vec_compare_cc): New function.
16323         (s390_mangle_type): Add mangling for vector bool types.
16324         (enum s390_builtin): Remove.
16325         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
16326         efpc builtins.
16327         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
16328         s390_cpu_cpp_builtins.
16329         (REGISTER_TARGET_PRAGMAS): New macro.
16330         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
16331         (insn_cmp mode attribute): Add new CC modes.
16332         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
16333         (lcbb): New pattern definition.
16334         * config/s390/s390intrin.h: Include vecintrin.h.
16335         * config/s390/t-s390: New file.
16336         * config/s390/vecintrin.h: New file.
16337         * config/s390/vector.md: Include vx-builtins.md.
16338         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
16339         support.
16341 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16343         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
16344         CCVFHE.
16345         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
16346         (s390_select_ccmode): Likewise.
16347         (s390_canonicalize_comparison): Swap operands if necessary.
16348         (s390_expand_vec_compare_scalar): Expand DFmode compare using
16349         single element vector instructions.
16350         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
16351         (s390_branch_condition_mask): Generate CC masks for the new modes.
16352         * config/s390/s390.md (v0, vf, vd): New mode attributes.
16353         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
16354         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
16355         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
16356         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
16357         (*extend<DSF:mode><BFP:mode>2): New insn definition.
16358         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
16359         (extend<DSF:mode><BFP:mode>2): Turn into expander.
16360         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
16361         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
16362         (sqrt<mode>2): Add vector instruction.
16364 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16366         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
16367         constraints.
16368         * config/s390/predicates.md (const0_operand, constm1_operand)
16369         (constable_operand): Accept vector operands.
16370         * config/s390/s390-modes.def: Add supported vector modes.
16371         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
16372         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
16373         (s390_bytemask_vector_p, s390_expand_vec_strlen)
16374         (s390_expand_vec_compare, s390_expand_vcond)
16375         (s390_expand_vec_init): Add prototypes.
16376         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
16377         (s390_vector_mode_supported_p): New function.
16378         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
16379         (s390_contiguous_bitmask_vector_p): New function.
16380         (s390_bytemask_vector_p): New function.
16381         (s390_split_ok_p): Vector regs don't work either.
16382         (regclass_map): Add VEC_REGS.
16383         (s390_legitimate_constant_p): Handle vector constants.
16384         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
16385         (legitimate_reload_vector_constant_p): New function.
16386         (s390_preferred_reload_class): Handle CONST_VECTOR.
16387         (s390_reload_symref_address):  Likewise.
16388         (s390_secondary_reload): Vector memory instructions only support
16389         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
16390         (s390_emit_ccraw_jump): New function.
16391         (s390_expand_vec_strlen): New function.
16392         (s390_expand_vec_compare): New function.
16393         (s390_expand_vcond): New function.
16394         (s390_expand_vec_init): New function.
16395         (s390_dwarf_frame_reg_mode): New function.
16396         (print_operand): Handle addresses with 'O' and 'R' constraints.
16397         (NR_C_MODES, constant_modes): Add vector modes.
16398         (s390_output_pool_entry): Handle vector constants.
16399         (s390_hard_regno_mode_ok): Handle vector registers.
16400         (s390_class_max_nregs): Likewise.
16401         (s390_cannot_change_mode_class): New function.
16402         (s390_invalid_arg_for_unprototyped_fn): New function.
16403         (s390_function_arg_vector): New function.
16404         (s390_function_arg_float): Remove size variable.
16405         (s390_pass_by_reference): Handle vector arguments.
16406         (s390_function_arg_advance): Likewise.
16407         (s390_function_arg): Likewise.
16408         (s390_return_in_memory): Vector values are returned in a VR if
16409         possible.
16410         (s390_function_and_libcall_value): Handle vector arguments.
16411         (s390_gimplify_va_arg): Likewise.
16412         (s390_call_saved_register_used): Consider the arguments named.
16413         (s390_conditional_register_usage): Disable v16-v31 for non-vec
16414         targets.
16415         (s390_preferred_simd_mode): New function.
16416         (s390_support_vector_misalignment): New function.
16417         (s390_vector_alignment): New function.
16418         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
16419         (TARGET_VECTOR_MODE_SUPPORTED_P)
16420         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
16421         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16422         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
16423         (TARGET_VECTOR_ALIGNMENT): Define target macro.
16424         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
16425         (FIRST_PSEUDO_REGISTER): Increase value.
16426         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
16427         (VECTOR_REG_P): Define macros.
16428         (FIXED_REGISTERS, CALL_USED_REGISTERS)
16429         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
16430         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
16431         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
16432         Add vector registers.
16433         (CANNOT_CHANGE_MODE_CLASS): Call C function.
16434         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
16435         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
16436         memory.
16437         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
16438         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
16439         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
16440         (VR*_REGNUM): New constants.
16441         (ALL): New mode iterator.
16442         (INTALL): Remove mode iterator.
16443         Include vector.md.
16444         (movti): Implement TImode moves for VRs.
16445         Disable TImode splitter for VR targets.
16446         Implement splitting TImode GPR<->VR moves.
16447         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
16448         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
16449         reload<mode>_la_in, reload<mode>_la_out.
16450         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
16451         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
16452         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
16453         (mov<mode> SF SD): Prefer lder, lde for loading.
16454         Add lrl and strl instructions.
16455         Add vector instructions.
16456         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
16457         Call s390_expand_vec_strlen on z13.
16458         (*cc_to_int): Change predicate to nonimmediate_operand.
16459         (addti3): Rename to *addti3.  New expander.
16460         (subti3): Rename to *subti3.  New expander.
16461         * config/s390/vector.md: New file.
16463 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16465         * common/config/s390/s390-common.c (processor_flags_table): Add
16466         z13.
16467         * config.gcc: Add z13.
16468         * config/s390/s390-opts.h (enum processor_type): Add
16469         PROCESSOR_2964_Z13.
16470         * config/s390/s390.c (s390_adjust_priority): Check for
16471         PROCESSOR_2964_Z13.
16472         (s390_reorg): Likewise.
16473         (s390_sched_reorder): Likewise.
16474         (s390_sched_variable_issue): Likewise.
16475         (s390_loop_unroll_adjust): Likewise.
16476         (s390_option_override): Likewise. Default to -mvx when available.
16477         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
16478         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
16479         (TARGET_VX_ABI): Define macros.
16480         macros.
16481         (TARGET_DEFAULT): Add MASK_OPT_VX.
16482         * config/s390/s390.md ("cpu" attribute): Add z13.
16483         ("cpu_facility" attribute): Add vec.
16484         * config/s390/s390.opt (processor_type): Add z13.
16485         (mvx): New options.
16486         * doc/invoke.texi: Add z13 option for -march.
16488 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16490         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
16491         mode check to make sure that only scalar integer values are
16492         accepted.
16494 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
16496         * tree.c (verify_type_variant): Fix #undef.
16497         (gimple_canonical_types_compatible_p): Move here from lto.c
16498         (verify_type): Verify TYPE_CANONICAL compatibility.
16499         * tree.h (gimple_canonical_types_compatible_p): Declare.
16501 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
16503         PR middle-end/66199
16504         * tree.h (OMP_TEAMS_COMBINED): Define.
16505         * gimplify.c (enum gimplify_omp_var_data): Add
16506         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
16507         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
16508         (omp_notice_variable): Accept both ORT_TEAMS
16509         and ORT_COMBINED_TEAMS.  Don't recurse if
16510         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
16511         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
16512         GOVD_FIRSTPRIVATE.
16513         (omp_no_lastprivate): New function.
16514         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
16515         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
16516         notice_outer and set appropriate bits, otherwise make
16517         sure default(none) combined constructs won't complain.
16518         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
16519         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
16520         omp_no_lastprivate either remove the clause or turn it
16521         into OMP_CLAUSE_PRIVATE.
16522         (gimplify_omp_for): Fix up handling of implicit
16523         lastprivate or linear iterators.
16524         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
16525         ORT_COMBINED_TEAMS.
16526         * omp-low.c (lower_omp_for_lastprivate): For combined
16527         for simd use fd.loop.n2 from the for rather than simd.
16529 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16531         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
16532         instead of gen_rtx_raw_REG.
16533         (cris_expand_epilogue): Likewise.
16534         * config/microblaze/microblaze.c (microblaze_classify_address):
16535         Likewise.
16536         * config/sparc/sparc.md: Likewise.
16538 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
16540         * config/alpha/alpha.c (alpha_legitimize_reload_address)
16541         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
16542         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
16543         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
16544         Use CASE_CONST_SCALAR_INT.
16545         (print_operand) <case 'M'>: Use mode_width_operand to check the
16546         value of the constant.
16547         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
16548         * config/alpha/predicates.md (input_operand): Use general_operand
16549         instead of match_code as operand check.
16550         (symbolic_operand): Use match_code with subexpression digits.
16551         * config/alpha/constraints.md (Q): Ditto.
16553 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16555         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
16557 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16559         * config/s390/s390.c (s390_secondary_reload): Fix check for
16560         load/store relative.
16562 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16564         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
16565         alternative_mask to uint64_t.
16567 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
16569         PR tree-optimization/66187
16570         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
16571         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
16572         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
16574 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
16576         * diagnostic.c (diagnostic_report_current_module): Strengthen
16577         local "new_map" from const line_map * to
16578         const line_map_ordinary *.
16579         * genmatch.c (error_cb): Likewise for local "map".
16580         (output_line_directive): Likewise for local "map".
16581         * input.c (expand_location_1): Likewise for local "map".
16582         Pass NULL rather than &map to
16583         linemap_unwind_to_first_non_reserved_loc, since the value is never
16584         read from there, and the value written back not read from here.
16585         (is_location_from_builtin_token): Strengthen local "map" from
16586         const line_map * to const line_map_ordinary *.
16587         (dump_location_info): Strengthen locals "map" from
16588         line_map *, one to const line_map_ordinary *, the other
16589         to const line_map_macro *.
16590         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
16591         const line_map * to const line_map_macro *.
16592         (maybe_unwind_expanded_macro_loc): Add a call to
16593         linemap_check_macro when writing to the "map" field of the
16594         loc_map_pair.
16595         Introduce local const line_map_ordinary * "ord_map", using it in
16596         place of "map" in the part of the function where we know we have
16597         an ordinary map.  Strengthen local "m" from const line_map * to
16598         const line_map_ordinary *.
16600 2015-05-19  Nick Clifton  <nickc@redhat.com>
16602         PR target/66156
16603         * config/msp430/msp430.md (zero_extendhisi2): Add support for
16604         separate source and destination registers.
16606 2015-05-19  Richard Biener  <rguenther@suse.de>
16608         PR tree-optimization/66165
16609         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
16610         for no load permutation.
16612         PR tree-optimization/66185
16613         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
16614         when building the SLP node from scalars.
16616 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16617             Tristan Gingold  <gingold@adacore.com>
16619         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
16620         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
16621         (expand_stack_restore): Call record_new_stack_level.
16622         (expand_stack_save): Do not call do_pending_stack_adjust.
16623         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
16624         * calls.c (expand_call): Call record_new_stack_level for alloca.
16625         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
16626         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
16627         (update_sjlj_context): New global function.
16628         * except.h (update_sjlj_context): Declare.
16629         * explow.c (record_new_stack_level): New global function.
16630         (allocate_dynamic_stack_space): Call record_new_stack_level.
16631         * explow.h (record_new_stack_level): Declare.
16632         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
16633         * cfgrtl.c (duplicate_insn_chain): Likewise.
16635 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16637         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
16638         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
16639         STACK_GROWS_DOWNWARD as normal if.
16640         (expand_call): Likewise.
16642 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
16644         PR target/54236
16645         * config/sh/sh.md (*round_int_even): New insn_and_split and
16646         accompanying new unnamed split.
16648 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16650         * bitmap.c (bitmap_set_range): Handle count==1 specially.
16651         (bitmap_clear_range): Likewise.
16652         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
16653         bitmap_set_range unconditionally.
16654         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16655         * df-scan.c (df_mark_reg): Likewise.
16656         * haifa-sched.c (setup_ref_regs): Likewise.
16657         * sched-rgn.c (update_live_1): Likewise.
16659 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16661         * regs.h (END_HARD_REGNO): Delete.
16662         (END_REGNO): Move to...
16663         * rtl.h: ...here.
16664         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
16665         * caller-save.c (mark_set_regs): Likewise.
16666         * combine.c (move_deaths, distribute_notes): Likewise.
16667         * cse.c (invalidate, invalidate_for_call): Likewise.
16668         * df-scan.c (df_ref_record): Likewise.
16669         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
16670         (record_last_reg_set_info): Likewise.
16671         * reg-stack.c (convert_regs_exit): Likewise.
16672         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
16673         * resource.c (update_live_status): Likewise.
16674         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
16676 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16678         * rtl.h (reg_info): Add an nregs field.
16679         (REG_NREGS): Use it.
16680         (SET_REGNO_RAW): Delete.
16681         (set_regno_raw): New function.
16682         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
16683         (END_REGNO): Redefine in terms of REG_NREGS.
16684         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
16685         SET_REGNO_RAW.
16686         * emit-rtl.c (set_mode_and_regno): Likewise.
16687         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
16688         instead of SET_REGNO_RAW.
16690 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16692         * rtl.h (PUT_MODE_RAW): New macro.
16693         (PUT_REG_NOTE_KIND): Use it.
16694         (set_mode_and_regno): Declare.
16695         (gen_raw_REG): Change regno to "unsigned int".
16696         (gen_rtx_REG): Change "unsigned" to "unsigned int".
16697         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
16698         use set_mode_and_regno to change the mode of registers.
16699         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
16700         * emit-rtl.c (set_mode_and_regno): New function.
16701         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
16702         * caller-save.c (reg_save_code): Use set_mode_and_regno.
16703         * expr.c (init_expr_target): Likewise.
16704         * ira.c (setup_prohibited_mode_move_regs): Likewise.
16705         * postreload.c (reload_cse_simplify_operands): Likewise.
16707 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16709         * caller-save.c (init_caller_save): Use word_mode and
16710         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
16711         * expr.c (init_expr_target): Likewise.
16712         * ira.c (setup_prohibited_mode_move_regs): Likewise.
16713         * postreload.c (reload_cse_regs_1): Likewise.
16715 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16717         * rtl.def (REG): Change format to "r".
16718         * rtl.h (rtunion): Remove rt_reg.
16719         (reg_info): New structure.
16720         (rtx_def): Add reg field to main union.
16721         (X0REGATTR): Delete.
16722         (REG_CHECK): New macro.
16723         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
16724         * rtl.c (rtx_format): Document "r".
16725         (rtx_code_size): Handle REG specially.
16726         * gengenrtl.c (special_format): Return true for formats
16727         that include 'r'.
16728         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
16729         Deal with REG_ATTRS after the field loop.
16730         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
16731         * expmed.c (init_expmed): Call gen_raw_REG instead of
16732         gen_rtx_raw_REG.
16733         * expr.c (init_expr_target): Likewise.
16734         * regcprop.c (maybe_mode_change): Likewise.
16735         * varasm.c (make_decl_rtl): Likewise.
16736         * final.c (leaf_renumber_regs_insn): Return early after
16737         handling REGs.
16738         * genemit.c (gen_exp): Handle 'r' fields.
16739         * genpeep.c (match_rtx): Likewise.
16740         * gensupport.c (subst_pattern_match): Likewise.
16741         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
16742         (alter_constraints, subst_dup): Likewise.
16743         * read-rtl.c (read_rtx_code): Likewise.
16744         * print-rtl.c (print_rtx): Likewise.
16745         * genrecog.c (find_operand, find_matching_operand): Likewise.
16746         (validate_pattern, match_pattern_2): Likewise.
16747         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
16748         (rtx_test::regno_field): New function.
16749         (operator ==, safe_to_hoist_p, transition_parameter_type)
16750         (parameter_type_string, print_parameter_value)
16751         (print_nonbool_test, print_test): Handle new enum values.
16752         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
16753         * lra-constraints.c (operands_match_p): Likewise.
16755 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16757         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
16758         Change type of new_regno to unsigned int.
16759         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
16760         new_regno to unsigned int.
16761         (df_ref_change_reg_with_loc): Remove old_regno parameter.
16762         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
16763         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
16764         (SET_REGNO_RAW): Add space after ",".
16766 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16768         * rtl.h (REG_NREGS): New macro
16769         * alias.c (record_set): Use it.
16770         * cfgcleanup.c (mark_effect): Likewise.
16771         * combine.c (likely_spilled_retval_1): Likewise.
16772         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
16773         (move_deaths, distribute_notes): Likewise.
16774         * cselib.c (cselib_record_set): Likewise.
16775         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
16776         * df-scan.c (df_mark_reg): Likewise.
16777         * dse.c (look_for_hardregs): Likewise.
16778         * dwarf2out.c (reg_loc_descriptor): Likewise.
16779         (multiple_reg_loc_descriptor): Likewise.
16780         * expr.c (write_complex_part, read_complex_part): Likewise.
16781         (emit_move_complex): Likewise.
16782         * haifa-sched.c (setup_ref_regs): Likewise.
16783         * ira-lives.c (mark_hard_reg_live): Likewise.
16784         * lra.c (lra_set_insn_recog_data): Likewise.
16785         * mode-switching.c (create_pre_exit): Likewise.
16786         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
16787         (reload_combine_recognize_pattern): Likewise.
16788         (reload_combine_note_use, move2add_record_mode): Likewise.
16789         (reload_cse_move2add): Likewise.
16790         * reg-stack.c (subst_stack_regs_pat): Likewise.
16791         * regcprop.c (kill_value, copy_value): Likewise.
16792         (copyprop_hardreg_forward_1): Likewise.
16793         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
16794         (build_def_use): Likewise.
16795         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
16796         (deps_analyze_insn): Likewise.
16797         * sched-rgn.c (check_live_1, update_live_1): Likewise.
16798         * sel-sched.c (count_occurrences_equiv): Likewise.
16799         * valtrack.c (dead_debug_insert_temp): Likewise.
16801 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
16803         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
16804         * dse.c (note_add_store): Likewise.
16805         * ira-lives.c (mark_hard_reg_dead): Likewise.
16806         * loop-invariant.c (mark_reg_store): Likewise.
16807         (mark_reg_death): Likewise.
16808         * postreload.c (reload_combine): Likewise.
16809         (reload_combine_note_store): Likewise.
16810         (reload_combine_note_use): Likewise.
16811         * recog.c (peep2_reg_dead_p): Likewise.
16813 2015-05-19  Alan Modra  <amodra@gmail.com>
16815         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
16816         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
16817         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
16818         unused predicates.
16819         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
16820         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
16821         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
16822         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
16824 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
16826         * config/mips/mips.md (JOIN_MODE): New mode iterator.
16827         (join2_load_Store<JOIN_MODE:mode>): New pattern.
16828         (join2_loadhi): Likewise.
16829         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
16830         load-load and store-stores.
16831         * config/mips/mips.opt (mload-store-pairs): New option.
16832         (TARGET_LOAD_STORE_PAIRS): New macro.
16833         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
16834         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
16835         * config/mips/mips.c (mips_load_store_bonding_p): New function.
16837 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
16839         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
16840         explicit swaps.
16841         * dojump.c (do_compare_rtx_and_jump): Likewise.
16842         * expmed.c (emit_store_flag_1): Likewise.
16843         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
16844         * final.c (sprint_ul): Use std::reverse for reversing a string.
16845         * fold-const.c (extract_muldiv_1): Use std::swap.
16846         * genmodes.c (emit_mode_int_n): Likewise.
16847         * ifcvt.c (dead_or_predicable): Likewise.
16848         * ira-build.c (ira_merge_live_ranges): Likewise.
16849         (swap_allocno_copy_ends_if_necessary): Likewise.
16850         * ira.c (ira_setup_alts): Likewise.
16851         * loop-iv.c (iv_analyze_expr): Likewise.
16852         (implies_p): Likewise.
16853         (canon_condition): Likewise.
16854         * lra-constraints.c (swap_operands): Likewise.
16855         * lra-lives.c (lra_merge_live_ranges): Likewise.
16856         * omega.c (swap): Remove.
16857         (bswap): Remove.
16858         (omega_unprotect_1): Use std::swap.
16859         (omega_solve_geq): Likewise.
16860         * optabs.c (expand_binop_directly): Likewise.
16861         (expand_binop): Likewise.
16862         (emit_conditional_move): Likewise.
16863         (emit_conditional_add): Likewise.
16864         * postreload.c (reload_cse_simplify_operands): Likewise.
16865         * reg-stack.c (emit_swap_insn): Likewise.
16866         (swap_to_top): Likewise.
16867         (compare_for_stack_reg): Likewise.
16868         (subst_asm_stack_regs): Likewise.
16869         * reload.c (find_reloads): Likewise.
16870         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
16871         * sel-sched.c (invoke_reorder_hooks): Likewise.
16872         (create_block_for_bookkeeping): Likewise.
16873         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
16874         (lambda_matrix_right_hermite): Use std::swap.
16875         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
16876         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
16877         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
16878         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
16879         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
16880         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
16881         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16882         * tree-vrp.c (compare_ranges): Likewise.
16883         * var-tracking.c (add_with_sets): Likewise.
16884         (vt_find_locations): Likewise.
16886 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
16888         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
16889         pie executables.
16890         (FBSD_ENDFILE_SPEC): Likewise.
16891         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
16892         config/freebsd-spec.h.
16893         (ENDFILE_SPEC): Likewise.
16895 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
16896             Richard Henderson  <rth@redhat.com>
16898         PR target/57032
16899         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
16900         Check for a memory location that is not a reference (using an AND)
16901         to an unaligned location here.
16902         * config/alpha/predicates.md (normal_memory_operand): Remove.
16904 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
16906         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
16907         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
16909 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16911         * config/mips/mips.c (micromips_globals): New variable.
16912         (mips_set_compression_mode): Save and reinitialize target-dependent
16913         state for microMIPS.
16915 2015-05-18  Martin Liska  <mliska@suse.cz>
16917         * dbgcnt.def: Add new counter.
16918         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
16920 2015-05-18  Martin Liska  <mliska@suse.cz>
16922         * dbgcnt.def: Sort counters.
16923         * opts.c (common_handle_option): Do not compile if
16924         -fdbg-cnt-list is enabled.
16926 2015-05-18  Tom de Vries  <tom@codesourcery.com>
16928         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
16929         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
16930         address operator to va_list operand.
16931         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
16932         unconditionally.
16933         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
16934         operand.
16935         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
16936         * config/s390/s390.c (s390_gimplify_va_arg): Same.
16937         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
16939 2015-05-18  Tom de Vries  <tom@codesourcery.com>
16941         * tree-ssa-tail-merge.c: Fix whitespace.
16943 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
16945         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
16946         cortex-a17, and cortex-a17.cortex-a7.
16948 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
16950         PR target/54236
16951         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
16953 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
16955         PR target/66174
16956         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
16957         QImode inner modes for TARGET_AVX512BW.  Force mask operand
16958         to a register for AVX512F modes.
16960 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
16962         * toplev.c (emit_debug_global_declarations): Do not output debug info
16963         when doing slim LTO objects.
16965 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
16967         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
16968         odr_types_equivalent_p): Declare.
16969         (odr_type_p): Use gcc_checking_assert.
16970         (type_in_anonymous_namespace_p) Declare.
16971         (type_with_linkage_p): Declare.
16972         * common.opt (Wlto-type-mismatch): New warning.
16973         * ipa-devirt.c (compound_type_base): New function.
16974         (odr_or_derived_type_p): New function.
16975         (odr_types_equivalent_p): New function.
16976         (add_type_duplicate): Simplify.
16977         (type_with_linkage_p): Add hack to prevent false positives on C types
16978         (type_in_anonymous_namespace_p): Likewise.
16979         * tree.c (need_assembler_name_p): Use type_with_linkage.
16980         * tree.h (type_in_anonymous_namespace_p): Remove.
16981         * doc/invoke.texi (-Wlto-type-mismatch): Document
16983 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
16985         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
16986         (verify_type): Verify STRING_FLAG.
16988 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16990         PR fortran/44054
16991         * tree-pretty-print.c (percent_K_format): Replace locus pointer
16992         with accessor function.
16993         * tree-diagnostic.c (diagnostic_report_current_function): Use
16994         diagnostic_location function.
16995         (maybe_unwind_expanded_macro_loc): Likewise.
16996         (virt_loc_aware_diagnostic_finalizer): Likewise.
16997         (default_tree_printer): Replace locus pointer with accessor function.
16998         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
16999         (diagnostic_set_info_translated): Initialize second location.
17000         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
17001         (diagnostic_show_locus): Handle two locations. Call
17002         diagnostic_print_caret_line.
17003         (diagnostic_print_caret_line): New.
17004         (default_diagnostic_starter): Use diagnostic_location function.
17005         (diagnostic_report_diagnostic): Use diagnostic_location function.
17006         (verbatim): Do not set text.locus.
17007         * diagnostic.h (struct diagnostic_info): Remove location field.
17008         (struct diagnostic_context): Make caret_chars an array of two.
17009         (diagnostic_location): New inline.
17010         (diagnostic_expand_location): Handle two locations.
17011         (diagnostic_same_line): New inline.
17012         (diagnostic_print_caret_line): Declare.
17013         (CARET_LINE_MARGIN): New constant.
17014         * pretty-print.c (pp_printf): Do not set text.locus.
17015         (pp_verbatim): Do not set text.locus.
17016         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
17017         (struct text_info): Replace locus pointer with locations
17018         array. Add accessor functions.
17020 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
17021             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17023         PR target/65768
17024         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
17025         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
17026          large constants in register instead of splitting them.
17028 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
17030         PR target/66140
17031         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
17032         replacements in memory addresses.
17033         (get_unaligned_address): Ditto.
17035 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
17037         * config/ft32/*: New files for FT32 port.
17038         * doc/install.texi: Add FT32 information.
17039         * doc/invoke.texi: Add FT32 information.
17040         * doc/md.texi: Add FT32 information.
17041         * doc/contrib.texi: Self added.
17043 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
17045         PR tree-optimization/64454
17046         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
17047         (-1 - A -> ~A): Remove unnecessary condition.
17049 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
17051         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
17052         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
17053         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
17055 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
17057         * ipa-chkp.h (chkp_wrap_function): New.
17058         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
17059         (chkp_wrap_function_name): New.
17060         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
17061         to get wrapper name.
17062         * lto-cgraph.c: Include ipa-chkp.h.
17063         (input_cgraph_1): Avoid alias chain for wrappers.
17065 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
17067         PR middle-end/66134
17068         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
17069         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
17071 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17073         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
17074         (AARCH64_FL_SLOWMUL): Delete.
17075         (AARCH64_FL_CRC): Redefine to 1<<3.
17076         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
17078 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17080         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
17081         casting.
17083 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
17085         * config/alpha/alpha.md (extendqidi2): Use general_operand
17086         instead of some_operand for operand[1] predicate.
17087         (extendhidi2): Ditto.
17088         (cbranchdi4): Use general_operand instead of some_operand
17089         for operand[1] and operands[2] predicates.
17090         (cstoredi4): Ditto.
17091         * config/alpha/predicates.md (some_operand): Remove unused predicate.
17092         (some_ni_operand): Ditto.
17094 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
17096         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
17097         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
17098         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
17099         low part of the constant using alpha_emit_set_const_1.
17100         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
17102 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
17104         * varasm.c (output_constant_pool_1): Pass down alignment from
17105         constant pool entry's descriptor to output_constant_pool_2.
17106         (output_object_block): Add comment prior to call to
17107         output_constant_pool_1.
17109 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
17111         PR rtl-optimization/65862
17112         * target.def (ira_change_pseudo_allocno_class): New hook.
17113         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
17114         value of the hook.
17115         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
17116         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
17117         hook.
17118         * ira-costs.c (find_costs_and_classes): Call the hook and change
17119         classes when it is necessary.
17120         * doc/tm.texi: Update.
17122 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
17124         * config/i386/i386.md (sibcall_memory): Check that register with
17125         callee address is not also used as one of the arguments, instead
17126         of checking that it is not live after the sibcall.
17127         (sibcall_pop_memory): Ditto.
17128         (sibcall_value_memory): Ditto.
17129         (sibcall_value_pop_memory): Ditto.
17131 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
17133         * generic-match-head.c (types_match): Handle non-types.
17134         * gimple-match-head.c (types_match): Likewise.
17135         * match.pd: Remove unnecessary TREE_TYPE for types_match.
17137 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
17139         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
17140         (csneg3<mode>_insn): Enable expansion of pattern.
17142 2015-05-14  Nick Clifton  <nickc@redhat.com>
17144         * config/rl78/rl78.c (rl78_select_section): Select the correct
17145         default section based upon the category of the decl.
17147 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
17149         PR rtl-optimization/30967
17150         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
17151         destination mode for the cost of scc patterns.
17153 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
17155         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
17156         using SWIM248 mode iterator.
17157         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
17158         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
17159         for operand[2] constraint.
17160         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
17162 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
17164         PR middle-end/66133
17165         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
17166         make sure it is never noreturn, even when the task body does not
17167         return.
17168         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
17169         right before GIMPLE_OMP_RETURN.
17170         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
17171         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
17172         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
17174 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17176         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
17177         * tree-ssa-math-opts.c: Include params.h
17178         (pow_synth_sqrt_info): New struct.
17179         (representable_as_half_series_p): New function.
17180         (get_fn_chain): Likewise.
17181         (print_nested_fn): Likewise.
17182         (dump_fractional_sqrt_sequence): Likewise.
17183         (dump_integer_part): Likewise.
17184         (expand_pow_as_sqrts): Likewise.
17185         (gimple_expand_builtin_pow): Use above to attempt to expand
17186         pow as series of square roots.  Removed now unused variables.
17188 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
17190         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
17191         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
17192         Remove *p0 and *p1 arguments.  Rewrite function.
17193         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
17194         (alpha_split_const_mov): Update calls to alpha_extract_integer and
17195         alpha_emit_set_long_const.
17196         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
17197         (alpha_output_mi_thunk_osf): Ditto.
17198         * config/alpha/alpha.md (movti): Do not check operands[1]
17199         for CONST_DOUBLE.
17201 2015-05-13  Richard Biener  <rguenther@suse.de>
17203         PR tree-optimization/66129
17204         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
17205         commutative.
17206         (vect_schedule_slp_instance): Fix typo.
17208 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
17210         * common.opt (fdump-internal-locations): New option.
17211         * input.c: Include diagnostic-core.h.
17212         (get_end_location): New function.
17213         (write_digit): New function.
17214         (write_digit_row): New function.
17215         (dump_location_range): New function.
17216         (dump_labelled_location_range): New function.
17217         (dump_location_info): New function.
17218         * input.h (dump_location_info): New prototype.
17219         * toplev.c (compile_file): Handle flag_dump_locations.
17221 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
17223         * gimple-expr.h (is_gimple_constant): Reorder.
17224         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
17226 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
17228         * combine.c (simplify_set): When generating a CC set, if the
17229         source already is in the correct mode, do not wrap it in a
17230         compare.  Simplify the rest of that code.
17232 2015-05-13  Richard Biener  <rguenther@suse.de>
17234         PR tree-optimization/66123
17235         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
17236         a taken edge.
17238 2015-05-13  Richard Biener  <rguenther@suse.de>
17240         PR middle-end/66110
17241         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
17242         specially.
17243         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
17245 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
17247         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
17248         * aclocal.m4: Regenerated with automake-1.11.6.
17250 2015-05-13  Tom de Vries  <tom@codesourcery.com>
17252         PR tree-optimization/66010
17253         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
17254         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
17255         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
17256         and rval based on do_deref.
17258 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17260         PR target/65103
17261         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
17262         link time constants into adress expressions and therefore set
17263         their cost to 0.
17265 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
17267         PR target/66112
17268         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
17269         Use SWI248 iterator instead of SWI.
17270         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
17271         Use eq_attr "alternative" "0" instead of match_test in
17272         length_immediate attribute computation.
17273         (*mulvhi4, *mulvhi4_1): New define_insns.
17275         PR target/66112
17276         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
17277         SIGNED to get precision of non-negative value.
17279 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17281         PR target/66048
17282         * function.c (diddle_return_value_1): Process bounds first.
17283         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
17284         register.
17286 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17288         PR rtl-optimization/64616
17289         * loop-invariant.c (can_move_invariant_reg): New.
17290         (move_invariant_reg): Call above new function to decide whether
17291         instruction can just be moved, skipping creation of temporary
17292         register.
17294 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
17296         PR target/pr66047.c
17297         * i386.c (ix86_function_sseregparm): Only return -1 if local function
17298         with implied regparm is called from -mno-sse function.
17299         (init_cumulative_args): Output error if ix86_function_sseregparm
17300         return -1 and SSE register would be needed.
17301         (function_arg_advance_32): Likewise.
17302         (function_arg_32): Likewise.
17303         * i386.h (ix86_args): Add decl field.
17305 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
17307         PR ipa/65873
17308         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
17309         inlines across optimization boundary.
17311 2015-05-12  Jason Merrill  <jason@redhat.com>
17313         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
17314         string literal and macro name.
17316 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
17318         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
17319         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
17320         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
17322 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
17324         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
17325         (-Wmisleading-indentation): New option.
17326         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
17328 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
17330         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
17331         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
17332         (alpha_extract_integer): Ditto.
17333         (alpha_legitimate_constant_p): Ditto.
17334         (alpha_split_tmode_pair): Ditto.
17335         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
17336         (alpha_expand_mov): Ditto.
17337         (print_operand): Remove handling of 'H' modifier.
17338         <case 'm'>: Remove CONST_DOUBLE handling.
17339         (summarize_insn): Handle CONST_WIDE_INT.
17340         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
17341         (anddi3): Ditto.
17342         (movti): Handle CONST_WIDE_INT.
17343         * config/alpha/constraints.md ('H'): Remove constraint definition.
17344         ('G'): Do not match MODE_FLOAT class.
17345         * config/alpha/predicates.md (const0_operand): Also match
17346         const_wide_int.
17347         (non_add_const_operand): Ditto.
17348         (non_zero_const_operand): Ditto.
17349         (some_operand): Ditto.
17350         (input_operand): Ditto.  Handle CONST_WIDE_INT.
17351         (and_operand): Do not match const_double.
17352         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
17354 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
17356         PR target/65697
17357         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
17358         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
17359         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
17360         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
17361         is_mm_seq_cst, is_mm_sync): New accessor functions.
17362         * builtins.c (expand_builtin_sync_operation,
17363         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
17364         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
17365         (get_memmodel,  expand_builtin_atomic_compare_exchange,
17366         expand_builtin_atomic_load, expand_builtin_atomic_store,
17367         expand_builtin_atomic_clear): Use new accessor routines.
17368         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
17369         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
17370         (maybe_emit_sync_lock_test_and_set): Use new accessors and
17371         MEMMODEL_SYNC_ACQUIRE.
17372         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
17373         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
17374         expand_atomic_store): Use new accessors.
17375         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
17376         * tsan.c (instrument_builtin_call): Update check for memory model beyond
17377         final enum to use MEMMODEL_LAST.
17378         * c-family/c-common.c: Use new accessor for memmodel_base.
17379         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
17380         accessors.
17381         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
17382         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
17383         mem_thread_fence, *dmb): Likewise.
17384         * config/alpha/alpha.c (alpha_split_compare_and_swap,
17385         alpha_split_compare_and_swap_12): Likewise.
17386         * config/arm/arm.c (arm_expand_compare_and_swap,
17387         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
17388         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
17389         atomic_loaddi): Likewise.
17390         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
17391         Likewise.
17392         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
17393         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
17394         use new accessors.
17395         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
17396         atomic_store<mode>, atomic_compare_and_swap<mode>,
17397         atomic_exchange<mode>): Use new accessors.
17398         * config/mips/mips.c (mips_process_sync_loop): Likewise.
17399         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
17400         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
17401         rs6000_post_atomic_barrier): Add new cases.
17402         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
17403         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
17404         (atomic_load<mode>): Add new cases and use new accessors.
17405         (store_quadpti): Add new cases.
17406         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
17407         accessors.
17408         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
17409         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
17410         model, not 8.
17412 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
17414         * ipa-devirt.c (type_with_linkage_p): New function.
17415         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
17416         type has linkage.
17417         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
17418         (can_be_name_hashed_p): Simplify.
17419         (hash_odr_name): Check that type has linkage before checking if it is
17420         anonymous.
17421         (types_same_for_odr): Likewise.
17422         (odr_name_hasher::equal): Likewise.
17423         (odr_subtypes_equivalent_p): Likewise.
17424         (warn_types_mismatch): Likewise.
17425         (get_odr_type): Likewise.
17426         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
17427         * ipa-utils.h (odr_type_p): Move offline.
17428         * tree.c (need_assembler_name_p): Fix handling of types
17429         without linkages.
17430         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
17432 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
17434         * timevar.c (timevar_enable): Delete in favor of...
17435         (g_timer): New global.
17436         (struct timevar_def): Move to timevar.h inside class timer.
17437         (struct timevar_stack_def): Likewise.
17438         (timevars): Delete global in favor of field "m_timevars" within
17439         class timer in timevar.h
17440         (stack): Likewise, in favor of field "m_stack".
17441         (unused_stack_instances): Likewise, in favor of field
17442         "m_unused_stack_instances".
17443         (start_time): Likewise, in favor of field "m_start_time".
17444         (get_time): Eliminate check for timevar_enable.
17445         (timer::timer): New function, built from part of timevar_init.
17446         (timevar_init): Rewrite idempotency test from using
17447         "timevar_enable" bool to using dynamic allocation of "g_timer".
17448         Move rest of implementation into timer's constructor.
17449         (timevar_push_1): Rename to...
17450         (timer::push): ...this, adding "m_" prefixes to variables that
17451         are now fields of timer.
17452         (timevar_pop_1): Likewise, rename to...
17453         (timer::pop): ...this, and add "m_" prefixes.
17454         (timevar_start): Replace test for "timevar_enable" with one for
17455         "g_timer", and move bulk of implementation to...
17456         (timer::start): ...here, adding "m_" prefixes.
17457         (timevar_stop): Likewise, from here...
17458         (timer::stop): ...to here.
17459         (timevar_cond_start): Likewise, from here...
17460         (timer::cond_start): ...to here.
17461         (timevar_cond_stop): Likewise, from here...
17462         (timer::cond_stop): ...to here.
17463         (validate_phases): Rename to...
17464         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
17465         locals "total" and "tv" const.
17466         (timevar_print): Rename to...
17467         (timer::print): ...this, and add "m_" prefixes.  Make locals
17468         "total" and "tv" const.  Eliminate test for timevar_enable.
17469         * timevar.h (timevar_enable): Eliminate.
17470         (g_timer): New declaration.
17471         (timevar_push_1): Eliminate.
17472         (timevar_pop_1): Eliminate.
17473         (timevar_print): Eliminate.
17474         (class timer): New class.
17475         (timevar_push): Rewrite to use g_timer.
17476         (timevar_pop): Likewise.
17477         * toplev.c (toplev::~toplev): Likewise.
17479 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
17481         * arm-protos.h (arm_sched_autopref): Delete.
17482         (tune_params): Re-organize, use enums for flag values.
17483         (FUSE_OPS): New macro.
17484         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
17485         (ARM_PREFETCH_BENEFICIAL): Likewise.
17486         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
17487         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
17488         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
17489         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
17490         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
17491         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
17492         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
17493         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
17494         format.
17495         (arm_option_override, thumb2_reorg, arm_print_tune_info)
17496         (aarch_macro_fusion_pair_p): Update uses of current_tune.
17497         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
17499 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
17501         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
17502         "break".
17504 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
17505             Sandra Loosemore <sandra@codesourcery.com>
17507         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
17508         value.
17509         (REG_CLASS_NAMES): Add "IJMP_REGS".
17510         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
17511         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
17512         use new "c" register constraint.
17513         * config/nios2/constraint.md (c): New register constraint
17514         corresponding to IJMP_REGS.
17516 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
17518         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
17519         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
17520         define_splits): Delete, revamp, transmogrify into ...
17521         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
17522         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
17523         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
17524         New.
17526 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
17528         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
17529         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
17531 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
17533         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
17534         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
17535         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
17536         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
17537         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
17538         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
17539         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
17540         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
17541         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
17542         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17543         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
17544         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
17545         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
17546         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
17547         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
17548         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
17549         and 30 corresponding splitters): Delete.
17551 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
17553         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
17554         zero_extract.
17556 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
17558         * combine.c (recog_for_combine_1): New function, factored out
17559         from recog_for_combine.
17560         (change_zero_ext): New function.
17561         (recog_for_combine): If recog fails, try again with the pattern
17562         modified by change_zero_ext; if that still fails, restore the
17563         pattern.
17565 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
17567         * combine.c (get_undo_marker): New function.
17568         (undo_to_marker): New function, largely factored out from ...
17569         (undo_all): ... this.  Adjust.
17571 2015-05-12  Richard Biener  <rguenther@suse.de>
17573         PR tree-optimization/66101
17574         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
17575         fixup if we turn a loop exit edge to a fallthru edge.
17577 2015-05-12  Richard Biener  <rguenther@suse.de>
17579         PR tree-optimization/37021
17580         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
17581         (SLP_TREE_TWO_OPERATORS): New define.
17582         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
17583         SLP_TREE_TWO_OPERATORS.
17584         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
17585         SLP node.
17586         (vect_build_slp_tree): Adjust.
17587         (vect_analyze_slp_cost_1): Likewise.
17588         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
17589         emitting two vector stmts and mixing the results.
17591 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17593         * call.c (print_z_candidates): Remove dead code.
17595 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17597         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
17598         and zEC12_simple_fp.
17599         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
17600         to 1.
17602 2015-05-12  Tom de Vries  <tom@codesourcery.com>
17604         PR tree-optimization/66010
17605         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
17606         ifn_va_arg.
17607         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
17608         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
17609         va_lists are passed, and remove corresponding handling.
17610         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
17611         do_deref argument to ifn_va_arg.
17612         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
17613         ifn_va_arg.
17615 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17617         PR target/65955
17618         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
17619         REG before taking its REGNO.
17621 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17623         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
17624         rsp->sign_bit_copies and rsp->nonzero_bits into ...
17625         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
17626         present to get more accurate information about the number of sign bit
17627         copies and non zero bits.
17629 2015-05-12  Richard Biener  <rguenther@suse.de>
17631         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
17632         do not allow unrolling.
17634 2015-05-11  Richard Henderson  <rth@redhat.com>
17636         * config/i386/i386-modes.def (CCP): New.
17637         * config/i386/i386.c (put_condition_code): Handle it.
17638         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
17640 2015-05-11  Richard Henderson  <rth@redhat.com>
17642         * target.def (md_asm_clobbers): Replace with...
17643         (md_asm_adjust): this.
17644         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
17645         (TARGET_MD_ASM_ADJUST): New.
17646         * tm.texi: Rebuild.
17647         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
17648         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
17649         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
17651         * cfgexpand.c (check_operand_nalternatives): Accept vector of
17652         constraints instead of lists of outputs and inputs.
17653         (expand_asm_stmt): Save and restore input_location around the
17654         body of the function.  Move asm data into vectors instead of
17655         building tree lists.  Generate cleanup sequences as needed,
17656         rather than waiting til the end.  Use new md_asm_adjust hook.
17658         * config/vxworks.c: Include vec.h before target.h.
17659         * gimple.c: Likewise.
17660         * incpath.c: Likewise.
17661         * mode-switching.c: Likewise.
17663         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
17664         (cris_md_asm_adjust): this.
17665         (TARGET_MD_ASM_CLOBBERS): Remove.
17666         (TARGET_MD_ASM_ADJUST): New.
17667         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
17668         (ix86_md_asm_adjust): this.
17669         (TARGET_MD_ASM_CLOBBERS): Remove.
17670         (TARGET_MD_ASM_ADJUST): New.
17671         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
17672         (mn10300_md_asm_adjust): this.
17673         (TARGET_MD_ASM_CLOBBERS): Remove.
17674         (TARGET_MD_ASM_ADJUST): New.
17675         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
17676         (rs6000_md_asm_adjust): this.
17677         (TARGET_MD_ASM_CLOBBERS): Remove.
17678         (TARGET_MD_ASM_ADJUST): New.
17679         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
17680         (visium_md_asm_adjust): this.
17681         (TARGET_MD_ASM_CLOBBERS): Remove.
17682         (TARGET_MD_ASM_ADJUST): New.
17684 2015-05-11  Richard Henderson  <rth@redhat.com>
17686         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
17687         if noutputs is zero.
17688         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
17690         * cfgexpand.c (expand_asm_operands): Merge into...
17691         (expand_asm_stmt): ... here.
17693         * cfgexpand.c (expand_asm_operands): Don't call
17694         resolve_asm_operand_names.
17695         * stmt.c (resolve_asm_operand_names): Clarify block comment.
17697 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
17699         * dwarf2out.c (gen_member_die): Sanity check that we access
17700         TYPE_MAIN_VARIANT for TYPE_METHODS.
17701         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
17702         checking TYPE_METHODS.
17703         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
17704         if non-null.
17705         (build_distinct_type_copy): Clear TYPE_METHODS.
17706         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
17707         (verify_type): Allow TYPE_METHODS to be error_mark_node.
17708         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
17710 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
17712         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
17713         (emit_pattern_before_setloc): Likewise.
17715 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
17717         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
17718         for define_peephole2s.
17719         (get_peephole2_pattern): New function.
17720         (main): Use it.  Call validate_pattern.
17722 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
17724         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
17725         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
17726         (Last callee saved reg is different for AVR_TINY architecture)
17728 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
17730         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
17731         when looking for memory references.
17733 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
17735         PR target/65753
17736         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
17737         via function pointers.
17739 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
17741         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
17742         indirect call by forcing address into a pseudo with -fno-plt.
17743         * common.opt (flag_plt): New option.
17744         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
17745         ([-fno-plt]): Document.
17747 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
17749         PR bootstrap/66105
17750         * config/rs6000/option-defaults.h: Add space between string literal
17751         and macro name.
17753 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17755         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
17756         accross ARM targets.
17758 2015-05-11  Christian Bruel  <christian.bruel@st.com>
17760         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
17761         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
17763 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
17765         PR rtl-optimization/66076
17766         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
17767         Don't grow the heap array if it is already big enough from a
17768         previous iteration.
17770 2015-05-11  Christian Bruel  <christian.bruel@st.com>
17772         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
17773         (is_called_in_ARM_mode): Remove.
17774         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
17775         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
17776         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
17777          arm_declare_function_name.
17779 2015-05-11  Christian Bruel  <christian.bruel@st.com>
17781         * config/arm/arm.c (arm_option_override): Reoganized and split into :
17782         (arm_option_params_internal); New function.
17783         (arm_option_check_internal): New function.
17784         (arm_option_override_internal): New function.
17785         (thumb_code, thumb1_code): Remove.
17786         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
17787         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
17788         (thumb_code, thumb1_code): Remove.
17789         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
17791 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
17793         * config/alpha/alpha.c (alpha_emit_set_const_1)
17794         (alpha_emit_set_long_const, alpha_extract_integer)
17795         (alpha_legitimate_constant_p, alpha_split_const_mov)
17796         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
17797         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17798         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
17799         HOST_WIDE_INT_1U.
17800         * config/alpha/predicates.md (mode_mask_operand): Do not match
17801         const_double RTX.
17802         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17803         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
17804         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
17805         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
17806         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
17808 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
17810         PR target/65780
17811         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
17812         default_binds_local_p_2.
17813         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
17814         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
17816 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
17818         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
17820 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
17822         Patch by Richard Biener
17823         * coverage.c (coverage_obj_init): Delay building of type variant
17824         until the type is finished.
17826 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
17828         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
17829         mismatch between C and C++ type; compoare correctly ARG_TYPES
17830         for non-prototypes and output correctly parameter index for METHOD_TYPE.
17831         (odr_types_equivalent_p): Fix wording of warning about attributes;
17832         it is OK to match prototype and non-prototype.
17834 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
17836         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
17837         TYPE_ARG_TYPES list.
17838         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
17839         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
17841 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
17843         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
17844         * tree.h (is_lang_specific): Constify.
17846 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
17848         PR tree-optimization/64454
17849         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
17850         Rewrite.
17852 2015-05-08  Jason Merrill  <jason@redhat.com>
17854         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
17855         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
17856         config/darwin.h, config/darwin9.h, config/elfos.h,
17857         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
17858         config/microblaze/microblaze.h, config/mips/mips.h,
17859         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
17860         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
17861         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
17862         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
17863         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
17864         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
17865         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
17866         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
17867         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
17868         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
17869         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
17870         between string literal and macro name.
17872 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17874         * jump.c: Change argument types to rtx_insn *.
17875         * rtl.h: Adjust.
17877 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17879         * lra-constraints.c: Change argument type to rtx_insn *.
17881 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17883         * df-problems.c: Change argument type to rtx_insn *.
17885 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17887         * combine.c: Change argument type to rtx_insn *.
17889 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17891         * rtl.h: Adjust.
17892         * rtlanal.c: Change argument type to rtx_insn *.
17894 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17896         * sched-deps.c: Change argument types to rtx_insn *.
17897         * sched-int.h: Adjust.
17899 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17901         * dwarf2cfi.c: Change argument type to rtx_insn *.
17903 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17905         * ira.c (decrease_live_ranges_number): Changetype of local
17906         variable to rtx_insn *.
17907         * recog.c: Change argument types to rtx_insn *.
17908         * recog.h: Adjust.
17910 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17912         * reorg.c: Change argument types to rtx_insn *.
17914 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17916         * ira-color.c: Change argument types to rtx_insn *.
17917         * lra-eliminations.c: Likewise.
17918         * ira.h: Adjust.
17920 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17922         * gcse.c: Change argument types to rtx_insn *.
17924 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17926         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
17928 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17930         * emit-rtl.c (emit_debug_insn_before): Change argument type to
17931         rtx_insn *.
17932         * rtl.h: Adjust.
17934 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17936         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
17937         * rtl.h: Adjust.
17939 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17941         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
17942         * rtl.h: Adjust.
17944 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17946         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
17947         * rtl.h: Adjust.
17949 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17951         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
17952         * rtl.h: Adjust.
17954 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17956         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
17957         to rtx_insn *.
17958         * rtl.h: Adjust.
17960 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17962         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
17963         to rtx_insn *.
17964         * rtl.h: Likewise.
17966 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17968         * except.c (can_nonlocal_goto): Change type of argument to
17969         rtx_insn *.
17970         * rtl.h: Adjust.
17972 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17974         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
17975         * rtl.h: Adjust.
17977 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17979         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
17980         * cfgrtl.c (can_delete_label_p): Adjust.
17981         * rtl.h: likewise.
17983 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17985         * reorg.c (stop_search_p): Change argument to rtx_insn *.
17987 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17989         * except.c (make_reg_eh_region_note): Change argument to
17990         rtx_insn *.
17991         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
17992         * except.h: Adjust.
17994 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17996         * mode-switching.c (commit_mode_sets): Change type of local
17997         variable from rtx to rtx_insn *.
17999 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
18001         * doc/install.texi (--enable-languages): Add missing jit and lto info.
18002         Add ^ to grep command.
18003         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
18004         arg to last gimple_simplify declaration.  Add missing gimple_build
18005         declaration for built-in function case with four tree args.
18007 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
18008             Szabolcs Nagy  <szabolcs.nagy@arm.com>
18010         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
18011         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
18012         (GNU_USER_DYNAMIC_LINKERN32): Update.
18014 2015-05-08  Richard Biener  <rguenther@suse.de>
18016         PR tree-optimization/66036
18017         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18018         Handle strided group loads.
18019         (vect_verify_datarefs_alignment): Likewise.
18020         (vect_enhance_data_refs_alignment): Likewise.
18021         (vect_analyze_group_access): Likewise.
18022         (vect_analyze_data_ref_access): Likewise.
18023         (vect_analyze_data_ref_accesses): Likewise.
18024         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
18025         (vectorizable_load): Likewise.
18027 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
18029         * config/rs6000/rs6000.md: Require operand inequality in one
18030         of the peepholes.
18032 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
18033             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18035         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
18036         from (set ...).
18037         * config/rx/rx.md (movdi, movdf): Likewise.
18038         Likewise for define_peephole2s.
18040 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
18042         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
18043         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
18044         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
18045         vtst_u64): Rewrite using gcc vector extensions.
18047 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
18049         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
18050         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
18052 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
18054         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
18056 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18058         * config/glibc-stdint.h (OPTION_MUSL): Define.
18059         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
18060         Change the definition based on OPTION_MUSL for 64 bit targets.
18061         * config/linux.h (OPTION_MUSL): Redefine.
18062         * config/alpha/linux.h (OPTION_MUSL): Redefine.
18063         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
18064         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
18066 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
18067             Szabolcs Nagy  <szabolcs.nagy@arm.com>
18069         * config.gcc (LIBC_MUSL): New tm_defines macro.
18070         * config/linux.h (OPTION_MUSL): Define.
18071         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
18072         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
18073         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18074         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18075         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18076         * config/linux.opt (mmusl): New option.
18077         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
18078         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18079         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18080         * configure: Regenerate.
18082 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
18083             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18085         PR target/48904
18086         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
18087         * config/i386/knetbsd-gnu64.h: New file.
18089 2015-05-08  Marek Polacek  <polacek@redhat.com>
18091         PR c/64918
18092         * doc/invoke.texi: Document -Woverride-init-side-effects.
18094 2015-05-07  Marek Polacek  <polacek@redhat.com>
18096         PR c/65179
18097         * doc/invoke.texi: Document -Wshift-negative-value.
18099 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
18101         * gcov-tool.c (do_merge): Refactore to remove int ret.
18102         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
18103         !type == FUNC to type != FUNC.
18104         * reload.h (struct target_reload): Changee to type of
18105         x_spill_indirect_levels from bool to unsigned char.
18107 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
18109         * rtl.h (always_void_p): New function.
18110         * gengenrtl.c (always_void_p): Likewise.
18111         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
18112         with code foo are always VOIDmode.
18113         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
18114         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
18115         compare-elim.c, config/aarch64/aarch64.c,
18116         config/aarch64/aarch64.md, config/alpha/alpha.c,
18117         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
18118         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
18119         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
18120         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18121         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
18122         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
18123         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
18124         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
18125         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
18126         config/ia64/vect.md, config/iq2000/iq2000.c,
18127         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
18128         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
18129         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
18130         config/mep/mep.c, config/microblaze/microblaze.c,
18131         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
18132         config/mn10300/mn10300.c, config/msp430/msp430.c,
18133         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
18134         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
18135         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
18136         config/rs6000/altivec.md, config/rs6000/rs6000.c,
18137         config/rs6000/rs6000.md, config/rs6000/vector.md,
18138         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
18139         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
18140         config/sh/sh.md, config/sh/sh_treg_combine.cc,
18141         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
18142         config/spu/spu.md, config/stormy16/stormy16.c,
18143         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
18144         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
18145         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
18146         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
18147         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
18148         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
18149         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
18150         var-tracking.c: Update calls accordingly.
18152 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
18154         PR middle-end/192
18155         PR middle-end/54303
18156         * varasm.c (function_mergeable_rodata_prefix): New function.
18157         (mergeable_string_section): Use it.
18158         (mergeable_constant_section): Use it.
18160 2015-05-07  Jeff Law  <law@redhat.com>
18162         PR target/39726
18163         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18164         simplifier to narrow arithmetic.
18165         * generic-match-head.c: (types_match, single_use): New functions.
18166         * gimple-match-head.c: (types_match, single_use): New functions.
18168 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18170         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
18171         rtx type.
18173 2015-05-07  Richard Biener  <rguenther@suse.de>
18175         PR tree-optimization/66002
18176         * passes.def: Schedule another pass_merge_phi after ifcombine, right
18177         before phiopt.
18179 2015-05-07  Marek Polacek  <polacek@redhat.com>
18180             Martin Uecker  <uecker@eecs.berkeley.edu>
18182         * doc/invoke.texi: Document -fsanitize=bounds-strict.
18183         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
18184         into SANITIZE_NONDEFAULT.
18185         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
18187 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
18189         PR target/66015
18190         * config/alpha/alpha.c (alpha_override_options_after_change): New.
18191         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
18192         (alpha_override_options): Move align_loops, align_jumps and
18193         align_functions handling into alpha_override_options_after_change.
18195 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
18196             Chris Jones  <chrisj@nvidia.com>
18197             Joshua Conner  <jconner@nvidia.com>
18199         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
18200         linking of crtfastmath.o.
18201         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
18203 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
18205         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
18206         (cstore<mode>4_unsigned_imm): New expander.
18207         (cstore<mode>4): Remove empty constraint strings.  Use the new
18208         expanders.
18210 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
18212         PR target/64208
18213         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
18214         alternatives.
18216 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18218         * config/aarch64/geniterators.sh: Use standard BRE in sed.
18220 2015-05-06  Alan Modra  <amodra@gmail.com>
18222         PR target/66033
18223         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
18224         (UNSPEC_NOP): Define.
18225         (reload_vsx_from_gpr<mode>): Add missing DONE.
18226         (reload_gpr_from_vsx<mode>): Likewise.
18227         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
18228         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
18230 2015-05-06  Christian Bruel  <christian.bruel@st.com>
18232         PR target/66015
18233         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
18234         align_jumps, align_functions into aarch64_override_options_after_change.
18236 2015-05-06  Richard Biener  <rguenther@suse.de>
18238         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
18239         vect_transform_slp_perm_load to check if we support a permutation
18240         for basic-block vectorization.
18242 2015-05-06  Nick Clifton  <nickc@redhat.com>
18244         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
18245         used, even if it is not being used as a frame pointer.
18247 2015-05-05  Jason Merrill  <jason@redhat.com>
18249         * dwarf2out.c (gen_member_die): Don't emit anything for an
18250         anonymous class constructor.
18252 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
18254         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
18255         that it reflects the block structure.
18256         (afdo_propagate_edge): Likewise.
18257         (afdo_calculate_branch_prob): Likewise.
18258         (afdo_annotate_cfg): Likewise.
18259         * cfgcleanup.c (equal_different_set_p): Likewise.
18260         (try_crossjump_to_edge): Likewise.
18261         * cgraph.c (cgraph_node::verify_node): Likewise.
18262         * cgraphunit.c (expand_all_functions): Likewise.
18263         * config/i386/i386.c (ix86_expand_copysign): Likewise.
18264         (exact_dependency_1): Likewise.
18265         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
18266         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
18267         * gensupport.c (process_define_subst): Likewise.
18268         * lto-wrapper.c (merge_and_complain): Likewise.
18269         * tree-if-conv.c (if_convertible_bb_p): Likewise.
18270         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
18271         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
18272         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18273         * tree-vect-loop.c (vectorizable_reduction): Likewise.
18274         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
18275         * tree-vect-stmts.c (vectorizable_shift): Likewise.
18276         * tree-vrp.c (vrp_finalize): Likewise.
18277         * tree.c (variably_modified_type_p): Likewise.
18279 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
18281         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
18282         on darwin12 and later.
18283         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
18284         file to pass -rdynamic on darwin12 and later.
18285         * config/darwin.opt (rdynamic): Add.
18287 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
18289         * doc/extend.texi (C Extensions): Update menu for moved Variable
18290         Attributes and Type Attributes sections.
18292 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
18294         PR target/65990
18295         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
18296         if rep_8byte stringop strategy was specified for 32-bit target.
18298 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
18300         PR target/65915
18301         * config/i386/i386.md (vector convert to float spltiter): Check for
18302         xmm16+, when splitting scalar float conversion.
18303         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
18305 2015-05-05  Nick Clifton  <nickc@redhat.com>
18307         * config/msp430/msp430-opts.h (enum msp430_regions): New.
18308         * config/msp430/msp430.c (msp430_override_options): Complain if
18309         -mcode-region or -mdata-region is used on a non MSP430X.
18310         (msp430_section_attr): New function.  Checks lower, upper and
18311         either attributes.
18312         (msp430_attribute_table): Add lower, upper and either.
18313         (gen_prefix): New function.  Generates a prefix for a section
18314         name.
18315         (msp430_select_section): New function - handles the choice of
18316         section for an object.  Takes into account memory region
18317         attributes and options.
18318         (msp430_function_section): Use gen_prefix.
18319         (TARGET_SECTION_TYPE_FLAGS): Define.
18320         (msp430_section_type_flags): New function.
18321         (TARGET_ASM_UNIQUE_SECTION): Define.
18322         (msp430_unique_section): New function.
18323         (msp430_output_aligned_decl_common): New function.
18324         (msp430_do_not_relax_short_jumps): New function.
18325         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
18326         Define.
18327         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18328         * config/msp430/msp430-protos.h
18329         (msp430_do_not_relax_short_jumps): New prototype.
18330         (msp430_output_aligned_decl_common): New prototype.
18331         * config/msp430/msp430.md (length): New attribute.
18332         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
18333         then use a long code sequence for short jumps.
18334         * config/msp430/msp430.opt (mcode-region): New.
18335         (mdata-region): New.
18336         * doc/invoke.texi: Document new options.
18337         * doc/extend.texi: Document new attributes.
18339 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
18341         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
18342         (tune_params): Add field branch_costs.
18343         (aarch64_branch_cost): Declare.
18344         * gcc/config/aarch64.c (generic_branch_cost): New.
18345         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
18346         (cortexa53_tunings): Likewise.
18347         (cortexa57_tunings): Likewise.
18348         (thunderx_tunings): Likewise.
18349         (xgene1_tunings): Likewise.
18350         (aarch64_branch_cost): Define.
18351         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
18353 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
18355         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
18356         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
18357         * config/i386/i386.md: Ditto.
18358         * config/i386/winnt.c: Ditto.
18360 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
18362         * doc/extend.texi (__atomic Builtins): Move implementation details
18363         to the end of the description, rewrite opening paragraphs, state
18364         difference with __sync builtins, state C11/C++11 assumptions,
18365         weaken itemized descriptions, add explanation of memory model
18366         behaviour, expand description of compare-exchange, simplify text.
18368 2015-05-05  Renlin Li  <renlin.li@arm.com>
18370         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
18372 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
18374         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
18375         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18376         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
18377         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
18378         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
18379         * configure: Regenerate.
18380         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
18381         * doc/install.texi (aarch64*-*-*): Document new
18382         --enable-fix-cortex-a53-843419 option.
18383         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
18384         and -mno-fix-cortex-a53-843419 options.
18386 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
18388         PR target/65871
18389         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
18391 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
18393         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
18394         fix overactive TYPE_MIN_VALUE check and add FIXME for type
18395         compatibility problems.
18397 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
18399         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
18400         constraints.
18401         (cbranchsi4_reg): New.
18402         * config/microblaze/microblaze.c
18403         (microblaze_expand_conditional_branch_reg): New.
18404         * config/microblaze/microblaze-protos.h
18405         (microblaze_expand_conditional_branch_reg): New prototype.
18407 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
18409         * config/microblaze/microblaze.md (peephole2): New.
18411 2015-05-04  Jeff Law  <law@redhat.com>
18413         Revert:
18414         2015-05-04  Jeff Law  <law@redhat.com>
18416         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18417         simplifier to narrow arithmetic.
18418         * generic-match-head.c: (types_match, single_use): New functions.
18419         * gimple-match-head.c: (types_match, single_use): New functions.
18421 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
18423         PR target/65987
18424         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
18425         (split_branches): Likewise.
18427 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
18429         * common.opt (fdelete-null-pointer-checks): Init to -1.
18430         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
18431         override flag_delete_null_pointer_checks default.
18432         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
18433         behavior re address zero.  Better document target-specific behavior.
18434         (-fisolate-errneous-paths-dereference): Mention relationship to
18435         -fdelete-null-pointer-checks.
18437 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
18439         PR tree-optimization/65984
18440         * ubsan.c: Include tree-cfg.h.
18441         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
18442         stmt_could_throw_p test, rename can_throw variable to ends_bb.
18444 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
18446         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
18447         to CONST_DOUBLE_P predicate.
18448         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
18449         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
18450         allow only operands that satisfy standard_sse_constant_p predicate.
18451         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
18452         to CONST_DOUBLE_P predicate.
18454 2015-05-04  Jeff Law  <law@redhat.com>
18456         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
18457         simplifier to narrow arithmetic.
18458         * generic-match-head.c: (types_match, single_use): New functions.
18459         * gimple-match-head.c: (types_match, single_use): New functions.
18461 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
18463         * config/arm/arm.c: Restore bootstrap.
18465 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
18467         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
18468         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
18469         as CONST_WIDE_INT, not CONST_DOUBLE.
18470         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
18471         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
18472         (ix86_find_base_term): Do not check for CONST_DOUBLE.
18473         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
18474         (ix86_build_signbit_mask): Rewrite using wide ints.
18475         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
18476         (ix86_rtx_costs): Handle CONST_WIDE_INT.
18477         (find_constant): Ditto.
18478         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
18479         using gen_int_mode.
18480         * config/i386/predicates.md (x86_64_immediate_operand)
18481         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18482         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
18483         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
18484         (const0_operand): Also match const_wide_int.
18485         (constm1_operand): Ditto.
18486         (const1_operand): Ditto.
18488 2015-05-04  Richard Biener  <rguenther@suse.de>
18490         PR tree-optimization/65965
18491         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
18492         store groups at gaps.
18494 2015-05-04  Richard Biener  <rguenther@suse.de>
18496         PR tree-optimization/65935
18497         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
18498         then make sure to apply that swapping to the IL.
18500 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
18502         * Makefile.in (PATCHLEVEL_c): New variable.
18503         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
18504         expand the same way as if DEVPHASE_c was non-empty.
18506 2015-05-04  Kai Tietz  <ktietz@redhat.com>
18508         PR target/65559
18509         * lto-wrapper.c (run_gcc): Open filename
18510         in binary-mode.
18512 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
18514         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
18515         sections up in file, to immediately after the Function Attributes
18516         section.
18518 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
18520         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
18522 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18524         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
18525         (insert_partition_copy_on_edge): Adjust.
18526         (insert_rtx_to_part_on_edge): Likewise.
18527         (insert_part_to_rtx_on_edge): Likewise.
18529 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18531         * function.c (set_return_jump_label): Change type of argument to
18532         rtx_insn *.
18533         * function.h (set_return_jump_label): Adjust.
18535 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18537         * reload.h (struct reg_equivs_t): Change type of init to
18538         rtx_insn *.
18539         * ira.c (fix_reg_equiv_init): Adjust.
18540         * reload1.c (eliminate_regs_1): Likewise.
18541         (init_eliminable_invariants): Likewise.
18543 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18545         * cselib.c (fp_setter_insn): Take a rtx_insn *.
18546         * cselib.h (fp_setter_insn): Adjust.
18548 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18550         * recog.c (struct validate_replace_src_data): Change type of
18551         insn field to rtx_insn *.
18552         (validate_replace_src_group): Change type of argument to rtx_insn *.
18553         * recog.h (validate_replace_src_group): Adjust.
18555 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18557         * haifa-sched.c: Change the type of some variables to rtx_insn *.
18558         * sched-deps.c: Likewise.
18559         * sched-int.h: Likewise.
18560         * sched-rgn.c: Likewise.
18561         * sel-sched.c: Likewise.
18563 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18565         to rtx_insn *.
18566         * config/i386/i386.c: Change the type of some arguments to
18567         rtx_insn *.
18568         * config/arm/arm.c: Likewise.
18570 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18572         * lra-constraints.c: Change type of some arguments to rtx_insn *.
18574 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18576         * regcprop.c (kill_autoinc_value): Change type of argument to
18577         rtx_insn *.
18579 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18581         * genrecog.c (print_subroutine): Adjust.
18582         * recog.c (get_bool_attr_mask_uncached): Likewise.
18583         * recog.h (struct recog_data_d): Change the type of insn to
18584         rtx_insn *.
18586 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18588         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
18590 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18592         * df-problems.c (df_set_note): Change type of argument to
18593         rtx_insn *.
18595 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18597         * builtins.c (expand_builtin_trap): Change type of local
18598         variable to rtx_insn *.
18599         (add_sched_insns_for_speculation): Likewise.
18600         (ix86_emit_save_regs): Likewise.
18601         (get_scratch_register_on_entry): Likewise.
18602         (ix86_emit_restore_reg_using_pop): Likewise.
18603         (ix86_emit_leave): Likewise.
18604         (ix86_emit_restore_regs_using_mov): Likewise.
18605         (ix86_expand_epilogue): Likewise.
18606         Likewise.
18607         (rl78_alloc_physical_registers_umul): Likewise.
18608         * cselib.c (discard_useless_locs): Likewise.
18609         (cselib_invalidate_regno): Likewise.
18610         (cselib_invalidate_mem): Likewise.
18611         * function.c (expand_function_start): Likewise.
18612         (emit_use_return_register_into_block): Likewise.
18613         * gcse.c: Likewise.
18614         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
18615         * ifcvt.c (noce_get_alt_condition): Likewise.
18616         * loop-doloop.c (doloop_condition_get): Likewise.
18617         * lra-constraints.c (inherit_in_ebb): Likewise.
18618         * modulo-sched.c (sms_schedule_by_order): Likewise.
18619         * recog.c (next_insn_tests_no_inequality): Likewise.
18620         * reorg.c (emit_delay_sequence): Likewise.
18621         (update_reg_dead_notes): Likewise.
18622         (fix_reg_dead_note): Likewise.
18623         (fill_slots_from_thread): Likewise.
18624         (delete_computation): Likewise.
18626 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
18628         * doc/extend.texi (Variable Attributes): Add menu and proper
18629         @nodes to subsections.  Move Microsoft Windows attributes to
18630         their own subsection.
18631         (Type Attributes): Reorganize introduction to remove duplicate
18632         list of attributes.  Add menu and proper @nodes to subsections.
18633         Alphabetize the main table of common attributes.
18635 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
18637         * match.pd: New simplification patterns.
18638         (x + (x & 1))  -> ((x + 1) & ~1)
18639         (x & ~(x & y)) -> ((x & ~y))
18640         (x | ~(x | y)) -> ((x | ~y))
18642 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18644         * target.def (attribute_table): Mention that struct attribute_spec
18645         is defined in tree-core.h rather than tree.h
18646         * doc/tm.texi: Regenerate.
18648 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
18650         * genrecog.c (test): Rename to rtx_test.  Update rest of file
18651         accordingly.
18653 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
18655         PR translation/65959
18656         * params.h (DEFPARAM): Rename msgid to nocmsgid.
18658 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
18660         * gcc/config/aarch64/aarch64-protos.h (tune_params):
18661         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
18662         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
18663         Return value depending on target.
18664         (generic_tunings): Initialize new target settings.
18665         (cortexa53_tunings): Likewise.
18666         (cortexa57_tunings): Likewise.
18667         (thunderx_tunings): Likewise.
18668         (xgene1_tunings): Likewise.
18670 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
18672         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
18673         Make Cortex-A53 shift costs more accurate.
18675 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18677         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
18678         UNSIGNED_FLOAT.
18680 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
18682         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
18683         Calculate cost of op0 and op1 in PLUS and MINUS cases.
18685 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18687         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18688         Add cost of op0 in the compare-with-fpzero case.
18690 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
18692         * builtins.c (fold_builtin_1): Remove spurious second
18693         semicolon.
18694         * cgraph.h (symtab_node::get_availability): Likewise.
18695         * opts.c (common_handle_option): Remove spurious second semicolon.
18696         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18697         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
18699 2015-04-30  Caroline Tice  <cmtice@google.com>
18701         PR gcov-profile/65929
18702         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
18703         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
18704         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
18705         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
18706         * doc/tm.texi: Regenerate.
18707         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
18708         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
18709         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
18710         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
18712 2015-04-30  Marek Polacek  <polacek@redhat.com>
18714         * varasm.c (handle_cache_entry): Fix logic.
18716 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18718         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
18719         (*extrsi5_insn_uxtw_alt): Likewise.
18720         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
18721         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
18722         operations.
18724 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18726         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
18727         fabd in ABS case.
18729 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18731         * config/aarch64/aarch64.md
18732         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
18733         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
18734         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
18735         appropriately.  Handle alternative EON form.
18737 2015-04-30  Renlin Li  <renlin.li@arm.com>
18739         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
18740         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
18742 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
18744         PR ipa/65873
18745         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
18746         -fstrict-aliasing boundaries.
18748 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18750         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
18751         and [SU]MNEGL patterns.
18753 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18755         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
18756         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
18757         combined arithmetic-shift ops.  Properly handle all shift and extend
18758         operations that can occur in combination with PLUS/MINUS.
18759         Rename maybe_fma to compound_p.
18760         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
18761         arithmetic and shift operations.
18763 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18765         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
18766         rather than arith_shift cost when costing ADD/MINUS of an
18767         extended value.
18769 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
18771         PR lto/65948
18772         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
18773         to itself.
18775 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
18777         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
18778         are for the same position.
18780 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
18782         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
18783         vectorize_loops.
18784         (vectorize_loops): Use it.
18786 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
18788         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
18789         for aggregate types.
18790         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
18791         type to be non_ODR.
18792         * tree.c (need_assembler_name_p): Compute mangled name for
18793         non-fundamental types and integer types.
18795 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
18797         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
18798         manual swaps.
18799         * expr.c (expand_expr_real_2): Likewise.
18801 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
18803         * tree.c (build_common_builtin_nodes): Do not build
18804         __builtin_alloca_with_align as equivalent of library alloca.
18806 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
18808         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
18809         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
18810         bugus variants.
18811         * tree.c: Include print-tree.h and ipa-utils.h
18812         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
18813         (free_lang_data_in_cgraph): Call verify_type.
18814         (verify_type_variant): New function.
18815         (verify_type): New function.
18816         * tree.h (verify_type): Declare.
18818 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
18820         * config/mips/mips-cpus.def: (mips4): Change default processor
18821         from PROCESSOR_R8000 to PROCESSOR_R10000.
18823 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
18825         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
18826         la/jalr instead of jal.
18828 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
18830         PR target/65871
18831         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
18832         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
18833         (setcc+movzbl peephole2): Check also clobbered reg.
18834         (setcc+andl peephole2): Ditto.
18836 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
18838         PR libgomp/65099
18839         * config/nvptx/mkoffload.c (target_ilp32): New variable.
18840         (main): Set it depending on "-foffload-abi=[...]".
18841         (compile_native, main): Use it to pass "-m32" or "-m64" to the
18842         compiler.
18844 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
18846         PR target/65770
18847         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
18848         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
18849         Flip lane index back at assembly time for bigendian.
18851 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
18853         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
18854         * gimplify.c (gimplify_omp_workshare): Use it.
18856 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
18858         * Makefile.in (build/genrecog.o): Depend on inchash.h.
18859         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
18860         build/inchash.o
18861         * genrecog.c: Rewrite most of the code except for the third page.
18863 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
18865         * inchash.h, inchash.c: Include bconfig.h for build objects.
18866         * Makefile.in (build/inchash.o): New rule.
18868 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
18870         PR target/65924
18871         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
18872         number in type attribute expression.
18874 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
18876         * loop-iv.c (canon_condition): Generalize to all types of integer
18877         constant.
18879 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
18881         * gimple-walk.c: Prune duplicate or unneeded includes.
18882         (walk_gimple_asm): Only call parse_input_constraint or
18883         parse_output_constraint if their findings are used.
18884         Honour parse_input_constraint and parse_output_constraint
18885         result.
18887 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
18889         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
18891 2015-04-29  Tom de Vries  <tom@codesourcery.com>
18893         PR tree-optimization/65893
18894         * passes.def (pass_all_optimizations): Move pass_stdarg to after
18895         pass_dce.
18897 2015-04-29  Richard Biener  <rguenther@suse.de>
18899         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
18900         compute GROUP_SIZE for basic-block SLP.
18901         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
18902         take into account gaps.
18903         (vect_get_mask_element): Properly reject references to previous
18904         vectors.
18905         (vect_transform_slp_perm_load): Likewise.
18907 2015-04-29  Christian Bruel  <christian.bruel@st.com>
18909         PR target/64835
18910         * config/i386/i386.c (ix86_default_align): New function.
18911         (ix86_override_options_after_change): Call ix86_default_align.
18912         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
18913         (ix86_override_options_after_change): New function.
18915 2015-04-28  Jeff Law  <law@redhat.com>
18917         * tree-ssa-dom.c (record_equality); Fix comment typos.
18919 2015-04-28  Tom de Vries  <tom@codesourcery.com>
18921         PR tree-optimization/65887
18922         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
18924 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
18926         * doc/extend.texi (Declaring Attributes of Functions): Split into
18927         subsections by target.  Alphabetize the table of common attributes.
18928         Rewrite some of the introductory text to reflect the new structure.
18929         Update some cross-references to point to the new subsections.
18930         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
18931         duplicate copies in the discussion of function, label, and type
18932         attributes.
18934 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
18936         PR bootstrap/65910
18937         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
18939 2015-04-28  Jason Merrill  <jason@redhat.com>
18941         PR c++/65734
18942         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
18943         (finalize_type_size): Respect TYPE_USER_ALIGN.
18944         (layout_type) [ARRAY_TYPE]: Likewise.
18946 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
18948         * config/arm/arm.md (*arm_movt): Fix type attribute.
18949         (*cmpsi_shiftsi): Likewise.
18950         (*cmpsi_shiftsi_swp): Likewise.
18951         (*movsicc_insn): Likewise.
18952         (*cond_move): Likewise.
18953         (*if_plus_move): Likewise.
18954         (*if_move_plus): Likewise.
18955         (*if_arith_move): Likewise.
18956         (*if_move_arith): Likewise.
18957         (*if_shift_move): Likewise.
18958         (*if_move_shift): Likewise.
18959         (*arm_movtas_ze): Likewise.
18960         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
18961         redundancy and type attribute.
18962         (*thumb2_movsi_insn): Fix type attribute.
18963         (*thumb2_addsi_short): Likewise.
18964         (thumb2_addsi3_compare0): Likewise.
18965         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
18966         attributes accordingly.
18968 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
18970         PR other/65911
18971         * function.c (pad_to_arg_alignment): Add parentheses.
18973 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
18975         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
18976         libgcc/config/frv/elf-lib.h.
18978 2015-04-28  Tom de Vries  <tom@codesourcery.com>
18980         * tree-call-cdce.c: Fix example in header comment.
18982 2015-04-28  Richard Biener  <rguenther@suse.de>
18984         PR tree-optimization/62283
18985         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
18986         fails fatally and we are vectorizing a basic-block simply
18987         cause the child to be constructed piecewise.
18988         (vect_analyze_slp_cost_1): Adjust.
18989         (vect_detect_hybrid_slp_stmts): Likewise.
18990         (vect_bb_slp_scalar_cost): Likewise.
18991         (vect_get_constant_vectors): For piecewise constructed
18992         constants place them after the last def.
18993         (vect_get_slp_defs): Adjust.
18994         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
18995         externals for basic-block vectorization.
18997 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18999         PR target/63503
19000         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
19001         aarch64-*-*.
19002         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
19003         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
19004         (AARCH64_TUNE_FMA_STEERING): Likewise.
19005         * config/aarch64/aarch64-cores.def: Set
19006         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
19007         FMUL/FMADD instructions.
19008         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
19009         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
19010         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
19011         * config/aarch64/cortex-a57-fma-steering.h: New file.
19012         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19014 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
19016         * gensupport.c (std_preds): Add missing codes to address_operand entry.
19018 2015-04-28  Richard Biener  <rguenther@suse.de>
19020         PR tree-optimization/65851
19021         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
19022         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
19023         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
19024         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
19025         (ccp_visit_phi_node): Adjust.
19026         (evaluate_stmt): For simplifications to SSA names return its
19027         lattice value if that isn't VARYING.  Return immediately when
19028         simplified to a constant.
19029         (visit_assignment): Adjust.
19030         (ccp_visit_stmt): Likewise.
19032 2015-04-28  Tom de Vries  <tom@codesourcery.com>
19034         PR tree-optimization/65818
19035         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
19036         evaluated.
19038 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19040         * calls.c (save_fixed_argument_area): Don't check
19041         ARGS_GROW_DOWNWARD with the preprocessor.
19042         (restore_fixed_argument_area): Likewise.
19043         (mem_overlaps_already_clobbered_arg_p): Likewise.
19044         (check_sibcall_argument_overlap): Likewise.
19045         (expand_call): Likewise.
19046         (emit_library_call_value_1): Likewise.
19047         (store_one_arg): Likewise.
19048         * function.c (assign_parms): Likewise.
19049         (locate_and_pad_parm): Likewise.
19050         (pad_to_arg_alignment): Likewise.
19051         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19053 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19055         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
19056         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
19057         * calls.c (save_fixed_argument_area): Don't chekc if
19058         ARGS_GROW_DOWNWARD is defined.
19059         (restore_fixed_argument_area): Likewise.
19060         (mem_overlaps_already_clobbered_arg_p): Likewise.
19061         (check_sibcall_argument_overlap): Likewise.
19062         (expand_call): Likewise.
19063         (emit_library_call_value_1): Likewise.
19064         (store_one_arg): Likewise.
19065         * function.c (assign_parms): Likewise.
19066         (locate_and_pad_parm): Likewise.
19067         (pad_to_arg_alignment): Likewise.
19068         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
19070 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19072         * defaults.h (gen_epilogue): New function.
19073         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
19074         defined.
19075         * cfgrtl.c (cfg_layout_finalize): Likewise.
19076         * df-scan.c: Likewise.
19077         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19078         (reposition_prologue_and_epilogue_notes): Likewise.
19079         * reorg.c (find_end_label): Likewise.
19080         * toplev.c: Likewise.
19082 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19084         * bb-reorder.c (HAVE_return): Don't check if its undefined.
19085         * defaults.h (gen_simple_return): New function.
19086         (gen_simple_return): Likewise.
19087         (HAVE_return): Add default definition to false.
19088         (HAVE_simple_return): Likewise.
19089         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
19090         HAVE_return and HAVE_simple_return are defined.
19091         * function.c (gen_return_pattern): Likewise.
19092         (convert_jumps_to_returns): Likewise.
19093         (thread_prologue_and_epilogue_insns): Likewise.
19094         * reorg.c (find_end_label): Likewise.
19095         (dbr_schedule): Likewise.
19096         * shrink-wrap.c: Likewise.
19097         * shrink-wrap.h: Likewise.
19099 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19101         * defaults.h (EPILOGUE_USES): Add default definition of false.
19102         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
19103         * resource.c (init_resource_info): Likewise.
19105 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19107         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
19108         to false.
19109         * dwarf2out.c (field_byte_offset): REmove check if
19110         PCC_BITFIELD_TYPE_MATTERS is defined.
19111         * stor-layout.c (layout_decl): Likewise.
19112         (update_alignment_for_field): Likewise.
19113         (place_field): Likewise.
19115 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19117         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
19118         true.
19119         * regrename.c (check_new_reg_p): Remove check if
19120         HARD_REGNO_RENAME_OK is defined.
19121         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
19123 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19125         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
19126         * cse.c (fold_rtx): Likewise.
19127         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
19128         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
19129         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
19130         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
19131         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
19132         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
19133         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
19134         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
19135         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
19136         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
19137         * Likewise.
19138         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
19139         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
19140         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
19141         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
19142         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
19143         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
19144         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
19145         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
19146         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
19147         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
19148         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
19149         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
19150         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
19151         * doc/tm.texi: Regenerate.
19152         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
19153         either true or false.
19155 2015-04-27  Jeff Law  <law@redhat.com>
19157         PR tree-optimization/65217
19158         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
19159         of them has a single use, make sure it is the LHS of the implied
19160         copy.
19162 2015-04-28  Alan Modra  <amodra@gmail.com>
19164         PR target/65810
19165         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
19166         (offsettable_ok_by_alignment): Use minimum of decl and toc
19167         pointer alignment.  Replace dead code with assertion.
19168         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
19169         case if size exceeds toc pointer alignment.
19170         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
19171         (rs6000_emit_move): Likewise.
19172         * configure.ac: Add linker toc pointer alignment check.
19173         * configure: Regenerate.
19174         * config.in: Regenerate.
19176 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
19178         * config.gcc: Add h8300-*-linux.
19179         * config/h8300/linux.h: New.
19180         * config/h8300/t-linux: New.
19181         * config/h8300/h8300.c (h8300_option_override): Normal mode
19182         is not supported for h8300-*-linux.
19183         (h8300_file_start): Target priority change.
19184         (get_shift_alg): Likewise.
19185         (h8300_shift_need_scratch_p): Likewise.
19186         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
19187         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
19189 2015-04-27  Caroline Tice  <cmtice@google.com>
19191         * final.c (final_scan_insn):  Output cold_function_name as function
19192         type.
19193         * varasm.c (cold_function_name):  Make global.
19194         (assemble_start_function):  Re-set cold_function_name.
19195         (assemble_end_function): Output cold partition size.
19196         * varasm.h (cold_function_name):  Declare global.
19198 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
19200         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
19201         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
19202         constraint.
19203         (*movxi_internal_avx512f): Ditto.
19204         (define_split): Check for xmm16+, when splitting scalar float_extend.
19205         (*extendsfdf2_mixed): Use "v" constraint.
19206         (define_split): Check for xmm16+, when splitting scalar float_truncate.
19207         (*truncdfsf_fast_sse): Use "v" constraint.
19208         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
19209         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
19210         (define_peephole2): Check for xmm16+, when converting scalar
19211         float_truncate.
19212         (define_peephole2): Check for xmm16+, when converting scalar
19213         float_extend.
19214         (*fop_<mode>_comm_mixed): Use "v" constraint.
19215         (*fop_<mode>_comm_sse): Ditto.
19216         (*fop_<mode>_1_mixed): Ditto.
19217         (*sqrt<mode>2_sse): Ditto.
19218         (*ieee_s<ieee_maxmin><mode>3): Ditto.
19220 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19222         * combine.c (simplify_if_then_else): Use std::swap instead
19223         of manually swapping.
19224         (known_cond): Likewise.
19225         (simplify_comparison): Likewise.
19227 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
19229         PR target/64579
19230         * config/rs6000/htm.md: Remove all define_expands.
19231         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
19232         UNSPECV_HTM_TABORTWCI): Remove.
19233         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
19234         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
19235         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
19236         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
19237         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
19238         tabortwci_internal): Remove define_insns.
19239         (tabort<wd>c, tabort<wd>ci): New define_insns.
19240         (tabort): Use gpc_reg_operand.
19241         (tcheck): Remove operand.
19242         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
19243         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
19244         expected value.
19245         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
19246         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
19247         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
19248         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
19249         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
19250         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
19251         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
19252         (tcheck): Remove builtin argument.
19253         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
19254         not TARGET_64BIT.
19255         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
19256         tabortdc and tabortdci builtins when not in 64-bit mode.
19257         Modify code to handle the loss of the HTM define_expands.
19258         Emit code to copy the CR register to TARGET.
19259         (htm_init_builtins): Modify code to handle the loss of the HTM
19260         define_expands.
19261         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
19262         (RS6000_BTC_64BIT): Likewise.
19263         (RS6000_BTC_CR): New macro.
19264         * doc/extend.texi: Update documentation for htm builtins.
19266 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19268         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
19269         of manually swapping.
19270         (simplify_associative_operation): Likewise.
19271         (simplify_binary_operation): Likewise.
19272         (simplify_plus_minus): Likewise.
19273         (simplify_relational_operation): Likewise.
19274         (simplify_ternary_operation): Likewise.
19276 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
19278         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
19279         (xs_hi_nonmemory_operand): Remove error.
19280         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
19281         general_operand rather than xs_hi_general_operand.
19283 2015-04-27  Richard Biener  <rguenther@suse.de>
19285         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
19286         (record_equivalences_from_stmt): Valueize rhs.
19287         (record_equality): Canonicalize x and y order via
19288         tree_swap_operands_p.  Do not swap operands for same loop depth.
19290 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
19292         PR target/65296
19293         PR target/65895
19294         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
19295         Add hint how to use own spec file.
19297 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
19299         PR tree-optimization/65875
19300         * tree-vrp.c (update_value_range): If in is_new case setting
19301         old_vr to VR_VARYING, also set new_vr to it.  Remove
19302         old_vr->type == VR_VARYING test.
19303         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
19304         SSA_PROP_INTERESTING if update_value_range returned true,
19305         but new range is VR_VARYING.
19307 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19309         * combine.c (sign_extend_short_imm): New.
19310         (set_nonzero_bits_and_sign_copies): Use above new function for sign
19311         extension of src short immediate.
19312         (reg_nonzero_bits_for_combine): Likewise for tem.
19314 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19316         * stor-layout.c (self_referential_component_ref_p): New predicate.
19317         (copy_self_referential_tree_r): Use it.
19318         (self_referential_size): Punt for simple operations directly involving
19319         self-referential component references.
19320         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
19322 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19324         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
19326 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
19328         * vec.h (vec): Make splice arguments const.  Update definitions
19329         accordingly.
19331 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
19333         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
19334         alternatives.
19336 2015-04-26  Tom de Vries  <tom@codesourcery.com>
19338         PR tree-optimization/65826
19339         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
19341 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
19343         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
19344         (*madd3<mode>): Ditto.
19345         (*msub4<mode>): Ditto.
19346         (*msub3<mode>): Ditto.
19347         (*nmadd4<mode>): Ditto.
19348         (*nmadd3<mode>): Ditto.
19349         (*nmadd4<mode>_fastmath): Ditto.
19350         (*nmadd3<mode>_fastmath): Ditto.
19351         (*nmsub4<mode>): Ditto.
19352         (*nmsub3<mode>): Ditto.
19353         (*nmsub4<mode>_fastmath): Ditto.
19354         (*nmsub3<mode>_fastmath): Ditto.
19356 2015-04-24  Jason Merrill  <jason@redhat.com>
19358         PR c++/50800
19359         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
19360         down when building TYPE_CANONICAL.
19361         (build_pointer_type_for_mode): Likewise.
19363 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
19365         * genrecog.c (validate_pattern): Check matching constraint refers
19366         to a lower numbered operand.
19368 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19370         PR target/65849
19371         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
19372         save to independent variables use the Save attribute.  This will
19373         allow these options to be modified with the #pragma/attribute
19374         target support.
19375         (-mallow-movmisalign): Likewise.
19376         (-mallow-df-permute): Likewise.
19377         (-msched-groups): Likewise.
19378         (-malways-hint): Likewise.
19379         (-malign-branch-targets): Likewise.
19380         (-mvectorize-builtins): Likewise.
19381         (-msave-toc-indirect): Likewise.
19383         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
19384         can be set via the #pragma/attribute target support.
19385         (rs6000_opt_vars): Likewise.
19386         (rs6000_inner_target_options): If VSX was set, also set
19387         -mno-avoid-indexed-addresses.
19389 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19391         * config/arm/iterators.md (shiftable_ops): Rename to...
19392         (SHIFTABLE_OPS): ... This.  Update use in comments.
19393         (ior_xor): Rename to...
19394         (IOR_XOR): ... This.
19395         (vqh_ops): Rename to...
19396         (VQH_OPS): ... This.
19397         (vqhs_ops): Rename to...
19398         (VQHS_OPS): ... This.
19399         (rshifts): Rename to...
19400         (RSHIFTS): ... This.
19401         (returns): Rename to...
19402         (RETURNS): ... This.
19403         * config/arm/arm.md: Update uses of the above.
19404         * config/arm/neon.md: Likewise.
19406 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19408         * config.host (case ${host}): Add aarch64*-*-linux case.
19409         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
19410         fields to all the cores.
19411         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
19412         Add MCPU_MTUNE_NATIVE_SPECS.
19413         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
19414         field to all extensions.
19415         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
19416         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
19417         Adjust definition of AARCH64_OPT_EXTENSION.
19418         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
19419         (MCPU_MTUNE_NATIVE_SPECS): Define.
19420         * config/aarch64/driver-aarch64.c: New file.
19421         * config/aarch64/x-arch64: New file.
19422         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
19423         -mtune and -march.
19425 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
19426             Wei Mi  <wmi@google.com>
19428         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
19429         * config/i386/i386.c (extract_base_offset_in_addr): New function.
19430         (ix86_operands_ok_for_move_multiple): Ditto.
19431         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
19432         (movlpd/movhpd to movupd peephole2): Ditto.
19434 2015-04-24  Marek Polacek  <polacek@redhat.com>
19436         PR c/61534
19437         * input.h (from_macro_expansion_at): Define.
19439         PR c/63357
19440         * doc/invoke.texi: Update description of -Wlogical-op.
19442 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19444         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
19445         ternary operator in fprintf and harmonize spacing.
19447 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
19449         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
19450         Mark operand1 commutative.
19452 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
19454         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
19455         input operands in memory.
19456         (*vec_concatv2si_sse4_1): Ditto.
19457         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
19458         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
19459         register_operand.
19460         (vec_extract_hi_v32hi): Ditto.
19461         (vec_extract_hi_v64hi): Ditto.
19462         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
19464 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19465             Steven Bosscher <steven@gcc.gnu.org>
19467         PR rtl-optimization/34503
19468         * cprop.c (cprop_reg_p): New.
19469         (hash_scan_set): Use above function to check if register can be
19470         propagated.
19471         (find_avail_set): Return up to two sets, one whose source is a
19472         register and one whose source is a constant.  Sets are returned in an
19473         array passed as parameter rather than as a return value.
19474         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
19475         sets returned by find_avail_set, starting with the one whose source is
19476         a constant. Use cprop_reg_p to check if register can be propagated.
19477         (do_local_cprop): Use cprop_reg_p to check if register can be
19478         propagated.
19479         (implicit_set_cond_p): Likewise.
19481 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
19483         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
19484         (sem_function::equals): IGNORED_NODES parameter is now unused;
19485         update call of equals_private.
19486         (sem_function::equals_private): Do not call equals_wpa; skip
19487         gimple body matching if there is no body.
19488         (sem_function::init): Add logic to hash tthunk info.
19489         (sem_function::parse): Also parse thunks.
19490         * ipa-icf.h (equals_private): Update declaration.
19492 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19494         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
19495         asterisk from name so this can be generated directly.
19496         (*altivec_stvx_<mode>_internal): Likewise.
19497         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
19498         that this is never called during or after reload/lra.
19499         (rs6000_frame_related): Remove split_reg
19500         argument and logic that references it.
19501         (emit_frame_save): Remove last parameter from call to
19502         rs6000_frame_related.
19503         (rs6000_emit_prologue): Remove last parameter from eight calls to
19504         rs6000_frame_related.  Force generation of stvx instruction for
19505         Altivec register saves.  Remove split_reg handling, which is no
19506         longer needed.
19507         (rs6000_emit_epilogue):  Force generation of lvx instruction for
19508         Altivec register restores.
19510 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19512         * config/rs6000/rs6000.opt (mcrypto): Change option description to
19513         match category changes in ISA 2.07B.
19515 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19517         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
19518         iterators.
19519         (cmp_op, cmp_type): New code attributes.
19520         (NEON_VCMP, NEON_VACMP): New int iterators.
19521         (cmp_op_unsp): New int attribute.
19522         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
19523         (neon_vceq<mode>): Delete.
19524         (neon_vc<cmp_op><mode>_insn): New pattern.
19525         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
19526         (neon_vcgeu<mode>): Delete.
19527         (neon_vcle<mode>): Likewise.
19528         (neon_vclt<mode>: Likewise.
19529         (neon_vcage<mode>): Likewise.
19530         (neon_vcagt<mode>): Likewise.
19531         (neon_vca<cmp_op><mode>): New define_expand.
19532         (neon_vca<cmp_op><mode>_insn): New pattern.
19533         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
19535 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
19537         * tree.h (attribute_value_equal): Declare.
19538         * tree.c (attribute_value_equal): Export.
19540 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
19542         * ipa-icf.c (sem_item::compare_attributes): New function.
19543         (sem_item::compare_referenced_symbol_properties): Compare variable
19544         attributes.
19545         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
19546         (sem_function::param_used_p): New function.
19547         (sem_function::equals_wpa): Fix attribute comparsion; match
19548         parameter type codes; do not compare paremter flags when
19549         they are not used; compare edge flags; compare indirect calls.
19550         (sem_item::update_hash_by_addr_refs): Hash reference type.
19551         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
19552         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
19553         reference use type.
19554         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
19555         * ipa-icf.h (compare_attributes, param_used_p): Declare.
19557 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
19559         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
19560         cleanup.
19561         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
19562         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
19563         (sem_item::compare_referenced_symbol_properties): New.
19564         (sem_item::hash_referenced_symbol_properties): New.
19565         (sem_item::compare_cgraph_references): Rename to ...
19566         (sem_item::compare_symbol_references): ... this one; use
19567         compare_referenced_symbol_properties.
19568         (sem_function::equals_wpa): Do not compare
19569         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
19570         DECL_IS_OPERATOR_NEW; compare pointer sizes.
19571         (sem_item::update_hash_by_addr_refs): Call
19572         hash_referenced_symbol_properties.
19573         (sem_item::update_hash_by_local_refs): Cleanup.
19574         (sem_function::merge): Do not mix up symbol properties.
19575         (sem_variable::equals_wpa): Use compare_symbol_references.
19576         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
19577         (sem_item::hash_referenced_symbol_properties): New.
19578         (sem_item::compare_symbol_references): New.
19579         (sem_item::compare_cgraph_references): Remove.
19581 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
19583         PR target/26702
19584         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
19585         Emit size of local.
19587 2015-04-23  Nick Clifton  <nickc@redhat.com>
19589         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
19590         ATTRIBUTE_UNUSED to x parameter.
19591         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
19593 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19595         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
19596         TARGET_CRYPTO to TARGET_P8_VECTOR>
19597         (crypto_vpermxor_<mode>): Likewise.
19598         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
19599         (BU_CRYPTO_3A): Likewise.
19600         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
19601         (BU_CRYPTO_OVERLOAD_3A): New #define.
19602         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
19603         (VPMSUMH): Likewise.
19604         (VPMSUMW): Likewise.
19605         (VPMSUMD): Likewise.
19606         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
19607         (VPERMXOR_V4SI): Likewise.
19608         (VPERMXOR_V8HI): Likewise.
19609         (VPERMXOR_V16QI): Likewise.
19610         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
19611         BU_CRYPTO_OVERLOAD_2A.
19612         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
19613         BU_CRYPTO_OVERLOAD_3A.
19614         * config/rs6000/rs6000.opt (mcrypto): Change description of
19615         option.
19617 2015-04-23  Richard Biener  <rguenther@suse.de>
19619         * passes.def: Remove copy propagation passes run directly after CCP.
19620         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
19621         SSA names.
19622         (ccp_visit_phi_node): Rework to handle first executable edge
19623         specially.
19625 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
19627         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19628         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19629         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
19630         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
19631         (thumb_legimitimize_reload_address): Remove.
19632         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
19633         Remove.
19634         (thumb_legimitimize_reload_address): Remove.
19636 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19638         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
19640 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19642         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
19643         MAX_LDM_STM_OPS.
19644         (store_multiple): Likewise.
19646 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19648         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
19649         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
19650         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
19651         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
19652         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
19653         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
19654         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
19655         Specify issue_rate value.
19656         (arm_issue_rate): Look up issue rate from tuning structs. Remove
19657         large switch statement.
19658         (arm_marvell_pj4_tune): New struct.
19659         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
19660         struct.
19662 2015-04-23  Richard Biener  <rguenther@suse.de>
19664         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
19665         (vect_find_last_store_in_slp_instance): Rename to ...
19666         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
19667         (vect_analyze_slp_cost_1): Use vector_load for constant defs
19668         and vec_construct for external defs when estimating prologue cost.
19669         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
19670         Compute costs here only when vectorizing loops.
19671         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
19672         have been determined.
19673         (vect_schedule_slp_instance): Simplify vectorized code placement
19674         and prepare for in-BB external defs.
19675         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
19676         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
19677         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
19678         guard.
19679         (vect_model_load_cost): Likewise.
19680         (vectorizable_store): Instead add it here.
19681         (vectorizable_load): Likewise.
19682         (vect_is_simple_use): Dump def type textually.
19684 2015-04-23  Richard Biener  <rguenther@suse.de>
19686         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
19687         * cfgloop.c (verify_loop_structure): Verify the root loop node.
19688         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
19689         instead of get_eh_region_from_lp_number.
19690         * loop-init.c (fix_loop_structure): If we removed a loop, reset
19691         the SCEV cache.
19693 2015-04-23  Anton Blanchard  <anton@samba.org>
19695         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
19696         need for -mprofile-kernel to save LR to stack.
19698 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19700         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
19701         adjustments.
19702         (insn_is_swappable_p): Return 1 for a convert from double to
19703         single precision when all of its uses are splats of BE element
19704         zero.
19706 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19708         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
19710 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19712         PR target/65456
19713         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
19714         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
19715         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
19716         option.
19717         (rs6000_builtin_mask_for_load): Return 0 for targets with
19718         efficient unaligned VSX accesses so that the vectorizer will use
19719         direct unaligned loads.
19720         (rs6000_builtin_support_vector_misalignment): Always return true
19721         for targets with efficient unaligned VSX accesses.
19722         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
19723         stores on targets with efficient unaligned VSX accesses is almost
19724         always the same as the cost of an aligned load or store, so model
19725         it that way.
19726         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
19727         unaligned vectors if we have efficient unaligned VSX accesses.
19728         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
19729         undocumented option.
19731 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19733         Revert:
19734         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
19736         * config.gcc (LIBC_MUSL): New tm_defines macro.
19737         * config/linux.h (OPTION_MUSL): Define.
19738         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19739         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19740         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19742         * config/linux.opt (mmusl): New option.
19743         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19744         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19746         * configure: Regenerate.
19748 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
19750         * config.gcc (LIBC_MUSL): New tm_defines macro.
19751         * config/linux.h (OPTION_MUSL): Define.
19752         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
19753         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
19754         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
19756         * config/linux.opt (mmusl): New option.
19757         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
19758         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
19760         * configure: Regenerate.
19762 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
19764         * doc/invoke.texi (-fsanitize-sections): Update description.
19765         * asan.c (set_sanitized_sections): Parse incoming arg.
19766         (section_sanitized_p): Support wildcards.
19768 2015-04-22  Tom de Vries  <tom@codesourcery.com>
19770         PR tree-optimization/65823
19771         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
19772         equality between ap_copy and ap.
19774 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19776         PR target/47098
19777         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
19779 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19781         PR target/47122
19782         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
19784 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19786         PR target/55144
19787         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
19788         remove already contained t-files.
19790 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19792         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
19793         Remove unneeded forward declarations.
19794         (suitable_for_tail_call_opt_p): Commentary typo fix.
19796 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19798         * varasm.c (emit_bss): Remove redundant guard.
19800 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19802         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
19804 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19806         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
19808 2015-04-22  Hale Wang  <hale.wang@arm.com>
19809             Terry Guo  <terry.guo@arm.com>
19811         PR rtl-optimization/64818
19812         * combine.c (can_combine_p): Don't combine user-specified
19813         register if it is in an asm input.
19815 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
19817         PR ipa/65076
19818         * passes.def (early_optimizations): Add pass_dse.
19820 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19822         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
19823         * reorg.c (redundant_insn): Remove ifdef
19824         INSN_REFERENCES_ARE_DELAYED.
19825         * resource.c (mark_referenced_resources): Likewise.
19827 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19829         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
19830         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
19831         * resource.c (mark_set_resources): Likewise.
19833 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19835         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
19836         * cfgcleanup.c (flow_find_cross_jump): Likewise.
19837         (flow_find_head_matching_sequence): Likewise.
19838         (try_head_merge_bb): Likewise.
19839         * combine.c (can_combine_p): Likewise.
19840         (try_combine): Likewise.
19841         (distribute_notes): Likewise.
19842         * df-problems.c (can_move_insns_across): Likewise.
19843         * final.c (final): Likewise.
19844         * gcse.c (insert_insn_end_basic_block): Likewise.
19845         * ira.c (find_moveable_pseudos): Likewise.
19846         * reorg.c (try_merge_delay_insns): Likewise.
19847         (fill_simple_delay_slots): Likewise.
19848         (fill_slots_from_thread): Likewise.
19849         * sched-deps.c (sched_analyze_2): Likewise.
19851 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19853         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
19854         PIC_OFFSET_TABLE_REGNUM.
19856 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19858         * alias.c (init_alias_target): Remove ifdef
19859         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
19860         * df-scan.c (df_insn_refs_collect): Likewise.
19861         (df_get_regular_block_artificial_uses): Likewise.
19862         (df_get_eh_block_artificial_uses): Likewise.
19863         (df_get_entry_block_def_set): Likewise.
19864         (df_get_exit_block_use_set): Likewise.
19865         * emit-rtl.c (gen_rtx_REG): Likewise.
19866         * ira.c (ira_setup_eliminable_regset): Likewise.
19867         * reginfo.c (init_reg_sets_1): Likewise.
19868         * regrename.c (rename_chains): Likewise.
19869         * reload1.c (reload): Likewise.
19870         (eliminate_regs_in_insn): Likewise.
19871         * resource.c (mark_referenced_resources): Likewise.
19872         (init_resource_info): Likewise.
19874 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19876         * defaults.h (MASK_RETURN_ADDR): New definition.
19877         * except.c (expand_builtin_extract_return_addr): Remove ifdef
19878         MASK_RETURN_ADDR.
19880 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19882         * defaults.h (RETURN_ADDR_OFFSET): New definition.
19883         * except.c (expand_builtin_extract_return_addr): Remove ifdef
19884         RETURN_ADDR_OFFSET.
19885         (expand_builtin_frob_return_addr): Likewise.
19887 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19889         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
19890         (try_redirect_by_replacing_jump): Likewise.
19891         (rtl_tidy_fallthru_edge): Likewise.
19892         * combine.c (insn_a_feeds_b): Likewise.
19893         (find_split_point): Likewise.
19894         (simplify_set): Likewise.
19895         * cprop.c (cprop_jump): Likewise.
19896         * cse.c (cse_extended_basic_block): Likewise.
19897         * df-problems.c (can_move_insns_across): Likewise.
19898         * function.c (emit_use_return_register_into_block): Likewise.
19899         * haifa-sched.c (sched_init): Likewise.
19900         * ira.c (find_moveable_pseudos): Likewise.
19901         * loop-invariant.c (find_invariant_insn): Likewise.
19902         * lra-constraints.c (curr_insn_transform): Likewise.
19903         * postreload.c (reload_combine_recognize_const_pattern):
19904         * Likewise.
19905         * reload.c (find_reloads): Likewise.
19906         * reorg.c (delete_scheduled_jump): Likewise.
19907         (steal_delay_list_from_target): Likewise.
19908         (steal_delay_list_from_fallthrough): Likewise.
19909         (redundant_insn): Likewise.
19910         (fill_simple_delay_slots): Likewise.
19911         (fill_slots_from_thread): Likewise.
19912         (delete_computation): Likewise.
19913         * sched-rgn.c (add_branch_dependences): Likewise.
19915 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19917         * genconfig.c (main): Always define HAVE_cc0.
19918         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
19919         HAVE_cc0.
19920         * cfgcleanup.c (flow_find_cross_jump): Likewise.
19921         (flow_find_head_matching_sequence): Likewise.
19922         (try_head_merge_bb): Likewise.
19923         * cfgrtl.c (rtl_merge_blocks): Likewise.
19924         (try_redirect_by_replacing_jump): Likewise.
19925         (rtl_tidy_fallthru_edge): Likewise.
19926         * combine.c (do_SUBST_MODE): Likewise.
19927         (insn_a_feeds_b): Likewise.
19928         (combine_instructions): Likewise.
19929         (can_combine_p): Likewise.
19930         (try_combine): Likewise.
19931         (find_split_point): Likewise.
19932         (subst): Likewise.
19933         (simplify_set): Likewise.
19934         (distribute_notes): Likewise.
19935         * cprop.c (cprop_jump): Likewise.
19936         * cse.c (cse_extended_basic_block): Likewise.
19937         * df-problems.c (can_move_insns_across): Likewise.
19938         * final.c (final): Likewise.
19939         (final_scan_insn): Likewise.
19940         * function.c (emit_use_return_register_into_block): Likewise.
19941         * gcse.c (insert_insn_end_basic_block): Likewise.
19942         * haifa-sched.c (sched_init): Likewise.
19943         * ira.c (find_moveable_pseudos): Likewise.
19944         * loop-invariant.c (find_invariant_insn): Likewise.
19945         * lra-constraints.c (curr_insn_transform): Likewise.
19946         * optabs.c (prepare_cmp_insn): Likewise.
19947         * postreload.c (reload_combine_recognize_const_pattern):
19948         * Likewise.
19949         * reload.c (find_reloads): Likewise.
19950         (find_reloads_address_1): Likewise.
19951         * reorg.c (delete_scheduled_jump): Likewise.
19952         (steal_delay_list_from_target): Likewise.
19953         (steal_delay_list_from_fallthrough): Likewise.
19954         (try_merge_delay_insns): Likewise.
19955         (redundant_insn): Likewise.
19956         (fill_simple_delay_slots): Likewise.
19957         (fill_slots_from_thread): Likewise.
19958         (delete_computation): Likewise.
19959         (relax_delay_slots): Likewise.
19960         * sched-deps.c (sched_analyze_2): Likewise.
19961         * sched-rgn.c (add_branch_dependences): Likewise.
19963 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19965         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
19966         that is trivially ded on non cc0 targets.
19967         (simplify_set): Likewise.
19968         (mark_used_regs_combine): Likewise.
19969         * cse.c (new_basic_block): Likewise.
19970         (fold_rtx): Likewise.
19971         (cse_insn): Likewise.
19972         (cse_extended_basic_block): Likewise.
19973         (set_live_p): Likewise.
19974         * rtlanal.c (canonicalize_condition): Likewise.
19975         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19977 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19979         * conditions.h: Define macros even if HAVE_cc0 is undefined.
19980         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
19981         * final.c: Likewise.
19982         * jump.c: Likewise.
19983         * recog.c: Likewise.
19984         * recog.h: Declare functions even when HAVE_cc0 is undefined.
19985         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
19987 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19989         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
19990         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
19991         * builtins.c (expand_builtin): Remove check if
19992         EH_RETURN_DATA_REGNO is defined.
19993         * df-scan.c (df_bb_refs_collect): Likewise.
19994         (df_get_exit_block_use_set): Likewise.
19995         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19996         * ira-lives.c (process_bb_node_lives): Likewise.
19997         * lra-lives.c (process_bb_lives): Likewise.
19999 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
20001         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
20002         FIRST_PSEUDO_REG): New.
20003         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
20004         (ARG_POINTER_REGNUM): Define to ARGP_REG.
20005         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
20006         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
20007         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
20008         (FIRST_INT_REG): New.
20009         (LAST_INT_REG): New.
20010         (FIRST_*_REG): Define using *_REG.
20011         (LAST_*_REG): Ditto.
20012         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
20013         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
20014         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
20016 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20018         * expmed.c: (synth_mult): Only assume overlapping
20019         shift with previous steps in alg_sub_t_m2 case.
20021 2015-04-21  Richard Biener  <rguenther@suse.de>
20023         PR tree-optimization/65650
20024         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
20025         transitions involving copies.
20026         (set_lattice_value): Adjust for copy lattice state.
20027         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
20028         if that doesn't dominate the merge point.
20029         (bit_value_unop): Adjust what we treat as varying mask.
20030         (bit_value_binop): Likewise.
20031         (bit_value_assume_aligned): Likewise.
20032         (evaluate_stmt): When we simplified to a SSA name record a copy
20033         instead of dropping to varying.
20034         (visit_assignment): Simplify.
20036         * gimple-match.h (gimple_simplify): Add another callback.
20037         * gimple-fold.c (fold_stmt_1): Adjust caller.
20038         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
20039         for the 2nd callback.
20040         * gimple-match-head.c (gimple_simplify): Add a callback that is
20041         used to valueize the stmt operands and use it that way.
20043 2015-04-21  Richard Biener  <rguenther@suse.de>
20045         PR tree-optimization/65788
20046         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
20048 2015-04-21  Richard Biener  <rguenther@suse.de>
20050         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
20051         vec_construct cost by vec_stmt_cost.
20053 2015-04-21  Richard Biener  <rguenther@suse.de>
20055         * cfghooks.h (create_basic_block): Replace with two overloads
20056         for RTL and GIMPLE.
20057         (split_block): Likewise.
20058         * cfghooks.c (split_block): Rename to ...
20059         (split_block_1): ... this.
20060         (split_block): Add two type-safe overloads for RTL and GIMPLE.
20061         (split_block_after_labels): Call split_block_1.
20062         (create_basic_block): Rename to ...
20063         (create_basic_block_1): ... this.
20064         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
20065         (create_empty_bb): Call create_basic_block_1.
20066         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
20067         split_block_after_labels.
20068         * omp-low.c (expand_parallel_call): Likewise.
20069         (expand_omp_target): Likewise.
20070         (simd_clone_adjust): Likewise.
20071         * tree-chkp.c (chkp_get_entry_block): Likewise.
20072         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
20073         create_basic_block overload.
20074         (cgraph_node::expand_thunk): Likewise.
20075         * tree-cfg.c (make_blocks): Likewise.
20076         (handle_abnormal_edges): Likewise.
20077         * tree-inline.c (copy_bb): Likewise.
20079 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20081         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
20082         New pattern.
20083         (*xor_one_cmplsidi3_ze): Likewise.
20085 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20087         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
20088         use df_remove_problem rather than manually removing problems, leaving
20089         holes in df->problems_in_order[].
20091 2015-04-21  Tom de Vries  <tom@codesourcery.com>
20093         PR tree-optimization/65802
20094         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
20096 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20098         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
20099         Increase to 128.
20100         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
20101         at '.'.  Assert that there's enough space for everything.
20103 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
20105         PR tree-optimization/64950
20106         Revert:
20107         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
20109         PR target/41089
20110         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
20111         as volatile.
20113 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
20115         PR rtl-optimization/64916
20116         * cfgcleanup.c (values_equal_p): New function.
20117         (can_replace_by): Use it.
20119 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
20121         PR c++/65801
20122         * doc/invoke.texi ([-Wnarrowing]): Update.
20124 2015-04-20  Jeff Law  <law@redhat.com>
20126         PR tree-optimization/65658
20127         * tree-ssa-threadupdate.c (redirection_block_p): Remove
20128         redundant test for GIMPLE_ASSIGN in last change.
20130 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
20132         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
20133         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
20134         (legitimize_tls_address): Ditto.
20135         (ix86_expand_move): Ditto.
20136         (ix86_expand_binary_operator): Remove reload_in_progress checks.
20137         (ix86_expand_unary_operator): Ditto.
20138         * config/i386/predicates.md (index_register_operand): Ditto.
20140 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
20142         * reorg.c (try_merge_delay_insns): Improve correctness checking
20143         for targets with multiple delay slots.
20145 2015-04-20  Jeff Law  <law@redhat.com>
20147         PR tree-optimization/65658
20148         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
20149         statements too.
20151 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
20153         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
20154         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
20155         Delete.
20157 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
20159         PR debug/65807
20160         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
20162 2015-04-20  Richard Biener  <rguenther@suse.de>
20164         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
20165         * gimple-fold.c (gimple_build_valueize): New function.
20166         (gimple_build): Always use gimple_build_valueize as valueize hook.
20168 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
20170         PR target/64134
20171         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
20172         and overwrite variable parts if <= 1/2 the elements are variable.
20174 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
20176         PR rtl-optimization/65805
20177         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
20178         Don't use difference of offset and previous offset if
20179         update_sp_offset is non-zero.
20180         (eliminate_regs_in_insn): Ditto.
20181         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
20182         lra_eliminate_regs_1 call.
20183         * lra-constraints.c (get_equiv_with_elimination): Ditto.
20185 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
20187         * hash-table.h: Remove version of hash_table that stored value_type *.
20188         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
20189         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
20190         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
20191         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
20192         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
20193         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
20194         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20195         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
20196         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
20197         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
20198         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
20199         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
20200         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
20201         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20202         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
20203         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
20205 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20206             Jakub Jelinek  <jakub@redhat.com>
20208         PR target/65787
20209         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
20210         subsequent SH_NONE operand does not overwrite an existing *special
20211         value.
20212         (adjust_extract): Handle case where a vec_extract operation is
20213         wrapped in a PARALLEL.
20215 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
20217         PR target/65780
20218         * config/i386/i386.c (ix86_binds_local_p): Define only if
20219         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
20221 2015-04-17  Jeff Law  <law@redhat.com>
20223         PR tree-optimization/47679
20224         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
20225         * tree-ssa-scopedtables.c: New file.
20226         * tree-ssa-scopedtables.h: New file.
20227         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
20228         (const_and_copies): Change name/type.
20229         (record_const_or_copy): Move into tree-ssa-scopedtables.c
20230         (record_const_or_copy_1): Similarly.
20231         (restore_vars_to_original_value): Similarly.
20232         (pass_dominator::execute): Create and destroy const_and_copies table.
20233         (thread_across_edge): Update passing of const_and_copies.
20234         (record_temporary_equivalence): Use method calls rather than
20235         manipulating const_and_copies directly.
20236         (record_equality, cprop_into_successor_phis): Similarly.
20237         (dom_opt_dom_walker::before_dom_children): Similarly.
20238         (dom_opt_dom_walker::after_dom_children): Similarly.
20239         (eliminate_redundant_computations): Similarly.
20240         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
20241         (record_temporary_equivalence): Likewise.
20242         (invalidate_equivalences): Likewise.
20243         (record_temporary_equivalences_from_phis): Update due to type
20244         change of const_and_copies.  Use method calls rather than
20245         manipulating the stack directly.
20246         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
20247         (thread_through_normal_block, thread_across_edge): Likewise.
20248         (thread_across_edge): Likewise.
20249         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
20250         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
20251         of equiv_stack.
20252         (identify_jump_threads): Update due to type change of equiv_stack.
20253         (finalize_jump_threads): Delete the equiv_stack when complete.
20255 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
20257         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20258         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
20259         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
20261 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
20263         PR target/65535
20264         * config.gcc: Exit with a comment when we do not have a major version
20265         number for the FreeBSD target.
20267 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
20269         PR target/65689
20270         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
20271         maybe_allows_mem bitfields.
20272         (maybe_allows_none_start, maybe_allows_none_end,
20273         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
20274         maybe_allows_mem_end): New variables.
20275         (compute_maybe_allows): New function.
20276         (add_constraint): Use it to initialize maybe_allows_reg and
20277         maybe_allows_mem fields.
20278         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
20279         is_address constraints such that those that allow neither mem nor
20280         reg come first, then those that only allow reg but not mem, then
20281         those that only allow mem but not reg, then the rest.
20282         (write_allows_reg_mem_function): New function.
20283         (write_tm_preds_h): Call it.
20284         * stmt.c (parse_output_constraint, parse_input_constraint): Use
20285         the generated insn_extra_constraint_allows_reg_mem function
20286         instead of always setting *allows_reg = true; *allows_mem = true;
20287         for unknown extra constraints.
20289 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
20291         PR target/65780
20292         * output.h (default_binds_local_p_3): New.
20293         * varasm.c (default_binds_local_p_3): Make it public.  Take an
20294         argument to indicate if common symbol may be local.  If common
20295         symbol may be local, treat non-external variable as defined
20296         locally.
20297         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
20298         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
20299         * config/i386/i386.c (ix86_binds_local_p): New.
20300         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
20301         ix86_binds_local_p.
20303 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
20305         PR debug/65771
20306         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
20307         trying mem_loc_descriptor on XEXP (rtl, 0).
20309 2015-04-17  Martin Liska  <mliska@suse.cz>
20311         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20312         Release symbol_compare_collection.
20313         * ipa-reference.c: Add TODO that a vector should be released.
20315 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
20317         PR target/65296
20318         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
20319         to new AVR-LibC file layout (bug #44574).
20320         (*avrlibc_devicelib): Same.
20321         * config/avr/avr-mcus.def: Adjust comments.
20322         * config/avr/avr.opt (nodevicelib): Adjust help.
20324 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
20326         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
20328 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
20330         PR c++/64527
20331         * gimplify.c (gimplify_init_constructor): Always emit a
20332         side-effecting constructor.
20334 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20336         PR tree-optimization/64950
20337         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
20338         in cfun->curr_properties.
20339         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
20340         if we generate an IFN_VA_ARG.
20341         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
20342         function if PROP_gimple_lva is not set in src function.
20344 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20345             Michael Matz  <matz@suse.de>
20347         PR tree-optimization/64950
20348         * gimple-iterator.c (update_modified_stmts): Remove static.
20349         * gimple-iterator.h (update_modified_stmts): Declare.
20350         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
20351         (gimplify_va_arg_internal): New function.
20352         (gimplify_va_arg_expr): Use IFN_VA_ARG.
20353         * gimplify.h (gimplify_va_arg_internal): Declare.
20354         * internal-fn.c (expand_VA_ARG): New unreachable function.
20355         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
20356         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
20357         (expand_ifn_va_arg): New function.
20358         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
20359         (pass_stdarg::execute): Call expand_ifn_va_arg.
20360         (pass_data_lower_vaarg): New pass_data.
20361         (pass_lower_vaarg): New gimple_opt_pass.
20362         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
20363         (make_pass_lower_vaarg): New function.
20364         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
20365         properties_required field.
20366         * passes.def (all_passes): Add pass_lower_vaarg.
20367         * tree-pass.h (PROP_gimple_lva): Add define.
20368         (make_pass_lower_vaarg): Declare.
20370 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20372         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
20373         * calls.c (call_expr_flags): Same.
20375 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20377         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
20378         (pass_stdarg::execute): ... here.
20380 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20381             Michael Matz  <matz@suse.de>
20383         * tree-cfg.c (make_blocks_1): Factor out of ...
20384         (make_blocks): ... here.
20385         (make_edges_bb): Factor out of ...
20386         (make_edges): ... here.
20387         (gimple_find_sub_bbs): New function.
20388         * tree-cfg.h (gimple_find_sub_bbs): Declare.
20390 2015-04-17  Tom de Vries  <tom@codesourcery.com>
20392         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
20394 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
20396         * asan.c (set_sanitized_sections): New function.
20397         (section_sanitized_p): Ditto.
20398         (asan_protect_global): Optionally sanitize user-defined
20399         sections.
20400         * asan.h (set_sanitized_sections): Declare new function.
20401         * common.opt (fsanitize-sections): New option.
20402         * doc/invoke.texi (-fsanitize-sections): Document new option.
20403         * opts-global.c (handle_common_deferred_options): Handle new
20404         option.
20406 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
20408         PR debug/65771
20409         * dwarf2out.c (loc_list_from_tree): Return NULL
20410         for DEBUG_EXPR_DECL.
20412 2015-04-17  Christian Bruel  <christian.bruel@st.com>
20414         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
20415         same attributes.
20417 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
20419         * ira-color.c (setup_left_conflict_sizes_p): Do not process
20420         node itself when computing left conflict subnode size.
20422 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
20424         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
20425         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
20426         *fop_<mode>_1_sse using enabled attribute.  Use
20427         register_mixssei387nonimm_operand operand 1 predicate. Change
20428         alternative 3 constraints from "x" to "v".
20430 2015-04-16  Richard Biener  <rguenther@suse.de>
20432         PR tree-optimization/65774
20433         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
20434         bit-value tracking on.
20436 2015-04-16  Richard Biener  <rguenther@suse.de>
20438         PR tree-optimization/64277
20439         * tree-vrp.c (check_array_ref): Fix anti-range handling,
20440         simplify upper bound handling.
20441         (search_for_addr_array): Simplify.
20442         (check_array_bounds): Handle ADDR_EXPRs here.
20443         (check_all_array_refs): Simplify.
20445 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
20447         * config/i386/i386.c (print_reg): Rewrite function.
20449 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20451         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
20452         Invert the condition.
20454 2015-04-16  Renlin Li  <renlin.li@arm.com>
20456         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
20457         simplifications for UNSIGNED_FLOAT.
20459 2015-04-16  Nick Clifton  <nickc@redhat.com>
20461         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
20462         MUL_UNINIT.
20463         (enum rl78_cpu_type): New.
20464         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
20465         (umulhi3_shift_virt): Remove m constraint from operand 1.
20466         (umulqihi3_virt): Likewise.
20467         * config/rl78/rl78.c (rl78_option_override): Add code to process
20468         -mcpu and -mmul options.
20469         (rl78_alloc_physical_registers): Add code to handle divhi and
20470         divsi valloc attributes.
20471         (set_origin): Likewise.
20472         * config/rl78/rl78.h (RL78_MUL_G14): Define.
20473         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
20474         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
20475         __RL78_Gxx__.
20476         (ASM_SPEC): Pass -mcpu on to assembler.
20477         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
20478         (mulqi3_rl78): Likewise.
20479         (mulhi3_g13): Likewise.
20480         (mulhi3): Generate the G13 or G14 versions of the insn directly.
20481         (mulsi3): Likewise.
20482         (mulhi3_g14): Add clobbers of AX and BC.
20483         (mulsi3_g14): Likewise.
20484         (mulsi3_g13): Likewise.
20485         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
20486         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
20487         * config/rl78/rl78.opt (mmul): Initialise value to
20488         RL78_MUL_UNINIT.
20489         (mcpu): New option.
20490         (m13, m14, mrl78): New option aliases.
20491         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
20492         (MULTILIB_DIRNAMES): Add g13 and g14.
20493         * doc/invoke.texi: Document -mcpu and -mmul options.
20495 2015-04-16  Richard Biener  <rguenther@suse.de>
20497         * tree-ssa-ccp.c (likely_value): See if we have operands that
20498         are marked as never simulate again and return CONSTANT in this
20499         case.
20500         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
20501         not have any operands that will be simulated again as
20502         not being simulated again.
20504 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
20506         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
20507         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
20508         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
20509         attribute.
20510         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
20511         enabled attribute.
20512         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
20513         *float<SWI48:mode><MODEF:mode>2_sse.
20514         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
20515         enabled attribute.
20516         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
20517         enabled attribute.
20519 2015-04-15  Tom de Vries  <tom@codesourcery.com>
20521         PR other/65487
20522         * function.c (push_dummy_function): New function.
20523         (init_dummy_function_start): Use push_dummy_function.
20524         (pop_dummy_function): New function.  Factored out of ...
20525         (expand_dummy_function_end): ... here.
20526         * function.h (push_dummy_function, pop_dummy_function): Declare.
20527         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
20528         pop_dummy_function.
20529         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
20531 2015-04-15  Jeff Law  <law@redhat.com>
20533         PR tree-optimization/47679
20534         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
20535         need for forward declaration in upcoming changes.
20536         (record_conditions, record_edge_info): Likewise.
20538         PR rtl-optimization/42522
20539         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
20540         SIGN_EXTRACT as a whole object rather than simplifying
20541         its operand.
20543 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
20545         PR ipa/65765
20546         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
20547         and GIMPLE_PREDICT use break instead of return true. For
20548         GIMPLE_EH_DISPATCH, compare dispatch region.
20550 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
20552         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
20553         details about the implementation.  Make clear preference for
20554         __atomic builtins.  Reduce possibility of future change.
20556 2015-04-15  Nick Clifton  <nickc@redhat.com>
20558         * config/rx/rx.opt (mallow-string-insns): New option.
20559         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
20560         builtin if string instructions are denied.
20561         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
20562         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
20563         appropriate.
20564         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
20565         * config/rx/rx.md (movstr): Enable pattern only if string
20566         instructions are allowed.
20567         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
20568         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
20569         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
20570         (MULTILIB_DIRNAMES): Add no-strings.
20571         * doc/invoke.texi: Document -mno-allow-string-insns.
20573 2015-04-15  Alan Modra  <amodra@gmail.com>
20575         PR target/65408
20576         PR target/58744
20577         PR middle-end/36043
20578         * calls.c (load_register_parameters): Don't load past end of
20579         mem unless suitably aligned.
20581 2015-04-15  Nick Clifton  <nickc@redhat.com>
20583         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
20584         decrement instruction as being frame related.
20585         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
20586         based addresses.
20587         If zero extending a function address enclose the operation in
20588         %code(...).
20589         (rl78_preferred_reload_class): New function.
20590         (TARGET_PREFERRED_RELOAD_CLASS): Define.
20591         * config/rl78/rl78.md: Remove useless constraints in expanders.
20592         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
20593         (mulhi3_rl78): Likewise.
20594         (mulhi3_g13): Likewise.
20595         (mulsi3_rl78): Likewise.
20596         (es_addr): Move to before the multiply patterns.
20598 2015-04-15  Alan Modra  <amodra@gmail.com>
20600         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
20601         and sequence_stack.  Add seq.
20602         (seq_stack): Delete.
20603         * function.c (prepare_function_start): Don't access x_last_insn.
20604         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
20605         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
20606         * emit_rtl.c (start_sequence, push_topmost_sequence,
20607         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
20608         sequence accessors.
20609         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
20610         remove_insn): Likewise.  Simplify.
20611         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
20612         and pop_topmost_sequence.
20613         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
20614         debug insns.
20615         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
20617 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
20619         PR target/65729
20620         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
20621         the assertiion.
20623 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
20625         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
20626         (LEGACY_INT_REGNO_P): Ditto.
20627         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
20628         (ANY_MASK_REG_P): Remove.
20629         (BND_REG_P): Rename from ANY_BND_REG_P.
20630         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
20631         legacy integer registers.  Do not handle MMX_REG_P in a special way.
20632         Merge 64byte and 32byte SSE handling.
20634 2015-04-14  Nick Clifton  <nickc@redhat.com>
20636         * expr.c (expand_assignment): Force an address offset computation
20637         into a register before changing its mode.
20638         (expand_expr_real_1): Likewise.
20640 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
20642         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
20643         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
20644         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
20645         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
20646         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
20647         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
20648         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
20649         and __aarch64_vget_lane_any.
20651 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
20653         PR rtl-optimization/65761
20654         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
20655         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
20657 2015-04-14  Richard Biener  <rguenther@suse.de>
20659         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
20660         (graphite_can_represent_scev): Use POINTER_TYPE_P.
20662 2015-04-14  Richard Biener  <rguenther@suse.de>
20664         PR tree-optimization/65758
20665         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
20666         against -1.
20667         (ccp_lattice_meet): Likewise.
20668         (bit_value_unop): Likewise.
20669         (bit_value_binop): Likewise.
20670         (bit_value_assume_aligned): Likewise.
20672 2015-04-14  Christian Bruel  <christian.bruel@st.com>
20674         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
20675         function.
20677 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
20679         PR tree-optimization/63387
20680         * match.pd ((x unord x) | (y unord y) -> (x unord y),
20681         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
20683 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
20685         * config/i386/predicates.md (any_QIreg_operand): Rename from
20686         q_regs_operand.  Do not process subregs.
20687         (QIreg_operand): Use QI_REGNO_P predicate.
20688         (ext_QIreg_operand): Ditto.
20689         (ext_register_operand): Ditto.
20690         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
20691         (AND splitters): Ditto.
20692         (AND with -65536 splitter): Add SWI48 mode for operand 0.
20693         (AND with -256 splitter): Use any_QIreg_operand predicate and
20694         SWI248 mode for operand 0.
20695         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
20696         mode for operand 0.
20697         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
20699 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
20701         * doc/plugins.texi: Rewrite first introductory paragraph.
20703 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
20705         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
20706         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
20708 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
20710         * ipa-profie.c (ipa_profile): Check number of parameters
20711         and possible polymorphic call targets before
20712         devirtualizing.
20714 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
20716         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
20717         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
20719 2015-04-13  Richard Biener  <rguenther@suse.de>
20721         PR tree-optimization/65204
20722         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
20723         takens for bit-CCP.
20725 2015-04-13  Richard Biener  <rguenther@suse.de>
20727         PR target/65660
20728         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
20729         and cond_not_taken_branch_cost to 4 and 2.
20730         (bdver2_cost): Likewise.
20731         (bdver3_cost): Likewise.
20732         (bdver4_cost): Likewise.
20734 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
20736         * hash-table.h (hash_table constructor): Add mem stats.
20737         (alloc_entries): Likewise.
20739 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
20741         * ipa-cp.c (ipcp_driver): Relase prev_edge.
20742         * passes.c (execute_one_pass): Only add transform if pass has one.
20744 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
20746         * config/i386/i386.c (ix86_option_override_internal): Don't set
20747         -fprefetch-loop-arrays if optimizing for size.
20749 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
20750             Gerald Pfeifer  <gerald@pfeifer.com>
20752         * doc/contrib.texi (Contributors): Add Martin Jambor and
20753         Michael Matz.
20755 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
20757         * BASE-VER: Set to 6.0.0.
20759         PR tree-optimization/65747
20760         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
20761         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
20763 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
20765         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
20766         sentence.  Improve grammar.
20768 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
20770         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
20772 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
20774         PR ipa/65743
20775         * ipa-inline-transform.c (speculation_removed): Remove static var.
20776         (check_speculations): New function.
20777         (clone_inlined_nodes): Do not check spculations.
20778         (inline_call): Call check_speculations.
20779         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
20780         consider non-invariants.
20782 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
20783             Martin Liska  <mliska@suse.cz>
20785         PR ipa/65722
20786         * ipa-icf.c (sem_item::compare_cgraph_references): function and
20787         variable can not match.
20788         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
20789         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
20791 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
20793         PR tree-optimization/65735
20794         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
20795         Remove visited_phis argument, add visited_bbs, avoid recursing into the
20796         same bb rather than just into the same phi node.
20797         (thread_through_normal_block): Adjust caller.
20799 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
20801         * doc/contrib.texi (Contributors): Add Ira Rosen.
20803 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
20805         * gcov.c (find_source): Fix miswording in error message.
20806         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
20807         (ix86_expand_sse_comi_round): Fix typo in error message.
20809 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
20811         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
20813 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
20815         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
20817 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
20819         PR target/65710
20820         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
20821         Print bad_spills_num and insn_pseudos_num.
20823 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20825         PR target/65694
20826         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
20827         when creating +1 values for SImode.
20829 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
20831         PR target/65729
20832         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
20833         assert.
20835 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
20836             Iain Sandoe  <iain@codesourcery.com>
20838         PR target/65351
20839         * configure: Regenerate.
20841 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
20843         PR target/65671
20844         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
20846 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
20848         * doc/contrib.texi (Contributors): Add John Marino.
20850 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
20852         PR tree-optimization/65709
20853         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
20854         TREE_TYPE (TREE_TYPE (t)).
20856 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
20858         PR target/65710
20859         * lra-int.h (lra_bad_spill_regno_start): New.
20860         * lra.c (lra_bad_spill_regno_start): New.
20861         (lra): Set up lra_bad_spill_regno_start.  Set up
20862         lra_constraint_new_regno_start unconditionally.
20863         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
20864         spill preferences.
20866 2015-04-09  Marek Polacek  <polacek@redhat.com>
20867             Jakub Jelinek  <jakub@redhat.com>
20869         PR middle-end/65554
20870         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
20871         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
20872         of STRIP_NOPS.
20874 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
20876         PR rtl-optimization/65693
20877         * combine.c (is_parallel_of_n_reg_sets): Move outside of
20878         #ifndef HAVE_cc0.
20880 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
20882         PR target/65296
20883         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
20884         device specs file if "device-specs%s" didn't resolve to a path.
20886 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
20888         PR target/65676
20889         * config/i386/i386.c (fixup_modeless_constant): New.
20890         (ix86_expand_args_builtin): Fixup modeless constant operand.
20891         (ix86_expand_round_builtin): Ditto.
20892         (ix86_expand_special_args_builtin): Ditto.
20893         (ix86_expand_builtin): Ditto.
20895 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
20897         PR target/65693
20898         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
20899         any pow2 integer in between 2 and 0x80000000U inclusive.
20901 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
20903         PR rtl-optimization/65693
20904         * combine.c (is_parallel_of_n_reg_sets): Change first argument
20905         from an rtx_insn * to an rtx.
20906         (try_combine): Adjust both callers.  Use it once more.
20908 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
20910         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
20911         (chkp_make_static_const_bounds): Search existing
20912         symbol by assembler name.  Use make_decl_one_only.
20913         (chkp_get_zero_bounds_var): Remove node search which
20914         is now performed in chkp_make_static_const_bounds.
20915         (chkp_get_none_bounds_var): Likewise.
20917 2015-04-08  Michael Witten  <mfwitten@gmail.com>
20919         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
20920         to an example.
20922 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20924         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
20926 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
20928         * doc/extend.texi (__sync Builtins): Fix grammar.
20930 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20932         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
20934 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20936         * varasm.c (emit_local): Move definition of align.
20938 2015-04-08  Julian Brown  <julian@codesourcery.com>
20940         * config/nvptx/mkoffload.c (process): Support variable mapping.
20942 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
20944         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
20945         alpha_links **.
20946         (alpha_write_one_linkage): Correct typo.
20948 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
20950         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
20952 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
20954         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
20956 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
20958         * tree-chkp.h (chkp_insert_retbnd_call): New.
20959         * tree-chkp.c (chkp_insert_retbnd_call): New.
20960         * ipa-split.c (insert_bndret_call_after): Remove.
20961         (split_function): Use chkp_insert_retbnd_call.
20962         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
20963         bounds for instrumented functions.
20965 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
20967         PR ipa/65540
20968         * calls.c (initialize_argument_information): When producing tail
20969         call also turn SSA_NAMES passed by references to original PARM_DECLs
20971 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
20973         PR target/65648
20974         * lra-remat.c (do_remat): Process input and non-input insn
20975         registers separately.
20977 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
20979         PR debug/65678
20980         * valtrack.c (debug_lowpart_subreg): New function.
20981         (dead_debug_insert_temp): Use it.
20983         PR middle-end/65680
20984         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
20985         into signed HOST_WIDE_INT the same as negative bit_offset.
20987 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
20989         * ipa-comdats.c (ipa_comdats): Visit all thunks
20990         to set proper comdat group.
20992 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20994         PR target/65489
20995         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
20996         on constants for NEON VSTRUCT modes.
20998 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
20999             Iain Sandoe  <iain@codesourcery.com>
21001         PR target/65351
21002         * configure: Regenerate.
21004 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21006         PR target/65614
21007         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
21008         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
21009         that LFD is used to load double constants instead of LFS.  Add
21010         defaults for all costs structures.  Add comments for missing
21011         initialization fields.
21012         (size32_cost): Likewise.
21013         (size64_cost): Likewise.
21014         (rs64a_cost): Likewise.
21015         (mpccore_cost): Likewise.
21016         (ppc403_cost): Likewise.
21017         (ppc405_cost): Likewise.
21018         (ppc440_cost): Likewise.
21019         (ppc476_cost): Likewise.
21020         (ppc601_cost): Likewise.
21021         (ppc603_cost): Likewise.
21022         (ppc604_cost): Likewise.
21023         (ppc604e_cost): Likewise.
21024         (ppc620_cost): Likewise.
21025         (ppc630_cost): Likewise.
21026         (ppccell_cost): Likewise.
21027         (ppc750_cost): Likewise.
21028         (ppc7450_cost): Likewise.
21029         (ppc8540_cost): Likewise.
21030         (ppce300c2c3_cost): Likewise.
21031         (ppce500mc_cost): Likewise.
21032         (ppce500mc64_cost): Likewise.
21033         (ppce5500_cost): Likewise.
21034         (ppce6500_cost): Likewise.
21035         (titan_cost): Likewise.
21036         (power4_cost): Likewise.
21037         (power6_cost): Likewise.
21038         (power7_cost): Likewise.
21039         (power8_cost): Likewise.
21040         (ppca2_cost): Likewise.
21041         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
21043         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
21044         instead of XXLOR to copy SFmode to clear out dirty bits created
21045         when SFmode denormals are generated.
21046         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
21047         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
21049 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
21051         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
21052         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
21053         * config/aarch64/aarch64-tune.md: Regenerate.
21055 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
21057         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
21058         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
21059         * config/arm/arm-cores.def (exynos-m1): New core.
21060         * config/arm/arm-tune.md: Regenerate.
21061         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
21062         * config/arm/bpabi.h: Likewise.
21064 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
21066         * ipa-cp (set_single_call_flag): Remove too
21067         restrictive assert.
21069 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
21071         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
21072         GOMP_offload_unregister from the destructor.
21074 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
21076         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
21077         flags for instrumentation thunk.
21078         (chkp_produce_thunks): Likewise.
21080 2015-04-05  Martin Liska  <mliska@suse.cz>
21082         PR ipa/65665
21083         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
21084         has computed data structure.
21085         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21087 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
21089         * invoke.texi (inline-unit-growth): Increase growth to 20%
21090         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
21092 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
21094         PR target/65647
21095         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
21096         value checking.
21097         (lra_rematerialization_iter): New.
21098         * lra.c (lra): Initialize lra_rematerialization_iter.
21099         Stop updating lra_constraint_new_regno_start after switching of
21100         inheritance and rematerialization.
21101         * lra-remat.c (lra_rematerialization_iter): New.
21102         (lra_remat): Add printing pass iteration.  Do rematerialization
21103         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
21105 2015-04-04  Richard Biener  <rguenther@suse.de>
21107         PR tree-optimization/64909
21108         PR tree-optimization/65660
21109         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
21110         to take a cost vector for scalar iteration cost.
21111         (vect_get_single_scalar_iteration_cost): Likewise.
21112         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
21113         Compute the scalar iteration cost into a cost vector.
21114         (vect_get_known_peeling_cost): Use the scalar cost vector to
21115         account for the cost of the peeled iterations.
21116         (vect_estimate_min_profitable_iters): Likewise.
21117         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21118         Likewise.
21120 2015-04-04  Alan Modra  <amodra@gmail.com>
21122         PR target/65576
21123         PR target/65240
21124         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
21125         0.0 constant unless TARGET_VSX.
21126         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
21127         alternative.
21129 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
21131         PR ipa/65654
21132         * ipa-inline-transform.c (inline_call): Skip sanity check to work
21133         around the ICE
21135 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
21137         PR ipa/65655
21138         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
21139         speculative indirect edges to avoid ordering issue.
21141 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
21143         PR ipa/65076
21144         * ipa-inline.c (edge_badness): Add combined size to the denominator.
21146 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
21148         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
21149         TYPE_ARTIFICIAL on the .omp_data* types.
21151 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21153         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
21154         instrumentation thunks.
21156 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21158         * config/i386/i386.c (ix86_expand_call): Avoid nested
21159         PARALLEL in returned call value.
21161 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21163         * lto-cgraph.c (input_cgraph_1): Always link instrumented
21164         assembler name with original one.
21166 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
21168         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
21170 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
21172         Revert parts of r216820.
21173         * config/i386/i386.md (movqi_internal): Correct type calculation
21174         for alternatives 3 and 5.
21176 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
21178         PR preprocessor/61977
21179         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
21180         predefine __vector/__bool/__pixel macros nor context sensitive
21181         macros for CLK_ASM.
21182         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
21184 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
21186         * config/pa/pa.c (pa_output_move_double): Directly handle register
21187         indexed memory operand.  Simplify handling of scaled register indexed
21188         memory operands.
21190 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21192         PR driver/65444
21193         * config/i386/linux-common.h (MPX_SPEC): New.
21194         (CHKP_SPEC): Add MPX_SPEC.
21195         * doc/invoke.texi (-fcheck-pointer-boudns): Document
21196         possible issues with '-z bndplt' support in linker.
21198 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
21200         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
21201         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
21202         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
21203         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
21204         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
21206 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
21208         * config/i386/sync.md (UNSPEC_MOVA): Remove.
21209         (atomic_load<mode>): Change operand 0 predicate to
21210         nonimmediate_operand and fix up the destination when needed.
21211         Use UNSPEC_LDA.
21212         (atomic_loaddi_fpu): Use UNSPEC_LDA.
21213         (atomic_store<mode>): Change operand 1 predicate to
21214         nonimmendate_operand and move the source to register when needed.
21215         Use UNSPEC_STA.
21216         (atomic_store<mode>_1): Use UNSPEC_STA.
21217         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
21218         Fix moves from memory operand.  Use UNSPEC_STA.
21220 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21222         * expmed.c (strict_volatile_bitfield_p): Check that the access will
21223         not cross a MODESIZE boundary.
21224         (store_bit_field, extract_bit_field): Added assertions in the
21225         strict volatile bitfields code path.
21227 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
21229         PR target/65624
21230         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
21231         Increase args array size by one to avoid buffer overflow.
21233 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
21235         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21236         split_part.
21237         * ipa-inline.c (edge_badness): Add wrapper penalty.
21238         (sum_callers): Move up.
21239         (inline_small_functions): Set single_caller.
21240         * ipa-inline.h (inline_summary): Add single_caller.
21241         * ipa-split.c (split_function): Set split_part.
21242         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
21243         * cgraph.h (cgraph_node): Add split_part.
21245 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
21247         PR target/58945
21248         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
21249         Do not split operands 0 and operands 2 to halfmode.
21250         (atomic_compare_and_swap<mode>): Update for
21251         atomic_compare_and_swap<dwi>_doubleword changes.
21253 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
21255         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
21256         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
21257         no caching is done.
21259 2015-03-31  Martin Liska  <mliska@suse.cz>
21261         PR ipa/65557
21262         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
21263         has already filled up function summary.
21264         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
21266 2015-03-31  Richard Biener  <rguenther@suse.de>
21268         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
21269         of types.
21271 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21273         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
21274         nested functions.
21275         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
21276         (s390_asm_output_function_label): Adapt to new signature of
21277         s390_function_num_hotpatch_hw
21278         Optimise the code generating assembler output.
21279         Add comments to assembler file.
21281 2015-03-31  Richard Biener  <rguenther@suse.de>
21283         PR middle-end/65626
21284         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
21285         of the noreturn call so it is last and cleanup_control_flow_bb
21286         can do the CFG part.
21288 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
21290         PR target/65531
21291         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
21292         same_comdat_group for external symbols.
21293         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
21294         infinite same_comdat_group traversal loop.
21296 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
21298         PR plugins/61176
21299         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
21300         automatically to $headers.
21302 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
21304         PR ipa/65610
21305         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
21306         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
21307         function.
21308         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
21309         Use it.
21310         * ipa-prop.c (param_type_may_change_p): Likewise.
21311         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
21312         (remove_unused_scope_block_p): Add in_ctor_dtor_block
21313         argument.  Before inlining, preserve
21314         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
21315         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
21316         recursive calls.
21317         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
21319 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
21321         PR ipa/65076
21322         * ipa-inline.c (edge_badness): Base denominator on callee's
21323         grwoth squared.
21325 2015-03-27  Martin Jambor  <mjambor@suse.cz>
21327         PR ipa/65478
21328         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
21329         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
21330         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
21331         node_calling_single_call.
21332         * ipa-cp.c (count_callers): New function.
21333         (set_single_call_flag): Likewise.
21334         (initialize_node_lattices): Count callers and set single_flag_call if
21335         necessary.
21336         (incorporate_penalties): New function.
21337         (good_cloning_opportunity_p): Use it, dump new flags.
21338         (propagate_constants_topo): Set node_within_scc flag if appropriate.
21339         * doc/invoke.texi (ipa-cp-recursion-penalty,
21340         ipa-cp-single-call-pentalty): Document.
21342 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
21344         PR ipa/65588
21345         * symtab.c (symtab_node::get_partitioning_class): Register vars
21346         are duplicated.
21347         * varpool.c (symbol_table::output_variables) Do not assemble unefined
21348         decls for non-symbols.
21350 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
21352         PR target/65248
21353         * output.h (default_binds_local_p_2): New.
21354         * varasm.c (default_binds_local_p_2): Renamed to ...
21355         (default_binds_local_p_3): This.  Don't return true on protected
21356         data symbol if protected data may be external.
21357         (default_binds_local_p): Use default_binds_local_p_3.
21358         (default_binds_local_p_1): Likewise.
21359         (default_binds_local_p_2): New.
21360         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
21361         default_binds_local_p_2 if TARGET_MACHO is undefined.
21363 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
21365         PR target/65593
21366         * config/i386/i386.c (legitimize_pic_address): If base
21367         is SYMBOL_REF or LABEL_REF using %rip addressing, force
21368         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
21370 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
21372         PR target/65531
21373         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
21374         comdat groups.
21376 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
21378         PR ipa/65600
21379         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
21380         of optimized out indirect call.
21381         (redirect_to_unreachable): Always build symbol table node for
21382         BUILT_IN_UNREACHABLE
21384 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
21386         PR target/65407
21387         * ira-costs.c (record_reg_classes): Process all constraint string
21388         containing 0-9.
21390 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
21392         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
21393         memory_operand.
21395         PR target/65052
21396         * config/c6x/constraints.md (S3): New constraint.
21397         * config/c6x/c6x.md (real_jump): Use it.
21399 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21401         PR middle-end/65595
21402         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
21403         do redirection if the call is not optimized out.
21405 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
21407         PR target/65495
21408         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
21409         (fchkp-check-incomplete-type): Add LTO.
21410         (fchkp-zero-input-bounds-for-main): Likewise.
21411         (fchkp-first-field-has-own-bounds): Likewise.
21412         (fchkp-narrow-bounds): Likewise.
21413         (fchkp-narrow-to-innermost-array): Likewise.
21414         (fchkp-use-static-bounds): Likewise.
21415         (fchkp-use-static-const-bounds): Likewise.
21416         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21418 2015-03-27  Marek Polacek  <polacek@redhat.com>
21420         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
21422 2015-03-27  Marek Polacek  <polacek@redhat.com>
21424         PR sanitizer/65583
21425         * ubsan.c (ubsan_create_edge): New function.
21426         (instrument_bool_enum_load): Call it.
21427         (instrument_nonnull_arg): Likewise.
21428         (instrument_nonnull_return): Likewise.
21429         (instrument_object_size): Likewise.
21431 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21433         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
21434         auto_vec.
21436 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21438         PR lto/65536
21439         * lto-streamer.h (class lto_location_cache): New.
21440         (struct data_in): Add location_cache.
21441         (lto_input_location): Update prototype.
21442         (stream_input_location_now): New.
21443         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
21444         pointer to location.
21445         (stream_input_location): Update.
21446         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
21447         (warn_odr): Apply location cache before warning.
21448         (lto_input_location): Update prototype.
21449         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
21450         Use stream_input_location_now.
21451         * lto-streamer-in.c (lto_location_cache::current_cache): New static
21452         variable.
21453         (lto_location_cache::cmp_loc): New function.
21454         (lto_location_cache::apply_location_cache): New function.
21455         (lto_location_cache::accept_location_cache): New function.
21456         (lto_location_cache::revert_location_cache): New function.
21457         (lto_location_cache::input_location): New function.
21458         (lto_input_location): Do location caching.
21459         (stream_input_location_now): New function.
21460         (input_eh_region, input_struct_function_base): Use
21461         stream_input_location_now.
21462         (lto_data_in_create): use new.
21463         (lto_data_in_delete): Use delete.
21464         * tree-streamer-in.c (unpack_ts_block_value_fields,
21465         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
21466         lto_input_ts_exp_tree_pointers): Update for cached location api.
21468 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21470         PR ipa/65076
21471         * passes.def: Add pass_nothrow.
21472         * ipa-pure-const.c: (pass_data_nothrow): New.
21473         (pass_nothrow): New.
21474         (pass_nothrow::execute): New.
21475         (make_pass_nothrow): New.
21476         * tree-pass.h (make_pass_nothrow): Declare.
21478 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21480         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
21481         edge to change by speculation resolution or redirection.
21482         (edge_set_predicate): Likewise.
21483         (inline_summary_t::duplicate): Likewise.
21484         (remap_edge_summaries): Likewise.
21486 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21488         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
21489         New macros.
21490         (can_inline_edge_p): Relax option matching for always inline functions.
21492 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
21494         PR target/65561
21495         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
21496         Check operand 4 and operand 0 for equality.
21497         (avx512f_vextract<shuffletype>32x4_1_maskm):
21498         Check operand 6 and operand 0 for equality.
21499         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
21500         for equality.
21501         (vec_extract_hi_<mode>_maskm): Ditto.
21503 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21505         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
21506         dead calls back to live.
21507         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
21508         cross check to ...
21509         (cgraph_node::verify_node): ... here; verify only callee edges,
21510         not caller.
21511         * cif-code.def (CILK_SPAWN): New code.
21513 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
21515         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
21516         (edge_set_predicate): Use it to mark unreachable edges.
21517         (inline_summary_t::duplicate): Remove unnecesary code.
21518         (remap_edge_summaries): Likewise.
21519         (dump_inline_summary): Report contains_cilk_spawn.
21520         (compute_inline_parameters): Compute contains_cilk_spawn.
21521         (inline_read_section, inline_write_summary): Stream
21522         contains_cilk_spawn.
21523         * ipa-inline.c (can_inline_edge_p): Do not touch
21524         DECL_STRUCT_FUNCTION that may not be available;
21525         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
21526         remove check for callee_fun->can_throw_non_call_exceptions and
21527         replace it by optimization attribute check; check for flag_exceptions.
21528         * ipa-inline-transform.c (inline_call): Maintain
21529         DECL_FUNCTION_PERSONALITY
21530         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
21532 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
21534         PR tree-optimization/65551
21535         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
21536         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
21538 2015-03-26  Richard Biener  <rguenther@suse.de>
21540         PR middle-end/65555
21541         * tree-cfg.c (verify_gimple_call): Do not require a call to
21542         have no LHS if it wasn't recognized as control altering yet.
21544 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
21546         PR tree-optimization/64715
21547         * passes.def: Add another instance of pass_object_sizes before ccp1.
21548         * tree-object-size.c (pass_object_sizes::execute): In
21549         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
21550         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
21551         __bos result and the computed constant.  Remove redundant
21552         checks, obsoleted by gimple_call_builtin_p test.
21554         * var-tracking.c (variable_tracking_main_1): Don't track
21555         variables for targetm.no_register_allocation targets.
21557 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
21559         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
21560         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
21562 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
21564         PR target/65569
21565         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
21566         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
21567         0.0 is correctly setup.
21568         (extenddftf2_internal): Likewise.
21570 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
21572         PR tree-optimization/65177
21573         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
21574         (bb_in_bbs): New.
21575         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
21576         edges not adjacent on the path to the original code.
21578 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
21580         PR bootstrap/65537
21581         * doc/install.texi (Building a native compiler): Document new
21582         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
21583         configuration assumes that the host supports the linker plugin.
21585 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
21587         PR target/65508
21588         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
21589         chain for generated call.
21591 2015-03-25  Richard Biener  <rguenther@suse.de>
21593         * passes.c (pass_manager::execute_early_local_passes): Guard
21594         execution of pass_chkp_instrumentation_passes with
21595         flag_check_pointer_bounds.
21596         (pass_chkp_instrumentation_passes::gate): Likewise.
21598 2015-03-25  Martin Liska  <mliska@suse.cz>
21600         PR tree-optimization/65538
21601         * symbol-summary.h (function_summary::~function_summary):
21602         Relese memory for allocated summaries.
21603         (function_summary::release): New function.
21605 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
21607         PR lto/65515
21608         * lto-streamer-out.c (DFS::worklist): New struct.
21609         (DFS::worklist_vec): New data member.
21610         (DFS::next_dfs_num): Remove.
21611         (DFS::DFS): Rewritten using worklist instead of recursion,
21612         using most of code from DFS::DFS_write_tree.
21613         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
21614         pass it to DFS_write_tree calls.
21615         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
21616         quick initial checks push it into worklist_vec and return.
21618 2015-03-25  Richard Biener  <rguenther@suse.de>
21620         PR middle-end/65519
21621         * genmatch.c (expr::gen_transform): Re-write to avoid
21622         using gimple_build.
21624 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
21626         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
21628 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
21630         * config/arm/arm.opt (print_tune_info): New option.
21631         * config/arm/arm.c (arm_print_tune_info): New function.
21632         (arm_file_start): Call arm_print_tune_info.
21633         * config/arm/arm-protos.h (struct tune_params): Add comment.
21634         * doc/invoke.texi (@item -mprint-tune-info): New item.
21635         (-mtune): mention it in ARM Option Summary.
21637 2015-03-25  DJ Delorie  <dj@redhat.com>
21639         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
21640         correct clause.
21642 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
21643             Martin Liska  <mliska@suse.cz>
21645         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
21646         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
21647         (sem_item::add_type): New function.
21648         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
21649         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
21650         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
21651         (sem_function::equals_wpa): Fix typo.
21652         * ipa-icf.h (sem_item::add_type): New function.
21653         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
21654         order.
21656 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
21658         PR tree-optimization/65533
21659         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
21660         with swapped operands, call vect_free_slp_tree on
21661         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
21662         vector.
21664 2015-03-24  Richard Biener  <rguenther@suse.de>
21666         PR middle-end/65517
21667         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
21668         for fixup if necessary.
21670 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
21672         * doc/extend.texi (Function Attributes): Add @cindex entries
21673         for all attributes and regularize their format.  Delete text
21674         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
21675         information about "eightbit_data", "tiny_data", and "model"
21676         variable attributes to the Variable Attributes section.  Fix
21677         some obvious typos and copy-editing issues.
21678         (Variable Attributes, Type Attributes): Likewise add/fix
21679         @cindex entries for all attributes.
21681 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
21683         PR target/65523
21684         * tree-chkp.c (chkp_build_returned_bound): Ignore
21685         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
21687 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
21689         PR target/65505
21690         * config/sh/predicates.md (simple_mem_operand,
21691         displacement_mem_operand): Add test for reg.
21692         (short_displacement_mem_operand): Test for displacement_mem_operand
21693         before invoking sh_disp_addr_displacement.
21694         * config/sh/constraints.md (Sdd, Sra): Simplify.
21695         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
21696         Remove redundant displacement_mem_operand tests.
21698 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
21700         PR target/65296
21701         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
21702         the same -mmcu=MCU more than once.
21704 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
21706         PR bootstrap/65522
21707         * ipa-devirt.c: Remove duplicate demangle.h include.
21709         PR target/65504
21710         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
21711         on the pseudo.
21712         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
21713         REG_POINTER on *destptr after adjusting it for prologue size.
21715         PR ipa/65521
21716         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
21717         ultimate_alias_target ()->order ints instead of
21718         ultimate_alias_target () pointers.
21720 2015-03-23  Richard Biener  <rguenther@suse.de>
21722         PR tree-optimization/65518
21723         * tree-vect-stmts.c (vectorizable_load): Reject single-element
21724         interleaving cases we generate absymal code for.
21726 2015-03-23  Richard Biener  <rguenther@suse.de>
21728         PR tree-optimization/65494
21729         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
21730         matches here.
21731         (vect_analyze_slp_instance): But do that here, always and once.
21733 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21735         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
21736         adding T or multiplying by T+1 and subracting T.
21738 2015-03-22  Jeff Law  <law@redhat.com>
21740         PR rtl-optimization/64317
21741         * Makefile.in (OBJS): Add gcse-common.c
21742         * gcse.c: Include gcse-common.h
21743         (struct modify_pair_s): Move structure definition to gcse-common.h
21744         (compute_transp): Move function to gcse-common.c.
21745         (canon_list_insert): Similarly.
21746         (record_last_mem_set_info): Break out some code and put it into
21747         gcse-common.c.  Call into the new common code.
21748         (compute_local_properties): Pass additional arguments to compute_transp.
21749         * postreload-gcse.c: Include gcse-common.h and df.h
21750         (modify_mem_list_set, blocks_with_calls): New variables.
21751         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
21752         (get_bb_avail_insn): Pass in the expression index too.
21753         (alloc_mem): Allocate memory for the new bitmaps and lists.
21754         (free_mem): Free memory for the new bitmaps and lists.
21755         (insert_expr_in_table): Record a bitmap index for each entry we
21756         add to the table.
21757         (record_last_mem_set_info): Call into common code in gcse-common.c.
21758         (get_bb_avail_insn): If no available insn was found in the requested
21759         BB.  If BB has a single predecessor, see if the expression is
21760         transparent in BB and available in that single predecessor.
21761         (compute_expr_transp): New wrapper for compute_transp.
21762         (eliminate_partially_redundant_load): Pass expression's bitmap_index
21763         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
21764         (gcse_after_reload_main): If there are elements in the hash table,
21765         then compute transparency for all the elements in the hash table.
21766         * gcse-common.h: New file.
21767         * gcse-common.c: New file.
21769 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
21771         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
21772         as an adjective.
21773         (System Headers): Likewise.
21774         (Ifdef): Likewise.
21775         (Traditional macros): Likewise.
21776         (Invocation): Likewise.
21777         (Option Index): Likewise.
21778         * doc/cppopts.texi (-M): Likewise.
21779         (-finput-charset): Likewise.
21780         (--help): Likewise.
21781         * doc.invoke.texi (AVR Options): Likewise.
21782         (V850 Options): Likewise.
21784 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
21786         PR ipa/65475
21787         * ipa-devirt.c: Include demangle.h
21788         (odr_type_d): Add field rtti_broken.
21789         (odr_subtypes_equivalent_p): Do not require name to match.
21790         (compare_virtual_tables): Fix typo; if type already has ODR violation,
21791         bypass the tests; be ready for function referneces in vtables that are
21792         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
21793         (warn_odr): Give up for nameless types.
21794         (warn_types_mismatch): Report mismatch in mangled names;
21795         report mismatch in anonymous namespaces; look into component types to
21796         give useful error; report when mismatch is dragged in from other ODR
21797         type.
21798         (odr_types_equivalent_p): Match types for being polymorphic; avoid
21799         duplicated diagnostics.
21800         (add_type_duplicate): Reorder checks so more informative ones come
21801         first; fix typo; do not output "the extra base is defined here" when
21802         we did not warn.
21803         (BINFO_N_BASE_BINFOS): Relax sanity check.
21805 2015-03-22  Martin Liska  <mliska@suse.cz>
21806             Jakub Jelinek  <jakub@redhat.com>
21808         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
21809         masks that can potentially include a builtin.
21810         (ix86_add_new_builtins): Introduce fast filter for isa values
21811         that cannot trigger builtin inclusion.
21813 2015-03-22  Martin Liska  <mliska@suse.cz>
21815         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
21816         (sem_item::update_hash_by_local_refs): Likewise.
21817         (sem_variable::get_hash): Empty line is fixed.
21818         (sem_item_optimizer::execute): Include adding of hash references.
21819         (sem_item_optimizer::update_hash_by_addr_refs): New function.
21820         (sem_item_optimizer::build_hash_based_classes): Use local hash.
21821         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
21822         (sem_item::update_hash_by_local_refs): Likewise.
21824 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
21826         PR ipa/65502
21827         * ipa-comdats.c (enqueue_references): Walk through thunks.
21828         (ipa_comdats): Likewise.
21829         (set_comdat_group_1): New function.
21831 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
21833         PR ipa/65475
21834         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
21835         non-polymorphic
21837 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
21838             Gerald Pfeifer  <gerald@pfeifer.com>
21840         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
21842 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
21843             Sandra Loosemore  <sandra@codesourcery.com>
21845         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
21846         function parameter declaration.
21847         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
21848         Update arguments to nios2_adjust_call_address().
21849         (sibcall_internal): Rename from *sibcall.
21850         (sibcall_value_internal): Rename from *sibcall_value.
21851         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
21852         (nios2_large_got_address): Add target temp reg parameter.
21853         (nios2_got_address): Adjust call to nios2_large_got_address, add
21854         force_reg around it.
21855         (nios2_load_pic_address): Add target temp reg parameter, replace call
21856         to nios2_got_address with corresponding code.
21857         (nios2_legitimize_constant_address): Update call to
21858         nios2_load_pic_address.
21859         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
21860         to use temp reg for PIC loading purposes.
21861         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
21862         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21863         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
21865 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
21867         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
21868         usage of "the @option{...}".
21869         (-Wopenmp-simd): Likewise.
21870         (-fsanitize-recover): Likewise.
21871         (-fsanitize-undefined-trap-on-error): Likewise.
21872         (-flto): Likewise.
21873         (tracer-dynamic-coverage-feedback): Likewise.
21874         (reorder-block-duplicate-feedback): Likewise.
21875         (loop-unroll-jam-size): Likewise.
21876         (-B): Likewise.
21877         (-I-): Likewise.
21878         (-mabs=legacy): Likewise.
21879         (-mupper-regs-df): Likewise.
21880         (-mupper-regs-sf): Likewise.
21881         (-mpointers-to-nested-functions): Likewise.
21883 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
21885         * doc/extend.texi (Cilk Plus Builtins): Add markup.
21887 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
21889         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
21890         additional index entries and cross-references.
21891         (-fchkp-check-incomplete-type): Likewise.
21892         (-fchkp-first-field-has-own-bounds): Likewise.
21893         (-fchkp-narrow-to-innermost-array): Likewise.
21894         (-fchkp-use-fast-string-functions): Likewise.
21895         (-fchkp-use-nochk-string-functions): Likewise.
21896         (-fchkp-use-static-const-bounds): Likewise.
21897         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
21898         (-fchkp-instrument-marked-only): Likewise.
21899         (-fchkp-use-wrappers): Likewise.
21900         (-static-libmpx): Likewise.
21901         (-static-libmpxwrappers): Likewise.
21902         * doc/extend.texi (bnd_legacy): Likewise.
21903         (bnd_instrument): Likewise.
21904         (bnd_variable_size): Likewise.
21905         (Pointer Bounds Checker builtins): Likewise.
21907 2015-03-21  Tom de Vries  <tom@codesourcery.com>
21909         PR tree-optimization/65458
21910         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
21911         * cgraph.h (cgraph_node): Add parallelized_function field.
21912         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
21913         (input_overwrite_node): Read parallelized_function field.
21914         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
21915         parallelized_function on cgraph_node for child_fn.
21916         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
21917         Remove include of gt-tree-parloops.h.
21918         (parallelized_functions): Remove static variable.
21919         (parallelized_function_p): Rewrite using parallelized_function field of
21920         cgraph_node.
21921         (create_loop_fn): Remove adding to parallelized_functions.
21922         * Makefile.in (GTFILES): Remove tree-parloops.c
21924 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
21926         PR rtl-optimization/64366
21927         * lra.c (lra_update_insn_regno_info): Consider regs in
21928         CALL_INSN_FUNCTION_USAGE memory.
21930 2015-03-20  Richard Biener  <rguenther@suse.de>
21932         PR middle-end/64715
21933         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
21934         for type comparison and gcc_checking_assert.
21935         (chrec_fold_plus_poly_poly): Likewise.
21936         (chrec_fold_multiply_poly_poly): Likewise.
21937         (chrec_convert_1): Likewise.
21938         * gimplify.c (gimplify_expr): Remove premature folding of
21939         &X + CST to &MEM[&X, CST].
21941 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
21943         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
21944         already is final.
21945         (ipa_inline): Recompute inline_failed codes.
21946         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21947         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
21948         CIF_FINAL_ERROR.
21950 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
21952         PR rtl-optimization/60851
21953         * recog.c (constrain_operands): Accept a pseudo register before reload
21954         for LRA enabled targets.
21956 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21958         PR target/65240
21959         * config/rs6000/predicates.md (easy_fp_constant): Remove special
21960         -ffast-math handling that kept non-0 constants live in the RTL
21961         until reload.  Remove logic testing the number of instructions it
21962         took to create a constant in a GPR that was never used, due to a
21963         test for soft-float earlier.
21964         (memory_fp_constant): Delete, no longer used.
21966         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
21967         alternatives for loading non-0 constants into GPRs for hard
21968         floating point that is no longer needed due to changes in
21969         easy_fp_constant.  Add support for loading 0.0 into GPRs.
21970         (mov<mode>_hardfloat32): Likewise.
21971         (mov<mode>_hardfloat64): Likewise.
21972         (mov<mode>_64bit_dm): Likewise.
21973         (movtd_64bit_nodm): Likewise.
21974         (pre-reload move FP constant define_split): Delete define_split,
21975         since it is no longer used.
21976         (extenddftf2_internal): Remove GHF constraints that are not valid
21977         for extenddftf2.
21979 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
21981         PR rtl-optimization/63491
21982         * lra-constraints.c (check_and_process_move): Use src instead of
21983         sreg.  Remove some dead code.
21985 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
21987         PR ipa/65380
21988         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
21989         (sem_variable::merge): Likewise.
21991 2015-03-19  Martin Liska  <mliska@suse.cz>
21993         PR ipa/65465
21994         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
21995         all fields of cgraph_thunk_info.
21997 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
21999         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
22000         clone instrumented thunks.
22002 2015-03-19  Richard Biener  <rguenther@suse.de>
22004         Revert
22005         2015-03-10  Richard Biener  <rguenther@suse.de>
22007         PR middle-end/63155
22008         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22009         * tree-ssa-coalesce.c: Include timevar.h.
22010         (attempt_coalesce): Handle graph being NULL.
22011         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22012         Split out abnormal coalescing to ...
22013         (perform_abnormal_coalescing): ... this function.
22014         (coalesce_ssa_name): Perform abnormal coalescing without computing
22015         live/conflict.
22016         (verify_ssa_coalescing_worker): New function.
22017         (verify_ssa_coalescing): Likewise.
22019 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22020             Jakub Jelinek  <jakub@redhat.com>
22022         PR sanitizer/65400
22023         * tsan.c (instrument_gimple): Clear tail call flag on
22024         calls.
22026 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
22028         PR sanitizer/65400
22029         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
22030         call in the return bb.
22031         (find_split_points): Add RETURN_BB argument, don't call
22032         find_return_bb.
22033         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
22034         if true append TSAN_FUNC_EXIT internal call after the call to
22035         the split off function.
22036         (execute_split_functions): Call find_return_bb here.
22037         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
22038         Adjust find_split_points and split_function calls.
22040 2015-03-18  DJ Delorie  <dj@redhat.com>
22042         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
22043         (iorqi3_virt): Likewise.
22045 2015-03-18  Tom de Vries  <tom@codesourcery.com>
22047         * tree-parloops.c (parallelize_loops): Make static.
22048         * tree-parloops.h (parallelize_loops): Remove extern declaration.
22050 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
22052         PR middle-end/64491
22053         Revert:
22054         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
22056         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
22057         condition would be removed due to undefined behaviour.
22059 2015-03-18  Martin Liska  <mliska@suse.cz>
22061         PR ipa/65432
22062         * cgraph.c (cgraph_node::get_create): Remove unnecessary
22063         xstrdup_for_dump wrapper.
22064         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
22065         sem_item::name.
22066         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
22067         with xstrdup_for_dump.
22068         (sem_variable::equals): Likewise.
22069         (sem_item_optimizer::read_section): Use symtab_node::name instead of
22070         sem_item::name.
22071         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
22072         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
22073         symtab_node::asm_name with xstrdup_for_dump.
22074         (congruence_class::dump): Use symtab_node::name instead of
22075         sem_item::name.
22076         * ipa-icf.h (symtab_node::name): Remove.
22077         (symtab_node::asm_name): Likewise.
22079 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
22081         PR tree-optimization/65450
22082         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
22083         function.
22084         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
22085         it instead of duplicate_ssa_name_ptr_info.
22087         PR target/65222
22088         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
22090 2015-03-18  Richard Biener  <rguenther@suse.de>
22092         * tree-data-ref.h (struct access_matrix): Remove.
22093         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
22094         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
22095         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
22096         (am_vector_index_for_loop): Likewise.
22097         (struct data_reference): Remove access_matrix member.
22098         (DR_ACCESS_MATRIX): Remove.
22099         (lambda_vector_new): Add comment.
22100         (lambda_matrix_new): Use XOBNEWVEC.
22102 2015-03-18  Richard Biener  <rguenther@suse.de>
22104         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
22105         (pass_ch::execute): Cleanup the CFG only if we did sth.
22106         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
22108 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22110         * expmed.c (synth_mult): Use std::swap instead of manually
22111         swapping algorithms.
22113 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
22115         PR target/65078
22116         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
22118 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
22120         PR target/65296
22121         * config/avr/avr.opt (-nodevicelib): New option.
22122         * doc/invoke.texi (AVR Options): Document it.
22123         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
22124         libgcc.a, libc.a, libm.a.
22125         * config/avr/specs.h: Same.
22126         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
22127         which don't (directly) depend on the device.  Print more help.
22128         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
22129         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
22130         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
22131         case of an error.
22132         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
22133         for specs file name.
22134         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
22135         * config/avr/avr-mcus.def: Adjust initializers and comments.
22137 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
22139         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
22140         DECL_ONE_ONLY to check if decl is one only.
22141         * ipa-split.c (consider_split): Limit splitt of one only functions.
22143 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
22145         PR tree-optimization/65427
22146         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
22147         functions.
22148         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
22150 2015-03-16  Marek Polacek  <polacek@redhat.com>
22152         * cgraph.h (add_new_static_var): Remove declaration.
22153         * varpool.c (add_new_static_var): Remove function.
22155 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
22157         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
22158         instead of vec<tree> * with vec_alloc and release for args.
22159         Adjust all users.
22161         PR middle-end/65431
22162         * omp-low.c (delete_omp_context): Only splay_tree_delete
22163         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
22164         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
22166 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
22168         PR sanitizer/64820
22169         * cfgexpand.c (align_base): New function.
22170         (alloc_stack_frame_space): Call it.
22171         (expand_stack_vars): Align prev_frame to be sure
22172         data->asan_vec elements aligned properly.
22174 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
22176         PR middle-end/65409
22177         * expr.c (store_field): Do not do a direct block copy if the source is
22178         a PARALLEL with BLKmode.
22180 2015-03-16  Tom de Vries  <tom@codesourcery.com>
22182         PR middle-end/65414
22183         Revert:
22184         2015-03-12  Tom de Vries  <tom@codesourcery.com>
22186         PR rtl-optimization/64895
22187         * lra-lives.c (check_pseudos_live_through_calls): Use
22188         actual_call_used_reg_set instead of call_used_reg_set, if available.
22190 2015-03-16  Alan Modra  <amodra@gmail.com>
22192         PR target/63150
22193         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
22194         Modify Z->r bswapdi splitter to use dest in place of scratch.
22195         In r->Z and Z->r bswapdi splitter rename word_high, word_low
22196         to word1, word2 and rearrange logic to suit.
22197         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
22198         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
22199         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
22200         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
22201         early clobber.
22203 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
22205         PR tree-optimization/65369
22206         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
22207         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
22208         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
22210         PR tree-optimization/65418
22211         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
22212         are casts in the first PLUS_EXPR operand, ensure tbias and
22213         *totallowp are in the inner type.
22215         PR rtl-optimization/65401
22216         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
22217         argument.  If true, adjust_address_nv of x with big-endian
22218         correction for the mode widening to GET_MODE (y).
22219         (make_field_assignment): Don't do MEM mode widening here.
22220         Use MEM_P instead of GET_CODE == MEM.
22222 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
22224         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
22225         the external decls.
22227 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22229         PR target/64600
22230         * config/arm/arm.c (arm_gen_constant, AND case): Use
22231         ARM_SIGN_EXTEND when constructing AND mask.
22233 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22235         * graph.c (print_graph_cfg): Make function names visible and append
22236         parenthesis to it.  Also make groups of basic blocks belonging to the
22237         same function visible.
22239 2015-03-12  Richard Biener  <rguenther@suse.de>
22241         PR middle-end/44563
22242         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
22243         to avoid quadratic behavior with inline expansion splitting blocks.
22244         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
22245         with the successor if the predecessor will be merged with it.
22246         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
22247         entry block with its successor.
22249 2015-03-13  Richard Biener  <rguenther@suse.de>
22251         PR middle-end/44563
22252         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
22253         (cleanup_tree_cfg_1): Do not call it.
22254         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
22255         (fixup_noreturn_call): Mark the stmt as control altering.
22256         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
22257         here.
22258         (pass_data_fixup_cfg): Produce a dump file.
22259         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
22260         (need_noreturn_fixup): New global.
22261         (pass_dominator::execute): Fixup queued noreturn calls.
22262         (optimize_stmt): Queue calls that became noreturn for fixup.
22263         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
22264         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
22265         (el_to_fixup): New global.
22266         (eliminate_dom_walker::before_dom_childre): Queue calls that
22267         became noreturn for fixup.
22268         (eliminate): Fixup queued noreturn calls.
22269         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
22270         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
22271         (substitute_and_fold_dom_walker::before_dom_children): Queue
22272         alls that became noreturn for fixup.
22273         (substitute_and_fold): Fixup queued noreturn calls.
22275 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
22277         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
22278         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
22279         are building; for methods check ODR type of class they belong to if
22280         they may lead to a polymorphic call.
22281         (sem_function::compare_polymorphic_p): Be bit smarter about testing
22282         when function may lead to a polymorphic call.
22283         (sem_function::compare_type_list): Remove.
22284         (sem_variable::equals): Update use of compatible_types_p.
22285         (sem_variable::parse_tree_refs): Remove.
22286         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
22287         cdtor.
22288         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
22289         matching here.
22290         (func_checker::compatible_polymorphic_types_p): Break out from ...
22291         (unc_checker::compatible_types_p): ... here.
22292         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
22293         Declare.
22294         (unc_checker::compatible_types_p): Update.
22295         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
22296         Remove.
22298 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22300         PR rtl-optimization/65235
22301         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
22302         When first element of vec_concat is const_int, calculate its size
22303         using second element.
22305 2015-03-12  Richard Biener  <rguenther@suse.de>
22307         PR middle-end/65270
22308         * fold-const.c (operand_equal_p): Fix ordering of resetting
22309         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
22311 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22313         * config/s390/s390.c (s390_reorg): Move code to output nops after label
22314         to s390_reorg ().
22315         (s390_asm_output_function_label): Likewise.
22316         * config/s390/s390.c (s390_asm_output_function_label):
22317         Fix function label alignment with -mhtopatch.
22318         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
22319         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
22320         ("nop_2_byte"): New define_insn.
22321         ("nop_4_byte"): Likewise.
22322         ("nop_6_byte"): Likewise.
22323         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
22324         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
22326 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
22328         PR target/65103
22329         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
22330         register.
22332 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
22334         PR target/65044
22335         * toplev.c (process_options): Restrict Pointer Bounds Checker
22336         usage with Address Sanitizer.
22338 2015-03-12  Richard Biener  <rguenther@suse.de>
22340         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
22341         to split on.
22342         * omp-low.c (expand_omp_taskreg): Split block before removing
22343         the stmt.
22344         (expand_omp_target): Likewise.
22345         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
22346         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
22347         stmt to split_block.
22349 2015-03-12  Tom de Vries  <tom@codesourcery.com>
22351         PR rtl-optimization/64895
22352         * lra-lives.c (check_pseudos_live_through_calls): Use
22353         actual_call_used_reg_set instead of call_used_reg_set, if available.
22355 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
22357         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
22358         (cgraph_node::remove): Likewise.
22359         (cgraph_node::get_untransformed_body): Likewise.
22360         * varpool.c (varpool_node::remove): Likewise.
22361         (varpool_node::get_constructor): Add sanity check.
22363 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
22365         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
22366         old GCC versions.
22367         (-fabi-compat-version): Likewise.
22368         (-ffriend-injection): Likewise.
22369         (-Wdeclaration-after-statement): Likewise.
22370         (-fomit-frame-pointer): Likewise.
22371         (-ftree-coalesce-inlined-vars): Likewise.
22372         (-fvisibility=): Likewise.
22373         * doc/extend.texi (Typeof): Likewise.
22374         (Zero Length): Likewise.
22375         (Escaped Newlines): Likewise.
22376         (Compound Literals): Likewise.
22377         (Function Attributes): Likewise.
22378         (Label Attributes): Likewise.
22379         (Type Attributes): Likewise.
22380         (Function Names): Likewise.
22381         (Other Builtins): Likewise.
22382         (Function Specific Option Pragmas): Likewise.
22383         (C++ Interface): Likewise.
22385 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
22387         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
22389 2015-03-11  Marek Polacek  <polacek@redhat.com>
22391         PR tree-optimization/65388
22392         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
22394 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
22396         PR target/65296
22397         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
22398         * configure: Regenerate.
22399         * config.in: Regenerate.
22400         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
22401         [-mn-flash]: Document it.
22402         [__AVR_ARCH__]: Document avrtiny.
22404         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
22405         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
22406         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
22408 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22410         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
22412 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22414         PR target/65242
22415         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
22416         allow reloads of PLUS in floating point/VSX registers.
22418 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
22420         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
22421         crypto_sha256_fast.
22422         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
22424 2015-03-11  Richard Biener  <rguenther@suse.de>
22426         PR tree-optimization/65310
22427         * tree-sra.c (build_ref_for_offset): Also preserve larger
22428         alignment.
22430 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
22432         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
22434 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
22436         PR target/65368
22437         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
22438         new define_expand.
22439         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
22441 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
22443         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
22444         (sem_function::equals_wpa): ... here.
22446 2015-03-10  Marek Polacek  <polacek@redhat.com>
22447             Jakub Jelinek  <jakub@redhat.com>
22449         PR sanitizer/65367
22450         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
22451         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
22452         separately.
22454 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
22456         PR target/65286
22457         * config/rs6000/t-linux: For powerpc64* target set
22458         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
22460 2015-03-10  Richard Biener  <rguenther@suse.de>
22462         PR middle-end/44563
22463         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
22464         for redirect_all_calls.
22466 2015-03-10  Marek Polacek  <polacek@redhat.com>
22468         * gdbinit.in (pcfun): Define and document.
22470 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
22472         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
22473         of libgomp-plugin.h.
22474         (find_target_compiler): Support a case when the path to gcc is
22475         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
22476         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
22477         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
22478         libgomp-plugin.h.
22479         (main): Use GCC_INSTALL_NAME as target_driver_name.
22480         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
22481         define.
22482         (mkoffload.o): Remove obsolete include path and defines.
22483         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
22485 2015-03-10  Richard Biener  <rguenther@suse.de>
22487         PR middle-end/63155
22488         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
22489         * tree-ssa-coalesce.c: Include timevar.h.
22490         (attempt_coalesce): Handle graph being NULL.
22491         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
22492         Split out abnormal coalescing to ...
22493         (perform_abnormal_coalescing): ... this function.
22494         (coalesce_ssa_name): Perform abnormal coalescing without computing
22495         live/conflict.
22496         (verify_ssa_coalescing_worker): New function.
22497         (verify_ssa_coalescing): Likewise.
22499 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
22501         PR target/65296
22502         * config.gcc (extra_options) [avr]: Remove.
22503         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
22504         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
22505         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
22507         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
22508         (-mmcu=): Add Var and MissingArgError properties.
22509         (-march=): Remove.
22510         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
22511         * config/avr/t-multilib: Regenerate.
22512         * config/avr/specs.h: New file.
22513         * config/avr/driver-avr.c: New file.
22514         * config/avr/genopt.sh: Remove file.
22515         * config/avr/avr-tables.opt: Remove file.
22516         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
22517         * config/avr/avr-c.c: Same.
22518         * avr-arch.h: Same.
22519         (avr_current_device): Remove proto.
22520         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
22521         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
22522         (EXTRA_SPEC_FUNCTIONS): Define.
22523         (avr_devicespecs_file): New specs function proto.
22524         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
22525         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
22526         (avr_current_device): Remove definition and usage.
22527         (avr_set_core_architecture): New static function.
22528         (avr_option_override): Use it.
22529         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
22530         (mcu_name): New static array.
22531         (comparator, avr_archs_str, avr_mcus_str): New static functions.
22532         (avr_inform_devices, avr_inform_core_architectures): New functions.
22533         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
22534         (avrlibc.h) [WITH_AVRLIBC]: Include.
22535         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
22536         (print_mcu): Rewrite from scratch.
22537         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
22538         Forward to avr-specific specs defined in device-specs file.
22539         * config/avr/t-avr (driver-avr.o): New rule.
22540         (avr-devices.o): Depend on avr-arch.h.
22541         (avr-mcus): No more depend on avr-tables.opt.
22542         (avr-tables.opt): Remove rule.
22543         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
22545 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
22547         * c-family/c.opt (fchkp-use-wrappers): New.
22548         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
22549         (chkp_wrap_function): New.
22550         (chkp_build_instrumented_fndecl): Support wrapped
22551         functions.
22552         * doc/invoke.texi (-fcheck-pointer-bounds): New.
22553         (-fchkp-check-incomplete-type): New.
22554         (-fchkp-first-field-has-own-bounds): New.
22555         (-fchkp-narrow-bounds): New.
22556         (-fchkp-narrow-to-innermost-array): New.
22557         (-fchkp-optimize): New.
22558         (-fchkp-use-fast-string-functions): New.
22559         (-fchkp-use-nochk-string-functions): New.
22560         (-fchkp-use-static-bounds): New.
22561         (-fchkp-use-static-const-bounds): New.
22562         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
22563         (-fchkp-check-read): New.
22564         (-fchkp-check-write): New.
22565         (-fchkp-store-bounds): New.
22566         (-fchkp-instrument-calls): New.
22567         (-fchkp-instrument-marked-only): New.
22568         (-fchkp-use-wrappers): New.
22569         (-static-libmpx): New.
22570         (-static-libmpxwrappers): New.
22572 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
22574         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
22575         (CHKP_SPEC): Add wrappers library.
22576         * c-family/c.opt (static-libmpxwrappers): New.
22578 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
22580         * config/i386/linux-common.h (LIBMPX_LIBS): New.
22581         (LIBMPX_SPEC): New.
22582         (CHKP_SPEC): New.
22583         * gcc.c (CHKP_SPEC): New.
22584         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
22585         * c-family/c.opt (static-libmpx): New.
22587 2015-03-10  Richard Biener  <rguenther@suse.de>
22589         PR middle-end/44563
22590         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
22591         for compare_type.
22592         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
22593         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
22594         (cgraph_add_edge_to_call_site_hash): Likewise.
22595         (cgraph_node::get_edge): Likewise.
22596         (cgraph_edge::set_call_stmt): Likewise.
22597         (cgraph_edge::remove_caller): Likewise.
22599 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
22601         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
22602         (callee_saved_gpr_regs_size): ... this.
22603         (callee_saved_regs_first_regno): Rename to ...
22604         (callee_saved_first_gpr_regno): ... this.
22605         (callee_saved_regs_last_regno) Rename to ...
22606         (callee_saved_last_gpr_regno): ... this.
22607         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
22608         variables.
22609         (nds32_initial_elimination_offset): Likewise.
22610         (nds32_expand_prologue): Likewise.
22611         (nds32_expand_epilogue): Likewise.
22612         (nds32_expand_prologue_v3push): Likewise.
22613         (nds32_expand_epilogue_v3pop): Likewise.
22614         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
22615         Adjust renamed variables.
22616         (nds32_output_stack_pop): Likewise.
22618 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22620         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
22621         code in comment.
22623 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
22625         PR rtl-optimization/65321
22626         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
22627         than shift mode.
22628         * var-tracking.c (use_narrower_mode): Likewise.
22630 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
22632         PR tree-optimization/65355
22633         * varasm.c (notice_global_symbol): Do not produce RTL.
22634         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
22635         anchor.
22636         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
22637         check for section anchors.
22639 2015-03-10  Alan Modra  <amodra@gmail.com>
22641         PR target/65286
22642         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
22643         to be single-arch by default.  Set cpu_is_64bit for powerpc64
22644         given --with-cpu=native.
22645         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
22646         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
22647         and powerpc64le.
22648         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
22649         rs6000_isa_flags rather than TARGET_64BIT.
22651 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
22652             Kaz Kojima  <kkojima@gcc.gnu.org>
22654         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
22656 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
22658         PR lto/65361
22659         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
22660         on a TREE_BINFO, instead use BINFO_TYPE.
22662 2015-03-09  Richard Biener  <rguenther@suse.de>
22664         PR middle-end/65270
22665         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
22666         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
22667         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
22668         of that.  When comparing dereferences compare alignment.
22669         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
22671 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
22673         * ipa-inline-analysis.c (check_callers): Check
22674         node->can_remove_if_no_direct_calls_and_refs_p.
22675         (growth_likely_positive): Reorganize to call
22676         can_remove_if_no_direct_calls_p later.
22677         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
22678         will_be_removed_from_program_if_no_direct_calls_p): Add
22679         will_inline parameter.
22680         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
22681         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22682         Handle inliner case correctly.
22684 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22686         PR tree-optimization/63743
22687         * cfgexpand.c (reorder_operands): Also reorder if only second operand
22688         had its definition forwarded by TER.
22690 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
22692         PR lto/65316
22693         * ipa-utils.h (types_odr_comparable): Add strict argument.
22694         * ipa-devirt.c: Fix whitespace;
22695         (odr_hasher): Remove.
22696         (odr_name_hasher, odr_vtable_hasher): New hashers.
22697         (can_be_name_hashed_p): New predicate.
22698         (hash_type_name): remove.
22699         (hash_odr_name): New.
22700         (odr_name_hasher::hash): new.
22701         (can_be_vtable_hashed_p): New.
22702         (hash_odr_vtable): New.
22703         (odr_vtable_hasher::hash): New.
22704         (types_same_for_odr): Add strict parameter.
22705         (types_odr_comparable): Likewise.
22706         (odr_name_hasher::equal): New.
22707         (odr_vtable_hasher::equal): New.
22708         (odr_name_hasher::remove): New.
22709         (odr_hash_type): Change to hash_table<odr_name_hasher>.
22710         (odr_vtable_hash_type): New.
22711         (odr_vtable_hash): New.
22712         (odr_subtypes_equivalent_p): Do strict comparsion.
22713         (add_type_duplicate): Merge type names; cleanup; avoid type
22714         duplicates.
22715         (register_odr_type): Initialize vtable hash.
22716         (build_type_inheritance_graph): Likewise
22717         (get_odr_type): Reorg to use two hashes.
22718         (dump_possible_polymorphic_call_targets): Move sanity check after debug
22719         output.
22720         (ipa_devirt): Dump type_inheritance_graph.
22721         (types_same_for_odr): Add strict mode.
22723 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
22725         PR ipa/65334
22726         * cgraph.h (symtab_node): Add definition_alignment,
22727         can_increase_alignment_p and increase_alignment.
22728         * symtab.c (symtab_node::can_increase_alignment_p,
22729         increase_alignment_1, symtab_node::increase_alignment,
22730         symtab_node::definition_alignment): New.
22731         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
22732         can_increase_alignment_p.
22733         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
22734         * tree-vect-stmts.c (ensure_base_align): Likewise.
22735         * varasm.c (function_section_1): Use definition_alignment.
22736         (assemble_start_function): Likewise.
22737         (emit_local): likewise.
22738         (build_constant_desc): Likewsie.
22739         (output_constant_def_contents): Likewise.
22740         (place_block_symbol): Likewise.
22741         (output_object_block): Likewise.
22743 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
22745         PR ipa/65316
22746         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
22747         when outputting debug.
22749 2015-03-07  Marek Polacek  <polacek@redhat.com>
22750             Martin Uecker  <uecker@eecs.berkeley.edu>
22752         PR sanitizer/65280
22753         * doc/invoke.texi: Update description of -fsanitize=bounds.
22755 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
22757         * tree-ssa-phiopt.c (neg_replacement): Remove.
22758         (tree_ssa_phiopt_worker): Remove negate optimization.
22760 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
22762         PR ipa/65302
22763         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
22765 2015-03-06  Richard Biener  <rguenther@suse.de>
22767         PR middle-end/64928
22768         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
22769         and liveout_obstack members.
22770         (calculate_live_on_exit): Remove.
22771         (calculate_live_ranges): Change declaration.
22772         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
22773         (new_tree_live_info): Adjust.
22774         (calculate_live_ranges): Delete livein when not wanted.
22775         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
22776         Deal with partly deleted live info.
22777         (loe_visit_block): Remove temporary bitmap by using
22778         bitmap_ior_and_compl_into.
22779         (live_worklist): Adjust accordingly.
22780         (calculate_live_on_exit): Make static.
22781         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
22782         we do not need livein.
22784 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
22786         * real.c (real_from_string): Fix typo in assertion.
22788 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
22790         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
22791         the patch.
22793 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
22795         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
22797 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
22799         PR target/64342
22800         * lra-assigns.c (find_hard_regno_for): Rename to
22801         find_hard_regno_for_1.  Add a new parameter.
22802         (find_hard_regno_for): New function using find_hard_regno_for_1.
22804 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22806         PR rtl-optimization/65067
22807         * expmed.c (store_bit_field, extract_bit_field): Reworked the
22808         strict volatile bitfield handling.
22810 2015-03-05  Martin Liska  <mliska@suse.cz>
22812         PR ipa/65318
22813         * ipa-icf.c (sem_variable::equals): Compare variables types.
22815 2015-03-05  Richard Henderson  <rth@redhat.com>
22817         PR target/65121
22818         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
22819         correctly check weak symbol binding.
22821 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
22823         PR middle-end/65315
22824         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
22825         needed alignment.
22827 2015-03-05  Martin Liska  <mliska@suse.cz>
22829         * ipa-inline.c (inline_small_functions): Set default value to
22830         prevent warning during bootstrap.
22831         * tree.h: Add pragma guard that ignores false positives during
22832         bootstrap.
22834 2015-03-05  Richard Biener  <rguenther@suse.de>
22836         PR tree-optimization/65310
22837         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22838         Properly preserve alignment of the base of the access.
22840 2015-03-05  Richard Biener  <rguenther@suse.de>
22842         PR ipa/65270
22843         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
22844         Compare dependence info.
22846 2015-03-05  Richard Biener  <rguenther@suse.de>
22848         PR middle-end/65233
22849         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
22850         tree-into-ssa.h.
22851         (walk_ssa_copies): Revert last chage.  Instead do not walk
22852         SSA names registered for SSA update.
22854 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
22856         PR ipa/65270
22857         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
22858         vtable references for their containing type.
22859         (sem_function::equals_wpa): Compare TYPE_RESTRICT
22860         and type attributes.
22862 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
22864         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
22865         before negating it.
22866         * stor-layout.c (finalize_record_size): Revert latest change.
22868 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
22870         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
22872 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
22874         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
22875         for correct comdat handling.
22876         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
22877         Likewise.
22878         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
22879         (used_from_object_file_p_worker): Remove.
22880         (cgraph_node::only_called_directly_or_alised): Add
22881         used_from_object_file_p.
22882         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
22883         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
22884         can_remove_if_no_direct_calls_and_refs_p.
22886 2015-03-04  Nick Clifton  <nickc@redhat.com>
22888         * config/rl78/rl78.h (enum reg_class): Remove real registers from
22889         General register class.
22890         * config/rl78/rl78-real.md: Replace general register constraints
22891         with real+virtual register constraints.
22893 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22895         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
22896         from checking for -mhtm option.
22898 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
22900         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
22901         (struct ipa_sra_check_caller_data): Add has_thunk field.
22902         (ipa_sra_check_caller): Check for thunk.
22903         (ipa_sra_preliminary_function_checks): Give up on function with
22904         thunks.
22905         (ipa_early_sra): Use call_for_symbol_and_aliases.
22907 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
22909         PR target/65249
22910         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
22911         called for __stack_chk_guard symbol.
22913 2015-03-03  DJ Delorie  <dj@redhat.com>
22915         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
22916         inc/dec.
22917         (*addhi3_real): Likewise.
22918         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
22919         pattern to match incrementing memory.
22920         * config/rl78/predicates.md (rl78_1_2_operand): New.
22921         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
22922         it's the same and only mem.
22923         (rl78_alloc_physical_registers_op2): If there's effectively only
22924         one MEM, transcode it into HL.
22925         (rl78_far_p): Reject addresses that aren't legitimate.
22927 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
22929         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
22930         negating it.
22932         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
22934 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
22936         Implement call0 ABI for xtensa
22937         * config/xtensa/constraints.md ("a" constraint): Include stack
22938         pointer in case of call0 ABI.
22939         ("q" constraint): Make empty in case of call0 ABI.
22940         ("D" constraint): Include stack pointer in case of call0 ABI.
22941         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
22942         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
22943         prototypes.
22944         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
22945         variable.
22946         (xtensa_regno_to_class): Make it a local variable in the
22947         function xtensa_regno_to_class.
22948         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
22949         macro, function prototype and implementation.
22950         (reg_nonleaf_alloc_order): Make it a local variable in the
22951         function order_regs_for_local_alloc.
22952         (xtensa_conditional_register_usage): New function.
22953         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
22954         (xtensa_valid_move): Allow direct moves to stack pointer
22955         register in call0 ABI.
22956         (xtensa_setup_frame_addresses): Only spill register windows in
22957         windowed ABI.
22958         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
22959         call0 ABI respectively.
22960         (xtensa_function_arg_1): Only mark a7 register for copying in
22961         windowed ABI.
22962         (xtensa_call_save_reg): New function.
22963         (compute_frame_size): Add space for callee saved register
22964         storage to the frame size in call0 ABI.
22965         (xtensa_expand_prologue): Generate code to set up stack frame
22966         and save callee-saved registers in call0 ABI.
22967         (xtensa_expand_epilogue): New function.
22968         (xtensa_set_return_address): New function.
22969         (xtensa_return_addr): Calculate return address in call0 ABI.
22970         (xtensa_builtin_saveregs): Only mark a7 register for copying and
22971         emit copying code in windowed ABI.
22972         (order_regs_for_local_alloc): Add preferred register allocation
22973         order for non-leaf function in call0 ABI.
22974         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
22975         (xtensa_asm_trampoline_template): Add trampoline generation for
22976         call0 ABI.
22977         (xtensa_trampoline_init): Add trampoline initialization for
22978         call0 ABI.
22979         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
22980         functions.
22981         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
22982         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
22983         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
22984         ABI call-used registers.
22985         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
22986         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
22987         call0 ABI.
22988         (REG_CLASS_CONTENTS): Include all registers into the preferred
22989         reload registers set, adjust the set in the
22990         xtensa_conditional_register_usage.
22991         (xtensa_regno_to_class): Drop variable declaration.
22992         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
22993         function.
22994         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
22995         respectively.
22996         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
22997         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
22998         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
22999         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
23000         location in call0 ABI.
23001         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
23002         stack adjustment size when handling exception.
23003         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
23004         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
23005         definitions.
23006         ("return" pattern): Generate ret.n/ret in call0 ABI.
23007         ("epilogue" pattern): Expand epilogue.
23008         ("nonlocal_goto" pattern): Use default in call0 ABI.
23009         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
23010         emit eh_set_a0_* depending on ABI.
23011         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
23012         ("eh_set_a0_call0", "blockage"): New patterns.
23014 2015-03-03  Martin Liska  <mliska@suse.cz>
23016         PR ipa/65287
23017         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
23019 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
23021         PR 65138/target
23022         * config/rs6000/rs6000-tables.opt: Regenerate table.
23024 2015-03-03  Renlin Li  <renlin.li@arm.com>
23026         * doc/md.texi (@item ^): Change ? into ^.
23028 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
23030         * doc/tm.texi: Regenerated.
23032 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
23034         * builtins.c (expand_builtin_return_addr): Add
23035         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
23036         surrounding #ifdef.
23037         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
23038         definition to 1.
23039         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
23040         Likewise.
23041         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
23042         undefined.
23043         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
23044         paragraph.
23046 2015-03-03  Martin Jambor  <mjambor@suse.cz>
23047             Eric Botcazou  <ebotcazou@adacore.com>
23049         * tree-sra.c (ipa_sra_check_caller_data): New type.
23050         (has_caller_p): Removed.
23051         (ipa_sra_check_caller): New function.
23052         (ipa_sra_preliminary_function_checks): Use it.
23054 2015-03-03  Martin Liska  <mliska@suse.cz>
23056         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
23057         instead of if branch.
23059 2015-03-03  Martin Liska  <mliska@suse.cz>
23061         PR ipa/65282
23062         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
23064 2015-03-23  Jeff Law  <law@redhat.com>
23066         PR tree-optimization/65241
23067         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
23068         hash table if INSERT is true.
23070 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
23072         PR target/65296
23073         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
23075 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
23077         PR target/64331
23078         * config/avr/avr.c (context.h, tree-pass.h): Include them.
23079         (avr_pass_data_recompute_notes): New static variable.
23080         (avr_pass_recompute_notes): New class.
23081         (avr_register_passes): New static function.
23082         (avr_option_override): Call it.
23084 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
23086         Fix various problems with specs file generation.
23088         PR target/65296
23089         * config.gcc (extra_gcc_objs) [avr]: Remove.
23090         * config/avr/driver-avr.c: Remove file.
23091         * config/avr/t-avr (driver-avr.o): Remove rule.
23092         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
23093         INCLUDES to build.  Depend on TM_H.
23094         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
23095         build warnings.  Fix non-matching types and non-existing %-codes.
23096         (tm.h): Include.
23097         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
23098         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
23099         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
23100         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
23101         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
23102         (LIBGCC_SPEC): Remove definitions.
23104 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
23106         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
23107         to create a register in testing mode.
23109 2015-03-03  Martin Liska  <mliska@suse.cz>
23110             Jan Hubicka  <hubicka@ucw.cz>
23112         PR ipa/65263
23113         * cgraph.c (cgraph_node::has_thunk_p): New function.
23114         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
23115         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
23116         (sem_function::merge): Assert is changed.
23118 2015-03-03  Martin Liska  <mliska@suse.cz>
23119             Martin Jambor  <mjambor@suse.cz>
23121         PR ipa/65087
23122         * ipa-icf.c (sem_item_optimizer::execute): Change function
23123         return value to boolean.
23124         (sem_item_optimizer::merge_classes): Likewise.
23125         (ipa_icf_driver): Return TODO_remove_functions in case there's
23126         a merge operation processed.
23127         * ipa-icf.h: Change function return value to boolean.
23129 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23131         PR 65138/target
23132         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
23133         processor type for 64-bit little endian PowerPC.
23135         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23136         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
23137         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
23138         printing built-in mask so it does not pass NULL pointers.
23140         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
23141         -mcpu=powerpc64le.
23143 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
23145         PR target/58158
23146         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
23147         !ISA_HAS_FP_CONDMOVE.
23149 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
23151         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
23152         reload_completed.
23154 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
23156         * doc/invoke.texi (Options for Code Generation Conventions):
23157         Fix URL of DSO paper.
23159 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
23161         PR ipa/65130
23162         * ipa-inline.c (check_callers): Looks for recursion.
23163         (inline_to_all_callers): Give up on uninlinable or recursive edges.
23164         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
23165         summary of inline clones.
23166         (do_estimate_growth_1): Fix recursion check.
23168 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
23170         PR ipa/64988
23171         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
23172         comdat groups.
23174 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
23175             Aldy Hernandez  <aldyh@redhat.com>
23177         PR lto/65276
23178         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
23179         when checking TYPE_BINFO.
23181 2015-03-02  Richard Biener  <rguenther@suse.de>
23183         PR ipa/65270
23184         * ipa-icf-gimple.c: Include builtins.h.
23185         (func_checker::compare_memory_operand): Compare base alignment.
23187 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23189         PR target/65184
23190         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
23191         are never passed by reference.
23193 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23195         PR target/65183
23196         * tree-chkp.c (chkp_check_lower): Don't check against
23197         zero bounds for already instrumented functions.
23198         (chkp_check_upper): Likewise.
23199         (chkp_fini): Clean pass local data to avoid wrong reusage.
23201 2015-02-28  Martin Liska  <mliska@suse.cz>
23202             Jan Hubicka  <hubicka@ucw.cz>
23204         * ipa-icf.c (sem_variable::equals): Improve debug output;
23205         get variable constructor.
23206         (sem_variable::parse): Do not filter out too early; give up on
23207         volatile and register vars.
23208         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
23209         variables.
23210         * ipa-icf.h (sem_variable::init): Do not set ctor.
23211         (sem_variable::ctor): Remove.
23213 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
23215         PR middle-end/65233
23216         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
23218 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23220         * ipa-icf.c: Include stor-layout.h
23221         (sem_function::compare_cgraph_references): Rename to ...
23222         (sem_item::compare_cgraph_references): ... this one.
23223         (sem_variable::equals_wpa): New function
23224         (sem_variable::equals): Do not check stuff already verified by
23225         equals_wpa.
23226         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
23227         * ipa-icf.h (sem_item): Add compare_cgraph_references.
23228         (sem_function): Remove compare_cgraph_references.
23229         (sem_variable): Turns equals_wpa into non-inline.
23231 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23233         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
23234         (sem_item::add_expr): New function.
23235         (sem_function::hash_stmt): Handle operands of most statements.
23236         (sem_variable::get_hash): Hash the actual constructor.
23237         * ipa-icf.h (sem_item): Add add_expr.
23238         (sem_function): Update prototype of hash_stmt
23240 2015-02-28  Martin Liska  <mliska@suse.cz>
23241             Jan Hubicka  <hubicka@ucw.cz>
23243         PR ipa/65245
23244         * ipa-icf-gimple.c (func_checker::compare_function_decl):
23245         Remove.
23246         (func_checker::compare_variable_decl): Skip symtab vars.
23247         (func_checker::compare_cst_or_decl): Update.
23248         * ipa-icf.c (sem_function::parse): Do not consider aliases.
23249         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
23250         use correct symtab predicates.
23251         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
23252         (sem_variable::parse):  Update comment.
23253         (sem_item_optimizer::build_graph): Consider ultimate aliases
23254         for references.
23256 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23258         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
23259         of OBJ_TYPE_REF.
23261 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23263         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
23264         (sem_variable::merge) Likewise.
23266 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23268         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
23269         target; also match flag_ipa_devirt.
23271 2015-03-01  Martin Liska  <mliska@suse.cz>
23272             Jan Hubicka  <hubicka@ucw.cz>
23274         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
23275         Validate variable alignment.
23276         * ipa-icf.c (sem_function::equals_private): Be more precise
23277         about non-common function attributes.
23278         (sem_variable::equals): Likewise.
23280 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23282         PR ipa/65237
23283         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
23284         across COMDAT group boundary.
23286 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23288         PR ipa/65232
23289         * ipa-icf.c (clear_decl_rtl): New function.
23290         (sem_function::merge): Clear RTL before forming alias.
23291         (sem_variable::merge): Clear RTL before forming alias.
23293 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
23295         PR ipa/65236
23296         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
23298 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
23300         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
23301         to neon_to_gp<q>.
23303 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
23305         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
23306         a typo in the description.
23308 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
23310         PR target/64317
23311         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23312         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
23313         * lra-constraints.c: Include "params.h".
23314         (EBB_PROBABILITY_CUTOFF): Use
23315         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
23316         (lra_inheritance): Use '<' instead of '<=' for
23317         EBB_PROBABILITY_CUTOFF.
23318         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
23319         Document change.
23321 2015-02-27  Martin Liska  <mliska@suse.cz>
23323         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
23324         vector length condition.
23326 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
23328         * doc/extend.texi (x86 transactional memory intrinsics):
23329         Reorganize discussion of _xbegin.  Clarify that the return
23330         value is a bit mask.  Expand example and move to end of section.
23332 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
23333             Aldy Hernandez  <aldyh@redhat.com>
23335         PR rtl-optimization/65220
23336         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
23338 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
23340         PR target/65032
23341         * lra-remat.c (update_scratch_ops): New.
23342         (do_remat): Call it.
23343         * lra.c (lra_register_new_scratch_op): New. Take code from ...
23344         (remove_scratches): ... here.
23345         * lra-int.h (lra_register_new_scratch_op): New prototype.
23347 2015-02-27  Marek Polacek  <polacek@redhat.com>
23349         PR c/65040
23350         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
23351         -Wformat-signedness anymore.
23353 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23355         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
23356         function.
23357         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
23359 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23361         * config/s390/s390.c (enum s390_builtin):
23362         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
23363         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
23364         (s390_init_builtins): Generate new builtin functions.
23365         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
23366         (s390_sfpc, s390_efpc): New pattern definitions.
23368 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23370         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
23371         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
23372         (s390_builtin_decls): New array.
23373         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
23374         (s390_builtin_decl): New function.
23375         (TARGET_BUILTIN_DECL): Define macro.
23377 2015-02-27  Richard Biener  <rguenther@suse.de>
23379         PR middle-end/63175
23380         * builtins.c (get_object_alignment_2): Make sure to re-apply
23381         the ANDed mask after recursing to its operand gets us a new
23382         misalignment bit position.
23384 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
23385             Martin Liska  <mliska@suse.cz>
23387         PR bootstrap/65150
23388         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
23389         Use address_matters_p.
23390         (redirect_all_callers, set_addressable): New functions.
23391         (sem_function::merge): Reorganize and fix merging issues.
23392         (sem_variable::merge): Likewise.
23393         (sem_variable::compare_sections): Remove.
23394         * common.opt (fmerge-all-constants, fmerge-constants): Remove
23395         Optimization flag.
23396         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
23397         redirect them.
23398         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
23399         decl is used.
23400         (address_matters_1): New function.
23401         (symtab_node::address_matters_p): New function.
23402         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
23403         check for merged flag.
23404         * cgraph.h (address_matters_p): Declare.
23405         (symtab_node::address_taken_from_non_vtable_p): Remove.
23406         (symtab_node::address_can_be_compared_p): New method.
23407         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
23408         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
23409         Remove.
23410         (comdat_can_be_unshared_p_1) Use address_matters_p.
23411         (update_vtable_references): Fix formating.
23412         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
23413         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
23414         * cgraphclones.c: Preserve merged and icf_merged flags.
23416 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
23418         * doc/extend.texi (Function Attributes): Fix spelling and typos.
23419         (Label Attributes): Likewise.
23420         (Cilk Plus Builtins): Likewise.
23421         (ARC SIMD Built-in Functions): Likewise.
23422         (ARM C Language Extensions (ACLE)): Likewise.
23423         (PowerPC Built-in Functions): Likewise.
23424         (PowerPC Hardware Transactional Memory Built-in Functions):
23425         Likewise.
23427 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
23429         PR tree-optimization/65216
23430         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
23431         new stmt and new SSA_NAME for lhs whenever the arguments have
23432         changed and weren't just swapped.  Fix comment typo.
23434         PR tree-optimization/65215
23435         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
23436         for PDP endian targets.
23437         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
23438         Fix up formatting issues.
23439         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
23440         size is smaller than the original, adjust MEM_REF offset by the
23441         difference of sizes.  Use is_gimple_mem_ref_addr instead of
23442         is_gimple_min_invariant test to avoid adding address temporaries.
23444 2015-02-26  Martin Liska  <mliska@suse.cz>
23445             Jan Hubicka  <hubicka@ucw.cz>
23447         PR ipa/64693
23448         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
23449         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
23450         (sem_item_optimizer::process_cong_reduction): Include division by
23451         sensitive references.
23452         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
23453         * ipa-ref.c (ipa_ref::address_matters_p): New function.
23454         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
23456 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
23458         PR target/65192
23459         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
23460         Remove.
23461         * config/avr/avr.c: Same.
23462         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
23463         Refuse any constant address not in 0..0xbf.
23464         * config/avr/avr.md (*mov<mode>, *movsf): Remove
23465         tiny_valid_direct_memory_access_range from insn conditions.
23466         (mov<mode>): Don't special-case expansion of avrtiny addresses.
23468 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
23470         PR target/61142
23471         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
23472         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
23473         * config/sh/predicates.md (const_logical_operand): New predicate.
23474         * config/sh/sh.md: Add new peephole2 patterns.
23476 2015-02-26  Marek Polacek  <polacek@redhat.com>
23478         PR ipa/65008
23479         * ipa-inline.c (early_inliner): Recompute inline parameters.
23481 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23483         PR target/65171
23484         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
23485         instructions with TImode operands are included in the analysis.
23487 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
23489         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
23490         of an EDGE_FSM_THREAD.
23492 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23494         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
23496 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
23498         PR debug/46102
23499         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
23501 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
23503         PR tree-optimization/65048
23504         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
23505         (thread_through_all_blocks): Call valid_jump_thread_path.
23506         Remove invalid FSM jump-thread paths.
23508 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
23510         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
23511         (ipa_write_optimization_summaries): Likewise.
23512         * tree-streamer.h: Include data-streamer.h.
23513         (streamer_mode_table): Declare extern variable.
23514         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
23515         * lto-streamer-out.c (lto_output_init_mode_table,
23516         lto_write_mode_table): New functions.
23517         (produce_asm_for_decls): Call lto_write_mode_table when streaming
23518         offloading LTO.
23519         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
23520         (lto_create_simple_input_block): Add mode_table argument to the
23521         lto_input_block constructors.
23522         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
23523         Likewise.
23524         * data-streamer-in.c (string_for_index): Likewise.
23525         * ipa-inline-analysis.c (inline_read_section): Likewise.
23526         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
23527         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
23528         * lto-streamer-in.c (lto_read_body_or_constructor,
23529         lto_input_toplevel_asms): Likewise.
23530         (lto_input_mode_table): New function.
23531         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
23532         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
23533         Use bp_pack_machine_mode.
23534         * real.h (struct real_format): Add name field.
23535         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
23536         (class lto_input_block): Add mode_table member.
23537         (lto_input_block::lto_input_block): Add mode_table_ argument,
23538         initialize mode_table.
23539         (struct lto_file_decl_data): Add mode_table field.
23540         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
23541         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
23542         unpack_ts_decl_common_value_fields,
23543         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
23544         * tree-streamer.c (streamer_mode_table): New variable.
23545         * real.c (ieee_single_format, mips_single_format,
23546         motorola_single_format, spu_single_format, ieee_double_format,
23547         mips_double_format, motorola_double_format,
23548         ieee_extended_motorola_format, ieee_extended_intel_96_format,
23549         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
23550         ibm_extended_format, mips_extended_format, ieee_quad_format,
23551         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
23552         decimal_single_format, decimal_double_format, decimal_quad_format,
23553         ieee_half_format, arm_half_format, real_internal_format): Add name
23554         field.
23555         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
23557 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
23559         PR target/65161
23560         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
23561         reordering for selective scheduling.
23563 2015-02-26  Terry Guo  <terry.guo@arm.com>
23565         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
23566         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
23567         (arm_arch_no_volatile_ce): Declare new global variable.
23568         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
23569         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
23570         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
23571         (TARGET_NO_VOLATILE_CE): New macro.
23572         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
23573         volatile memory access in IT block
23575 2015-02-25  Kai Tietz  <ktietz@redhat.com>
23577         PR tree-optimization/61917
23578         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
23579         that reduc_def_stmt is null.
23581 2015-02-25  Martin Liska  <mliska@suse.cz>
23583         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
23584         hard register variables.
23586 2015-02-25  Kai Tietz  <ktietz@redhat.com>
23588         PR target/64212
23589         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
23590         (symtab::noninterposable_alias): Likewise.
23592 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
23594         PR target/65167
23595         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
23596         bounds registers.
23597         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
23599 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
23601         PR target/64997
23602         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
23603         as split condition; force split via '#' in output pattern.
23605 2015-02-25  Richard Biener  <rguenther@suse.de>
23606             Kai Tietz  <ktietz@redhat.com>
23608         PR tree-optimization/61917
23609         * tree-vect-loop.c (vectorizable_reduction): Allow
23610         vect_internal_def without reduction to exit graceful.
23612 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
23614         PR target/65196
23615         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
23616         only with NONDEBUG_INSN_P.
23618 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
23620         Use variadic macros with avr-log.c.
23622         * config/avr/avr-protos.h (avr_vdump): New prototype.
23623         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
23624         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
23625         * config/avr/avr-log.c: Adjust comments.
23626         (avr_vdump): New function.
23627         (avr_vadump): Pass caller as 2nd argument instead of format string.
23628         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
23629         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
23631 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
23633         PR lto/64374
23634         * target.def (target_option_stream_in): New target hook.
23635         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
23636         targetm.target_option.post_stream_in if non-NULL.
23637         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
23638         * doc/tm.texi: Updated.
23639         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
23640         function.
23641         (TARGET_OPTION_POST_STREAM_IN): Redefine.
23643 2015-02-24  Jeff Law  <law@redhat.com>
23645         PR target/65117
23646         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
23647         of operand 0 and operand 2.
23648         (zero_cost_loop_end, loop_end): Similarly.
23650 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
23652         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
23653         CXX_MEM_STAT_INFO.
23655 2015-02-24  DJ Delorie  <dj@redhat.com>
23657         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
23658         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
23659         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
23660         instead of hardcoding SImode.
23662 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
23664         * omp-low.c (create_omp_child_function): Tag entrypoint
23665         functions with a special attribute.
23667 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
23669         PR target/65058
23670         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
23672 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
23674         PR rtl-optimization/65123
23675         * lra-remat.c (operand_to_remat): Check hard regs in insn
23676         definition too.
23678 2015-02-24  Nick Clifton  <nickc@redhat.com>
23680         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
23681         to the assembler.
23683 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
23685         PR libgomp/64625
23686         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
23687         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
23688         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
23689         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
23690         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
23691         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
23692         (BUILT_IN_GOACC_PARALLEL): Specify as
23693         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
23694         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
23695         * builtin-types.def
23696         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23697         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23698         Remove function types.
23699         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
23700         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23701         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23702         New function types.
23704 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
23706         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
23708 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
23710         PR tree-optimization/65170
23711         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
23712         if val[1] < 0, clear also val[2] and return 3.
23714 2015-02-24  Alan Modra  <amodra@gmail.com>
23716         PR target/65172
23717         * config/rs6000/rs6000.c (get_memref_parts): Only return true
23718         when *base is a reg.  Handle nested plus addresses.  Simplify
23719         pre_modify test.
23721 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
23723         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
23724         use natural alignment when optimizing for size.
23726 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
23728         PR target/65153
23729         * config/sh/sh.md (movsicc_true+3): Remove peephole.
23730         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
23731         * config/sh/sh.c (replace_n_hard_rtx): Remove.
23733 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
23735         PR fortran/63427
23736         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
23737         too big for a wide_int.  Implement missing wrapping operation.
23739 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
23741         PR target/65163
23742         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
23743         instead of const_int 4294901760.
23745 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
23747         * config/avr/t-avr: Fix typo in comment.
23749 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
23751         * doc/rtl.texi (fma): Clarify documentation.
23753 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
23755         PR debug/58123
23756         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
23757         over input_location.
23759 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
23761         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
23762         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
23763         restrict alignments to absolute_biggest_alignment.
23764         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
23765         Define.
23766         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
23767         * doc/tm.texi: Regenerate.
23768         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
23770 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
23772         PR target/64172
23773         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
23775 2015-02-20  Richard Biener  <rguenther@suse.de>
23777         PR tree-optimization/65136
23778         * tree-ssa-propagate.c: Include cfgloop.h.
23779         (replace_phi_args_in): Avoid replacing loop latch edge PHI
23780         arguments with constants.
23782 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
23783             Martin Liska  <mliska@suse.cz>
23785         PR target/63892
23786         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
23787         don't try to create_thunk if stdarg_p.  If
23788         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
23789         redirect_callers if possible.
23790         (sem_item_optimizer::execute): Call unregister_hooks here...
23791         (ipa_icf_driver): ... instead of here.
23793 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23795         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
23796         Mark operand 0 as earlyclobber in 2nd alternative.
23797         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
23798         Write negated shift amount into QI lowpart operand 0 and use it
23799         in the shift step.
23800         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23802 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
23804         * cgraph.h (clone_function_name_1): Declare.
23805         * cgraphclones.c (clone_function_name_1): New function.
23806         (clone_function_name): Use it.
23807         * lto-partition.c: Include "stringpool.h".
23808         (must_not_rename, maybe_rewrite_identifier)
23809         (validize_symbol_for_target): New static functions.
23810         (privatize_symbol_name): Use must_not_rename.
23811         (promote_symbol): Call validize_symbol_for_target.
23812         (lto_promote_cross_file_statics): Likewise.
23813         (lto_promote_statics_nonwpa): Likewise.
23815 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
23817         PR target/64452
23818         * config/avr/avr.md (pushhi_insn): New insn.
23819         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
23821 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
23822             Jakub Jelinek  <jakub@redhat.com>
23824         * tree-streamer.c (preload_common_nodes): Don't preload
23825         TI_VA_LIST* for offloading.
23826         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
23827         in_lto_p.
23829 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
23831         * config/pa/pa.c (pa_emit_move_sequence): Always force
23832         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
23833         note on insn.
23835         * config/pa/pa.c (pa_reloc_rw_mask): New function.
23836         (TARGET_ASM_RELOC_RW_MASK): Define.
23837         (pa_cannot_force_const_mem): Revert previous change.
23839 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
23840             Jan Hubicka  <hubicka@ucw.cz>
23842         PR ipa/65028
23843         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
23844         across jump functions.
23846 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
23848         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
23850 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
23852         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
23854 2015-02-19  Richard Henderson  <rth@redhat.com>
23856         PR middle-end/65074
23857         * varasm.c (default_binds_local_p_2): Don't test node->definition;
23858         test DECL_EXTERNAL independent of symtab_node.
23860 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
23862         PR lto/65012
23863         * varpool.c (varpool_node::get_constructor): Return early
23864         if this->lto_file_data is NULL.
23866 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23868         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
23869         (rank_for_schedule_debug): Update.
23870         (ready_sort): Make static.  Move sorting logic to ...
23871         (ready_sort_debug, ready_sort_real): New static functions.
23872         (schedule_block): Sort both debug insns and real insns in preparation
23873         for ready list trimming.  Improve debug output.
23874         * sched-int.h (ready_sort): Remove global declaration.
23876 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
23878         * ipa-icf.c (sem_function::equals_private): Adjust.
23879         (sem_function::bb_dict_test): Take a vec<int> * instead of
23880         auto_vec<int>.
23881         * ipa-icf.h (bb_dict_test): Likewise.
23883 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
23885         PR gcov-profile/64634
23886         * tree-eh.c (frob_into_branch_around): Fix up typos
23887         in function comment.
23888         (lower_catch): Put eh_seq resulting from EH lowering of
23889         the cleanup sequence after the cleanup rather than before it.
23891 2015-02-18  Tom de Vries  <tom@codesourcery.com>
23893         * common.opt (fstdarg-opt): New option.
23894         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
23895         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
23896         (@item -fstdarg-opt): New item.
23898 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
23900         PR target/65064
23901         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
23902         for common symbols.
23904 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
23906         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
23907         insn-modes.h.
23908         (ALL_HOST_OBJS): Add mkoffload.o.
23909         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
23911 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
23913         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
23914         (compare_virtual_tables): Be smarter about skipping typeinfos;
23915         do sane output on virtual table table mismatch.
23916         (warn_odr): Be ready for forward declarations of enums;
23917         output sane info on base mismatch and virtual table mismatch.
23918         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
23919         when only one type is polymorphic.
23920         (get_odr_type): Fix hashtable corruption.
23921         (dump_odr_type): Dump mangled names.
23923 2015-02-18  Richard Biener  <rguenther@suse.de>
23925         PR tree-optimization/65063
23926         * tree-predcom.c (determine_unroll_factor): Return 1 if we
23927         have replaced looparound PHIs.
23929 2015-02-18  Martin Liska  <mliska@suse.cz>
23931         * lto-streamer.c (lto_streamer_init): Encapsulate
23932         streamer_check_handled_ts_structures with checking macro.
23934 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
23936         PR ipa/65087
23937         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
23938         section if !implicit_section.
23939         (cgraph_node::create_version_clone_with_body): Likewise.
23940         * trans-mem.c (ipa_tm_create_version): Likewise.
23942 2015-02-18  Richard Biener  <rguenther@suse.de>
23944         PR tree-optimization/62217
23945         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
23946         into BIVs.
23948 2015-02-18  Marek Polacek  <polacek@redhat.com>
23950         PR sanitizer/65081
23951         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
23952         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
23953         is in range [-16K, -1].  Don't issue run-time error if
23954         (ptr > ptr + offset).
23956 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
23958         * doc/install.texi (nvptx-*-none): New section.
23959         * doc/invoke.texi (Nvidia PTX Options): Likewise.
23960         * config/nvptx/nvptx.opt: Update.
23962         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
23963         (access_check): New functions, copied from
23964         config/i386/intelmic-mkoffload.c.
23965         (main): For non-installed testing, look in all COMPILER_PATHs for
23966         GCC_INSTALL_NAME.
23968         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
23970 2015-02-18  Andrew Pinski  <apinski@cavium.com>
23971             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23973         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
23974         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
23976 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
23978         * ipa-visibility.c (function_and_variable_visibility): Only
23979         check locality if node is not already local.
23980         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23981         call_for_symbol_and_aliases instead of
23982         call_for_symbol_thunks_and_aliases.
23983         (ipa_inline): Likewise.
23984         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23985         first walk aliases.
23986         * ipa.c (symbol_table::remove_unreachable_nodes): Use
23987         call_for_symbol_and_aliases.
23988         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23989         (ipa_propagate_frequency_1): Use it; use opt_for_fn
23990         (ipa_propagate_frequency): Update.
23991         (ipa_profile): Add opt_for_fn gueards.
23993 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
23995         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
23996         * doc/invoke.texi (SH options): Document it.
23997         * config/sh/sh.c (sh_insn_length_adjustment): Check
23998         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
24000 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
24002         * common.opt (fipa-cp-alignment): New.
24003         * ipa-cp.c (ipcp_store_alignment_results): Check
24004         flag_ipa_cp_alignment.
24005         * opts.c (default_options_table): Enable -fipa-cp-alignment for
24006         -O2.
24007         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
24008         * doc/invoke.texi: Document -fipa-cp-alignment.
24010 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
24012         PR target/64793
24013         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
24014         to nil.  Adjust comments.
24016 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
24018         * ipa-visibility.c (function_and_variable_visibility): Only
24019         check locality if node is not already local.
24020         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
24021         call_for_symbol_and_aliases instead of
24022         call_for_symbol_thunks_and_aliases.
24023         (ipa_inline): Likewise.
24024         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24025         first walk aliases.
24026         * ipa.c (symbol_table::remove_unreachable_nodes): Use
24027         call_for_symbol_and_aliases.
24028         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
24029         (ipa_propagate_frequency_1): Use it; use opt_for_fn
24030         (ipa_propagate_frequency): Update.
24031         (ipa_profile): Add opt_for_fn guards.
24033 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
24035         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
24036         skipping of "strange" tokens.
24038 2015-02-17  Jeff Law  <law@redhat.com>
24040         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
24041         obsolete comment.
24043 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
24045         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
24046         as forcing a HARD_DEP between instructions, thereby
24047         disallowing rewriting to break dependencies.
24049 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
24051         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
24052         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
24053         variables in boundary that have no inlitalizer encoded and are
24054         not aliases.
24055         * varasm.c (default_binds_local_p_2): External definitions do not
24056         count as definitions here.
24058 2015-02-16  Jeff Law  <law@redhat.com>
24060         PR tree-optimization/64823
24061         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
24062         statements.
24063         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24064         threading through blocks with PHIs, but no statements.
24065         (thread_through_normal_block): Distinguish between blocks where
24066         we did not process all the statements and blocks with no statements.
24068 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
24069             James Greenhalgh  <james.greenhalgh@arm.com>
24071         PR ipa/64963
24072         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
24073         section if not linkonce.  Fix up formatting.
24074         (cgraph_node::create_version_clone_with_body): Copy section.
24075         * trans-mem.c (ipa_tm_create_version): Likewise.
24077 2015-02-16  Richard Biener  <rguenther@suse.de>
24079         PR tree-optimization/65077
24080         * tree-ssa-structalias.c (get_constraint_for_1): Handle
24081         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
24082         (find_func_aliases): Allow float values to carry pointers again.
24084 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24086         * doc/install.texi (Specific): Reorder targets list to put
24087         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
24088         from the top menu.
24090 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
24091             David Edelsohn  <dje.gcc@gmail.com>
24093         PR target/65058
24094         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
24095         mapping class to external variable or function reference.
24096         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
24097         mapping class.
24099 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
24101         PR target/53348
24102         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
24103         ASM_WEAKEN_DECL if defined.
24105 2015-02-16  Richard Biener  <rguenther@suse.de>
24107         PR lto/65015
24108         * varasm.c (default_file_start): For LTO produced units
24109         emit <artificial> as file directive.
24111 2015-02-16  Richard Biener  <rguenther@suse.de>
24113         PR tree-optimization/63593
24114         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
24115         stmts and releasing SSA names until...
24116         (execute_pred_commoning): ... after processing all chains.
24118 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
24120         PR ipa/65059
24121         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
24122         external functions.
24124 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
24126         * doc/bugreport.texi: Adjust section titles throughout the file
24127         to use "Title Case".
24128         * doc/extend.texi: Likewise.
24129         * doc/gcov.texi: Likewise.
24130         * doc/implement-c.texi: Likewise.
24131         * doc/implement-cxx.texi: Likewise.
24132         * doc/invoke.texi: Likewise.
24133         * doc/objc.texi: Likewise.
24134         * doc/standards.texi: Likewise.
24135         * doc/trouble.texi: Likewise.
24137 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
24139         * cgraph.h (symtab_node::has_aliases_p): Simplify.
24140         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
24141         * tree.c (lookup_binfo_at_offset): Make static.
24142         (get_binfo_at_offset): Do not shadow offset; add explanatory
24143         comment.
24145 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
24147         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
24148         for all floading point loads and stores except those using a register
24149         index address.
24150         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
24151         to a register.
24153 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
24155         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
24156         (do_estimate_growth_1): Record if any uninlinable edge was seen.
24157         (estimate_growth): Handle uninlinable edges correctly.
24158         (check_callers): New.
24159         (growth_likely_positive): Handle aliases correctly.
24161 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
24163         * ipa-chkp.c: Use iterate_direct_aliases.
24164         * symtab.c (resolution_used_from_other_file_p): Move inline.
24165         (symtab_node::create_reference): Fix formating.
24166         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24167         (symtab_node::iterate_reference): Move inline.
24168         (symtab_node::iterate_referring): Move inline.
24169         (symtab_node::iterate_direct_aliases): Move inline.
24170         (symtab_node::used_from_object_file_p_worker): Inline into ...
24171         (symtab_node::used_from_object_file_p): ... this one; move inline.
24172         (symtab_node::call_for_symbol_and_aliases): Move inline;
24173         use iterate_direct_aliases.
24174         (symtab_node::call_for_symbol_and_aliases_1): New method.
24175         (cgraph_node::call_for_symbol_and_aliases): Move inline;
24176         use iterate_direct_aliases.
24177         (cgraph_node::call_for_symbol_and_aliases_1): New method.
24178         (varpool_node::call_for_node_and_aliases): Rename to ...
24179         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
24180         use iterate_direct_aliases.
24181         (varpool_node::call_for_symbol_and_aliases_1): New method.
24182         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
24183         (ipa_discover_readonly_nonaddressable_var): Update.
24184         * ipa-devirt.c: Fix formating.
24185         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
24186         Move inline.
24187         (cgraph_node::call_for_symbol_and_aliases): Move inline.
24188         (cgraph_node::call_for_symbol_and_aliases_1): New function..
24189         * cgraph.h (used_from_object_file_p_worker): Remove.
24190         (resolution_used_from_other_file_p): Move inline.
24191         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
24192         (symtab_node::iterate_reference): Move inline.
24193         (symtab_node::iterate_referring): Move inline.
24194         (symtab_node::iterate_direct_aliases): Move inline.
24195         (symtab_node::used_from_object_file_p_worker): Inline into ...
24196         (symtab_node::used_from_object_file_p): Move inline.
24197         * tree-emutls.c (ipa_lower_emutls): Update.
24198         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
24199         (varpool_node::call_for_node_and_aliases): Remove.
24201 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
24203         PR tree-optimization/62209
24204         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
24205         op == range->exp, insert seq and gimplified code after labels
24206         instead of after the phi.
24208 2015-02-13  Jeff Law  <law@redhat.com>
24210         PR bootstrap/65060
24211         Revert my change for tree-optimization/64823.
24213 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
24215         PR tree-optimization/65053
24216         * tree-ssa-phiopt.c (value_replacement): When moving assign before
24217         cond, either reset VR on lhs or set it to phi result VR.
24219 2015-02-13  Jeff Law  <law@redhat.com>
24221         PR tree-optimization/64823
24222         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
24223         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
24224         threading through blocks with PHIs, but no statements.
24225         (thread_through_normal_block): Distinguish between blocks where
24226         we did not process all the statements and blocks with no statements.
24228         PR rtl-optimization/47477
24229         * match.pd (convert (plus/minus (convert @0) (convert @1): New
24230         simplifier to narrow arithmetic.
24232 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
24234         PR ipa/65028
24235         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
24236         polymorphic call info when type is not known to be preserved.
24238 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
24240         PR ipa/65028
24241         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
24242         (inline_call): Use it.
24244 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
24246         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
24247         GOMP_DEVICE_NVIDIA_PTX.
24249 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
24251         PR ipa/65034
24252         * stmt.c (emit_case_nodes): Use void_type_node instead of
24253         NULL_TREE as LABEL_DECL type.
24255 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
24257         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
24258         constraints.
24259         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
24260         symbolic references to data to be forced to constant memory on the
24261         SOM target.
24263 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
24265         PR tree-optimization/65002
24266         * tree-cfg.c (pass_data_fixup_cfg): Don't update
24267         SSA on start.
24268         * tree-sra.c (some_callers_have_no_vuse_p): New.
24269         (ipa_early_sra): Reject functions whose callers
24270         assume function is read only.
24272 2015-02-13  Richard Biener  <rguenther@suse.de>
24274         PR lto/65015
24275         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
24276         for LTO produced CUs.
24278 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
24280         PR tree-optimization/64705
24281         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
24282         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
24283         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
24284         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
24285         expand_simple_operations.
24287 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
24288             Richard Henderson  <rth@redhat.com>
24290         PR rtl/32219
24291         * cgraphunit.c (cgraph_node::finalize_function): Set definition
24292         before notice_global_symbol.
24293         (varpool_node::finalize_decl): Likewise.
24294         * varasm.c (default_binds_local_p_2): Rename from
24295         default_binds_local_p_1, add weak_dominate argument.  Use direct
24296         returns instead of assigning to local variable.  Unify varpool and
24297         cgraph paths via symtab_node.  Reject undef weak variables before
24298         testing visibility.  Reorder tests for simplicity.
24299         (default_binds_local_p): Use default_binds_local_p_2.
24300         (default_binds_local_p_1): Likewise.
24301         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
24302         via symtab_node.
24303         (default_elf_asm_output_external): Emit visibility when specified.
24305 2015-02-13  Alan Modra  <amodra@gmail.com>
24307         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
24308         code setting up r11 for out-of-line fp restore.
24310 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
24312         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
24313         (muser-mode): Likewise.
24315 2015-02-13  Alan Modra  <amodra@gmail.com>
24317         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
24318         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
24320 2015-02-12  David Howells  <dhowells@redhat.com>
24322         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
24323         warning.
24324         * tree-ssa-uninit.c (dump_predicates): Likewise.
24325         * opts.c (print_filtered_help): Likewise.
24327 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
24329         * dwarf2out.c (output_die): Use "%s", name instead of name to
24330         avoid -Wformat-security warning.
24332         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
24333         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24334         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
24335         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
24337 2015-02-12  Jason Merrill  <jason@redhat.com>
24339         * common.opt (-flifetime-dse): New.
24341 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
24343         PR sanitizer/65019
24344         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
24346         PR tree-optimization/65014
24347         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
24348         use original second operand of arg0 or arg1 instead of
24349         that adjusted by STRIP_NOPS.
24351 2015-02-11  Jeff Law  <law@redhat.com>
24353         PR target/63347
24354         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
24355         that needs to be queued, just queue it for a single cycle.
24357 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
24359         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
24360         bodies of thunks; comment on why.
24361         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
24362         symbols are extern.
24364 2015-02-11  Richard Henderson  <rth@redhat.com>
24366         PR sanitize/65000
24367         * tree-eh.c (mark_reachable_handlers): Mark source and destination
24368         regions of __builtin_eh_copy_values.
24370 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
24372         PR middle-end/65003
24373         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
24374         ultimate alias is MEM with SYMBOL_REF satisfying
24375         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
24376         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
24378 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
24380         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
24381         "diagnostic-core.h".
24382         (main): Initialize progname, and call diagnostic_initialize.
24384         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
24385         instead of __OPENMP_TARGET__.
24387         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
24388         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
24389         hard-coding PTX_ID.
24391 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
24393         * doc/sourcebuild.texi (pie_enabled): Document.
24395 2015-02-11  Martin Liska  <mliska@suse.cz>
24397         PR ipa/64813
24398         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
24399         a return value for call to a function that is noreturn.
24401 2015-02-11  Richard Biener  <rguenther@suse.de>
24403         PR lto/65015
24404         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
24405         and -fresolution.
24407 2015-02-11  Andrew Pinski  <apinski@cavium.com>
24409         PR target/64893
24410         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
24411         Change the first argument type to size_type_node and add another
24412         size_type_node.
24413         (aarch64_simd_expand_builtin): Handle the new argument to
24414         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
24415         print an out when the first two arguments are not
24416         nonzero integer constants.
24417         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24418         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
24420 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
24422         PR target/61925
24423         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
24424         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
24425         (ix86_set_current_function): Rewritten.
24426         (ix86_add_new_builtins): Temporarily clear current_target_pragma
24427         when creating builtin fndecls.
24429 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
24431         PR ipa/65005
24432         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
24433         function.
24434         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
24435         have no comdat group.
24436         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
24437         (lto_output_varpool_node): Always output alias info.
24438         (output_refs): Output refs of boundary aliases, too.
24439         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
24440         (output_symtab): Output call eges in thunks in boundary.
24441         (get_alias_symbol): Remove.
24442         (input_node, input_varpool_node): Do not special case weakrefs.
24443         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
24444         alias and thunks targets in the boundary; do not take removed symbols
24445         from their comdat groups.
24446         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
24447         (cgraph_node::global_info): Remove.
24448         (cgraph_node::rtl_info): Look through aliases and thunks.
24449         * cgrpah.h (global_info): Remove.
24450         (non_local_p): Remove.
24452 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
24453             Sandra Loosemore  <sandra@codesourcery.com>
24455         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
24456         to inline asm.  List dialects in proper order.
24458 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
24459             Sandra Loosemore  <sandra@codesourcery.com>
24461         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
24463 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
24465         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
24466         modified) reference to Solaris.
24468 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
24470         * doc/extend.texi (Extended Asm): Fix typos.
24472 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
24474         PR sanitizer/65004
24475         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
24477 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
24479         PR target/64661
24480         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
24481         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
24482         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
24483         * config/sh/constraints.md (Ara, Add): New constraints.
24484         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
24485         predicates.
24486         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
24487         atomic_mem_operand_0.  Don't use force_reg on the memory address.
24488         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
24489         Sra constraint.  Convert to insn_and_split.  Add workaround for
24490         PR 64974.
24491         (atomic_compare_and_swap<mode>_hard): Copy to
24492         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
24493         Use atomic_mem_operand_0 predicate.
24494         (atomic_compare_and_swap<mode>_soft_gusa,
24495         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
24496         AraAdd constraints.
24497         (atomic_compare_and_swap<mode>_soft_tcb,
24498         atomic_compare_and_swap<mode>_soft_imask,
24499         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
24500         atomic_mem_operand_0 predicate and SraSdd constraints.
24501         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
24502         constraint.
24503         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
24504         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
24505         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
24506         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
24507         force_reg on the memory address.
24508         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
24509         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
24510         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
24511         atomic_mem_operand_1 predicate and Sra constraint.
24512         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
24513         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
24514         Use atomic_mem_operand_1 predicate.
24515         (atomic_<fetchop_name><mode>_hard): Copy to
24516         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
24517         Use atomic_mem_operand_1 predicate.
24518         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
24519         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
24520         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
24521         insn_and_split.  Use atomic_mem_operand_1 predicate.
24522         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
24523         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
24524         Use atomic_mem_operand_1 predicate.
24525         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
24526         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
24527         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
24528         in generated insn with original mem operand before emitting the insn.
24529         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
24530         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
24531         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
24532         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
24533         Use atomic_mem_operand_1 predicate and AraAdd constraints.
24534         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
24535         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
24536         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
24537         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
24538         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
24539         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
24540         atomic_not_fetch<mode>_soft_tcb,
24541         atomic_<fetchop_name>_fetch<mode>_soft_imask,
24542         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
24543         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
24544         Use atomic_mem_operand_1 predicate and SraSdd constraints.
24546 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
24548         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
24549         and 3 earlyclobber operands.
24551 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
24553         * common.opt (fstack-reuse): Mark as optimization.
24555 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
24557         PR ipa/64982
24558         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
24560 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
24562         PR tree-optimization/64326
24563         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
24565 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
24567         PR gcov-profile/61889
24568         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
24570 2015-02-10  Richard Biener  <rguenther@suse.de>
24572         PR tree-optimization/64995
24573         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
24574         value we use is final.
24575         (visit_reference_op_store): Always valueize op.
24576         (visit_use): Properly valueize vuses.
24578 2015-02-10  Richard Biener  <rguenther@suse.de>
24580         PR tree-optimization/64909
24581         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
24582         pass a scalar-stmt count estimate to the cost model.
24583         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
24585 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
24587         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
24588         enabled by default together with var-tracking.
24590 2015-02-10  Nick Clifton  <nickc@redhat.com>
24592         * config/rl78/rl78.c: Remove DIV attribute code accidentally
24593         included in previous rl78 commit.
24595 2015-02-10  Richard Biener  <rguenther@suse.de>
24597         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
24598         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
24599         return the bitpack.
24601 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
24603         PR gcov-profile/61889
24604         * config.in: regenerate.
24605         * configure.in: Likewise.
24606         * configure.ac: Check for ftw.h.
24607         * gcov-tool.c: Check for ftw.h before using nftw.
24609 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
24611         PR lto/64076
24612         * ipa-visibility.c (update_visibility_by_resolution_info): Only
24613         assert when not in lto mode.
24615 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24617         * ira-color.c (setup_left_conflict_sizes_p): Simplify
24618         initialization/assignment of conflict_size.
24620 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
24622         PR ipa/64978
24623         * ipa-cp.c (gather_caller_stats): Skip thunks.
24624         (propagate_constants_topo): Skip aliases.
24626 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
24628         PR target/64761
24629         * config/sh/sh.c (sh_option_override): Don't change
24630         -freorder-blocks-and-partition to -freorder-blocks even when
24631         unwinding is enabled.
24632         (sh_can_follow_jump): Return false if the followee jump is
24633         a crossing jump when -freorder-blocks-and-partition is specified.
24634         * config/sh/sh.md (*jump_compact_crossing): New insn.
24636 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24637             Kaz Kojima  <kkojima@gcc.gnu.org>
24639         PR target/64761
24640         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
24641         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
24642         (sh_can_redirect_branch): Rename to ...
24643         (sh_can_follow_jump): ... this.  Constify argument types.
24644         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
24645         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
24646         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
24647         * doc/tm.texi: Regenerate.
24649 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
24651         PR sanitizer/64981
24652         * builtins.c (expand_builtin): Call targetm.expand_builtin
24653         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
24655 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
24657         PR ipa/61548
24658         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
24660 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
24662         PR ipa/63566
24663         * ipa-icf.c (set_local): New function.
24664         (sem_function::merge): Use it.
24666 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
24668         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
24669         (add_type_duplicate): Fix comparison of BINFOs.
24671 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
24673         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
24674         on getting VOID pointer.
24676 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
24678         PR target/64979
24679         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
24680         va_list escapes.
24682 2015-02-09  Richard Biener  <rguenther@suse.de>
24684         * genmatch.c (replace_id): Copy expr_type.
24686 2015-02-09  Richard Biener  <rguenther@suse.de>
24688         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
24689         (streamer_write_tree_bitfields): Declare.
24690         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
24691         properly unpack padding.
24692         (unpack_value_fields): Inline ...
24693         (streamer_read_tree_bitfields): ... here.
24694         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
24695         and properly add padding bits.
24696         (streamer_pack_tree_bitfields): Fold into ...
24697         (streamer_write_tree_bitfields): ... this new function,
24698         exposing the bitpack object.
24699         * lto-streamer-out.c (lto_write_tree_1): Call
24700         streamer_write_tree_bitfields.
24702 2015-02-09  Richard Biener  <rguenther@suse.de>
24704         PR tree-optimization/54000
24705         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
24706         (struct ivopts_data): Add loop_loc member.
24707         (tree_ssa_iv_optimize_loop): Dump loop location.
24708         (create_new_ivs): Likewise, also dump number of IVs generated.
24710 2015-02-09  Martin Liska  <mliska@suse.cz>
24712         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
24713         just if not yet registered.
24714         (ipa_icf_generate_summary): Register callgraph hooks.
24716 2015-02-08  Andrew Pinski  <apinski@cavium.com>
24718         * config/aarch64/aarch64.c (gty_dummy): Delete.
24720 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
24722         PR ipa/63566
24723         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
24724         (cgraph_node::local_p): Remove thunk related FIXME.
24726 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
24728         PR ipa/63566
24729         * i386.c (ix86_function_regparm): Look through aliases to see if callee
24730         is local and optimized.
24731         (ix86_function_sseregparm): Likewise; also use target's SSE math
24732         settings; error out instead of silently generating wrong code
24733         on mismatches.
24734         (init_cumulative_args): Look through aliases.
24736 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
24738         PR ipa/63566
24739         * ipa-split.c (execute_split_functions): Split if function has aliases.
24741 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
24743         PR ipa/63566
24744         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
24745         aliases before trying to expand it.
24746         (cgraph_node::expand_thunk): Fix formating.
24748 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
24750         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
24751         (Using Assembly Language with C): Expand introduction.
24752         (Basic Asm): Copy-edit.  Add more information about uses of
24753         basic asm.
24754         (Extended Asm): Copy-edit.  Document new escape syntax and
24755         %l[label] syntax.
24756         (Global Reg Vars): Copy-edit.
24757         (Local Reg Vars): Likewise.
24759 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
24761         PR debug/2714
24762         PR bootstrap/64256
24763         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
24764         (DBX_CONTIN_CHAR): Define.
24766 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
24767             Brian Rzycki  <b.rzycki@samsung.com>
24769         PR tree-optimization/64878
24770         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
24771         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
24772         Stop recursion at loop phi nodes after having visited a loop phi node.
24774 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
24776         * toplev.c (process_options): Change flag_ipa_ra before creating
24777         optimization_{default,current}_node.
24779         PR ipa/64896
24780         * cgraphunit.c (cgraph_node::expand_thunk): If
24781         restype is not is_gimple_reg_type nor the thunk_fndecl
24782         returns aggregate_value_p, set restmp to a temporary variable
24783         instead of resdecl.
24785 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
24787         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
24789 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24791         PR target/64205
24792         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
24793         add a general secondary reload handler for SDmode, unless we have
24794         both read/write support for SDmode.
24796 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
24798         PR middle-end/64937
24799         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
24800         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
24801         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
24802         1 before, push it to abstract_vec.
24803         (dwarf2out_abstract_function): Adjust caller.  Don't call
24804         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
24805         DECL_ABSTRACT_P flags for all abstract_vec elts.
24807 2015-02-06  Renlin Li  <renlin.li@arm.com>
24809         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
24810         complex gimple.
24811         * tree-ssa.c (execute_update_addresses_taken): Likewise.
24813 2015-02-06  Jeff Law  <law@redhat.com>
24815         PR target/64889
24816         * config/h8300/h8300.c (push): New argument "in_prologue".
24817         Pass "in_prologue" along to "F".
24818         (h8300_push_pop): Corresponding changes.
24819         (h8300_expand_prologue): Likewise.
24820         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
24822 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
24824         PR rtl-optimization/64957
24825         PR debug/64817
24826         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
24827         IOR rather than for AND.
24829 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
24831         PR target/62631
24832         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
24833         of shift-add and (add + shift) operations.  Rename local variable.
24835 2015-02-05  Jeff Law  <law@redhat.com>
24837         PR target/17306
24838         * config/h8300/constraints.md (U): Correctly dectect
24839         "eightbit_data" memory addresses.
24840         * config/h8300/h8300.c (eightbit_constant_address_p): Also
24841         handle (const (plus (symbol_ref (x)))) where x is declared
24842         as an 8-bit data memory address.
24843         * config/h8300/h8300.md (call, call_value): Correctly detect
24844         "funcvec" functions.
24846         PR target/43264
24847         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
24848         24 to 28 bits for the H8/300.
24850 2015-02-06  Alan Modra  <amodra@gmail.com>
24852         PR target/64876
24853         * config/rs6000/rs6000.c (chain_already_loaded): New function.
24854         (rs6000_call_aix): Use it.
24856 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
24858         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
24859         check.
24861 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
24863         * config/h8300/constraints.md ("U" constraint): Use strict
24864         variant of REG_OK_FOR_BASE_P after reload has started.
24866 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
24868         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
24869         define to zero if !TARGET_NEON.
24870         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
24872 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24873             Trevor Saunders  <tsaunders@mozilla.com>
24875         PR ipa/61548
24876         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
24878 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24880         PR ipa/61548
24881         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
24882         when removing varpool nodes.
24884 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24886         PR ipa/61548
24887         * varpool.c (varpool_node::remove): Fix order of variables.
24889 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24891         PR ipa/64686
24892         * ipa-inline.c (inline_small_functions): Fix ordering issue between
24893         speculation resolution and key updates.
24895 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24897         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
24898         about not letting any speculative edges unupdated.
24900 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24902         PR gcov/64123
24903         * gcov-io.c (gcov_var): Export.
24905 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24907         PR middle-end/64922
24908         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
24909         edges that become speculative.
24911 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
24913         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
24914         or DW_LANG_Fortran08.
24915         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
24916         DW_LANG_Fortran08.
24917         (gen_compile_unit_die): Handle "GNU Fortran2003" and
24918         "GNU Fortran2008" language strings.
24919         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
24920         * langhooks.h (lang_GNU_Fortran): New prototype.
24921         * langhooks.c (lang_GNU_Fortran): New function.
24922         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
24923         lang_GNU_Fortran.
24925 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
24927         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
24928         (RTX_OK_FOR_OLO10_P): Likewise.
24930 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
24932         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
24934 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24936         PR middle-end/64922
24937         * gimple.c: Include gimple-ssa.h.
24938         (maybe_remove_unused_call_args): New function.
24939         * gimple.h (maybe_remove_unused_call_args): Declare.
24940         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
24941         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
24942         * gimple-fold.c (gimple_fold_call): Likewise.
24944 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
24946         PR rtl-optimization/64905
24947         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
24948         pointer alignment if it isn't needed.
24950 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
24952         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
24953         cortex-a72.cortex-a53.
24954         * config/aarch64/aarch64-tune.md: Regenerate.
24955         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
24957 2015-02-04  Nick Clifton  <nickc@redhat.com>
24959         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
24960         inside a MEM.
24962 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
24964         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
24965         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
24966         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
24967         of DEF_BUILTIN.
24968         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
24969         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
24970         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
24971         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
24972         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
24973         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
24974         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
24975         * tree-core.h (enum built_in_function): In between
24976         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
24977         for builtins that use DEF_BUILTIN_CHKP macro.
24979 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
24981         PR debug/64817
24982         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
24983         operands for tcc_comparison exprs.  Fix typos.
24985         PR debug/64817
24986         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
24987         of two XORs that have an intervening AND or IOR.
24989         PR debug/64817
24990         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
24991         simplification of XOR of AND to not allocate new rtx before
24992         committing to a simplification.
24994 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24996         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
24997         manual swaps in all peepholes.
24999 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25001         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
25002         of manual swapping implementation.
25003         (aarch64_expand_vec_perm_const_1): Likewise.
25005 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
25007         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
25008         (generic_addrcost_table): Remove NAMED_PARAM.
25009         (cortexa57_addrcost_table): Likewise.
25010         (xgene1_addrcost_table): Likewise.
25011         (generic_regmove_table): Likewise.
25012         (cortexa53_regmove_table): Likewise.
25013         (xgene1_regmove_table): Likewise.
25014         (generic_vector_table): Likewise.
25015         (cortexa57_vector_table): Likewise.
25016         (xgene1_vector_table): Likewise.
25017         (generic_tunings): Likewise.
25018         (cortexa53_tunings): Likewise.
25019         (cortexa57_tunings): Likewise.
25020         (xgene1_tunings): Likewise.
25022 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
25024         * config/arm/arm-cores.def: Add cortex-a72 and
25025         cortex-a72.cortex-a53.
25026         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
25027         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
25028         * config/arm/arm-tune.md: Regenerate.
25029         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
25030         "cortex-a72.cortex-a53".
25031         * doc/invoke.texi (ARM Options/-mtune): Likewise.
25033 2015-02-04  Nick Clifton  <nickc@redhat.com>
25035         PR target/64408
25036         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
25037         of accepted codes.
25038         (nonimmediate_di_operand): Likewise.
25040         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
25041         prefixes of known F5 using MSP430 MCUs.
25043 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25045         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
25046         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
25047         instead of __builtin_sqrt.
25049 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
25051         * varasm.c (do_assemble_alias): Follow transparent alias
25052         chain for target.
25053         (default_assemble_visibility): Follow transparent alias
25054         chain for decl name.
25056 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25058         PR middle-end/62103
25059         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
25060         to compute size of referenced value in the constant case.
25062 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
25064         PR rtl-optimization/64756
25065         * cse.c (invalidate_dest): New function.
25066         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
25067         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
25068         invalidate and do not record it.
25070 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
25072         PR target/64660
25073         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
25074         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
25075         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
25076         atomic_nand<mode>_soft_tcb): New insns.
25077         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
25078         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
25079         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
25080         Split into atomic_not_fetchsi_hard if operands[0] is unused.
25081         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
25082         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25083         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
25084         atomic_not<mode>_hard if operands[0] is unused.
25085         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
25086         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
25087         if operands[0] is unused.
25088         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
25089         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
25090         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
25091         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25092         unused.
25093         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
25094         into atomic_not<mode>_soft_tcb if operands[0] is unused.
25095         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
25096         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
25097         if operands[0] is unused.
25098         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
25099         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
25100         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
25101         atomic_nand_fetchsi_hard if operands[0] is unused.
25102         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
25103         atomic_nand<mode>_hard if operands[0] is unused.
25104         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
25105         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
25106         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
25107         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25108         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
25109         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
25110         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
25111         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
25112         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
25113         atomic_not<mode>_hard if operands[0] is unused.
25114         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
25115         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
25116         unused.
25117         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
25118         into atomic_not<mode>_soft_tcb if operands[0] is unused.
25119         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
25120         atomic_nand<mode>_hard if operands[0] is unused.
25121         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
25122         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
25124 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
25126         PR jit/64810
25127         * Makefile.in (GCC_OBJS): Add gcc-main.o.
25128         * gcc-main.c: New file, containing "main" taken from gcc.c.
25129         * gcc.c (do_self_spec): Free decoded_options.
25130         (class driver): Move declaration to gcc.h.
25131         (main): Move declaration and implementation to new file
25132         gcc-main.c.
25133         (driver_get_configure_time_options): New function.
25134         * gcc.h (class driver): Move this declaration here, from
25135         gcc.c.
25136         (driver_get_configure_time_options): New declaration.
25138 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
25140         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
25141         cross-module inlining.
25142         * cgraph.h (cgraph_node): Add flag merged.
25143         * ipa-icf.c (sem_function::merge): Maintain it.
25145 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
25147         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
25148         instead of OBJECT_P.
25150 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
25152         PR target/62631
25153         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
25154         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
25155         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
25156         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
25158 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
25160         PR other/63504
25161         * combine.c (reg_n_sets_max): New variable.
25162         (can_change_dest_mode, reg_nonzero_bits_for_combine,
25163         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
25164         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
25165         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
25166         (rest_of_handle_combine): Initialize reg_n_sets_max.
25168 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
25170         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
25171         if some always_inline was inlined, apply changes before inlining
25172         heuristically.
25174 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
25176         PR jit/64810
25177         * config/arm/arm.c (arm_option_override): Set
25178         arm_selected_arch/cpu/tune to NULL on entry.
25180 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
25181             Andrew Pinski  <pinskia@gcc.gnu.org>
25182             Jakub Jelinek  <jakub@gcc.gnu.org>
25184         PR target/64231
25185         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
25186         integer typing for small model. Use IN_RANGE.
25188 2015-02-02  Richard Biener  <rguenther@suse.de>
25190         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
25191         * tree-vrp.c (vrp_valueize_1): Likewise.
25193 2015-02-02  Alan Modra  <amodra@gmail.com>
25195         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
25196         than mem for toc_restore.
25197         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
25198         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
25199         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
25201 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
25203         PR target/64047
25204         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
25205         explicit default options.
25207 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
25209         PR ipa/64872
25210         * ipa-utils.c (ipa_merge_profiles): Add release argument.
25211         * ipa-icf.c (sem_function::merge): Do not release body when merging.
25212         * ipa-utils.h (ipa_merge_profiles): Update prototype.
25214 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
25216         PR debug/64817
25217         * cfgexpand.c (deep_ter_debug_map): New variable.
25218         (avoid_deep_ter_for_debug): New function.
25219         (expand_debug_expr): If TERed SSA_NAME is in
25220         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
25221         instead of trying to expand SSA_NAME's def stmt.
25222         (expand_debug_locations): When expanding debug bind
25223         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
25224         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
25225         value.
25226         (pass_expand::execute): Call avoid_deep_ter_for_debug on
25227         all debug bind stmts.  Delete deep_ter_debug_map after
25228         expand_debug_location if non-NULL and clear it.
25230 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
25232         PR target/64851
25233         * config/sh/sync.md (atomic_fetch_notsi_hard,
25234         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
25235         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
25236         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
25237         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
25238         atomic_not_fetch<mode>_soft_imask): New insns.
25240 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25242         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
25243         (rank_for_schedule_debug): Split from ...
25244         (rank_for_schedule): ... this.
25245         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
25246         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
25248 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
25250         * doc/md.texi (Machine Constraints): Alphabetize table by target.
25251         * doc/extend.texi (x86 Variable Attributes): Move section to
25252         correct alphabetization after renaming.
25253         (x86 Type Attributes): Likewise.
25254         (Target Builtins): Re-alphabetize menu.
25255         (x86 Built-in Functions): Move section to correct alphabetization
25256         after renaming.
25257         (x86 transactional memory intrinsics): Likewise.
25258         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
25259         and x86 Windows Options in table and menu.
25260         (x86 Options): Move section to correct alphabetization after
25261         renaming.
25262         (x86 Windows Options): Likewise.
25264 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
25266         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
25267         preferred names of the architecture and its 32- and 64-bit
25268         variants.
25269         * doc/invoke.texi: Likewise.
25270         * doc/md.texi: Likewise.
25272 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
25274         PR target/64882
25275         * config/i386/predicates.md (address_no_seg_operand): Reject
25276         non-CONST_INT_P operands in invalid mode.
25278 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
25280         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
25281         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
25282         * config/i386/predicates.md (address_no_seg_operand): Call
25283         address_operand with VOIDmode.
25284         (vsib_address_operand): Ditto.
25285         (address_mpx_no_base_operand): Ditto.
25286         (address_mpx_no_index_operand): Ditto.
25288 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
25290         PR target/64688
25291         * lra-constraints.c (original_subreg_reg_mode): New.
25292         (simplify_operand_subreg): Try to simplify subreg of const.  Use
25293         original_subreg_reg_mode for it.
25294         (swap_operands): Update original_subreg_reg_mode.
25295         (curr_insn_transform): Set up original_subreg_reg_mode.
25297 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
25299         PR target/64617
25300         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
25301         function.
25302         (process_alt_operands): Use it.
25303         (curr_insn_transform): Check the optional reload pseudo class is
25304         ok for the mode.
25306 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
25308         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
25309         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
25310         prototype.
25311         * toplev.h (init_asm_output): Update comment on use of
25312         UNKNOWN_LOCATION with fatal_error.
25313         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
25314         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
25315         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
25316         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
25317         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
25318         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
25319         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
25320         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
25321         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
25322         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
25323         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
25324         fatal_error changed to pass input_location as first argument.
25326 2015-01-30  Martin Liska  <mliska@suse.cz>
25328         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
25329         in #pragma GCC diagnostic guards.
25331 2015-01-30  Richard Biener  <rguenther@suse.de>
25333         PR tree-optimization/64829
25334         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
25335         not add a widening conversion pattern but hand off extra
25336         widenings to callers.
25337         (vect_recog_widen_mult_pattern): Handle extra widening produced
25338         by vect_handle_widen_op_by_const.
25339         (vect_recog_widen_shift_pattern): Likewise.
25340         (vect_pattern_recog_1): Remove excess vertical space in dumping.
25341         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
25342         (vect_init_vector_1): Likewise.
25343         (vect_get_vec_def_for_operand): Likewise.
25344         (vect_finish_stmt_generation): Likewise.
25345         (vectorizable_load): Likewise.
25346         (vect_analyze_stmt): Likewise.
25347         (vect_is_simple_use): Likewise.
25349 2015-01-29  Jeff Law  <law@redhat.com>
25351         * combine.c (try_combine): Fix typo in comment.
25353 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
25355         PR target/64580
25356         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
25357         (rs6000_stack_info): Add assert.
25358         (rs6000_output_savres_externs): New function, split off from...
25359         (rs6000_output_function_prologue): ... here.  Do not call it for
25360         thunks.
25362 2015-01-29  Jeff Law  <law@redhat.com>
25364         PR target/15184
25365         * combine.c (try_combine): If I0 is a memory load and I3 a store
25366         to a related address, increase the "goodness" of doing a 4-insn
25367         combination with I0-I3.
25368         (make_field_assignment): Handle SUBREGs in the ior+and case.
25370 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
25372         PR tree-optimization/64746
25373         * tree-if-conv.c (mask_exists): New function.
25374         (predicate_mem_writes): Save created mask with given size for further
25375         use.
25376         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
25377         (ifcvt_repair_bool_pattern): Collect all statements that are root
25378         of bool pattern and use iterative algorithm to remove multiple uses
25379         of predicates, display number of required iterations.
25381 2015-01-29  Richard Biener  <rguenther@suse.de>
25383         PR tree-optimization/64853
25384         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
25385         stmt will get simulated again.
25386         * tree-ssa-ccp.c (valueize_op_1): Likewise.
25388 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25390         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
25391         return_in_pc.  Remove redundant assignments.
25392         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
25393         (arm_expand_epilogue): Don't compare boolean with true in if condition.
25395 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
25397         * config/i386/i386.c (ix86_mode_after): Make static.
25399 2015-01-29  Richard Biener  <rguenther@suse.de>
25401         PR tree-optimization/64844
25402         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
25403         dump cost model analysis.
25404         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25405         Do not register adjusted load/store costs here.
25407 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
25408             Uros Bizjak  <ubizjak@gmail.com>
25410         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
25411         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
25412         using x86_use_pseudo_pic_reg.
25413         * config/i386/i386.c (ix86_conditional_register_usage): Remove
25414         support for fixed PIC register.
25415         (ix86_use_pseudo_pic_reg): Not static any more.
25417 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
25419         PR middle-end/64805
25420         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
25421         to avoid error in cgraph node verification.
25423 2015-01-29  Marek Polacek  <polacek@redhat.com>
25425         * doc/standards.texi: Reflect that the default for C is gnu11.
25427 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
25429         PR target/64761
25430         * reorg.c (switch_text_sections_between_p): New function.
25431         (relax_delay_slots): Call it when testing if the jump insn
25432         is removable.  Use targetm.can_follow_jump when testing if
25433         the conditional branch can follow an unconditional jump.
25435 2015-01-27  Caroline Tice  <cmtice@google.com>
25437         Committing VTV Cywin/Ming patch for Patrick Wollgast
25438         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
25439         if -fvtable-verify=preinit/std is used.
25440         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
25441         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
25442         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
25443         if -fvtable-verify=preinit/std is used.
25444         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25445         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
25446         if -fvtable-verify=preinit/std is used.
25447         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
25448         * config/i386/mingw32.h (LIB_SPEC): Likewise.
25449         * varasm.c (assemble_variable): Add code to properly set the comdat
25450         section and name for the .vtable_map_vars section in case the
25451         target is PE or COFF.
25453 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
25455         PR ipa/64801
25456         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
25457         make sane BB profile.
25458         (cgraph_node::expand_thunk): Make sane BB profile.
25459         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
25460         * cgraph.h (init_lowered_empty_function): Update prototype.
25461         * config/i386/i386.c (make_resolver_func): Update call.
25462         * predict.c (gate): Disable branch prediction pass if
25463         profile is already there.
25465 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
25467         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
25468         * opth-gen.awk: Likewise.
25469         * common.opt: Mark flag_fp_contract_mode as Optimization.
25471 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25473         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
25474         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
25476 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
25478         PR target/64659
25479         * config/sh/predicates.md (atomic_arith_operand,
25480         atomic_logical_operand): Remove.
25481         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
25482         (atomic_arith_operand_0): New predicate.
25483         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
25484         Use atomic_arith_operand_0 for input values.
25485         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
25486         atomic_compare_and_swap<mode>_soft_gusa,
25487         atomic_compare_and_swap<mode>_soft_tcb,
25488         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
25489         arith_reg_operand instead of register_operand.
25490         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
25491         atomic_arith_operand_0 for newval input.
25492         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
25493         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
25494         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
25495         arith_reg_operand instead of register_operand.
25496         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
25497         fetchop_predicate_1, fetchop_constraint_1_llcs,
25498         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
25499         fetchop_constraint_1_imask): New code iterator attributes.
25500         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
25501         register_operand.  Use fetchop_predicate_1.
25502         (atomic_fetch_<fetchop_name>si_hard,
25503         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
25504         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
25505         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
25506         and arith_reg_operand instead of register_operand.  Use
25507         fetchop_predicate_1, fetchop_constraint_1_gusa.
25508         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
25509         and arith_reg_operand instead of register_operand.  Use
25510         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
25511         to allow R0 usage.
25512         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
25513         and arith_reg_operand instead of register_operand.  Use
25514         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
25515         to allow R0 usage.
25516         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
25517         register_operand.  Use atomic_logical_operand_1.
25518         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
25519         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
25520         arith_reg_operand instead of register_operand.
25521         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
25522         Use arith_reg_dest and arith_reg_operand instead of register_operand.
25523         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
25524         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
25525         register_operand.  Use fetchop_predicate_1.
25526         (atomic_<fetchop_name>_fetchsi_hard,
25527         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
25528         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
25529         fetchop_constraint_1_llcs.
25530         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
25531         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
25532         fetchop_constraint_1_gusa.
25533         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
25534         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
25535         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
25536         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
25537         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
25538         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
25539         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
25540         register_operand.  Use atomic_logical_operand_1.
25541         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
25542         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
25543         arith_reg_operand instead of register_operand.
25544         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
25545         arith_reg_operand instead of register_operand.  Use logical_operand
25546         and K08.  Adjust asm sequence to allow R0 usage.
25547         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
25548         arith_reg_operand instead of register_operand.  Use logical_operand
25549         and K08.
25551 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
25553         PR other/63504
25554         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
25555         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
25556         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
25557         only get_full_len HOST_WIDE_INTs from get_val () array rather than
25558         all bits in *val_wide.
25560 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
25562         * varpool.c (tls_model_names): Fix names.
25563         (varpool_node::dump): Dump tls- prefix for tls models.
25565 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
25566             Bernd Schmidt  <bernds@codesourcery.com>
25567             Nathan Sidwell  <nathan@codesourcery.com>
25569         * config/nvptx/mkoffload.c: New file.
25570         * config/nvptx/t-nvptx: Add build rules for it.
25571         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
25572         (extra_programs): Add mkoffload.
25573         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
25574         function.
25575         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
25577 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
25579         PR middle-end/64809
25580         * cfgexpand.c (reorder_operands): Skip debug gimples.
25582 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
25584         PR tree-optimization/64277
25585         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
25586         range info when possible to refine estimation.
25588 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25590         PR tree-optimization/64718
25591         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
25592         be a 16bit unsigned integer when n->range is 16.
25593         (bswap_replace): Convert src to that type if necessary for all bswap
25594         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
25595         set in pass_optimize_bswap::execute ().
25597 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
25599         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
25600         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
25601         integer and floating point variants.
25602         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
25604 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
25606         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
25607         for all vector modes.
25609 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
25611         PR bootstrap/64612
25612         * doc/sourcebuild.texi (comdat_group): Document.
25614 2015-01-28  Terry Guo  <terry.guo@arm.com>
25616         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
25618 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
25620         * toplev.c (print_version): Add param "show_global_state", and
25621         only print GGC and plugin information if it is true.
25622         (init_asm_output): Pass in "true" for the new param when calling
25623         print_version.
25624         (process_options): Likewise.
25625         (toplev::main): Likewise.
25626         * toplev.h (print_version): Add new param to decl.
25628 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
25630         PR ipa/60871
25631         PR ipa/64139
25632         * tree.c (lookup_binfo_at_offset): New function.
25633         (get_binfo_at_offset): Use it.
25635 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
25637         PR ipa/64282
25638         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
25639         on vtable being vtable.
25641 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25643         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
25644         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
25645         -mhotpatch= option.
25646         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
25647         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
25648         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
25649         Renamed.
25650         (s390_hotpatch_trampoline_halfwords_max): Renamed.
25651         (s390_hotpatch_hw_max): New name.
25652         (s390_hotpatch_trampoline_halfwords): Renamed.
25653         (s390_hotpatch_hw_before_label): New name.
25654         (get_hotpatch_attribute): Removed.
25655         (s390_hotpatch_hw_after_label): New name.
25656         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
25657         attribute.
25658         (s390_attribute_table): Ditto.
25659         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
25660         (s390_function_num_hotpatch_hw): New name.
25661         Remove special handling of inline functions and hotpatching.
25662         Return number of nops before and after the function label.
25663         (s390_can_inline_p): Removed.
25664         (s390_asm_output_function_label): Emit a configurable number of nops
25665         after the function label.
25666         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
25667         (TARGET_CAN_INLINE_P) Removed.
25668         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
25670 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25671             Jiong Wang  <jiong.wang@arm.com>
25673         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
25674         of scratch reg.
25675         (cb<optab><mode>1): Likewise.
25676         * config/aarch64/iterators.md (bcond): New define_code_attr.
25678 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25680         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
25681         memory accesses.
25683 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25685         * config/s390/s390.c (s390_register_move_cost): Increase costs for
25686         FPR->GPR moves.
25688 2015-01-27  Richard Biener  <rguenther@suse.de>
25690         * tree-vrp.c (update_value_range): Intersect the range with
25691         old recorded SSA name range information.
25693 2015-01-27  Nick Clifton  <nickc@redhat.com>
25695         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
25696         BC, DE and HL registers directly, not via AX.
25697         When decrementing the stack pointer by a large amount, transfer SP
25698         into AX and perform the subtraction there.
25699         (rl78_expand_epilogue): Perform the inverse of the above
25700         enhancements.
25702 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25704         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
25706 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
25707             Yury Gribov  <y.gribov@samsung.com>
25709         PR ubsan/64741
25710         * ubsan.c (ubsan_source_location): Refactor code.
25711         (ubsan_type_descriptor): Update type size. Refactor code.
25713 2015-01-27  Richard Biener  <rguenther@suse.de>
25715         PR tree-optimization/56273
25716         PR tree-optimization/59124
25717         PR tree-optimization/64277
25718         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
25719         from the first VRP pass.
25721 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
25723         PR ipa/64776
25724         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
25725         handle the first argument in the same loop as all the other arguments.
25727         PR rtl-optimization/61058
25728         * jump.c (cleanup_barriers): Update basic block boundaries
25729         if BLOCK_FOR_INSN is non-NULL on PREV.
25731 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
25733         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
25734         bounds narrowing, already instrumented calls and calls to
25735         not instrumentable functions.
25737 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
25739         PR tree-optimization/64807
25740         * wide-int.cc (wi::divmod_internal): Clear
25741         b_dividend[dividend_blocks_needed].
25743 2015-01-26  DJ Delorie  <dj@redhat.com>
25745         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
25746         volatile memory references.
25748 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
25750         PR target/49263
25751         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
25752         remove_insn.
25753         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
25754         shifts if it already fits into K08.
25756 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
25758         PR ipa/64730
25759         * ipa-inline.c (inline_small_functions): Print "unknown" even
25760         if edge->call_stmt is non-NULL, but has builtins or unknown
25761         location.
25763         PR middle-end/64421
25764         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
25765         with asterisk, skip the first character.
25767 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
25769         PR target/64806
25770         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
25771         order change.
25773 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
25775         PR target/64795
25776         * config/i386/i386.md (*movdi_internal): Also check operand 0
25777         to determine TYPE_LEA operand.
25778         (*movsi_internal): Ditto.
25780 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
25782         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
25783         OPTION_MASK_QUAD_MEMORY_ATOMIC.
25785 2015-01-26  Renlin Li  <renlin.li@arm.com>
25787         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
25788         the comment.
25789         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
25790         for higher part.
25792 2015-01-26  Richard Biener  <rguenther@suse.de>
25794         PR middle-end/64764
25795         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
25796         combining two BIT_AND_EXPR predicates.
25798 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
25800         PR bootstrap/64754
25801         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
25803 2015-01-26  Terry Guo  <terry.guo@arm.com>
25805         * config/arm/arm.c (arm_file_start): Update the assignment of
25806         Tag_ABI_HardFP_use.
25808 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
25810         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
25811         pipeline model.
25812         config/arm/arm.md: Include the new Cortex-A57 model.
25813         (generic_sched): Don't use generic_sched when tuning for
25814         Cortex-A57.
25816 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
25817             Uros Bizjak  <ubizjak@gmail.com>
25819         * config/i386/i386.c (get_builtin_code_for_version): Add
25820         support for BMI and BMI2 multiversion functions.
25822 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25824         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
25825         (extract_bit_field): Likewise.
25826         (extract_low_bits): Likewise.
25827         (expand_mult): Likewise.
25828         (expand_mult_highpart_adjust): Likewise.
25830 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
25832         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
25833         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
25834         * config/i386/i386.c (processor_model): Add
25835         M_INTEL_COREI7_BROADWELL.
25836         (arch_names_table): Add "broadwell".
25838 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
25840         PR target/49263
25841         PR target/53987
25842         PR target/64345
25843         PR target/59533
25844         PR target/52933
25845         PR target/54236
25846         PR target/51244
25847         * config/sh/sh-protos.h
25848         (sh_extending_set_of_reg::can_use_as_unextended_reg,
25849         sh_extending_set_of_reg::use_as_unextended_reg,
25850         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
25851         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
25852         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
25853         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
25854         (sh_treg_insns): New class.
25855         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
25856         (scope_counter): New class.
25857         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
25858         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
25859         sh_extending_set_of_reg::can_use_as_unextended_reg,
25860         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
25861         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
25862         sh_split_treg_set_expr): New functions.
25863         (addsubcosts): Handle treg_set_expr.
25864         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
25865         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
25866         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
25867         (sh_insn_operands_modified_between_p): Make non-static.
25868         * config/sh/predicates.md (zero_extend_movu_operand): Allow
25869         simple_mem_operand in addition to displacement_mem_operand.
25870         (zero_extend_operand): Don't allow zero_extend_movu_operand.
25871         (treg_set_expr, treg_set_expr_not_const01,
25872         arith_reg_or_treg_set_expr): New predicates.
25873         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
25874         arith_or_int_operand instead of logical_operand.  Convert to
25875         insn_and_split.  Try to optimize constant operand in splitter.
25876         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
25877         (*tstqi_t_zero): Delete.
25878         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
25879         (tstsi_t_and_not): Delete.
25880         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
25881         Convert to insn_and_split.
25882         (unnamed split, tstsi_t_zero_extract_xor,
25883         tstsi_t_zero_extract_subreg_xor_little,
25884         tstsi_t_zero_extract_subreg_xor_big): Delete.
25885         (*tstsi_t_shift_mask): New insn_and_split.
25886         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
25887         to recombine with surrounding insns when splitting.
25888         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
25889         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
25890         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
25891         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
25892         (*cbranch_div0s: Delete.
25893         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
25894         Try to recombine with surrounding insns when splitting.  Add operand
25895         order variants.
25896         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
25897         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
25898         *addc_r_r_msb, *addc_2r_msb): Delete.
25899         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
25900         order variant.
25901         (*addc_negreg_t): New insn_and_split.
25902         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
25903         Try to recombine with surrounding insns when splitting.
25904         Add operand order variants.
25905         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
25906         insn_and_split patterns.
25907         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
25908         surrounding insns when splitting.
25909         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
25910         (*rotcl): Likewise.  Add zero_extract variant.
25911         (*ashrsi2_31): New insn_and_split.
25912         (*negc): Convert to insn_and_split.  Use treg_set_expr.
25913         (*zero_extend<mode>si2_disp_mem): Update comment.
25914         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
25915         condition.
25916         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
25917         with surrounding insns when splitting.
25918         (any_treg_expr_to_reg): New insn_and_split.
25919         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
25920         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
25921         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
25922         *zero_extract_2): New single bit zero extract patterns.
25923         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
25924         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
25925         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
25926         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
25927         set destination.
25928         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
25929         register_operand for set source.
25931 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
25933         * i386.opt (prefetch_sse): New targetsave.
25934         * i386.c (ix86_function_specific_save): Save prefetch_sse.
25935         (ix86_function_specific_restore): Restore prefetch_sse and initialize
25936         ix86_cost/ix86_tune_cost.
25938 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
25940         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
25941         Support the JIT by using 0 as the language type.
25943 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
25945         PR target/64317
25946         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
25947         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
25948         (mark_regno_live, process_bb_lives): Pass new parameter value to
25949         make_hard_regno_born.
25951 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
25953         PR rtl-optimization/63637
25954         PR rtl-optimization/60663
25955         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
25956         if elt->cost is MAX_COST for ASM_OPERANDS.
25957         (find_sets_in_insn): Fix up comment typo.
25958         (cse_insn): Don't set src_volatile for all non-volatile
25959         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
25960         or with "memory" clobber.  Set elt->cost to MAX_COST
25961         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
25962         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
25964 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
25966         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
25967         alternative 1.
25969 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
25971         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
25972         libgcc/config/i386/elf-lib.h.
25974 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
25976         PR driver/64737
25977         * gcc.c (print_configuration): Don't print a blank line at the end
25978         here...
25979         (run_attempt): ... but here unstead.
25981         PR middle-end/64734
25982         * omp-low.c (scan_sharing_clauses): Don't ignore
25983         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
25984         on target data/update constructs.
25986 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25988         PR target/50928
25989         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
25990         (DEBUG_RELOAD): Removed define.
25991         (m32c_limit_reload_class): Enable traces with if DEBUG0.
25992         (m32c_function_arg): Added a type cast.
25993         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
25994         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
25995         * config/m32c/bitops.md (andqi3_16): Likewise.
25996         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
25997         (push_a01_l): Likewise.
25999 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
26001         PR jit/64721
26002         * main.c (main): Construct toplev instances with init_signals=true.
26003         * toplev.c (general_init): Add param "init_signals", and use it to
26004         conditionalize the calls to signal and host_hooks.extra_signals.
26005         (toplev::toplev): Add param "init_signals".
26006         (toplev::main): When invoking general_init, pass m_init_signals
26007         to control whether signal-handlers are installed.
26008         * toplev.h (toplev::toplev): Add param "init_signals".
26009         (toplev::m_init_signals): New field.
26011 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
26013         PR jit/64722
26014         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
26015         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
26016         latter may be affected by the former (e.g. on i686).
26018 2015-01-23  Martin Liska  <mliska@suse.cz>
26020         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
26021         false positive during profiledbootstrap.
26023 2015-01-23  Tom de Vries  <tom@codesourcery.com>
26025         PR libgomp/64672
26026         * lto-opts.c (lto_write_options): Output non-explicit conservative
26027         -fno-openacc.
26028         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
26029         (append_compiler_options): Pass -fopenacc through.
26031 2015-01-23  Tom de Vries  <tom@codesourcery.com>
26033         PR libgomp/64707
26034         * lto-opts.c (lto_write_options): Output non-explicit conservative
26035         -fno-openmp.
26036         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
26037         (append_compiler_options): Pass -fopenmp through.
26039 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
26041         PR debug/64511
26042         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
26043         GTY markup.
26045         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
26046         * diagnostic.def (DK_ICE_NOBT): New kind.
26047         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
26048         like DK_ICE, but never print backtrace.
26049         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
26050         (internal_error_no_backtrace): New function.
26051         * gcc.c (execute): Use internal_error_no_backtrace instead of
26052         internal_error.
26054 2015-01-22  Jeff Law  <law@redhat.com>
26056         PR target/52076
26057         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
26058         improve code density for small immediate to memory case.
26059         (insv): Better handle bitfield assignments when the field is
26060         being set to all ones.
26061         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
26062         operand predicate.
26064 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26065             Jakub Jelinek  <jakub@redhat.com>
26067         PR middle-end/64729
26068         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
26069         for !TARGET_LIBC_PROVIDES_SSP version and
26070         -fstack-protector-{all,strong,explicit} otherwise.
26071         * config/freebsd.h (LINK_SSP_SPEC): Handle
26072         -fstack-protector-{strong,explicit}.
26074 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
26075             H.J. Lu  <hongjiu.lu@intel.com>
26077         PR ipa/64694
26078         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
26079         heap.
26081 2015-01-22  Wei Mi  <wmi@google.com>
26083         PR rtl-optimization/64557
26084         * dse.c (record_store): Call get_addr for mem_addr.
26085         (check_mem_read_rtx): Likewise.
26087 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
26089         * fold-const.c (const_binop): Add early return for non-tcc_binary.
26091 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
26093         * toplev.c (init_local_tick): Process the failure when read
26094         fails for random_seed.
26096         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
26097         'pretty_name' to avoid memory overflow.
26099 2015-01-22  Richard Biener  <rguenther@suse.de>
26101         PR middle-end/64728
26102         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
26103         abnormal coalescing on undefined SSA names.
26105 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
26107         PR target/64688
26108         PR target/64477
26109         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
26110         for alternative 3.
26111         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
26113 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
26115         PR middle-end/63325
26116         * fold-const.c (fold_checksum_tree): Don't include value of
26117         expr->decl_with_vis.symtab_node in the checksum.
26119 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26121         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
26123 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
26125         PR driver/64690
26126         * gcc.c (insert_comments): New function.
26127         (try_generate_repro): Call it.
26128         (append_text): Removed.
26130 2015-01-22  Richard Biener  <rguenther@suse.de>
26132         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
26133         with IL incompatible options.  Properly honor user optimize
26134         attributes.
26136 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
26138         PR rtl-optimization/64682
26139         * combine.c (distribute_notes): When moving a death note for
26140         a register that is set in the new I2, make sure to put it
26141         before that new I2.
26143 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
26145         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
26146         not TARGET_DEFAULT.
26148 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
26150         PR debug/64511
26151         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
26152         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
26153         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
26155         PR sanitizer/64706
26156         * doc/invoke.texi (-fsanitize=vptr): Document.
26158         PR rtl-optimization/62078
26159         * dse.c: Include cfgcleanup.h.
26160         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
26161         anything call purge_all_dead_edges and cleanup_cfg at the end
26162         of the pass.
26164 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
26166         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
26167         edges.
26169 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26171         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
26172         decl attribute.
26174 2015-01-21  David Sherwood  <david.sherwood@arm.com>
26175             Tejas Belagod <Tejas.Belagod@arm.com>
26177         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
26178         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
26179         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
26180         Removed.
26182 2015-01-21  David Sherwood  <david.sherwood@arm.com>
26183             Tejas Belagod <Tejas.Belagod@arm.com>
26185         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
26186         (aarch64_reverse_mask): New decls.
26187         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
26188         (insn_count): New mode_attr.
26189         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
26190         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
26191         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
26192         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
26193         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
26194         (aarch64_simd_st4): New patterns.
26195         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
26196         (aarch64_reverse_mask): New functions.
26198 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
26200         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
26201         Declare.
26202         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
26203         addressing modes for BE.
26204         (aarch64_print_operand): Add 'R' specifier.
26205         (aarch64_simd_disambiguate_copy): Delete.
26206         (aarch64_simd_emit_reg_reg_move): New function.
26207         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
26208         in define_splits for structural moves.
26209         (mov<mode>): Use less restrictive predicates.
26210         (*aarch64_mov<mode>): Simplify and only allow for LE.
26211         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
26213 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
26215         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
26217 2015-01-21  Richard Henderson  <rth@redhat.com>
26219         PR target/64669
26220         * ccmp.c (used_in_cond_stmt_p): Remove.
26221         (expand_ccmp_expr): Don't use it.
26223 2015-01-21  Nick Clifton  <nickc@redhat.com>
26225         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
26226         PARALLELs.
26228 2015-01-21  Richard Biener  <rguenther@suse.de>
26230         PR middle-end/64313
26231         * tree-core.h (builtin_info, builtin_info_type): Turn from
26232         an object with two arrays into an array of an object with
26233         decl and two flags, implicit_p and declared_p.
26234         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
26235         set_builtin_decl, set_builtin_decl_implicit_p,
26236         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
26237         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
26238         * builtins.c (builtin_info): Adjust.
26239         * gimplify.c (gimplify_addr_expr): References to builtins
26240         that have been declared by the user makes them eligible for
26241         use by the compiler.  Call set_builtin_decl_implicit_p on them.
26243 2015-01-20  Jeff Law  <law@redhat.com>
26245         PR target/59946
26246         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
26247         allow pc-relative addresses in operand predicates or constraints.
26249 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
26251         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
26252         neon on aarch32 processors for stringops.
26254 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26256         PR ipa/63576
26257         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
26259 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26261         PR lto/45375
26262         * ipa-inline.c: Include lto-streamer.h
26263         (report_inline_failed_reason): Output source file differences and
26264         flags on optimization/target node mismatch.
26265         (can_inline_edge_p): Consider caller to be the outer inline function;
26266         be less restrictive about matching opimize and optimize_size attributes.
26267         (inline_account_function_p): Break out from ...
26268         (inline_small_functions): ... here.
26269         * ipa-inline-transform.c (clone_inlined_nodes): Use
26270         inline_account_function_p.
26271         (inline_call): Use optimize attribution; use inline_account_function_p.
26272         (inline_transform): Use opt_for_fn.
26273         * ipa-inline.h (inline_account_function_p): Declare.
26275 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
26277         PR debug/64663
26278         * dwarf2out.c (decl_piece_node): Don't put bitsize into
26279         mode if bitsize <= 0.
26280         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
26281         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
26282         sizes and positions.
26284 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
26286         * config/nios2/nios2.c (nios2_asm_file_end): Implement
26287         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
26288         needed.
26289         (TARGET_ASM_FILE_END): Define.
26291 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26293         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
26294         (struct tune_params): Use the enum.
26295         * arm.c (arm_*_tune): Update.
26296         (arm_option_override): Update.
26298 2015-01-20  Richard Biener  <rguenther@suse.de>
26300         PR ipa/64684
26301         * ipa-reference.c (add_static_var): Inline ...
26302         (analyze_function): ... here after splitting out from ...
26303         (is_proper_for_analysis): ... this.
26305 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
26307         PR target/64149
26308         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
26309         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
26310         replace the conditional with it's true branch.
26311         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
26312         (arm_lra_p): Remove.
26314 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
26316         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
26318 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26320         * config/tilegx/mul-tables.c: Move symtab.h include after
26321         coretypes.h include.
26322         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
26323         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
26324         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
26325         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
26326         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26328 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
26330         PR bootstrap/64676
26331         Revert:
26332         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
26334         PR rtl-optimization/64081
26335         * loop-iv.c (def_pred_latch_p): New function.
26336         (latch_dominating_def): Allow specific cases with non-single
26337         definitions.
26338         (iv_get_reaching_def): Likewise.
26339         (check_complex_exit_p): New function.
26340         (check_simple_exit): Use check_complex_exit_p to allow certain cases
26341         with exits not executing on any iteration.
26343 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26345         PR lto/45375
26346         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
26347         to set branch cost.
26349 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26351         PR lto/45375
26352         * i386.c (gate): Check flag_expensive_optimizations and
26353         optimize_size.
26354         (ix86_option_override_internal): Drop optimize_size condition
26355         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
26356         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
26357         MASK_PREFER_AVX128.
26358         (ix86_avx256_split_vector_move_misalign,
26359         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
26360         * sse.md (all uses of TARGET_PREFER_AVX128): Add
26361         optimize_insn_for_speed_p check.
26363 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
26365         * config/mips/mips.h (FP_ASM_SPEC): New define.
26366         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
26367         instead.
26369 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
26371         PR target/53988
26372         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
26373         nullptr for insn when reaching the first insn.
26374         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
26375         (sh_insn_operands_modified_between_p): Add nullptr check.
26376         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
26377         sign extending mem load if the insn contains any UNSPEC or
26378         UNSPEC_VOLATILE.
26380 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26382         * params.def (inline-unit-growth): Drop to 15%.
26383         * invoke.texi (inline-unit-growth): Document change.
26385 2015-01-19  Martin Liska  <mliska@suse.cz>
26387         PR ipa/64668
26388         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
26389         function for second argument of OBJ_TYPE_REF.
26391 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26393         PR ipa/64218
26394         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
26395         whether function is an alias.
26397 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
26399         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
26400         cases.
26402 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
26404         PR rtl-optimization/64671
26405         * lra-remat.c (operand_to_remat): Don't consider jump and call
26406         insns.
26408 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
26410         PR target/59828
26411         * config/rs6000/default64.h: Include rs6000-cpus.def.
26412         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
26413         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
26414         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
26415         and POWER8.
26416         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
26417         POWER8.
26418         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
26419         pseudo-op to specify assembler dialect.
26421 2015-01-19  Martin Liska  <mliska@suse.cz>
26423         PR ipa/64664
26424         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
26425         Handle safe potentially removed nodes during filtering.
26427 2015-01-19  Martin Liska  <mliska@suse.cz>
26429         * doc/extend.texi (no_icf): Add new attribute description.
26430         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
26431         where the pass attempts to merge a function with no_icf attribute.
26433 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26435         PR target/64532
26436         * doc/md.texi (ARM Options): Document register constraints.
26438 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
26439             Andrew Pinski  <apinski@cavium.com>
26441         PR target/64304
26442         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
26443         (ashl<mode>3): Don't expand if operands[2] is not constant.
26445 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26447         PR target/64448
26448         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
26449         Match xor-and-xor RTL pattern.
26451 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
26453         PR rtl-optimization/64081
26454         * loop-iv.c (def_pred_latch_p): New function.
26455         (latch_dominating_def): Allow specific cases with non-single
26456         definitions.
26457         (iv_get_reaching_def): Likewise.
26458         (check_complex_exit_p): New function.
26459         (check_simple_exit): Use check_complex_exit_p to allow certain cases
26460         with exits not executing on any iteration.
26462 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
26464         * common.opt (fgraphite): Fix a typo.
26466 2015-01-19  Felix Yang  <felix.yang@huawei.com>
26468         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
26469         pattern.
26470         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
26471         uminp, smax_nanp, smin_nanp): New builtins.
26472         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
26473         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
26474         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
26475         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
26476         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
26477         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
26478         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
26479         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
26480         vpminnms_f32): Rewrite using builtin functions.
26482 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
26484         PR libgomp/64625
26485         * omp-low.c (offload_symbol_decl): Remove variable.
26486         (get_offload_symbol_decl): Remove function.
26487         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
26488         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
26489         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
26490         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
26491         BUILT_IN_GOACC_UPDATE don't pass it at all.
26493 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
26495         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
26496         callers.
26498 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
26500         * ipa-chkp.c (chkp_produce_thunks): Add early param
26501         to split thunks production into two passes.  Keep
26502         'always_inline' function bodies after the first pass.
26503         (pass_data_ipa_chkp_early_produce_thunks): New.
26504         (pass_ipa_chkp_early_produce_thunks): New.
26505         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
26506         chkp_produce_thunks signature.
26507         (make_pass_ipa_chkp_early_produce_thunks): New.
26508         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
26509         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
26510         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
26512 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
26514         * cgraph.c (cgraph_node::dump): Dump profile flags.
26516 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
26518         PR target/64652
26519         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
26520         reg appear first in the parallel.
26522 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
26524         * ipa-reference.c (set_reference_optimization_summary,
26525         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
26526         disabled.
26527         (ignore_module_statics): New static var.
26528         (propagate_bits): If ipa-reference is disabled, do not look into local
26529         properties.
26530         (analyze_function): Disable analysis when ipa_reference is disabled.
26531         (generate_summary): Do not dump when reference is disabled;
26532         collect vars accessed from functions with ipa-reference disabled.
26533         (get_read_write_all_from_node): When ipa-reference is disabled, use the
26534         node flags.
26535         (gate): Enable for LTO.
26536         (ignore_edge_p): New function.
26537         (propagate): Skip functions w/o ipa-reference analysis.
26538         * optc-save-gen.awk: Handle optimize_debug correctly.
26539         * opth-gen.awk: Likewise.
26540         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
26541         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
26542         fira-share-save-slots, fira-share-spill-slots,
26543         fmodulo-sched-allow-regmoves, fpartial-inlining,
26544         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
26545         ftracer, ftree-parallelize-loops, fassociative-math,
26546         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
26547         Optimization
26548         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
26549         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
26550         Optimization.
26551         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
26552         Fix for IPA.
26554 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
26556         PR ipa/64378
26557         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
26558         flag correctly.
26559         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
26561 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
26563         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
26564         Remove duplicate option listings.
26566 2015-01-18  Felix Yang  <felix.yang@huawei.com>
26568         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
26569         (autofdo_source_profile::get_callsite_total_count,
26570         function_instance::get_function_instance_by_decl,
26571         string_table::get_index, string_table::get_index_by_decl,
26572         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
26573         Fix comment typos. Reformatting and minor code rearrangement.
26575 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
26577         * config/rs6000/rs6000.md (probe_stack): Delete.
26578         (probe_stack_address): New.
26580 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
26582         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
26583         to test for 32-bit ABIs, not !TARGET_POWERPC64.
26585 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
26587         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
26588         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
26589         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
26590         snafu.
26591         (rs6000_libcall_value): Use the new function.
26593 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
26595         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
26597 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
26599         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
26600         implement a more precise life analysis for it during backward scan.
26602 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
26604         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
26606 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
26608         PR rtl-optimization/52773
26609         * calls.c (emit_library_call_value): When pushing arguments use
26610         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
26611         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
26612         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
26614 2015-01-17  Jeff Law  <law@redhat.com>
26616         PR rtl-optimization/32790
26617         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
26618         not ZERO_EXTEND in SET_DESTs.
26620 2015-01-17  Alan Modra  <amodra@gmail.com>
26622         * cprop.c (do_local_cprop): Revert last change.
26624 2015-01-16  DJ Delorie  <dj@redhat.com>
26625             Nick Clifton  <nickc@redhat.com>
26627         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
26628         (addhi3_real): Likewise.  Fix [HL+0] syntax.
26629         (subqi3_real): Likewise.
26630         (subhi3_real): Likewise.
26631         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
26632         (cbranchhi4_real): Likewise.
26633         (cbranchhi4_real_inverted): Likewise.
26634         (cbranchsi4_real_lt): Likewise.
26635         (cbranchsi4_real_ge): Likewise.
26636         (cbranchsi4_real_ge): Likewise.
26637         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
26638         (sub<mode>3_virt): Likewise.
26639         (cbranchqi4_virt): Likewise.
26640         (cbranchhi4_virt): Likewise.
26641         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
26642         always use '[reg+imm]' even when imm is zero.
26643         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
26644         (rl78_general_operand): New.
26645         (rl78_nonimmediate_operand): New.
26646         (rl78_nonfar_operand): Use them.
26647         (rl78_nonfar_nonimm_operand): Likewise.
26648         (rl78_stack_based_mem): Fix.
26649         * config/rl78/constraints.md (Ibqi): New.
26650         (IBqi): New.
26651         (Wsa): New.
26652         (Wsf): New.
26653         (Cs1): Fix.
26654         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
26655         (iorqi3): Likewise.
26656         (xorqi3): Likewise.
26657         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
26659         * config/rl78/constrains (Qs8): New constraint.
26660         * config/rl78/rl78.c (rl78_flags_already_set): New function.
26661         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
26662         * config/rl78/rl78-real.md (update_Z): New attribute.
26663         Update patterns to set it.
26664         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
26665         shorter compare and branch sequence can be used.
26666         (cbranchhi4_real): Likewise.
26667         (cbranchhi4_real_inverted): Likewise.
26669         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
26670         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
26671         address space.
26672         * config/rl78/rl78.c (rl78_get_name_encoding): New.
26673         (rl78_option_override): Allow -mes0 only if C.
26674         (characterize_address): Support subregs of symbol_refs.
26675         (rl78_addr_space_address_mode): Move.  Add __near.
26676         (rl78_far_p): Likewise.
26677         (rl78_addr_space_pointer_mode): Likewise.
26678         (rl78_as_legitimate_address): Likewise.
26679         (rl78_addr_space_subset_p): Likewise.
26680         (rl78_addr_space_convert): Likewise.
26681         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
26682         symbols with -mes0.
26683         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
26684         addressing.
26685         (rl78_alloc_physical_registers_op1): Change logic to prefer
26686         symbol[BC] addressing.
26687         (frodata_section): New.
26688         (rl78_asm_init_sections): Initialize it.
26689         (rl78_select_section): Put __far readonly symbols in .frodata.
26690         (rl78_make_type_far): New.
26691         (rl78_insert_attributes): Force all readonly symbols to be
26692         __far when -mes0.
26693         (rl78_asm_out_integer): New.
26694         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
26695         * config/rl78/rl78.opt (-mes0): New.
26697         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
26698         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
26699         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
26700         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
26701         (rl78_saddr_p): New.
26702         (rl78_output_aligned_common): New.
26703         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
26704         (rl78_handle_saddr_attribute): New.
26705         (rl78_handle_naked_attribute): New.
26706         (rl78_attribute_table): Add saddr.
26707         (rl78_print_operand_1): Don't print '!' on saddr operands.
26708         (rl78_print_operand_1): Strip encodings.
26709         (rl78_sfr_p): New.
26710         (rl78_strip_name_encoding): New.
26711         (rl78_attrlist_to_encoding): New.
26712         (rl78_encode_section_info): New.
26713         (rl78_asm_init_sections): New.
26714         (rl78_select_section): New.
26715         (rl78_output_labelref): New.
26716         (rl78_output_aligned_common): New.
26717         (rl78_asm_out_integer): New.
26718         (rl78_asm_ctor_dtor): New.
26719         (rl78_asm_constructor): New.
26720         (rl78_asm_destructor): New.
26722         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
26723         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
26724         (transcode_memory_rtx): Update.
26725         (rl78_expand_epilogue): Use A_REG instead of 0.
26727 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26729         * config/arm/arm-protos.h (struct tune_params): New field
26730         sched_autopref_queue_depth.
26731         * config/arm/arm.c (sched-int.h): Include header.
26732         (arm_first_cycle_multipass_dfa_lookahead_guard,)
26733         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
26734         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
26735         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
26736         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
26737         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
26738         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
26739         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
26740         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
26741         * config/arm/t-arm (arm.o): Update.
26742         * haifa-sched.c (update_insn_after_change): Update.
26743         (rank_for_schedule): Use auto-prefetcher model, if requested.
26744         (autopref_multipass_init): New static function.
26745         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
26746         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
26747         variable for debug dumps.
26748         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
26749         (autopref_multipass_dfa_lookahead_guard): New global function that
26750         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
26751         (init_h_i_d): Update.
26752         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
26753         * sched-int.h (enum autopref_multipass_data_status): New const enum.
26754         (autopref_multipass_data_): Structure for auto-prefetcher data.
26755         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
26756         (struct _haifa_insn_data:autopref_multipass_data): New field.
26757         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
26758         (autopref_multipass_dfa_lookahead_guard): Declare.
26760 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26762         * rtlanal.c (get_base_term): Handle SCRATCH.
26764 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26766         * config/aarch64/aarch64.c
26767         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
26768         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26769         * config/arm/arm.c
26770         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
26771         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
26773 2015-01-17  Alan Modra  <amodra@gmail.com>
26775         * cprop.c (do_local_cprop): Disallow replacement of fixed
26776         hard registers.
26778 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26780         PR target/62066
26781         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
26782         early return 0.
26784 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26786         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
26787         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
26789 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26791         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
26792         * config/arm/thumb1.md: ... Here.
26794 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
26796         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
26797         TImode for TARGET_32BIT.
26799 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
26801         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
26802         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
26803         as ...
26804         (rs6000_abi_word_mode): New function.
26806 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
26808         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
26809         instead of UNITS_PER_WORD to describe the size of stack slots.
26811 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
26813         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
26814         as rs6000_promote_function_mode.  Move comment to there.
26815         (rs6000_promote_function_mode): New function.
26817 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
26819         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
26820         -mpowerpc64 is active.
26822 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
26824         PR middle-end/64353
26825         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
26826         virtuals on start.
26828 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
26830         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
26831         introduced in revision 219724.
26833 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26834             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26836         PR target/64263
26837         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
26838         destination is not a GP reg.
26839         (*movdi_aarch64): Likewise.
26841 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
26843         PR target/64623
26844         * config/rs6000/default64.h: Revert ISA change.
26846 2015-01-16  Richard Biener  <rguenther@suse.de>
26848         PR middle-end/64614
26849         * tree-ssa-uninit.c: Include tree-cfg.h.
26850         (MAX_SWITCH_CASES): New define.
26851         (convert_control_dep_chain_into_preds): Handle switch statements.
26852         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
26853         (normalize_one_pred_1): Do not split bit-manipulations.
26854         Record (x & CST).
26856 2015-01-16  Richard Biener  <rguenther@suse.de>
26858         PR tree-optimization/64568
26859         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
26860         complex load rewriting for TARGET_MEM_REFs.
26862 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
26864         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
26866 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
26868         PR target/64149
26869         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
26870         variable.
26871         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
26872         (aarch64_lra_p): Remove.
26874 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
26876         PR target/64363
26877         * ipa-chkp.h (chkp_instrumentable_p): New.
26878         * ipa-chkp.c: Include tree-inline.h.
26879         (chkp_instrumentable_p): New.
26880         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
26881         Fix processing of not instrumentable functions.
26882         (chkp_versioning): Use chkp_instrumentable_p. Warn about
26883         not instrumentable functions.
26884         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
26885         chkp_instrumentable_p.
26886         * tree-inline.h (copy_forbidden): New.
26887         * tree-inline.c (copy_forbidden): Not static anymore.
26889 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26891         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
26892         ptr1, ptr2 unused.
26894 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
26896         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
26897         type OP_OUT to OP_INOUT.
26899 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
26901         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
26902         (high x) y) to y if x and y have the same base.
26904 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
26906         * config/arm/cortex-a57.md: New.
26907         * config/aarch64/aarch64.md: Include it.
26908         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
26909         * config/aarch64/aarch64-tune.md: Regenerate.
26911 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
26913         PR target/64015
26914         * ccmp.c (expand_ccmp_next): New function.
26915         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
26916         and compare insn sequence.
26917         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
26918         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
26919         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
26920         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
26921         (*ccmp_ior): Changed to ccmp_ior<mode>.
26922         (cmp<mode>): New pattern.
26923         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
26924         parameters.
26925         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
26927 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
26929         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
26930         _mm256_bsrli_epi128): New.
26931         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
26933 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
26935         * expmed.c (store_bit_field_using_insv): Improve warning message.
26936         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
26938 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
26940         PR rtl-optimization/64011
26941         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
26942         there is partial overflow.
26944 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26946         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
26947         prototype.
26948         (nds32_expand_epilogue_v3pop): Likewise.
26949         * config/nds32/nds32.md (sibcall): Define this for sibling call
26950         optimization.
26951         (sibcall_register): Likewise.
26952         (sibcall_immediate): Likewise.
26953         (sibcall_value): Likewise.
26954         (sibcall_value_register): Likewise.
26955         (sibcall_value_immediate): Likewise.
26956         (sibcall_epilogue): Likewise.
26957         (epilogue): Pass false to indicate this is not a sibcall epilogue.
26958         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
26959         (nds32_expand_epilogue_v3pop): Likewise.
26961 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26963         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
26964         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
26965         (return_internal): New.
26966         (return): Define this named pattern.
26967         (simple_return): Define this named pattern.
26968         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
26969         pattern instead of unspec_volatile_func_return.
26970         (nds32_expand_epilogue_v3pop): Likewise.
26971         (nds32_can_use_return_insn): New function.
26973 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26975         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
26976         * config/nds32/nds32.md (pop25return): New.
26977         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
26978         pop25return pattern.
26980 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26982         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
26983         -mforbid-fp-as-gp, and -mex9 options.
26985 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26987         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
26988         remove -mgp-direct option.
26990 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
26992         * doc/invoke.texi (--param early-inlining-insns): Update default value.
26993         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
26995 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
26997         * ipa-inline.c (inline_small_functions): Work around hints
26998         cache issue.
27000 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
27002         PR target/59710
27003         * doc/invoke.texi (Option Summary): Document new Nios II
27004         -mgpopt= syntax.
27005         (Nios II Options): Likewise.
27006         * config/nios2/nios2.opt: Add -mgpopt= option support.
27007         Modify existing -mgpopt and -mno-gpopt options to be aliases.
27008         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
27009         * config/nios2/nios2.c (nios2_option_override): Adjust
27010         -mgpopt defaulting.
27011         (nios2_in_small_data_p): Return true for explicit small data
27012         sections even with -G0.
27013         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
27014         option choices.
27016 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
27018         PR ipa/64612
27019         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
27020         of comdat locals.
27021         (inline_call): Fix removal of aliases.
27023 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
27025         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
27026         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
27027         * opts.c (common_handle_option): Add -fsanitize=vptr.
27028         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
27029         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
27030         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
27031         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
27032         (ubsan_expand_vptr_ifn): New prototype.
27033         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
27034         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
27035         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
27036         expand_LOOP_VECTORIZED): Make argument nameless, remove
27037         ATTRIBUTE_UNUSED.
27038         (expand_UBSAN_VPTR): New function.
27039         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
27040         in fn spec.
27041         (UBSAN_VPTR): New internal function.
27042         * sanopt.c (tree_map_traits): Renamed to ...
27043         (sanopt_tree_map_traits): ... this.
27044         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
27045         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
27046         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
27047         (maybe_optimize_ubsan_vptr_ifn): New function.
27048         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
27049         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
27050         -fsanitize=vptr.
27051         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
27052         internal calls like pure functions for aliasing, even when they
27053         have other side-effects that prevent making them ECF_PURE.
27054         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
27055         (ubsan_expand_vptr_ifn): New function.
27057 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
27059         PR rtl-optimization/64110
27060         * stmt.c (parse_output_constraint): Process '^' and '$'.
27061         (parse_input_constraint): Ditto.
27062         * lra-constraints.c (process_alt_operands): Process the new
27063         constraints.
27064         * ira-costs.c (record_reg_classes): Process the new constraint
27065         '^'.
27066         * genoutput.c (indep_constraints): Add '^' and '$'.
27067         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
27068         * doc/md.texi: Add description of the new constraints.
27070 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
27071             Bernd Schmidt  <bernds@codesourcery.com>
27072             Cesar Philippidis  <cesar@codesourcery.com>
27073             James Norris  <jnorris@codesourcery.com>
27074             Tom de Vries  <tom@codesourcery.com>
27075             Ilmir Usmanov  <i.usmanov@samsung.com>
27076             Dmitry Bocharnikov  <dmitry.b@samsung.com>
27077             Evgeny Gavrin  <e.gavrin@samsung.com>
27078             Jakub Jelinek  <jakub@redhat.com>
27080         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
27081         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
27082         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
27083         New function types.
27084         * builtins.c: Include "gomp-constants.h".
27085         (expand_builtin_acc_on_device): New function.
27086         (expand_builtin, is_inexpensive_builtin): Handle
27087         BUILT_IN_ACC_ON_DEVICE.
27088         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
27089         New macros.
27090         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
27091         flag_openmp.
27092         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
27093         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
27094         i386/intelmic-offload.h.
27095         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
27096         to libgomp and its dependencies.
27097         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
27098         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27099         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27100         * config/ia64/hpux.h (LIB_SPEC): Likewise.
27101         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27102         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27103         * doc/generic.texi: Update for OpenACC changes.
27104         * doc/gimple.texi: Likewise.
27105         * doc/invoke.texi: Likewise.
27106         * doc/sourcebuild.texi: Likewise.
27107         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
27108         GF_OMP_FOR_KIND_OACC_LOOP.
27109         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
27110         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
27111         GF_OMP_TARGET_KIND_OACC_UPDATE,
27112         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27113         Dump more data.
27114         * gimple.c: Update comments for OpenACC changes.
27115         * gimple.def: Likewise.
27116         * gimple.h: Likewise.
27117         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
27118         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27119         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
27120         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
27121         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
27122         appropriate place.
27123         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
27124         * gimplify.c: Include "gomp-constants.h".
27125         Update comments for OpenACC changes.
27126         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
27127         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
27128         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27129         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
27130         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27131         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27132         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
27133         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27134         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
27135         OMP_CLAUSE_SEQ.
27136         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
27137         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
27138         OMP_CLAUSE_SET_MAP_KIND.
27139         (gimplify_oacc_cache): New function.
27140         (gimplify_omp_for): Handle OACC_LOOP.
27141         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
27142         OACC_DATA.
27143         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
27144         OACC_EXIT_DATA, OACC_UPDATE.
27145         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
27146         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
27147         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
27148         (gimplify_body): Consider flag_openacc next to flag_openmp.
27149         * lto-streamer-out.c: Include "gomp-constants.h".
27150         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
27151         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
27152         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
27153         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
27154         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
27155         (BUILT_IN_ACC_ON_DEVICE): New builtins.
27156         * omp-low.c: Include "gomp-constants.h".
27157         Update comments for OpenACC changes.
27158         (struct omp_context): Add reduction_map, gwv_below, gwv_this
27159         members.
27160         (extract_omp_for_data, use_pointer_for_field, install_var_field)
27161         (new_omp_context, delete_omp_context, scan_sharing_clauses)
27162         (create_omp_child_function, scan_omp_for, scan_omp_target)
27163         (check_omp_nesting_restrictions, lower_reduction_clauses)
27164         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
27165         Update for OpenACC changes.
27166         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
27167         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
27168         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
27169         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
27170         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
27171         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
27172         OMP_CLAUSE_MAP_*.
27173         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
27174         Handle GF_OMP_FOR_KIND_OACC_LOOP.
27175         (expand_omp_target, lower_omp_target): Handle
27176         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
27177         GF_OMP_TARGET_KIND_OACC_UPDATE,
27178         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
27179         GF_OMP_TARGET_KIND_OACC_DATA.
27180         (pass_expand_omp::execute, execute_lower_omp)
27181         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
27182         flag_openmp.
27183         (offload_symbol_decl): New variable.
27184         (oacc_get_reduction_array_id, oacc_max_threads)
27185         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
27186         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
27187         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
27188         (oacc_gimple_assign, oacc_initialize_reduction_data)
27189         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
27190         functions.
27191         (is_targetreg_ctx): Remove function.
27192         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
27193         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
27194         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
27195         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
27196         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
27197         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
27198         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
27199         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
27200         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
27201         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
27202         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
27203         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
27204         * tree-core.h: Update comments for OpenACC changes.
27205         (enum omp_clause_map_kind): Remove.
27206         (struct tree_omp_clause): Change type of map_kind member from enum
27207         omp_clause_map_kind to unsigned char.
27208         * tree-inline.c: Update comments for OpenACC changes.
27209         * tree-nested.c: Likewise.  Include "gomp-constants.h".
27210         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
27211         (convert_tramp_reference_stmt, convert_gimple_call): Update for
27212         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
27213         OMP_CLAUSE_SET_MAP_KIND.
27214         * tree-pretty-print.c: Include "gomp-constants.h".
27215         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
27216         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
27217         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
27218         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
27219         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
27220         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
27221         instead of OMP_CLAUSE_MAP_*.
27222         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
27223         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
27224         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
27225         * tree-streamer-in.c: Include "gomp-constants.h".
27226         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
27227         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
27228         * tree-streamer-out.c: Include "gomp-constants.h".
27229         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
27230         OMP_CLAUSE_MAP_*.
27231         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
27232         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
27233         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
27234         * tree.c (omp_clause_num_ops): Update accordingly.
27235         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
27236         Likewise.
27237         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
27238         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
27239         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
27240         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
27241         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
27242         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
27243         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
27244         (OMP_CLAUSE_SET_MAP_KIND): New macro.
27245         * varpool.c (varpool_node::get_create): Consider flag_openacc next
27246         to flag_openmp.
27247         * config/i386/intelmic-offload.h: New file.
27248         * config/nvptx/offload.h: Likewise.
27250 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27252         * explow.h: Remove duplicate contents.
27253         * dojump.h: Likewise.
27255 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
27257         * arm.c (arm_xgene_tune): Add default initializer for instruction
27258         fusion.
27260 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
27262         PR ipa/64068
27263         PR ipa/64559
27264         * ipa.c (symbol_table::remove_unreachable_nodes):
27265         Do not put abstract origins into boundary.
27267 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
27269         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
27270         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
27272 2015-01-15  Steve Ellcey  <sellcey@mips.com>
27274         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
27275         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
27276         builtins.def, and chkp-builtins.def.
27278 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
27280         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
27281         ISA 2.7 (POWER8).
27283 2015-01-15  Richard Biener  <rguenther@suse.de>
27285         PR tree-optimization/61743
27286         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
27287         information on PHIs for some simple cases.
27289 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27291         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
27292         Include xgene1.md.
27293         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
27294         * config/arm/arm-cores.def (xgene1): New entry.
27295         * config/arm/arm-tables.opt: Regenerate.
27296         * config/arm/arm-tune.md: Regenerate.
27297         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
27299 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
27301         * tree-if-conv.c: Include hash-map.h.
27302         (aggressive_if_conv): New variable.
27303         (fold_build_cond_expr): Add simplification of non-zero condition.
27304         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
27305         destination block is not always executed.
27306         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
27307         than two predecessors if AGGRESSIVE_IF_CONV is true.
27308         (if_convertible_stmt_p): Fix commentary.
27309         (all_preds_critical_p): New function.
27310         (has_pred_critical_p): New function.
27311         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
27312         BB can have more than two predecessors and all incoming edges can be
27313         critical.
27314         (predicate_bbs): Skip predication for loop exit block, use build2_loc
27315         to compute predicate for true edge.
27316         (find_phi_replacement_condition): Delete this function.
27317         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
27318         Allow interchange PHI arguments if EXTENDED is false.
27319         Change check that block containing reduction statement candidate
27320         is predecessor of phi-block since phi may have more than two arguments.
27321         (phi_args_hash_traits): New helper structure.
27322         (struct phi_args_hash_traits): New type.
27323         (phi_args_hash_traits::hash): New function.
27324         (phi_args_hash_traits::equal_keys): New function.
27325         (gen_phi_arg_condition): New function.
27326         (predicate_scalar_phi): Add handling of phi nodes with more than two
27327         arguments, delete COND and TRUE_BB arguments, insert body of
27328         find_phi_replacement_condition to predicate ordinary phi nodes.
27329         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
27330         delete call of find_phi_replacement_condition and invoke
27331         predicate_scalar_phi with two arguments.
27332         (insert_gimplified_predicates): Add assert that non-predicated block
27333         don't have statements to insert.
27334         (ifcvt_split_critical_edges): New function.
27335         (ifcvt_split_def_stmt): Likewise.
27336         (ifcvt_walk_pattern_tree): Likewise.
27337         (stmt_is_root_of_bool_pattern): Likewise.
27338         (ifcvt_repair_bool_pattern): Likewise.
27339         (ifcvt_local_dce): Likewise.
27340         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
27341         is copy of inner or outer loop force_vectorize field, invoke
27342         ifcvt_split_critical_edges, ifcvt_local_dce and
27343         ifcvt_repair_bool_pattern for aggressive if-conversion.
27345 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
27347         * config/aarch64/aarch64.md: Include xgene1.md.
27348         * config/aarch64/xgene1.md: New file.
27350 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
27352         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
27353         xgene1 (APM XGene-1) core definition.
27354         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
27355         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
27356         * doc/invoke.texi: Document -mcpu=xgene1.
27358 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27360         * dojump.h: New header file.
27361         * explow.h: Likewise.
27362         * expr.h: Remove includes.
27363         Move expmed.c prototypes to expmed.h.
27364         Move dojump.c prototypes to dojump.h.
27365         Move alias.c prototypes to alias.h.
27366         Move explow.c prototypes to explow.h.
27367         Move calls.c prototypes to calls.h.
27368         Move emit-rtl.c prototypes to emit-rtl.h.
27369         Move varasm.c prototypes to varasm.h.
27370         Move stmt.c prototypes to stmt.h.
27371         (saved_pending_stack_adjust): Move to dojump.h.
27372         (adjust_address): Move to explow.h.
27373         (adjust_address_nv): Move to emit-rtl.h.
27374         (adjust_bitfield_address): Likewise.
27375         (adjust_bitfield_address_size): Likewise.
27376         (adjust_bitfield_address_nv): Likewise.
27377         (adjust_automodify_address_nv): Likewise.
27378         * explow.c (expr_size): Move to expr.c.
27379         (int_expr_size): Likewise.
27380         (tree_expr_size): Likewise.
27381         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27382         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27383         * genemit.c (main): Generate includes statistics.h, real.h,
27384         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
27385         stmt.h.
27386         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
27387         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
27388         explow.h, emit-rtl.h, stmt.h.
27389         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
27390         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
27391         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
27392         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
27393         emit-rtl.h, varasm.h, stmt.h.
27394         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
27395         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
27396         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
27397         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
27398         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
27399         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
27400         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
27401         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
27402         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
27403         tm.h tree.h varasm.h vec.h wide-int.h.
27404         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27405         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27406         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
27407         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
27408         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
27409         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
27410         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
27411         * loop-iv.c: Likewise.
27412         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
27413         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
27414         statistics.h stmt.h tree.h varasm.h wide-int.h.
27415         * lra-constraints.c: Likewise.
27416         * lra-eliminations.c: Likewise.
27417         * lra-lives.c: Likewise.
27418         * lra-remat.c: Likewise.
27419         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27420         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
27421         statistics.h stmt.h tree.h varasm.h wide-int.h.
27422         * hw-doloop.c: Likewise.
27423         * ira-color.c: Likewise.
27424         * ira-emit.c: Likewise.
27425         * loop-doloop.c: Likewise.
27426         * loop-invariant.c: Likewise.
27427         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27428         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
27429         statistics.h stmt.h tree.h varasm.h wide-int.h.
27430         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
27431         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
27432         statistics.h stmt.h tree.h varasm.h wide-int.h.
27433         * combine-stack-adj.c: Likewise.
27434         * cse.c: Likewise.
27435         * ddg.c: Likewise.
27436         * ifcvt.c: Likewise.
27437         * ira-costs.c: Likewise.
27438         * jump.c: Likewise.
27439         * lra-coalesce.c: Likewise.
27440         * lra-spills.c: Likewise.
27441         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27442         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
27443         stmt.h varasm.h wide-int.h.
27444         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
27445         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27446         varasm.h.
27447         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
27448         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
27449         statistics.h stmt.h varasm.h wide-int.h.
27450         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
27451         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
27452         varasm.h wide-int.h.
27453         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
27454         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27455         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
27456         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
27457         statistics.h stmt.h.
27458         * config/tilepro/tilepro.c: Likewise.
27459         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
27460         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
27461         * config/pdp11/pdp11.c: Likewise.
27462         * config/xtensa/xtensa.c: Likewise.
27463         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
27464         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
27465         varasm.h.
27466         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27467         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27468         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
27469         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27470         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
27471         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
27472         * rtl-chkp.c: Likewise.
27473         * tree-chkp-opt.c: Likewise.
27474         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
27475         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
27476         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
27477         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27478         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27479         statistics.h stmt.h.
27480         * tree-vect-data-refs.c: Likewise.
27481         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
27482         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27483         rtl.h statistics.h stmt.h varasm.h.
27484         * internal-fn.c: Likewise.
27485         * ipa-icf-gimple.c: Likewise.
27486         * lto-section-out.c: Likewise.
27487         * tree-data-ref.c: Likewise.
27488         * tree-nested.c: Likewise.
27489         * tree-outof-ssa.c: Likewise.
27490         * tree-predcom.c: Likewise.
27491         * tree-pretty-print.c: Likewise.
27492         * tree-scalar-evolution.c: Likewise.
27493         * tree-ssa-strlen.c: Likewise.
27494         * tree-vect-loop.c: Likewise.
27495         * tree-vect-patterns.c: Likewise.
27496         * tree-vect-slp.c: Likewise.
27497         * tree-vect-stmts.c: Likewise.
27498         * tsan.c: Likewise.
27499         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27500         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
27501         stmt.h.
27502         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
27503         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27504         statistics.h stmt.h varasm.h.
27505         * loop-unroll.c: Likewise.
27506         * ubsan.c: Likewise.
27507         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
27508         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
27509         stmt.h varasm.h.
27510         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27511         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
27512         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
27513         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27514         statistics.h stmt.h.
27515         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
27516         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
27517         statistics.h stmt.h varasm.h.
27518         * gimple-match-head.c: Likewise.
27519         * lto-cgraph.c: Likewise.
27520         * lto-section-in.c: Likewise.
27521         * lto-streamer-in.c: Likewise.
27522         * lto-streamer-out.c: Likewise.
27523         * tree-affine.c: Likewise.
27524         * tree-cfg.c: Likewise.
27525         * tree-cfgcleanup.c: Likewise.
27526         * tree-if-conv.c: Likewise.
27527         * tree-into-ssa.c: Likewise.
27528         * tree-ssa-alias.c: Likewise.
27529         * tree-ssa-copyrename.c: Likewise.
27530         * tree-ssa-dse.c: Likewise.
27531         * tree-ssa-forwprop.c: Likewise.
27532         * tree-ssa-live.c: Likewise.
27533         * tree-ssa-math-opts.c: Likewise.
27534         * tree-ssa-pre.c: Likewise.
27535         * tree-ssa-sccvn.c: Likewise.
27536         * tree-tailcall.c: Likewise.
27537         * tree-vect-generic.c: Likewise.
27538         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27539         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
27540         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27541         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
27542         * varasm.c: Likewise.
27543         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27544         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
27545         varasm.h.
27546         * init-regs.c: Likewise.
27547         * ira.c: Likewise.
27548         * omp-low.c: Likewise.
27549         * stack-ptr-mod.c: Likewise.
27550         * tree-ssa-reassoc.c: Likewise.
27551         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27552         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
27553         varasm.h.
27554         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27555         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
27556         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27557         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
27558         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27559         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
27560         * tree-ssa-phiopt.c: Likewise.
27561         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27562         fixed-value.h hashtab.h real.h statistics.h stmt.h.
27563         * config/fr30/fr30.c: Likewise.
27564         * config/frv/frv.c: Likewise.
27565         * expr.c: Likewise.
27566         * final.c: Likewise.
27567         * optabs.c: Likewise.
27568         * passes.c: Likewise.
27569         * simplify-rtx.c: Likewise.
27570         * stmt.c: Likewise.
27571         * toplev.c: Likewise.
27572         * var-tracking.c: Likewise.
27573         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27574         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27575         * lower-subreg.c: Likewise.
27576         * postreload-gcse.c: Likewise.
27577         * ree.c: Likewise.
27578         * reginfo.c: Likewise.
27579         * store-motion.c: Likewise.
27580         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27581         fixed-value.h hashtab.h real.h stmt.h varasm.h.
27582         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27583         fixed-value.h hashtab.h statistics.h stmt.h.
27584         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27585         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
27586         * except.c: Likewise.
27587         * explow.c: Likewise.
27588         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27589         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
27590         varasm.h.
27591         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27592         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
27593         * tree-ssa-structalias.c: Likewise.
27594         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27595         fixed-value.h insn-config.h real.h statistics.h.
27596         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27597         fixed-value.h insn-config.h real.h statistics.h stmt.h.
27598         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27599         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27600         * cfgbuild.c: Likewise.
27601         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27602         fixed-value.h real.h rtl.h statistics.h stmt.h.
27603         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27604         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27605         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27606         fixed-value.h real.h statistics.h stmt.h.
27607         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
27608         fixed-value.h real.h statistics.h stmt.h varasm.h.
27609         * cprop.c: Likewise.
27610         * modulo-sched.c: Likewise.
27611         * postreload.c: Likewise.
27612         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27613         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
27614         statistics.h stmt.h varasm.h.
27615         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
27616         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27617         rtl.h statistics.h stmt.h varasm.h.
27618         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
27619         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
27620         varasm.h.
27621         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
27622         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
27623         varasm.h.
27624         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
27625         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
27626         varasm.h.
27627         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
27628         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27629         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27630         function.h real.h statistics.h stmt.h varasm.h.
27631         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27632         insn-config.h real.h statistics.h stmt.h.
27633         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
27634         statistics.h stmt.h.
27635         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
27636         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
27637         statistics.h stmt.h varasm.h.
27638         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
27639         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
27640         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27641         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
27642         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
27643         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
27644         statistics.h stmt.h varasm.h.
27645         * ipa-polymorphic-call.c: Likewise.
27646         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
27647         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27648         statistics.h stmt.h.
27649         * config/c6x/c6x.c: Likewise.
27650         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
27651         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
27652         statistics.h stmt.h varasm.h.
27653         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
27654         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
27655         stmt.h varasm.h.
27656         * ipa-split.c: Likewise.
27657         * tree-eh.c: Likewise.
27658         * tree-ssa-dce.c: Likewise.
27659         * tree-ssa-loop-niter.c: Likewise.
27660         * tree-vrp.c: Likewise.
27661         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
27662         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
27663         stmt.h.
27664         * config/nds32/nds32-fp-as-gp.c: Likewise.
27665         * config/nds32/nds32-intrinsic.c: Likewise.
27666         * config/nds32/nds32-isr.c: Likewise.
27667         * config/nds32/nds32-md-auxiliary.c: Likewise.
27668         * config/nds32/nds32-memory-manipulation.c: Likewise.
27669         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27670         * config/nds32/nds32-predicates.c: Likewise.
27671         * config/nds32/nds32.c: Likewise.
27672         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
27673         fixed-value.h hashtab.h real.h statistics.h.
27674         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
27675         fixed-value.h hashtab.h real.h statistics.h stmt.h.
27676         * config/arm/arm.c: Likewise.
27677         * config/avr/avr.c: Likewise.
27678         * config/bfin/bfin.c: Likewise.
27679         * config/h8300/h8300.c: Likewise.
27680         * config/i386/i386.c: Likewise.
27681         * config/ia64/ia64.c: Likewise.
27682         * config/iq2000/iq2000.c: Likewise.
27683         * config/m32c/m32c.c: Likewise.
27684         * config/m32r/m32r.c: Likewise.
27685         * config/m68k/m68k.c: Likewise.
27686         * config/mcore/mcore.c: Likewise.
27687         * config/mep/mep.c: Likewise.
27688         * config/mips/mips.c: Likewise.
27689         * config/mn10300/mn10300.c: Likewise.
27690         * config/moxie/moxie.c: Likewise.
27691         * config/pa/pa.c: Likewise.
27692         * config/rl78/rl78.c: Likewise.
27693         * config/rx/rx.c: Likewise.
27694         * config/s390/s390.c: Likewise.
27695         * config/sh/sh.c: Likewise.
27696         * config/sparc/sparc.c: Likewise.
27697         * config/spu/spu.c: Likewise.
27698         * config/stormy16/stormy16.c: Likewise.
27699         * config/v850/v850.c: Likewise.
27700         * config/vax/vax.c: Likewise.
27701         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
27702         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
27703         * config/msp430/msp430.c: Likewise.
27704         * predict.c: Likewise.
27705         * value-prof.c: Likewise.
27706         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
27707         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
27708         * config/microblaze/microblaze.c: Likewise.
27709         * config/nios2/nios2.c: Likewise.
27710         * config/rs6000/rs6000.c: Likewise.
27711         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27712         insn-config.h real.h rtl.h statistics.h stmt.h.
27713         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
27714         insn-config.h real.h statistics.h stmt.h.
27715         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
27716         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
27717         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
27718         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
27719         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
27720         fixed-value.h real.h statistics.h stmt.h.
27721         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
27722         fixed-value.h statistics.h stmt.h.
27723         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
27724         stmt.h.
27726 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
27728         * gengtype.c (create_user_defined_type): Workaround
27729         -Wmaybe-uninitialized false positives.
27730         * cse.c (fold_rtx): Likewise.
27731         * loop-invariant.c (gain_for_invariant): Likewise.
27733 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
27735         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
27736         set the memory attributes in all cases but clear MEM_EXPR if need be.
27738 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
27740         PR tree-optimization/64434
27741         * cfgexpand.c (reorder_operands): New function.
27742         (expand_gimple_basic_block): Insert call of reorder_operands if
27743         optimized is true.
27745 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
27747         * config/mips/micromips.md (*swp): Remove explicit parallel.
27748         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
27749         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
27750         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
27751         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
27752         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
27753         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
27754         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
27755         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
27756         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
27757         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
27758         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
27759         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
27760         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
27761         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
27762         (mips_wrdsp): Likewise.
27763         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
27764         parallel.
27765         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
27766         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
27767         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
27768         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
27769         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
27770         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
27771         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
27772         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
27773         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
27775 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
27777         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
27778         (mips_print_operand): Support 'y' to print exact log2 in decimal
27779         of a const_int.
27780         * config/mips/mips.h (ISA_HAS_LSA): New define.
27781         (ISA_HAS_DLSA): Likewise.
27782         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
27783         * config/mips/predicates.md (const_immlsa_operand): New predicate.
27785 2015-01-15  Martin Liska  <mliska@suse.cz>
27787         PR target/64377
27788         * optc-save-gen.awk: Add support for array types.
27790 2015-01-15  Richard Biener  <rguenther@suse.de>
27792         PR middle-end/64365
27793         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
27794         for MEM_REF access functions with the same base can never partially
27795         overlap.
27797 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
27799         * common.opt: New option -fstack-protector-explicit.
27800         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
27801         (stack_protect_decl_phase): Handle stack_protect attribute for
27802         explicit stack protection requests.
27803         (expand_used_vars): Similarly.
27804         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
27805         * doc/extend.texi: Add documentation for "stack_protect" attribute.
27806         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
27808 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
27810         PR target/53988
27811         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
27812         reg-reg copies.
27813         (sh_extending_set_of_reg): New struct.
27814         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
27815         sh_remove_reg_dead_or_unused_notes): New Declarations.
27816         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
27817         sh_find_extending_set_of_reg, sh_split_tst_subregs,
27818         sh_extending_set_of_reg::use_as_extended_reg): New functions.
27819         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
27820         convert to insn_and_split and use new function sh_split_tst_subregs.
27822 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
27824         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
27825         option.
27826         (Optimization Options): Move -fuse-ld documentation to...
27827         (Link Options): ...here.
27829 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
27831         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
27832         offsets.
27833         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
27834         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
27835         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
27836         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
27837         instead of ZR for the memory operand of LL/SC.
27838         (compare_and_swap_12, sync_add<mode>): Likewise.
27839         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
27840         (sync_new_<optab>_12, sync_nand_12): Likewise.
27841         (sync_old_nand_12, sync_new_nand_12): Likewise.
27842         (sync_sub<mode>, sync_old_add<mode>): Likewise.
27843         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
27844         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
27845         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
27846         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
27847         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
27848         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
27849         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
27850         * doc/md.texi (ZC): Update description.
27852 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
27854         * builtins.c (expand_builtin_atomic_exchange): Remove error when
27855         memory model is CONSUME.
27856         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
27857         expand_builtin_atomic_store): Change invalid memory model errors to
27858         warnings.
27859         (expand_builtin_atomic_clear): Change invalid model errors to warnings
27860         and issue warning for CONSUME.
27862 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
27864         * lto-cgraph: Update function comments for
27865         lto_symtab_encoder_encode_*.
27867 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
27869         * Makefile.in (site.exp): Do not set ENABLE_LTO.
27871 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
27873         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
27874         * lto-cgraph.c (select_what_to_stream): Remove argument, use
27875         lto_stream_offload_p instead.
27876         * lto-streamer.h (select_what_to_stream): Remove argument.
27877         * passes.c (ipa_write_summaries): Likewise.
27878         * tree-pass.h (ipa_write_summaries): Likewise.
27880 2015-01-14  Richard Biener  <rguenther@suse.de>
27882         PR tree-optimization/59354
27883         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
27884         groups larger than the slp group size as having gaps.
27886 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
27888         PR middle-end/59448
27889         * builtins.c (get_memmodel): Promote consume to acquire always.
27891 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
27893         PR target/64386
27894         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
27895         V32HImode.
27897 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
27899         PR target/64393
27900         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
27901         Enable AVX512BW.
27902         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
27903         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
27904         AVX512VBMI, as it implies AVX512BW.
27906 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
27908         PR target/64387
27909         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
27910         (vec_unpacks_hi_v16sf): Ditto.
27912 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27914         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
27915         is not available.
27917 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27919         * doc/invoke.texi (mapcs): Mention deprecation.
27920         (mapcs-frame): Likewise.
27922 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27924         PR target/64453
27925         * config/arm/arm.c (callee_saved_reg_p): Define.
27926         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
27927         register is callee saved instead of !call_used_regs[reg].
27928         (thumb1_compute_save_reg_mask): Likewise.
27930 2015-01-14  Hale Wang  <hale.wang@arm.com>
27932         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
27933         Cortex-M7.
27935 2015-01-14  Richard Biener  <rguenther@suse.de>
27937         PR lto/64415
27938         * tree-inline.c (insert_debug_decl_map): Check destination
27939         function MAY_HAVE_DEBUG_STMTS.
27940         (insert_init_debug_bind): Likewise.
27941         (insert_init_stmt): Remove redundant check.
27942         (remap_gimple_stmt): Drop debug stmts if the destination
27943         function has var-tracking assignments disabled.
27945 2015-01-14  Martin Liska  <mliska@suse.cz>
27947         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
27948         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
27950 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27952         PR target/64460
27953         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
27954         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
27956 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
27958         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
27959         level from an ARCH; do not inject the default.
27960         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
27961         MIPS_ISA_LEVEL_SPEC.
27962         (MIPS_ISA_NAN2008_SPEC): Update comment.
27963         (BASE_DRIVER_SELF_SPECS): Likewise.
27964         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
27965         MIPS_DEFAULT_ISA_LEVEL_SPEC.
27966         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
27967         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
27968         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
27970 2015-01-14  Richard Biener  <rguenther@suse.de>
27972         PR tree-optimization/64493
27973         PR tree-optimization/64495
27974         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
27975         assign the proper vectorized PHI to the inner loop exit PHIs.
27977 2015-01-14  Joey Ye  <joey.ye@arm.com>
27979         * config/arm/arm.c (arm_compute_save_reg_mask):
27980         Do not save lr in case of tail call.
27981         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
27983 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
27985         * tree-vrp.c (check_array_ref): Emit more warnings
27986         for warn_array_bounds >= 2.
27987         * common.opt: New option -Warray-bounds=.
27988         * doc/invoke.texi: Document -Warray-bounds=.
27990 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27992         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
27993         (mforbid-fp-as-gp): Remove.
27994         (mex9): Remove.
27995         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
27996         (nds32_symbol_load_store_p): Remove.
27997         (nds32_fp_as_gp_check_available): Clean up implementation.
27998         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
27999         cases.
28000         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
28001         fp-as-gp and ex9 cases.
28003 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
28005         * tree-profile.c (init_ic_make_global_vars): Drop workaround
28006         for bintuils bug 14342.
28007         (init_ic_make_global_vars): Likewise.
28008         (gimple_init_edge_profiler): Likewise.
28009         (gimple_gen_ic_func_profiler): Likewise.
28011 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28013         * ipa-inline.c (inline_small_functions): Swap the operands in
28014         enum.
28016 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
28018         PR ipa/64481
28019         * ipa-inline-analysis.c (node_growth_cache): Remove.
28020         (initialize_growth_caches): Do not initialize it.
28021         (free_growth_caches): Do not free it.
28022         (do_estimate_growth): Rename to ...
28023         (estimate_growth): ... this one; drop growth cache code.
28024         (growth_likely_positive): Always go the heuristics way.
28025         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
28026         (reset_edge_caches): Do not reset node growth.
28027         (heap_edge_removal_hook): Do not maintain cache.
28028         (inline_small_functions): Likewise; strenghten sanity check.
28029         (ipa_inline): Do not maintain caches.
28030         * ipa-inline.h (node_growth_cache): Remove.
28031         (do_estimate_growth): Remove to ...
28032         (estimate_growth): this one; remove inline version.
28033         (reset_node_growth_cache): Remove.
28035 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
28037         PR ipa/64565
28038         * ipa-inline.c (inline_small_functions): Update callee keys after
28039         resolving speculation
28040         (inline_small_functions): Always check monotonicity of the queue.
28042 2015-01-13  Marek Polacek  <polacek@redhat.com>
28044         PR middle-end/64391
28045         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
28047 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
28049         PR rtl-optimization/64286
28050         * ree.c (combine_reaching_defs): Move part of comment earlier,
28051         remove !SCALAR_INT_MODE_P check.
28052         (add_removable_extension): Don't add vector mode
28053         extensions if all uses of the source register aren't the same
28054         vector extensions.
28056 2015-01-13  Renlin Li  <renlin.li@arm.com>
28058         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
28059         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
28061 2015-01-13  Martin Liska  <mliska@suse.cz>
28063         * ipa-icf.c (sem_function::equals_private): Call new functions
28064         cl_target_option_print_diff and cl_optimization_print_diff.
28065         * optc-save-gen.awk (cl_target_option_print_diff): New function.
28066         (cl_optimization_print_diff): Likewise.
28067         * opth-gen.awk: Likewise.
28069 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
28071         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
28072         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
28073         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
28074         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
28075         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
28076         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
28078 2015-01-13  Andrew Pinski  <apinski@cavium.com>
28080         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
28081         instead of src mode.
28083 2015-01-13  Richard Biener  <rguenther@suse.de>
28085         PR lto/64373
28086         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
28087         DECL_CONTEXT.
28089 2015-01-13  Andrew Pinski  <apinski@cavium.com>
28091         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
28092         volatile mems.
28093         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
28095 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
28097         PR middle-end/63974
28098         * cfgexpand.c (expand_computed_goto): Don't call
28099         convert_memory_address here.
28101 2015-01-13  Richard Biener  <rguenther@suse.de>
28103         PR tree-optimization/64406
28104         * tree-loop-distibution.c (pass_loop_distribution::execute):
28105         Reset the SCEV hashtable if we distributed anything.
28107 2015-01-13  Richard Biener  <rguenther@suse.de>
28109         PR tree-optimization/64404
28110         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
28111         SLP types for CSEd loads.
28113 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28115         PR tree-optimization/64436
28116         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
28117         merge of two symbolic numbers for a bitwise OR to ...
28118         (perform_symbolic_merge): This. Also fix computation of the range and
28119         end of the symbolic number corresponding to the result of a bitwise OR.
28121 2015-01-13  Richard Biener  <rguenther@suse.de>
28123         PR tree-optimization/64568
28124         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
28125         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
28127 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28129         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
28130         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
28132 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28134         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
28135         target-specific symbol_ref flag.
28136         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
28137         resides in rodata section.
28138         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
28139         (nds32_encode_section_info): New function.
28141 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28143         * config/nds32/nds32.md (call): Use pseudo instruction bal which
28144         clobbers TA_REGNUM if large code model is specified.
28145         (call_register): Likewise.
28146         (call_immediate): Likewise.
28147         (call_value): Likewise.
28148         (call_value_register): Likewise.
28149         (call_value_immediate): Likewise.
28151 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28153         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
28154         (TARGET_CMODEL_MEDIUM): New macro.
28155         (TARGET_CMODEL_LARGE): New macro.
28156         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
28157         code model setting in assembly code.
28159 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28161         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
28162         Remove MASK_GP_DIRECT flag.
28163         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
28164         one of the multilib default options.
28165         * config/nds32/nds32.opt (mgp-direct): Remove.
28166         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
28167         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
28169 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
28171         * config/nds32/nds32.opt (mcmodel): Add new option.
28172         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
28173         to describe code model.
28175 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
28177         PR target/64479
28178         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
28180 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
28182         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
28183         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28184         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
28185         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
28186         __builtin_sh_set_fpscr.
28188 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
28190         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
28191         after a funtion name just to indicate it is a function.
28192         ([-fsanitize-undefined-trap-on-error]): Likewise.
28193         ([-fdbg-cnt=]): Likewise.
28194         ([-mmemcpy]): Likewise.
28195         ([-mflush-func]): Likewise.
28196         ([-msynci]): Likewise.
28198 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
28200         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
28201         example.
28203 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
28205         PR tree-optimization/64563
28206         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
28207         instead of != VR_VARYING.
28209         PR target/64513
28210         * config/i386/i386.c (ix86_expand_prologue): Add
28211         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
28213         PR tree-optimization/64454
28214         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
28215         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
28216         for signed or [0, op1 - 1] for unsigned modulo.
28217         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28218         even if op1 does not satisfy integer_pow2p.
28220         PR other/64370
28221         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
28223 2015-01-12  Jeff Law  <law@redhat.com>
28225         PR target/64461
28226         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
28227         (trunchiqi2, truncsihi2): Similarly.
28229         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
28230         rather than calling F.
28232 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28234         * tsan.c (instrument_expr): Use force_gimple_operand.
28235         Use may_be_nonaddressable_p instead of is_gimple_addressable.
28237 2015-01-12  Richard Biener  <rguenther@suse.de>
28239         PR tree-optimization/64530
28240         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
28241         back dr1.
28243 2015-01-12  Richard Biener  <rguenther@suse.de>
28245         PR middle-end/64357
28246         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
28247         latches properly.
28249 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28251         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
28252         Cortex-A17 tuning parameters.
28253         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
28255 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28257         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
28258         * config/arm/arm.c (arm_macro_fusion_p): New function.
28259         (arm_macro_fusion_pair_p): Likewise.
28260         (TARGET_SCHED_MACRO_FUSION_P): Define.
28261         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
28262         (ARM_FUSE_NOTHING): Likewise.
28263         (ARM_FUSE_MOVW_MOVT): Likewise.
28264         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
28265         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
28266         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
28267         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
28268         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
28269         arm_cortex_a5_tune): Specify fuseable_ops value.
28271 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
28273         PR bootstrap/64561
28274         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
28275         test for PIE with copy reloc.
28276         * configure: Regenerated.
28278 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28280         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
28281         in gen_rtx_REG.
28282         (arm_tls_descseq_addr): Likewise.
28283         (arm_gen_movmemqi): Likewise.
28284         (arm_expand_epilogue_apcs_frame): Likewise.
28285         (arm_expand_epilogue): Likewise.
28286         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
28287         in gen_rtx_REG.
28289 2015-01-12  Martin Liska  <mliska@suse.cz>
28291         PR ipa/64550
28292         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
28293         volatility for correct operands.
28295 2015-01-12  Martin Liska  <mliska@suse.cz>
28297         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
28298         indication that a function is not leaf.
28299         (sem_function::compare_polymorphic_p): Likewise.
28301 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28303         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
28304         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
28305         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
28306         fold-const.h, tree-check.h.
28308 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
28310         PR ipa/63967
28311         PR ipa/64425
28312         * ipa-inline.c (compute_uninlined_call_time,
28313         compute_inlined_call_time): Use counts for extra precision when
28314         needed possible.
28315         (big_speedup_p): Fix formating.
28316         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
28317         (relative_time_benefit): Remove.
28318         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
28319         merge guessed and read profile paths.
28320         (inline_small_functions): Count only !optimize_size functions into
28321         initial size; be more lax about sanity check when profile is used;
28322         be sure to update inlined function profile when profile is read.
28324 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
28326         PR ipa/63470
28327         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
28328         cost when edge becomes direct.
28329         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
28330         is resolved or when introducing new speculation.
28332 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
28334         PR ipa/64551
28335         PR ipa/64552
28336         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
28337         '||' to fix typo issue.
28339         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
28340         accept and return NULL.
28342 2015-01-12  Martin Liska  <mliska@suse.cz>
28344         * cgraph.c (cgraph_edge::remove_callee): Move function to header
28345         file for being inlined.
28346         (cgraph_set_edge_callee): Delete.
28347         (cgraph_edge::redirect_callee): Move function to header file
28348         for being inlined.
28349         (cgraph_edge::make_direct): Use new function.
28350         (cgraph_edge::dump_edge_flags): New function created from
28351         static dump_edge_flags function.
28352         (cgraph_node::dump): Use new function.
28353         (cgraph_edge::verify_count_and_frequency): New function created
28354         from verify_edge_count_and_frequency.
28355         (cgraph_edge::verify_corresponds_to_fndecl): New function created
28356         from verify_edge_corresponds_to_fndecl.
28357         (verify_edge_corresponds_to_fndecl): Delete.
28358         (cgraph_node::verify_node): Use new function.
28359         * cgraph.h (cgraph_edge::set_callee): New function.
28360         (cgraph_edge::dump_edge_flags): Likewise.
28361         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
28363 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
28365         * ipa-utils.c (estimate_function_body_sizes): Do not
28366         free node params when called late with early=true.
28368 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
28370         * doc/md.texi (Instruction Patterns): Rewrite text for
28371         clarity.
28372         (Example): Likewise.
28374 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
28376         * doc/invoke.texi (Option Summary): Break long lines.
28377         [(-fdiagnostics-color)]: Put long literal in @smallexample
28378         instead of inline.
28379         [(-fsanitize-recover)]: Likewise.
28380         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
28381         [(-ffast-math)]: Likewise.
28382         [(--param max-inline-insns-recursive)]: Likewise.
28383         [(--param max-inline-recursive-depth)]: Likewise.
28384         [(-mno-text-section-literals)]: Likewise.
28386 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
28388         * doc/install.texi: Update for libgomp being renamed from "GNU
28389         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
28390         Runtime Library".
28391         * doc/sourcebuild.texi: Likewise.
28393 2015-01-10  Anthony Green  <green@moxielogic.com>
28395         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
28396         mul.x availability for moxiebox configuration.
28398 2015-01-09  Anthony Green  <green@moxielogic.com>
28400         * config/moxie/moxie.md: Tabify assembly output.
28402 2015-01-09  Anthony Green  <green@moxielogic.com>
28404         * config/moxie/moxie.md (CC_REG): Correct register definition.
28406 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
28408         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
28409         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
28410         of log files.
28412 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
28414         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
28416 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
28417             Jakub Jelinek  <jakub@redhat.com>
28419         PR middle-end/64412
28420         * lto-streamer.h (lto_stream_offload_p): New declaration.
28421         * lto-streamer.c (lto_stream_offload_p): New variable.
28422         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
28423         at the same time as section_name_prefix.
28424         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
28425         if lto_stream_offload_p.
28426         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
28427         stream TREE_TARGET_OPTION if lto_stream_offload_p.
28428         (write_ts_function_decl_tree_pointers): Don't
28429         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
28430         * tree-streamer-in.c (unpack_value_fields): Don't stream
28431         TREE_TARGET_OPTION in if ACCEL_COMPILER.
28432         (lto_input_ts_function_decl_tree_pointers): Don't stream
28433         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
28434         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
28435         instead of section_name_prefix string comparisons.
28437 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
28439         PR rtl-optimization/64536
28440         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
28441         tablejumps.
28443 2015-01-09  Michael Collison  <michael.collison@linaro.org>
28445         PR tree-optimization/64322
28446         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
28447         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
28449 2015-01-09  Tom de Vries  <tom@codesourcery.com>
28451         PR rtl-optimization/64539
28452         * regcprop.c (kill_clobbered_values): Factor out of ...
28453         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
28454         instead of note_stores with kill_clobbered_value.
28456 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
28458          * ginclude/unwind-arm-common.h: Revert previous commit.
28460 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
28462         * config.gcc (arm*-*-freebsd*): New configuration.
28463         * config/arm/freebsd.h: New file.
28464         * config.host: Add extra components for arm*-*-freebsd*.
28465         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
28466         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
28468 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28470         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
28471         for -mcpu=e6500.
28472         * config/rs6000/t-rtems: Add e6500 multilibs.
28474 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28476         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
28477         MPC8540.
28479 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28481         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
28482         MULTILIB_EXCEPTIONS.
28484 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28486         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
28487         MULTILIB_EXCEPTIONS.
28489 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28491         * config/arm/t-rtems-eabi: Rename to...
28492         * config/arm/t-rtems: ...this.
28493         * config/arm/rtems-eabi.h: Rename to...
28494         * config/arm/rtems.h: ...this.
28495         * config.gcc (arm*-*-rtems*): Reflect changes above.
28497 2015-01-09  Richard Biener  <rguenther@suse.de>
28499         PR tree-optimization/64410
28500         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
28501         on the LHS.
28502         (execute_update_addresses_taken): Deal with that.
28503         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
28504         loads/stores for complex variables.
28506 2015-01-09  Martin Liska  <mliska@suse.cz>
28508         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
28509         name comparison.
28510         (func_checker::compare_memory_operand): New function.
28511         (func_checker::compare_operand): Split case to newly
28512         added functions.
28513         (func_checker::compare_cst_or_decl): New function.
28514         (func_checker::compare_gimple_call): Identify
28515         memory operands.
28516         (func_checker::compare_gimple_assign): Likewise.
28517         * ipa-icf-gimple.h: New function.
28519 2015-01-09  Martin Liska  <mliska@suse.cz>
28521         PR ipa/64503
28522         * sreal.c (sreal::dump): Change unsigned format to signed for
28523         m_exp value.
28524         (sreal::to_double): Replace exp2 with scalbln.
28526 2015-01-09  Martin Liska  <mliska@suse.cz>
28528         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
28529         * ipa-icf.c (sem_function::equals_private): Add support for target and
28530         (sem_item_optimizer::merge_classes): Remove redundant function
28531         optimization flags comparison.
28532         * tree.h (target_opts_for_fn): New function.
28534 2015-01-09  Tom de Vries  <tom@codesourcery.com>
28536         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
28538 2015-01-09  Kito Cheng  <kito@0xlab.org>
28540         PR rtl-optimization/64348
28541         * lra-constraints.c (split_reg): Fix caller-save store/restore
28542         instruction generation.
28544 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
28546         PR gcov-profile/61790
28547         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
28548         long long.  Fallback to int64_t if host doesn't have long long and
28549         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
28551 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
28553         PR tree-optimization/63989
28554         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
28555         from 1000 to 10000.
28556         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
28557         (get_stridx): If we don't have a record for certain SSA_NAME,
28558         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
28559         constant offset, call get_stridx_plus_constant.
28560         (get_stridx_plus_constant): New function.
28561         (zero_length_string): Don't use get_stridx here.
28563         PR target/55023
28564         PR middle-end/64388
28565         * dse.c (struct insn_info): Mention frame_read set also
28566         before reload for tail calls on some targets.
28567         (scan_insn): Revert 2014-12-22 change.  Set frame_read
28568         also before reload for tail calls if
28569         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
28570         instead of add_non_frame_wild_read for non-const/memset
28571         tail calls after reload.
28573 2015-01-08  Jason Merrill  <jason@redhat.com>
28575         * ubsan.c (do_ubsan_in_current_function): New.
28576         (pass_ubsan::gate): Use it.
28577         * ubsan.h: Declare it.
28578         * convert.c (convert_to_integer): Use it.
28580 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
28582         PR target/64338
28583         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
28584         compare_code when it is unconditionally overwritten afterwards.
28585         Use ix86_reverse_condition instead of reverse_condition.  Don't
28586         change code if *reverse_condition* returned UNKNOWN and don't
28587         swap ct/cf and negate diff in that case.
28589 2015-01-08  Mike Stump  <mikestump@comcast.net>
28591         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
28592         (pass_tsan_O0::gate): Likewise.
28593         * extend.texi (Function Attributes): Add no_sanitize_thread
28594         documentation.
28596 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
28598         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
28599         for registering builtins.
28600         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
28601         add -fopenmp to the argv_obstack used when invoking
28602         compile_for_target.
28604         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
28605         add "-m32" or "-m64" to argv_obstack.
28606         (generate_host_descr_file): Likewise, when invoking host_compiler.
28607         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
28608         ld.
28610 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
28612         * config/sh/sh-mem.cc: Use constant as second operand when emitting
28613         tstsi_t insns.
28615 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
28617         PR target/55212
28618         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
28619         constant load if constant operand fits into I08.
28621 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
28623         PR sanitizer/64336
28624         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
28625         and TREE_THIS_VOLATILE for MEM_REFs.
28626         (build5_stat): Fix up initialization of TREE_READONLY and
28627         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
28629 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
28631         PR target/64533
28632         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
28633         of r for the second alternative of the destination operand.
28635 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
28637         PR target/36557
28638         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
28640 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
28642         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
28643         keywords.
28644         ([-fivar-visibility], [-fvisibility]): Likewise.
28646 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
28648         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
28649         the file where @code, @command, etc is more appropriate.
28651 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
28653         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
28654         of -mrecip= documentation.
28656 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
28658         PR target/64505
28659         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
28660         correct reload handler if -m32 -mpowerpc64 is used.
28662 2015-01-06  Tom de Vries  <tom@codesourcery.com>
28664         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
28666 2015-01-08  Christian Bruel  <christian.bruel@st.com>
28668         PR target/64507
28669         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
28671 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28673         PR tree-optimization/63259
28674         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
28675         if optab exists for 16bit byteswap.
28677 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
28679         * opts.c (common_handle_option): Add support for
28680         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
28681         * doc/invoke.texi: Document -fno-sanitize=all,
28682         -f{,no-}sanitize-recover=all.  Document that
28683         -fsanitize=float-cast-overflow is not enabled
28684         by -fsanitize=undefined.  Fix up documentation
28685         of -f{,no-}sanitize-recover.
28687 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28689         * config.gcc: Add Visium support.
28690         * configure.ac: Likewise.
28691         * configure: Regenerate.
28692         * doc/extend.texi (interrupt attribute): Add Visium.
28693         * doc/invoke.texi: Document Visium options.
28694         * doc/install.texi: Document Visium target.
28695         * doc/md.texi: Document Visium constraints.
28696         * common/config/visium: New directory.
28697         * config/visium: Likewise.
28699 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
28701         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
28702         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
28704 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
28706         * combine.c (combine_validate_cost): Do not count the cost of a
28707         split I2 twice.  Do not display it twice in the dump, either.
28709 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
28711         Revert parts of r219199.
28712         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
28713         <inttypes.h>.
28714         ([-Wtraditional]): Restore markup on <limits.h>.
28716 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
28718         PR c++/31397
28719         * doc/invoke.texi: Document -Wsuggest-override.
28721 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
28723         PR rtl-optimization/64287
28724         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
28725         (process_options): Disable flag_ipa_ra if profiling.
28727 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
28729         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
28731 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
28733         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
28734         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
28735         put under #if TARGET_LOOPS guard.
28737 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
28739         * config/i386/i386.c (output_387_binary_op): Use std::swap.
28741 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
28743         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
28744         * rtl.h (refers_to_regno_p): Add overload.
28745         * cse.c: Use it.
28746         * bt-load.c: Likewise.
28747         * combine.c: Likewise.
28748         * df-scan.c: Likewise.
28749         * sched-deps.c: Likewise.
28750         * config/s390/s390.c: Likewise.
28751         * config/m32r/m32r.c: Likewise.
28752         * config/rs6000/spe.md: Likewise.
28753         * config/rs6000/rs6000.c: Likewise.
28754         * config/pa/pa.c: Likewise.
28755         * config/stormy16/stormy16.c: Likewise.
28756         * config/cris/cris.c: Likewise.
28757         * config/arc/arc.md: Likewise.
28758         * config/arc/arc.c: Likewise.
28759         * config/sh/sh.md: Likewise.
28760         * config/sh/sh.c: Likewise.
28761         * config/frv/frv.c: Likewise.
28763 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
28765         PR sanitizer/64265
28766         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
28767         call as cleanup of the whole body.
28768         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
28769         * tsan.c (replace_func_exit): New function.
28770         (instrument_func_exit): Moved earlier.
28771         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
28772         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
28773         been found.
28774         (tsan_pass): Don't call instrument_func_exit.
28775         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
28776         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
28777         inlining.
28779         PR sanitizer/64344
28780         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
28781         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
28782         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
28783         if the result is integer_zerop, return NULL_TREE.
28784         * convert.c (convert_to_integer): Pass expr as ARG.
28786         PR tree-optimization/64465
28787         * tree-inline.c (redirect_all_calls): During inlining
28788         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
28789         changed the stmt to a non-throwing call.
28791 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
28793         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
28794         etc markup throughout the file.
28796 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28798         Enable experimental TSAN support for Ada.
28799         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
28801 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
28803         PR tree-optimization/64494
28804         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
28805         clear SSA_NAME_ANTI_RANGE_P flag.
28807 2015-01-05  Marek Polacek  <polacek@redhat.com>
28809         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
28811 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
28813         Update copyright years.
28815         * gcc.c (process_command): Update copyright notice dates.
28816         * gcov-dump.c: Ditto.
28817         * gcov.c: Ditto.
28818         * doc/cpp.texi: Bump @copying's copyright year.
28819         * doc/cppinternals.texi: Ditto.
28820         * doc/gcc.texi: Ditto.
28821         * doc/gccint.texi: Ditto.
28822         * doc/gcov.texi: Ditto.
28823         * doc/install.texi: Ditto.
28824         * doc/invoke.texi: Ditto.
28826         * auto-profile.c, auto-profile.h: Fix up Copyright line.
28828 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
28830         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
28831         verb tense, etc.
28832         ([-fvtable-verify], [-fvtv-debug]): Likewise.
28833         ([-Wabi]): Likewise.
28834         ([-fmessage-length]): Likewise.
28835         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
28836         ([-Wno-discarded-qualifiers]): Likewise.
28837         ([-Wnodiscarded-array-qualifiers]): Likewise.
28838         ([-Wno-virtual-move-assign]): Likewise.
28839         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
28840         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
28841         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
28842         ([-fsanitize-undefined-trap-on-error]): Likewise.
28843         ([-floop-interchange]): Likewise.
28844         ([-ftree-coalesce-inlined-vars]): Likewise.
28845         ([-fvect-cost-model]): Likewise.
28846         ([-flto]): Likewise.
28847         ([--param]): Likewise.
28848         (Spec Files): Likewise.
28849         ([-mstrict-align]): Likewise.
28850         ([-mfix-cortex-a53-835769]): Likewise.
28851         ([-march], [-mtune]): Likewise.
28852         ([-mpic-register]): Likewise.
28853         ([-munaligned-access]): Likewise.
28854         ([-msp8]): Likewise.
28855         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
28856         (AVR Built-in Macros): Likewise.
28857         ([-mpreferred-stack-boundary]): Likewise.
28858         ([-mtune-crtl]): Likewise.
28859         ([-mashf]): Likewise.
28860         ([-mmcu=]): Likewise.
28861         ([-minrt]): Likewise.
28862         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
28863         ([-mupper-regs]): Likewise.
28864         ([-matomic-model]): Likewise.
28865         ([-mdiv]): Likewise.
28866         ([-mzdcbranch]): Likewise.
28867         ([-mdisable-callt]): Likewise.
28868         ([-msoft-float]): Likewise.
28869         ([-m8byte-align]): Likewise.
28870         ([-fstack-reuse]): Likewise.
28872 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
28874         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
28875         Fix markup, light copy-editing.
28876         ([-fauto-profile]): Rewrite to fix formatting and content
28877         problems.
28879 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
28881         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
28882         Copy-edit description.
28883         ([-fisolate-erroneous-paths-attribute]): Likewise.
28884         * common.opt (fisolate-erroneous-paths-dereference):
28885         Copy-edit description.
28886         (fisolate-erroneous-paths-attribute): Likewise.
28888 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
28890         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
28891         tidy grammar.
28893 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
28895         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
28896         ([-fvtv-debug]): Likewise.
28897         ([-Wc++-compat]): Likewise.
28898         ([-Wc++11-compat]): Likewise.
28899         ([-Wc++14-compat]): Likewise.
28900         ([-Wno-sized-deallocation]): Likewise.
28901         ([-femit-class-debug-always]): Likewise.
28902         ([-femit-struct-debug-detailed]): Likewise.
28903         ([-fno-keep-inline-dllexport]): Likewise.
28904         ([-fira-algorithm]): Likewise.
28905         ([-fira-region]): Likewise.
28906         ([-flra-remat]): Likewise.
28907         ([-fipa-ra]): Likewise.
28908         ([-fhoist-adjacent-loads]): Likewise.
28909         ([-fisolate-erroneous-paths-dereference]): Likewise.
28910         ([-fisolate-erroneous-paths-attribute]): Likewise.
28911         ([-ftree-switch-conversion]): Likewise.
28912         ([-ftree-tail-merge]): Likewise.
28913         ([-ftree-loop-if-convert]): Likewise.
28914         ([-ftree-loop-if-convert-stores]): Likewise.
28915         ([-ftree-loop-distribution]): Likewise.
28916         ([-ftree-loop-distribute-patterns]): Likewise.
28917         ([-flto-compression-level]): Likewise.
28918         ([-flto-report]): Likewise.
28919         ([-flto-report-wpa]): Likewise.
28920         ([-fuse-linker-plugin]): Likewise.
28921         ([-mfix-cortex-a53-835769]): Likewise.
28922         ([-mno-fix-cortex-a53-835769]): Likewise.
28923         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
28924         explicit listing; add a note to the discussion indicating they
28925         exist.  Reorder table to group similar options.  Add missing
28926         @opindex entries.  Add @need commands throughout the table to
28927         allow it to be split across multiple pages.
28928         ([-m8bit-idiv]): Fix @opindex.
28929         ([-mavx256-split-unaligned-load]): Likewise.
28930         ([-mavx256-split-unaligned-store]): Likewise.
28931         ([-mstack-protector-guard]): Likewise.
28932         ([-mcpu=]): Likewise.
28933         ([-mcpu]): Likewise.
28934         ([-mpointer-size=]): Likewise.
28936 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
28938         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
28939         instead of `m' constraint.  Likewise for unnamed movb comparison
28940         patterns using reg_before_reload_operand predicate.
28941         * config/pa/predicates.md (reg_before_reload_operand): Tighten
28942         predicate to reject register index and LO_SUM DLT memory forms
28943         after reload.
28945 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
28947         * doc/invoke.texi (Option Summary): Fix spelling of
28948         -fdevirtualize-at-ltrans.
28949         ([-fdevirtualize]): Fix markup.
28950         ([-fdevirtualize-speculatively]): Fix typo.
28951         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
28952         implementor-speaky.
28953         * common.opt (fdevirtualize-at-ltrans): Likewise.
28954         * ipa-devirt.c: Fix typos in comments throughout the file.
28955         (ipa_devirt): Fix typos in format strings for dump output.
28957 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
28959         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
28960         discussion of defaults, light copy-editing.
28962 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28964         * tsan.c (instrument_expr): corrected previous checkin.
28966 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28968         Instrument bit field and unaligned accesses for TSAN.
28969         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
28970         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
28971         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
28972         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
28973         unaligned memory regions.
28975 2015-01-01  Anthony Green  <green@moxielogic.com>
28977         * config/moxie/predicates.md (moxie_general_movsrc_operand):
28978         Restrict move source register offsets to 16 bits.
28980 Copyright (C) 2015 Free Software Foundation, Inc.
28982 Copying and distribution of this file, with or without modification,
28983 are permitted in any medium without royalty provided the copyright
28984 notice and this notice are preserved.