fix ChangeLog entry for r227407
[official-gcc.git] / gcc / ChangeLog
blob9ab62c05f3c0d5576b7d90290f99203eda29d04d
1 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
3         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
4         non-alphanumeric characters in the symbol name.
6 2015-09-07  Marek Polacek  <polacek@redhat.com>
8         PR inline-asm/67448
9         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
10         a memory input.
12 2015-09-07  Marek Polacek  <polacek@redhat.com>
14         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
18         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
19         not warn.
21 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
23         PR middle-end/67452
24         * tree-ssa-live.c: Include cfgloop.h.
25         (remove_unused_locals): Clear loop->simduid if simduid is about
26         to be removed from cfun->local_decls.
28 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30         PR target/65210
31         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
32         attribute as well.
34 2015-09-04  Tom de Vries  <tom@codesourcery.com>
36         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
38 2015-09-04  Jeff Law  <law@redhat.com>
40         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
41         unnecessary constructor.  It's now trivial and implemented inside...
42         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
43         constructor.  Add comments to various methods.  Remove unused
44         private fields.
45         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
46         * tree-vrp.c (identify_jump_threads): Likewise.
47         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
48         indentation issues.
49         (thread_across_edge): Similarly.
50         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
51         arguments in constructor call.
53 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
55         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
56         temp path contains a '-'.
58 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
59             Petr Murzin  <petr.murzin@intel.com>
60             Kirill Yukhin <kirill.yukhin@intel.com>
62         * config/i386/i386-builtin-types.def
63         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
64         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
65         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
66         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
67         * config/i386/i386.c
68         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
69         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
70         IX86_BUILTIN_SCATTERALTDIV16SI.
71         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
72         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
73         __builtin_ia32_scatteraltdiv8si.
74         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
75         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
76         IX86_BUILTIN_SCATTERALTDIV16SI.
77         (ix86_vectorize_builtin_scatter): New.
78         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
79         ix86_vectorize_builtin_scatter.
81 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
82             Petr Murzin  <petr.murzin@intel.com>
83             Kirill Yukhin <kirill.yukhin@intel.com>
85         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
86         * doc/tm.texi: Regenerate.
87         * target.def: Add scatter builtin.
88         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
89         for loads/stores in case of gather/scatter accordingly.
90         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
91         (vect_check_gather): Rename to ...
92         (vect_check_gather_scatter): this.
93         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
94         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
95         (vect_check_gather_scatter): Use it instead of vect_check_gather.
96         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
97         and new checkings for it accordingly.
98         * tree-vect-stmts.c
99         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
100         (vect_check_gather_scatter): Use it instead of vect_check_gather.
101         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
103 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
105         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
106         define_insn.
107         (mulv16qi3): New define_expand.
109 2015-09-03  Martin Sebor  <msebor@redhat.com>
111         PR c/66516
112         * doc/extend.texi (Other Builtins): Document when the address
113         of a built-in function can be taken.
115 2015-09-03  Richard Biener  <rguenther@suse.de>
117         * dwarf2out.c (flush_limbo_die_list): Split out from ...
118         (dwarf2out_early_finish): ... here.
119         (dwarf2out_finish): Do not call dwarf2out_early_finish but
120         flush_limbo_die_list.  Assert we have no deferred asm names.
122 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
124         * optabs.c (expand_binop): Don't create a broadcast vector with a
125         source element wider than the inner mode.
127 2015-09-03  Richard Biener  <rguenther@suse.de>
129         * varasm.c (output_constant): Use fold_convert instead of
130         wide_int_to_tree.
132 2015-09-03  Tom de Vries  <tom@codesourcery.com>
134         PR tree-optimization/65637
135         * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
136         predecessors.
138 2015-09-03  Tom de Vries  <tom@codesourcery.com>
140         PR tree-optimization/65637
141         * omp-low.c (find_phi_with_arg_on_edge): New function.
142         (expand_omp_for_static_chunk): Fix inner loop phi.
144 2015-09-03  Tom de Vries  <tom@codesourcery.com>
146         PR tree-optimization/65637
147         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
148         that head is NULL.
150 2015-09-03  Tom de Vries  <tom@codesourcery.com>
152         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
154 2015-09-03  Tom de Vries  <tom@codesourcery.com>
156         * doc/invoke.texi (parloops-chunk-size): Add item.
157         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
158         * tree-parloops.c: Include params.h.
159         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
160         param parloops-chunk-size is used.
162 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
164         PR middle-end/67351
165         * fold-const.c (fold_binary_loc) : Move 
166         Transform (x >> c) << c into x & (-1<<c) or
167         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
168         types using simplify and match.
169         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
170         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
172 2015-09-03  Richard Biener  <rguenther@suse.de>
174         PR ipa/66705
175         * tree-ssa-structalias.c (ctor_for_analysis): New function.
176         (create_variable_info_for_1): Use ctor_for_analysis instead
177         of get_constructor.
178         (create_variable_info_for): Likewise.
180 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
182         PR ipa/67280
183         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
184         in new callgraph edge.
186 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
188         PR target/59810
189         PR target/63652
190         PR target/63653
191         * config/aarch64/aarch64-simd.md
192         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
193         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
194         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
195         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
197 2015-09-02  Alan Modra  <amodra@gmail.com>
199         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
200         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
201         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
203 2015-09-02  Alan Modra  <amodra@gmail.com>
205         PR target/67417
206         * config/rs6000/predicates.md (current_file_function_operand): Don't
207         return true for weak symbols.
208         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
210 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
211             Andrew Bennett  <andrew.bennett@imgtec.com>
213         * config/mips/mips-opts.h (mips_cb_setting): New enum.
214         * config/mips/mips-protos.h: Add definitions for
215         mips_output_jump and mips_output_equal_conditional_branch
216         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
217         JIC instruction.
218         (mips_emit_compare): Add support for the MIPS R6 conditional
219         compact branches.
220         (mips_process_sync_loop): Likewise.
221         (mips_output_order_conditional_branch): Likewise.
222         (mips16_build_call_stub): Change MIPS_CALL to
223         mips_output_jump.
224         (mips_print_operand_punctuation): Update 's' case to only
225         apply to micromips r2.
226         (mips_adjust_insn_length): Add support for forbidden slot
227         hazards.
228         (mips_avoid_hazard): Likewise.
229         (mips_reorg_process_insns): Likewise.
230         (mips_output_jump): New function.
231         (mips_output_equal_conditional_branch): Likewise.
232         (mips_output_conditional_branch): Use jrc/bc if compact
233         branch support is enabled.  Ensure the forbidden slots
234         between the two branch instructions is filled with a nop.
235         (mips_option_override): Add support to process the compact
236         branch option and set the correct defaults.  Prevent
237         non-explict relocs being using for MIPS R6.
238         (mips_trampoline_init): Add compact branch support.
239         (mips_mult_zero_zero_cost): Allow zero initialisation of
240         accumulators with TARGET_DSP.
241         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
242         (TARGET_CB_MAYBE): New define.
243         (TARGET_CB_ALWAYS): New define.
244         (ISA_HAS_DELAY_SLOTS): New define.
245         (ISA_HAS_COMPACT_BRANCHES): New define.
246         (ISA_HAS_JRC): New define.
247         (MIPS_BRANCH_C): New define.
248         (MIPS_CALL): Removed.
249         (MICROMIPS_J): Removed.
250         * config/mips/mips.md (compact_form): New attr.
251         (hazard): Add support for forbidden slots.
252         (define_delay): Add support for compact branches.
253         (*branch_order<mode>): Likewise.
254         (*branch_order<mode>_inverted): Likewise.
255         (*branch_equality<mode>): Likewise.
256         (*branch_equality<mode>_inverted): Likewise.
257         (*jump_absolute): Likewise.
258         (*jump_pic): Likewise.
259         (indirect_jump): Use mips_output_jump to produce assembly output.
260         (tablejump_<mode>"): Likewise.
261         (*<optab>"): Likewise.
262         (<optab>_internal): Likewise.
263         (sibcall_internal): Likewise.
264         (sibcall_value_internal): Likewise.
265         (sibcall_value_multiple_internal): Likewise.
266         (call_internal): Likewise.
267         (call_split): Likewise.
268         (call_internal_direct): Likewise.
269         (call_direct_split): Likewise.
270         (call_value_internal): Likewise.
271         (call_value_split): Likewise.
272         (call_value_internal_direct): Likewise.
273         (call_value_direct_split): Likewise.
274         (call_value_multiple_internal): Likewise.
275         (call_value_multiple_split): Likewise.
276         (mips_get_fcsr_mips16_<mode>): Likewise.
277         (mips_set_fcsr_mips16_<mode>): Likewise.
278         (tls_get_tp_mips16_<mode>): Likewise.
279         * config/mips/mips.opt: Add -mcompact-branches option.
280         * config/mips/predicates.md (order_operator): Ensure the
281         conditional compact branches are only used if the ISA them.
282         * doc/invoke.texi: Document -mcompact-branches option.
284 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
286         PR target/61578
287         * lra-lives.c (process_bb_lives): Process move pseudos with the
288         same value for copies and preferences
289         * lra-constraints.c (match_reload): Create match reload pseudo
290         with the same value from single dying input pseudo.
292 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
294         PR target/67405
295         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
297 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
299         * trans-mem.c: Add contributed-by.
300         * trans-mem.h: Same.
302 2015-09-01  Richard Biener  <rguenther@suse.de>
304         * expr.c (expand_expr_real_1): For expanding TERed defs
305         set the current location to that of the def if not UNKNOWN.
307 2015-09-01  David Sherwood  <david.sherwood@arm.com>
309         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
311 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
313         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
314         then_cost, else_cost fields.  Change branch_cost field to unsigned
315         int.
316         (end_ifcvt_sequence): Call set_used_flags on each insn in the
317         sequence.
318         Include rtl-iter.h.
319         (noce_simple_bbs): New function.
320         (noce_try_move): Bail if basic blocks are not simple.
321         (noce_try_store_flag): Likewise.
322         (noce_try_store_flag_constants): Likewise.
323         (noce_try_addcc): Likewise.
324         (noce_try_store_flag_mask): Likewise.
325         (noce_try_cmove): Likewise.
326         (noce_try_minmax): Likewise.
327         (noce_try_abs): Likewise.
328         (noce_try_sign_mask): Likewise.
329         (noce_try_bitop): Likewise.
330         (bbs_ok_for_cmove_arith): New function.
331         (noce_emit_all_but_last): Likewise.
332         (noce_emit_insn): Likewise.
333         (noce_emit_bb): Likewise.
334         (noce_try_cmove_arith): Handle non-simple basic blocks.
335         (insn_valid_noce_process_p): New function.
336         (contains_mem_rtx_p): Likewise.
337         (bb_valid_for_noce_process_p): Likewise.
338         (noce_process_if_block): Allow non-simple basic blocks
339         where appropriate.
341 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
343         * tree-ssa-dom.c (record_equivalences_from_phis,
344         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
345         (lookup_avail_expr): Likewise, and remove comment and unused temp.
347 2015-09-01  Nick Clifton  <nickc@redhat.com>
349         * config/msp430/msp430.opt (mcpu): Fix typo.
351 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
353         * config/aarch64/aarch64.c (aarch64_set_current_function):
354         Re-layout any vector parameters have non-simd layout.
355         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
356         Delete.
357         (aarch64_simd_expand_args): Delete call to the above.
359 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
361         * doc/invoke.texi (asan-stack): Add space before option.
363 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
365         * tree.h (zerop): New function.
366         * tree.c (zerop): Likewise.
367         (element_precision): Handle expressions.
368         * match.pd (define_predicates): Add zerop.
369         (x <= +Inf): Fix comment.
370         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
371         * fold-const.c (fold_binary_loc): ... here. Remove.
373 2015-08-31  Richard Biener  <rguenther@suse.de>
375         PR middle-end/67381
376         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
378 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
380         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
381         (CEXPI): New operator list.
382         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
383         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
384         Converted from ...
385         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
387 2015-08-31  Tom de Vries  <tom@codesourcery.com>
389         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
390         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
391         parameter.
392         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
393         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
394         (rewrite_into_loop_closed_ssa): ... here.
395         (replace_uses_in_dominated_bbs): Remove function.
396         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
397         rewrite_into_loop_closed_ssa_1.
399 2015-08-31  Michael Matz  <matz@suse.de>
401         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
402         enter entry and exit blocks for reverse post order.
404 2015-08-31  Richard Biener  <rguenther@suse.de>
406         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
407         (lto_location_cache::current_sysp): Likewise.
408         (output_block::current_sysp): Likewise.
409         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
410         (lto_location_cache::apply_location_cache): Properly record
411         system header locations.
412         (lto_location_cache::input_location): Input whether a file
413         is a system header.
414         * lto-streamer-out.c (lto_output_location): Stream whether a file
415         is a system header.
417 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
419         PR bootstrap/67363
420         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
422 2015-08-31  Tom de Vries  <tom@codesourcery.com>
424         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
425         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
426         Improve function header comments.
428 2015-08-30  Michael Collison  <michael.collison@linaro.org>
430         PR other/67320
431         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
432         standard names
434 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
436         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
437         special_handling bitfield.
438         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
439         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
440         that represents a general xxpermdi.
441         (insn_is_swappable_p): Add handling for vec_concat of two
442         doublewords, which maps to a specific xxpermdi.
443         (adjust_xxpermdi): New function.
444         (adjust_concat): Likewise.
445         (handle_special_swappables): Call adjust_xxpermdi and
446         adjust_concat.
447         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
449 2015-08-30  Rich Felker <dalias@libc.org>
451         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
452         case instead of sh[123456ble]-*-*.
454 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
456         * ira.c (print_unform_and_important_classes,
457         print_translated_classes): Remove reg_class_names static array.
458         (print_unform_and_important_classes): Rename to ...
459         (print_uniform_and_important_classes): ... this.
460         (ira_debug_allocno_classes): Update accordingly.
462 2015-08-29  Tom de Vries  <tom@codesourcery.com>
464         PR tree-optimization/46193
465         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
466         clause.
468 2015-08-28  Jeff Law  <law@redhat.com>
470         PR lto/66752
471         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
472         unable to find X NE 0 in the tables, return X as the simplified
473         condition.
474         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
475         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
476         to VISISTED_BBS.
477         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
478         after removing the control flow statement and unnecessary edges.
480 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
482         Revert:
483         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
484                 PR tree-optimization/67283
485                 * tree-sra.c (type_consists_of_records_p): Rename to...
486                 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
488                 (completely_scalarize_record): Rename to...
489                 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
490                  code to:
491                 (scalarize_elem): New.
493 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
495         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
496         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
497         (aarch64_symbol_type): Likewise.
498         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
499         Likewise.
500         (aarch64_expand_mov_immediate): Likewise.
501         (aarch64_print_operand): Likewise.
502         (aarch64_classify_tls_symbol): Likewise.
504 2015-08-28  Richard Biener  <rguenther@suse.de>
506         * cgraphunit.c (symbol_table::compile): Move early debug generation
507         and finish...
508         (symbol_table::finalize_compilation_unit): ... back here and
509         add a !seen_error () guard.
511 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
513         * toplev.c (process_options): Do not use flag_loop_block,
514         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
515         flag_loop_optimize_isl.
517 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
519         * Makefile.in (OBJS): Remove graphite-blocking.o and
520         graphite-interchange.o.
521         * common.opt (floop-strip-mine, floop-interchange, floop-block):
522         Alias of floop-nest-optimize.
523         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
524         Document as alias of -floop-nest-optimize.
525         * graphite-blocking.c: Remove.
526         * graphite-interchange.c: Remove.
527         * graphite-optimize-isl.c: Include dumpfile.h.
528         (getScheduleForBand): Add dump for tiled loops.  Use
529         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
530         * graphite-poly.c (scop_max_loop_depth): Remove.
531         (print_scattering_function_1): Remove.
532         (print_scattering_function): Remove.
533         (print_scattering_functions): Remove.
534         (debug_scattering_function): Remove.
535         (debug_scattering_functions): Remove.
536         (apply_poly_transforms): Remove use of flag_loop_block,
537         flag_loop_strip_mine, and flag_loop_interchange.
538         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
539         PBB_ORIGINAL.
540         (print_pdr_access_layout): Remove.
541         (print_pdr): Print ISL representation.
542         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
543         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
544         (free_scop): Same.
545         (openscop_print_pbb_domain): Remove.
546         (print_pbb): Remove call to print_scattering_function.
547         (openscop_print_scop_context): Remove.
548         (print_scop_context): Do not print matrices anymore.
549         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
550         SCOP_TRANSFORMED_SCHEDULE.
551         (print_isl_set): Add printing of a new line.
552         (print_isl_map): Same.
553         (print_isl_aff): Same.
554         (print_isl_constraint): Same.
555         (loop_to_lst): Remove.
556         (scop_to_lst): Remove.
557         (lst_indent_to): Remove.
558         (print_lst): Remove.
559         (debug_lst): Remove.
560         (dot_lst_1): Remove.
561         (dot_lst): Remove.
562         (reverse_loop_at_level): Remove.
563         (reverse_loop_for_pbbs): Remove.
564         * graphite-poly.h (pdr_dim_iter_domain): Remove.
565         (pdr_nb_params): Remove.
566         (pdr_alias_set_dim): Remove.
567         (pdr_subscript_dim): Remove.
568         (pdr_iterator_dim): Remove.
569         (pdr_parameter_dim): Remove.
570         (same_pdr_p): Remove.
571         (struct poly_scattering): Remove.
572         (struct poly_bb): Remove _original, _transformed, _saved.
573         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
574         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
575         (PBB_NB_LOCAL_VARIABLES): Remove.
576         (PBB_NB_SCATTERING_TRANSFORM): Remove.
577         (schedule_to_scattering): Remove.
578         (number_of_write_pdrs): Remove.
579         (pbb_dim_iter_domain): Remove.
580         (pbb_nb_params): Remove.
581         (pbb_nb_scattering_orig): Remove.
582         (pbb_nb_scattering_transform): Remove.
583         (pbb_nb_dynamic_scattering_transform): Remove.
584         (pbb_nb_local_vars): Remove.
585         (pbb_iterator_dim): Remove.
586         (pbb_parameter_dim): Remove.
587         (psco_scattering_dim): Remove.
588         (psct_scattering_dim): Remove.
589         (psct_local_var_dim): Remove.
590         (psco_iterator_dim): Remove.
591         (psct_iterator_dim): Remove.
592         (psco_parameter_dim): Remove.
593         (psct_parameter_dim): Remove.
594         (psct_dynamic_dim): Remove.
595         (psct_static_dim): Remove.
596         (psct_add_local_variable): Remove.
597         (new_lst_loop): Remove.
598         (new_lst_stmt): Remove.
599         (free_lst): Remove.
600         (copy_lst): Remove.
601         (lst_add_loop_under_loop): Remove.
602         (lst_depth): Remove.
603         (lst_dewey_number): Remove.
604         (lst_dewey_number_at_depth): Remove.
605         (lst_pred): Remove.
606         (lst_succ): Remove.
607         (lst_find_pbb): Remove.
608         (find_lst_loop): Remove.
609         (lst_find_first_pbb): Remove.
610         (lst_empty_p): Remove.
611         (lst_find_last_pbb): Remove.
612         (lst_contains_p): Remove.
613         (lst_contains_pbb): Remove.
614         (lst_create_nest): Remove.
615         (lst_remove_from_sequence): Remove.
616         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
617         (lst_niter_for_loop): Remove.
618         (pbb_update_scattering): Remove.
619         (lst_update_scattering_under): Remove.
620         (lst_update_scattering): Remove.
621         (lst_insert_in_sequence): Remove.
622         (lst_replace): Remove.
623         (lst_substitute_3): Remove.
624         (lst_distribute_lst): Remove.
625         (lst_remove_all_before_including_pbb): Remove.
626         (lst_remove_all_before_excluding_pbb): Remove.
627         (struct scop): Remove original_schedule, transformed_schedule, and
628         saved_schedule.
629         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
630         (SCOP_SAVED_SCHEDULE): Remove.
631         (poly_scattering_new): Remove.
632         (poly_scattering_free): Remove.
633         (poly_scattering_copy): Remove.
634         (store_scattering_pbb): Remove.
635         (store_lst_schedule): Remove.
636         (restore_lst_schedule): Remove.
637         (store_scattering): Remove.
638         (restore_scattering_pbb): Remove.
639         (restore_scattering): Remove.
640         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
641         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
642         compute the scattering polyhedron dimension from the dimension of
643         pbb->domain.
644         (build_scop_scattering): Update call to
645         build_pbb_scattering_polyhedrons.
646         (build_poly_scop): Remove call to scop_to_lst.
647         * graphite.c (graphite_transform_loops): Add call to print_scop.
648         (gate_graphite_transforms): Remove use of flag_loop_block,
649         flag_loop_interchange, and flag_loop_strip_mine.
651 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
653         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
654         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
655         -floop-nest-optimize.
656         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
657         (generate_luj_sepclass): Remove.
658         (generate_luj_options): Remove.
659         (set_options): Remove opt_luj.
660         (scop_to_isl_ast): Remove opt_luj.
661         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
662         flag_loop_unroll_jam.
663         (getPrevectorMap_full): Remove.
664         (getScheduleForBandList): Remove map_sepcl.
665         (getScheduleMap): Same.
666         (apply_schedule_map_to_scop): Remove sepcl.
667         (optimize_isl): Same.
668         * graphite-poly.c (apply_poly_transforms): Remove check for
669         flag_loop_unroll_jam.
670         (new_poly_bb): Remove map_sepclass.
671         * graphite-poly.h (struct poly_bb): Same.
672         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
673         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
674         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
675         * toplev.c (process_options): Remove flag_loop_unroll_jam.
677 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
679         PR target/67317
680         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
681         (addqi3_cc): Ditto.
682         (UNSPEC_ADD_CARRY): Remove.
683         (addqi3_cconly_overflow): New expander.
684         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
685         Adjust for changed add<mode>3_carry.
686         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
687         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
688         (<plusminus_insn><mode>3_carry): Remove expander.
689         (*<plusminus_insn><mode>3_carry): Split insn pattern to
690         add<mode>3_carry and sub<mode>3_carry.
691         (plusminus_carry_mnemonic): Remove code attribute.
692         (add<mode>3_carry): Canonicalize insn pattern.
693         (*addsi3_carry_zext): Ditto.
694         (sub<mode>3_carry): Ditto.
695         (*subsi3_carry_zext): Ditto.
696         (adcx<mode>3): Remove insn pattern.
697         (addcarry<mode>): New insn pattern.
698         (subborrow<mode>): Ditto.
699         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
700         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
701         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
702         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
703         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
704         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
705         Rewrite expander to not clobber carry flag chains.
707 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
709         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
710         instead of a rotate.
712 2015-08-27  Marek Polacek  <polacek@redhat.com>
714         PR middle-end/67005
715         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
716         an entry into an irreducible region.
718 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
720         * configure: Regenerate.
722 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
724         PR tree-optimization/67283
725         * tree-sra.c (type_consists_of_records_p): Rename to...
726         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
728         (completely_scalarize_record): Rename to...
729         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
730         (scalarize_elem): New.
732 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
734         * tree-sra.c (completely_scalarize_var): Rename to...
735         (create_total_scalarization_access): ... Here. Drop call to
736         completely_scalarize_record.
738         (analyze_all_variable_accesses): Replace completely_scalarize_var
739         with create_total_scalarization_access and completely_scalarize_record.
741 2015-08-27  Alan Modra  <amodra@gmail.com>
743         PR target/67356
744         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
745         for operand 1.
747 2015-08-27  Richard Biener  <rguenther@suse.de>
749         * passes.c (rest_of_decl_compilation): Guard early_global_decl
750         call with !seen_error ().
751         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
752         early debug generation and finish...
753         (symbol_table::compile): ... here to put it after a !seen_error ()
754         guard.
756 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
758         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
759         Solaris 12+.
761 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
762             Andre Vieira  <andre.simoesdiasvieira@arm.com>
764         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
765         (*cb<optab><mode>1): Likewise.
766         (*tb<optab><mode>1): Likewise.
767         (*cb<optab><mode>1): Likewise.
768         * config/aarch64/iterators.md (inv_cb): New code attribute.
769         (inv_tb): Likewise.
770         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
771         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
773 2015-08-27  Richard Biener  <rguenther@suse.de>
775         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
777 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
779         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
780         trap to fix ICE.
782 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
784         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
785         Add declaration.
787         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
788         comment.
789         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
790         floating point in VSX registers.
791         (rs6000_output_move_128bit): Always print out the set insn if we
792         can't generate an appropriate 128-bit move.
793         (rs6000_generate_compare): Add support for IEEE 128-bit floating
794         point in VSX registers comparisons.
795         (rs6000_expand_float128_convert): Likewise.
797         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
798         predicate for only GPR hard registers.
800         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
801         modes to iterators. Add new iterators for moving 128-bit values in
802         scalar FPR registers and VSX registers.
803         (FMOVE128): Likewise.
804         (FMOVE128_FPR): Likewise.
805         (FMOVE128_GPR): Likewise.
806         (FMOVE128_VSX): Likewise.
807         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
808         in VSX registers.
809         (IFKF): Likewise.
810         (IBM128): Likewise.
811         (TFIFKF): Likewise.
812         (RELOAD): Add IEEE 128-bit floating point modes.
813         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
814         floating point in VSX registers modes.
815         (signbit<mode>2, IBM128 iterator): Likewise.
816         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
817         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
818         (negtf2): Likewise.
819         (neg<mode>2, TFIFKF iterator): Likewise.
820         (negtf2_internal): Likewise.
821         (abstf2): Likewise.
822         (abs<mode>2, TFIFKF iterator): Likewise.
823         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
824         VSX insn support for negate, absolute value, and negative absolute
825         value.
826         (ieee_128bit_vsx_neg<mode>2): Likewise.
827         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
828         (ieee_128bit_vsx_abs<mode>2): Likewise.
829         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
830         (ieee_128bit_vsx_nabs<mode>2): Likewise.
831         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
832         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
833         floating point in VSX registers.
834         (unpack<mode>_dm): Likewise.
835         (unpack<mode>_nodm): Likewise.
836         (pack<mode>): Likewise.
837         (unpackv1ti): Likewise.
838         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
839         (packv1ti): Likewise.
840         (pack<mode>, FMOVE128_VSX iterator): Likewise.
841         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
842         registers.
843         (extenddftf2_internal): Likewise.
844         (trunctfdf2): Likewise.
845         (trunctfdf2_internal2): Likewise.
846         (fix_trunc_helper): Likewise.
847         (fix_trunctfdi2"): Likewise.
848         (floatditf2): Likewise.
849         (floatuns<mode>tf2): Likewise.
850         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
851         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
852         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
853         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
854         (float<SDI:mode><IFKF:mode>2): Likewise.
855         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
857 2015-08-26  Renlin Li  <renlin.li@arm.com>
859         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
861 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
862             Jiong Wang  <jiong.wang@arm.com>
864         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
865         (tlsie_tiny_<mode>): New define_insn.
866         (tlsie_tiny_sidi): Likewise.
867         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
868         SYMBOL_TINY_TLSIE.
869         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
870         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
871         SYMBOL_TINY_TLSIE.
872         (aarch64_expand_mov_immediate): Likewise.
873         (aarch64_print_operand): Likewise.
874         (arch64_classify_tls_symbol): Likewise.
876 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
878         * config/arm/arm-arches.def: Replace single value flags with
879         an initializer built from ARM_FSET_MAKE_CPU1.
880         * config/arm/arm-cores.def: Likewise.
881         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
882         derivation from the ARM_CORE macro definition, use the given value
883         instead.
884         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
885         ARM_ARCH macro definition, use the given value instead.
887 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
889         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
890         feature set.
891         (struct builtin_description): Replace field mask with field
892         features.
893         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
894         (IWMMXT2_BUILTIN): Likewise.
895         (IWMMXT2_BUILTIN2): Likewise.
896         (FP_BUILTIN): Likewise.
897         (CRC32_BUILTIN): Likewise.
898         (CRYPTO_BUILTIN): Likewise.
899         (iwmmx_mbuiltin): Likewise.
900         (iwmmx2_mbuiltin): Likewise.
901         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
902         struct builtin_description.
904 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
906         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
907         (struct builtin_description): Change type of mask to unsigned
908         long.
909         * config/arm/arm-protos.h (insn_flags): Declare as type
910         arm_feature_set.
911         (tune_flags): Likewise.
912         * config/arm/arm.c (feature_count): New.
913         (insn_flags): Define as type arm_feature_set.
914         (tune_flags): Likewise.
915         (struct processors): Define field flags as type arm_feature_set.
916         (all_cores): Update for change to struct processors.
917         (all_architectures): Likewise.
918         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
919         macros.
920         (arm_option_override_internal): Likewise.
921         (arm_option_override): Likewise.
923 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
924             Jiong Wang  <jiong.wang@arm.com>
926         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
927         tls size for tiny, small, large memory model.
928         (aarch64_load_symref_appropriately): Support new symbol types.
929         (aarch64_expand_mov_immediate): Likewise.
930         (aarch64_print_operand): Likewise.
931         (aarch64_classify_tls_symbol): Likewise.
932         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
933         (aarch64_symbol_type): Likewise.
934         * config/aarch64/aarch64.md (tlsle): Deleted.
935         (tlsle12_<mode>): New define_insn.
936         (tlsle24_<mode>): Likewise.
937         (tlsle32_<mode>): Likewise.
938         (tlsle48_<mode>): Likewise.
939         * doc/sourcebuild.texi (AArch64-specific attributes): Document
940         "aarch64_tlsle32".
942 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
944         * config/arm/arm-protos.h (FL_NONE): New.
945         (FL_ANY): New.
946         (arm_feature_set): New.
947         (ARM_FSET_MAKE): New.
948         (ARM_FSET_MAKE_CPU1): New.
949         (ARM_FSET_MAKE_CPU2): New.
950         (ARM_FSET_CPU1): New.
951         (ARM_FSET_CPU2): New.
952         (ARM_FSET_EMPTY): New.
953         (ARM_FSET_ANY): New.
954         (ARM_FSET_HAS_CPU1): New.
955         (ARM_FSET_HAS_CPU2): New.
956         (ARM_FSET_HAS_CPU): New.
957         (ARM_FSET_ADD_CPU1): New.
958         (ARM_FSET_ADD_CPU2): New.
959         (ARM_FSET_DEL_CPU1): New.
960         (ARM_FSET_DEL_CPU2): New.
961         (ARM_FSET_UNION): New.
962         (ARM_FSET_INTER): New.
963         (ARM_FSET_XOR): New.
964         (ARM_FSET_EXCLUDE): New.
965         (AFM_FSET_IS_EMPTY): New.
966         (ARM_FSET_CPU_SUBSET): New.
968 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
970         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
971         SYMBOL_TLSLE to SYMBOL_TLSLE24.
972         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
973         Likewise.
974         (aarch64_expand_mov_immediate): Likewise.
975         (aarch64_print_operand): Likewise.
976         (aarch64_classify_symbol): Likewise.
978 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
980         * config/aarch64/aarch64.opt (mtls-size): New entry.
981         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
982         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
983         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
985 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
987         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
988         ARM_CORE entry.  Fix some white-space.
989         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
990         ARM_CORE definition.
992 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
994         * fold-const.c (fold_binary_loc) : Move Optimize 
995         root(x)*root(y) as root(x*y) to match.pd.
996         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
997         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
998         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
999         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
1000         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
1001         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
1002         (mult (exps:s @0) (exps:s @1)) : New simplifier.
1003         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
1004         (rdiv @0 (exps:s @1)) : New simplifier.
1006 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
1008         * gcc.c (driver::finalize): Only assign to extra_specs if
1009         [EXTRA_SPECS].
1011 2015-08-25  Marek Polacek  <polacek@redhat.com>
1013         PR middle-end/67330
1014         * varasm.c (declare_weak): Return after giving an error.
1016 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
1018         * gcc-main.c (main): Add params to driver ctor.
1019         * gcc.c (class env_manager): New.
1020         (env): New global.
1021         (env_manager::init): New.
1022         (env_manager::get): New.
1023         (env_manager::xput): New.
1024         (env_manager::restore): New.
1025         Poison getenv and putenv.
1026         (DEFAULT_TARGET_SYSTEM_ROOT): New.
1027         (target_system_root): Update initialization to use
1028         DEFAULT_TARGET_SYSTEM_ROOT.
1029         (struct spec_list): Add field "default_ptr".
1030         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
1031         (init_spec): Likewise.
1032         (set_spec): Clear field "default_ptr".
1033         (read_specs): Free "spec" and "buffer".
1034         (xputenv): Reimplement in terms of env_manager.
1035         (process_command): Replace ::getenv calls with calls to the
1036         env_manager singleton.
1037         (process_brace_body): Free string in three places.
1038         (driver::driver): New.
1039         (driver::~driver): New.
1040         (used_arg): Convert from a function to...
1041         (class used_arg_t): ...this class, and...
1042         (used_arg): ...this new global instance.
1043         (used_arg_t::finalize): New function.
1044         (getenv_spec_function): Add "const" to local "value".  Replace
1045         ::getenv call with call to the env_manager singleton.
1046         (path_prefix_reset): New function.
1047         (driver::finalize): New function.
1048         * gcc.h (driver::driver): New.
1049         (driver::~driver): New.
1050         (driver::finalize): New.
1052 2015-08-25  Nathan Sidwell  <nathan@acm.org>
1054         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
1055         target doesn't have one.
1057 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
1059         PR target/67346
1060         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
1062 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
1064         PR target/67344
1065         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
1066         a define_insn, remove second alternative.
1068 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
1069             Joseph Myers  <joseph@codesourcery.com>
1071         * gcc.c (struct switchstr): Expand comment.
1073 2015-08-25  Nathan Sidwell  <nathan@acm.org>
1075         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
1076         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
1078 2015-08-25  Richard Biener  <rguenther@suse.de>
1080         PR middle-end/67306
1081         * genmatch.c (expr::gen_transform): Verify the result of
1082         builtin_decl_implicit.
1083         (dt_simplify::gen_1): Likewise.
1085 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1087         * config/arm/constraints.md: Also list Cs and US ARM-specific
1088         constraints as used.
1090 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1092         PR target/66609
1093         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
1094         UNSPEC_PCREL.
1095         (nonpic_symbol_mentioned_p): Likewise.
1096         (sh_delegitimize_address): Likewise.
1097         (sh_function_ok_for_sibcall): Take into account weak symbols.
1098         (sh_expand_sym_label2reg): New.
1099         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
1100         * config/sh/sh.md (UNSPEC_PCREL): New enum.
1101         (call_pcrel): Use sh_expand_sym_label2reg.
1102         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1103         (symPCREL_label2reg) New expand.
1105 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
1107         * graphite-poly.c: Change type of region from void* to sese.
1108         * graphite-poly.h (struct scop): Changing the type of scop::region
1109         from void* to sese. Change accessor macro accordingly.
1110         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
1112 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
1114         * graphite-scop-detection.c (stmt_simple_for_scop_p):
1115         Constrain only on INTEGER_TYPE.
1117 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1119         PR target/67211
1120         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
1121         -mefficient-unaligned-vsx on ISA 2.7.
1123         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
1124         option to a masked option.
1126         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
1127         logic for -mefficient-unaligned-vsx so that it is set via an arch
1128         ISA option, instead of being set if -mtune=power8 is set. Move
1129         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
1130         near other default option handling.
1132 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1134         * genflags.c (gen_macro): Delete.
1135         (gen_proto): Don't create GEN.*CALL.* macros.
1136         * gensupport.h (get_file_location): Declare.
1137         * gensupport.c (rtx_locs): New variable.
1138         (read_md_rtx): Record rtx locations.
1139         (get_file_location): New function.
1140         * target-insns.def (call, call_pop, call_value, call_value_pop)
1141         (sibcall, sibcall_value): New patterns.
1142         * gentarget-def.c (parse_argument): New function.
1143         (def_target_insn): Use it.  Handle optional operands.  Raise an
1144         error if an .md pattern has the wrong number of operands for the
1145         pattern name.  Remove the names of unused operands from the prototype.
1146         * builtins.c (expand_builtin_apply): Use targetm functions
1147         instead of HAVE_call_value and GEN_CALL_VALUE.
1148         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
1149         and sibcall_value_pop.
1150         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
1151         of GEN_CALL.
1152         * config/alpha/alpha.md (untyped_call): Likewise.
1153         * config/iq2000/iq2000.md (untyped_call): Likewise.
1154         * config/m68k/m68k.md (untyped_call): Likewise.
1155         * config/mips/mips.md (untyped_call): Likewise.
1156         * config/pa/pa.md (untyped_call): Likewise.
1157         * config/rs6000/rs6000.md (untyped_call): Likewise.
1158         * config/sparc/sparc.md (untyped_call): Likewise.
1159         * config/tilegx/tilegx.md (untyped_call): Likewise.
1160         * config/tilepro/tilepro.md (untyped_call): Likewise.
1161         * config/visium/visium.md (untyped_call): Likewise.
1162         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
1163         gen_call_value instead of GEN_CALL_VALUE.
1164         * config/arm/arm.md (untyped_call): Likewise.
1165         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
1166         GEN_CALL.
1168 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1170         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
1171         (have_cbranchcc4): New variable.
1172         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
1173         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
1174         (if_convert): Initialize have_cbranchcc4.
1176 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1178         * builtins.c (expand_cmpstrn): Rename to...
1179         (expand_cmpstrn_or_cmpmem): ...this.
1180         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
1181         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
1182         Remove mode argument.
1183         (expand_builtin): Update accordingly.
1185 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1187         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
1188         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
1189         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
1190         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
1191         Add predicates for operands 0 and 3.
1192         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
1193         operand.
1194         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
1195         immediate_operand to nonmemory_operand.
1197 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1199         * df-scan.c (df_insn_info_init_fields): New function, split out
1200         from...
1201         (df_insn_create_insn_record): ...here.
1202         (df_insn_info_free_fields): New function, split out from...
1203         (df_insn_info_delete): ...here.
1204         (df_insn_rescan): Use the new functions instead of freeing and
1205         reallocating the df_insn_info.
1207 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1209         * doc/install.texi (Binaries): Remove links no longer valid.
1211 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
1213         * config/nvptx/mkoffload.c (process): Replace
1214         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
1216 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1218         PR target/67329
1219         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
1221 2015-08-24  Renlin Li  <renlin.li@arm.com>
1223         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1224         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1225         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1226         * config/arm/constraints.md ("j"): Add check for high code.
1228 2015-08-24  Tom de Vries  <tom@codesourcery.com>
1230         PR tree-optimization/65468
1231         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
1232         chunk_size is one.
1234 2015-08-24  Nathan Sidwell  <nathan@acm.org>
1236         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
1237         change to nvptx_type_from_mode call. Use arg_promotion for both
1238         split and non-split args.
1240 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1242         * target-insns.def (movstr): New pattern.
1243         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
1244         (expand_movstr): Use targetm rather than HAVE_movstr/
1245         CODE_FOR_movstr.
1247 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1249         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
1250         cast syntax.
1252 2015-08-24  Andrew Pinski  <apinski@cavium.com>
1254         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
1255         AARCH64_EXTRA_TUNING_OPTION.
1256         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
1257         (aarch64_extra_tuning_flags): Base the shifted value on the index instead
1258         of the argument to AARCH64_EXTRA_TUNING_OPTION.
1259         * config/aarch64/aarch64.c: Remove the last argument to
1260         AARCH64_EXTRA_TUNING_OPTION.
1262 2015-08-23  Nathan Sidwell  <nathan@acm.org>
1264         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
1265         decls.
1266         (nvptx_declare_function_name): Insert formatting tabs for
1267         consistency.
1269 2015-08-23  Tom de Vries  <tom@codesourcery.com>
1271         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
1272         parm_decl, rather than generating a dummy default def in cfun.
1273         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
1274         ssa_name from cfun and child_fn do not share a stmt as def stmt.
1275         (move_stmt_op): Handle PARM_DECl.
1276         (gather_ssa_name_hash_map_from): New function.
1277         (move_sese_region_to_fn): Add default defs for function params, and add
1278         them to vars_map.  Release copied ssa names.
1279         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
1281 2015-08-23  Tom de Vries  <tom@codesourcery.com>
1283         * doc/sourcebuild.texi: Rename vect_no_int_max with
1284         vect_no_int_min_max.  Update description.
1286 2015-08-22  Andrew Pinski  <apinski@cavium.com>
1288          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
1289         * config/aarch64/aarch64-protos.h
1290         (aarch64_fusion_pairs_index): New enum.
1291         (aarch64_fusion_pairs): Base the shifted value on the index instead
1292         Rewrite AARCH64_FUSE_ALL to be based on the end index.
1293         of the argument to AARCH64_FUSION_PAIR.
1294         * config/aarch64/aarch64.c: Remove the last argument to
1295         AARCH64_FUSION_PAIR.
1297 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
1299         * dominance.c (new_zero_array): Define.
1300         (dom_info): Redefine as class with proper encapsulation.
1301         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
1302         Add new members.
1303         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
1304         allocations/deallocations.  Pass function as parameter (instead of
1305         using cfun).
1306         (dom_info::get_idom): Define accessor method.
1307         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
1308         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
1309         (calculate_dominance_info): Adjust to use dom_info class.
1310         (verify_dominators): Likewise.
1312 2015-08-21  Alexandre Oliva <aoliva@redhat.com>
1314         * print-rtl.c (print_rtx): Check the correct range for
1315         flag_dump_unnumbered_links to behave as documented.
1317         PR rtl-optimization/67227
1318         PR rtl-optimization/64164
1319         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
1320         (nonoverlapping_memrefs_p): Test offsets and sizes when given
1321         identical gimple_reg exprs.
1323 2015-08-21  Nathan Sidwell  <nathan@acm.org>
1325         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
1326         expansion.
1327         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
1328         crtl->stack_alignment_needed to determine alignment.
1329         (nvptx_get_drap_rtx): New.
1330         (TARGET_GET_DRAP_RTX): Override.
1331         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
1333 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1335         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
1337 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1339         * configure.ac: Remove uwin* cases.
1340         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
1341         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
1342         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
1343         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
1344         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
1345         i[34567]86-*-uwin*, powerpc-*-beos*.
1347 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
1349         * gencodes.c (gencodes): Print the comma for the preceding
1350         enum value rather than the current one.  Use aliased enum values
1351         rather than #defines for compiled-out patterns.
1352         (main): Update accordingly.  Replace LAST_INSN_CODE with
1353         NUM_INSN_CODES.
1354         * lra.c (insn_code_data): Update accordingly.
1355         (finish_insn_code_data_once, get_static_insn_data): Likewise.
1356         * recog.h (target_recog): Likewise.
1357         (preprocess_insn_constraints): Change parameter to unsigned int.
1358         * recog.c (preprocess_insn_constraints): Likewise.
1359         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
1360         * tree-vect-stmts.c (vectorizable_operation): Simplify.
1362 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1364         PR rtl-optimization/61657
1365         * loop-iv.c (iv_number_of_iterations): Declare up and down as
1366         unsigned.  Remove superflous uint64_t cast.
1368 2014-08-21  Felix Yang  <felix.yang@huawei.com>
1369             Jiji Jiang  <jiangjiji@huawei.com>
1371         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
1372         and get builtin function code directly from CALL.
1373         (gimple_stringop_fixed_value): Modified accordingly.
1374         (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
1375         accordingly and only accept BUILT_IN_NORMAL string operations.
1377 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1379         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
1381 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1383         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
1384         to match.pd.
1385         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
1386         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
1387         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
1388         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
1389         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
1390         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
1391         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
1392         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
1393         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
1394         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
1396         * match.pd (SIN ) : New Operator.
1397         (TAN) : New Operator.
1398         (mult (SQRT@1 @0) @1) : New simplifier.
1399         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
1400         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1401         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1402         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
1403         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
1404         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
1405         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
1406         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
1407         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
1408         (rdiv @0 (POW:s @1 @2)) : New simplifier.
1410 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
1412         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
1413         loop if EXPR is simplified to const value.
1415 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
1417         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1418         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
1420 2015-08-21  Richard Biener  <rguenther@suse.de>
1422         PR middle-end/67285
1423         * gimple-fold.c (replace_stmt_with_simplification): Assert
1424         seq is empty when replacing a call with itself but different
1425         arguments.
1426         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
1427         a call require that it is const.
1429 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1431         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
1432         * builtins.c (get_object_alignment_2): Adjust.
1433         * varasm.c (align_variable): Likewise.
1434         (get_variable_align): Likewise.
1435         (build_constant_desc): Likewise.
1436         (force_const_mem): Likewise.
1437         * doc/tm.texi.in: Likewise.
1438         * doc/tm.texi: Regenerate.
1440 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1442         * genconfig.c (main): Always define HAVE_cc0.
1443         * recog.c (rest_of_handle_peephole2): Adjust.
1445 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1447         * reorg.c (relax_delay_slots): Don't use #if to check value of
1448         HAVE_cc0.
1450 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1452         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
1453         * targhooks.c (default_have_conditional_execution): Adjust.
1455 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1457         * rtl.h (rtvec_all_equal_p): Declare.
1458         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
1459         * rtl.c (rtvec_all_equal_p): New function.
1460         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
1461         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
1462         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
1463         * config/arm/arm.c (neon_vdup_constant): Likewise.
1464         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
1465         * config/tilegx/constraints.md (W, Y): Likewise.
1466         * config/tilepro/constraints.md (W, Y): Likewise.
1467         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
1468         (classify_immediate): Use unwrap_const_vec_duplicate.
1469         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
1470         (reg_or_v2s8bit_operand): Likewise.
1471         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
1472         (reg_or_v4s8bit_operand): Likewise.
1474 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1476         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
1477         (vec_shasigma_be): New #define.
1478         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
1479         (VPMSUMH): Likewise.
1480         (VPMSUMW): Likewise.
1481         (VPMSUMD): Likewise.
1482         (VPMSUM): New BU_P8V_OVERLOAD_2.
1483         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
1484         entries for VEC_MADD and VEC_VPMSUM.
1486 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
1488         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
1489         Multiply argument avr_n_flash by 64 to match unit of "KiB".
1490         (avr_pgm_check_var_decl): Same.
1492 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
1494         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
1495         initialization of HFmode scalar type (float16_t) to...
1496         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
1497         code.
1499         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
1501         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
1502         having an -mfp16-format.
1504 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1506         * config/i386/predicates.md (vector_all_ones_operand): Use
1507         CONSTM1_RTX to simplify definition.
1509 2015-08-20  Richard Biener  <rguenther@suse.de>
1511         * toplev.c (compile_file): Remove loop calling late_global_decl
1512         on all symbols.
1513         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
1514         on decls we assembled.
1516 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
1518         * common/config/aarch64/aarch64-common.c
1519         (AARCH64_CPU_NAME_LENGTH): Delete.
1520         (aarch64_option_extension): New.
1521         (all_extensions): Likewise.
1522         (processor_name_to_arch): Likewise.
1523         (arch_to_arch_name): Likewise.
1524         (all_cores): New.
1525         (all_architectures): Likewise.
1526         (aarch64_get_extension_string_for_isa_flags): Likewise.
1527         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
1528         architecture names.
1529         * config/aarch64/aarch64-protos.h
1530         (aarch64_get_extension_string_for_isa_flags): New.
1531         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
1532         (aarch64_option_print): Get the string to print from
1533         aarch64_get_extension_string_for_isa_flags.
1534         (aarch64_declare_function_name): Likewise.
1535         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
1536         (MCPU_TO_MARCH_SPEC): This.
1537         (ASM_CPU_SPEC): Use it.
1538         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
1539         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
1540         (EXTRA_SPEC_FUNCTIONS): Use it.
1542 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
1544         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
1545         expansion when !ISA_HAS_LWL_LWR.
1546         (mips_block_move_straight): Update the size of elements copied to
1547         account for alignment when !ISA_HAS_LWL_LWR.
1548         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
1550 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1552         * expr.c (expand_expr_real_2): Check gimple statement during
1553         LSHIFT_EXPR expand.
1555 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
1557         * common.opt (fstack-protector): Initialize to -1.
1558         (fstack-protector-all): Likewise.
1559         (fstack-protector-strong): Likewise.
1560         (fstack-protector-explicit): Likewise.
1561         * configure.ac: Add --enable-default-ssp.
1562         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
1563         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
1564         -1.
1565         * doc/install.texi: Document --enable-default-ssp.
1566         * config.in: Regenerated.
1567         * configure: Likewise.
1569 2015-08-19  Alexandre Oliva <aoliva@redhat.com>
1571         PR rtl-optimization/64164
1572         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
1573         (parm_in_stack_slot_p): ... this.  Disregard mode, what
1574         matters is whether the parm will live in a pseudo or a stack
1575         slot.
1576         (expand_one_ssa_partition): Deal with params without a default
1577         def.  Disregard mode.
1578         * cfgexpand.h: Renamed function declaration.
1579         * tree-ssa-coalesce.c: Adjust.
1580         * function.c (split_complex_args): Allocate stack slot for
1581         unassigned parms before splitting.
1582         (parm_in_unassigned_mem_p): New.  Use it instead of
1583         parm_maybe_byref_p throughout this file.
1584         (assign_parm_setup_block): Use it.  Accept pseudos in the
1585         expand-assigned rtl.
1586         (assign_parm_setup_reg): Drop BLKmode requirement.
1587         (assign_parm_setup_stack): Allocate and fill in the address of
1588         unassigned MEM parms.
1590 2015-08-19  David Sherwood  <david.sherwood@arm.com>
1592         * genmodes.c (emit_mode_unit_size_inline): New function.
1593         (emit_mode_unit_precision_inline): New function.
1594         (emit_insn_modes_h): Emit new #define.  Emit new functions.
1595         (emit_mode_unit_size): New function.
1596         (emit_mode_unit_precision): New function.
1597         (emit_mode_adjustments): Add mode_unit_size adjustments.
1598         (emit_insn_modes_c): Emit new arrays.
1599         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
1600         use new inline methods.
1602 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1604         * config/aarch64/aarch64.c (bit_count): Delete prototype
1605         and definition.
1606         (aarch64_print_operand): Use popcount_hwi instead of the above.
1608 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1610         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
1611         comment.
1613 2015-08-19  Marek Polacek  <polacek@redhat.com>
1615         PR middle-end/67133
1616         * gimple-ssa-isolate-paths.c
1617         (insert_trap_and_remove_trailing_statements): Rename to ...
1618         (insert_trap): ... this.  Don't remove trailing statements; split
1619         block instead.
1620         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
1622 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
1624         PR other/67042
1625         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
1626         conditionalize the whole on __GNUC__.  Add fallback code
1627         depending neither on undefined nor implementation-defined behaviour.
1629 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1631         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
1632         whitespaces with tab.
1634 2015-08-19  Florian Weimer  <fweimer@redhat.com>
1636         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
1637         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
1638         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
1639         Move Name_Ids instantiation to the Prj.Proc package, to avoid
1640         trampolines.
1642 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1644         * config/arm/arm.c (bounds_check): Use %wd print format
1645         for HOST_WIDE_INT arguments.
1647 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
1649         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
1650         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
1651         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
1652         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
1653         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
1654         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
1655         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
1656         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
1657         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
1658         typedefs.
1660 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
1662         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
1663         function.c, graphite-scop-detection.c, haifa-sched.c,
1664         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
1665         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
1666         varasm.c: Remove typedefs of structs.
1668 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
1670         * config/rs6000/altivec.h (vec_adde): New define.
1671         (vec_addec): Likewise.
1672         (vec_double): Likewise.
1673         (vec_bperm): Likewise.
1674         (vec_gb): Likewise.
1675         * config/rs6000/rs6000-builtin.def (ADDE): New
1676         BU_ALTIVEC_OVERLOAD_3.
1677         (ADDEC): Likewise.
1678         (DOUBLE): New BU_VSX_OVERLOAD_1.
1679         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
1680         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
1681         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
1682         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
1683         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
1684         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
1685         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
1686         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
1687         and P8V_BUILTIN_VEC_VBPERMQ.
1689 2015-08-18  Jason Merrill  <jason@redhat.com>
1691         * print-tree.c (print_node): Handle TREE_BINFO.
1693 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1695         PR middle-end/36757
1696         * builtins.c (expand_builtin_signbit): Add asserts to make sure
1697         we can expand BUILT_IN_SIGNBIT inline.
1698         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
1699         * doc/extend.texi: Document the type-generic __builtin_signbit.
1701 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
1703         PR rtl-optimization/67218
1704         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
1705         (simplify_unary_operation_1): Use it.
1707 2015-08-18  Marek Polacek  <polacek@redhat.com>
1709         PR middle-end/67222
1710         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1711         if the call isn't valid.
1712         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1713         gimple_call_builtin_p.
1714         (call_may_clobber_ref_p_1): Likewise.
1715         (stmt_kills_ref_p): Likewise.
1717 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
1719         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
1720         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
1721         (mips_hard_regno_scratch_ok): Likewise.
1722         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
1723         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
1725 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
1727         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
1728         (determine_value_range): Call refine_value_range_using_guard for
1729         each loop initial condition to improve value range.
1731 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
1733         * config/i386/i386.c: Remove include of fibheap.h.
1735 2015-08-17  Richard Biener  <rguenther@suse.de>
1737         PR tree-optimization/67221
1738         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
1739         (sccvn_dom_walker::before_dom_children): Mark backedges of
1740         non-executable blocks as not executable.
1742 2015-08-17  David Sherwood  <david.sherwood@arm.com>
1744         * config/arm/arm.c (neon_element_bits): Replace call to
1745         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
1746         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
1747         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
1748         (neon_vdup_lane<mode>): Likewise.
1749         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
1750         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
1751         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
1752         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
1753         * config/spu/spu.c (arith_immediate_p): Likewise.
1754         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1755         * expr.c (expand_expr_real_2): Likewise.
1756         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
1757         * simplify-rtx.c (simplify_immed_subreg): Likewise.
1758         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1759         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
1760         New variable.
1761         * fold-const.c (fold_binary_loc): Replace call to
1762         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
1763         GET_MODE_UNIT_PRECISION (m).
1765 2015-08-17  Mike Stump  <mikestump@comcast.net>
1767         * config/arm/arm.c (arm_block_move_unaligned_straight):
1768         Emit normal move instead of unaligned load when source or destination
1769         are appropriately aligned.
1771 2015-08-17  Richard Biener  <rguenther@suse.de>
1772             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1774         PR middle-end/16107
1775         * match.pd (div (coss (op @0) : New simplifier.
1777 2015-08-14  Alexandre Oliva <aoliva@redhat.com>
1779         PR rtl-optimization/64164
1780         PR bootstrap/66978
1781         PR middle-end/66983
1782         PR rtl-optimization/67000
1783         PR middle-end/67034
1784         PR middle-end/67035
1785         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1786         * tree-ssa-copyrename.c: Removed.
1787         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1788         -ftree-coalesce-vars.
1789         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1790         * common.opt (ftree-copyrename): Ignore.
1791         (ftree-coalesce-inlined-vars): Likewise.
1792         * doc/invoke.texi: Remove the ignored options above.
1793         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1794         * tree-ssa-coalesce.h: ... here.
1795         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1796         headers required by it.
1797         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1798         across variables when flag_tree_coalesce_vars.  Check register
1799         use and promoted modes to allow coalescing.  Do not coalesce
1800         maybe-byref parms with SSA_NAMEs of other variables, or
1801         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
1802         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1803         with its member functions to tree-ssa-coalesce.c.
1804         (var_map_base_init): Likewise.  Renamed to
1805         compute_samebase_partition_bases.
1806         (partition_view_normal): Drop want_bases parameter.
1807         (partition_view_bitmap): Likewise.
1808         * tree-ssa-live.h: Adjust declarations.
1809         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
1810         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1811         default defs at the entry point.
1812         (dump_part_var_map): New.
1813         (compute_optimized_partition_bases): New, called by...
1814         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1815         of compute_samebase_partition_bases.  Adjust.
1816         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1817         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
1818         (ssa_default_def_partition): New.
1819         (get_rtl_for_parm_ssa_default_def): New.
1820         (align_local_variable, add_stack_var): Support anonymous SSA
1821         names.
1822         (defer_stack_allocation): Likewise.  Declare earlier.
1823         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1824         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1825         Do no record deferred-allocation marker in
1826         SA.partition_to_pseudo.
1827         (expand_stack_vars): Adjust check for the marker in it.
1828         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1829         redundant MEM attr setting.
1830         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1831         from...
1832         (expand_one_stack_var): ... this.  New wrapper to check and
1833         skip already expanded SSA partitions.
1834         (record_alignment_for_reg_var): New, factored out of...
1835         (expand_one_var): ... this.
1836         (expand_one_ssa_partition): New.
1837         (adjust_one_expanded_partition_var): New.
1838         (expand_one_register_var): Check and skip already expanded SSA
1839         partitions.
1840         (expand_used_vars): Don't create DECLs for anonymous SSA
1841         names.  Expand all SSA partitions, then adjust all SSA names.
1842         (pass::execute): Replace the loops that set
1843         SA.partition_to_pseudo from partition leaders and cleared
1844         DECL_RTL for multi-location variables, and that which used to
1845         rename vars and set attrs, with one that clears DECL_RTL and
1846         checks that PARMs and RESULTs default_defs match DECL_RTL.
1847         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1848         * emit-rtl.c: Include stor-layout.h.
1849         (set_reg_attrs_for_parm): Handle NULL decl.
1850         (set_reg_attrs_for_decl_rtl): Take mode from expression if
1851         it's not a DECL.
1852         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
1853         rather than its possibly-NULL DECL.
1854         * explow.c (promote_ssa_mode): New.
1855         * explow.h (promote_ssa_mode): Declare.
1856         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1857         (read_complex_part): Export.
1858         * expr.h (read_complex_part): Declare.
1859         * cfgexpand.h (parm_maybe_byref_p): Declare.
1860         * function.c: Include cfgexpand.h.
1861         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1862         (use_register_for_parm_decl): Wrapper for the above to
1863         special-case the result_ptr.
1864         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1865         (split_complex_args): Take assign_parm_data_all argument.
1866         Pass it to rtl_for_parm.  Set up rtl and context for split
1867         args.  Reset complex parm before fetching its default decl
1868         rtl.
1869         (assign_parms_unsplit_complex): Use the default-def complex
1870         parm rtl if it matches the components.
1871         (assign_parms_augmented_arg_list): Adjust.
1872         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1873         multiple locations.  Recognize split complex args.
1874         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1875         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1876         (assign_parm_setup_block): Prefer SSA-assigned location, and
1877         fill in its address if the memory location of a maybe-byref
1878         parm was not assigned by cfgexpand.
1879         (assign_parm_setup_reg): Likewise.  Adjust its mode as
1880         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
1881         sure passed_pointer parms don't need conversion.  Copy address
1882         or value as needed.
1883         (assign_parm_setup_stack): Prefer SSA-assigned location.
1884         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1885         rtl before testing for pointer bounds.  Special-case result_ptr.
1886         (expand_function_start): Maybe reset DECL_RTL of result.
1887         Prefer SSA-assigned location for result and static chain.
1888         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
1889         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
1890         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1891         anonymous SSA names.  Use promote_ssa_mode.
1892         (get_temp_reg): Likewise.
1893         (remove_ssa_form): Adjust.
1894         * stor-layout.c (layout_decl): Don't set mem attributes of
1895         non-MEMs.
1896         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1897         and get its reg_usage for reg invalidation.
1898         (compute_bb_dataflow): Pass it insn.
1899         (emit_notes_in_bb): Likewise.
1901 2015-08-14  Marek Polacek  <polacek@redhat.com>
1903         * tree-core.h (tree_base): Fix typo.
1905 2015-08-14  Marek Polacek  <polacek@redhat.com>
1907         PR middle-end/67133
1908         * gimple.c (infer_nonnull_range_by_attribute): Check that the
1909         nonnull argument position is not outside function arguments.
1911 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
1913         PR target/67143
1914         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
1915         'lconst_atomic' with 'const_atomic'.
1916         (atomic_fetch_<optab><mode>): Likewise.
1917         (atomic_<optab>_fetch<mode>): Likewise.
1918         * config/aarch64/iterators.md (lconst-atomic): Move below
1919         'const_atomic'.
1920         (const_atomic): New.
1922 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
1923             Bernd Schmidt  <bernds@codesourcery.com>
1925         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
1926         debug options.
1927         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
1928         (DWARF2_DEBUGGING_INFO): Don't define.
1929         * debug.h (dwarf2_lineno_debug_hooks): Declare.
1930         * toplev.c (process_options): Add a case for it.
1931         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
1932         (dwarf2out_init): Skip most initializations if
1933         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
1934         case.
1935         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
1936         DWARF2_LINENO_DEBUGGING_INFO.
1937         * opts.c (set_debug_level): Likewise.
1939 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
1941         * config/arm/types.md (is_neon_type): Add missing types.
1943 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
1945         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
1946         for skylake.
1947         * config/i386/i386.c (PTA_SKYLAKE): New macros.
1948         (processor_alias_table): Add skylake description.
1949         (enum processor_model): Add skylake processor.
1950         (arch_names_table): Add skylake record.
1951         * doc/invoke.texi: Add skylake item.
1953 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
1955         * ira-int.h: Include recog.h.
1956         * ira-build.c: Don't include recog.h.
1957         * ira-color.c: Likewise.
1958         * ira-conflicts.c: Likewise.
1959         * ira-costs.c: Likewise.
1960         * ira-emit.c: Likewise.
1961         * ira-lives.c: Likewise.
1962         * ira.c: Likewise.
1963         * sched-deps.c: Likewise.
1964         * sel-sched.c: Likewise.
1965         * target-globals.c: Likewise.
1967 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
1969         PR bootstrap/55035
1970         * reload1.c (elimination_costs_in_insn): Make it obvious to the
1971         compiler that the n_dups and n_operands loop bounds are invariant.
1973 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1975         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
1976         expressions in A and B.
1978 2015-08-13  Richard Biener  <rguenther@suse.de>
1980         * tree.c (nonnull_arg_p): Move from ...
1981         * tree-vrp.c (nonnull_arg_p): ... here.
1982         * tree.h (nonnull_arg_p): Declare.
1983         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
1984         here, register ptr != 0 for nonnull_arg_p pointer arguments.
1985         Properly initialize static chain and by-reference result pointer.
1986         (run_scc_vn): Adjust.
1988 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1990         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
1991         TUNE_I6400.
1993 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1995         * config/aarch64/aarch64-protos.h
1996         (aarch64_gen_atomic_cas): Declare.
1997         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
1998         Choose appropriate instruction pattern for the target.
1999         (aarch64_gen_atomic_cas): New.
2000         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
2001         (atomic_compare_and_swap<mode>_1): Rename to
2002         aarch64_compare_and_swap<mode>.  Fix some indentation.
2003         (aarch64_compare_and_swap<mode>_lse): New.
2004         (aarch64_atomic_cas<mode>): New.
2006 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
2008         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
2009         (TARGET_LSE): New.
2011 2015-08-13  Richard Biener  <rguenther@suse.de>
2013         PR tree-optimization/67191
2014         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
2015         assert we value-numbered last stmts operand because it can validly
2016         trigger for unreachable code.
2018 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2020         PR rtl-optimization/67103
2021         * ifcvt.c (noce_try_store_flag_constants): Move
2022         x = (-(test != 0) & (b - a)) + a transformation to...
2023         (noce_try_cmove): ... Here.  Try it if normal conditional
2024         move fails.
2026 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
2028         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
2029         pseudo-processors.
2030         * config/mips/mips.md (processor): Remove w32 and w64.
2032 2015-08-13  Richard Biener  <rguenther@suse.de>
2034         PR tree-optimization/66502
2035         PR tree-optimization/67167
2036         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
2037         backedge arguments.
2038         (vn_phi_lookup): Adjust.
2039         (vn_phi_insert): Likewise.
2040         (visit_phi): Prefer to value-number to another PHI node
2041         over value-numbering to a PHI argument.
2042         (init_scc_vn): Mark DFS back edges.
2044 2015-08-13  Richard Biener  <rguenther@suse.de>
2046         * gimple.h (gcall::code_): New constant static member.
2047         (gcond::code_): Likewise.
2048         * gimple.c (gcall::code_): Define.
2049         (gcond::code_): Likewise.
2050         (is_a_helper <const gcond *>): Add.
2051         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
2052         and forward to a new gcall overload with less checking and a
2053         cheaper way to access the operand.
2054         (gimple_call_lhs_ptr): Likewise.
2055         (gimple_call_set_lhs): Likewise.
2056         (gimple_call_internal_p): Likewise.
2057         (gimple_call_with_bounds_p): Likewise.
2058         (gimple_call_set_with_bounds): Likewise.
2059         (gimple_call_internal_fn): Likewise.
2060         (gimple_call_set_ctrl_altering): Likewise.
2061         (gimple_call_ctrl_altering_p): Likewise.
2062         (gimple_call_fntype): Likewise.
2063         (gimple_call_fn): Likewise.
2064         (gimple_call_fn_ptr): Likewise.
2065         (gimple_call_set_fndecl): Likewise.
2066         (gimple_call_fndecl): Likewise.
2067         (gimple_call_chain): Likewise.
2068         (gimple_call_num_args): Likewise.
2069         (gimple_call_arg): Likewise.
2070         (gimple_call_arg_ptr): Likewise.
2071         (gimple_call_set_arg): Likewise.
2072         (gimple_call_noreturn_p): Likewise.
2073         (gimple_cond_code): Likewise.
2074         (gimple_cond_lhs): Likewise.
2075         (gimple_cond_rhs): Likewise.
2076         (gimple_has_lhs): Reduce checking.
2078 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2080         PR middle-end/25529
2081         * match.pd (div (mult @0 @1) @1) : New simplifier.
2083 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2085         PR target/67071
2086         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
2087         predicate to allow construction of vector constants using the
2088         VSLDOI vector shift instruction.
2090         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
2091         declaration.
2093         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
2094         the number of bytes to be shifted left and filled in with either
2095         all zero or all one bits.
2096         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
2097         methods exist.
2098         (output_vec_const_move): On power8, generate XXLORC to generate
2099         a vector constant with all 1's. Do a split if we need to use a
2100         VSLDOI instruction.
2102         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
2103         properly test for the MSB.
2105         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
2106         vector constants that can be created with VSLDOI.
2108 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
2110         revert:
2111         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2112         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2113         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2114         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2115         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2116         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2117         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2118         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2119         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2121 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
2123         * config/xtensa/constraints.md (define_constraint "Y"): New
2124         constraint.
2125         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
2126         * config/xtensa/linux.h (ASM_SPEC): Likewise.
2127         * config/xtensa/predicates.md (move_operand): Match constants
2128         and symbols in the presence of TARGET_AUTO_LITPOOLS.
2129         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
2130         immediate references to TLS data.
2131         (xtensa_emit_move_sequence): Don't force constants to memory in
2132         the presence of TARGET_AUTO_LITPOOLS.
2133         (print_operand): Add 'y' format, same as default, but capable of
2134         printing SF mode constants as well.
2135         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
2136         (movsf_internal): Add movi pattern that loads literal.
2137         (movsf, movdf): Don't force constants to memory in the presence
2138         of TARGET_AUTO_LITPOOLS.
2139         (movdf_internal): Add 'Y' constraint.
2140         * config/xtensa/xtensa.opt (mauto-litpools): New option.
2141         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
2143 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
2145         * config/arm/arm-fpus.def: Replace booleans with feature flags.
2146         Update comment.
2147         * config/arm/arm.c (ARM_FPU): Update macro.
2148         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
2149         (TARGET_FP16): Likewise.
2150         (TARGET_CRYPTO): Likewise.
2151         (TARGET_NEON): Likewise.
2152         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
2153         field features.
2155 2015-08-12  Tom de Vries  <tom@codesourcery.com>
2157         PR other/67092
2158         PR other/67098
2159         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
2160         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
2161         accordingly.  Mention default for --with-stage1-ldflags.
2163 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
2165         * config/arm/arm.h (arm_fpu_feature_set): New.
2166         (ARM_FPU_FSET_HAS): New.
2167         (FPU_FL_NONE): New.
2168         (FPU_FL_NEON): New.
2169         (FPU_FL_FP16): New.
2170         (FPU_FL_CRYPTO): New.
2172 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2174         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
2175         after -mcmodel=large -fPIC sorry.
2177 2015-08-12  Richard Biener  <rguenther@suse.de>
2179         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
2180         comparison operand order and commutative ternary op operand order.
2181         (sccvn_dom_walker::cond_stack): New state to track temporary
2182         expressions.
2183         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
2184         no longer valid.
2185         (sccvn_dom_walker::record_cond): Add a single temporary conditional
2186         expression.
2187         (sccvn_dom_walker::record_conds): Add a temporary conditional
2188         expressions and all related expressions also true/false.
2189         (sccvn_dom_walker::before_dom_children): Record temporary
2190         expressions based on the controlling condition of a single
2191         predecessor.  When trying to simplify a conditional statement
2192         lookup expressions we might have inserted earlier.
2194 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
2196         PR target/67127
2197         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
2198         to ARM core registers.
2200 2015-08-12  Nathan Sidwell  <nathan@acm.org>
2202         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
2203         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
2205 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
2207         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
2208         line with comments.
2209         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
2211 2015-08-12  Richard Biener  <rguenther@suse.de>
2213         * gimple.h (remove_pointer): New trait.
2214         (GIMPLE_CHECK2): New inline template function.
2215         (gassign::code_): New constant static member.
2216         (is_a_helper<const gassign *>): Add.
2217         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
2218         and forward to a new gassign overload with less checking and a
2219         cheaper way to access the operand.
2220         (gimple_assign_lhs_ptr): Likewise.
2221         (gimple_assign_set_lhs): Likewise.
2222         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
2223         Likewise.
2224         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
2225         Likewise.
2226         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
2227         Likewise.
2228         (gimple_assign_rhs_code): Likewise.
2229         * gimple.c (gassign::code_): Define.
2231 2015-08-12  Richard Biener  <rguenther@suse.de>
2233         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2234         Eliminate edges marked as not executable by SCCVN.
2235         * tree-ssa-sccvn.c: Include gimple-iterator.h.
2236         (cond_dom_walker): Rename to sccvn_dom_walker.
2237         (sccvn_dom_walker::before_dom_children): Value-number defs
2238         of all stmts.
2239         (run_scc_vn): Remove loop value-numbering all SSA names.
2240         Drop not visited SSA names to varying.
2242 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
2244         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2245         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2246         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2247         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2248         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2249         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2250         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2251         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2252         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2254 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
2256         PR target/66954
2257         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
2258         to enum feature_priority and feature_list.
2259         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
2260         and isa_names_table.
2262 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
2264         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
2265         vect_induction_def.
2267 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2269         PR c/66098
2270         PR c/66711
2271         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
2272         account when deciding what was the command-line status.
2274 2015-08-11  Nathan Sidwell  <nathan@acm.org>
2276         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
2278         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
2279         we're not the only contributor to target phi.
2281 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
2283         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
2284         FIXED_REG0.
2286 2015-08-11  Tom de Vries  <tom@codesourcery.com>
2288         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
2290 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
2292         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
2293         with CPU_SLM.
2294         * config/i386/i386.md (cpu): Remove knl.
2296 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
2298         PR libgomp/65742
2299         PR middle-end/66332
2300         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
2301         open-coded sequence.
2302         * omp-low.c (oacc_process_reduction_data): Remove handline of
2303         GOMP_DEVICE_HOST_NONSHM.
2305         * lto-streamer-in.c (lto_input_mode_table): Adjust to
2306         GET_MODE_INNER changes.
2308 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
2309             Ilya Verbin  <ilya.verbin@intel.com>
2311         * lto-streamer-in.c (lto_input_mode_table): Correctly advance
2312         iterator.
2314 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2316         * doc/options.texi (EnabledBy): Document that the argument must be
2317         a Common option.
2318         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
2319         Not enabled by -Wall.
2320         * optc-gen.awk: Give nicer error messages. Detect if the argument
2321         of EnabledBy is not a Common option.
2322         * common.opt (Wnull-dereference): Not enabled by -Wall.
2323         * opt-functions.awk (lang_enabled_by): Nicer error messages.
2325 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2327         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
2328         model == 0x4f as Broadwell.
2330 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
2332         PR rtl-optimization/67028
2333         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
2334         Add test to see if a const_int fits in the new mode.
2336 2015-08-07  DJ Delorie  <dj@redhat.com>
2338         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
2339         
2340 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2342         PR rtl-optimization/67029
2343         * ira-color.c: Include "recog.h" before including "ira-int.h".
2344         * target-globals.c: Likewise.
2345         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
2346         adds an alternative_mask argument and use it instead of
2347         preferred_alternatives.
2348         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
2349         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
2350         * sched-deps.c: Include "ira-int.h" after including "ira.h".
2351         (sched_analyze_insn): Update call to
2352         ira_implicitly_set_insn_hard_regs.
2353         * sel-sched.c: Include "ira-int.h" after including "ira.h".
2354         (implicit_clobber_conflict_p): Update call to
2355         ira_implicitly_set_insn_hard_regs.
2357 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
2359         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
2361 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2363         PR target/67002
2364         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
2365         currently_expanding_to_rtl is set.
2367 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
2369         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
2370         * configure: Regenerate.
2372 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2373             Jiong Wang  <jiong.wang@arm.com>
2375         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2376         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2377         (REG_CLASS_NAMES): Likewise.
2378         (REG_CLASS_CONTENTS): Likewise.
2379         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2380         (aarch64_register_move_cost): Likewise.
2381         (aarch64_load_symref_appropriately): Invoke the new added pattern if
2382         possible.
2383         * config/aarch64/constraints.md (Uc0): New constraint.
2385 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
2387         * config/aarch64/constraints.md (Usf): Add the test of
2388         aarch64_is_noplt_call_p.
2390 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
2392         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
2393         declaration.
2394         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
2395         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
2396         (call_symbol): Likewise.
2398 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2400         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
2401         for vectorizing multiplication patterns.
2402         * tree-vectorizer.h: Adjust the number of patterns.
2404 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
2406         * config/i386/sse.md (*vec_concatv2df): Declare added
2407         alternatives as sselog type.
2409 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2411         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
2412         all GPRs.
2414 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2416         * config/s390/s390.c (s390_expand_tbegin): Expand either
2417         tbegin_1_z13 or tbegin_1 depending on VX flag.
2418         * config/s390/s390.md ("tbegin_1_z13"): New expander.
2420 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2422         * config/s390/s390.opt: Clarify description for -mzvector
2423         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
2424         -mzvector.
2426 2015-08-06  Richard Biener  <rguenther@suse.de>
2428         * gimple.h (gimple_call_set_fn): Access op member directly.
2429         (gimple_call_chain_ptr): Likewise.
2430         (gimple_call_set_chain): Likewise.
2431         (gimple_cond_lhs_ptr): Likewise.
2432         (gimple_cond_set_lhs): Likewise.
2433         (gimple_cond_rhs_ptr): Likewise.
2434         (gimple_cond_set_rhs): Likewise.
2435         (gimple_cond_true_label): Likewise.
2436         (gimple_cond_set_true_label): Likewise.
2437         (gimple_cond_set_false_label): Likewise.
2438         (gimple_cond_false_label): Likewise.
2439         (gimple_label_label): Likewise.
2440         (gimple_label_set_label): Likewise.
2441         (gimple_goto_set_dest): Likewise.
2442         (gimple_asm_input_op): Likewise.
2443         (gimple_asm_input_op_ptr): Likewise.
2444         (gimple_asm_set_input_op): Likewise.
2445         (gimple_asm_output_op): Likewise.
2446         (gimple_asm_output_op_ptr): Likewise.
2447         (gimple_asm_set_output_op): Likewise.
2448         (gimple_asm_clobber_op): Likewise.
2449         (gimple_asm_set_clobber_op): Likewise.
2450         (gimple_asm_label_op): Likewise.
2451         (gimple_asm_set_label_op): Likewise.
2452         (gimple_switch_index): Likewise.
2453         (gimple_switch_index_ptr): Likewise.
2454         (gimple_return_retval_ptr): Likewise.
2455         (gimple_return_retval): Likewise.
2456         (gimple_return_set_retval): Likewise.
2457         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
2458         (gimple_switch_label): Likewise.
2459         (gimple_switch_set_label): Likewise.
2461 2015-08-06  Richard Biener  <rguenther@suse.de>
2463         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
2464         bool comparison canonicalization and restrict to integers.
2466 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
2468         * coretypes.h (enum symbol_visibility): Relocate here.
2469         * flag-types.h (enum symbol_visibility): Remove.
2470         * tree-core.h (enum symbol_visibility): Remove.
2472 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
2474         PR target/66870
2475         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
2476         for no_split_stack function attribute along with
2477         flag_split_stack.
2478         (rs6000_expand_split_stack_prologue): Likewise.
2480 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2481             Jeff Law  <law@redhat.com>
2483         PR c/16351
2484         * doc/invoke.texi (Wnull-dereference): New.
2485         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
2486         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
2487         Warn for potential NULL dereferences.
2488         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
2489         * ubsan.c (instrument_nonnull_arg): Call
2490         infer_nonnull_range_by_attribute.
2491         (instrument_nonnull_return): Likewise.
2492         * common.opt (Wnull-dereference); New.
2493         * gimple.c (infer_nonnull_range): Remove bool arguments.
2494         (infer_nonnull_range_by_dereference): New.
2495         (infer_nonnull_range_by_attribute): New.
2496         * gimple.h: Update declarations.
2498 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2500         * gensupport.c (sequence_num): Replace with...
2501         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
2502         ...these new variables.
2503         (init_rtx_reader_args_cb): Update accordingly.
2504         (get_num_code_insns): Likewise.
2505         (read_md_rtx): Rework to use a while loop and get_c_test.
2506         Use the new counters.  Remove redundant DEFINE_SUBST case.
2507         * genoutput.c (gen_split): Delete.
2508         (main): Don't call it.
2510 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2512         * gensupport.h (get_c_test): Declare.
2513         * gensupport.c (get_c_test): New function.
2514         * genconditions.c (main): Use it.
2515         * genrecog.c (validate_pattern): Likewise.
2516         (match_pattern_1): Likewise.  Remove c_test argument.
2517         (match_pattern): Update accordingly and remove c_test argument.
2518         (main): Update accordingly.
2520 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2522         * gensupport.h (get_num_insn_codes): Declare.
2523         * gensupport.c (get_num_insn_codes): New function.
2524         * genattrtab.c (optimize_attrs): Rename max_insn_code to
2525         num_insn_codes.
2526         (main): Likewise.  Use get_num_insn_codes.
2527         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
2529 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2531         PR middle-end/66311
2532         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
2533         is zero- rather than sign-extended.
2535 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2537         * target-insns.def (can_extend): Delete.
2539 2015-08-05  Richard Biener  <rguenther@suse.de>
2541         PR tree-optimization/67121
2542         * tree-if-conv.c (combine_blocks): Clear range-info produced
2543         by stmts no longer executed conditionally.
2545 2015-08-05  Nick Clifton  <nickc@redhat.com>
2547         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
2548         to allow identical far pointers to remain.
2550 2015-08-05  Richard Biener  <rguenther@suse.de>
2552         PR middle-end/67120
2553         * match.pd: Compare address bases with == if they are decls
2554         or SSA names, not operand_equal_p.  Otherwise fail.
2556 2015-08-05  Richard Biener  <rguenther@suse.de>
2558         PR tree-optimization/67055
2559         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
2560         NULL gimple_block.
2562         * g++.dg/torture/pr67055.C: New testcase.
2564 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2566         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
2567         noavx512vl.
2568         (define_attr "enabled"): Handle avx521vl and noavx512vl.
2569         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
2570         AVX-512 alternative out of SSE.
2571         (define_insn "*vec_concatv2df"): Ditto.
2573 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2575         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
2576         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
2577         CODE_FOR_avx_ptestv4di.
2578         * config/i386/sse.md (define_mode_iterator V_AVX): New.
2579         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
2580         (define_insn "avx_ptest256"): Merge this ...
2581         (define_insn "sse4_1_ptest"): And this ...
2582         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
2584 2015-08-05  Richard Biener  <rguenther@suse.de>
2586         PR tree-optimization/67109
2587         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
2588         against too big groups.  Print whether this is a load or store
2589         group.  Rename from ...
2590         (vect_analyze_group_access): ... this which is now a wrapper
2591         dissolving an invalid group.
2592         (vect_analyze_data_ref_accesses): Print whether this is a load
2593         or store group.
2595 2015-08-05  Richard Biener  <rguenther@suse.de>
2597         PR middle-end/67107
2598         * match.pd: Guard const_binop result checking against NULL_TREE
2599         result.
2601 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
2603         * cse.c (cse_insn): Restoring old behaviour for src_eqv
2604          when dest and value in the REG_EQUAL are same and dest
2605          is STRICT_LOW_PART.
2607 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
2609         * config/moxie/moxie.h (PRINT_OPERAND,
2610           PRINT_OPERAND_ADDRESS): Remove macros.
2611         * config/moxie/moxie-protos.h (moxie_print_operand,
2612           moxie_print_operand_address): Remove declaration.
2613         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
2614           TARGET_PRINT_OPERAND_ADDRESS): Define.
2615           (moxie_print_operand, moxie_print_operand_address): Make static.
2617 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2619         PR target/66731
2620         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
2621         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
2623 2015-08-04  Richard Biener  <rguenther@suse.de>
2625         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
2626         generated code.
2627         (dt_operand::gen_gimple_expr): Adjust.
2629 2015-08-04  Richard Biener  <rguenther@suse.de>
2631         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
2632         bool compares on RHS.
2633         * match.pd: Add X ==/!= !X is false/true pattern.
2635 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
2637         * config/aarch64/aarch64.c: Change inner loop statement cost
2638         to be consistent with other targets.
2640 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
2642         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
2643         targets.
2645 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
2647         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
2648         (machine_function): Remove pseudos field.
2650 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2652         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2653         Exit early and use target_option_current_node if processing current
2654         pragma.
2656 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2658         * doc/extend.texi (AArch64 Function Attributes): New node.
2659         (AArch64 Pragmas): Likewise.
2661 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2663         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2664         Initialize simd builtins if TARGET_SIMD.
2665         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2666         Make sure that the builtins are initialized only once no matter how
2667         many times the function is called.
2668         (aarch64_init_builtins): Unconditionally initialize crc builtins.
2669         (aarch64_relayout_simd_param): New function.
2670         (aarch64_simd_expand_args): Use above during argument expansion.
2671         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
2672         simd builtins if TARGET_SIMD.
2673         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
2674         prototype.
2675         (aarch64_relayout_simd_types): Likewise.
2677 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2679         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
2680         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
2681         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
2682         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2683         static keyword.
2684         (aarch64_reset_previous_fndecl): New function.
2685         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
2686         the string.
2687         * config/aarch64/aarch64-c.c: New file.
2688         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
2689         Push and pop options at beginning and end.  Remove ifdef
2690         __ARM_FEATURE_CRC32.
2691         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
2692         Add pragma +nothing+simd and +nothing+crypto where appropriate.
2693         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
2694         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
2695         Define prototype.
2696         (aarch64_register_pragmas): Likewise.
2697         (aarch64_reset_previous_fndecl): Likewise.
2698         (aarch64_process_target_attr): Likewise.
2699         (aarch64_override_options_internal): Likewise.
2701 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2703         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
2704         New function.
2705         (aarch64_can_inline_p): Likewise.
2706         (TARGET_CAN_INLINE_P): Define.
2708 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2710         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2711         Remove static.  Handle OPT_mgeneral_regs_only,
2712         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
2713         OPT_momit_leaf_frame_pointer.
2714         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
2715         (aarch64_attr_opt_type): New enum.
2716         (aarch64_attribute_info): New struct.
2717         (aarch64_handle_attr_arch): New function.
2718         (aarch64_handle_attr_cpu): Likewise.
2719         (aarch64_handle_attr_tune): Likewise.
2720         (aarch64_handle_attr_isa_flags): Likewise.
2721         (aarch64_attributes): New table.
2722         (aarch64_process_one_target_attr): New function.
2723         (num_occurences_in_str): Likewise.
2724         (aarch64_process_target_attr): Likewise.
2725         (aarch64_option_valid_attribute_p): Likewise.
2726         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2727         * config/aarch64/aarch64-protos.h: Include input.h
2728         (aarch64_handle_option): Declare prototype.
2730 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2732         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
2733         * config/aarch64/aarch64.c: Include target-globals.h
2734         (aarch64_previous_fndecl): New variable.
2735         (aarch64_set_current_function): New function.
2736         (TARGET_SET_CURRENT_FUNCTION): Define.
2738 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2740         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
2741         (explicit_arch): Likewise.
2742         (x_aarch64_isa_flags): Likewise.
2743         (mgeneral-regs-only): Mark as Save.
2744         (mfix-cortex-a53-835769): Likewise.
2745         (mcmodel=): Likewise.
2746         (mstrict-align): Likewise.
2747         (momit-leaf-frame-pointer): Likewise.
2748         (mtls-dialect): Likewise.
2749         (master=): Likewise.
2750         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
2751         (aarch64_isa_flags): Remove extern declaration.
2752         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
2753         to indicate success or failure.
2754         (aarch64_validate_march): Likewise.
2755         (aarch64_validate_mtune): Likewise.
2756         (aarch64_isa_flags): Delete.
2757         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
2758         instead of aarch64_isa_flags.
2759         (aarch64_get_tune_cpu): New function.
2760         (aarch64_get_arch): Likewise.
2761         (aarch64_override_options): Use above and set up explicit_tune_core
2762         and explicit_arch.
2763         (aarch64_print_extension): Move earlier in file.  Add isa_flags
2764         argument and use that instead of the global aarch64_isa_flags.
2765         (aarch64_option_save): New function.
2766         (aarch64_option_restore): Likewise.
2767         (aarch64_option_print): Likewise.
2768         (aarch64_declare_function_name): Likewise.
2769         (aarch64_start_file): Delete.
2770         (TARGET_ASM_FILE_START): Do not define.
2771         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
2772         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
2773         Declare prototype.
2775 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2777         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
2778         flag_omit_leaf_frame_pointer to 2.
2780 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2782         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
2783         define to 0 or 1.
2784         (TARGET_FIX_ERR_A53_835769): New macro.
2785         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2786         handling of opts->x_aarch64_fix_a53_err835769.
2787         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
2788         than aarch64_fix_a53_err835769.
2789         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
2790         * config/aarch64/aarch64-linux.h: Likewise.
2792 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
2794         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
2795         ix86_expand_int_movcc as boolean.
2797 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2799         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
2800         (aarch64_cpu_string): Likewise.
2801         (aarch64_tune_string): Likewise.
2802         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
2803         (aarch64_parse_extension): Return aarch64_parse_opt_result.
2804         Add extra argument to put result into.
2805         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
2806         (aarch64_parse_cpu): Add arguments to put results into. Return
2807         aarch64_parse_opt_result.
2808         (aarch64_parse_tune): Likewise.
2809         (aarch64_override_options_after_change_1): New function.
2810         (aarch64_override_options_internal): New function.
2811         (aarch64_validate_mcpu): Likewise.
2812         (aarch64_validate_march): Likewise.
2813         (aarch64_validate_mtune): Likewise.
2814         (aarch64_override_options): Update to reflect above changes.
2815         Move some logic into aarch64_override_options_internal.
2816         Initialize target_option_default_node and target_option_current_node.
2817         (aarch64_override_options_after_change): Move logic into
2818         aarch64_override_options_after_change_1 and call it with global_options.
2819         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
2820         flag values from that.
2822 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2824         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2825         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
2826         * config/aarch64/aarch64.c (struct processor): Add arch field.
2827         (all_architectures): Handle above, move above all_cores.
2828         (all_cores): Handle above.
2829         (aarch64_parse_arch): Handle above changes.
2830         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
2831         above.  Update comments.
2832         (armv8.1-a): Likewise.
2833         * config/aarch64/aarch64-cores.def: Update according to above.
2834         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
2835         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
2836         aarch64_arch_driver_info.
2838 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2840         * config/aarch64/aarch64.c (struct processor): Add ident field.
2841         Rename core sched_core.
2842         (all_cores): Handle above changes.
2843         (all_architectures): Likewise.
2844         (aarch64_parse_arch): Likewise.
2845         (aarch64_override_options): Likewise.
2847 2015-08-04  Richard Biener  <rguenther@suse.de>
2849         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
2850         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
2851         comparisons embedded in [VEC_]COND_EXPRs.
2853 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
2855         * tree-if-conv.c: Fix various typos in comments.
2856         * tree-vect-stmts.c: Likewise.
2858 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2860         PR tree-optimization/67043
2861         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
2862         preheader after hoisting invariant in it.
2863         (find_defs): Force recomputation of all luids.
2865 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
2867         * config/rs6000/htm.md (tabort.): Restrict the source operand to
2868         using a base register.
2870 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
2872         * main.c (main): Pass in NULL for toplev's external_timer.
2873         * timevar.c: Include coretypes.h.
2874         (class timer::named_items): New.
2875         (timer::named_items::named_items): New.
2876         (timer::named_items::~named_items): New.
2877         (timer::named_items::push): New.
2878         (timer::named_items::pop): New.
2879         (timer::named_items::print): New.
2880         (timer::timer): Initialize field "m_jit_client_items".
2881         (timer::~timer): New.
2882         (timer::push): Move bulk of implementation to...
2883         (timer::push_internal): ...here.  New function.
2884         (timer::pop): Move bulk of implementation to...
2885         (timer::pop_internal): ...here.  New function.
2886         (timer::push_client_item): New.
2887         (timer::pop_client_item): New.
2888         (timer::print_row): New function, taken from timer::print.
2889         (timer::print): Print "GCC items" header if we also have client
2890         items.  Move row-printing to timer::print_row.  Print any client
2891         items.
2892         (timer::get_topmost_item_name): New method.
2893         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
2894         (TV_JIT_CLIENT_CODE): New.
2895         * timevar.h (timer::push_client_item): New declaration.
2896         (timer::pop_client_item): New declaration.
2897         (timer::get_topmost_item_name): New method.
2898         (timer::push_internal): New declaration.
2899         (timer::pop_internal): New declaration.
2900         (timer::print_row): New declaration.
2901         (timer::named_items): New declaration.
2902         (timer::m_jit_client_items): New field.
2903         (timer): Add friend class named_items.
2904         (auto_timevar::auto_timevar): Add timer param.
2905         (auto_timevar::~auto_timevar): Use field "m_timer".
2906         (auto_timevar::m_timer): New field.
2907         * toplev.c (initialize_rtl): Add g_timer as param when
2908         constructing auto_timevar instance.
2909         (toplev::toplev): Add "external_timer" param, and use it to
2910         initialize the "g_timer" global if non-NULL.
2911         (toplev::~toplev): If this created "g_timer", delete it.
2912         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
2913         with "external_timer" timer *.
2915 2015-08-03  Alexander Basov <coohpt@gmail.com>
2917         PR middle-end/64744
2918         PR middle-end/48470
2919         PR middle-end/43404
2920         * cfgexpand.c (expand_one_var): Add check if stack is going to
2921         be used in naked function.
2922         * expr.c (expand_expr_addr_expr_1): Remove excess checking
2923         whether expression should not reside in MEM.
2924         * function.c (use_register_for_decl): Do not use registers for
2925         non-register things (volatile, float, BLKMode) in naked functions.
2927 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
2929         PR target/67060
2930         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
2931         Adjust splits to match new pattern.
2933 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2935         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
2936         (VEC_M): Likewise.
2937         (VEC_N): Likewise.
2938         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
2939         point in VSX registers.
2941         * config/rs6000/constraints.md (wb constraint): Document unused
2942         w<x> constraint.
2943         (we constraint): Likewise.
2944         (wo constraint): Likewise.
2945         (wp constraint): New constraint for IEEE 128-bit floating point in
2946         VSX registers.
2947         (wq constraint): Likewise.
2949         * config/rs6000/predicates.md (easy_fp_constant): Add support for
2950         IEEE 128-bit floating point in VSX registers.
2951         (easy_scalar_constant): Likewise.
2953         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
2954         constraints (wp, wq) for IEEE 128-bit floating point in VSX
2955         registers.
2956         (rs6000_init_hard_regno_mode_ok): Likewise.
2958         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
2959         floating point in VSX registers.
2960         (VSX_L): Likewise.
2961         (VSX_M): Likewise.
2962         (VSX_M2): Likewise.
2963         (VSm): Likewise.
2964         (VSs): Likewise.
2965         (VSr): Likewise.
2966         (VSa): Likewise.
2967         (VSv): Likewise.
2968         (vsx_le_permute_<mode>): Add support to properly swap bytes for
2969         IEEE 128-bit floating point in VSX registers on little endian.
2970         (vsx_le_undo_permute_<mode>): Likewise.
2971         (vsx_le_perm_load_<mode>): Likewise.
2972         (vsx_le_perm_store_<mode>): Likewise.
2973         (splitters for IEEE 128-bit fp moves): Likewise.
2975         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
2976         wq constraints.
2978         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
2979         floating point in VSX registers.
2980         (VM2): Likewise.
2982         * doc/md.text (Machine Constraints): Document wp and wq
2983         constraints on PowerPC.
2985 2015-08-03  Jeff Law  <law@redhat.com>
2987         PR middle-end/66314
2988         PR gcov-profile/66899
2989         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
2990         iterate over the jump threading paths when an element in the
2991         jump threading paths array is eliminated.
2993 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
2995         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
2997 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
2999         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
3000         is_use_properly_guarded the variable def_preds.  Free its
3001         contents before returning.
3002         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
3003         (is_use_properly_guarded): Replace local variable def_preds with
3004         a parameter.  Adjust accordingly.  Only update *def_preds if it's
3005         the empty vector.
3007 2015-08-03  Richard Biener  <rguenther@suse.de>
3009         * genmatch.c (simplify::for_subst_vec): New member.
3010         (binary_ok): New helper for for lowering.
3011         (lower_for): Delay substituting operators into result expressions
3012         if we can merge the results eventually again.
3013         (capture_info::walk_result): Adjust for user_id appearing as
3014         result expression operator.
3015         (expr::gen_transform): Likewise.
3016         (dt_simplify::gen_1): Likewise.
3017         (dt_simplify::gen): Pass not substituted operators to tail
3018         functions or initialize local variable with it.
3019         (decision_tree::gen): Adjust function signature.
3020         * match.pd: Fix tests against global code and add default
3021         cases to switch stmts.
3023 2015-08-03  Richard Biener  <rguenther@suse.de>
3025         * genmatch.c (dt_simplify::gen): Create captures array
3026         with an initializer.
3028 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3030         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
3031         the host compiler is affected by placement new aliasing bug.
3032         * configure: Regenerate.
3033         * Makefile.in (ALIASING_FLAGS): New variable.
3034         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
3036 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3038         PR target/66731
3039         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
3040         (negmulsf3_vfp): Likewise.
3041         (muldf3negdf_vfp): Disable for -frounding-math.
3042         (mulsf3negsf_vfp): Likewise.
3043         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
3044         fix MULT cost with -frounding-math.
3046 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3048         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
3049         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
3050         explicit.  Prefer to add the flag whenever possible.
3051         (noce_process_if_block): Try noce_try_store_flag_constants before
3052         noce_try_cmove.
3054 2015-08-03  Richard Biener  <rguenther@suse.de>
3056         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
3057         New hash-map to record equivalent transforms.
3058         (dt_node::analyze): Populate the equivalent transforms hash-map.
3059         (dt_simplify::info): Add reference to hash-map entry.
3060         (dt_simplify::gen): If we have split out a function for the
3061         transform, generate a call to it.
3062         (sinfo_hashmap_traits::hash): New function.
3063         (compare_op): New helper function for ...
3064         (sinfo_hashmap_traits::equal_keys): ... this new function.
3065         (decision_tree::gen): Split out common equivalent transforms
3066         into functions.
3068 2015-08-03  Richard Biener  <rguenther@suse.de>
3070         * gimple-fold.c (fold_gimple_assign): Remove folding of
3071         the comparison in COND_EXPRs.
3073 2015-08-03  Richard Biener  <rguenther@suse.de>
3075         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
3076         on the rhs of assignments first simplify the embedded
3077         GENERIC condition.
3079 2015-08-03  Richard Biener  <rguenther@suse.de>
3081         PR tree-optimization/66917
3082         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
3083         field.
3084         (DR_VECT_AUX): New macro.
3085         (set_dr_misalignment): Adjust.
3086         (dr_misalignment): Likewise.
3087         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3088         Compute whether the base is at least element aligned.
3089         * tree-vect-stmts.c (ensure_base_align): Adjust.
3090         (vectorizable_store): If the base is not element aligned
3091         preserve alignment of the original access if misalignment is unknown.
3092         (vectorizable_load): Likewise.
3094 2015-08-02  Martin Sebor  <msebor@redhat.com>
3096         * c-family/c.opt (-Wframe-address): New warning option.
3097         * doc/invoke.texi (Wframe-address): Document it.
3098         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
3099         Clarify possible effects of calling the functions with non-zero
3100         arguments and mention -Wframe-address.
3101         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
3103 2015-08-01  Michael Collison  <michael.collison@linaro.org
3104             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3106         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
3107         (*arm_umin_cmp): Likewise.
3109 2015-08-01  Caroline Tice  <cmtice@google.com>
3111         PR 66521
3112         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
3113         global variables.
3114         (vtbl_find_mangled_name):  New function.
3115         (vtbl_register_mangled_name):  New function.
3116         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
3117         mangled name in mangled name vectors.
3118         (find_or_create_vtbl_map_node):  Ditto.
3119         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
3120         update recursion_depth on function entry; pass it to every recursive
3121         call; automatically exit if depth > 25 (give up looking at that point).
3122         (verify_bb_vtables):  Initialize recursion_depth and pass it to
3123         var_is_used_for_virtual_call_p.
3124         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
3125         global variable decls.
3126         (vtbl_register_mangled_name): New extern function decl.
3128 2015-08-01  Tom de Vries  <tom@codesourcery.com>
3130         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
3131         function.
3132         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
3133         Declare.
3134         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
3135         operation_no_trapping_overflow.  Allow non-overflow operations.
3136         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
3137         operations.
3139 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3141         PR target/67049
3142         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
3144 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3146         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
3147         Enable for TARGET_32BIT.
3148         (*if_move_neg): Likewise.
3150 2015-07-31  Nick Clifton  <nickc@redhat.com>
3152         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
3153         Returns true for __model__.
3154         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3156 2015-07-31  Alan Modra  <amodra@gmail.com>
3158         PR target/66870
3159         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
3160         (rs6000_emit_prologue): Set it.
3161         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
3163 2015-07-31  Richard Biener  <rguenther@suse.de>
3165         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
3166         -> X == (C1 ^ C2) which is already implemented in match.pd.
3167         Remove redundant dispatching to fold_relational_const.
3168         Move unordered self and NaN compares ...
3169         * match.pd: ... as patterns here.  Remove some stray captures
3170         and add a comment.
3172 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
3174         * config/i386/i386.c
3175         (bdesc_special_args): Convert mask type from signed to unsigned for
3176         masked builtins.
3177         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
3178         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
3179         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
3180         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
3181         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
3182         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
3183         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
3184         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
3185         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
3186         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
3187         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
3188         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
3189         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
3190         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
3191         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
3192         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
3193         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
3194         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
3195         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
3196         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
3197         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
3198         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
3199         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
3200         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
3201         * config/i386/i386-builtin-types.def
3202         (V16QI_FTYPE_V16SI): Remove.
3203         (V8DF_FTYPE_V8SI): Ditto.
3204         (V8HI_FTYPE_V8DI): Ditto.
3205         (V8SI_FTYPE_V8DI): Ditto.
3206         (V8SF_FTYPE_V8DF): Ditto.
3207         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
3208         (V16HI_FTYPE_V16SI): Ditto.
3209         (V16SF_FTYPE_V16HI): Ditto.
3210         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3211         (V16SF_FTYPE_V16SI): Ditto.
3212         (V4DI_FTYPE_V4DI): Ditto.
3213         (V16SI_FTYPE_V16SF): Ditto.
3214         (V16SF_FTYPE_FLOAT): Ditto.
3215         (V8DF_FTYPE_DOUBLE): Ditto.
3216         (V8DI_FTYPE_INT64): Ditto.
3217         (V8DI_FTYPE_V4DI): Ditto.
3218         (V16QI_FTYPE_V8DI): Ditto.
3219         (UINT_FTYPE_V4SF): Ditto.
3220         (UINT64_FTYPE_V4SF): Ditto.
3221         (UINT_FTYPE_V2DF): Ditto.
3222         (UINT64_FTYPE_V2DF): Ditto.
3223         (V16SI_FTYPE_V16SI): Ditto.
3224         (V8DI_FTYPE_V8DI): Ditto.
3225         (V16SI_FTYPE_PV4SI): Ditto.
3226         (V16SF_FTYPE_PV4SF): Ditto.
3227         (V8DI_FTYPE_PV2DI): Ditto.
3228         (V8DF_FTYPE_PV2DF): Ditto.
3229         (V4DI_FTYPE_PV2DI): Ditto.
3230         (V4DF_FTYPE_PV2DF): Ditto.
3231         (V16SI_FTYPE_PV2SI): Ditto.
3232         (V16SF_FTYPE_PV2SF): Ditto.
3233         (V8DI_FTYPE_PV4DI): Ditto.
3234         (V8DF_FTYPE_PV4DF): Ditto.
3235         (V8SF_FTYPE_FLOAT): Ditto.
3236         (V4SF_FTYPE_FLOAT): Ditto.
3237         (V4DF_FTYPE_DOUBLE): Ditto.
3238         (V8SF_FTYPE_PV4SF): Ditto.
3239         (V8SI_FTYPE_PV4SI): Ditto.
3240         (V4SI_FTYPE_PV2SI): Ditto.
3241         (V8SF_FTYPE_PV2SF): Ditto.
3242         (V8SI_FTYPE_PV2SI): Ditto.
3243         (V16SF_FTYPE_PV8SF): Ditto.
3244         (V16SI_FTYPE_PV8SI): Ditto.
3245         (V8DI_FTYPE_V8SF): Ditto.
3246         (V4DI_FTYPE_V4SF): Ditto.
3247         (V2DI_FTYPE_V4SF): Ditto.
3248         (V64QI_FTYPE_QI): Ditto.
3249         (V32HI_FTYPE_HI): Ditto.
3250         (V8UHI_FTYPE_V8UHI): Ditto.
3251         (V16UHI_FTYPE_V16UHI): Ditto.
3252         (V32UHI_FTYPE_V32UHI): Ditto.
3253         (V2UDI_FTYPE_V2UDI): Ditto.
3254         (V4UDI_FTYPE_V4UDI): Ditto.
3255         (V8UDI_FTYPE_V8UDI): Ditto.
3256         (V4USI_FTYPE_V4USI): Ditto.
3257         (V8USI_FTYPE_V8USI): Ditto.
3258         (V16USI_FTYPE_V16USI): Ditto.
3259         (V2DF_FTYPE_V2DF_UINT64): Ditto.
3260         (V2DI_FTYPE_V2DF_V2DF): Ditto.
3261         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
3262         (V8DF_FTYPE_V8DF_V8DI): Ditto.
3263         (V4SF_FTYPE_V4SF_UINT64): Ditto.
3264         (V4SI_FTYPE_V4SF_V4SF): Ditto.
3265         (V16SF_FTYPE_V16SF_V16SI): Ditto.
3266         (V64QI_FTYPE_V32HI_V32HI): Ditto.
3267         (V32HI_FTYPE_V16SI_V16SI): Ditto.
3268         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
3269         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
3270         (V32HI_FTYPE_V64QI_V64QI): Ditto.
3271         (V32HI_FTYPE_V32HI_V32HI): Ditto.
3272         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
3273         (V16SI_FTYPE_V16SI_V4SI): Ditto.
3274         (V16SI_FTYPE_V16SI_V16SI): Ditto.
3275         (V16SI_FTYPE_V32HI_V32HI): Ditto.
3276         (V16SI_FTYPE_V16SI_SI): Ditto.
3277         (V8DI_FTYPE_V8DI_V8DI): Ditto.
3278         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
3279         (V8DI_FTYPE_V16SI_V16SI): Ditto.
3280         (V8DI_FTYPE_V8DI_V2DI): Ditto.
3281         (QI_FTYPE_QI): Ditto.
3282         (SI_FTYPE_SI): Ditto.
3283         (DI_FTYPE_DI): Ditto.
3284         (QI_FTYPE_QI_QI): Ditto.
3285         (QI_FTYPE_QI_INT): Ditto.
3286         (HI_FTYPE_HI_INT): Ditto.
3287         (SI_FTYPE_SI_INT): Ditto.
3288         (DI_FTYPE_DI_INT): Ditto.
3289         (HI_FTYPE_V16QI_V16QI): Ditto.
3290         (SI_FTYPE_V32QI_V32QI): Ditto.
3291         (DI_FTYPE_V64QI_V64QI): Ditto.
3292         (QI_FTYPE_V8HI_V8HI): Ditto.
3293         (HI_FTYPE_V16HI_V16HI): Ditto.
3294         (SI_FTYPE_V32HI_V32HI): Ditto.
3295         (QI_FTYPE_V4SI_V4SI): Ditto.
3296         (QI_FTYPE_V8SI_V8SI): Ditto.
3297         (QI_FTYPE_V2DI_V2DI): Ditto.
3298         (QI_FTYPE_V4DI_V4DI): Ditto.
3299         (QI_FTYPE_V8DI_V8DI): Ditto.
3300         (HI_FTYPE_V16SI_V16SI): Ditto.
3301         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
3302         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
3303         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
3304         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
3305         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
3306         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
3307         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
3308         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
3309         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
3310         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
3311         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
3312         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
3313         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
3314         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
3315         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
3316         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
3317         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
3318         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
3319         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
3320         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
3321         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
3322         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
3323         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
3324         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
3325         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
3326         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
3327         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
3328         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
3329         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
3330         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
3331         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
3332         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
3333         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
3334         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
3335         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
3336         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
3337         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
3338         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
3339         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
3340         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
3341         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
3342         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
3343         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
3344         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
3345         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
3346         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
3347         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
3348         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
3349         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
3350         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
3351         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
3352         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
3353         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
3354         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
3355         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
3356         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
3357         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
3358         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
3359         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
3360         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
3361         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
3362         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
3363         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
3364         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
3365         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
3366         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
3367         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
3368         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
3369         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
3370         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
3371         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
3372         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
3373         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
3374         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
3375         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
3376         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
3377         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
3378         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
3379         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
3380         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
3381         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
3382         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
3383         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
3384         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
3385         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
3386         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
3387         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
3388         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
3389         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
3390         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
3391         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
3392         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
3393         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
3394         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
3395         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
3396         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
3397         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
3398         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
3399         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
3400         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
3401         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
3402         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3403         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3404         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3405         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
3406         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
3407         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
3408         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
3409         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
3410         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
3411         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
3412         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
3413         (HI_FTYPE_HI): Ditto.
3414         (HI_FTYPE_V16QI): Ditto.
3415         (SI_FTYPE_V32QI): Ditto.
3416         (DI_FTYPE_V64QI): Ditto.
3417         (QI_FTYPE_V8HI): Ditto.
3418         (HI_FTYPE_V16HI): Ditto.
3419         (SI_FTYPE_V32HI): Ditto.
3420         (QI_FTYPE_V4SI): Ditto.
3421         (QI_FTYPE_V8SI): Ditto.
3422         (HI_FTYPE_V16SI): Ditto.
3423         (QI_FTYPE_V2DI): Ditto.
3424         (QI_FTYPE_V4DI): Ditto.
3425         (QI_FTYPE_V8DI): Ditto.
3426         (V16QI_FTYPE_HI): Ditto.
3427         (V32QI_FTYPE_SI): Ditto.
3428         (V64QI_FTYPE_DI): Ditto.
3429         (V8HI_FTYPE_QI): Ditto.
3430         (V16HI_FTYPE_HI): Ditto.
3431         (V32HI_FTYPE_SI): Ditto.
3432         (V4SI_FTYPE_QI): Ditto.
3433         (V4SI_FTYPE_HI): Ditto.
3434         (V8SI_FTYPE_QI): Ditto.
3435         (V8SI_FTYPE_HI): Ditto.
3436         (V2DI_FTYPE_QI): Ditto.
3437         (V4DI_FTYPE_QI): Ditto.
3438         (HI_FTYPE_HI_HI): Ditto.
3439         (SI_FTYPE_SI_SI): Ditto.
3440         (DI_FTYPE_DI_DI): Ditto.
3441         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3442         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3443         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3444         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3445         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3446         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3447         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3448         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3449         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3450         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3451         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3452         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3453         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3454         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3455         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3456         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3457         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3458         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3459         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3460         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3461         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
3462         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
3463         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
3464         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
3465         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
3466         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
3467         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
3468         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
3469         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
3470         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
3471         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
3472         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
3473         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
3474         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
3475         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
3476         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
3477         (V16SI_FTYPE_HI): Ditto.
3478         (V8DI_FTYPE_QI): Ditto.
3479         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3480         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3481         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3482         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3483         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3484         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3485         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3486         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3487         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3488         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3489         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3490         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3491         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3492         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3493         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3494         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
3495         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
3496         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3497         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3498         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3499         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3500         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3501         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3502         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3503         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3504         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
3505         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
3506         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
3507         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3508         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3509         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3510         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3511         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3512         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
3513         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
3514         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
3515         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3516         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3517         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3518         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
3519         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3520         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3521         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
3522         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
3523         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3524         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3525         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3526         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3527         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3528         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3529         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3530         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3531         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
3532         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3533         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3534         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3535         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3536         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3537         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3538         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3539         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3540         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3541         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3542         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3543         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3544         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
3545         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
3546         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
3547         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3548         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
3549         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
3550         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
3551         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3552         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
3553         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
3554         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
3555         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
3556         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
3557         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3558         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
3559         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
3560         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3561         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3562         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3563         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3564         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3565         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3566         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3567         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3568         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3569         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3570         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3571         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3572         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3573         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3574         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3575         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3576         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3577         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3578         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3579         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3580         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3581         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3582         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3583         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3584         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3585         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3586         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3587         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3588         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3589         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3590         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3591         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3592         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3593         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3594         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
3595         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
3596         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
3597         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3598         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3599         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3600         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
3601         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3602         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3603         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3604         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3605         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3606         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3607         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3608         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3609         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
3610         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
3611         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
3612         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3613         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3614         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3615         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3616         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3617         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3618         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3619         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3620         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3621         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3622         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3623         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3624         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3625         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3626         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3627         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3628         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3629         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3630         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3631         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3632         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3633         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
3634         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
3635         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
3636         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3637         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3638         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3639         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3640         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3641         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3642         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3643         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3644         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
3645         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3646         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3647         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
3648         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3649         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3650         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
3651         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
3652         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
3653         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3654         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3655         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
3656         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3657         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3658         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3659         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3660         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3661         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3662         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3663         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3664         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3665         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3666         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
3667         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3668         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3669         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3670         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3671         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3672         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3673         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3674         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3675         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3676         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3677         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3678         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3679         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3680         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3681         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3682         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3683         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3684         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3685         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3686         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3687         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3688         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3689         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3690         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3691         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3692         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
3693         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3694         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3695         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3696         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3697         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3698         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3699         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3700         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3701         (QI_FTYPE_V8DF_INT_QI): Ditto.
3702         (QI_FTYPE_V4DF_INT_QI): Ditto.
3703         (QI_FTYPE_V2DF_INT_QI): Ditto.
3704         (HI_FTYPE_V16SF_INT_HI): Ditto.
3705         (QI_FTYPE_V8SF_INT_QI): Ditto.
3706         (QI_FTYPE_V4SF_INT_QI): Ditto.
3707         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
3709 2015-07-31  Richard Biener  <rguenther@suse.de>
3711         * gimple-fold.c (fold_gimple_assign): Remove folding of
3712         GIMPLE_BINARY_RHS.
3714 2015-07-31  Tom de Vries  <tom@codesourcery.com>
3716         PR tree-optimization/66846
3717         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
3718         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
3719         (expand_omp_target) [ENABLE_CHECKING]: Same.
3720         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
3721         cfun if !LOOPS_NEED_FIXUP.
3722         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
3723         that omp_for already has its own loop struct.
3724         * tree-parloops.c (create_phi_for_local_result)
3725         (create_call_for_reduction): Handle simple latch bb.
3726         (create_parallel_loop): Add simple latch bb to preserve
3727         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
3728         (gen_parallel_loop): Remove call to cancel_loop_tree.
3729         (parallelize_loops): Skip loops that are inner loops of parallelized
3730         loops.
3731         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
3732         verify_loop_structure.
3734 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3736         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
3737         * config/v850/v850.md (RV_REGNUM): New constants.
3738         * config/v850/v850.c (v850_libcall_value): New functions.
3739         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
3740         (TARGET_LIBCALL_VALUE): Define.
3742 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3744         * rtl.h (lowpart_subreg): Move in file.
3745         * loop-iv.c (lowpart_subreg): Move to...
3746         * simplify-rtx.c (lowpart_subreg): ...here.
3747           (simplify_binary_operation_1): Use lowpart_subreg instead of
3748           simplify_gen_subreg.
3749         * expr.c (expand_expr_real_2): Ditto.
3750         * emit-rtl.c (gen_lowpart_common): Ditto.
3751         * combine.c (gen_lowpart_for_combine): Ditto.
3752         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
3753           expand_debug_source_expr): Ditto.
3755 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
3757         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
3758         (expand_builtin_atomic_clear): Remove support for atomic_clear
3759         pattern.
3761 2015-07-30  Richard Biener  <rguenther@suse.de>
3763         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
3764         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
3765         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
3766         redundant operand canonicalization.
3768 2015-07-30  David Sherwood  <david.sherwood@arm.com>
3770         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
3771         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
3772         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
3773         * config/arm/arm.c (neon_valid_immediate): Likewise.
3774         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
3775         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
3776         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
3777         (expand_vec_perm_vpshufb2_vpermq): Likewise.
3778         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
3779         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3780         * config/i386/sse.md
3781         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
3782         (*ssse3_palignr<mode>_perm): Likewise.
3783         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
3784         * config/spu/spu.c (arith_immediate_p): Likewise.
3785         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3786         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
3788 2015-07-30  Richard Biener  <rguenther@suse.de>
3790         * genmatch.c (decision_tree::gen_gimple): Merge with ...
3791         (decision_tree::gen_generic): ... this into ...
3792         (decision_tree::gen): ... this.
3793         (main): Adjust callers.
3795 2015-07-30  Richard Biener  <rguenther@suse.de>
3797         * genmatch.c (verbose): New global.
3798         (warning_at): Add overload with source_location.
3799         (capture_info::capture_info): Add bool whether generating gimple
3800         or generic.  Add gimple member.
3801         (capture_info::cinfo): Add capture member.
3802         (capture_info::walk_match): Record capture.  Warn on
3803         non-captured leafs.
3804         (capture_info::walk_c_expr): Add more fragments captures cannot
3805         escape through.  Warn on escaped captures.
3806         (dt_simplify::gen_1): Warn on operands we force to have no
3807         side-effects.
3808         (main): Initialize verbose.
3809         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
3811 2015-07-30  Richard Biener  <rguenther@suse.de>
3813         PR middle-end/67053
3814         * match.pd: Allow both operands to independently have conversion
3815         when simplifying compares of addresses.
3817 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
3819         PR target/66217
3820         PR target/67045
3821         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
3822         around those cases that need one.
3824 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
3826         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
3828 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
3830         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3831         New.  Copied from config/i386/gnu-user.h.
3832         (ASM_COMMENT_START): Likewise.
3833         (DBX_REGISTER_NUMBER): Likewise.
3835 2015-07-29  Richard Biener  <rguenther@suse.de>
3837         * gimple-fold.c (fold_gimple_cond): Remove.
3838         (fold_stmt_1): Do not call it.
3840 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
3842         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
3843         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
3845         * config/aarch64/aarch64-modes.def: Add HFmode.
3847         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3848         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
3850         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
3851         aarch64_promoted_type): New.
3853         (aarch64_float_const_representable_p): Disable HFmode.
3854         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
3855         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
3856         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
3858         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
3859         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
3861         * config/aarch64/iterators.md (GPF_F16): New.
3863 2015-07-29  Richard Biener  <rguenther@suse.de>
3865         * match.pd: Merge address comparison patterns and make them
3866         handle some more cases.
3868 2015-07-29  Richard Biener  <rguenther@suse.de>
3870         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
3871         (parser::parse_capture): Add bool argument on whether to reject
3872         unknown captures.
3873         (parser::parse_expr): Adjust.
3874         (parser::parse_op): Likewise.
3875         (parser::parse_pattern): Likewise.
3877 2015-07-29  Richard Biener  <rguenther@suse.de>
3879         * gimple-fold.c (has_use_on_stmt): New function.
3880         (replace_stmt_with_simplification): Use it to allow
3881         abnormals originally referenced in the stmt.
3882         (fold_stmt_1): Canonicalize operand order.
3884 2015-07-28  David Sherwood  <david.sherwood@arm.com>
3886         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
3887         GET_MODE_INNER unconditionally.
3888         * config/spu/spu.c (arith_immediate_p): Likewise.
3889         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
3890         * expmed.c (synth_mult): Remove check for VOIDmode result from
3891         GET_MODE_INNER.
3892         (expand_mult_const): Likewise.
3893         * fold-const.c (fold_binary_loc): Replace call to element_precision
3894         with call to GET_MODE_PRECISION.
3895         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
3896         m->name.
3897         (emit_mode_inner): Likewise.
3898         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
3899         result check.
3900         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
3901         (GET_MODE_UNIT_PRECISION): Likewise.
3902         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
3903         * simplify-rtx.c (simplify_immed_subreg): Likewise.
3904         * stor-layout.c (bitwise_type_for_mode): Update assert.
3905         (element_precision): Remove.
3907 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3909         * target-insns.def (reload_load_address): New targetm instruction
3910         pattern.
3911         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
3913 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3915         * target-insns.def (atomic_test_and_set): New targetm instruction
3916         pattern.
3917         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
3918         HAVE_*/gen_* interface.
3920 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3922         * target-insns.def (can_extend, ptr_extend): New targetm instruction
3923         patterns.
3924         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
3925         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3926         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3927         * rtlanal.c (nonzero_bits1): Likewise.
3928         (num_sign_bit_copies1): Likewise.
3930 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3932         * target-insns.def (eh_return): New targetm instruction pattern.
3933         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
3934         interface.
3935         * function.c (thread_prologue_and_epilogue_insns): Remove
3936         preprocessor condition.
3938 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3940         * target-insns.def (indirect_jump): New targetm instruction pattern.
3941         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
3942         interface.
3944 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3946         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
3947         instead of nonimmediate_operand.  Remove C condiition.
3949 2015-07-28  Richard Biener  <rguenther@suse.de>
3951         * match.pd: Add more simplification of address comparisons.
3953 2015-07-28  Richard Biener  <rguenther@suse.de>
3955         * match.pd: Re-order two cases in comparison with max/min
3956         value simplification to make it apply for bools.
3958 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3960         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
3961         Handle simple SIGN_EXTEND or ZERO_EXTEND.
3962         (aarch64_rtx_costs): Properly strip extend or extract before
3963         passing down to rtx costs again.
3965 2015-07-28  Nick Clifton  <nickc@redhat.com>
3967         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
3968         Optimizes the case where -mes0 is active and a constant symbolic
3969         address is used.
3970         * config/rl78/rl78-protos.h: Prototype the new function.
3971         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
3973 2015-07-28  Tom de Vries  <tom@codesourcery.com>
3975         * tree-parloops.c (reduc_stmt_res): New function.
3976         (initialize_reductions, add_field_for_reduction)
3977         (create_phi_for_local_result, create_loads_for_reductions)
3978         (create_stores_for_reduction, build_new_reduction): Handle case that
3979         reduc_stmt is a phi.
3980         (gather_scalar_reductions): Allow double_reduc reductions.
3982 2015-07-28  Richard Biener  <rguenther@suse.de>
3984         * fold-const.c (fold_comparison): Remove equality folding
3985         of decl addresses ...
3986         * match.pd: ... here and merge with existing pattern.
3988 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3990         PR tree-optimization/66828
3991         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
3992         from int64_t to uint64_t.
3994 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3996         * opts-common.c (read_cmdline_option): List DriverOnly enum values
3997         as valid only in the error message of the driver, not in the
3998         messages of the language compilers.
4000 2015-07-27  Tom de Vries  <tom@codesourcery.com>
4002         * tree-parloops.c (gather_scalar_reductions): Simplify function
4003         structure.
4005 2015-07-27  Marek Polacek  <polacek@redhat.com>
4007         * ipa-devirt.c (types_same_for_odr): Fix typo.
4009 2015-07-27  Jason Merrill  <jason@redhat.com>
4011         PR debug/66468
4012         * dwarf2out.c (gen_inlined_subroutine_die): Check
4013         cgraph_function_possibly_inlined_p.
4015 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
4017         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
4018         Place integer variant first.
4019         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4021 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
4023         PR/63870
4024         * config/arm/arm-builtins.c (enum arm_builtins):
4025         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
4026         (ARM_BUILTIN_NEON_BASE): Rename macro to....
4027         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
4028         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
4029         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
4031 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
4033         PR/63870
4034         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
4035         Add qualifier_lane_index.
4036         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
4037         (arm_getlane_qualifiers): Use qualifier_lane_index.
4038         (arm_lanemac_qualifiers): Rename to...
4039         (arm_mac_n_qualifiers): ...this.
4040         (LANEMAC_QUALIFIERS): Rename to...
4041         (MAC_N_QUALIFIERS): ...this.
4042         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
4043         (arm_setlane_qualifiers): Use qualifier_lane_index.
4044         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
4045         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
4046         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
4047         (arm_expand_neon_builtin): Handle qualifier_lane_index.
4049         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
4050         * config/arm/arm.c (bounds_check): Likewise, improve error message.
4051         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
4052         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
4053         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
4054         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
4055         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
4056         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
4057         qualifiers to TERNOP_IMM.
4058         (vdup_lane): Change qualifiers to GETLANE.
4059         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
4060         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
4061         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
4062         vqdmlsl_n): Change qualifiers to MAC_N.
4064         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
4065         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
4066         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
4067         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
4068         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
4069         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
4070         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
4071         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
4072         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
4073         Remove call to neon_lane_bounds.
4075 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
4077         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4078         Place integer variant first.
4080 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
4082         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
4083         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
4084         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
4085         for armv6kz targets.
4086         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
4087         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
4088         (FL_FOR_ARCH6ZK): Remove.
4089         (FL_FOR_ARCH6KZ): New.
4090         (arm_arch6zk): New declaration.
4091         * config/arm/arm-tables.opt: Regenerate.
4092         * config/arm/arm.c (arm_arch6kz): New.
4093         (arm_option_override): Set arm_arch6kz.
4094         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
4095         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
4096         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
4098 2015-07-27  Marek Polacek  <polacek@redhat.com>
4100         PR c++/66555
4101         PR c/54979
4102         * doc/invoke.texi: Document -Wtautological-compare.
4104 2015-07-27  Richard Biener  <rguenther@suse.de>
4106         * genmatch.c (decision_tree::gen_gimple): Split out large
4107         subtrees into separate functions.
4108         (decision_tree::gen_generic): Likewise.
4110 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
4112         * config/alpha/alpha.c: Use SUBREG_P predicate.
4113         * config/alpha/predicates.md: Ditto.
4115 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4117         * config.host (s390*-*-*): Include driver-native.c only when
4118         building with s390* as host *and* target.
4120 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
4122         PR target/66930
4123         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
4124         T bit register modified_between_p check.
4126 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4128         * config/i386/i386.c: Use SUBREG_P predicate.
4129         * config/i386/i386.md: Ditto.
4130         * config/i386/sse.md: Ditto.
4131         * config/i386/predicates.md: Ditto.
4133 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4135         PR target/67004
4136         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
4137         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
4139 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4141         * Makefile.in: Remove use of TREEBROWSER.
4142         * config.in: Regenerated.
4143         * configure: Regenerated.
4144         * configure.ac: Remove definition of TREEBROWSER.
4145         * tree-browser.c: Removed.
4146         * tree-browser.def: Removed.
4148 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4150         * graphite-scop-detection.c: Include gimple-pretty-print.h.
4151         (stmt_simple_for_scop_p): Print when a stmt is not handled in
4152         Graphite.
4153         (scopdet_basic_block_info): Print when a loop or bb cannot be
4154         represented in Graphite.
4156 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4158         PR target/66648
4159         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
4160         execution guard when min_size is less than size_needed.
4162 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4164         * doc/install.texi: Document supported versions of ISL.
4166 2015-07-25  Jeff Law  <law@redhat.com>
4168         Revert:
4169         PR lto/66752
4170         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4171         unable to find X NE 0 in the tables, return X as the simplified
4172         condition.
4173         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4174         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4175         to VISISTED_BBS.  */
4176         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4177         after removing the control flow statement and unnecessary edges.
4179 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
4181         Revert:
4182         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4184         PR rtl-optimization/64164
4185         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4186         * tree-ssa-copyrename.c: Removed.
4187         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4188         -ftree-coalesce-vars.
4189         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4190         * common.opt (ftree-copyrename): Ignore.
4191         (ftree-coalesce-inlined-vars): Likewise.
4192         * doc/invoke.texi: Remove the ignored options above.
4193         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4194         * tree-ssa-coalesce.h: ... here.
4195         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4196         headers required by it.
4197         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4198         across variables when flag_tree_coalesce_vars.  Check register
4199         use and promoted modes to allow coalescing.  Moved to
4200         tree-ssa-coalesce.c.
4201         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4202         with its member functions to tree-ssa-coalesce.c.
4203         (var_map_base_init): Likewise.  Renamed to
4204         compute_samebase_partition_bases.
4205         (partition_view_normal): Drop want_bases parameter.
4206         (partition_view_bitmap): Likewise.
4207         * tree-ssa-live.h: Adjust declarations.
4208         * tree-ssa-coalesce.c: Include explow.h.
4209         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4210         default defs at the entry point.
4211         (dump_part_var_map): New.
4212         (compute_optimized_partition_bases): New, called by...
4213         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4214         of compute_samebase_partition_bases.  Adjust.
4215         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4216         * cfgexpand.c (leader_merge): New.
4217         (get_rtl_for_parm_ssa_default_def): New.
4218         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4219         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4220         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4221         redundant MEM attr setting.
4222         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4223         from...
4224         (expand_one_stack_var): ... this.  New wrapper to check and
4225         skip already expanded SSA partitions.
4226         (record_alignment_for_reg_var): New, factored out of...
4227         (expand_one_var): ... this.
4228         (expand_one_ssa_partition): New.
4229         (adjust_one_expanded_partition_var): New.
4230         (expand_one_register_var): Check and skip already expanded SSA
4231         partitions.
4232         (expand_used_vars): Don't create DECLs for anonymous SSA
4233         names.  Expand all SSA partitions, then adjust all SSA names.
4234         (pass::execute): Replace the loops that set
4235         SA.partition_to_pseudo from partition leaders and cleared
4236         DECL_RTL for multi-location variables, and that which used to
4237         rename vars and set attrs, with one that clears DECL_RTL and
4238         checks that PARMs and RESULTs default_defs match DECL_RTL.
4239         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4240         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4241         * explow.c (promote_ssa_mode): New.
4242         * explow.h (promote_ssa_mode): Declare.
4243         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4244         * function.c: Include cfgexpand.h.
4245         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4246         (use_register_for_parm_decl): Wrapper for the above to
4247         special-case the result_ptr.
4248         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4249         (split_complex_args): Take assign_parm_data_all argument.
4250         Pass it to rtl_for_parm.  Set up rtl and context for split
4251         args.
4252         (assign_parms_augmented_arg_list): Adjust.
4253         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4254         multiple locations.  Recognize split complex args.
4255         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4256         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4257         (assign_parm_setup_block): Prefer SSA-assigned location.
4258         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4259         if stack_parm is NULL.
4260         (assign_parm_setup_stack): Prefer SSA-assigned location.
4261         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4262         rtl before testing for pointer bounds.  Special-case result_ptr.
4263         (expand_function_start): Maybe reset DECL_RTL of result.
4264         Prefer SSA-assigned location for result and static chain.
4265         Factor out DECL_RESULT and SET_DECL_RTL.
4266         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4267         anonymous SSA names.  Use promote_ssa_mode.
4268         (get_temp_reg): Likewise.
4269         (remove_ssa_form): Adjust.
4270         * stor-layout.c (layout_decl): Don't set mem attributes of
4271         non-MEMs.
4272         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4273         and get its reg_usage for reg invalidation.
4274         (compute_bb_dataflow): Pass it insn.
4275         (emit_notes_in_bb): Likewise.
4277 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4279         * config/i386/i386.c (ix86_va_start): Remove
4280         unneeded !TARGET_64BIT check.
4281         (ix86_gimplify_va_arg): Ditto.
4283 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4285         * graphite-sese-to-poly.c (build_poly_scop): Always call
4286         rewrite_commutative_reductions_out_of_ssa.
4288 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4290         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
4291         flag_associative_math to FLOAT_TYPE_P.  Honour
4292         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
4294 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4296         PR c++/64079
4297         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
4298         and "%qD" in warning_at instead of "%q+D" in warning.
4300 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
4302         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
4303         (ix86_function_abi): Cleanup.
4305 2015-07-24  Michael Darling  <darlingm@gmail.com>
4307         PR other/66259
4308         * acinclude.m4: Reflects renaming of configure.in to configure.ac
4309         * configure: Likewise
4310         * configure.ac: Likewise
4311         * doc/install.texi: Likewise
4312         * doc/tm.texi: Likewise
4313         * doc/tm.texi.in: Likewise
4315 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4317         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
4318         manually swapping values.
4319         * cse.c (fold_rtx): Likewise.
4320         * lra-eliminations.c (form_sum): Likewise.
4322 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
4324         PR target/64003
4325         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
4326         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
4327         (*jcc_1, *jcc_2, jump, simple_return_internal)
4328         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
4329         Set length_nobnd attribute instead of length attribute.
4330         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
4331         (length_nobnd): Remove attribute.
4332         (length): Remove length_nobnd processing.
4334 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
4336         * gimplify.c (omp_default_clause): New function.  Reorganize flow
4337         for clarity. Broken out of ...
4338         (omp_notice_variable): ... here.
4340 2015-07-24  Gary Funck  <gary@intrepid.com>
4342         PR middle-end/66984
4343         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
4344         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
4346 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4348         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
4349         exit-first loop transform.
4351 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
4353         PR 66714
4354         * tree-cfg.c (struct replace_decls_d): New struct.
4355         (replace_block_vars_by_duplicates_1): New function.
4356         (replace_block_vars_by_duplicates): Use it to replace the decls
4357         in the value exprs by duplicates.
4359 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4361         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
4362         -shared, -symbolic, -rdynamic.
4364 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4366         PR target/65711
4367         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
4368         -dynamic-linker within %{!static %{!shared, and -rdynamic within
4369         %{!static.
4371 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
4373         PR ipa/66566
4374         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
4375         edge summary is available.
4377 2015-07-24  Richard Biener  <rguenther@suse.de>
4379         * genmatch.c (struct dt_node): Add statistic fields.
4380         (dt_node::analyze): New method.
4381         (decision_tree::gen_gimple): Call analyze on the root node
4382         and print statistics to stderr.
4383         (decision_tree::gen_generic): Likewise.
4385 2015-07-24  Richard Biener  <rguenther@suse.de>
4387         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
4388         against the highest or lowest possible integer ...
4389         * match.pd: ... as patterns here.
4391 2015-07-24  Richard Biener  <rguenther@suse.de>
4393         * genmatch.c (struct capture_info): Add same_as field.
4394         (capture_info::capture_info): Initialize same_as.
4395         (capture_info::walk_match): Compute same_as.
4396         (capture_info::walk_result): Compute stuff for the leader.
4397         (capture_info::walk_c_expr): Likewise.
4398         (dt_simplify::gen_1): Only look at leaders when deciding
4399         to force no side-effects or emit side-effects of omitted operands.
4401 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4403         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
4404         reg note to the GPR -> FPR save instructions.
4406 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4408         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
4409         cheaper.
4410         (s390_expand_insv): Don't generate risbg pattern for constant zero
4411         sources.
4412         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
4413         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
4414         splitters.
4416 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4418         * config/s390/s390.c (s390_reorg): Clean up handling of processors
4419         with
4420         -mtune=
4421         (s390_issue_rate): Likewise.
4422         (s390_sched_reorder): Likewise.
4423         (s390_sched_variable_issue): Likewise.
4424         (s390_loop_unroll_adjust): Likewise.
4425         (s390_option_override):  Likewise.
4427 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4429         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
4430         processor capabilities with -march=native.
4431         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
4432         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
4433         (S390_TARGET_BITS_STRING): Macro to simplify specs.
4435 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4437         * config/s390/s390.c (s390_issue_rate): Handle
4438         PROCESSOR_2094_Z9_EC.
4439         (s390_option_override): Likewise.
4440         (s390_adjust_priority): Likewise.
4442 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4444         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
4445         when cross compiling.
4447 2015-07-24  Richard Biener  <rguenther@suse.de>
4449         * fold-const.c (maybe_canonicalize_comparison_1): Move
4450         A code CST canonicalization ...
4451         * match.pd: ... to a pattern here.
4453 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
4455         Revert:
4456         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4457         PR target/63521
4458         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4459         (HONOR_REG_ALLOC_ORDER): Define.
4461 2015-07-24  Richard Biener  <rguenther@suse.de>
4463         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
4464         * fold-const.c (fold_comparison): Move parameter does not
4465         alias &local simplification ...
4466         * match.pd: ... as a pattern here.
4468 2015-07-24  Richard Biener  <rguenther@suse.de>
4470         * gimple-fold.c (replace_stmt_with_simplification): Special-case
4471         valueizing call operands.
4472         * gimple-match-head.c (maybe_push_res_to_seq): Take
4473         number of call arguments from ops array.
4474         (do_valueize): New function.
4475         (gimple_simplify): Return true if valueization changed
4476         any operand even if the result didn't simplify further.
4478 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4480         PR middle-end/25530
4481         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
4483 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4485         PR middle-end/25529
4486         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
4488 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4490         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
4491         instruction.
4493 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4495         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
4496         clean up.
4498 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
4500         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
4501         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
4502         targets here.
4503         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
4504         ms_va_list_type_node initialization.
4506 2015-07-23  Jeff Law  <law@redhat.com>
4508         PR lto/66752
4509         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4510         unable to find X NE 0 in the tables, return X as the simplified
4511         condition.
4512         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4513         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4514         to VISISTED_BBS.  */
4515         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4516         after removing the control flow statement and unnecessary edges.
4518 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4520         * tree-pass.h (get_current_pass_name): Removed.
4522 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4524         PR rtl-optimization/64164
4525         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4526         * tree-ssa-copyrename.c: Removed.
4527         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4528         -ftree-coalesce-vars.
4529         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4530         * common.opt (ftree-copyrename): Ignore.
4531         (ftree-coalesce-inlined-vars): Likewise.
4532         * doc/invoke.texi: Remove the ignored options above.
4533         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4534         * tree-ssa-coalesce.h: ... here.
4535         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4536         headers required by it.
4537         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4538         across variables when flag_tree_coalesce_vars.  Check register
4539         use and promoted modes to allow coalescing.  Moved to
4540         tree-ssa-coalesce.c.
4541         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4542         with its member functions to tree-ssa-coalesce.c.
4543         (var_map_base_init): Likewise.  Renamed to
4544         compute_samebase_partition_bases.
4545         (partition_view_normal): Drop want_bases parameter.
4546         (partition_view_bitmap): Likewise.
4547         * tree-ssa-live.h: Adjust declarations.
4548         * tree-ssa-coalesce.c: Include explow.h.
4549         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4550         default defs at the entry point.
4551         (dump_part_var_map): New.
4552         (compute_optimized_partition_bases): New, called by...
4553         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4554         of compute_samebase_partition_bases.  Adjust.
4555         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4556         * cfgexpand.c (leader_merge): New.
4557         (get_rtl_for_parm_ssa_default_def): New.
4558         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4559         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4560         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4561         redundant MEM attr setting.
4562         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4563         from...
4564         (expand_one_stack_var): ... this.  New wrapper to check and
4565         skip already expanded SSA partitions.
4566         (record_alignment_for_reg_var): New, factored out of...
4567         (expand_one_var): ... this.
4568         (expand_one_ssa_partition): New.
4569         (adjust_one_expanded_partition_var): New.
4570         (expand_one_register_var): Check and skip already expanded SSA
4571         partitions.
4572         (expand_used_vars): Don't create DECLs for anonymous SSA
4573         names.  Expand all SSA partitions, then adjust all SSA names.
4574         (pass::execute): Replace the loops that set
4575         SA.partition_to_pseudo from partition leaders and cleared
4576         DECL_RTL for multi-location variables, and that which used to
4577         rename vars and set attrs, with one that clears DECL_RTL and
4578         checks that PARMs and RESULTs default_defs match DECL_RTL.
4579         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4580         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4581         * explow.c (promote_ssa_mode): New.
4582         * explow.h (promote_ssa_mode): Declare.
4583         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4584         * function.c: Include cfgexpand.h.
4585         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4586         (use_register_for_parm_decl): Wrapper for the above to
4587         special-case the result_ptr.
4588         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4589         (split_complex_args): Take assign_parm_data_all argument.
4590         Pass it to rtl_for_parm.  Set up rtl and context for split
4591         args.
4592         (assign_parms_augmented_arg_list): Adjust.
4593         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4594         multiple locations.  Recognize split complex args.
4595         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4596         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4597         (assign_parm_setup_block): Prefer SSA-assigned location.
4598         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4599         if stack_parm is NULL.
4600         (assign_parm_setup_stack): Prefer SSA-assigned location.
4601         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4602         rtl before testing for pointer bounds.  Special-case result_ptr.
4603         (expand_function_start): Maybe reset DECL_RTL of result.
4604         Prefer SSA-assigned location for result and static chain.
4605         Factor out DECL_RESULT and SET_DECL_RTL.
4606         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4607         anonymous SSA names.  Use promote_ssa_mode.
4608         (get_temp_reg): Likewise.
4609         (remove_ssa_form): Adjust.
4610         * stor-layout.c (layout_decl): Don't set mem attributes of
4611         non-MEMs.
4612         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4613         and get its reg_usage for reg invalidation.
4614         (compute_bb_dataflow): Pass it insn.
4615         (emit_notes_in_bb): Likewise.
4617 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
4619         PR target/66217
4620         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
4621         prototype.
4622         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
4623         (rs6000_emit_2insn_and): Handle dot forms.
4624         * config/rs6000/rs6000.md (and<mode>3): Adjust.
4625         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
4626         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
4628 2015-07-23  Richard Biener  <rguenther@suse.de>
4630         * generic-match-head.c: Include cgraph.h.
4631         * gimple-match-head.c: Likewise.
4632         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
4633         SSA names.
4634         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
4635         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
4636         pattern.
4638 2015-07-23  Richard Biener  <rguenther@suse.de>
4640         * gimple-fold.c (fold_gimple_cond): Do not require folding
4641         results to pass valid_gimple_rhs_p.
4642         * tree-cfg.h (fold_cond_expr_cond): Remove.
4643         * tree-cfg.c (fold_cond_expr_cond): Likewise.
4644         (make_edges): Do not call it.
4645         * tree-inline.c (tree_function_versioning): Likewise.
4647 2015-07-23  Tom de Vries  <tom@codesourcery.com>
4649         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
4650         vect_force_simple_reduction.
4651         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
4652         (vect_is_simple_reduction_1): Add and handle
4653         need_wrapping_integral_overflow parameter.
4654         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
4655         need_wrapping_integral_overflow parameter.
4656         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
4657         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
4658         decl.
4660 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
4662         PR tree-optimization/66926,66951
4663         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
4664         INNER_LOOP and fix up condition for renaming virtual operands.
4666 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4668         * combine.c (try_combine): Use std::swap instead of manually
4669         swapping.
4671 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
4673         * config/mips/i6400.md: New file.
4674         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
4675         (mips64r6): Likewise.
4676         (i6400): Define.
4677         * config/mips/mips-tables.opt: Regenerate.
4678         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
4679         (mips_issue_rate): Add support for i6400.
4680         (mips_multipass_dfa_lookahead): Likewise.
4681         * config/mips/mips.h (TUNE_I6400): Define.
4682         * config/mips/mips.md: Include i6400.md.
4683         (processor): Add i6400.
4684         * doc/invoke.texi (-march=@var{arch}): Add i6400.
4686 2015-07-23  Richard Biener  <rguenther@suse.de>
4688         PR middle-end/66916
4689         * match.pd: Guard widen and sign-change comparison simplification
4690         with single_use.
4692 2015-07-23  Richard Biener  <rguenther@suse.de>
4694         PR tree-optimization/66945
4695         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
4696         ::before_dom_children): Force the propagators idea of
4697         non-executable edges to materialize, not what the folder
4698         chooses.
4700 2015-07-23  Richard Biener  <rguenther@suse.de>
4702         * gimple.h (gimple_cond_make_false): Use 0 != 0.
4703         (gimple_cond_make_true): Use 1 != 0.
4705 2015-07-22  DJ Delorie  <dj@redhat.com>
4707         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
4708         slashes.
4710         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
4711         (ashrhi3): Likewise.
4712         (lshrhi3): Likewise.
4713         (movhi): Take advantage of zero-extend to load small constants.
4714         (movpsi): Likewise.
4715         (and<mode>3): Likewise.
4716         (zero_extendqihi2): Likewise.
4717         (zero_extendqisi2): New.
4718         * config/msp430/constraints.md (N,O): New.
4719         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
4721 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
4723         PR target/66954
4724         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
4725         to enum feature_priority and feature_list.
4726         (fold_builtin_cpu): Add F_AES to enum processor_features
4727         and isa_names_table.
4729 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
4731         PR driver/66737
4732         * config/i386/linux-common.h (MPX_SPEC): Use linker option
4733         for 64bit target only.
4735 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4737         * config/nvptx/nvptx.c: Expand some comments.
4739 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
4741         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
4742         (cortex_a53_advsimd): ...This.
4744 2015-07-22  Richard Biener  <rguenther@suse.de>
4746         * genmatch.c (expr::gen_transform): Clarify error message
4747         and display location.
4749 2015-07-22  Richard Biener  <rguenther@suse.de>
4751         * genmatch.c (struct operand): Add location member.
4752         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
4753         constructors.
4754         (struct simplify): Remove match_location and result_location
4755         members.
4756         (elsehwere): Adjust.
4758 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
4760         * config/mips/m5100.md: New file.
4761         * config/mips/mips-cpus.def (m5100, m5101): Define.
4762         * config/mips/mips-tables.opt: Regenerate.
4763         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
4764         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
4765         -march=m5101 to -mips32r5.
4766         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
4767         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
4768         !-msoft-float.
4769         * config/mips/mips.md: Include m5100.md.
4770         (processor): Add m5100.
4771         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
4773 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
4775         * config/mips/mips-cpus.def (interaptiv): Define.
4776         * config/mips/mips-tables.opt: Regenerate.
4777         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
4778         -mips32r2.
4779         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
4780         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
4782 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4784         PR target/63521
4785         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4786         (HONOR_REG_ALLOC_ORDER): Define.
4788 2015-07-22  Richard Biener  <rguenther@suse.de>
4790         PR tree-optimization/66952
4791         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
4792         blocks we end up executing unconditionally reset all SSA
4793         info such as range and alignment.
4794         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
4795         * tree-ssanames.c (reset_flow_sensitive_info): New function.
4797 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4799         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
4800         typo in attribute.
4802 2015-07-22  Richard Biener  <rguenther@suse.de>
4804         * genmatch.c (parser::parse_result): Properly handle
4805         match with result operands and conditions.
4807 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4809         PR target/63870
4810         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4811         Add qualifier_struct_load_store_lane_index.
4812         (aarch64_types_loadstruct_lane_qualifiers): Use
4813         qualifier_struct_load_store_lane_index for lane index argument for
4814         last argument.
4815         (aarch64_types_storestruct_lane_qualifiers): Ditto.
4816         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4817         (aarch64_simd_expand_args): Add new argument describing mode of
4818         builtin. Check lane bounds for arguments with
4819         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4820         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
4821         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4822         (aarch64_simd_expand_builtin): Handle arguments with
4823         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
4824         aarch64_simd_expand_args.
4825         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
4826         vst[234]_lane with BUILTIN_VALLDIF.
4827         * config/aarch64/aarch64-simd.md:
4828         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
4829         endianness reversal on lane index.
4830         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
4831         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
4832         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
4833         (vec_store_lanesci_lane<mode>): Ditto.
4834         (vec_store_lanesxi_lane<mode>): Ditto.
4835         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
4836         reversal of lane index.
4837         (aarch64_ld3_lane<mode>): Ditto.
4838         (aarch64_ld4_lane<mode>): Ditto.
4839         (aarch64_st2_lane<mode>): Ditto.
4840         (aarch64_st3_lane<mode>): Ditto.
4841         (aarch64_st4_lane<mode>): Ditto.
4842         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
4843         to qmode. Add new mode parameter. Update uses.
4844         (__LD3_LANE_FUNC): Ditto.
4845         (__LD4_LANE_FUNC): Ditto.
4846         (__ST2_LANE_FUNC): Ditto.
4847         (__ST3_LANE_FUNC): Ditto.
4848         (__ST4_LANE_FUNC): Ditto.
4850 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
4852         * doc/invoke.texi (Language Independent Options): Rename node to
4853         Diagnostic Message Formatting Options.
4855 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
4857         PR ipa/66424.
4858         * lra-remat.c (operand_to_remat): Prevent using insns with input
4859         subregs processed separately by IRA.
4861 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
4863         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
4864         straight loops.
4865         (single_imm_use): Check for iterator node.
4866         (num_imm_uses): Likewise.
4867         * tree-ssa-operands.c (has_zero_uses_1): Delete.
4868         (single_imm_use_1): Check for iterator node.
4870 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
4871             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4873         * configure.ac: Add check for new options in isl-0.15.
4874         * config.in, configure: Rebuilt.
4875         * graphite-blocking.c: Include <isl/constraint.h>
4876         * graphite-interchange.c,  graphite-poly.c: Likewise.
4877         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
4878         * graphite.c: Likewise.
4879         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
4880         <isl/union_set.h>.
4881         * graphite-dependences.c: Include <isl/constraint.h>.
4882         (max_number_of_out_dimensions): Returns isl_stat.
4883         (extend_schedule_1): Likewise
4884         (extend_schedule): Corresponding changes.
4885         * graphite-optimize-isl.c: Include <isl/constraint.h> and
4886         <isl/union_set.h>.
4887         (getSingleMap): Change return type of isl_stat.
4888         (optimize_isl): Conditionally use
4889         isl_options_set_schedule_serialize_sccs.
4890         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
4891         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
4893 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
4895         PR target/66956
4896         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
4897         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
4899 2015-07-21  Richard Biener  <rguenther@suse.de>
4901         PR tree-optimization/66948
4902         * genmatch.c (capture_info::walk_match): Also recurse to
4903         captures.  Properly compute expr state from captures of
4904         captures.
4905         * match.pd: Add single-use guards to
4906         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
4908 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
4910         * config/nvptx/mkoffload.c (process): Add static destructor call.
4912 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4914         PR middle-end/66915
4915         * match.pd (A - B -> A + (-B)): Don't allow folding
4916         when type if a fixed-point type.
4918 2015-07-20  DJ Delorie  <dj@redhat.com>
4920         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
4921         (iorqi3_real): Likewise for set1.
4923 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
4925         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
4926         for !TARGET_64BIT.
4928 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
4930         * graphite-isl-ast-to-gimple.c:
4931         Refactor so that each function can access 'region'. This will help
4932         maintain a parameter rename_map within a region.
4934 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4936         * config/rs6000/rs6000.md (*lt0_disi): New.
4938 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4940         PR target/66217
4941         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
4942         "available letters" comment.
4943         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
4944         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
4945         and_2rld_operand):  Delete.
4946         (and_operand): Adjust.
4947         (rotate_mask_operator): New.
4948         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
4949         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
4950         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
4951         extract_ME): Delete.
4952         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4953         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
4954         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
4955         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4956         rs6000_emit_2insn_and): New.
4957         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
4958         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
4959         includes_rldic_lshift_p, includes_rldicr_lshift_p,
4960         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
4961         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4962         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
4963         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
4964         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4965         rs6000_emit_2insn_and): New.
4966         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
4967         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
4968         handling.
4969         <NOT>: Don't fall through to next case.
4970         <AND>: Handle the various rotate-and-mask cases directly.
4971         <IOR>: Always cost as one insn.
4972         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
4973         (and<mode>3): Adjust expander for the new patterns.
4974         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
4975         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
4976         (*and<mode>3_imm_dot_shifted): New.
4977         (*and<mode>3_mask): Delete, rewrite as ...
4978         (and<mode>3_mask): ... New.
4979         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
4980         (andsi3_internal0_nomc): Delete.
4981         (*andsi3_internal6): Delete.
4982         (*and<mode>3_2insn): New.
4983         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4984         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4985         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
4986         *insvdi_internal3): Delete.
4987         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
4988         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
4989         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
4990         *ior<mode>_mask): New.
4991         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
4992         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4993         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4994         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4995         Delete.
4996         (ashr<mode>3): Delete expander.
4997         (*ashr<mode>3): Rename to ...
4998         (ashr<mode>3): ... This.
4999         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
5000         (*rotldi3_internal4, *rotldi3_internal5 and split,
5001         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
5002         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
5003         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
5004         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
5005         (splitter for loading a mask): Adjust.
5006         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
5008 2015-07-20  Marek Polacek  <polacek@redhat.com>
5010         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
5011         output_add_clobbers, output_added_clobbers_hard_reg_p,
5012         gen_rtx_scratch): Remove declarations.
5014 2015-07-20  Marek Polacek  <polacek@redhat.com>
5016         PR c++/55095
5017         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
5019 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5021         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
5022         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
5024 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5026         * combine.c (combine_simplify_rtx): Move simplification step
5027         before various transformations/substitutions.
5029 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
5031         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
5032         (struct int_traits): Likewise.
5034 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5036         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
5037         function to vmsdbgout_function_decl.
5039 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
5041         PR target/66922
5042         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
5043         from misaligned positions.
5044         (ix86_expand_pinsr): Reject insertions to misaligned positions.
5046 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
5048         PR middle-end/46851
5049         PR middle-end/60340
5050         * Makefile.in: Removed omega.o.
5051         * common.opt: Document flag fcheck-data-deps as deprecated.
5052         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
5053         its associated params: omega-max-vars, omega-max-geqs,
5054         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
5055         omega-max-keys, omega-eliminate-redundant-constraints.
5056         * doc/loop.texi: Remove all the section on Omega.
5057         * graphite-blocking.c: Include missing params.h: it used to be
5058         included through tree-data-ref.h and omega.h.
5059         * graphite-isl-ast-to-gimple.c: Same.
5060         * graphite-optimize-isl.c: Same.
5061         * graphite-sese-to-poly.c: Same.
5062         * graphite.c: Same.
5063         * omega.c: Remove.
5064         * omega.h: Remove.
5065         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
5066         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
5067         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
5068         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
5069         * passes.def: Remove pass_check_data_deps.
5070         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
5071         (dump_conflict_function): Same.
5072         (dump_subscript): Same.
5073         (print_direction_vector): Same.
5074         (print_dir_vectors): Same.
5075         (print_lambda_vector): Same.
5076         (print_dist_vectors): Same.
5077         (dump_data_dependence_relation): Same.
5078         (dump_data_dependence_relations): Same.
5079         (dump_dist_dir_vectors): Same.
5080         (dump_ddrs): Same.
5081         (init_omega_eq_with_af): Removed.
5082         (omega_extract_distance_vectors): Removed.
5083         (omega_setup_subscript): Removed.
5084         (init_omega_for_ddr_1): Removed.
5085         (init_omega_for_ddr): Removed.
5086         (ddr_consistent_p): Removed.
5087         (compute_affine_dependence): Do not use omega to check data
5088         dependences.
5089         (compute_data_dependences_for_bb): Removed.
5090         (analyze_all_data_dependences): Removed.
5091         (tree_check_data_deps): Removed.
5092         * tree-data-ref.h: Do not include omega.h.
5093         (compute_data_dependences_for_bb): Removed.
5094         (tree_check_data_deps): Removed.
5095         * tree-ssa-loop.c (pass_check_data_deps): Removed.
5096         (make_pass_check_data_deps): Removed.
5097         * tree-ssa-phiopt.c: Include params.h.
5098         * tree-vect-data-refs.c: Same.
5099         * tree-vect-slp.c: Same.
5101 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
5103         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
5104         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
5105         (mem->fpreg splitters): Ditto.
5106         (general_operand->nonimmediate_operand splitter): Use explicit modes.
5107         Disable DFmode for TARGET_64BIT.
5109 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
5111         PR target/66906
5112         * config/i386/i386.c (ix86_expand_prologue): Replicate static
5113         chain on the stack.
5115 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5117         * config/nvptx/mkoffload.c (process): Constify host data.
5118         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5119         Constify host data.
5120         (generate_host_descr_file): Likewise.
5122 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
5123             Sebastian Pop  <s.pop@samsung.com>
5125         PR middle-end/61929
5126         * graphite-dependences.c (add_pdr_constraints): Renamed
5127         pdr->extent to pdr->subscript_sizes.
5128         * graphite-interchange.c (build_linearized_memory_access): Add
5129         back all gcc_assert's that the "isl_int to isl_val conversion"
5130         patch has removed.  Refactored.
5131         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
5132         * graphite-poly.c (new_poly_dr): Same.
5133         (free_poly_dr): Same.
5134         * graphite-poly.h (struct poly_dr): Same.
5135         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
5136         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
5137         * graphite-scop-detection.h: Fix space.
5138         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
5139         back all gcc_assert's removed by a previous patch.
5140         (wrap): Remove the_isl_ctx global variable that the same patch has
5141         added.
5142         (build_loop_iteration_domains): Same.
5143         (add_param_constraints): Same.
5144         (pdr_add_data_dimensions): Same.  Refactored.
5145         (build_poly_dr): Renamed extent to subscript_sizes.
5147 2015-07-17  Marek Polacek  <polacek@redhat.com>
5149         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
5150         * match.pd: ... here.
5152 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5154         * config/nvptx/mkoffload.c (process): Constify target data.
5155         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5156         Constify target data.
5157         (generate_target_offloadend_file): Likewise.
5159 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
5161         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
5162         to allow renaming of PHI arguments on edges incoming from outer
5163         loop header, add corresponding check before start PHI iterator.
5164         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
5165         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
5166         with true force_vectorize.  Set-up dominator for outer loop too.
5167         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
5168         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
5169         was marked with force_vectorize and has restricted cfg.
5170         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
5171         inner loop.
5172         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5173         do peeling for outer loops.
5175 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
5176             Matthias Klose  <doko@ubuntu.com>
5178         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
5179         build-sysroot, sysroot from the `Miscenalleous configure options' to
5180         the `Directories' section and strip trailing `/' from with_sysroot.
5181         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
5182         * configure: Regenerated.
5184 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5186         PR target/66824
5187         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
5188         (TARGET_HARD_DF_REGS): Ditto.
5189         (TARGET_HARD_XF_REGS): Ditto.
5190         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
5191         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
5192         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
5193         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
5194         (*movsf_internal): Add alternatives 16 and 17. Enable
5195         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
5197 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5199         PR rtl-optimization/66891
5200         * calls.c (expand_call): Wrap precompute_register_parameters with
5201         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
5203 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
5205         * config/nvptx/mkoffload.c (process): Constify mapping variables.
5206         Define target data struct and initialize it.
5208 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
5210         PR rtl-optimization/66626
5211         * ira.h (emit-rtl.h): Include.
5212         (non_spilled_static_chain_regno_p): New.
5213         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
5214         unless it is non spilled static chain pseudo.
5215         (assign_hard_rego): Spill memory profitable allocno unless it is
5216         non spilled static chain pseudo.
5217         (allocno_spill_priority_compare): Put non spilled static chain
5218         pseudo at the end of sorted array.
5219         (improve_allocation): Do nothing if we have static chain and
5220         non-local goto.
5221         (allocno__priority_compare_func): Put non spilled static chain
5222         pseudo at the beginning of sorted array.
5223         (move_spill_restore): Ignore non spilled static chain pseudo.
5224         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
5225         to non spilled static chain pseudo.
5226         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
5227         pseudo at the beginning of sorted array.
5228         (spill_for): Spill non spilled static chain pseudo last.
5229         * lra-constraints.c (lra_constraints): Remove static chain pseudo
5230         check for equivalence.
5232 2015-07-16  Martin Liska  <mliska@suse.cz>
5234         PR ipa/66896.
5235         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
5236         dst_ctx if it does not exist.
5238 2015-07-16  Martin Liska  <mliska@suse.cz>
5240         * hash-set.h (remove): New function.
5241         (iterator): New iteration class for hash_set.
5243 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5245         * genattrtab.c (make_canonical): Add a file_location parameter.
5246         Use fatal_at rather than fatal.
5247         (get_attr_value): Likewise.  Update call to make_canonical.
5248         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
5249         (make_internal_attr): Update calls accordingly.
5251 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5253         * read-md.h (message_with_line, error_with_line): Delete.
5254         * read-md.c (message_with_line, error_with_line): Delete.
5255         * gensupport.h: Include read-md.h.
5256         (md_rtx_info): New structure.
5257         (read_md_rtx): Use it.  Return a bool success value.
5258         * gensupport.c (read_md_rtx): Likewise.
5259         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
5260         (main): Update after interface changes.
5261         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
5262         (main): Update after interface changes.
5263         * genattrtab.c (insn_code_number): Delete.
5264         (optimize_attrs): Add a max_insn_code parameter and use it instead
5265         of insn_code_number.
5266         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
5267         Use *_at rather than *_with_line functions.
5268         (gen_insn): Likewise.
5269         (gen_delay): Likewise.
5270         (gen_insn_reserv): Likewise.
5271         (gen_bypass): Take an md_rtx_info rather than an rtx.
5272         (main): Update after interface changes.  Use a local max_insn_code
5273         variable instead of insn_code_number.
5274         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
5275         an rtx.  Use fatal_at rather than fatal.
5276         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
5277         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
5278         (gen_absence_set, gen_final_absence_set, gen_automaton)
5279         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
5280         (main): Update after interface changes.
5281         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
5282         and code number.
5283         (main): Update after interface changes.
5284         * genconditions.c (main): Use new read_md_rtx interface.
5285         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
5286         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
5287         (main): Update after interface changes.
5288         * genemit.c (insn_code_number, insn_index_number): Delete.
5289         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5290         Use fatal_at rather than fatal.
5291         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
5292         rather than fatal.
5293         (gen_split): Likewise.
5294         (main): Update after interface changes.
5295         * genextract.c (line_no): Delete.
5296         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5297         Update call to walk_rtx.
5298         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
5299         rather than message_with_line.
5300         (walk_rtx): Add an md_rtx_info argument.  Update call to
5301         VEC_safe_set_locstr.
5302         (main): Update after interface changes.
5303         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
5304         and lineno.  Use error_at rather than separate message_with_line
5305         calls and have_error assignments.
5306         (main): Update after interface changes.
5307         * genmddump.c (main): Use new read_md_rtx interface.
5308         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
5309         (main): Update after interface changes.
5310         * genoutput.c (next_code_number): Delete.
5311         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5312         (gen_peephole, gen_expand, gen_split): Likewise.
5313         (note_constraint): Likewise.  Use *_at rather than *_with_line
5314         functions.
5315         (main): Update after interface changes.
5316         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
5317         rtx and lineno.
5318         (main): Update after interface changes.
5319         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
5320         than an rtx and lineno.
5321         (process_define_constraint): Likewise.
5322         (process_define_register_constraint): Likewise.
5323         (main): Update after interface changes.
5324         * genrecog.c (next_insn_code, pattern_lineno): Delete.
5325         (validate_pattern): Replace top-level rtx with an md_rtx_info.
5326         Use *_at rather than *_with_line functions.
5327         (match_pattern_2): Likewise.
5328         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
5329         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
5330         Use *_at rather than *_with_line functions.
5331         * gentarget-def.c (add_insn): New function.
5332         (main): Use it.  Use new read_md_rtx interface.
5334 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5336         * gensupport.h (compute_test_codes): Take a file_location rather
5337         than a line number.
5338         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
5339         rather than *_with_line functions.
5340         (process_define_predicate): Update call to compute_test_codes.
5341         * genpreds.c (validate_exp): Take a file_location rather than a
5342         line number.  Use *_at functions rather than *_with_line functions.
5343         (process_define_predicate): Update call to validate_exp.
5344         (constraint_data): Replace lineno field with a file_location.
5345         (add_constraint): Take a file_location rather than a line number.
5346         Use *_at functions rather than *_with_line functions.  Fix error
5347         message for address constraints.  Update after changes to
5348         validate_exp, constraint_data and compute_test_codes.
5349         (process_define_constraint): Update accordingly.
5350         (process_define_register_constraint): Likewise.
5352 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5354         * genoutput.c (data): Use a file_location to record the source
5355         position.
5356         (nothing): Delete.
5357         (idata, idata_end): Remove initialization.
5358         (constraint_data): Replace lineno with a file_location.
5359         (output_insn_data): Update after changes to data.
5360         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
5361         (scan_operands): Likewise, using *_at rather than *_with_line
5362         functions.
5363         (process_template): Likewise.
5364         (validate_insn_alternatives): Likewise.
5365         (validate_insn_operands): Likewise.
5366         (validate_optab_operands): Likewise.
5367         (init_insn_for_nothing): Initialize idata and idata_end.
5368         (note_constraint): Update after changes to constraint_data,
5369         using at rather than with_line functions.
5370         (mdep_constraint_len): Take a file_location rather than a
5371         line number.  Use at rather than with_line functions.
5373 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5375         * read-md.h (fatal_at): Declare.
5376         * read-md.c (fatal_at): New function.
5377         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
5378         to record the source position.
5379         (check_attr_test): Take a file_location instead of a line number.
5380         Use fatal_at instead of fatal.
5381         (check_attr_value): Update after above changes, using "at"
5382         rather than "with_line" reporting functions.
5383         (convert_set_attr_alternative): Likewise.
5384         (gen_attr): Likewise.
5385         (check_defs): Likewise.  Don't assign to read_md_filename.
5386         (gen_insn): Update initialization after above changes.
5387         (gen_delay): Likewise.
5388         (write_insn_cases): Print the filename for a define_peephole.
5389         (gen_insn_reserv): Take a line number as argument and update
5390         the call to check_attr_test.
5391         (main): Pass a line number to gen_insn_reserv.
5393 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5395         * read-md.h (file_location): New structure.
5396         (directive_handler_t): Take a file_location rather than a line number.
5397         (message_at, error_at): Declare.
5398         (read_skip_construct): Delete.
5399         * read-md.c (message_with_line_1): Replace with...
5400         (message_at_1): ...this new function.
5401         (message_at, error_at): New functions.
5402         (message_with_line, error_with_line): Update to use message_at_1.
5403         (handle_enum): Take a file_location rather than a line number
5404         and use error_at for error reporting.
5405         (handle_include): Likewise.
5406         (read_skip_construct): Likewise.  Make static.
5407         (handle_file): Update after above changes.  Pass a file_location
5408         rather than a line number to handle_directive.
5409         * gensupport.c (queue_elem): Replace separate filename and lineno
5410         with a file_location.
5411         (queue_pattern): Replace filename and lineno arguments with a
5412         file_location.  Update after change to queue_elem.
5413         (process_define_predicate): Replace lineno argument with a
5414         file_location and use error_at for error reporting.  Update
5415         after above changes.
5416         (process_rtx): Likewise.
5417         (subst_pattern_match): Likewise.
5418         (get_alternatives_number): Likewise.
5419         (alter_predicate_for_insn): Likewise.
5420         (rtx_handle_directive): Likewise.
5421         (is_predicable): Update after above changes, using error_at rather
5422         than error_with_line.
5423         (has_subst_attribute): Likewise.
5424         (identify_predicable_attribute): Likewise.
5425         (alter_attrs_for_subst_insn): Likewise.
5426         (process_one_cond_exec): Likewise.
5427         (process_substs_on_one_elem): Likewise.
5428         (process_define_subst): Likewise.
5429         (check_define_attr_duplicates): Likewise.
5430         (read_md_rtx): Update after change to queue_elem.
5432 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5434         * genoutput.c (next_index_number): Delete.
5435         (data): Remove index_number.
5436         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
5437         (main): Remove manipulation of next_index_number.
5439 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5441         * genattrtab.c (check_attr_value): Remove handling of null attrs.
5442         (make_canonical): Likewise.
5444 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
5446         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
5447         instead of adjust_address_nv.
5448         (restore_stack_nonlocal): Likewise.
5449         (nonlocal_goto): Likewise.
5451 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5453         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
5454         not have a corresponding loop header phi.
5456 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5458         * tree-parloops.c (create_loads_for_reductions): Handle case that
5459         reduction is unused.
5461 2015-07-16  Richard Biener  <rguenther@suse.de>
5463         PR tree-optimization/66894
5464         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
5465         about deriving NE_EXPR from truncated values.
5467 2015-07-16  Martin Liska  <mliska@suse.cz>
5469         * alloc-pool.h
5470         (object_allocator): Add new class.
5471         (pool_allocator::initialize): Use the underlying class.
5472         (pool_allocator::allocate): Likewise.
5473         (pool_allocator::remove): Likewise.
5474         (operator new): A new generic allocator.
5475         * asan.c (struct asan_mem_ref): Remove unused members.
5476         (asan_mem_ref_new): Replace new operator with
5477         object_allocator::allocate.
5478         (free_mem_ref_resources): Change deallocation.
5479         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
5480         with object_allocator.
5481         * config/sh/sh.c (add_constant): Replace new operator with
5482         object_allocator::allocate.
5483         (sh_reorg): Change call to a release method.
5484         * cselib.c (struct elt_list): Remove unused members.
5485         (new_elt_list): Replace new operator with
5486         object_allocator::allocate.
5487         (new_elt_loc_list): Likewise.
5488         (new_cselib_val): Likewise.
5489         (unchain_one_elt_list): Change delete operator with remove method.
5490         (unchain_one_elt_loc_list): Likewise.
5491         (unchain_one_value): Likewise.
5492         (cselib_finish): Release newly added static allocators.
5493         * cselib.h (struct cselib_val): Remove unused members.
5494         (struct elt_loc_list): Likewise.
5495         * df-problems.c (df_chain_alloc): Replace pool_allocator with
5496         object_allocator.
5497         * df-scan.c (struct df_scan_problem_data): Likewise.
5498         (df_scan_alloc): Likewise.
5499         * df.h (struct dataflow): Likewise.
5500         * dse.c (struct read_info_type): Likewise.
5501         (struct insn_info_type): Likewise.
5502         (struct dse_bb_info_type): Likewise.
5503         (struct group_info): Likewise.
5504         (struct deferred_change): Likewise.
5505         (get_group_info): Likewise.
5506         (delete_dead_store_insn): Likewise.
5507         (free_read_records): Likewise.
5508         (replace_read): Likewise.
5509         (check_mem_read_rtx): Likewise.
5510         (scan_insn): Likewise.
5511         (dse_step1): Likewise.
5512         (dse_step7): Likewise.
5513         * et-forest.c (struct et_occ): Remove unused members.
5514         (et_new_occ): Use allocate instead of new operator.
5515         (et_new_tree): Likewise.
5516         (et_free_tree): Call release method explicitly.
5517         (et_free_tree_force): Likewise.
5518         (et_free_pools): Likewise.
5519         (et_split): Use remove instead of delete operator.
5520         * et-forest.h (struct et_node): Remove unused members.
5521         * ipa-cp.c: Change pool_allocator to object_allocator.
5522         * ipa-inline-analysis.c: Likewise.
5523         * ipa-profile.c: Likewise.
5524         * ipa-prop.c: Likewise.
5525         * ipa-prop.h: Likewise.
5526         * ira-build.c (initiate_cost_vectors): Cast return value.
5527         (ira_allocate_cost_vector): Likewise.
5528         * ira-color.c (struct update_cost_record): Remove unused members.
5529         * lra-int.h (struct lra_live_range): Likewise.
5530         (struct lra_copy): Likewise.
5531         (struct lra_insn_reg): Likewise.
5532         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
5533         * lra.c (new_insn_reg): Replace new operator with allocate method.
5534         (free_insn_regs): Same for operator delete.
5535         (finish_insn_regs): Release new static allocator.
5536         (finish_insn_recog_data): Likewise.
5537         (lra_free_copies): Replace delete operator with remove method.
5538         (lra_create_copy): Replace operator new with allocate method.
5539         (invalidate_insn_data_regno_info): Same for remove method.
5540         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
5541         (free_debug_insn_changes): Replace delete operator with remove method.
5542         (replace_oldest_value_reg): Replace operator new with allocate method.
5543         (pass_cprop_hardreg::execute): Release new static variable.
5544         * sched-deps.c (sched_deps_init): Change pool_allocator to
5545         object_allocator.
5546         * sel-sched-ir.c: Likewise.
5547         * sel-sched-ir.h: Likewise.
5548         * stmt.c (expand_case): Likewise.
5549         (expand_sjlj_dispatch_table): Likewise.
5550         * tree-sra.c (struct access): Remove unused members.
5551         (struct assign_link): Likewise.
5552         (sra_deinitialize): Release newly added static pools.
5553         (create_access_1):Replace operator new with allocate method.
5554         (build_accesses_from_assign): Likewise.
5555         (create_artificial_child_access): Likewise.
5556         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
5557         pool_allocator to object_allocator.
5558         * tree-ssa-pre.c: Likewise.
5559         * tree-ssa-reassoc.c: Likewise.
5560         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5561         * tree-ssa-strlen.c: Likewise.
5562         * tree-ssa-structalias.c: Likewise.
5563         * var-tracking.c (onepart_pool_allocate): New function.
5564         (unshare_variable): Use the newly added function.
5565         (variable_merge_over_cur): Likewise.
5566         (variable_from_dropped): Likewise.
5567         (variable_was_changed): Likewise.
5568         (set_slot_part): Likewise.
5569         (emit_notes_for_differences_1): Likewise.
5570         (vt_finalize): Release newly added static pools.
5572 2015-07-16  Martin Jambor  <mjambor@suse.cz>
5574         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
5575         all uses.  Fix two typos in its general comment.
5576         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
5578 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
5580         * config/i386/linux-common.h (LINK_MPX): New.
5581         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
5582         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
5583         indicating '-z bndplt' support by linker.
5584         * configure: Regenerate.
5585         * config.in: Regenerate.
5587 2015-07-16  Richard Biener  <rguenther@suse.de>
5589         * fold-const.c (fold_widened_comparison): Remove.
5590         (fold_sign_changed_comparison): Likewise.
5591         (fold_comparison): Move widened and sign-changed comparison
5592         simplification ...
5593         * match.pd: ... to patterns here.
5594         * generic-match-head.c: Include target.h.
5595         * gimple-match-head.c: Likewise.
5597 2015-07-16  Richard Biener  <rguenther@suse.de>
5599         * tree-ssa-dom.c (dom_valueize): New function.
5600         (record_temporary_equivalences): Also record equivalences
5601         for dominating stmts that have uses of equivalences we are
5602         about to record.
5604 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
5606         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
5607         add_autoinc_candidates.
5608         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
5609         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
5610         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
5611         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
5612         Call new function.
5613         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
5614         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
5615         Remove parameter struct iv*.  Call add_autoinc_candidates here.
5616         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
5617         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
5618         Call new function.
5619         (find_iv_candidates): Call new functions.
5621 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
5623         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
5624         uninitialized-variable warning.
5626 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5628         PR target/65249
5629         * config/sh/sh.md (movdi): Split simple reg move to two movsi
5630         when the destination is R0.
5632 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
5634         PR target/66866
5635         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
5636         * config/i386/i386.c (ix86_expand_pextr): New function.
5637         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
5638         for non-lowpart subregs.
5639         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
5640         (insv<mode>): Use SWI248 mode iterator.
5641         (insv<mode>_1): Ditto.
5643 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5644             Sebastian Pop  <s.pop@samsung.com>
5646         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
5647         iterator to use_stmt.
5649 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5650             Sebastian Pop <s.pop@samsung.com>
5652         * graphite-scop-detection.c (build_scops_1): Discard scops for
5653         which entry==exit.
5655 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5656             Sebastian Pop <s.pop@samsung.com>
5658         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
5659         case of a return statement in scop.
5661 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5662             Sebastian Pop <s.pop@samsung.com>
5664         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
5665         INTEGER_TYPE parameters.
5666         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
5667         VECTOR_CST in scan_tree_for_params.
5668         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
5670 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5672         * gimple-pretty-print.h: Don't include pretty-print.h.
5673         * tree-streamer.h: Don't include lto-streamer.h.
5674         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
5675         * gimple-streamer-in.c: Remove redundant includes.
5676         * gimple-streamer-out.c: Likewise.
5677         * ipa-devirt.c: Likewise.
5678         * ipa-icf.c: Likewise.
5679         * ipa-inline-analysis.c: Likewise.
5680         * ipa-polymorphic-call.c: Likewise.
5681         * ipa-profile.c: Likewise.
5682         * ipa-prop.c: Likewise.
5683         * ipa-pure-const.c: Likewise.
5684         * lto-cgraph.c: Likewise.
5685         * lto-streamer-in.c: Likewise.
5686         * lto-streamer-out.c: Likewise.
5687         * lto-streamer.c: Likewise.
5688         * tree-streamer-in.c: Likewise.
5689         * tree-streamer-out.c: Likewise.
5690         * tree-streamer.c: Likewise.
5692 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5694         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
5695         include input.h.
5696         * opts.c: Remove multiline #include comment.
5698 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
5700         * config/nvptx/mkoffload.c (process): Add C++ protection to
5701         emitted code.
5703 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5705         PR target/66854
5706         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
5707         null before IEEE 128-bit floating point support patch.
5709 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5711         * simplify-rtx.c (simplify_ternary_operation): Add simplification
5712         for (!c) != {0,...,0} ? a : b for vector modes.
5714 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
5715             Martin Jambor  <mjambor@suse.cz>
5717         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
5718         struct func_body_info* instead of struct ipa_node_params*, expecting
5719         fbi->info to be filled in.  Replace throughout.  Adjust call to
5720         ipa_load_from_parm_agg.
5721         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
5722         instead of struct ipa_node_params*.  Adjust calls to other functions
5723         so that they pass either fbi or fbi->info.
5724         (set_switch_stmt_execution_predicate): Likewise.
5725         (will_be_nonconstant_predicate): Likewise.
5726         (compute_bb_predicates): Likewise.
5727         (estimate_function_body_sizes): Move asserts earlier.  Fill in
5728         struct func_body_info, replace parms_info with fbi.info.  Adjust
5729         calls to functions that now accept struct func_body_info.
5730         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
5731         (struct func_body_info): Likewise.
5732         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
5733         remove static.  Adjust callers.
5734         (ipa_load_from_parm_agg): Remove.
5735         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
5736         (func_body_info): Likewise.
5737         (ipa_load_from_parm_agg): Adjust prototype.
5739 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5741         * gensupport.c (rtx_handle_directive): Adjust.
5742         * read-rtl.c (apply_iterators): Take vector to add rtxs to
5743         instead of expr list rtx.
5744         (add_define_attr_for_define_subst): Likewise.
5745         (add_define_subst_attr): Likewise.
5746         (read_subst_mapping): Likewise.
5747         (read_rtx): Likewise.
5748         * rtl.h (read_rtx): Adjust.
5750 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5752         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
5754 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5756         PR target/58066
5757         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
5758         (*tls_local_dynamic_base_64_<mode>): Ditto.
5759         (*tls_local_dynamic_base_64_largepic): Ditto.
5760         (tls_global_dynamic_64_<mode>): Update expander pattern.
5761         (tls_local_dynamic_base_64_<mode>): Ditto.
5763 2015-07-15  Richard Biener  <rguenther@suse.de>
5765         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
5766         and bool_var == 1 -> bool_var simplifications ...
5767         * match.pd: ... to patterns here.  Factor out negate_expr_p
5768         cases from the A - B -> A + (-B) patterns as negate_expr_p
5769         predicate and add a -(A + B) -> (-B) - A pattern.
5771 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5773         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
5775 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
5776             Robert Suchanek  <robert.suchanek@imgtec.com>
5778         * config/mips/mips.c (mips_int_mask): New enum.
5779         (mips_shadow_set): Likewise.
5780         (int_mask): New variable.
5781         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
5782         (machine_function): Add int_mask and use_shadow_register_set.
5783         (mips_attribute_table): Add attribute handlers for interrupt and
5784         use_shadow_register_set.
5785         (mips_interrupt_mask): New static function.
5786         (mips_handle_interrupt_attr): Likewise.
5787         (mips_handle_use_shadow_register_set_attr): Likewise.
5788         (mips_use_shadow_register_set): Change return type to enum
5789         mips_shadow_set.  Add argument handling for use_shadow_register_set
5790         attribute.
5791         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
5792         compare with mips_shadow_set enum.
5793         (mips_compute_frame_info): Add interrupt mask and
5794         use_shadow_register_set to per-function information structure.
5795         Add a stack slot for EPC unconditionally.
5796         (mips_expand_prologue): Compare use_shadow_register_set value
5797         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
5798         masked interrupt register but in EIC mode use K0 and save Cause in K0.
5799         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
5800         copying the stack pointer from the shadow register set.
5801         * config/mips/mips.h (SR_IM0): New define.
5802         * config/mips/mips.md (mips_rdpgpr): Rename to...
5803         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
5804         * doc/extend.texi (Declaring Attributes of Functions): Document
5805         optional arguments for interrupt and use_shadow_register_set
5806         attributes.
5808 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5810         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
5811         interrupt attribute.
5812         (mips_expand_prologue): Disable the floating point unit in an ISR.
5813         * config/mips/mips.h (SR_COP1): New define.
5815 2015-07-15  Richard Biener  <rguenther@suse.de>
5817         * genmatch.c (parser::peek, parser::peek_ident): Add argument
5818         to tell how many tokens to peek ahead (default 1).
5819         (parser::eat_token, parser::eat_ident): Return token consumed.
5820         (parser::parse_result): Parse new switch statement.
5821         * match.pd: Use case statements where appropriate.
5823 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5825         PR rtl-optimization/58066
5826         * calls.c (expand_call): Precompute register parameters before stack
5827         alignment is performed.
5829 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5831         PR rtl-optimization/66838
5832         * postreload.c (reload_cse_move2add): Also process
5833         CALL_INSN_FUNCTION_USAGE when resetting information of
5834         call-clobbered registers.
5836 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5837             Cesar Philippidis  <cesar@codesourcery.com>
5838             Chung-Lin Tang  <cltang@codesourcery.com>
5840         * config/nios2/constraints.md (U, v): New constraints.
5841         * config/nios2/predicates.md (rdprs_dcache_operand): New.
5842         (ldstex_memory_operand): New.
5843         * config/nios2/sync.md: New file.
5844         * config/nios2/nios2.md (unspecv): Add new builtin function
5845         UNSPECV codes.
5846         (rdprs, flushd, flushda, wrpie, eni): New patterns.
5847         (top-level): Include sync.md.
5848         * config/nios2/nios2.c (N2_FTYPES): Add function types for
5849         new builtins.
5850         (N2_BUILTINS): Add arch field setting, add new builtins.
5851         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
5852         for arch field.
5853         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
5854         Also handle ldex/stex/ldsex/stsex builtins.
5855         (nios2_expand_rdprs_builtin): New function.
5856         (nios2_expand_cache_builtin): New function.
5857         (nios2_expand_wrpie_builtin): New function.
5858         (nios2_expand_eni_builtin): New function.
5859         (nios2_expand_builtin): Add arch field handling and new builtin
5860         cases.
5861         * doc/extend.texi (Altera Nios II Built-in Functions): Document
5862         new builtins.
5863         * doc/md.texi (Machine Constraints): Document U and v constraints.
5865 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5866             Cesar Philippidis  <cesar@codesourcery.com>
5867             Chung-Lin Tang  <cltang@codesourcery.com>
5869         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
5870         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
5871         callee_save_reg_size and uses_anonymous_args fields.
5872         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
5873         (nios2_create_cfa_notes): New function.
5874         (nios2_adjust_stack): New function for adjusting stack.
5875         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
5876         Use nios2_adjust_stack.
5877         (nios2_expand_epilogue): Likewise.
5878         (nios2_expand_return): New function.
5879         (nios2_can_use_return_insn): Update for CDX pop.n usage.
5880         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
5881         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
5882         * config/nios2/nios2.md (return): Use nios2_expand_return.
5884 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5885             Cesar Philippidis  <cesar@codesourcery.com>
5886             Chung-Lin Tang  <cltang@codesourcery.com>
5888         * config/nios2/predicates.md (pop_operation): New.
5889         (ldwm_operation, stwm_operation): New.
5890         (nios2_hard_register_operand): New.
5891         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
5892         (ldstwm_operation_p): Declare.
5893         (gen_ldstwm_peep): Declare.
5894         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
5895         (base_reg_adjustment_p): New.
5896         (pop_operation_p): New.
5897         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
5898         (nios2_ldstwm_regset_p): New.
5899         (ldstwm_operation_p): New.
5900         (gen_ldst): New.
5901         (nios2_ldst_parallel): New.
5902         (struct ldswm_operand): Declare.
5903         (compare_ldstwm_operands): New.
5904         (can_use_cdx_ldstw): New.
5905         (gen_ldstwm_peep): New.
5906         * config/nios2/nios2-ldstwm.sml: New.
5907         * config/nios2/nios2.md: Include ldstwm.md.
5908         * config/nios2/ldstwm.md: Generated.
5910 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5911             Cesar Philippidis  <cesar@codesourcery.com>
5912             Chung-Lin Tang  <cltang@codesourcery.com>
5914         * config/nios2/nios2.h (LABEL_ALIGN): Define.
5915         (REG_ALLOC_ORDER): Define.
5916         (ADJUST_REG_ALLOC_ORDER): Define.
5917         (HONOR_REG_ALLOC_ORDER): Define.
5918         (CDX_REG_P): Define.
5919         (ANDCLEAR_INT): Define.
5920         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
5921         (nios2_label_align): Declare.
5922         (nios2_cdx_narrow_form_p): Declare.
5923         (nios2_adjust_reg_alloc_order): Declare.
5924         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
5925         operation.
5926         (nios2_large_unspec_reloc_p): New function, split from...
5927         (nios2_legitimate_pic_operand_p): ...here.
5928         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
5929         (nios2_print_operand_punct_valid_p): New.
5930         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
5931         (split_mem_address): New.
5932         (split_alu_insn): New.
5933         (cdxreg): New.
5934         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
5935         (enum nios2_add_insn_kind): New.
5936         (nios2_add_insn_names, nios2_add_insn_narrow): New.
5937         (nios2_add_insn_classify): New.
5938         (nios2_add_insn_asm): New.
5939         (nios2_cdx_narrow_form_p): New.
5940         (label_align, min_labelno, max_labelno): New.
5941         (nios2_reorg): New.
5942         (nios2_label_align): New.
5943         (nios2_adjust_reg_alloc_order): New.
5944         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5945         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5946         * config/nios2/constraints.md (P): New constraint.
5947         * config/nios2/predicates.md (const_and_operand): New.
5948         (and_operand): New.
5949         (stack_memory_operand): New.
5950         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
5951         (length): Update to use nios2_cdx_narrow_form_p().
5952         (type): Add new insn type values.
5953         (control, alu, st, ld, shift): Update insn reservations with
5954         new insn type values.
5955         (*high, *lo_sum): Define new insn patterns for constant generation.
5956         (movqi_internal, movhi_internal, movsi_internal): Reduce
5957         alternatives, update asm template to handle CDX variants, update
5958         type attributes.
5959         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
5960         template, update type attributes.
5961         (extendhisi2, extendqi<mode>2): Likewise.
5962         (addsi3): Change to use function for asm string.
5963         (subsi3): Add CDX notation to asm template, update type attributes.
5964         (negsi3, one_cmplsi3): Likewise.
5965         (andsi3): New pattern, specialized from logical patterns.
5966         (<code>si3): Remove and case, combine alternatives, update asm
5967         template.
5968         (<shift_op>si3): Add CDX notation, update type attributes.
5969         (rotrsi3): Update type attribute.
5970         (*merge, extzv, insv): New insn patterns.
5971         (return): Change to define_expand.
5972         (simple_return): Add CDX notation, update type attributes.
5973         (indirect_jump): Add CDX notation.
5974         (jump): Update asm cases, update length attribute expression.
5975         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
5976         (nios2_cbranch): Update asm cases and length attribute expression
5977         to handle CDX variants.
5978         (nios2_cmp<code>): Update asm template.
5979         (nop): Add CDX notation, update type attributes.
5980         (trap): Add CDX notation.
5981         (ctrapsi4): Update asm cases and length attribute expression to
5982         handle CDX variant.
5983         * doc/md.texi (Machine Constraints): Document P constraint.
5985 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5986             Cesar Philippidis  <cesar@codesourcery.com>
5987             Chung-Lin Tang  <cltang@codesourcery.com>
5989         * config/nios2/nios2.h (SMALL_INT12): New macro.
5990         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
5991         (nios2_valid_addr_expr_p): Use it.
5992         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
5993         with implicit "io" instructions on R2.
5994         * config/nios2/constraints.md (w): New constraint.
5995         * config/nios2/predicates.md (ldstio_memory_operand): New.
5996         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
5997         operand predicate and constraint.
5998         (ld<bh>io_signed, st<bhw>io>): Likewise.
5999         * doc/md.texi (Machine Constraints): Document w constraint.
6001 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6002             Cesar Philippidis  <cesar@codesourcery.com>
6003             Chung-Lin Tang  <cltang@codesourcery.com>
6005         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
6006         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
6007         Nios II architecture level.
6008         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
6009         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
6010         (OPTION_DEFAULT_SPECS): Define.
6011         (ASM_SPEC): Add -march= spec strings.
6012         * config/nios2/nios2.c (nios2_option_override): Check for
6013         conflicts involving new options.
6014         * config.gcc (nios2*-*-*): Support --with-arch=.
6015         * doc/invoke.texi (Option Summary, Nios II Options): Document
6016         -march=, -mbmx, and -mcdx.
6018 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
6020         PR rtl-optimization/66626
6021         * lra-constraints.c (lra_constraints): Prevent equivalence
6022         substitution for static chain pseudo in functions with nonlocal
6023         goto.
6025 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6027         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
6028         (nios2_emit_stack_limit_check): Add size parameter.  Handle
6029         -fstack-limit-symbol as well as -fstack-limit-register.
6030         (nios2_expand_prologue): Emit only a single stack limit check,
6031         even if multiple stack adjustments are required.
6032         (nios2_option_override): Diagnose unsupported combination of -fpic
6033         and -stack-limit-symbol.
6035 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
6037         * Makefile.in (top_srcdir): New.
6038         * configure.ac: Use AM_ZLIB.
6039         * configure: Regeneated.
6041 2015-07-14  Matthias Klose  <doko@ubuntu.com>
6043         PR target/66840
6044         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
6046 2015-07-14  Richard Biener  <rguenther@suse.de>
6048         PR tree-optimization/66863
6049         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
6050         what we record for conversion use stmt lhs inequalities.
6052 2015-07-14  Richard Biener  <rguenther@suse.de>
6054         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
6055         (decision_tree::gen_gimple): Likewise.
6057 2015-07-14  Tom de Vries  <tom@codesourcery.com>
6059         * gcc.c (greater_than_spec_func): Declare forward.
6060         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
6061         -ftree-parallelize-loops={0,1}.
6062         (static_spec_functions): Add greater_than_spec_func function with name
6063         "gt".
6064         (greater_than_spec_func): New function.
6066 2015-07-14  Richard Biener  <rguenther@suse.de>
6068         * tree-ssa-dom.c (record_temporary_equivalences): Merge
6069         wideing type conversion case from record_equivalences_from_incoming_edge
6070         and use record_equality to record equivalences.
6071         (record_equivalences_from_incoming_edge): Call
6072         record_temporary_equivalences.
6074 2015-07-14  Richard Biener  <rguenther@suse.de>
6076         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
6077         (struct if_expr): New.
6078         (struct with_expr): Likewise.
6079         (is_a_helper): Add helpers for if_expr and with_expr.
6080         (struct simplify): Add simplify_kind enum and member.  Remove
6081         ifexpr_vec member.
6082         (simplify::simplify): Adjust.
6083         (lower_commutative): Adjust.
6084         (lower_opt_convert): Likewise.
6085         (lower_cond): Likewise.
6086         (replace_id): Handle with_expr and if_expr.
6087         (lower_for): Adjust.
6088         (dt_simplify::gen_1): New recursive worker, split out from ...
6089         (dt_simplify::gen): ... here.  Deal with if and with expansion
6090         recursively.
6091         (capture_info::capture_info): Take context argument
6092         (capture_info::walk_result): Only analyze specific result.
6093         (parser::parse_result): New function.
6094         (parser::parse_simplify): Adjust to parse ifs with then end
6095         else case.
6096         (parser::parse_if): Simplify.
6097         (parser::parse_pattern): Pass down simplify kind.
6098         * match.pd: Convert if structure to new syntax.
6100 2015-07-13  Marek Polacek  <polacek@redhat.com>
6102         * rtl.c (rtx_equal_p_cb): Fix typo.
6104 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
6106         * omega.h: Don't include config.h, don't include params.h again if
6107         omega.h has already been included.
6108         * graphite-poly.h: Include sese.h.
6109         * graphite.c: Don't include sese.h, remove needless includes and
6110         minimize includes outside #ifdef HAVE_isl block.
6111         * graphite-blocking.c: Don't include sese.h, remove needless includes,
6112         and wrap entire file in #ifdef HAVE_isl
6113         * graphite-dependences.c: Likewise.
6114         * graphite-interchange.c: Likewise.
6115         * graphite-isl-ast-to-gimple.c: Likewise.
6116         * graphite-optimize-isl.c: Likewise.
6117         * graphite-poly.c: Likewise.
6118         * graphite-scop-detection.c: Likewise.
6119         * graphite-sese-to-poly.c: Likewise.
6121 2015-07-13  Tom de Vries  <tom@codesourcery.com>
6123         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
6125 2015-07-13  Renlin Li  <renlin.li@arm.com>
6127         PR rtl/66556
6128         * simplify-rtx.c (simplify_const_relational_operation): Add
6129         side_effects_p checks.
6131 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
6133         * bitmap.h: Fix double word typos.
6134         * builtins.c: Same.
6135         * calls.c: Same.
6136         * cfgloopmanip.c: Same.
6137         * cgraph.c: Same.
6138         * cgraph.h: Same.
6139         * cgraphclones.c: Same.
6140         * combine.c: Same.
6141         * config/aarch64/aarch64-protos.h: Same.
6142         * config/aarch64/aarch64.c: Same.
6143         * config/aarch64/aarch64.md: Same.
6144         * config/arm/arm.md: Same.
6145         * config/arm/arm1020e.md: Same.
6146         * config/arm/arm1026ejs.md: Same.
6147         * config/arm/arm926ejs.md: Same.
6148         * config/arm/fa526.md: Same.
6149         * config/arm/fa606te.md: Same.
6150         * config/arm/fa626te.md: Same.
6151         * config/arm/fa726te.md: Same.
6152         * config/arm/fmp626.md: Same.
6153         * config/darwin.c: Same.
6154         * config/epiphany/epiphany.c: Same.
6155         * config/frv/frv.c: Same.
6156         * config/ft32/ft32.c: Same.
6157         * config/gnu-user.h: Same.
6158         * config/h8300/constraints.md: Same.
6159         * config/i386/i386.c: Same.
6160         * config/i386/i386.md: Same.
6161         * config/iq2000/iq2000.md: Same.
6162         * config/mips/mips.c: Same.
6163         * config/mmix/mmix.md: Same.
6164         * config/moxie/moxie.c: Same.
6165         * config/nds32/nds32.md: Same.
6166         * config/pa/pa.h: Same.
6167         * config/rs6000/aix.h: Same.
6168         * config/rs6000/rs6000.h: Same.
6169         * config/sh/sh.c: Same.
6170         * config/tilegx/tilegx.md: Same.
6171         * config/tilepro/gen-mul-tables.cc: Same.
6172         * cse.c: Same.
6173         * dbxout.c: Same.
6174         * doc/invoke.texi: Same.
6175         * dse.c: Same.
6176         * dwarf2out.c: Same.
6177         * final.c: Same.
6178         * gcc.c: Same.
6179         * genmatch.c: Same.
6180         * gimplify.c: Same.
6181         * hash-table.h: Same.
6182         * internal-fn.c: Same.
6183         * ipa-cp.c: Same.
6184         * ipa-devirt.c: Same.
6185         * ipa-icf.c: Same.
6186         * ipa-icf.h: Same.
6187         * ipa-profile.c: Same.
6188         * ipa-prop.c: Same.
6189         * ipa-prop.h: Same.
6190         * ira.c: Same.
6191         * omp-low.c: Same.
6192         * reg-stack.c: Same.
6193         * regcprop.c: Same.
6194         * reorg.c: Same.
6195         * rtl.h: Same.
6196         * sbitmap.h: Same.
6197         * tree-eh.c: Same.
6198         * tree-inline.c: Same.
6199         * tree-sra.c: Same.
6200         * tree-ssa-dom.c: Same.
6201         * tree-ssa-loop-ivopts.c: Same.
6202         * tree-ssa-structalias.c: Same.
6203         * tree-ssa-tail-merge.c: Same.
6204         * tree-ssa-ter.c: Same.
6205         * tree-ssa-threadupdate.c: Same.
6206         * tree-ssa-uninit.c: Same.
6207         * tree-ssanames.c: Same.
6208         * tree-vect-loop-manip.c: Same.
6209         * tree-vrp.c: Same.
6210         * tree.c: Same.
6211         * valtrack.c: Same.
6212         * vec.h: Same.
6214 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6216         PR middle-end/66726
6217         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
6218         tree_ssa_phiopt_worker): Call it.
6220 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6222         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
6223         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
6224         REG_EQUAL note.
6226 2015-07-11  Marek Polacek  <polacek@redhat.com>
6228         PR middle-end/66353
6229         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
6230         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
6231         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
6232         rather than bb_has_abnormal_call_pred.
6233         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
6234         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
6235         rather than bb_has_abnormal_call_pred.
6237 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
6239         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6240         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
6241         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6242         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
6243         v850_legitimate_address_p): New functions.
6244         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6246 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6248         PR target/66819
6249         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
6250         indirect sibcall with register arguments if register available
6251         for argument passing.
6252         (init_cumulative_args): Set cfun->machine->arg_reg_available
6253         to (cum->nregs > 0) or to true if function has a variable
6254         argument list.
6255         (function_arg_advance_32): Set cfun->machine->arg_reg_available
6256         to false if cum->nregs <= 0.
6257         * config/i386/i386.h (machine_function): Add arg_reg_available.
6259 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6261         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
6262         and gen_higpart instead of gen_rtx_SUBREG.
6263         * config/i386/i386.md
6264         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
6265         (read-modify peephole2): Use gen_lowpart instead of
6266         gen_rtx_SUBREG for operand 5.
6268 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
6270         * config/tilepro/gen-mul-tables.cc (main): Change include list for
6271         generated files.
6272         * config/tilepro/mul-tables.c: Regenerate.
6273         * config/tilegx/mul-tables.c: Regenerate.
6275 2015-07-10  Richard Biener  <rguenther@suse.de>
6277         * fold-const.c (distribute_bit_expr): Remove.
6278         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
6279         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
6280         to A & (B | C) and simplifying A << C1 << C2 to ...
6281         * match.pd: ... patterns here.
6283 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
6285         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6286         Mark mem as READONLY and NOTRAP for PIC symbol.
6288 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
6290         * gimple-predict.h: New file.
6291         (gimple_predict_predictor, gimple_predict_set_predictor,
6292         gimple_predict_outcome, gimple_predict_set_outcome,
6293         gimple_build_predict): Relocate here.
6294         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
6295         gimple_predict_outcome, gimple_predict_set_outcome): Move to
6296         gimple-predict.h.
6297         * gimple.c (gimple_build_predict): Move to gimple-predict.h
6298         * basic-block.h: Don't include cfghooks.h.
6299         * backend.h: Don't include predict.h.
6300         * cfghooks.h: Include predict.h.
6301         * gimple-pretty-print.c: Include gimple-predict.h.
6302         * gimplify.c: Likwise.
6303         * predict.c: Adjust includes.
6304         * tree-inline.c: Likewise.
6305         * asan.c: Likewise.
6306         * auto-inc-dec.c: Likewise.
6307         * auto-profile.c: Likewise.
6308         * bb-reorder.c: Likewise.
6309         * builtins.c: Likewise.
6310         * caller-save.c: Likewise.
6311         * calls.c: Likewise.
6312         * cfganal.c: Likewise.
6313         * cfgbuild.c: Likewise.
6314         * cfg.c: Likewise.
6315         * cfgcleanup.c: Likewise.
6316         * cfgexpand.c: Likewise.
6317         * cfghooks.c: Likewise.
6318         * cfgloopanal.c: Likewise.
6319         * cfgloop.c: Likewise.
6320         * cfgloopmanip.c: Likewise.
6321         * cfgrtl.c: Likewise.
6322         * cgraph.c: Likewise.
6323         * cgraphunit.c: Likewise.
6324         * combine.c: Likewise.
6325         * cprop.c: Likewise.
6326         * cse.c: Likewise.
6327         * dce.c: Likewise.
6328         * dojump.c: Likewise.
6329         * dse.c: Likewise.
6330         * except.c: Likewise.
6331         * expmed.c: Likewise.
6332         * expr.c: Likewise.
6333         * final.c: Likewise.
6334         * fold-const.c: Likewise.
6335         * function.c: Likewise.
6336         * fwprop.c: Likewise.
6337         * gcc-plugin.h: Likewise.
6338         * gcse.c: Likewise.
6339         * genattrtab.c: Likewise.
6340         * genemit.c: Likewise.
6341         * gengtype.c: Likewise.
6342         * genopinit.c: Likewise.
6343         * genoutput.c: Likewise.
6344         * genpreds.c: Likewise.
6345         * genrecog.c: Likewise.
6346         * gimple-fold.c: Likewise.
6347         * gimple-iterator.c: Likewise.
6348         * gimple-ssa-isolate-paths.c: Likewise.
6349         * gimple-ssa-strength-reduction.c: Likewise.
6350         * graph.c: Likewise.
6351         * graphite-blocking.c: Likewise.
6352         * graphite.c: Likewise.
6353         * graphite-dependences.c: Likewise.
6354         * graphite-interchange.c: Likewise.
6355         * graphite-isl-ast-to-gimple.c: Likewise.
6356         * graphite-optimize-isl.c: Likewise.
6357         * graphite-poly.c: Likewise.
6358         * graphite-scop-detection.c: Likewise.
6359         * graphite-sese-to-poly.c: Likewise.
6360         * haifa-sched.c: Likewise.
6361         * ifcvt.c: Likewise.
6362         * internal-fn.c: Likewise.
6363         * ipa-cp.c: Likewise.
6364         * ipa-profile.c: Likewise.
6365         * ipa-split.c: Likewise.
6366         * ipa-utils.c: Likewise.
6367         * ira-build.c: Likewise.
6368         * ira-color.c: Likewise.
6369         * ira-conflicts.c: Likewise.
6370         * ira-costs.c: Likewise.
6371         * ira-emit.c: Likewise.
6372         * ira-lives.c: Likewise.
6373         * jump.c: Likewise.
6374         * loop-doloop.c: Likewise.
6375         * loop-init.c: Likewise.
6376         * loop-invariant.c: Likewise.
6377         * loop-unroll.c: Likewise.
6378         * lower-subreg.c: Likewise.
6379         * lra-assigns.c: Likewise.
6380         * lra.c: Likewise.
6381         * lra-coalesce.c: Likewise.
6382         * lra-constraints.c: Likewise.
6383         * lra-lives.c: Likewise.
6384         * lto-cgraph.c: Likewise.
6385         * lto-streamer-in.c: Likewise.
6386         * mode-switching.c: Likewise.
6387         * modulo-sched.c: Likewise.
6388         * omp-low.c: Likewise.
6389         * optabs.c: Likewise.
6390         * passes.c: Likewise.
6391         * postreload.c: Likewise.
6392         * postreload-gcse.c: Likewise.
6393         * profile.c: Likewise.
6394         * recog.c: Likewise.
6395         * regstat.c: Likewise.
6396         * reload1.c: Likewise.
6397         * reorg.c: Likewise.
6398         * rtlanal.c: Likewise.
6399         * sched-ebb.c: Likewise.
6400         * sel-sched-ir.c: Likewise.
6401         * sese.c: Likewise.
6402         * shrink-wrap.c: Likewise.
6403         * simplify-rtx.c: Likewise.
6404         * stmt.c: Likewise.
6405         * store-motion.c: Likewise.
6406         * tracer.c: Likewise.
6407         * trans-mem.c: Likewise.
6408         * tree-call-cdce.c: Likewise.
6409         * tree-cfg.c: Likewise.
6410         * tree-cfgcleanup.c: Likewise.
6411         * tree-chkp.c: Likewise.
6412         * tree-complex.c: Likewise.
6413         * tree-eh.c: Likewise.
6414         * tree-if-conv.c: Likewise.
6415         * tree-loop-distribution.c: Likewise.
6416         * tree-outof-ssa.c: Likewise.
6417         * tree-parloops.c: Likewise.
6418         * tree-predcom.c: Likewise.
6419         * tree-pretty-print.c: Likewise.
6420         * tree-profile.c: Likewise.
6421         * tree-sra.c: Likewise.
6422         * tree-ssa.c: Likewise.
6423         * tree-ssa-coalesce.c: Likewise.
6424         * tree-ssa-dce.c: Likewise.
6425         * tree-ssa-dom.c: Likewise.
6426         * tree-ssa-forwprop.c: Likewise.
6427         * tree-ssa-ifcombine.c: Likewise.
6428         * tree-ssa-loop-ch.c: Likewise.
6429         * tree-ssa-loop-im.c: Likewise.
6430         * tree-ssa-loop-ivcanon.c: Likewise.
6431         * tree-ssa-loop-ivopts.c: Likewise.
6432         * tree-ssa-loop-manip.c: Likewise.
6433         * tree-ssa-loop-prefetch.c: Likewise.
6434         * tree-ssa-loop-unswitch.c: Likewise.
6435         * tree-ssa-math-opts.c: Likewise.
6436         * tree-ssa-phiopt.c: Likewise.
6437         * tree-ssa-pre.c: Likewise.
6438         * tree-ssa-reassoc.c: Likewise.
6439         * tree-ssa-sink.c: Likewise.
6440         * tree-ssa-tail-merge.c: Likewise.
6441         * tree-ssa-threadedge.c: Likewise.
6442         * tree-ssa-threadupdate.c: Likewise.
6443         * tree-switch-conversion.c: Likewise.
6444         * tree-tailcall.c: Likewise.
6445         * tree-vect-data-refs.c: Likewise.
6446         * tree-vect-loop.c: Likewise.
6447         * tree-vect-loop-manip.c: Likewise.
6448         * tree-vectorizer.c: Likewise.
6449         * tree-vrp.c: Likewise.
6450         * ubsan.c: Likewise.
6451         * value-prof.c: Likewise.
6452         * varasm.c: Likewise.
6453         * var-tracking.c: Likewise.
6454         * config/aarch64/aarch64-builtins.c: Likewise.
6455         * config/aarch64/aarch64.c: Likewise.
6456         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6457         * config/alpha/alpha.c: Likewise.
6458         * config/arc/arc.c: Likewise.
6459         * config/arm/arm.c: Likewise.
6460         * config/avr/avr.c: Likewise.
6461         * config/bfin/bfin.c: Likewise.
6462         * config/c6x/c6x.c: Likewise.
6463         * config/cr16/cr16.c: Likewise.
6464         * config/cris/cris.c: Likewise.
6465         * config/darwin.c: Likewise.
6466         * config/darwin-c.c: Likewise.
6467         * config/epiphany/epiphany.c: Likewise.
6468         * config/epiphany/mode-switch-use.c: Likewise.
6469         * config/epiphany/resolve-sw-modes.c: Likewise.
6470         * config/fr30/fr30.c: Likewise.
6471         * config/frv/frv.c: Likewise.
6472         * config/ft32/ft32.c: Likewise.
6473         * config/h8300/h8300.c: Likewise.
6474         * config/i386/i386.c: Likewise.
6475         * config/i386/winnt.c: Likewise.
6476         * config/ia64/ia64.c: Likewise.
6477         * config/iq2000/iq2000.c: Likewise.
6478         * config/lm32/lm32.c: Likewise.
6479         * config/m32c/m32c.c: Likewise.
6480         * config/m32r/m32r.c: Likewise.
6481         * config/m68k/m68k.c: Likewise.
6482         * config/mcore/mcore.c: Likewise.
6483         * config/mep/mep.c: Likewise.
6484         * config/microblaze/microblaze.c: Likewise.
6485         * config/mips/mips.c: Likewise.
6486         * config/mmix/mmix.c: Likewise.
6487         * config/mn10300/mn10300.c: Likewise.
6488         * config/moxie/moxie.c: Likewise.
6489         * config/msp430/msp430.c: Likewise.
6490         * config/nds32/nds32.c: Likewise.
6491         * config/nds32/nds32-cost.c: Likewise.
6492         * config/nds32/nds32-fp-as-gp.c: Likewise.
6493         * config/nds32/nds32-intrinsic.c: Likewise.
6494         * config/nds32/nds32-isr.c: Likewise.
6495         * config/nds32/nds32-md-auxiliary.c: Likewise.
6496         * config/nds32/nds32-memory-manipulation.c: Likewise.
6497         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6498         * config/nds32/nds32-predicates.c: Likewise.
6499         * config/nios2/nios2.c: Likewise.
6500         * config/nvptx/nvptx.c: Likewise.
6501         * config/pa/pa.c: Likewise.
6502         * config/pdp11/pdp11.c: Likewise.
6503         * config/rl78/rl78.c: Likewise.
6504         * config/rs6000/rs6000.c: Likewise.
6505         * config/rx/rx.c: Likewise.
6506         * config/s390/s390.c: Likewise.
6507         * config/sh/sh.c: Likewise.
6508         * config/sh/sh-mem.cc: Likewise.
6509         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6510         * config/sh/sh_treg_combine.cc: Likewise.
6511         * config/sparc/sparc.c: Likewise.
6512         * config/spu/spu.c: Likewise.
6513         * config/stormy16/stormy16.c: Likewise.
6514         * config/tilegx/tilegx.c: Likewise.
6515         * config/tilepro/tilepro.c: Likewise.
6516         * config/v850/v850.c: Likewise.
6517         * config/vax/vax.c: Likewise.
6518         * config/visium/visium.c: Likewise.
6519         * config/xtensa/xtensa.c: Likewise.
6521 2015-07-10  Richard Biener  <rguenther@suse.de>
6523         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
6524         (decision_tree::gen_gimple): Likewise.
6525         (decision_tree::gen_generic): Likewise.
6527 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6529         PR target/66813
6530         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
6531         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
6533 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
6535         PR middle-end/66820
6536         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
6537         or ORT_TASK contexts.
6538         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
6539         is non-zero.
6541 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6543         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6544         above function.
6546 2015-07-10  Tom de Vries  <tom@codesourcery.com>
6548         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
6549         insert nit + 1 bound.
6551 2015-07-10  Richard Biener  <rguenther@suse.de>
6553         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
6554         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
6555         (if_convertible_loop_p_1): For this always compute bb predicates.
6556         (if_convertible_loop_p): And free them.
6558 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6560         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
6561         in dump message.
6563 2015-07-10  Richard Biener  <rguenther@suse.de>
6565         PR tree-optimization/66823
6566         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
6567         inverted predicate.
6569 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
6571         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
6572         to handle mips[32|64]r3 and mips[32|64]r5.
6574 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
6576         PR middle-end/66633
6577         * tree-nested.c (get_static_chain): Or in a flag into
6578         info->static_chain_added.
6579         (get_frame_field, get_nonlocal_debug_decl): Likewise.
6580         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
6581         2015-07-01 changes.
6582         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
6583         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
6584         add it to clauses.
6586         PR tree-optimization/66718
6587         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
6588         field.
6589         (vect_simd_lane_linear): New function.
6590         (vectorizable_simd_clone_call): Support using linear arguments for
6591         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
6593 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6595         PR target/66821
6596         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
6598 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6600         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
6601         Use machine mode, not enum machine_mode in the prototype.
6603         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
6604         classify 128-bit floating point support.
6605         (FLOAT128_IBM_P): Likewise.
6606         (FLOAT128_VECTOR_P): Likewise.
6607         (FLOAT128_2REG_P): Likewise.
6608         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
6609         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
6610         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6611         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6613         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
6614         tests against TFmode/TDmode, since those modes do not use VSX
6615         addresses.
6616         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
6617         support.
6618         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
6619         tests against TFmode, etc.
6620         (invalid_e500_subreg): Add tests against IFmode/KFmode.
6621         (reg_offset_addressing_ok_p): Likewise.
6622         (rs6000_legitimate_offset_address_p): Likewise.
6623         (rs6000_legitimize_address): Likewise.
6624         (rs6000_legitimize_reload_address): Likewise.
6625         (rs6000_legitimate_address_p): Clean up tests against TFmode and
6626         TDmode to use the new helper macros, which will include IFmode and
6627         KFmode.
6628         (rs6000_emit_move): Likewise.
6629         (rs6000_darwin64_record_arg_recurse): Likewise.
6630         (print_operand): Likewise.
6631         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
6632         that uses a single vector register as a vector and not as a
6633         floating point register in terms of the calling sequence.
6634         (rs6000_discover_homogeneous_aggregate): Likewise.
6635         (rs6000_return_in_memory): Likewise.
6636         (init_cumulative_args): Likewise.
6637         (rs6000_function_arg_boundary): Likewise.
6638         (rs6000_function_arg_advance_1): Likewise.
6639         (rs6000_function_arg): Likewise.
6640         (rs6000_pass_by_reference): Likewise.
6641         (rs6000_gimplify_va_arg): Likewise.
6642         (rs6000_secondary_reload_memory): Use machine_mode not enum
6643         machine mode.
6644         (rs6000_split_multireg_move): Use new helper macros.
6645         (spe_func_has_64bit_regs_p): Likewise.
6646         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
6647         (output_toc): Use new helper macros.
6648         (rs6000_register_move_cost): Likewise.
6649         (rs6000_function_value): Add IEEE 128-bit floating point calling
6650         sequence support.
6651         (rs6000_libcall_value): Likewise.
6652         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
6653         floating point support.
6654         (rs6000_vector_mode_supported_p): Likewise.
6656 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
6658         PR rtl-optimization/66782
6659         * lra-int.h (struct lra_insn_recog_data): Add comment about
6660         clobbered hard regs for arg_hard_regs.
6661         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
6662         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
6663         Add condition for processing used hard regs.
6664         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
6665         Process clobbered hard regs.
6667 2015-07-09  Michael Matz  <matz@suse.de>
6669         * genmatch.c (fprintf_indent): New function.
6670         (operand::gen_transform): Add indent parameter.
6671         (expr::gen_transform, c_expr::gen_transform,
6672         capture::gen_transform): Ditto and use fprintf_indent.
6673         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
6674         (dt_operand::gen, dt_operand::gen_predicate,
6675         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
6676         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
6677         (decision_tree::gen_gimple): Adjust calls and indent generated
6678         code.
6679         (decision_tree::gen_generic): Ditto.
6680         (write_predicate): Ditto.
6682 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6684         PR target/66814
6685         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
6686         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
6687         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
6688         {GENERAL,SSE,MMX}_REG_P where appropriate.
6690 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6692         * lto-streamer.h: Don't include target.h and alloc-pool.h.
6693         * builtins.c: Adjust includes.
6694         * gimple.c: Likewise.
6695         * ipa-icf.c: Likewise.
6696         * lto-opts.c: Likewise.
6697         * ipa-reference.c: Likewise.
6698         * lto-section-out.c: Likewise.
6699         * lto-streamer-in.c: Likewise.
6700         * lto-streamer-out.c: Likewise.
6701         * opts-global.c: Likewise.
6702         * symtab.c: Likewise.
6703         * tree-chkp.c: Likewise.
6704         * tree-ssa-live.c: Likewise.
6705         * tree-streamer-in.c: Likewise.
6706         * tree-streamer-out.c: Likewise.
6707         * config/darwin.c: Likewise.
6708         * config/i386/winnt.c: Likewise.
6710 2015-07-09  Richard Biener  <rguenther@suse.de>
6712         * genmatch.c (struct expr): Add force_single_use flag.
6713         (expr::expr): Add copy constructor.
6714         (capture_info::walk_match): Gather force_single_use captures.
6715         (expr::gen_transform): Use possibly NULLified sequence.
6716         (dt_simplify::gen): Apply single-use restrictions by NULLifying
6717         seq if any constrained expr is not single-use.
6718         (parser::parse_expr): Refactor to allow multiple flags.  Handle
6719         's' flag to force an expression have a single-use if the pattern
6720         simplifies to more than one statement.
6721         * match.pd: Convert most single_use conditionals to :s flags.
6723 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6725         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
6726         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6727         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6729 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6731         * flags.h: Don't include flag-types.h or options.h.
6732         * opts-common.c: Adjust includes.
6733         * opts-global.c: Likewise.
6734         * common/config/epiphany/epiphany-common.c: Likewise.
6736 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6738         PR target/66818
6739         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
6740         for IA MCU.
6742 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6744         PR target/66817
6745         * config/i386/i386.c (ix86_return_in_memory): Return true
6746         if int_size_in_bytes returns negative for IA MCU.
6748 2015-07-09  Marek Polacek  <polacek@redhat.com>
6750         PR tree-optimization/66718
6751         * Makefile.in (OBJS): Add gimple-laddress.o.
6752         * passes.def: Schedule pass_laddress.
6753         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
6754         * tree-pass.h (make_pass_laddress): Declare.
6755         * gimple-laddress.c: New file.
6757 2015-07-09  Richard Biener  <rguenther@suse.de>
6759         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
6761 2015-07-09  Richard Biener  <rguenther@suse.de>
6763         PR tree-optimization/66807
6764         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
6766 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
6768         * function.c (stack_protect_epilogue): Use if rather than switch for
6769         check targetm.have_stack_protect_test.
6771 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6773         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
6774         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
6775         * config/arc/arc.h: Likewise.
6776         * config/arm/arm.h: Likewise.
6777         * config/bfin/bfin.h: Likewise.
6778         * config/epiphany/epiphany.h: Likewise.
6779         * config/frv/frv.h: Likewise.
6780         * config/ia64/ia64.h: Likewise.
6781         * config/iq2000/iq2000.h: Likewise.
6782         * config/lm32/lm32.h: Likewise.
6783         * config/m32r/m32r.h: Likewise.
6784         * config/mcore/mcore.h: Likewise.
6785         * config/mep/mep.h: Likewise.
6786         * config/microblaze/microblaze.h: Likewise.
6787         * config/mips/mips.h: Likewise.
6788         * config/mmix/mmix.h: Likewise.
6789         * config/mn10300/mn10300.h: Likewise.
6790         * config/nds32/nds32.h: Likewise.
6791         * config/nios2/nios2.h: Likewise.
6792         * config/pa/pa.h: Likewise.
6793         * config/rl78/rl78.h: Likewise.
6794         * config/sh/sh.h: Likewise.
6795         * config/sparc/sparc.h: Likewise.
6796         * config/stormy16/stormy16.h: Likewise.
6797         * config/tilegx/tilegx.h: Likewise.
6798         * config/tilepro/tilepro.h: Likewise.
6799         * config/v850/v850.h: Likewise.
6800         * config/xtensa/xtensa.h: Likewise.
6801         * doc/tm.texi: Regenerate.
6802         * doc/tm.texi.in: Adjust.
6803         * combine.c (simplify_set): Likewise.
6804         (simplify_comparison): Likewise.
6805         * expr.c (store_constructor): Likewise.
6806         * internal-fn.c (expand_arith_overflow): Likewise.
6807         * reload.c (push_reload): Likewise.
6808         (find_reloads): Likewise.
6809         (find_reloads_subreg_address): Likewise.
6810         * reload1.c (eliminate_regs_1): Likewise.
6811         * rtlanal.c (nonzero_bits1): Likewise.
6812         (num_sign_bit_copies1): Likewise.
6813         * simplify-rtx.c (simplify_truncation): Likewise.
6815 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6817         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
6818         of AUTO_INC_DEC with the preprocessor.
6819         * combine.c (combine_instructions): Likewise.
6820         (can_combine_p): Likewise.
6821         (try_combine): Likewise.
6822         * emit-rtl.c (try_split): Likewise.
6823         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6824         * lower-subreg.c (resolve_simple_move): Likewise.
6825         * lra.c (update_inc_notes): Likewise.
6826         * recog.c (asm_operand_ok): Likewise.
6827         (constrain_operands): Likewise.
6828         * regrename.c (scan_rtx_address): Likewise.
6829         * reload.c (update_auto_inc_notes): Likewise.
6830         (reg_inc_found_and_valid_p): Likewise.
6831         * reload1.c (reload): Likewise.
6832         (emit_input_reload_insns): Likewise.
6833         (delete_output_reload): Likewise.
6834         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6835         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6837 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6839         * rtl.h: Always define AUTO_INC_DEC.
6840         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
6841         * combine.c (combine_instructions): Likewise.
6842         (can_combine_p): Likewise.
6843         (try_combine): Likewise.
6844         * emit-rtl.c (try_split): Likewise.
6845         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6846         * lower-subreg.c (resolve_simple_move): Likewise.
6847         * lra.c (update_inc_notes): Likewise.
6848         * recog.c (asm_operand_ok): Likewise.
6849         (constrain_operands): Likewise.
6850         * regrename.c (scan_rtx_address): Likewise.
6851         * reload.c (update_auto_inc_notes): Likewise.
6852         (find_equiv_reg): Likewise.
6853         * reload1.c (reload): Likewise.
6854         (reload_as_needed): Likewise.
6855         (choose_reload_regs): Likewise.
6856         (emit_input_reload_insns): Likewise.
6857         (delete_output_reload): Likewise.
6858         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6859         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6861 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6863         * combine.c (can_combine_def_p): Don't check the value of
6864         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
6865         (combinable_i3pat): Likewise.
6866         (mark_used_regs_combine): Likewise.
6867         * regrename.c (rename_chains): Likewise.
6868         * reload.c (find_reloads_address): Likewise.
6869         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6871 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6873         * combine.c (update_rsp_from_reg_equal): Don't check if
6874         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
6875         (reg_nonzero_bits_for_combine): Likewise.
6876         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
6877         1.
6878         * config/frv/frv.h: Likewise.
6879         * config/lm32/lm32.h: Likewise.
6880         * config/mep/mep.h: Likewise.
6881         * config/mips/mips.h: Likewise.
6882         * config/rs6000/rs6000.h: Likewise.
6883         * config/sh/sh.h: Likewise.
6884         * config/tilegx/tilegx.h (enum reg_class): Likewise.
6885         * config/tilepro/tilepro.h: Likewise.
6886         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
6887         * doc/tm.texi: Regenerate.
6888         * doc/tm.texi.in: Adjust.
6889         * rtlanal.c (nonzero_bits1): Likewise.
6891 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6893         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
6894         with the preprocessor.
6895         (combine_instructions): Likewise.
6896         (try_combine): Likewise.
6897         (subst): Likewise.
6898         (distribute_notes): Likewise.
6900 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6902         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
6903         defined.
6904         (simplify_set): Likewise.
6905         * cse.c (cse_insn): Likewise.
6906         * fold-const.c (fold_single_bit_test): Likewise.
6907         (fold_unary_loc): Likewise.
6908         * postreload.c (reload_cse_simplify_set): Likewise.
6909         (reload_cse_simplify_operands): Likewise.
6911 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
6913         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
6914         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
6916 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6918         PR target/66746
6919         * config/i386/x86intrin.h: Include <adxintrin.h> even if
6920         __iamcu__ is defined.
6922 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6924         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
6926 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
6928         PR target/66523
6929         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
6930         names from preservation.
6932 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6934         PR target/66806
6935         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
6936         change for IAMCU.
6937         (function_arg_advance_32): Don't pass vectors in registers for
6938         IAMCU.
6939         (function_arg_32): Likewise.
6940         (ix86_return_in_memory): Don't return vectors in registers for
6941         IAMCU.
6943 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
6945         PR middle-end/66334
6946         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
6947         hard regno live at the start of BB with incoming abnormal edges.
6948         * lra-lives.c (process_bb_lives): Ditto.
6950 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
6952         PR libgomp/65099
6953         * config/nvptx/mkoffload.c (main): Create an offload image only in
6954         64-bit configurations.
6956 2015-07-08  Martin Liska  <mliska@suse.cz>
6958         PR bootstrap/66744
6959         * tree-sra.c (create_access_1): Call ctor without brackets.
6960         (create_artificial_child_access): Likewise.
6962 2015-07-08  Richard Biener  <rguenther@suse.de>
6964         PR tree-optimization/66793
6965         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
6966         Properly split the block after stmts ending it.
6968 2015-07-08  Richard Biener  <rguenther@suse.de>
6970         PR tree-optimization/66794
6971         * passes.c (execute_function_todo): Assert that post-dominators
6972         are not computed.
6973         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
6974         Free post-dominators.
6976 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6978         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
6979         with early exit.
6981 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6983         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
6984         more than or equal 8 and less than 32 when optimizing for size.
6986 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6988         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
6989         COSTS_N_INSNS (1) and increment it appropriately throughout the
6990         function.
6992 2015-07-08  Richard Biener  <rguenther@suse.de>
6994         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
6996 2015-07-08  Alan Modra  <amodra@gmail.com>
6998         * target.def (rtx_costs): Remove "code" param, add "mode".
6999         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
7000         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
7001         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
7002         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
7003         call.  Track mode when given in rtx.
7004         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
7005         (default_address_cost): Pass Pmode to rtx_cost.
7006         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
7007         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
7008         with NULL set.
7009         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
7010         (notreg_cost): Add mode param.  Use it.
7011         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
7012         mode param and pass to set_src_cost.  Update all calls.
7013         (hash_scan_set): Formatting.
7014         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
7015         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
7016         * hooks.h: Ditto.
7017         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
7018         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
7019         emit_store_flag): Update set_src_cost and rtx_cost calls.
7020         * auto-inc-dec.c (attempt_change): Likewise.
7021         * calls.c (precompute_register_parameters): Likewise.
7022         * combine.c (expand_compound_operation, make_extraction,
7023         force_to_mode, distribute_and_simplify_rtx): Likewise.
7024         * dojump.c (prefer_and_bit_test): Likewise.
7025         * dse.c (find_shift_sequence): Likewise.
7026         * expr.c (compress_float_constant): Likewise.
7027         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
7028         * ifcvt.c (noce_try_sign_mask): Likewise.
7029         * loop-doloop.c (doloop_optimize): Likewise.
7030         * loop-invariant.c (create_new_invariant): Likewise.
7031         * lower-subreg.c (shift_cost, compute_costs): Likewise.
7032         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
7033         lshift_cheap_p): Likewise.
7034         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
7035         try_replace_in_use, reload_cse_move2add): Likewise.
7036         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
7037         Likewise.
7038         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7039         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7040         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
7041         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7042         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
7043         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
7044         to rtx_cost calls.
7045         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
7046         * config/arc/arc.c (arc_rtx_costs): Likewise.
7047         * config/arm/arm.c (arm_rtx_costs): Likewise.
7048         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
7049         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
7050         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
7051         * config/cris/cris.c (cris_rtx_costs): Likewise.
7052         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
7053         * config/frv/frv.c (frv_rtx_costs): Likewise.
7054         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
7055         * config/i386/i386.c (ix86_rtx_costs): Likewise.
7056         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
7057         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
7058         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
7059         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
7060         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
7061         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
7062         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
7063         * config/mep/mep.c (mep_rtx_cost): Likewise.
7064         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
7065         * config/mips/mips.c (mips_rtx_costs): Likewise.
7066         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
7067         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
7068         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
7069         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
7070         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
7071         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
7072         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
7073         * config/pa/pa.c (hppa_rtx_costs): Likewise.
7074         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
7075         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
7076         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
7077         * config/s390/s390.c (s390_rtx_costs): Likewise.
7078         * config/sh/sh.c (sh_rtx_costs): Likewise.
7079         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
7080         * config/spu/spu.c (spu_rtx_costs): Likewise.
7081         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
7082         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
7083         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
7084         * config/v850/v850.c (v850_rtx_costs): Likewise.
7085         * config/vax/vax.c (vax_rtx_costs): Likewise.
7086         * config/visium/visium.c (visium_rtx_costs): Likewise.
7087         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
7088         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
7089         "code" param, and pass as outer_code to first rtx_cost call.  Pass
7090         mode to rtx_cost calls.
7091         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
7092         calls.
7093         (aarch64_rtx_costs_wrapper): Update.
7094         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
7095         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
7096         rtx_cost calls.
7097         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
7098         and rtx_cost calls.
7099         (avr_operand_rtx_cost): Similarly.
7100         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
7101         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
7102         * config/mips/mips.c (mips_stack_address_p): Comment typo.
7103         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
7104         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
7105         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
7106         rtx_cost.
7107         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
7108         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
7109         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
7110         * doc/tm.texi: Regenerate.
7112 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
7114         * tree-core.h: Include symtab.h.
7115         * rtl.h: Include hard-reg-set.h but not flags.h.
7116         (HARD_CONST): Remove condition compilation involving HARD_CONST since
7117         hard-reg-set.h is always included.
7118         * regs.h: Don't include hard-reg-set.h or rtl.h.
7119         * cfg.h: Include dominance.h.
7120         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
7121         * backend.h: New.  Aggregate commonly used backend header files.
7122         * gimple-ssa.h: Don't include tree-hasher.h.
7123         * ssa.h: New.  Aggregate commonly used SSA header files.
7124         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
7125         * sel-sched-ir.h: Flatten includes.
7126         * lra-int.h: Flatten completely.
7127         * sel-sched-dump.h: Flatten includes.
7128         * ira-int.h: Flatten includes.
7129         * gimple-streamer.h: Remove all includes.
7130         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
7131         * resource.h: Flatten hard-reg-set.h and df.h.
7132         * sched-int.h: Flatten insn-arrt.h and df.h.
7133         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
7134         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
7135         * genattrtab.c (write_header): Adjust generated includes.
7136         * genautomata.c (main): Likewise.
7137         * genconditions.c (write-header): Likewise.
7138         * genemit.c (main): Likewise.
7139         * gengtype.c (open_base_files): Likewise.
7140         * genopinit.c (main): Likewise.
7141         * genoutput.c (output_prologue): Likewise.
7142         * genpeep.c (main): Likewise.
7143         * genpreds.c (write_insn_preds_c): Likewise.
7144         * genrecog.c (write_header): Likewise.
7145         * alias.c: Adjust includes.
7146         * asan.c: Likewise.
7147         * attribs.c: Likewise.
7148         * auto-inc-dec.c: Likewise.
7149         * auto-profile.c: Likewise.
7150         * bb-reorder.c: Likewise.
7151         * bt-load.c: Likewise.
7152         * builtins.c: Likewise.
7153         * caller-save.c: Likewise.
7154         * calls.c: Likewise.
7155         * ccmp.c: Likewise.
7156         * cfg.c: Likewise.
7157         * cfganal.c: Likewise.
7158         * cfgbuild.c: Likewise.
7159         * cfgcleanup.c: Likewise.
7160         * cfgexpand.c: Likewise.
7161         * cfghooks.c: Likewise.
7162         * cfgloop.c: Likewise.
7163         * cfgloopanal.c: Likewise.
7164         * cfgloopmanip.c: Likewise.
7165         * cfgrtl.c: Likewise.
7166         * cgraph.c: Likewise.
7167         * cgraphbuild.c: Likewise.
7168         * cgraphclones.c: Likewise.
7169         * cgraphunit.c: Likewise.
7170         * cilk-common.c: Likewise.
7171         * combine-stack-adj.c: Likewise.
7172         * combine.c: Likewise.
7173         * compare-elim.c: Likewise.
7174         * convert.c: Likewise.
7175         * coverage.c: Likewise.
7176         * cppbuiltin.c: Likewise.
7177         * cprop.c: Likewise.
7178         * cse.c: Likewise.
7179         * cselib.c: Likewise.
7180         * data-streamer-in.c: Likewise.
7181         * data-streamer-out.c: Likewise.
7182         * data-streamer.c: Likewise.
7183         * dbxout.c: Likewise.
7184         * dce.c: Likewise.
7185         * ddg.c: Likewise.
7186         * debug.c: Likewise.
7187         * df-core.c: Likewise.
7188         * df-problems.c: Likewise.
7189         * df-scan.c: Likewise.
7190         * dfp.c: Likewise.
7191         * dojump.c: Likewise.
7192         * dominance.c: Likewise.
7193         * domwalk.c: Likewise.
7194         * double-int.c: Likewise.
7195         * dse.c: Likewise.
7196         * dumpfile.c: Likewise.
7197         * dwarf2asm.c: Likewise.
7198         * dwarf2cfi.c: Likewise.
7199         * dwarf2out.c: Likewise.
7200         * emit-rtl.c: Likewise.
7201         * et-forest.c: Likewise.
7202         * except.c: Likewise.
7203         * explow.c: Likewise.
7204         * expmed.c: Likewise.
7205         * expr.c: Likewise.
7206         * final.c: Likewise.
7207         * fixed-value.c: Likewise.
7208         * fold-const.c: Likewise.
7209         * function.c: Likewise.
7210         * fwprop.c: Likewise.
7211         * gcc-plugin.h: Likewise.
7212         * gcse-common.c: Likewise.
7213         * gcse.c: Likewise.
7214         * generic-match-head.c: Likewise.
7215         * ggc-page.c: Likewise.
7216         * gimple-builder.c: Likewise.
7217         * gimple-expr.c: Likewise.
7218         * gimple-fold.c: Likewise.
7219         * gimple-iterator.c: Likewise.
7220         * gimple-low.c: Likewise.
7221         * gimple-match-head.c: Likewise.
7222         * gimple-pretty-print.c: Likewise.
7223         * gimple-ssa-isolate-paths.c: Likewise.
7224         * gimple-ssa-strength-reduction.c: Likewise.
7225         * gimple-streamer-in.c: Likewise.
7226         * gimple-streamer-out.c: Likewise.
7227         * gimple-walk.c: Likewise.
7228         * gimple.c: Likewise.
7229         * gimplify-me.c: Likewise.
7230         * gimplify.c: Likewise.
7231         * godump.c: Likewise.
7232         * graph.c: Likewise.
7233         * graphite-blocking.c: Likewise.
7234         * graphite-dependences.c: Likewise.
7235         * graphite-interchange.c: Likewise.
7236         * graphite-isl-ast-to-gimple.c: Likewise.
7237         * graphite-optimize-isl.c: Likewise.
7238         * graphite-poly.c: Likewise.
7239         * graphite-scop-detection.c: Likewise.
7240         * graphite-sese-to-poly.c: Likewise.
7241         * graphite.c: Likewise.
7242         * haifa-sched.c: Likewise.
7243         * hw-doloop.c: Likewise.
7244         * ifcvt.c: Likewise.
7245         * init-regs.c: Likewise.
7246         * internal-fn.c: Likewise.
7247         * ipa-chkp.c: Likewise.
7248         * ipa-comdats.c: Likewise.
7249         * ipa-cp.c: Likewise.
7250         * ipa-devirt.c: Likewise.
7251         * ipa-icf-gimple.c: Likewise.
7252         * ipa-icf.c: Likewise.
7253         * ipa-inline-analysis.c: Likewise.
7254         * ipa-inline-transform.c: Likewise.
7255         * ipa-inline.c: Likewise.
7256         * ipa-polymorphic-call.c: Likewise.
7257         * ipa-profile.c: Likewise.
7258         * ipa-prop.c: Likewise.
7259         * ipa-pure-const.c: Likewise.
7260         * ipa-ref.c: Likewise.
7261         * ipa-reference.c: Likewise.
7262         * ipa-split.c: Likewise.
7263         * ipa-utils.c: Likewise.
7264         * ipa-visibility.c: Likewise.
7265         * ipa.c: Likewise.
7266         * ira-build.c: Likewise.
7267         * ira-color.c: Likewise.
7268         * ira-conflicts.c: Likewise.
7269         * ira-costs.c: Likewise.
7270         * ira-emit.c: Likewise.
7271         * ira-lives.c: Likewise.
7272         * ira.c: Likewise.
7273         * jump.c: Likewise.
7274         * langhooks.c: Likewise.
7275         * lcm.c: Likewise.
7276         * loop-doloop.c: Likewise.
7277         * loop-init.c: Likewise.
7278         * loop-invariant.c: Likewise.
7279         * loop-iv.c: Likewise.
7280         * loop-unroll.c: Likewise.
7281         * lower-subreg.c: Likewise.
7282         * lra-assigns.c: Likewise.
7283         * lra-coalesce.c: Likewise.
7284         * lra-constraints.c: Likewise.
7285         * lra-eliminations.c: Likewise.
7286         * lra-lives.c: Likewise.
7287         * lra-remat.c: Likewise.
7288         * lra-spills.c: Likewise.
7289         * lra.c: Likewise.
7290         * lto-cgraph.c: Likewise.
7291         * lto-compress.c: Likewise.
7292         * lto-opts.c: Likewise.
7293         * lto-section-in.c: Likewise.
7294         * lto-section-out.c: Likewise.
7295         * lto-streamer-in.c: Likewise.
7296         * lto-streamer-out.c: Likewise.
7297         * lto-streamer.c: Likewise.
7298         * mcf.c: Likewise.
7299         * mode-switching.c: Likewise.
7300         * modulo-sched.c: Likewise.
7301         * omega.c: Likewise.
7302         * omp-low.c: Likewise.
7303         * optabs.c: Likewise.
7304         * opts-global.c: Likewise.
7305         * passes.c: Likewise.
7306         * plugin.c: Likewise.
7307         * postreload-gcse.c: Likewise.
7308         * postreload.c: Likewise.
7309         * predict.c: Likewise.
7310         * print-rtl.c: Likewise.
7311         * print-tree.c: Likewise.
7312         * profile.c: Likewise.
7313         * real.c: Likewise.
7314         * realmpfr.c: Likewise.
7315         * recog.c: Likewise.
7316         * ree.c: Likewise.
7317         * reg-stack.c: Likewise.
7318         * regcprop.c: Likewise.
7319         * reginfo.c: Likewise.
7320         * regrename.c: Likewise.
7321         * regstat.c: Likewise.
7322         * reload.c: Likewise.
7323         * reload1.c: Likewise.
7324         * reorg.c: Likewise.
7325         * resource.c: Likewise.
7326         * rtl-chkp.c: Likewise.
7327         * rtlanal.c: Likewise.
7328         * rtlhooks.c: Likewise.
7329         * sanopt.c: Likewise.
7330         * sched-deps.c: Likewise.
7331         * sched-ebb.c: Likewise.
7332         * sched-rgn.c: Likewise.
7333         * sched-vis.c: Likewise.
7334         * sdbout.c: Likewise.
7335         * sel-sched-dump.c: Likewise.
7336         * sel-sched-ir.c: Likewise.
7337         * sel-sched.c: Likewise.
7338         * sese.c: Likewise.
7339         * shrink-wrap.c: Likewise.
7340         * simplify-rtx.c: Likewise.
7341         * stack-ptr-mod.c: Likewise.
7342         * stmt.c: Likewise.
7343         * stor-layout.c: Likewise.
7344         * store-motion.c: Likewise.
7345         * stringpool.c: Likewise.
7346         * symtab.c: Likewise.
7347         * target-globals.c: Likewise.
7348         * targhooks.c: Likewise.
7349         * toplev.c: Likewise.
7350         * tracer.c: Likewise.
7351         * trans-mem.c: Likewise.
7352         * tree-affine.c: Likewise.
7353         * tree-browser.c: Likewise.
7354         * tree-call-cdce.c: Likewise.
7355         * tree-cfg.c: Likewise.
7356         * tree-cfgcleanup.c: Likewise.
7357         * tree-chkp-opt.c: Likewise.
7358         * tree-chkp.c: Likewise.
7359         * tree-chrec.c: Likewise.
7360         * tree-complex.c: Likewise.
7361         * tree-data-ref.c: Likewise.
7362         * tree-dfa.c: Likewise.
7363         * tree-diagnostic.c: Likewise.
7364         * tree-dump.c: Likewise.
7365         * tree-eh.c: Likewise.
7366         * tree-emutls.c: Likewise.
7367         * tree-if-conv.c: Likewise.
7368         * tree-inline.c: Likewise.
7369         * tree-into-ssa.c: Likewise.
7370         * tree-iterator.c: Likewise.
7371         * tree-loop-distribution.c: Likewise.
7372         * tree-nested.c: Likewise.
7373         * tree-nrv.c: Likewise.
7374         * tree-object-size.c: Likewise.
7375         * tree-outof-ssa.c: Likewise.
7376         * tree-parloops.c: Likewise.
7377         * tree-phinodes.c: Likewise.
7378         * tree-predcom.c: Likewise.
7379         * tree-pretty-print.c: Likewise.
7380         * tree-profile.c: Likewise.
7381         * tree-scalar-evolution.c: Likewise.
7382         * tree-sra.c: Likewise.
7383         * tree-ssa-address.c: Likewise.
7384         * tree-ssa-alias.c: Likewise.
7385         * tree-ssa-ccp.c: Likewise.
7386         * tree-ssa-coalesce.c: Likewise.
7387         * tree-ssa-copy.c: Likewise.
7388         * tree-ssa-copyrename.c: Likewise.
7389         * tree-ssa-dce.c: Likewise.
7390         * tree-ssa-dom.c: Likewise.
7391         * tree-ssa-dse.c: Likewise.
7392         * tree-ssa-forwprop.c: Likewise.
7393         * tree-ssa-ifcombine.c: Likewise.
7394         * tree-ssa-live.c: Likewise.
7395         * tree-ssa-loop-ch.c: Likewise.
7396         * tree-ssa-loop-im.c: Likewise.
7397         * tree-ssa-loop-ivcanon.c: Likewise.
7398         * tree-ssa-loop-ivopts.c: Likewise.
7399         * tree-ssa-loop-manip.c: Likewise.
7400         * tree-ssa-loop-niter.c: Likewise.
7401         * tree-ssa-loop-prefetch.c: Likewise.
7402         * tree-ssa-loop-unswitch.c: Likewise.
7403         * tree-ssa-loop.c: Likewise.
7404         * tree-ssa-math-opts.c: Likewise.
7405         * tree-ssa-operands.c: Likewise.
7406         * tree-ssa-phiopt.c: Likewise.
7407         * tree-ssa-phiprop.c: Likewise.
7408         * tree-ssa-pre.c: Likewise.
7409         * tree-ssa-propagate.c: Likewise.
7410         * tree-ssa-reassoc.c: Likewise.
7411         * tree-ssa-sccvn.c: Likewise.
7412         * tree-ssa-scopedtables.c: Likewise.
7413         * tree-ssa-sink.c: Likewise.
7414         * tree-ssa-strlen.c: Likewise.
7415         * tree-ssa-structalias.c: Likewise.
7416         * tree-ssa-tail-merge.c: Likewise.
7417         * tree-ssa-ter.c: Likewise.
7418         * tree-ssa-threadedge.c: Likewise.
7419         * tree-ssa-threadupdate.c: Likewise.
7420         * tree-ssa-uncprop.c: Likewise.
7421         * tree-ssa-uninit.c: Likewise.
7422         * tree-ssa.c: Likewise.
7423         * tree-ssanames.c: Likewise.
7424         * tree-stdarg.c: Likewise.
7425         * tree-streamer-in.c: Likewise.
7426         * tree-streamer-out.c: Likewise.
7427         * tree-streamer.c: Likewise.
7428         * tree-switch-conversion.c: Likewise.
7429         * tree-tailcall.c: Likewise.
7430         * tree-vect-data-refs.c: Likewise.
7431         * tree-vect-generic.c: Likewise.
7432         * tree-vect-loop-manip.c: Likewise.
7433         * tree-vect-loop.c: Likewise.
7434         * tree-vect-patterns.c: Likewise.
7435         * tree-vect-slp.c: Likewise.
7436         * tree-vect-stmts.c: Likewise.
7437         * tree-vectorizer.c: Likewise.
7438         * tree-vrp.c: Likewise.
7439         * tree.c: Likewise.
7440         * tsan.c: Likewise.
7441         * ubsan.c: Likewise.
7442         * valtrack.c: Likewise.
7443         * value-prof.c: Likewise.
7444         * var-tracking.c: Likewise.
7445         * varasm.c: Likewise.
7446         * varpool.c: Likewise.
7447         * vmsdbgout.c: Likewise.
7448         * vtable-verify.c: Likewise.
7449         * web.c: Likewise.
7450         * wide-int.cc: Likewise.
7451         * xcoffout.c: Likewise.
7452         * config/aarch64/aarch64-builtins.c: Likewise.
7453         * config/aarch64/aarch64.c: Likewise.
7454         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7455         * config/alpha/alpha.c: Likewise.
7456         * config/arc/arc.c: Likewise.
7457         * config/arm/aarch-common.c: Likewise.
7458         * config/arm/arm-builtins.c: Likewise.
7459         * config/arm/arm-c.c: Likewise.
7460         * config/arm/arm.c: Likewise.
7461         * config/avr/avr-c.c: Likewise.
7462         * config/avr/avr-log.c: Likewise.
7463         * config/avr/avr.c: Likewise.
7464         * config/bfin/bfin.c: Likewise.
7465         * config/c6x/c6x.c: Likewise.
7466         * config/cr16/cr16.c: Likewise.
7467         * config/cris/cris.c: Likewise.
7468         * config/darwin-c.c: Likewise.
7469         * config/darwin.c: Likewise.
7470         * config/epiphany/epiphany.c: Likewise.
7471         * config/epiphany/mode-switch-use.c: Likewise.
7472         * config/epiphany/resolve-sw-modes.c: Likewise.
7473         * config/fr30/fr30.c: Likewise.
7474         * config/frv/frv.c: Likewise.
7475         * config/ft32/ft32.c: Likewise.
7476         * config/h8300/h8300.c: Likewise.
7477         * config/i386/i386-c.c: Likewise.
7478         * config/i386/i386.c: Likewise.
7479         * config/i386/msformat-c.c: Likewise.
7480         * config/i386/winnt-cxx.c: Likewise.
7481         * config/i386/winnt-stubs.c: Likewise.
7482         * config/i386/winnt.c: Likewise.
7483         * config/ia64/ia64-c.c: Likewise.
7484         * config/ia64/ia64.c: Likewise.
7485         * config/iq2000/iq2000.c: Likewise.
7486         * config/lm32/lm32.c: Likewise.
7487         * config/m32c/m32c-pragma.c: Likewise.
7488         * config/m32c/m32c.c: Likewise.
7489         * config/m32r/m32r.c: Likewise.
7490         * config/m68k/m68k.c: Likewise.
7491         * config/mcore/mcore.c: Likewise.
7492         * config/mep/mep-pragma.c: Likewise.
7493         * config/mep/mep.c: Likewise.
7494         * config/microblaze/microblaze-c.c: Likewise.
7495         * config/microblaze/microblaze.c: Likewise.
7496         * config/mips/mips.c: Likewise.
7497         * config/mmix/mmix.c: Likewise.
7498         * config/mn10300/mn10300.c: Likewise.
7499         * config/moxie/moxie.c: Likewise.
7500         * config/msp430/msp430-c.c: Likewise.
7501         * config/msp430/msp430.c: Likewise.
7502         * config/nds32/nds32-cost.c: Likewise.
7503         * config/nds32/nds32-fp-as-gp.c: Likewise.
7504         * config/nds32/nds32-intrinsic.c: Likewise.
7505         * config/nds32/nds32-isr.c: Likewise.
7506         * config/nds32/nds32-md-auxiliary.c: Likewise.
7507         * config/nds32/nds32-memory-manipulation.c: Likewise.
7508         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7509         * config/nds32/nds32-predicates.c: Likewise.
7510         * config/nds32/nds32.c: Likewise.
7511         * config/nios2/nios2.c: Likewise.
7512         * config/nvptx/nvptx.c: Likewise.
7513         * config/pa/pa.c: Likewise.
7514         * config/pdp11/pdp11.c: Likewise.
7515         * config/rl78/rl78-c.c: Likewise.
7516         * config/rl78/rl78.c: Likewise.
7517         * config/rs6000/rs6000-c.c: Likewise.
7518         * config/rs6000/rs6000.c: Likewise.
7519         * config/rx/rx.c: Likewise.
7520         * config/s390/s390-c.c: Likewise.
7521         * config/s390/s390.c: Likewise.
7522         * config/sh/sh-c.c: Likewise.
7523         * config/sh/sh-mem.cc: Likewise.
7524         * config/sh/sh.c: Likewise.
7525         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7526         * config/sh/sh_treg_combine.cc: Likewise.
7527         * config/sol2-c.c: Likewise.
7528         * config/sol2-cxx.c: Likewise.
7529         * config/sol2-stubs.c: Likewise.
7530         * config/sol2.c: Likewise.
7531         * config/sparc/sparc-c.c: Likewise.
7532         * config/sparc/sparc.c: Likewise.
7533         * config/spu/spu-c.c: Likewise.
7534         * config/spu/spu.c: Likewise.
7535         * config/stormy16/stormy16.c: Likewise.
7536         * config/tilegx/mul-tables.c: Likewise.
7537         * config/tilegx/tilegx-c.c: Likewise.
7538         * config/tilegx/tilegx.c: Likewise.
7539         * config/tilepro/mul-tables.c: Likewise.
7540         * config/tilepro/tilepro-c.c: Likewise.
7541         * config/tilepro/tilepro.c: Likewise.
7542         * config/v850/v850-c.c: Likewise.
7543         * config/v850/v850.c: Likewise.
7544         * config/vax/vax.c: Likewise.
7545         * config/visium/visium.c: Likewise.
7546         * config/vms/vms-c.c: Likewise.
7547         * config/vms/vms.c: Likewise.
7548         * config/vxworks.c: Likewise.
7549         * config/xtensa/xtensa.c: Likewise.
7551 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
7553         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
7554         Remove operand constraints.  Change operand 2 predicate to
7555         nonmemory operand.  Limit const_int values to mode bitsize.  Only
7556         allow const_int values less than 32 when optimizing for size.
7557         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
7558         Remove operand constraints.
7559         (*bt<mode>): Use SImode for const_int values less than 32.
7560         (regmode): Remove mode attribute.
7562 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
7564         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7565         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
7566           moxie_legitimate_address_p): New functions.
7567           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7569 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7571         PR tree-optimization/66642
7572         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
7573         header comment.  Rename split_edge variable to edge_at_split.  Split
7574         exit edge to create new loop exit bb.  Insert loop exit phis in new
7575         loop exit bb.
7577 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7579         * tree-cfg.c (get_virtual_phi): New function.
7580         * tree-cfg.h (get_virtual_phi): Declare.
7581         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
7582         (rewrite_virtuals_into_loop_closed_ssa): New function.
7583         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
7584         Declare.
7585         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
7586         (transform_to_exit_first_loop_alt): Use
7587         rewrite_virtuals_into_loop_closed_ssa.
7589 2015-07-07  Richard Biener  <rguenther@suse.de>
7591         * fold-const.c (fold_binary_loc): Move
7592         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
7593         * match.pd: ... here.
7594         Add (X * C1) % C2 -> 0 simplification pattern derived from
7595         extract_muldiv_1.
7597 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7599         PR target/66780
7600         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
7601         change for target/65249.
7603 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
7605         * symtab.c (address_matters_1): Fix typo in comment above.
7606         (can_increase_alignment_p): Likewise.
7608 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7610         * function.c (free_after_compilation): Clear PROP_cfg in
7611         f->curr_properties.
7613 2015-07-07  Richard Biener  <rguenther@suse.de>
7615         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
7616         add which use to.
7617         (add_control_edge): Remove excessive vertical space in dumping.
7618         (process_ssa_edge_worklist): Simulate at most one statement and
7619         return whether we did.  Do not simulate PHIs if they are in a
7620         BB not yet simulated.
7621         (ssa_propagate): Adjust to always drain the BB worklist whenever
7622         a BB is available there, likewise the VARYING edges list before
7623         the interesting edge list.
7625 2015-07-07  Christian Bruel  <christian.bruel@st.com>
7627         PR target/52144
7628         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
7630 2015-07-07  Richard Biener  <rguenther@suse.de>
7632         PR middle-end/66739
7633         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
7634         A - B.
7636 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7638         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
7639         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
7640         Copy operand 0 to a temporary if !ext_register_operand.  Remove
7641         ancient extract_bit_field workaround.
7642         (insv<mode>_1): Rename from mov<mode>_insv_1.
7643         (*insvqi): Rename from *movqi_insv_2.
7644         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
7645         for renamed insvsi_1.
7646         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
7648 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
7650         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
7651         call to nvptx_reorg_subreg.
7653 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
7655         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
7656         * graphite-dependencies.c, graphite-interchange.c,
7657         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
7658         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
7659         Likewise.
7661 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
7663         * match.pd: Remove element_mode inside HONOR_*.
7664         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
7665         (~X | X -> -1, ~X ^ X -> -1): Merge.
7666         * tree.c (build_each_one_cst): New function.
7667         * tree.h (build_each_one_cst): Likewise.
7669 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7671         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7672         PROCESSOR_IAMCU.
7674 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
7676         * config.gcc <mips*-*-*>: Add fused-madd.opt.
7677         * config/mips/mips.opt (mfused-madd): Remove.
7678         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
7679         * config/mips/mips.h (TARGET_MIPS8000): New.
7680         (ISA_HAS_FP_MADD4_MSUB4): Remove.
7681         (ISA_HAS_FP_MADDF_MSUBF): Remove.
7682         (ISA_HAS_FP_MADD3_MSUB3): Remove.
7683         (ISA_HAS_NMADD4_NMSUB4): Remove.
7684         (ISA_HAS_NMADD3_NMSUB3): Remove.
7685         (ISA_HAS_FUSED_MADD4): New.
7686         (ISA_HAS_UNFUSED_MADD4): New.
7687         (ISA_HAS_FUSED_MADDF): New.
7688         (ISA_HAS_FUSED_MADD3): New.
7689         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
7690         (*fma<mode>4_madd3) New.
7691         (*fma<mode>4_madd4) New.
7692         (*fma<mode>4_maddf) New.
7693         (fms<mode>4) New.
7694         (*fms<mode>4_msub3) New.
7695         (*fms<mode>4_msub4) New.
7696         (fnma<mode>4) New.
7697         (*fnma<mode>4_nmadd3) New.
7698         (*fnma<mode>4_nmadd4) New.
7699         (fnms<mode>4) New.
7700         (*fnms<mode>4_nmsub3) New.
7701         (*fnms<mode>4_nmsub4) New.
7702         (*madd4<mode>) Modify to be unfused only.
7703         (*msub4<mode>) Modify to be unfused only.
7704         (*nmadd4<mode>) Modify to be unfused only.
7705         (*nmsub4<mode>) Modify to be unfused only.
7706         (*madd3<mode>) Remove.
7707         (*msub3<mode>) Remove.
7708         (*nmadd3<mode>) Remove.
7709         (*nmsub3<mode>) Remove.
7710         (*nmadd3<mode>_fastmath) Remove.
7711         (*nmsub3<mode>_fastmath) Remove.
7712         (*nmadd4<mode>_fastmath) Update condition.
7713         (*nmsub4<mode>_fastmath) Update condition.
7715 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7717         PR target/65956
7718         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
7719         alignment attribute, exploring one level down for records and arrays.
7721 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7723         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
7724         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
7725         Copy operand 1 to a temporary if !ext_register_operand.  Remove
7726         ancient extract_bit_field workaround.
7727         (*extv<mode>): Rename from *mov<mode>_extv_1.
7728         (*extvqi): Rename from *movqi_extv_1.
7729         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
7730         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
7731         to a temporary if !ext_register_operand.  Remove ancient
7732         extract_bit_field workaround.
7733         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
7734         (*extzvqi): Rename from *movqi_extzv_2.
7735         (*testqi_ext_3): Remove modes from const_int_operand predicated
7736         operands.  Add "n" constraint.
7737         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
7738         operand.  Add "J" constraint.
7739         (*btsq, *btrq, *btcq peephole2s): Remove mode from
7740         const_0_to_63 predicated operand.
7741         (regmode): New insn attribute.
7742         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
7743         to nonmemory_operand.  Use regmode insn attribute.
7744         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
7745         (*jcc_bt<mode>_mask): Remove mode from operand 3.
7746         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
7747         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
7748         operands.  Use "N" constraint instead of "n".
7750 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7752         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
7754 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7756         PR target/66749
7757         * config/i386/i386.c (iamcu_cost): New.
7758         (m_IAMCU): Likewise.
7759         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
7760         (processor_target_table): Add an entry for "iamcu".
7761         (processor_alias_table): Likewise.
7762         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
7763         (ix86_adjust_cost): Likewise.
7764         (ia32_multipass_dfa_lookahead): Likewise.
7765         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
7766         * config/i386/x86-tune.def: Updated for m_IAMCU.
7768 2015-07-06  Richard Biener  <rguenther@suse.de>
7770         PR tree-optimization/66772
7771         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
7772         values are available in the PHI node BB when there are
7773         still unexecutable edges.
7775 2015-07-06  Richard Biener  <rguenther@suse.de>
7777         PR tree-optimization/66767
7778         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7779         Make sure to build the alignment test on a SSA name without
7780         final alignment info valid only if the alignment test
7781         evaluates to true.
7783 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7785         PR target/66620
7786         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
7787         loop start when inserting LSETUP.
7789 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7791         PR target/53383
7792         * config/i386/i386.c (ix86_option_override_internal): Allow
7793         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
7795 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7797         * read-md.c (decimal_string): Rename to ...
7798         (md_decimal_string): ... this.
7799         (handle_enum): Reflect this.
7801 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7803         PR target/66731
7804         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
7806 2015-07-06  Richard Biener  <rguenther@suse.de>
7808         PR middle-end/66759
7809         * match.pd: Add missing constraint of y to REAL_CST in
7810         REAL_CST - x CMP y to y - CST CMP x simplification.
7812 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
7814         PR tree-optimization/66757
7815         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
7817 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
7818             Sandra Loosemore <sandra@codesourcery.com>
7820         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
7821         Delete extern declaration.
7822         (gprel_constant_p): Add extern declaration.
7823         * config/nios2/constraints.md ("S"): Use gprel_constant_p
7824         instead of nios2_symbol_ref_in_small_data_p.
7825         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
7826         (nios2_symbol_ref_in_small_data_p): Make static.
7827         (gprel_constant_p): Make non-static.
7829 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
7831         * doc/fragments.texi (Target Fragment): Convert debian.org
7832         link to use https.
7833         * doc/install.texi (Configuration): Ditto.
7835 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
7837         PR tree-optimization/66718
7838         * tree-vect-stmts.c (vectorizable_call): Replace uses of
7839         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7841         PR tree-optimization/66718
7842         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
7843         vectorizable_load, vectorizable_condition): Move vectype,
7844         nunits, ncopies computation after checking what kind of statement
7845         stmt is.
7847 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7849         * target-insns.def (extv, extzv, insv): New targetm instruction
7850         patterns.
7851         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
7852         interface.
7853         * recog.c (simplify_while_replacing): Likewise.
7855 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7857         * target-insns.def (doloop_begin, doloop_end): New targetm
7858         instruction patterns.
7859         * loop-init.c: Include target.h.
7860         (pass_loop2::gate): Use the new targetm patterns instead of
7861         HAVE_*/gen_* interface.
7862         (pass_rtl_doloop::gate): Likewise.
7863         (pass_rtl_doloop::execute): Remove preprocessor condition.
7864         * hw-doloop.c: Build unconditionally.
7865         * loop-doloop.c: Likewise.
7866         (doloop_optimize): Use the new targetm patterns instead of
7867         HAVE_*/gen_* interface.
7868         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
7869         * modulo-sched.c (doloop_register_get): Likewise.
7871 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7873         * target-insns.def (clear_cache): New targetm instruction pattern.
7874         * builtins.c (expand_builtin___clear_cache): Use it instead of
7875         HAVE_*/gen_* interface.
7877 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7879         * target-insns.def (allocate_stack, check_stack, probe_stack)
7880         (probe_stack_address, split_stack_prologue, split_stack_space_check):
7881         New targetm instruction patterns.
7882         * explow.c (allocate_dynamic_stack_space): Use them instead of
7883         HAVE_*/gen_* interface.
7884         (emit_stack_probe): Likewise.
7885         (probe_stack_range): Likewise.
7886         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7888 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7890         * target-insns.def (stack_protect_set, stack_protect_test): New
7891         targetm instruction patterns.
7892         * cfgexpand.c (stack_protect_prologue): Use them instead of
7893         HAVE_*/gen_* interface.
7894         * function.c (stack_protect_epilogue): Likewise.
7896 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7898         * expr.h (gen_move_insn_uncast): Delete.
7899         * expr.c (gen_move_insn_uncast): Delete.
7901 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7903         * target-insns.def (restore_stack_block, restore_stack_function)
7904         (restore_stack_nonlocal, save_stack_block, save_stack_function)
7905         (save_stack_nonlocal): New targetm instruction patterns.
7906         * builtins.c (expand_builtin_apply): Use them instead of
7907         HAVE_*/gen_* interface.
7908         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
7910 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7912         * target-insns.def (trap): New targetm instruction pattern.
7913         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
7914         interface.
7915         * explow.c (allocate_dynamic_stack_space): Likewise.
7916         * ifcvt.c (find_if_header): Likewise.
7918 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7920         * target-insns.def (prefetch): New targetm instruction pattern.
7921         * tree-ssa-loop-prefetch.c: Include targeth.
7922         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
7923         of HAVE_*/gen_* interface.
7924         * builtins.c (expand_builtin_prefetch): Likewise.
7925         * toplev.c (process_options): Likewise.
7927 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7929         * target-insns.def (untyped_call, untyped_return): New targetm
7930         instruction patterns.
7931         * builtins.c (expand_builtin_apply): Use them instead of
7932         HAVE_*/gen_* interface.
7933         (result_vector): Define unconditionally.
7935 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7937         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
7938         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
7939         (nonlocal_goto_receiver): New targetm instruction patterns.
7940         * builtins.c (expand_builtin_setjmp_setup): Use them instead
7941         of HAVE_*/gen_* interface.
7942         (expand_builtin_setjmp_receiver): Likewise.
7943         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7944         * except.c (expand_dw2_landing_pad_for_region): Likewise.
7946 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7948         * target.def: Add code_for_* hooks.
7949         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
7950         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
7951         * target-insns.def (casesi, tablejump): New targetm instruction
7952         patterns.
7953         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
7954         (do_tablejump): Likewise.
7955         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
7956         (expand_sjlj_dispatch_table): Likewise.
7957         * targhooks.c (default_case_values_threshold): Likewise.
7959 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
7961         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
7962         Use rtx_insn * instead of rtx.
7963         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
7964         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
7965         (nios2_call_tls_get_addr): Likewise.
7966         (nios2_emit_expensive_div): Likewise.
7967         (nios2_emit_move_sequence): Change return type to bool.
7968         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
7969         Change return type to bool.
7971 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7973         PR target/66747
7974         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
7976 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
7978         PR target/66114
7979         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
7980         of register_operand.  Remove constraint.
7982 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
7984         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
7985         the first argument.
7987 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
7989         * attribs.c (decl_attributes): Guard inform with the return value
7990         of the preceding warning.
7992 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7994         * doc/invoke.texi (moverride): Move to correct section.
7996 2015-07-03  Richard Biener  <rguenther@suse.de>
7998         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
7999         Copy from tree.c
8000         (dt_operand::gen_gimple_expr): After valueizing operands
8001         re-canonicalize operand order for commutative tree codes.
8003 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8005         PR target/66746.
8006         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
8007         is defined.
8008         (__crc32w): Likewise.
8009         (__crc32d): Likewise.
8010         (__rdpmc): Likewise.
8011         (__rdtscp): Likewise.
8012         (_rdpmc): Likewise.
8013         (_rdtscp): Likewise.
8014         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
8015         is defined.
8017 2015-07-03  Richard Biener  <rguenther@suse.de>
8019         * fold-const.c (fold_mathfn_compare): Remove.
8020         (fold_inf_compare): Likewise.
8021         (fold_comparison): Move floating point comparison simplifications...
8022         * match.pd: ... to patterns here.  Introduce simple_comparisons
8023         operator list and use it for patterns formerly in fold_comparison.
8025 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
8027         PR tree-optimization/66119
8028         * toplev.c (process_options): Don't set up default values for
8029         the sra_max_scalarization_size_{speed,size} parameters.
8030         * tree-sra (analyze_all_variable_accesses): If no values
8031         have been set for the sra_max_scalarization_size_{speed,size}
8032         parameters, call get_move_ratio to get target defaults.
8034 2015-07-03  Richard Biener  <rguenther@suse.de>
8036         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
8037         * match.pd: ... here.
8039 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
8041         PR target/37072
8042         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
8043         is not actually the default on FreeBSD.
8045 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8047         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
8048         definition.
8049         (CMPGE_8HI): Likewise.
8050         (CMPGE_4SI): Likewise.
8051         (CMPGE_2DI): Likewise.
8052         (CMPGE_U16QI): Likewise.
8053         (CMPGE_U8HI): Likewise.
8054         (CMPGE_U4SI): Likewise.
8055         (CMPGE_U2DI): Likewise.
8056         (CMPLE_16QI): Likewise.
8057         (CMPLE_8HI): Likewise.
8058         (CMPLE_4SI): Likewise.
8059         (CMPLE_2DI): Likewise.
8060         (CMPLE_U16QI): Likewise.
8061         (CMPLE_U8HI): Likewise.
8062         (CMPLE_U4SI): Likewise.
8063         (CMPLE_U2DI): Likewise.
8064         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8065         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
8066         ALTIVEC_BUILTIN_VEC_CMPLE.
8067         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
8068         floating-point vector modes.
8069         (vector_nlt<mode>): New define_expand.
8070         (vector_nltu<mode>): Likewise.
8071         (vector_ngt<mode>): Likewise.
8072         (vector_ngtu<mode>): Likewise.
8074 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
8076         PR rtl-optimization/66706
8077         * combine.c (make_compound_operation): If an AND of SUBREG of
8078         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
8080 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
8082         * tree-pass.h (make_pass_ch_vect): New.
8083         * passes.def: Add pass_ch_vect just before pass_if_conversion.
8085         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
8086         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
8087         make_pass_ch_vect): New.
8088         (pass_ch): Extend ch_base.
8090         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
8091         (ch_base::copy_headers): ...here.
8093 2015-07-02  Richard Biener  <rguenther@suse.de>
8095         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
8096         * fold-const.c (get_pointer_modulus_and_residue): Remove.
8097         (fold_binary_loc): Implement (T)ptr & CST in terms of
8098         get_pointer_alignment_1.
8099         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
8100         Make sure to build the alignment test on a SSA name without
8101         final alignment info valid only after the prologue.
8103 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
8105         * config/cris/cris.md ("epilogue"): Remove condition.
8106         ("prologue"): Ditto.
8108 2015-07-02  Richard Biener  <rguenther@suse.de>
8110         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
8111         parameter to record a condition that is false.
8112         (record_conditions): When recording an extra NE_EXPR that is
8113         true also record a EQ_EXPR that is false.
8115 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
8117         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
8118         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
8119         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
8120         (set_iv, find_interesting_uses_address, add_candidate_1): New
8121         argument to alloc_iv.
8122         (find_interesting_uses_op, find_interesting_uses_cond): Don't
8123         duplicate struct iv.
8124         (free_loop_data): Don't free struct iv explicitly.
8125         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
8127 2015-07-01  DJ Delorie  <dj@redhat.com>
8129         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
8130         (LIB_SPEC): Add.
8131         (SUPPORTS_DISCRIMINATOR): Define.
8133 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8135         PR bootstrap/66685
8136         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
8137         there are no CALLs in the same pattern.
8139 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8141         PR rtl-optimization/61047
8142         * rtlanal.c (get_initial_register_offset): New function.
8143         (rtx_addr_can_trap_p_1): Check offsets of stack references.
8145 2015-07-01  Richard Biener  <rguenther@suse.de>
8147         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
8148         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
8149         ~X CMP C -> X CMP' ~C to ...
8150         * match.pd: ... patterns here.
8152 2015-07-01  Nick Clifton  <nickc@redhat.com>
8154         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
8155         a 16-bit value into a 20-bit memory slot.
8157 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8159         * doc/sourcebuild.texi (AArch64-specific attributes): Document
8160         "aarch64_tiny", "aarch64_small", "aarch64_large",
8161         "aarch64_little_endian", "aarch64_big_endian".
8163 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8165         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
8166         Document "aarch64_small_fpic".
8168 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8170         * configure.ac: Add check for aarch64 assembler -fpic relocation
8171         modifier support.
8172         * configure: Regenerate.
8173         * config.in: Regenerate.
8174         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
8175         to -fPIC if not support of -fpic relocation modifier in assembler.
8177 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8179         PR bootstrap/66685
8180         * rtl.c (classify_insn): Handle returns in PARALLELs.
8182 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8184         PR middle-end/66633
8185         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
8186         to true if the function is nested and if not optimizing.
8187         (convert_local_omp_clauses): Initialize need_frame to true if the
8188         function contains nested functions and if not optimizing.
8190 2015-07-01  Richard Biener  <rguenther@suse.de>
8192         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
8193         (X & Y) ^ Y -> ~X & Y transforms to ...
8194         * match.pd: ... here.
8196 2015-07-01  Richard Biener <rguenther@suse.de>
8198         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
8199         of converts to avoid uninteresting noise from the conversion
8200         simplifying patterns.
8202 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
8204         * config/c6x/c6x.c (try_rename_operands): Do not depend on
8205         gcc_assert evaluating its argument for side-effect.
8207 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8209         PR target/64833
8210         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
8211         flag_pic is set.
8213 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8215         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
8216         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
8217         (hash_scc): Add this_ref_p and ref_p parameters and pass them
8218         to the inner DFS walk.
8220 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8222         * target-insns.def (jump): New targetm instruction pattern.
8223         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
8224         instead of gen_jump.
8225         (fix_up_crossing_landing_pad): Likewise.
8226         (add_labels_and_missing_jumps): Likewise.
8227         (fix_crossing_conditional_branches): Likewise.
8228         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8229         (force_nonfallthru_and_redirect): Likewise.
8230         * cse.c (cse_insn): Likewise.
8231         * expmed.c (expand_divmod): Likewise.
8232         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
8233         * haifa-sched.c (init_before_recovery): Likewise.
8234         (sched_create_recovery_edges): Likewise.
8235         * ifcvt.c (find_cond_trap): Likewise.
8236         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
8237         (expand_float, expand_fix): Likewise.
8238         * stmt.c (emit_jump): Likewise.
8240 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8242         * defaults.h (HAVE_load_multiple, gen_load_multiple)
8243         (HAVE_store_multiple, gen_store_multiple): Delete.
8244         * target-insns.def (load_multiple, store_multiple): New targetm
8245         instruction patterns.
8246         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
8247         of HAVE_*/gen_* interface.
8249 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8251         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
8252         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
8253         (gen_mem_signal_fence): Delete.
8254         * target-insns.def (mem_signal_fence, mem_thread_fence)
8255         (memory_barrier): New targetm instruction patterns.
8256         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
8257         interface.
8258         (expand_mem_signal_fence): Likewise.
8260 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8262         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
8263         * target-insns.def (epilogue, prologue, sibcall_prologue): New
8264         targetm instruction patterns.
8265         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
8266         interface.
8267         * calls.c (expand_call): Likewise.
8268         * cfgrtl.c (cfg_layout_finalize): Likewise.
8269         * df-scan.c (df_get_entry_block_def_set): Likewise.
8270         (df_get_exit_block_use_set): Likewise.
8271         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
8272         * final.c (final_start_function): Likewise.
8273         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8274         (reposition_prologue_and_epilogue_notes): Likewise.
8275         * reorg.c (find_end_label): Likewise.
8276         * toplev.c (process_options): Likewise.
8278 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
8280         * typed-splay-tree.h: New file.
8282 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
8284         PR debug/66691
8285         * lra-int.h (lra_substitute_pseudo): Add a parameter.
8286         (lra_substitute_pseudo_within_insn): Ditto.
8287         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
8288         of constant.
8289         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
8290         to lra_substitute_pseudo.
8291         * lra-lives.c (process_bb_lives): Add an argument to
8292         lra_substitute_pseudo_within_insn call.
8293         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
8294         argument to lra_substitute_pseudo and
8295         lra_substitute_pseudo_within_insn calls.
8296         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
8298 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8300         * configure: Regenerated.
8302 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8304         * config.gcc: Support i[34567]86-*-elfiamcu target.
8305         * config/i386/iamcu.h: New.
8306         * config/i386/i386.opt: Add -miamcu.
8307         * doc/invoke.texi: Document -miamcu.
8308         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
8309         off x87/MMX/SSE/AVX codegen for -miamcu.
8310         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8311         __iamcu/__iamcu__ for -miamcu.
8312         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
8313         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
8314         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
8315         * config/i386/i386.c (ix86_option_override_internal): Ignore and
8316         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
8317         MCU by default.  Default long double to 64-bit for Intel MCU.
8318         Turn on -freg-struct-return for Intel MCU.  Issue an error when
8319         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
8320         AVX is turned on.
8321         (function_arg_advance_32): Pass value whose size is no larger
8322         than 8 bytes in registers for Intel MCU.
8323         (function_arg_32): Likewise.
8324         (ix86_return_in_memory): Return value whose size is no larger
8325         than 8 bytes in registers for Intel MCU.
8326         (iamcu_alignment): New function.
8327         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
8328         true.
8329         (ix86_local_alignment): Don't increase alignment for Intel MCU.
8330         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
8331         true.
8333 2015-06-30  Marek Polacek  <polacek@redhat.com>
8335         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
8336         both operands of the resulting expression.
8338         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
8339         the final expression with the operand's type and then convert
8340         it to the type of the expression.
8342 2015-06-30  Richard Biener  <rguenther@suse.de>
8344         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
8345         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
8346         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
8347         * match.pd: ... to patterns here.
8349 2015-06-30  Richard Biener  <rguenther@suse.de>
8351         PR tree-optimization/66704
8352         * tree-vect-data-refs.c (vect_setup_realignment): Use
8353         make_ssa_name for non-SSA name source.
8355 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
8357         PR middle-end/66702
8358         * omp-low.c (simd_clone_adjust): Handle addressable linear
8359         or uniform parameters or non-gimple type uniform parameters.
8361 2015-06-30  Richard Biener  <rguenther@suse.de>
8363         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
8364         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
8365         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
8366         * match.pd: ... here.
8367         Add a few cases of A - B -> A + (-B) when B "easily" negates.
8368         Move (x & y) | x -> x and friends before
8369         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
8371 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8373         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
8374         -mfix-ut699 is not specified.
8375         (leon3_load): Rename into...
8376         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
8377         is specified.
8379 2015-06-30  Marek Polacek  <polacek@redhat.com>
8381         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
8382         * match.pd: ... here.
8384 2015-06-30  Richard Biener  <rguenther@suse.de>
8386         * target-insns.def (canonicalize_funcptr_for_compare): Add.
8387         * fold-const.c (build_range_check): Replace uses of
8388         HAVE_canonicalize_funcptr_for_compare.
8389         (fold_widened_comparison): Likewise.
8390         (fold_sign_changed_comparison): Likewise.
8391         * dojump.c: Include "target.h".
8392         (do_compare_and_jump): Replace uses of
8393         HAVE_canonicalize_funcptr_for_compare and
8394         gen_canonicalize_funcptr_for_compare.
8395         * expr.c (do_store_flag): Likewise.
8397 2015-06-30  Tom de Vries  <tom@codesourcery.com>
8399         PR tree-optimization/66652
8400         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
8401         max_loop_iterations to determine if nit + 1 overflows.
8403 2015-06-30  Richard Biener  <rguenther@suse.de>
8405         * tree-vrp.c (register_edge_assert_for_2): Also register
8406         asserts for dominating conversion results.
8408 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
8410         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
8411         field in struct iv.
8413 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
8415         PR target/66509
8416         * configure.ac: Fix filds and fildq test for 64-bit.
8417         * configure: Regenerated.
8419 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8421         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
8422         (nvptx_reorg): Here.  Keep the non-subreg pieces.
8424 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
8426         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
8427         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8429 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
8431         * config/i386/i386.md (*jcc_1): Use %! in asm template.
8432         Set attribute "length_nobnd" instead of "length".
8433         (*jcc_2): Ditto.
8434         (jump): Ditto.
8435         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
8437 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
8439         * config/nios2/nios2.c (nios2_delegitimize_address): Make
8440         assert less restrictive.
8442 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8444         PR fortran/66605
8445         * cgraphunit.c (cgraph_node::finalize_function): Do not call
8446         do_warn_unused_parameter.
8447         * function.c (do_warn_unused_parameter): Move from here.
8448         * function.h (do_warn_unused_parameter): Do not declare.
8450 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8452         PR target/65697
8453         * gcc.target/arm/armv-sync-comp-swap.c: New.
8454         * gcc.target/arm/armv-sync-op-acquire.c: New.
8455         * gcc.target/arm/armv-sync-op-full.c: New.
8456         * gcc.target/arm/armv-sync-op-release.c: New.
8458 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8460         PR target/65697
8461         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
8462         initial acquire barrier with final barrier.
8464 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8466         PR target/65697
8467         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
8468         initial acquire barrier with final barrier.
8470 2015-06-29  Richard Henderson  <rth@redhat.com>
8472         * config/i386/constraints.md (Bf): New constraint.
8473         * config/i386/i386-c.c (ix86_target_macros): Define
8474         __GCC_ASM_FLAG_OUTPUTS__.
8475         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
8476         as flags outputs.
8477         * doc/extend.texi (FlagOutputOperands): Document them.
8479 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
8481         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
8482         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
8483         unspec name.
8484         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
8485         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
8486         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
8487         (aarch64_symbol_context): Ditto.
8488         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
8489         and use new pattern name.
8490         (aarch64_expand_mov_immediate): Ditto.
8491         (aarch64_print_operand): Ditto.
8492         (aarch64_classify_tls_symbol): Ditto.
8494 2015-06-29  Marek Polacek  <polacek@redhat.com>
8495             Marc Glisse  <marc.glisse@inria.fr>
8497         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
8498         * match.pd: ... pattern here.
8500 2015-06-29  Tom de Vries  <tom@codesourcery.com>
8502         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
8503         function structure.
8505 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8507         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
8508         feature description, split out the native option, add a link to
8509         the feature documentation, rearrange and slightly rewrite text.
8510         (Aarch64 options, -mcpu): Likewise.
8511         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
8512         +rdma implies Adv. SIMD.
8514 2015-06-29  Marek Polacek  <polacek@redhat.com>
8516         PR c/66322
8517         * function.c (stack_protect_epilogue): Remove a cast to int.
8518         * doc/invoke.texi: Update -Wswitch-bool description.
8520 2015-06-29  Richard Biener  <rguenther@suse.de>
8522         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
8523         * fold-const.c (fold_binary_loc): Move &A - &B simplification
8524         via ptr_difference_const ...
8525         * match.pd: ... here.
8526         When matching (X ^ Y) == Y also match with swapped operands.
8528 2015-06-29  Richard Biener  <rguenther@suse.de>
8530         * lto-streamer.h (LTO_major_version): Bump to 5.
8532 2015-06-29  Richard Biener  <rguenther@suse.de>
8534         PR tree-optimization/66677
8535         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
8536         STMT_VINFO_VEC_STMT clobbering less strict.
8538 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
8540         PR middle-end/64130
8541         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
8542         division, compute max and min when value ranges for dividend and
8543         divisor are available.
8545 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
8546             Sandra Loosemore <sandra@codesourcery.com>
8548         * regrename.h (regrename_do_replace): Change to return bool.
8549         * regrename.c (rename_chains): Check return value of
8550         regname_do_replace.
8551         (regrename_do_replace): Re-validate the modified insns and
8552         return bool status.
8553         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
8554         Update to match rename_chains changes.
8555         * config/c6x/c6x.c (try_rename_operands): Assert that
8556         regrename_do_replace returns true.
8558 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
8560         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
8561         operand 2 here.  Use copy_addr_to_reg to copy non-index
8562         register operand 2 to a temporary.
8563         (<mode>_stx): Ditto for operand 1.
8564         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
8565         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
8566         (ix86_store_bounds): Ditto.
8568 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
8570         * print-tree.c (print_node) [TREE_VEC]: Print its length.
8572 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
8574         * gimple.c (gimple_call_set_fndecl): Remove.
8575         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
8576         build1_loc directly instead of build_fold_addr_expr_loc.
8578 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8580         * hash-map.h (hash_map::traverse): Use the definition of the
8581         Key typedef rather than the typedef itself.
8583 2015-06-26  Martin Jambor  <mjambor@suse.cz>
8585         PR debug/66301
8586         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
8587         NULL instead of calling dump_enabled_p.
8589 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8591         * config/aarch64/aarch64.opt: (override): New.
8592         * doc/invoke.texi (override): Document.
8593         * config/aarch64/aarch64.c (aarch64_flag_desc): New
8594         (aarch64_fusible_pairs): Likewise.
8595         (aarch64_tuning_flags): Likewise.
8596         (aarch64_tuning_override_function): Likewise.
8597         (aarch64_tuning_override_functions): Likewise.
8598         (aarch64_parse_one_option_token): Likewise.
8599         (aarch64_parse_boolean_options): Likewise.
8600         (aarch64_parse_fuse_string): Likewise.
8601         (aarch64_parse_tune_string): Likewise.
8602         (aarch64_parse_one_override_token): Likewise.
8603         (aarch64_parse_override_string): Likewise.
8604         (aarch64_override_options): Parse the -override string if it
8605         is present.
8607 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8609         * config/aarch64/aarch64-protos.h (tune_params): Remove
8610         const from members.
8611         (aarch64_tune_params): Remove const, change to no longer be
8612         a pointer.
8613         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
8614         change to no longer be a pointer, initialize to generic_tunings.
8615         (aarch64_min_divisions_for_recip_mul): Change dereference of
8616         aarch64_tune_params to member access.
8617         (aarch64_reassociation_width): Likewise.
8618         (aarch64_rtx_mult_cost): Likewise.
8619         (aarch64_address_cost): Likewise.
8620         (aarch64_branch_cost): Likewise.
8621         (aarch64_rtx_costs): Likewise.
8622         (aarch64_register_move_cost): Likewise.
8623         (aarch64_memory_move_cost): Likewise.
8624         (aarch64_sched_issue_rate): Likewise.
8625         (aarch64_builtin_vectorization_cost): Likewise.
8626         (aarch64_override_options): Take a copy of the selected tuning
8627         struct in to aarch64_tune_params, rather than just setting
8628         a pointer, change dereferences of aarch64_tune_params to member
8629         accesses.
8630         (aarch64_override_options_after_change): Change dereferences of
8631         aarch64_tune_params to member access.
8632         (aarch64_macro_fusion_p): Likewise.
8633         (aarch_macro_fusion_pair_p): Likewise.
8634         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
8636 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8638         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
8639         (aarch64_tune_flags): Likewise.
8640         (AARCH64_TUNE_FMA_STEERING): Likewise.
8641         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
8642         to AARCH64_FL_USE_FMA_STEERING_PASS.
8643         (cortex-a57.cortex-a53): Likewise.
8644         (cortex-a72): Use cortexa72_tunings.
8645         (cortex-a72.cortex-a53): Likewise.
8646         (exynos-m1): Likewise.
8647         * config/aarch64/aarch64-protos.h (tune_params): Add
8648         a field: extra_tuning_flags.
8649         * config/aarch64/aarch64-tuning-flags.def: New.
8650         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
8651         (aarch64_extra_tuning_flags): Likewise.
8652         (aarch64_tune_params): Declare here.
8653         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
8654         (cortexa53_tunings): Likewise.
8655         (cortexa57_tunings): Likewise.
8656         (thunderx_tunings): Likewise.
8657         (xgene1_tunings): Likewise.
8658         (cortexa72_tunings): New.
8659         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
8660          (gate): Check against aarch64_tune_params.
8661         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
8662         aarch64-protos.h.
8664 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8666         * config/aarch64/aarch64-fusion-pairs.def: New.
8667         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
8668         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
8669         aarch64_fusion_pairs.
8670         (AARCH64_FUSE_MOV_MOVK): Likewise.
8671         (AARCH64_FUSE_ADRP_ADD): Likewise.
8672         (AARCH64_FUSE_MOVK_MOVK): Likewise.
8673         (AARCH64_FUSE_ADRP_LDR): Likewise.
8674         (AARCH64_FUSE_CMP_BRANCH): Likewise.
8676 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8678         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
8679         SYMBOL_SMALL_GOT_28K.
8680         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
8681         relocation modifiers.
8682         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
8683         (ldr_got_small_28k_<mode>): New.
8684         (ldr_got_small_28k_sidi): New.
8685         * config/aarch64/iterators.md (got_modifier): New mode iterator.
8686         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
8687         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8688         SYMBOL_SMALL_GOT_28K.
8689         (aarch64_rtx_costs): Add costs for new instruction sequences.
8690         (initialize_aarch64_code_model): Initialize new model.
8691         (aarch64_classify_symbol): Recognize new model and new symbol classification.
8692         (aarch64_asm_preferred_eh_data_format): Support new model.
8693         (aarch64_load_symref_appropriately): Generate new instruction
8694         sequences for -fpic.
8695         (TARGET_USE_PSEUDO_PIC_REG): New definition.
8696         (aarch64_use_pseudo_pic_reg): New function.
8698 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8700         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8701         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
8702         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
8703         (aarch64_expand_mov_immediate): Ditto.
8704         (aarch64_print_operand): Ditto.
8705         (aarch64_classify_symbol): Ditto.
8707 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
8709         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
8711 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
8713         PR bootstrap/66638
8714         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
8715         assertion failed.  Remove assertion itself.
8717 2015-06-26  Richard Biener  <rguenther@suse.de>
8719         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
8720         and -A CMP CST -> A CMP -CST which is redundant with a pattern
8721         in match.pd.
8722         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
8723         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
8724         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
8725         * match.pd: ... patterns here.
8727 2015-06-26  Marek Polacek  <polacek@redhat.com>
8729         * match.pd ((x | y) & ~(x & y) -> x ^ y,
8730         (x | y) & (~x ^ y) -> x & y): New patterns.
8732 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8734         * rtl.h (emit): Add an optional boolean parameter to control
8735         whether barriers are emitted.
8736         * emit-rtl.c (emit): Likewise.
8737         * gensupport.c (get_emit_function): Return null rather than "emit".
8738         * genemit.c (gen_emit_seq): Handle the null return value.
8739         Don't emit barriers after the final instruction in the sequence.
8740         * gentarget-def.c (main): Don't emit barriers after the instruction.
8742 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8744         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
8745         TARGET_UNIFIED_ASM.
8747 2015-06-26  Richard Biener  <rguenther@suse.de>
8749         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
8751 2015-06-26  Richard Biener  <rguenther@suse.de>
8753         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
8754         irrespective on whether the inner operation has a single use
8755         of both off are constant.
8757 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
8758             Segher Boessenkool  <segher@kernel.crashing.org>
8760         PR target/66412
8761         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
8762         before doing PUT_MODE or PUT_CODE on operands to avoid
8763         in-place RTX modification.
8765 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8767         * gentarget-def.c (def_target_insn): Cast return of strtol to
8768         unsigned int.
8770 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8772         * gimple.h (gimple_call_set_fn): Move inline function.
8773         * gimple.c (gimple_call_set_fn): Relocate here.
8775 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
8777         PR target/65979
8778         PR target/66611
8779         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
8780         the replacement insn will work.
8782 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8784         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
8785         by default.
8787 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8789         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
8790         * cgraph.h: Include ipa-ref.h and plugin-api.h.
8791         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
8792         (symtab_node::address_can_be_compared_p): Move function.
8793         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
8794         definition here.
8795         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
8796         * auto-profile.c: Likewise.
8797         * bb-reorder.c: Likewise.
8798         * builtins.c: Likewise.
8799         * calls.c: Likewise.
8800         * cfgexpand.c: Likewise.
8801         * cgraphbuild.c: Likewise.
8802         * cgraphclones.c: Likewise.
8803         * cgraphunit.c: Likewise.
8804         * combine.c: Likewise.
8805         * coverage.c: Likewise.
8806         * data-streamer-in.c: Likewise.
8807         * data-streamer-out.c: Likewise.
8808         * data-streamer.c: Likewise.
8809         * dbxout.c: Likewise.
8810         * dwarf2out.c: Likewise.
8811         * except.c: Likewise.
8812         * expr.c: Likewise.
8813         * final.c: Likewise.
8814         * fold-const.c: Likewise.
8815         * ggc-page.c: Likewise.
8816         * gimple-fold.c: Likewise.
8817         * gimple-iterator.c: Likewise.
8818         * gimple-pretty-print.c: Likewise.
8819         * gimple-streamer-in.c: Likewise.
8820         * gimple-streamer-out.c: Likewise.
8821         * gimple.c: Likewise.
8822         * gimplify.c: Likewise.
8823         * ipa-chkp.c: Likewise.
8824         * ipa-comdats.c: Likewise.
8825         * ipa-cp.c: Likewise.
8826         * ipa-devirt.c: Likewise.
8827         * ipa-icf-gimple.c: Likewise.
8828         * ipa-icf.c: Likewise.
8829         * ipa-inline-analysis.c: Likewise.
8830         * ipa-inline-transform.c: Likewise.
8831         * ipa-inline.c: Likewise.
8832         * ipa-polymorphic-call.c: Likewise.
8833         * ipa-profile.c: Likewise.
8834         * ipa-prop.c: Likewise.
8835         * ipa-pure-const.c: Likewise.
8836         * ipa-ref.c: Likewise.
8837         * ipa-reference.c: Likewise.
8838         * ipa-split.c: Likewise.
8839         * ipa-utils.c: Likewise.
8840         * ipa-visibility.c: Likewise.
8841         * ipa.c: Likewise.
8842         * langhooks.c: Likewise.
8843         * lto-cgraph.c: Likewise.
8844         * lto-compress.c: Likewise.
8845         * lto-opts.c: Likewise.
8846         * lto-section-in.c: Likewise.
8847         * lto-section-out.c: Likewise.
8848         * lto-streamer-in.c: Likewise.
8849         * lto-streamer-out.c: Likewise.
8850         * lto-streamer.c: Likewise.
8851         * omp-low.c: Likewise.
8852         * opts-global.c: Likewise.
8853         * passes.c: Likewise.
8854         * predict.c: Likewise.
8855         * print-tree.c: Likewise.
8856         * profile.c: Likewise.
8857         * ree.c: Likewise.
8858         * sanopt.c: Likewise.
8859         * stor-layout.c: Likewise.
8860         * symtab.c: Likewise.
8861         * toplev.c: Likewise.
8862         * trans-mem.c: Likewise.
8863         * tree-cfg.c: Likewise.
8864         * tree-chkp.c: Likewise.
8865         * tree-eh.c: Likewise.
8866         * tree-emutls.c: Likewise.
8867         * tree-inline.c: Likewise.
8868         * tree-nested.c: Likewise.
8869         * tree-parloops.c: Likewise.
8870         * tree-pretty-print.c: Likewise.
8871         * tree-profile.c: Likewise.
8872         * tree-sra.c: Likewise.
8873         * tree-ssa-alias.c: Likewise.
8874         * tree-ssa-live.c: Likewise.
8875         * tree-ssa-loop-ivcanon.c: Likewise.
8876         * tree-ssa-loop-ivopts.c: Likewise.
8877         * tree-ssa-pre.c: Likewise.
8878         * tree-ssa-sccvn.c: Likewise.
8879         * tree-ssa-strlen.c: Likewise.
8880         * tree-ssa-structalias.c: Likewise.
8881         * tree-streamer-in.c: Likewise.
8882         * tree-streamer-out.c: Likewise.
8883         * tree-streamer.c: Likewise.
8884         * tree-switch-conversion.c: Likewise.
8885         * tree-tailcall.c: Likewise.
8886         * tree-vect-data-refs.c: Likewise.
8887         * tree-vect-stmts.c: Likewise.
8888         * tree-vectorizer.c: Likewise.
8889         * tree.c: Likewise.
8890         * tsan.c: Likewise.
8891         * ubsan.c: Likewise.
8892         * value-prof.c: Likewise.
8893         * varasm.c: Likewise.
8894         * varpool.c: Likewise.
8895         * config/arm/arm.c: Likewise.
8896         * config/bfin/bfin.c: Likewise.
8897         * config/c6x/c6x.c: Likewise.
8898         * config/cris/cris.c: Likewise.
8899         * config/darwin-c.c: Likewise.
8900         * config/darwin.c: Likewise.
8901         * config/i386/i386.c: Likewise.
8902         * config/i386/winnt.c: Likewise.
8903         * config/microblaze/microblaze.c: Likewise.
8904         * config/mips/mips.c: Likewise.
8905         * config/rs6000/rs6000.c: Likewise.
8906         * config/rx/rx.c: Likewise.
8907         * config/s390/s390.c: Likewise.
8908         * config/tilegx/mul-tables.c: Likewise.
8910 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8912         * config/aarch64/aarch64.c, config/alpha/alpha.c,
8913         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
8914         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
8915         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
8916         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8917         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8918         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8919         config/microblaze/microblaze.c, config/mips/mips.c,
8920         config/mmix/mmix.c, config/mn10300/mn10300.c,
8921         config/moxie/moxie.c, config/msp430/msp430.c,
8922         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8923         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8924         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8925         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8926         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8927         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8928         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
8929         target-def.h include.
8930         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
8932 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8934         * Makefile.in (TARGET_DEF): Add target-insns.def.
8935         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
8936         (build/gentarget-def.o): New rule.
8937         (genprogrtl): Add target-def.
8938         * target-insns.def, gentarget-def.c: New files.
8939         * target.def: Add targetm.have_* and targetm.gen_* hooks,
8940         based on the contents of target-insns.def.
8941         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
8942         (HAVE_return, gen_return): Delete.
8943         * target-def.h: Include insn-target-def.h.
8944         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
8945         instead of direct calls.  Rely on them to do the appropriate assertions.
8946         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
8947         (convert_jumps_to_returns): Use targetm interface instead of
8948         direct calls.
8949         (thread_prologue_and_epilogue_insns): Likewise.
8950         * reorg.c (find_end_label, dbr_schedule): Likewise.
8951         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
8952         * shrink-wrap.c (convert_to_simple_return): Likewise.
8953         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
8955 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8957         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
8958         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8959         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
8960         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8961         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8962         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8963         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8964         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
8965         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
8966         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8967         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8968         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8969         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8970         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8971         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8972         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
8973         includes to end.
8975 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8977         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
8978         (unbounded_int_hashmap_traits::key_type): Likewise.
8979         * hash-map.h (hash_map): Get the key type from the traits.
8980         * hash-traits.h (default_hash_traits): By default, inherit from the
8981         template parameter.
8982         * alias.c (alias_set_traits): Delete.
8983         (alias_set_entry_d::children): Use alias_set_hash as the first
8984         template parameter.
8985         (record_alias_subset): Update accordingly.
8986         * except.c (tree_hash_traits): Delete.
8987         (type_to_runtime_map): Use tree_hash as the first template parameter.
8988         (init_eh): Update accordingly.
8989         * genmatch.c (capture_id_map_hasher): Delete.
8990         (cid_map_t): Use nofree_string_hash as first template parameter.
8991         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
8992         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8993         Use symbol_compare_hash as the first template parameter in
8994         subdivide_hash_map.
8995         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
8996         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
8997         template parameter.
8998         * passes.c (pass_registry_hasher): Delete.
8999         (name_to_pass_map): Use nofree_string_hash as the first template
9000         parameter.
9001         (register_pass_name): Update accordingly.
9002         * sanopt.c (sanopt_tree_map_traits): Delete.
9003         (sanopt_tree_triplet_map_traits): Delete.
9004         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
9005         template parameter.
9006         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
9007         the first template parameter.
9008         * sese.c (rename_map_hasher): Delete.
9009         (rename_map_type): Use tree_ssa_name_hash as the first template
9010         parameter.
9011         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
9012         (function_summary::m_map): Use map_hash as the first template
9013         parameter.
9014         (function_summary::release): Update accordingly.
9015         * tree-if-conv.c (phi_args_hash_traits): Delete.
9016         (predicate_scalar_phi): Use tree_operand_hash as the first template
9017         parameter to phi_arg_map.
9018         * tree-inline.h (dependence_hasher): Delete.
9019         (copy_body_data::dependence_map): Use dependence_hash as the first
9020         template parameter.
9021         * tree-inline.c (remap_dependence_clique): Update accordingly.
9022         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
9023         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
9024         parameter.
9025         (addr_stridxptr): Update accordingly.
9026         * value-prof.c (profile_id_traits): Delete.
9027         (cgraph_node_map): Use profile_id_hash as the first template
9028         parameter.
9029         (init_node_map): Update accordingly.
9030         * config/alpha/alpha.c (string_traits): Delete.
9031         (machine_function::links): Use nofree_string_hash as the first
9032         template parameter.
9033         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
9034         * config/m32c/m32c.c (pragma_traits): Delete.
9035         (pragma_htab): Use nofree_string_hash as the first template parameter.
9036         (m32c_note_pragma_address): Update accordingly.
9037         * config/mep/mep.c (pragma_traits): Delete.
9038         (pragma_htab): Use nofree_string_hash as the first template parameter.
9039         (mep_note_pragma_flag): Update accordingly.
9040         * config/mips/mips.c (mips16_flip_traits): Delete.
9041         (mflip_mips16_htab): Use nofree_string_hash as the first template
9042         parameter.
9043         (mflip_mips16_use_mips16_p): Update accordingly.
9044         (local_alias_traits): Delete.
9045         (mips16_local_aliases): Use nofree_string_hash as the first template
9046         parameter.
9047         (mips16_local_alias): Update accordingly.
9049 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9051         * hash-map-traits.h (default_hashmap_traits): Delete.
9053 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9055         * hash-map-traits.h (unbounded_hashmap_traits): New class.
9056         (unbounded_int_hashmap_traits): Likewise.
9057         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
9059 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9061         * ipa-icf.h (symbol_compare_hash): New class.
9062         (symbol_compare_hashmap_traits): Use it.
9063         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
9064         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
9065         (mem_alloc_description::reverse_mem_map_t): Remove redundant
9066         default_hashmap_traits.
9067         * sanopt.c (sanopt_tree_triplet_hash): New class.
9068         (sanopt_tree_triplet_map_traits): Use it.
9070 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9072         * gengtype-parse.c (require_template_declaration): Allow '+' in
9073         template parameters.  Consolidate cases.
9074         * hash-traits.h (int_hash): New class.
9075         * alias.c (alias_set_hash): New structure.
9076         (alias_set_traits): Use it.
9077         * symbol-summary.h (function_summary::map_hash): New class.
9078         (function_summary::summary_hashmap_traits): Use it.
9079         * tree-inline.h (dependence_hash): New class.
9080         (dependence_hasher): Use it.
9081         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
9082         * value-prof.c (profile_id_hash): New class.
9083         (profile_id_traits): Use it.
9085 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9087         * config/mips/mips.c (mips16_flip_traits): Use it.
9088         (local_alias_traits, mips16_local_aliases): Convert from a map of
9089         rtxes to a map of symbol names.
9090         (mips16_local_alias): Update accordingly.
9092 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9094         * hash-traits.h (string_hash, nofree_string_hash): New classes.
9095         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
9096         * passes.c (pass_registry_hasher): Likewise.
9097         * config/alpha/alpha.c (string_traits): Likewise.
9098         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
9099         * config/m32c/m32c.c (pragma_traits): Likewise.
9100         * config/mep/mep.c (pragma_traits): Likewise.
9102 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9104         * tree-hash-traits.h (tree_hash): New class.
9105         * except.c: Include tree-hash-traits.h.
9106         (tree_hash_traits): Use tree_hash.
9108 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9110         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
9111         * sese.c: Include tree-hash-traits.h.
9112         (rename_map_hasher): Use tree_ssa_name_hasher.
9114 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9116         * tree-hash-traits.h (tree_decl_hash): New class.
9117         * tree-ssa-strlen.c: Include tree-hash-traits.h.
9118         (stridxlist_hash_traits): Use tree_decl_hash.
9120 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9122         * tree-hash-traits.h: New file.
9123         (tree_operand_hash): New class.
9124         * sanopt.c: Include tree-hash-traits.h.
9125         (sanopt_tree_map_traits): Use tree_operand_hash.
9126         * tree-if-conv.c: Include tree-hash-traits.h.
9127         (phi_args_hash_traits): Use tree_operand_hash.
9128         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
9129         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
9131 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9133         * hash-map-traits.h: Include hash-traits.h.
9134         (simple_hashmap_traits): New class.
9135         * mem-stats.h (hash_map): Change the default traits to
9136         simple_hashmap_traits<default_hash_traits<Key> >.
9138 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9140         * hash-table.h: Update comments.
9142 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9144         * hash-traits.h (default_hash_traits): New structure.
9145         * hash-set.h (default_hashset_traits): Delete.
9146         (hash_set): Use default_hash_traits<Key> instead of
9147         default_hashset_traits.  Delete hash_entry type and use Key directly.
9148         * ipa-devirt.c (pair_traits): Delete.
9149         (default_hash_traits <type_pair>): Override.
9150         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
9151         (odr_types_equivalent_p, add_type_duplicate): Likewise.
9153 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9155         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
9157 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9159         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
9160         (has_is_empty, is_empty_helper): Delete.
9161         (has_mark_deleted, mark_deleted_helper): Delete.
9162         (has_mark_empty, mark_empty_helper): Delete.
9163         (hash_table::is_deleted): Call the Descriptor unconditionally.
9164         (hash_table::is_empty): Likewise.
9165         (hash_table::mark_deleted): Likewise.
9166         (hash_table::mark_empty): Likewise.
9168 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9170         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
9171         redundant typedefs and members.
9172         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
9173         redundant typedefs.
9174         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
9175         * ipa-devirt.c (odr_name_hasher): Likewise.
9176         (polymorphic_call_target_hasher): Likewise.
9177         * ira-costs.c (cost_classes_hasher): Likewise.
9178         * statistics.c (stats_counter_hasher): Likewise.
9179         * trans-mem.c (log_entry_hasher): Likewise.
9180         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9181         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
9182         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
9183         * var-tracking.c (variable_hasher): Likewise.
9184         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
9185         Remove redundant typedefs and members.
9187 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9189         * hash-traits.h (ggc_cache_hasher): Rename to...
9190         (ggc_cache_remove): ...this and remove typedefs.
9191         (ggc_cache_ptr_hash): New class.
9192         * hash-table.h: Update commentary.
9193         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
9194         rather than ggc_cache_hasher.
9195         (const_wide_int_hasher, reg_attr_hasher): Likewise.
9196         (const_double_hasher, const_fixed_hasher): Likewise.
9197         * function.c (insn_cache_hasher): Likewise.
9198         * trans-mem.c (tm_wrapper_hasher): Likewise.
9199         * tree.h (tree_decl_map_cache_hasher): Likewise.
9200         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
9201         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
9202         * ubsan.c (tree_type_map_cache_hasher): Likewise.
9203         * varasm.c (tm_clone_hasher): Likewise.
9204         * config/i386/i386.c (dllimport_hasher): Likewise.
9205         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
9206         (tree_hasher): Likewise.
9208 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9210         * hash-traits.h (ggc_hasher): Rename to...
9211         (ggc_remover): ...this and remove typedefs.
9212         (ggc_cache_hasher): Update accordingly.  Add typedefs.
9213         (ggc_ptr_hash): New class.
9214         * hash-table.h: Update comment.
9215         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
9216         ggc_hasher.
9217         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
9218         (tree_descriptor_hasher): Likewise.
9219         * cgraph.c (function_version_hasher): Likewise.
9220         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
9221         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
9222         (dw_loc_list_hasher, addr_hasher): Likewise.
9223         * function.h (used_type_hasher): Likewise.
9224         * function.c (temp_address_hasher): Likewise.
9225         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
9226         * libfuncs.h (libfunc_hasher): Likewise.
9227         * lto-streamer.h (decl_state_hasher): Likewise.
9228         * optabs.c (libfunc_decl_hasher): Likewise.
9229         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
9230         * varasm.c (section_hasher, object_block_hasher): Likewise.
9231         (const_rtx_desc_hasher): Likewise.
9232         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
9233         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
9235 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9237         * hash-traits.h (free_ptr_hash): New class.
9238         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
9239         rather than typed_free_remove.  Remove redudant typedefs.
9240         (external_ref_hasher): Likewise.
9241         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
9242         (ehspec_hasher): Likewise.
9243         * ggc-common.c (saving_hasher): Likewise.
9244         * gimplify.c (gimplify_hasher): Likewise.
9245         * haifa-sched.c (delay_i2_hasher): Likewise.
9246         * loop-invariant.c (invariant_expr_hasher): Likewise.
9247         * loop-iv.c (biv_entry_hasher): Likewise.
9248         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
9249         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
9250         * tree-cfg.c (locus_discrim_hasher): Likewise.
9251         * tree-eh.c (finally_tree_hasher): Likewise.
9252         * tree-into-ssa.c (var_info_hasher): Likewise.
9253         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
9254         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
9255         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
9256         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
9257         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
9258         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
9259         (shared_bitmap_hasher): Likewise.
9260         * tree-ssa-threadupdate.c (redirection_data): Likewise.
9261         * tree-vectorizer.h (peel_info_hasher): Likewise.
9262         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
9263         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
9265 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9267         * hash-table.h: Update comments.
9268         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
9269         (nofree_ptr_hash): New class.
9270         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
9271         than typed_noop_remove.  Remove redudant typedefs.
9272         * attribs.c (attribute_hasher): Likewise.
9273         * cfg.c (bb_copy_hasher): Likewise.
9274         * cselib.c (cselib_hasher): Likewise.
9275         * dse.c (invariant_group_base_hasher): Likewise.
9276         * dwarf2cfi.c (trace_info_hasher): Likewise.
9277         * dwarf2out.c (macinfo_entry_hasher): Likewise.
9278         (comdat_type_hasher, loc_list_hasher): Likewise.
9279         * gcse.c (pre_ldst_expr_hasher): Likewise.
9280         * genmatch.c (id_base): Likewise.
9281         * genrecog.c (test_pattern_hasher): Likewise.
9282         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
9283         * haifa-sched.c (delay_i1_hasher): Likewise.
9284         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
9285         * ipa-icf.h (congruence_class_group_hash): Likewise.
9286         * ipa-profile.c (histogram_hash): Likewise.
9287         * ira-color.c (allocno_hard_regs_hasher): Likewise.
9288         * lto-streamer.h (string_slot_hasher): Likewise.
9289         * lto-streamer.c (tree_entry_hasher): Likewise.
9290         * plugin.c (event_hasher): Likewise.
9291         * postreload-gcse.c (expr_hasher): Likewise.
9292         * store-motion.c (st_expr_hasher): Likewise.
9293         * tree-sra.c (uid_decl_hasher): Likewise.
9294         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
9295         (ssa_name_var_hash): Likewise.
9296         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
9297         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
9298         * tree-ssa-pre.c (pre_expr_d): Likewise.
9299         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
9300         * vtable-verify.h (registration_hasher): Likewise.
9301         * vtable-verify.c (vtbl_map_hasher): Likewise.
9302         * config/arm/arm.c (libcall_hasher): Likewise.
9303         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
9304         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
9305         * config/sol2.c (comdat_entry_hasher): Likewise.
9306         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
9307         (print_fold_checksum, fold_checksum_tree): Likewise.
9308         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
9309         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
9310         (fold_build_call_array_loc): Likewise.
9311         * tree-ssa-ccp.c (gimple_htab): Likewise.
9312         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
9313         rather than pointer_type.
9315 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9317         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
9318         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
9320 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9322         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
9323         (ggc_hasher::ggc_mx): Likewise.
9324         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
9325         that duplicate ggc_hasher ones.
9327 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9329         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
9330         (gt_cleare_cache): Check here for deleted and empty entries.
9331         Replace handle_cache_entry with a call to keep_cache_entry.
9332         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
9333         (ggc_cache_hasher::keep_cache_entry): New function.
9334         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
9335         (tm_wrapper_hasher::keep_cache_entry): New function.
9336         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
9337         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9338         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
9339         (type_cache_hasher::keep_cache_entry): New function.
9340         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
9341         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9342         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
9343         (tree_type_map_cache_hasher::keep_cache_entry): New function.
9344         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
9345         (tm_clone_hasher::keep_cache_entry): New function.
9346         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
9347         (dllimport_hasher::keep_cache_entry): New function.
9349 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9351         * hash-table.h: Include hash-traits.h.
9352         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
9353         (ggc_cache_hasher): Move to...
9354         * hash-traits.h: ...this new file.
9356 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9358         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
9359         struct cl_optimization.
9360         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
9361         * tree.c (make_node_stat): Allocate cl_optimization struct.
9362         (copy_node_stat): Allocate and copy cl_optimization struct.
9364 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9366         * function.h (struct incoming_args): Move struct.
9367         (pass_by_reference, reference_callee_copied): Remove prototypes.
9368         * emit-rtl.h (struct incoming_args): Relocate struct here.
9369         * calls.h (pass_by_reference, reference_callee_copied): Relocate
9370         prototypes here.
9371         * function.c (pass_by_reference, reference_callee_copied): Move.
9372         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
9373         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
9374         * ipa-chkp.c: Include calls.h.
9376 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
9378         * alias.h (alias_set_type): Move typedef.
9379         * coretypes.h (alias_set_type): Relocate typedef here.
9380         * rtl.h: Don't include alias.h.
9382 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9384         * cgraph.h (cgraph_rtl_info): Move to rtl.h
9385         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
9386         and instance.
9387         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
9388         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
9389         doesn't exist.
9390         * calls.c: Include hard-reg-set.h before rtl.h.
9391         * ira.c: Likewise.
9393 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9394             Vladimir Makarov  <vmakarov@redhat.com>
9396         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
9397         Add assert.
9399 2015-06-25  Richard Biener  <rguenther@suse.de>
9401         * fold-const.c (fold_binary_loc): Move simplification of
9402         (X <<>> C1) & C2 ...
9403         * match.pd: ... here.
9405 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
9407         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
9409 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9411         * match.pd: Add patterns for vec_conds between 1 and 0.
9413 2015-06-25  Richard Biener  <rguenther@suse.de>
9415         * tree-vect-stmts.c (vectorizable_conversion): Do not set
9416         STMT_VINFO_VEC_STMT for SLP.
9417         (vectorizable_store): Likewise.
9418         (vectorizable_load): Likewise.
9419         (vect_transform_stmt): Catch SLP vectorization clobbering
9420         STMT_VINFO_VEC_STMT.
9422 2015-06-25  Richard Biener  <rguenther@suse.de>
9424         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
9425         dumping.
9426         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
9427         cleanup resulting dead code and parameters.
9428         (vect_transform_slp_perm_load): Adjust.
9430 2015-06-25  Nick Clifton  <nickc@redhat.com>
9432         * config/bfin/bfin.c (bfin_expand_prologue): Set
9433         current_function_static_stack_size if flag_stack_usage_info is set.
9434         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9435         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
9436         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9437         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
9439 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9441         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
9442         comment that the generated IV is unsigned.
9444 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9446         PR target/29693
9447         * config/arm/arm.c (arm_dbx_register_number): Return
9448         DWARF_FRAME_REGISTERS by default.
9450 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9452         * dominance.c (calculate_dominance_info): Fix verify_dominators call
9453         argument.  Call verify_dominator when reusing dominator info.
9455 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9457         PR target/66563
9458         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
9459         an additional element of the unspec vector.  Modify indices
9460         of operands.
9461         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
9462         * config/sh/sh.c (prepare_move_operands): Pass incremented
9463         const_int to gen_GOTaddr2picreg.
9464         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
9466 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9468         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
9469         Condition on TARGET_FLOAT.
9471 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9473         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
9474         and (no)crypto.
9476 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9478         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
9480         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
9481         aarch64_err_no_fpadvsimd.
9483         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
9484         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
9485         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
9486         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
9487         Turn error into assert, test TARGET_FLOAT.
9488         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
9489         TARGET_FLOAT.
9491 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
9493         PR debug/66482
9494         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
9496 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
9498         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
9500 2015-06-24 Renlin Li <renlin.li@arm.com>
9502         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
9503         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
9505 2015-06-24  Richard Biener  <rguenther@suse.de>
9507         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
9508         (main): Likewise.
9509         (lower_opt_convert): Support lowering of conditional view_convert.
9510         (parser::parse_operation): Likewise.
9511         (parser::parse_for): Likewise.
9513 2015-06-24  Renlin Li  <renlin.li@arm.com>
9515         * varasm.c (emit_local): Use unsigned int for align variable.
9517 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9519         PR target/63408
9520         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
9521         for negative numbers.
9523 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9525         PR rtl-optimization/66306
9526         * reload.c (find_reloads): Swap the match_dup info for
9527         commutative operands.
9529 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9531         * config/s390/vx-builtins.md
9532         ("vec_scatter_element<mode>_<non_vec_int>")
9533         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
9534         attribute with bhfgq.
9536 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9538         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
9540 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9542         * config/s390/s390-builtin-types.def: Add flag to indicate the
9543         options under which the function type is needed.
9544         * config/s390/s390-builtins.def: Add flag to indicate the options
9545         under which the builtin is enabled.
9546         * config/s390/s390-builtins.h: Add flags parameter to macro
9547         definitions.
9548         (bflags_for_builtin): New function.
9549         (flags_for_builtin): Renamed to ...
9550         (opflags_for_builtin): ... this.
9551         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
9552         flags_for_builtin to bflags_for_builtin and
9553         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
9554         * config/s390/s390.c: Add initialization of bflags_builtin and
9555         opflags_builtin arrays.
9556         Remove code for flags_builtin.
9557         (s390_init_builtins): Only create builtin function types if one of
9558         their flags is active.
9559         Only create builtins if all of their flags are active.
9560         (s390_expand_builtin): Rename flags_for_builtin to
9561         opflags_for_builtin.
9563 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9565         * config/s390/vecintrin.h: Remove internal builtins.
9567 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9569         * config/s390/s390.c (s390_secondary_reload): Fix check for
9570         GENERAL_REGS register class.
9572 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9574         * config/s390/s390.c (s390_support_vector_misalignment): Call
9575         default implementation for !TARGET_VX.
9577 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9579         * config/s390/s390.c (s390_legitimate_constant_p): Add
9580         TARGET_VX check.
9582 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9584         * config/s390/s390.c (s390_vector_abi): New variable definition.
9585         (s390_check_type_for_vector_abi): New function.
9586         (TARGET_ASM_FILE_END): New macro definition.
9587         (s390_asm_file_end): New function.
9588         (s390_function_arg): Call s390_check_type_for_vector_abi.
9589         (s390_gimplify_va_arg): Likewise.
9590         * configure: Regenerate.
9591         * configure.ac: Check for .gnu_attribute Binutils feature.
9593 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
9595         PR target/65803
9596         * config/bfin/bfin.c (hwloop_optimize): Initialize
9597         JUMP_LABEL for newly created jump.
9599 2015-06-23  Tristan Gingold  <gingold@adacore.com>
9601         * collect-utils.c (collect_wait): Unlink the response file here
9602         instead of...
9603         (do_wait): ...here.
9604         (utils_cleanup): ...and here.
9606 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
9608         * df-scan.c: Don't include target-def.h.
9609         * targhooks.c: Likewise.
9610         * config/arm/arm-c.c: Likewise.
9611         * config/i386/i386-c.c: Likewise.
9612         * config/nds32/nds32-cost.c: Likewise.
9613         * config/nds32/nds32-fp-as-gp.c: Likewise.
9614         * config/nds32/nds32-intrinsic.c: Likewise.
9615         * config/nds32/nds32-isr.c: Likewise.
9616         * config/nds32/nds32-md-auxiliary.c: Likewise.
9617         * config/nds32/nds32-memory-manipulation.c: Likewise.
9618         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9619         * config/nds32/nds32-predicates.c: Likewise.
9621 2015-06-23  Richard Biener  <rguenther@suse.de>
9623         PR tree-optimization/66636
9624         * tree-vect-stmts.c (vectorizable_store): Properly compute the
9625         def type for further defs for strided stores.
9627 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
9629         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
9630         conditional selects.
9631         (setcc_int<mode>, setcc_float<mode>): Reformat.
9633 2015-06-23  Marek Polacek  <polacek@redhat.com>
9635         * match.pd ((x + y) - (x | y) -> x & y,
9636         (x + y) - (x & y) -> x | y): New patterns.
9638 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
9640         PR 65711
9641         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
9642         '-dynamic-linker' within %{!shared: ...}.
9644 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
9646         PR target/66560
9647         * config/i386/predicates.md (addsub_vm_operator): New predicate.
9648         (addsub_vs_operator): Ditto.
9649         (addsub_vs_parallel): Ditto.
9650         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
9651         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
9652         Put minus RTX before plus and adjust vec_merge selector.
9653         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
9654         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
9655         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
9656         (addsub vec_merge splitters): New combiner splitters.
9657         (addsub vec_select/vec_concat splitters): Ditto.
9659 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
9661         PR tree-optimization/66449
9662         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
9663         POINTER_PLUS_EXPR for pointers.
9665 2015-06-23  Alan Modra  <amodra@gmail.com>
9667         * rtlanal.c (commutative_operand_precedence): Correct comments.
9668         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
9669         declaration.  Return an int.  Distinguish REG,REG return from
9670         others.
9671         (struct simplify_plus_minus_op_data): Make local to function.
9672         (simplify_plus_minus): Don't set canonicalized if merely sorting
9673         registers.  Avoid packing ops if nothing changes.  White space fixes.
9675 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
9677         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
9678         -fdump-ada-spec is passed but not if -fsyntax-only is.
9680 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
9682         PR bootstrap/63740
9683         * lra-lives.c (process_bb_lives): Check insn copying the same
9684         reload pseudo and don't create a copy for it.
9686 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9688         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
9689         for cond_stmt.
9691 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9693         * builtins.def (DEF_GOMP_BUILTIN): Test
9694         'flag_tree_parallelize_loops > 1' instead of
9695         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
9697 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9699         * dominance.c (calculate_dominance_info): Verify dominators if
9700         early-out.
9702 2015-06-22  Marek Polacek  <polacek@redhat.com>
9704         * match.pd ((x ^ y) ^ (x | y) -> x & y,
9705         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
9706         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
9707         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
9709 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
9711         PR target/65871
9712         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
9713         cost of embedded comparison.
9715 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9717         PR target/65914
9718         * config/rs6000/predicates.md (altivec_register_operand): Permit
9719         virtual stack registers.
9720         (vsx_register_operand): Likewise.
9721         (vfloat_operand): Likewise.
9722         (vint_operand): Likewise.
9723         (vlogical_operand): Likewise.
9725 2015-06-22  Richard Biener  <rguenther@suse.de>
9727         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
9728         and single_scalar_iteration_cost members.
9729         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
9730         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
9731         (vect_get_single_scalar_iteration_cost): Remove.
9732         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9733         Use LOOP_VINFO_SCALAR_ITERATION_COST.
9734         * tree-vect-loop.c (destroy_loop_vec_info): Free
9735         scalar_cost_vec.
9736         (vect_get_single_scalar_iteration_cost): Compute result into
9737         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
9738         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
9739         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
9740         (vect_estimate_min_profitable_iters): Use them.
9742 2015-06-22  Christian Bruel  <christian.bruel@st.com>
9744         PR target/52144
9745         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
9746         (TARGET_INSERT_ATTRIBUTES): Define.
9747         (thumb_flipper): New var.
9748         * config/arm/arm.opt (-mflip-thumb): New switch.
9750 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9751             Martin Liska  <mliska@suse.cz>
9753         PR ipa/65908
9754         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
9755         construction of arg_types.
9756         (sem_function::sem_function): Likewise.
9757         (sem_function::~sem_function): Remove destruction of arg_types.
9758         (sem_function::compatible_parm_types_p): New function.
9759         (sem_function::equals_wpa): Reorg matching of return values
9760         and parameter types.
9761         (sem_function::equals_private): Reorg mathcing of argument types.
9762         (sem_function::parse_tree_args): Remove.
9763         * ipa-icf.h (init_wpa): Do not call it.
9764         (parse_tree_args): Remove.
9765         (compatible_parm_types_p): Declare.
9766         (result_type): Remove.
9767         (arg_types): Remove.
9769 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9771         PR ipa/66351
9772         * ipa-polymorphic-call.c
9773         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
9774         initializing alias oracle; fix formating; set base_alias_set if it
9775         is known.
9777 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
9779         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
9780         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
9781         (find_inc): Likewise.
9782         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
9783         swapping.
9784         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9785         * df-scan.c (df_swap_refs): Remove.
9786         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
9787         * dominance.c (link_roots): Use std::swap instead of manually swapping.
9788         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
9789         * fold-const.c (fold_relational_const): Likewise.
9790         * genattrtab.c (simplify_test_exp): Likewise.
9791         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
9792         gimple_simplify): Likewise.
9793         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
9794         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
9795         * ipa-devirt.c (add_type_duplicate): Likewise.
9796         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
9797         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
9798         * lra.c (lra_create_copy): Likewise.
9799         * lto-streamer-out.c (DFS::DFS): Likewise.
9800         * modulo-sched.c (get_sched_window): Likewise.
9801         * omega.c (omega_pretty_print_problem): Likewise.
9802         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
9803         * reload1.c (reloads_unique_chain_p): Likewise.
9804         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
9805         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
9806         use std::swap.
9807         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
9808         manually swapping.
9809         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
9810         predicate_mem_writes): Likewise.
9811         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
9812         * tree-predcom.c (combine_chains): Likewise.
9813         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
9814         refs_may_alias_p_1): Likewise.
9815         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
9816         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9817         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
9818         number_of_iterations_cond): Likewise.
9819         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9820         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
9821         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9822         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9823         * tree-vrp.c (extract_range_from_binary_expr_1,
9824         extract_range_from_unary_expr_1): Likewise.
9826 2015-06-20  Marek Polacek  <polacek@redhat.com>
9828         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
9830 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9832         PR target/66591
9833         * config/sh/sh.c (prepare_move_operands): Replace subreg
9834         index term with R0 for base and index addressing.
9836 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
9838         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
9839         op1 is an fp zero.
9840         (movsf_aarch64): Change condition from register_operand to
9841         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
9842         load1.  Change type for alternative 7 to store1.
9843         (movdf_aarch64): Likewise.
9845 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
9847         * config/vax/vax.md: Adjust sign/zero extend patterns to
9848         handle SUBREGs in operands[1].
9850 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9852         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
9853         of manually swapping.
9854         (expand_vec_perm_interleave2): Likewise.
9856 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
9858         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
9859         reuse bounds created for abnormal ssa names.
9861 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
9863         * config/nvptx/nvptx.md (allocate_stack): Rename to...
9864         (allocate_stack_<mode>): ... this, and add :P on both
9865         match_operand and unspec.
9866         (allocate_stack): New expander.
9868 2015-06-19  Christian Bruel  <christian.bruel@st.com>
9870         PR target/66541
9871         PR target/52144
9872         * config/arm/arm.c (arm_set_current_function): Handle
9873         explicit default options.
9875 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9877         * config/i386/i386.md (*movsicc_noc_zext): New insn.
9878         (zero-extended cmove with mem peephole2): New pattern.
9879         (cmove with mem peephole2): Merge patterns.
9881 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
9883         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
9885 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
9887         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
9888         * config/mips/mips.md (*madd4<mode>): Ditto.
9889         (*nmadd3<mode>) Ditto.
9890         (*nmadd4<mode>_fastmath): Ditto.
9891         (*nmadd3<mode>_fastmath): Ditto.
9892         (*nmsub4<mode>): Ditto.
9893         (*nmsub3<mode>): Ditto.
9894         (*nmsub4<mode>_fastmath): Ditto.
9895         (*nmsub3<mode>_fastmath): Ditto.
9897 2015-06-18  Michael Matz  <matz@suse.de>
9899         PR middle-end/66253
9900         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
9901         grouped strided stores.
9902         (vectorizable_load): Don't use the DR from first_stmt in
9903         the non-SLP grouped strided case.
9905 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9907         PR target/66569
9908         * function.c (assign_bounds): Add arguments assign_regs,
9909         assign_special, assign_bt.
9910         (assign_parms): For vararg functions handle bounds in BT
9911         and special slots after incoming vararg bounds.
9913 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9915         PR middle-end/66568
9916         * cfgexpand.c (expand_return): Handle missing bounds.
9917         (expand_gimple_stmt_1): Likewise.
9918         * tree-chkp.c (chkp_expand_zero_bounds): New.
9919         * tree-chkp.h (chkp_expand_zero_bounds): New.
9921 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9923         PR middle-end/66567
9924         * ipa-chkp.c (chkp_maybe_create_clone): Require
9925         functions to be instrumentable.
9926         * tree-chkp.c (chkp_replace_function_pointer): Use
9927         chkp_instrumentable_p instead of attribute check.
9929 2015-06-18  Richard Biener  <rguenther@suse.de>
9931         PR tree-optimization/66510
9932         * tree-vect-stmts.c (vectorizable_load): Properly compute the
9933         number of vector loads for SLP permuted loads.
9934         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
9935         check the stride for loop vectorization.
9936         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
9937         vectorization factor.
9938         (vect_analyze_group_access): If the group size is not a power
9939         of two require a epilogue loop.
9940         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
9941         compute and optimizing and alias test pruning after final
9942         vectorization factor computation.
9943         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
9944         vector alignment.
9945         (vect_transform_slp_perm_load): Properly compute the original
9946         number of vector load stmts.
9948 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9950         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
9951         "unlikely character , in @var" warning.
9953 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
9955         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
9956         (ix86_function_arg_advance): Ditto.
9957         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
9959 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9961         * function.h (struct rtl_data): Remove struct and accessor macros.
9962         * emit-rtl.h (struct rtl_data): Relocate to here.
9963         * Makefile.in (GTFILES): Add emit-rtl.h.
9964         * df-core.c: Include emit-rtl.h.
9965         * genattrtab.c: Likewise.
9966         * genconditions.c: Likewise.
9967         * genpreds.c: Likewise.
9968         * genrecog.c: Likewise.
9969         * regcprop.c: Likewise.
9970         * resource.c: Likewise.
9971         * sched-rgn.c: Likewise.
9972         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9973         * config/i386/winnt.c: Likewise.
9975 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
9977         PR middle-end/66429
9978         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
9979         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
9980         and has_force_vectorize_loops flags from cfun into
9981         child_cfun.
9982         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
9983         if simduid is non-NULL.
9984         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
9985         * passes.def (pass_simduid_cleanup): Add new pass after loop
9986         passes.
9987         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
9988         indirection from htab argument's type.
9989         (shrink_simd_arrays): New function.
9990         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
9991         Don't call adjust_simduid_builtins if there are no loops.
9992         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
9993         (pass_simduid_cleanup::execute): New method.
9994         (make_pass_simduid_cleanup): New function.
9996 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
9998         * tree-core.h (tree_target_option): Make opts field a pointer to a
9999         cl_target_option instead of an instance of the struct.
10000         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
10001         the structure.
10002         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
10003         TARGET_OPTION_NODE.
10004         (copy_node_stat): Allocate and copy struct cl_target_option.
10006 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
10008         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
10009         Remove conditional exposure of prototypes.
10010         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
10011         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
10012         definitions in tree.h with functions.
10013         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
10014         anon_aggrname_p.
10015         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
10017 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
10019         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
10020         (*cmp<mode>_signed): ... this.
10021         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
10022         (*cmp<mode>_unsigned): ... this.  Remove %b.
10024 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
10026         * coretypes.h: Include input.h and as-a.h.
10027         * rtl.h: Include input.h and as-a.h for generator files.
10028         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
10029         * vec.c: Don't include diagnostic-core.h.
10030         * alias.c: Do not include input.h, line-map.h or is-a.h.
10031         * asan.c: Likewise.
10032         * attribs.c: Likewise.
10033         * auto-inc-dec.c: Likewise.
10034         * auto-profile.c: Likewise.
10035         * bb-reorder.c: Likewise.
10036         * bt-load.c: Likewise.
10037         * builtins.c: Likewise.
10038         * caller-save.c: Likewise.
10039         * calls.c: Likewise.
10040         * ccmp.c: Likewise.
10041         * cfg.c: Likewise.
10042         * cfganal.c: Likewise.
10043         * cfgbuild.c: Likewise.
10044         * cfgcleanup.c: Likewise.
10045         * cfgexpand.c: Likewise.
10046         * cfghooks.c: Likewise.
10047         * cfgloop.c: Likewise.
10048         * cfgloop.h: Likewise.
10049         * cfgloopanal.c: Likewise.
10050         * cfgloopmanip.c: Likewise.
10051         * cfgrtl.c: Likewise.
10052         * cgraph.c: Likewise.
10053         * cgraphbuild.c: Likewise.
10054         * cgraphclones.c: Likewise.
10055         * cgraphunit.c: Likewise.
10056         * cilk-common.c: Likewise.
10057         * combine-stack-adj.c: Likewise.
10058         * combine.c: Likewise.
10059         * compare-elim.c: Likewise.
10060         * convert.c: Likewise.
10061         * coverage.c: Likewise.
10062         * cppbuiltin.c: Likewise.
10063         * cprop.c: Likewise.
10064         * cse.c: Likewise.
10065         * cselib.c: Likewise.
10066         * data-streamer-in.c: Likewise.
10067         * data-streamer-out.c: Likewise.
10068         * data-streamer.c: Likewise.
10069         * dbxout.c: Likewise.
10070         * dce.c: Likewise.
10071         * ddg.c: Likewise.
10072         * debug.c: Likewise.
10073         * df-core.c: Likewise.
10074         * df-problems.c: Likewise.
10075         * df-scan.c: Likewise.
10076         * df.h: Likewise.
10077         * dfp.c: Likewise.
10078         * diagnostic-core.h: Likewise.
10079         * diagnostic.c: Likewise.
10080         * dojump.c: Likewise.
10081         * dominance.c: Likewise.
10082         * domwalk.c: Likewise.
10083         * double-int.c: Likewise.
10084         * dse.c: Likewise.
10085         * dumpfile.c: Likewise.
10086         * dumpfile.h: Likewise.
10087         * dwarf2asm.c: Likewise.
10088         * dwarf2cfi.c: Likewise.
10089         * dwarf2out.c: Likewise.
10090         * emit-rtl.c: Likewise.
10091         * et-forest.c: Likewise.
10092         * except.c: Likewise.
10093         * explow.c: Likewise.
10094         * expmed.c: Likewise.
10095         * expr.c: Likewise.
10096         * final.c: Likewise.
10097         * fixed-value.c: Likewise.
10098         * fold-const.c: Likewise.
10099         * function.c: Likewise.
10100         * fwprop.c: Likewise.
10101         * gcc-plugin.h: Likewise.
10102         * gcse.c: Likewise.
10103         * generic-match-head.c: Likewise.
10104         * ggc-page.c: Likewise.
10105         * gimple-builder.c: Likewise.
10106         * gimple-expr.c: Likewise.
10107         * gimple-fold.c: Likewise.
10108         * gimple-iterator.c: Likewise.
10109         * gimple-low.c: Likewise.
10110         * gimple-match-head.c: Likewise.
10111         * gimple-pretty-print.c: Likewise.
10112         * gimple-ssa-isolate-paths.c: Likewise.
10113         * gimple-ssa-strength-reduction.c: Likewise.
10114         * gimple-streamer-in.c: Likewise.
10115         * gimple-streamer-out.c: Likewise.
10116         * gimple-streamer.h: Likewise.
10117         * gimple-walk.c: Likewise.
10118         * gimple.c: Likewise.
10119         * gimplify-me.c: Likewise.
10120         * gimplify.c: Likewise.
10121         * godump.c: Likewise.
10122         * graph.c: Likewise.
10123         * graphite-blocking.c: Likewise.
10124         * graphite-dependences.c: Likewise.
10125         * graphite-interchange.c: Likewise.
10126         * graphite-isl-ast-to-gimple.c: Likewise.
10127         * graphite-optimize-isl.c: Likewise.
10128         * graphite-poly.c: Likewise.
10129         * graphite-scop-detection.c: Likewise.
10130         * graphite-sese-to-poly.c: Likewise.
10131         * graphite.c: Likewise.
10132         * haifa-sched.c: Likewise.
10133         * hw-doloop.c: Likewise.
10134         * ifcvt.c: Likewise.
10135         * init-regs.c: Likewise.
10136         * input.c: Likewise.
10137         * internal-fn.c: Likewise.
10138         * ipa-chkp.c: Likewise.
10139         * ipa-comdats.c: Likewise.
10140         * ipa-cp.c: Likewise.
10141         * ipa-devirt.c: Likewise.
10142         * ipa-icf-gimple.c: Likewise.
10143         * ipa-icf.c: Likewise.
10144         * ipa-inline-analysis.c: Likewise.
10145         * ipa-inline-transform.c: Likewise.
10146         * ipa-inline.c: Likewise.
10147         * ipa-polymorphic-call.c: Likewise.
10148         * ipa-profile.c: Likewise.
10149         * ipa-prop.c: Likewise.
10150         * ipa-pure-const.c: Likewise.
10151         * ipa-ref.c: Likewise.
10152         * ipa-reference.c: Likewise.
10153         * ipa-split.c: Likewise.
10154         * ipa-utils.c: Likewise.
10155         * ipa-visibility.c: Likewise.
10156         * ipa.c: Likewise.
10157         * ira-build.c: Likewise.
10158         * ira-color.c: Likewise.
10159         * ira-conflicts.c: Likewise.
10160         * ira-costs.c: Likewise.
10161         * ira-emit.c: Likewise.
10162         * ira-lives.c: Likewise.
10163         * ira.c: Likewise.
10164         * jump.c: Likewise.
10165         * langhooks.c: Likewise.
10166         * lcm.c: Likewise.
10167         * loop-doloop.c: Likewise.
10168         * loop-init.c: Likewise.
10169         * loop-invariant.c: Likewise.
10170         * loop-iv.c: Likewise.
10171         * loop-unroll.c: Likewise.
10172         * lower-subreg.c: Likewise.
10173         * lra-assigns.c: Likewise.
10174         * lra-coalesce.c: Likewise.
10175         * lra-constraints.c: Likewise.
10176         * lra-eliminations.c: Likewise.
10177         * lra-lives.c: Likewise.
10178         * lra-remat.c: Likewise.
10179         * lra-spills.c: Likewise.
10180         * lra.c: Likewise.
10181         * lto-cgraph.c: Likewise.
10182         * lto-compress.c: Likewise.
10183         * lto-opts.c: Likewise.
10184         * lto-section-in.c: Likewise.
10185         * lto-section-out.c: Likewise.
10186         * lto-streamer-in.c: Likewise.
10187         * lto-streamer-out.c: Likewise.
10188         * lto-streamer.c: Likewise.
10189         * mcf.c: Likewise.
10190         * mode-switching.c: Likewise.
10191         * modulo-sched.c: Likewise.
10192         * omega.c: Likewise.
10193         * omp-low.c: Likewise.
10194         * optabs.c: Likewise.
10195         * opts-global.c: Likewise.
10196         * opts.h: Likewise.
10197         * passes.c: Likewise.
10198         * plugin.c: Likewise.
10199         * postreload-gcse.c: Likewise.
10200         * postreload.c: Likewise.
10201         * predict.c: Likewise.
10202         * pretty-print.h: Likewise.
10203         * print-rtl.c: Likewise.
10204         * print-tree.c: Likewise.
10205         * profile.c: Likewise.
10206         * real.c: Likewise.
10207         * realmpfr.c: Likewise.
10208         * recog.c: Likewise.
10209         * ree.c: Likewise.
10210         * reg-stack.c: Likewise.
10211         * regcprop.c: Likewise.
10212         * reginfo.c: Likewise.
10213         * regrename.c: Likewise.
10214         * regstat.c: Likewise.
10215         * reload.c: Likewise.
10216         * reload1.c: Likewise.
10217         * reorg.c: Likewise.
10218         * resource.c: Likewise.
10219         * rtl-chkp.c: Likewise.
10220         * rtl-error.c: Likewise.
10221         * rtlanal.c: Likewise.
10222         * rtlhooks.c: Likewise.
10223         * sanopt.c: Likewise.
10224         * sched-deps.c: Likewise.
10225         * sched-ebb.c: Likewise.
10226         * sched-rgn.c: Likewise.
10227         * sched-vis.c: Likewise.
10228         * sdbout.c: Likewise.
10229         * sel-sched-dump.c: Likewise.
10230         * sel-sched-ir.c: Likewise.
10231         * sel-sched.c: Likewise.
10232         * sese.c: Likewise.
10233         * shrink-wrap.c: Likewise.
10234         * simplify-rtx.c: Likewise.
10235         * stack-ptr-mod.c: Likewise.
10236         * statistics.c: Likewise.
10237         * stmt.c: Likewise.
10238         * stor-layout.c: Likewise.
10239         * store-motion.c: Likewise.
10240         * streamer-hooks.c: Likewise.
10241         * stringpool.c: Likewise.
10242         * symtab.c: Likewise.
10243         * target-globals.c: Likewise.
10244         * targhooks.c: Likewise.
10245         * toplev.c: Likewise.
10246         * tracer.c: Likewise.
10247         * trans-mem.c: Likewise.
10248         * tree-affine.c: Likewise.
10249         * tree-browser.c: Likewise.
10250         * tree-call-cdce.c: Likewise.
10251         * tree-cfg.c: Likewise.
10252         * tree-cfgcleanup.c: Likewise.
10253         * tree-chkp-opt.c: Likewise.
10254         * tree-chkp.c: Likewise.
10255         * tree-chrec.c: Likewise.
10256         * tree-complex.c: Likewise.
10257         * tree-data-ref.c: Likewise.
10258         * tree-dfa.c: Likewise.
10259         * tree-diagnostic.c: Likewise.
10260         * tree-dump.c: Likewise.
10261         * tree-eh.c: Likewise.
10262         * tree-emutls.c: Likewise.
10263         * tree-if-conv.c: Likewise.
10264         * tree-inline.c: Likewise.
10265         * tree-into-ssa.c: Likewise.
10266         * tree-iterator.c: Likewise.
10267         * tree-loop-distribution.c: Likewise.
10268         * tree-nested.c: Likewise.
10269         * tree-nrv.c: Likewise.
10270         * tree-object-size.c: Likewise.
10271         * tree-outof-ssa.c: Likewise.
10272         * tree-parloops.c: Likewise.
10273         * tree-phinodes.c: Likewise.
10274         * tree-predcom.c: Likewise.
10275         * tree-pretty-print.c: Likewise.
10276         * tree-profile.c: Likewise.
10277         * tree-scalar-evolution.c: Likewise.
10278         * tree-sra.c: Likewise.
10279         * tree-ssa-address.c: Likewise.
10280         * tree-ssa-alias.c: Likewise.
10281         * tree-ssa-ccp.c: Likewise.
10282         * tree-ssa-coalesce.c: Likewise.
10283         * tree-ssa-copy.c: Likewise.
10284         * tree-ssa-copyrename.c: Likewise.
10285         * tree-ssa-dce.c: Likewise.
10286         * tree-ssa-dom.c: Likewise.
10287         * tree-ssa-dse.c: Likewise.
10288         * tree-ssa-forwprop.c: Likewise.
10289         * tree-ssa-ifcombine.c: Likewise.
10290         * tree-ssa-live.c: Likewise.
10291         * tree-ssa-loop-ch.c: Likewise.
10292         * tree-ssa-loop-im.c: Likewise.
10293         * tree-ssa-loop-ivcanon.c: Likewise.
10294         * tree-ssa-loop-ivopts.c: Likewise.
10295         * tree-ssa-loop-manip.c: Likewise.
10296         * tree-ssa-loop-niter.c: Likewise.
10297         * tree-ssa-loop-prefetch.c: Likewise.
10298         * tree-ssa-loop-unswitch.c: Likewise.
10299         * tree-ssa-loop.c: Likewise.
10300         * tree-ssa-math-opts.c: Likewise.
10301         * tree-ssa-operands.c: Likewise.
10302         * tree-ssa-phiopt.c: Likewise.
10303         * tree-ssa-phiprop.c: Likewise.
10304         * tree-ssa-pre.c: Likewise.
10305         * tree-ssa-propagate.c: Likewise.
10306         * tree-ssa-reassoc.c: Likewise.
10307         * tree-ssa-sccvn.c: Likewise.
10308         * tree-ssa-scopedtables.c: Likewise.
10309         * tree-ssa-sink.c: Likewise.
10310         * tree-ssa-strlen.c: Likewise.
10311         * tree-ssa-structalias.c: Likewise.
10312         * tree-ssa-tail-merge.c: Likewise.
10313         * tree-ssa-ter.c: Likewise.
10314         * tree-ssa-threadedge.c: Likewise.
10315         * tree-ssa-threadupdate.c: Likewise.
10316         * tree-ssa-uncprop.c: Likewise.
10317         * tree-ssa-uninit.c: Likewise.
10318         * tree-ssa.c: Likewise.
10319         * tree-ssanames.c: Likewise.
10320         * tree-stdarg.c: Likewise.
10321         * tree-streamer-in.c: Likewise.
10322         * tree-streamer-out.c: Likewise.
10323         * tree-streamer.c: Likewise.
10324         * tree-switch-conversion.c: Likewise.
10325         * tree-tailcall.c: Likewise.
10326         * tree-vect-data-refs.c: Likewise.
10327         * tree-vect-generic.c: Likewise.
10328         * tree-vect-loop-manip.c: Likewise.
10329         * tree-vect-loop.c: Likewise.
10330         * tree-vect-patterns.c: Likewise.
10331         * tree-vect-slp.c: Likewise.
10332         * tree-vect-stmts.c: Likewise.
10333         * tree-vectorizer.c: Likewise.
10334         * tree-vrp.c: Likewise.
10335         * tree.c: Likewise.
10336         * tsan.c: Likewise.
10337         * ubsan.c: Likewise.
10338         * valtrack.c: Likewise.
10339         * value-prof.c: Likewise.
10340         * var-tracking.c: Likewise.
10341         * varasm.c: Likewise.
10342         * varpool.c: Likewise.
10343         * vmsdbgout.c: Likewise.
10344         * vtable-verify.c: Likewise.
10345         * web.c: Likewise.
10346         * wide-int.cc: Likewise.
10347         * xcoffout.c: Likewise.
10348         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
10349         * common/common-targhooks.c: Likewise.
10350         * config/aarch64/aarch64-builtins.c: Likewise.
10351         * config/aarch64/aarch64.c: Likewise.
10352         * config/alpha/alpha.c: Likewise.
10353         * config/arc/arc.c: Likewise.
10354         * config/arm/aarch-common.c: Likewise.
10355         * config/arm/arm-builtins.c: Likewise.
10356         * config/arm/arm-c.c: Likewise.
10357         * config/arm/arm.c: Likewise.
10358         * config/avr/avr-c.c: Likewise.
10359         * config/avr/avr-log.c: Likewise.
10360         * config/avr/avr.c: Likewise.
10361         * config/bfin/bfin.c: Likewise.
10362         * config/c6x/c6x.c: Likewise.
10363         * config/cr16/cr16.c: Likewise.
10364         * config/cris/cris.c: Likewise.
10365         * config/darwin-c.c: Likewise.
10366         * config/darwin.c: Likewise.
10367         * config/default-c.c: Likewise.
10368         * config/epiphany/epiphany.c: Likewise.
10369         * config/epiphany/mode-switch-use.c: Likewise.
10370         * config/epiphany/resolve-sw-modes.c: Likewise.
10371         * config/fr30/fr30.c: Likewise.
10372         * config/frv/frv.c: Likewise.
10373         * config/ft32/ft32.c: Likewise.
10374         * config/glibc-c.c: Likewise.
10375         * config/h8300/h8300.c: Likewise.
10376         * config/i386/i386-c.c: Likewise.
10377         * config/i386/i386.c: Likewise.
10378         * config/i386/msformat-c.c: Likewise.
10379         * config/i386/winnt-cxx.c: Likewise.
10380         * config/i386/winnt-stubs.c: Likewise.
10381         * config/i386/winnt.c: Likewise.
10382         * config/ia64/ia64-c.c: Likewise.
10383         * config/ia64/ia64.c: Likewise.
10384         * config/iq2000/iq2000.c: Likewise.
10385         * config/lm32/lm32.c: Likewise.
10386         * config/m32c/m32c-pragma.c: Likewise.
10387         * config/m32c/m32c.c: Likewise.
10388         * config/m32r/m32r.c: Likewise.
10389         * config/m68k/m68k.c: Likewise.
10390         * config/mcore/mcore.c: Likewise.
10391         * config/mep/mep-pragma.c: Likewise.
10392         * config/mep/mep.c: Likewise.
10393         * config/microblaze/microblaze-c.c: Likewise.
10394         * config/microblaze/microblaze.c: Likewise.
10395         * config/mips/mips.c: Likewise.
10396         * config/mmix/mmix.c: Likewise.
10397         * config/mn10300/mn10300.c: Likewise.
10398         * config/moxie/moxie.c: Likewise.
10399         * config/msp430/msp430-c.c: Likewise.
10400         * config/msp430/msp430.c: Likewise.
10401         * config/nds32/nds32-cost.c: Likewise.
10402         * config/nds32/nds32-fp-as-gp.c: Likewise.
10403         * config/nds32/nds32-intrinsic.c: Likewise.
10404         * config/nds32/nds32-isr.c: Likewise.
10405         * config/nds32/nds32-md-auxiliary.c: Likewise.
10406         * config/nds32/nds32-memory-manipulation.c: Likewise.
10407         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10408         * config/nds32/nds32-predicates.c: Likewise.
10409         * config/nds32/nds32.c: Likewise.
10410         * config/nios2/nios2.c: Likewise.
10411         * config/nvptx/nvptx.c: Likewise.
10412         * config/pa/pa.c: Likewise.
10413         * config/pdp11/pdp11.c: Likewise.
10414         * config/rl78/rl78-c.c: Likewise.
10415         * config/rl78/rl78.c: Likewise.
10416         * config/rs6000/rs6000-c.c: Likewise.
10417         * config/rs6000/rs6000.c: Likewise.
10418         * config/rx/rx.c: Likewise.
10419         * config/s390/s390-c.c: Likewise.
10420         * config/s390/s390.c: Likewise.
10421         * config/sh/sh-c.c: Likewise.
10422         * config/sh/sh-mem.cc: Likewise.
10423         * config/sh/sh.c: Likewise.
10424         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10425         * config/sh/sh_treg_combine.cc: Likewise.
10426         * config/sol2-c.c: Likewise.
10427         * config/sol2-cxx.c: Likewise.
10428         * config/sol2-stubs.c: Likewise.
10429         * config/sol2.c: Likewise.
10430         * config/sparc/sparc-c.c: Likewise.
10431         * config/sparc/sparc.c: Likewise.
10432         * config/spu/spu-c.c: Likewise.
10433         * config/spu/spu.c: Likewise.
10434         * config/stormy16/stormy16.c: Likewise.
10435         * config/tilegx/mul-tables.c: Likewise.
10436         * config/tilegx/tilegx-c.c: Likewise.
10437         * config/tilegx/tilegx.c: Likewise.
10438         * config/tilepro/mul-tables.c: Likewise.
10439         * config/tilepro/tilepro-c.c: Likewise.
10440         * config/tilepro/tilepro.c: Likewise.
10441         * config/v850/v850-c.c: Likewise.
10442         * config/v850/v850.c: Likewise.
10443         * config/vax/vax.c: Likewise.
10444         * config/visium/visium.c: Likewise.
10445         * config/vms/vms-c.c: Likewise.
10446         * config/vms/vms.c: Likewise.
10447         * config/vxworks.c: Likewise.
10448         * config/winnt-c.c: Likewise.
10449         * config/xtensa/xtensa.c: Likewise.
10451 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
10453         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
10454         function.
10455         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
10457 2015-06-17  Richard Biener  <rguenther@suse.de>
10459         PR tree-optimization/66251
10460         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
10461         stmts for SLP strided stores.
10463         Revert
10464         2015-05-22  Richard Biener  <rguenther@suse.de>
10466         PR tree-optimization/66251
10467         * tree-vect-stmts.c (vectorizable_conversion): Properly
10468         set STMT_VINFO_VEC_STMT even for the SLP case.
10470         2015-05-26  Michael Matz  <matz@suse.de>
10472         PR middle-end/66251
10473         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
10474         STMT_VINFO_VEC_STMT, also with SLP.
10476 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
10478         PR target/56766
10479         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
10480         (*avx_addsubv4df3_1s): Ditto.
10481         (*sse3_addsubv2df3_1): Ditto.
10482         (*sse3_addsubv2df3_1s): Ditto.
10483         (*avx_addsubv8sf3_1): Ditto.
10484         (*avx_addsubv8sf3_1s): Ditto.
10485         (*sse3_addsubv4sf3_1): Ditto.
10486         (*sse3_addsubv4sf3_1s): Ditto.
10488 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
10490         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
10491         (SYSROOT_SUFFIX_SPEC): Update.
10492         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
10493         (STARTFILE_PREFIX_SPEC): Update.
10494         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
10495         (MULTILIB_REQUIRED): New.
10496         (MULTILIB_OSDIRNAMES): New.
10497         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
10498         (MULTILIB_REQUIRED): New.
10499         (MULTILIB_OSDIRNAMES): New.
10501 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
10503         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
10504         * config/aarch64/aarch64-options-extensions.def: Update "fP",
10505         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
10506         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
10507         (AARCH64_FL_PAN): New.
10508         (AARCH64_FL_LOR): New.
10509         (AARCH64_FL_RDMA): New.
10510         (AARCH64_FL_FOR_ARCH8_1): New.
10511         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
10512         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
10514 2015-06-16  Martin Liska  <mliska@suse.cz>
10516         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
10517         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
10518         guard.
10520 2015-06-16  Richard Biener  <rguenther@suse.de>
10522         * tree-vect-stmts.c (vectorizable_store): Adjust.
10523         (vectorizable_load): Likewise.
10524         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10525         Simplify.
10526         (vect_create_data_ref_ptr): Likewise.
10527         (bump_vector_ptr): Adjust.
10529 2015-06-16  Richard Biener  <rguenther@suse.de>
10531         * tree-vect-stmts.c (vectorizable_load): Properly start loads
10532         with the first element if this is grouped loads.
10534 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
10536         * config/arm/arm-protos.h (struct tune_params): Rename
10537         log_op_non_sc to log_op_non_short_circuit, and rename enum
10538         values to expand SC to SHORT_CIRCUIT.
10539         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
10540         to LOG_OP_NON_SHORT_CIRCUIT.
10541         (arm_fastmul_tune):Likewise
10542         (arm_strongarm_tune): Likewise.
10543         (arm_xscale_tune): Likewise.
10544         (arm_9e_tune): Likewise.
10545         (arm_marvell_pj4_tune): Likewise.
10546         (arm_v6t2_tune): Likewise.
10547         (arm_cortex_tune): Likewise.
10548         (arm_cortex_a8_tune): Likewise.
10549         (arm_cortex_a7_tune): Likewise.
10550         (arm_cortex_a15_tune): Likewise.
10551         (arm_cortex_a53_tune): Likewise.
10552         (arm_cortex_a57_tune): Likewise.
10553         (arm_xgene1_tune): Likewise.
10554         (arm_cortex_a5_tune): Likewise.
10555         (arm_cortex_a9_tune): Likewise.
10556         (arm_cortex_a12_tune): Likewise.
10557         (arm_v7m_tune): Likewise.
10558         (arm_cortex_m7_tune): Likewise.
10559         (arm_v6m_tune): Likewise.
10560         (arm_fa726te_tune): Likewise.
10562 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
10564         * altivec.md: Delete UNSPEC_VMLADDUHM.
10565         (mulv4si3_p8): New pattern.
10566         (mulv4si3): Use it for POWER8.
10567         (mulv8hi3): Use vmladduhm with zero addend.
10568         (altivec_vmladduhm): Descriptive RTL.
10570 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
10572         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
10573         to use neon_move instead of mov_imm.
10574         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
10575         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
10577         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
10578         aarch64_float_const_zero_rtx_p check before TFmode check.
10579         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
10580         an fp zero.
10581         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
10582         code and attributes to match.  Change condition from register_operand
10583         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
10584         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
10585         to store2.
10587 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
10589         PR debug/66535
10590         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
10591         there is no parent.
10593 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
10595         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
10596         HOST_WIDE_INT parameter.
10598 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
10600         PR ipa/66181
10601         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
10602         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
10603         TYPE_NO_FORCE_BLK.
10604         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10606 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
10608         * rtl.h (classify_insn): Declare.
10609         * emit-rtl.c (classify_insn): Move to...
10610         * rtl.c: ...here and add generator support.
10611         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
10612         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
10613         * genemit.c (gen_emit_seq): New function.
10614         (gen_expand, gen_split): Use it.
10616 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
10618         * tree.c (make_vector_stat): Fix comment to state that the
10619         function returns a VECTOR_CST.
10621 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
10623         * gensupport.h (add_implicit_parallel): Declare.
10624         * genrecog.c (add_implicit_parallel): Move to...
10625         * gensupport.c (add_implicit_parallel): ...here.
10626         (process_one_cond_exec): Use it.
10627         * genemit.c (gen_insn): Likewise.
10629 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
10631         PR bootstrap/66448
10632         * passes.c (rest_of_decl_compilation): Do not register globals for
10633         early debug if they are declared in built-ins.
10635 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
10637         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
10639 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10641         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
10642         manually swapping.
10643         (noce_try_cmove_arith): Likewise.
10644         (noce_get_alt_condition): Likewise.
10646 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10648         * common/config/i386/i386-common.c
10649         (OPTION_MASK_ISA_MWAITX_SET): New.
10650         (ix86_handle_option): Handle mwaitx.
10651         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
10652         (x86_64-*-*): Likewise.
10653         * config/i386/mwaitxintrin.h: New header.
10654         * config/i386/cpuid.h (bit_MWAITX):  Define.
10655         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10656         MWAITX support.
10657         * config/i386/i386.opt (mwaitx): New.
10658         * config/i386/i386-builtin-types.def
10659         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
10660         * config/i386/i386-c.c: Define __MWAITX__ if needed.
10661         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
10662         (PTA_MWAITX): New.
10663         (ix86_option_override_internal): Handle new option.
10664         (processor_alias_table): Added PTA_MWAITX.
10665         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
10666         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
10667         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
10668         IX86_BUILTIN_MONITORX  built-ins.
10669         * config/i386/i386.h (TARGET_MWAITX): New.
10670         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
10671         UNSPEC_MONITORX.
10672         (mwaitx):  New pattern.
10673         (monitorx_<mode>): New pattern.
10674         * config/i386/x86intrin.h: Include mwaitxintrin.h.
10675         * doc/extend.texi: Document monitorx and mwaitx builtins.
10676         * doc/invoke.texi: Document -mmwaitx option.
10678 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
10680         * emit-rtl.c (need_atomic_barrier_p): Mask model with
10681         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
10683 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10685         * dbxout.c (xcoff_debug_hooks): Provide a function for
10686         register_main_translation_unit hook.
10688 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10690         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
10691         variants cases from switch.
10692         (rs6000_post_atomic_barrier): Same.
10693         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
10694         (rs6000_expand_atomic_exchange): Same.
10695         (rs6000_expand_atomic_op): Same.
10696         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
10697         SYNC variants cases from switch.
10698         (atomic_load): Same.
10699         (atomic_store): Same.
10701 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
10703         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
10704         CONST_INT for goto.
10706 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
10708         PR bootstrap/66448
10709         * dwarf2out.c (check_die): Check for common duplicate attributes.
10710         (add_location_or_const_value_attribute): Do not add duplicate
10711         attributes.
10712         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
10713         time around.
10714         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
10715         (gen_type_die_with_usage): Call check_die.
10716         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
10718 2015-06-11  Jason Merrill  <jason@redhat.com>
10720         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
10721         dies.
10723 2015-06-11  Marek Polacek  <polacek@redhat.com>
10725         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
10727 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10729         PR bootstrap/66252
10730         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
10731         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
10732         (*addx_extend_sp32): Fix pasto.
10733         (*subx_extend): Rename into...
10734         (*subx_extend_sp32): ...this.
10735         (*adddi3_extend_sp32): Add earlyclobber.
10736         (*subdi3_insn_sp32): Likewise.
10737         (*subdi3_extend_sp32): Likewise.
10738         (*and_not_di_sp32): Likewise.
10739         (*or_not_di_sp32): Likewise.
10740         (*xor_not_di_sp32): Likewise.
10741         (*negdi2_sp32): Likewise.
10742         (*one_cmpldi2_sp32): Likewise.
10744 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
10746         * debug.h (struct gcc_debug_hooks): Add a
10747         register_main_translation_unit hook.
10748         * debug.c (do_nothing_debug_hooks): Provide a function for this
10749         new hook.
10750         * dbxout.c (dbx_debug_hooks): Likewise.
10751         * sdbout.c (sdb_debug_hooks): Likewise.
10752         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10753         * dwarf2out.c (main_translation_unit): New global variable.
10754         (dwarf2out_register_main_translation_unit): New function
10755         implementing the new hook.
10756         (dwarf2_debug_hooks): Assign
10757         dwarf2out_register_main_translation_unit to this new hook.
10758         (dwarf2out_init): Associate any main translation unit to
10759         comp_unit_die ().
10761 2015-06-11  Marek Polacek  <polacek@redhat.com>
10763         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
10765 2015-06-11  Marek Polacek  <polacek@redhat.com>
10767         * match.pd: Use single_use throughout.
10769 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10771         * config/arm/arm.c (arm_option_params_internal): When optimising
10772         for speed set max_insns_skipped when arm_restrict_it.
10774 2015-06-11  Christian Bruel  <christian.bruel@st.com>
10776         PR target/52144
10777         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
10778          macros in ...
10779         (arm_cpu_builtins): New function.
10780         (arm_pragma_target_parse): Call arm_cpu_builtins.
10781         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
10782         (arm_register_target_pragmas): Likewise.
10783         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
10784          Call arm_register_target_pragmas.
10785         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
10786         (arm_pragma_target_parse): Likewise.
10788 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10790         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
10791         of the second operand.
10793 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
10795         PR target/66473
10796         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
10797         to prepare mask operand for AVX512 modes.
10799 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
10801         PR target/66474
10802         * doc/md.texi (Machine Constraints): Document that on the PowerPC
10803         if you use a constraint that targets a VSX register, you must use
10804         %x<n> in the template.
10806 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
10808         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
10809         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
10810         (define_insn "trap"): New definition.
10812 2015-06-10  Richard Biener  <rguenther@suse.de>
10814         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
10815         out from ...
10816         (vect_supported_load_permutation_p): ... here.  Handle
10817         supportable permutations in reductions.
10818         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
10819         for vectorizing strided group loads.
10821 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
10823         PR target/66470
10824         * config/i386/i386.c (ix86_split_long_move): For collisions
10825         involving direct tls segment refs, move the UNSPEC_TP possibly
10826         wrapped in ZERO_EXTEND out of the address for lea, to each of
10827         the memory loads.
10829 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10831         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
10832         dmb sy. Adjust tabs.
10834 2015-06-10  Tom de Vries  <tom@codesourcery.com>
10836         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
10838 2015-06-10  Martin Liska  <mliska@suse.cz>
10840         PR bootstrap/66471
10841         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
10842         all enum values in mem_alloc_origin.
10843         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
10844         name.
10845         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
10846         * bitmap.c (bitmap_register): Likewise.
10847         (dump_bitmap_statistics): Likewise.
10848         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
10849         (ggc_record_overhead): Likewise.
10850         * hash-map.h: Likewise.
10851         * hash-set.h: Likewise.
10852         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
10853         * hash-table.h: Likewise.
10854         * vec.c (vec_prefix::register_overhead): Likewise.
10855         (vec_prefix::release_overhead): Likewise.
10856         (dump_vec_loc_statistics): Likewise.
10858 2015-06-09  Christian Bruel  <christian.bruel@st.com>
10860         PR target/52144
10861         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
10862         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
10863         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
10864         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
10865         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
10866         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
10867         (arm_valid_target_attribute_p): Likewise.
10868         (arm_set_current_function, arm_can_inline_p): Likewise.
10869         (arm_valid_target_attribute_rec): Likewise.
10870         (arm_previous_fndecl): New variable.
10871         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10872         (TARGET_CAN_INLINE_P): Define.
10873         (arm_asm_trampoline_template): Emit mode.
10874         (arm_file_start): Don't set unified syntax.
10875         (arm_declare_function_name): Set unified syntax and mode.
10876         (arm_option_override): Init target_option_default_node.
10877         and target_option_current_node.
10878         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
10879         (*call_symbol): Likewise.
10880         * doc/extend.texi: Document ARM/Thumb target attribute.
10881         * doc/invoke.texi: Likewise.
10883 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10885         Revert:
10886         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10887         PR rtl-optimization/64164
10888         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10889         * tree-ssa-copyrename.c: Removed.
10890         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10891         -ftree-coalesce-vars.
10892         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10893         * common.opt (ftree-copyrename): Ignore.
10894         (ftree-coalesce-inlined-vars): Likewise.
10895         * doc/invoke.texi: Remove the ignored options above.
10896         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10897         * tree-ssa-coalesce.h: ... here.
10898         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10899         headers required by it.
10900         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10901         across variables when flag_tree_coalesce_vars.  Check register
10902         use and promoted modes to allow coalescing.  Moved to
10903         tree-ssa-coalesce.c.
10904         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10905         with its member functions to tree-ssa-coalesce.c.
10906         (var_map_base_init): Likewise.  Renamed to
10907         compute_samebase_partition_bases.
10908         (partition_view_normal): Drop want_bases parameter.
10909         (partition_view_bitmap): Likewise.
10910         * tree-ssa-live.h: Adjust declarations.
10911         * tree-ssa-coalesce.c: Include explow.h.
10912         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10913         default defs at the entry point.
10914         (dump_part_var_map): New.
10915         (compute_optimized_partition_bases): New, called by...
10916         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10917         of compute_samebase_partition_bases.  Adjust.
10918         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10919         * cfgexpand.c (leader_merge): New.
10920         (get_rtl_for_parm_ssa_default_def): New.
10921         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10922         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10923         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10924         redundant MEM attr setting.
10925         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10926         from...
10927         (expand_one_stack_var): ... this.  New wrapper to check and
10928         skip already expanded SSA partitions.
10929         (record_alignment_for_reg_var): New, factored out of...
10930         (expand_one_var): ... this.
10931         (expand_one_ssa_partition): New.
10932         (adjust_one_expanded_partition_var): New.
10933         (expand_one_register_var): Check and skip already expanded SSA
10934         partitions.
10935         (expand_used_vars): Don't create DECLs for anonymous SSA
10936         names.  Expand all SSA partitions, then adjust all SSA names.
10937         (pass::execute): Replace the loops that set
10938         SA.partition_to_pseudo from partition leaders and cleared
10939         DECL_RTL for multi-location variables, and that which used to
10940         rename vars and set attrs, with one that clears DECL_RTL and
10941         checks that PARMs and RESULTs default_defs match DECL_RTL.
10942         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10943         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10944         * explow.c (promote_ssa_mode): New.
10945         * explow.h (promote_ssa_mode): Declare.
10946         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10947         * function.c: Include cfgexpand.h.
10948         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10949         (use_register_for_parm_decl): Wrapper for the above to
10950         special-case the result_ptr.
10951         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10952         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10953         multiple locations.
10954         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10955         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10956         (assign_parm_setup_block): Prefer SSA-assigned location.
10957         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10958         if stack_parm is NULL.
10959         (assign_parm_setup_stack): Prefer SSA-assigned location.
10960         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10961         rtl before testing for pointer bounds.  Special-case result_ptr.
10962         (expand_function_start): Maybe reset DECL_RTL of result.
10963         Prefer SSA-assigned location for result and static chain.
10964         Factor out DECL_RESULT and SET_DECL_RTL.
10965         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10966         anonymous SSA names.  Use promote_ssa_mode.
10967         (get_temp_reg): Likewise.
10968         (remove_ssa_form): Adjust.
10969         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10970         and get its reg_usage for reg invalidation.
10971         (compute_bb_dataflow): Pass it insn.
10972         (emit_notes_in_bb): Likewise.
10973         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10974         fail assert on conversion between unsigned types.
10976 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10978         PR tree-optimization/65460
10979         * omp-low.c (expand_omp_target): Set parallelized_function on
10980         cgraph_node for child_fn.
10982 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10984         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
10985         parallelized_function before add_new_function.
10987 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
10989         * gcc-plugin.h: Move decls to plugin.h and include it.
10990         * plugin.h: Relocate decls from gcc-plugin.h
10991         * ggc-page.c: Include required header files.
10992         * passes.c: Likewise.
10993         * cgraphunit.c: Likewise.
10995 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10997         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
10999 2015-06-09  Jason Merrill  <jason@redhat.com>
11001         PR bootstrap/66448
11002         * toplev.c (check_global_declaration): Don't warn about a clone.
11004 2015-06-09  Marek Polacek  <polacek@redhat.com>
11006         PR tree-optimization/66299
11007         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
11008         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
11009         patterns.
11011 2015-06-09  Richard Biener  <rguenther@suse.de>
11013         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
11014         (vect_analyze_slp_instance): Instead do not falsely drop
11015         load permutations.
11017 2015-06-09  Richard Biener  <rguenther@suse.de>
11019         PR middle-end/66423
11020         * match.pd: Handle A % (unsigned)(1 << B).
11022 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
11024         * varasm.c (output_object_block_htab): Remove.
11025         (output_object_block_compare): New.
11026         (output_object_blocks): Sort named object_blocks before outputting
11027         them.
11029 2015-06-09  Richard Biener  <rguenther@suse.de>
11031         PR tree-optimization/66419
11032         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
11033         consider GROUP_GAP when detecting a perfect subchain.
11035 2015-06-09  Nick Clifton  <nickc@redhat.com>
11037         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
11038         place read only data in the .frodata section.
11040 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
11042         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
11043         (atomic_store<mode>): Likewise.
11045 2015-06-09  Richard Biener  <rguenther@suse.de>
11047         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
11049 2015-06-09  Richard Biener  <rguenther@suse.de>
11051         PR middle-end/66413
11052         * tree-inline.c (insert_init_debug_bind): Unshare value.
11054 2015-06-09  Richard Biener  <rguenther@suse.de>
11056         PR tree-optimization/66396
11057         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
11058         Rename virtual operands.
11060 2015-06-09  Tom de Vries  <tom@codesourcery.com>
11062         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
11063         always return false.
11065 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
11067         PR rtl-optimization/64164
11068         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11069         * tree-ssa-copyrename.c: Removed.
11070         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11071         -ftree-coalesce-vars.
11072         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11073         * common.opt (ftree-copyrename): Ignore.
11074         (ftree-coalesce-inlined-vars): Likewise.
11075         * doc/invoke.texi: Remove the ignored options above.
11076         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11077         * tree-ssa-coalesce.h: ... here.
11078         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11079         headers required by it.
11080         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11081         across variables when flag_tree_coalesce_vars.  Check register
11082         use and promoted modes to allow coalescing.  Moved to
11083         tree-ssa-coalesce.c.
11084         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11085         with its member functions to tree-ssa-coalesce.c.
11086         (var_map_base_init): Likewise.  Renamed to
11087         compute_samebase_partition_bases.
11088         (partition_view_normal): Drop want_bases parameter.
11089         (partition_view_bitmap): Likewise.
11090         * tree-ssa-live.h: Adjust declarations.
11091         * tree-ssa-coalesce.c: Include explow.h.
11092         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11093         default defs at the entry point.
11094         (dump_part_var_map): New.
11095         (compute_optimized_partition_bases): New, called by...
11096         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11097         of compute_samebase_partition_bases.  Adjust.
11098         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11099         * cfgexpand.c (leader_merge): New.
11100         (get_rtl_for_parm_ssa_default_def): New.
11101         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11102         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11103         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11104         redundant MEM attr setting.
11105         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11106         from...
11107         (expand_one_stack_var): ... this.  New wrapper to check and
11108         skip already expanded SSA partitions.
11109         (record_alignment_for_reg_var): New, factored out of...
11110         (expand_one_var): ... this.
11111         (expand_one_ssa_partition): New.
11112         (adjust_one_expanded_partition_var): New.
11113         (expand_one_register_var): Check and skip already expanded SSA
11114         partitions.
11115         (expand_used_vars): Don't create DECLs for anonymous SSA
11116         names.  Expand all SSA partitions, then adjust all SSA names.
11117         (pass::execute): Replace the loops that set
11118         SA.partition_to_pseudo from partition leaders and cleared
11119         DECL_RTL for multi-location variables, and that which used to
11120         rename vars and set attrs, with one that clears DECL_RTL and
11121         checks that PARMs and RESULTs default_defs match DECL_RTL.
11122         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11123         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11124         * explow.c (promote_ssa_mode): New.
11125         * explow.h (promote_ssa_mode): Declare.
11126         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11127         * function.c: Include cfgexpand.h.
11128         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11129         (use_register_for_parm_decl): Wrapper for the above to
11130         special-case the result_ptr.
11131         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11132         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11133         multiple locations.
11134         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11135         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11136         (assign_parm_setup_block): Prefer SSA-assigned location.
11137         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11138         if stack_parm is NULL.
11139         (assign_parm_setup_stack): Prefer SSA-assigned location.
11140         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11141         rtl before testing for pointer bounds.  Special-case result_ptr.
11142         (expand_function_start): Maybe reset DECL_RTL of result.
11143         Prefer SSA-assigned location for result and static chain.
11144         Factor out DECL_RESULT and SET_DECL_RTL.
11145         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11146         anonymous SSA names.  Use promote_ssa_mode.
11147         (get_temp_reg): Likewise.
11148         (remove_ssa_form): Adjust.
11149         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11150         and get its reg_usage for reg invalidation.
11151         (compute_bb_dataflow): Pass it insn.
11152         (emit_notes_in_bb): Likewise.
11153         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11154         fail assert on conversion between unsigned types.
11156 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
11158         PR debug/58315
11159         * tree-inline.c (reset_debug_binding): New.
11160         (reset_debug_bindings): Likewise.
11161         (expand_call_inline): Call it.
11163 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11165         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
11166         TYPE_STRING_FLAG.
11168 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11170         * lto-streamer-out.c (lto_output_location): Stream
11171         reserved locations correctly.
11172         * lto-streamer-in.c (lto_output_location): Likewise.
11174 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
11176         * coretypes.h: Include hash-table.h and hash-set.h for host files.
11177         * ggc.h: Don't include statistics.h>
11178         * hash-map.h: Remove all includes.
11179         * hash-set.h: Likewise.
11180         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
11181         the include list. Remove <new>.
11182         * inchash.h: Remove all includes.
11183         * mem-stats.h: Likewise.
11184         * vec.h: No special processing for generators or ggc.
11185         * alias.c : Adjust include files.
11186         * alloc-pool.c : Likewise.
11187         * alloc-pool.h : Likewise.
11188         * asan.c : Likewise.
11189         * attribs.c : Likewise.
11190         * auto-inc-dec.c : Likewise.
11191         * auto-profile.c : Likewise.
11192         * bb-reorder.c : Likewise.
11193         * bitmap.c : Likewise.
11194         * bitmap.h : Likewise.
11195         * bt-load.c : Likewise.
11196         * builtins.c : Likewise.
11197         * caller-save.c : Likewise.
11198         * calls.c : Likewise.
11199         * ccmp.c : Likewise.
11200         * cfg.c : Likewise.
11201         * cfganal.c : Likewise.
11202         * cfgbuild.c : Likewise.
11203         * cfgcleanup.c : Likewise.
11204         * cfgexpand.c : Likewise.
11205         * cfghooks.c : Likewise.
11206         * cfgloop.c : Likewise.
11207         * cfgloop.h : Likewise.
11208         * cfgloopanal.c : Likewise.
11209         * cfgloopmanip.c : Likewise.
11210         * cfgrtl.c : Likewise.
11211         * cgraph.c : Likewise.
11212         * cgraphbuild.c : Likewise.
11213         * cgraphclones.c : Likewise.
11214         * cgraphunit.c : Likewise.
11215         * cilk-common.c : Likewise.
11216         * combine-stack-adj.c : Likewise.
11217         * combine.c : Likewise.
11218         * compare-elim.c : Likewise.
11219         * context.c : Likewise.
11220         * convert.c : Likewise.
11221         * coverage.c : Likewise.
11222         * cppbuiltin.c : Likewise.
11223         * cprop.c : Likewise.
11224         * cse.c : Likewise.
11225         * cselib.c : Likewise.
11226         * data-streamer-in.c : Likewise.
11227         * data-streamer-out.c : Likewise.
11228         * data-streamer.c : Likewise.
11229         * data-streamer.h : Likewise.
11230         * dbxout.c : Likewise.
11231         * dce.c : Likewise.
11232         * ddg.c : Likewise.
11233         * debug.c : Likewise.
11234         * df-core.c : Likewise.
11235         * df-problems.c : Likewise.
11236         * df-scan.c : Likewise.
11237         * df.h : Likewise.
11238         * dfp.c : Likewise.
11239         * dojump.c : Likewise.
11240         * dominance.c : Likewise.
11241         * domwalk.c : Likewise.
11242         * double-int.c : Likewise.
11243         * dse.c : Likewise.
11244         * dumpfile.c : Likewise.
11245         * dwarf2asm.c : Likewise.
11246         * dwarf2cfi.c : Likewise.
11247         * dwarf2out.c : Likewise.
11248         * emit-rtl.c : Likewise.
11249         * et-forest.c : Likewise.
11250         * except.c : Likewise.
11251         * except.h : Likewise.
11252         * explow.c : Likewise.
11253         * expmed.c : Likewise.
11254         * expr.c : Likewise.
11255         * final.c : Likewise.
11256         * fixed-value.c : Likewise.
11257         * fold-const.c : Likewise.
11258         * function.c : Likewise.
11259         * fwprop.c : Likewise.
11260         * gcc-plugin.h : Likewise.
11261         * gcc.c : Likewise.
11262         * gcse-common.c : Likewise.
11263         * gcse.c : Likewise.
11264         * genattrtab.c : Likewise.
11265         * genautomata.c : Likewise.
11266         * genconditions.c : Likewise.
11267         * genemit.c : Likewise.
11268         * generic-match-head.c : Likewise.
11269         * genextract.c : Likewise.
11270         * gengtype-state.c : Likewise.
11271         * gengtype.c : Likewise.
11272         * genhooks.c : Likewise.
11273         * genmatch.c : Likewise.
11274         * genmodes.c : Likewise.
11275         * genrecog.c : Likewise.
11276         * gensupport.c : Likewise.
11277         * ggc-common.c : Likewise.
11278         * ggc-internal.h : Likewise.
11279         * ggc-none.c : Likewise.
11280         * ggc-page.c : Likewise.
11281         * gimple-builder.c : Likewise.
11282         * gimple-expr.c : Likewise.
11283         * gimple-fold.c : Likewise.
11284         * gimple-iterator.c : Likewise.
11285         * gimple-low.c : Likewise.
11286         * gimple-match-head.c : Likewise.
11287         * gimple-pretty-print.c : Likewise.
11288         * gimple-ssa-isolate-paths.c : Likewise.
11289         * gimple-ssa-strength-reduction.c : Likewise.
11290         * gimple-ssa.h : Likewise.
11291         * gimple-streamer-in.c : Likewise.
11292         * gimple-streamer-out.c : Likewise.
11293         * gimple-streamer.h : Likewise.
11294         * gimple-walk.c : Likewise.
11295         * gimple.c : Likewise.
11296         * gimplify-me.c : Likewise.
11297         * gimplify.c : Likewise.
11298         * godump.c : Likewise.
11299         * graph.c : Likewise.
11300         * graphds.c : Likewise.
11301         * graphite-blocking.c : Likewise.
11302         * graphite-dependences.c : Likewise.
11303         * graphite-interchange.c : Likewise.
11304         * graphite-isl-ast-to-gimple.c : Likewise.
11305         * graphite-optimize-isl.c : Likewise.
11306         * graphite-poly.c : Likewise.
11307         * graphite-scop-detection.c : Likewise.
11308         * graphite-sese-to-poly.c : Likewise.
11309         * graphite.c : Likewise.
11310         * haifa-sched.c : Likewise.
11311         * hard-reg-set.h : Likewise.
11312         * hw-doloop.c : Likewise.
11313         * ifcvt.c : Likewise.
11314         * inchash.c : Likewise.
11315         * incpath.c : Likewise.
11316         * init-regs.c : Likewise.
11317         * input.c : Likewise.
11318         * internal-fn.c : Likewise.
11319         * ipa-chkp.c : Likewise.
11320         * ipa-comdats.c : Likewise.
11321         * ipa-cp.c : Likewise.
11322         * ipa-devirt.c : Likewise.
11323         * ipa-icf-gimple.c : Likewise.
11324         * ipa-icf.c : Likewise.
11325         * ipa-inline-analysis.c : Likewise.
11326         * ipa-inline-transform.c : Likewise.
11327         * ipa-inline.c : Likewise.
11328         * ipa-polymorphic-call.c : Likewise.
11329         * ipa-profile.c : Likewise.
11330         * ipa-prop.c : Likewise.
11331         * ipa-pure-const.c : Likewise.
11332         * ipa-ref.c : Likewise.
11333         * ipa-reference.c : Likewise.
11334         * ipa-split.c : Likewise.
11335         * ipa-utils.c : Likewise.
11336         * ipa-visibility.c : Likewise.
11337         * ipa.c : Likewise.
11338         * ira-build.c : Likewise.
11339         * ira-color.c : Likewise.
11340         * ira-conflicts.c : Likewise.
11341         * ira-costs.c : Likewise.
11342         * ira-emit.c : Likewise.
11343         * ira-lives.c : Likewise.
11344         * ira.c : Likewise.
11345         * jump.c : Likewise.
11346         * langhooks.c : Likewise.
11347         * lcm.c : Likewise.
11348         * libfuncs.h : Likewise.
11349         * lists.c : Likewise.
11350         * loop-doloop.c : Likewise.
11351         * loop-init.c : Likewise.
11352         * loop-invariant.c : Likewise.
11353         * loop-iv.c : Likewise.
11354         * loop-unroll.c : Likewise.
11355         * lower-subreg.c : Likewise.
11356         * lra-assigns.c : Likewise.
11357         * lra-coalesce.c : Likewise.
11358         * lra-constraints.c : Likewise.
11359         * lra-eliminations.c : Likewise.
11360         * lra-lives.c : Likewise.
11361         * lra-remat.c : Likewise.
11362         * lra-spills.c : Likewise.
11363         * lra.c : Likewise.
11364         * lto-cgraph.c : Likewise.
11365         * lto-compress.c : Likewise.
11366         * lto-opts.c : Likewise.
11367         * lto-section-in.c : Likewise.
11368         * lto-section-out.c : Likewise.
11369         * lto-streamer-in.c : Likewise.
11370         * lto-streamer-out.c : Likewise.
11371         * lto-streamer.c : Likewise.
11372         * lto-streamer.h : Likewise.
11373         * mcf.c : Likewise.
11374         * mode-switching.c : Likewise.
11375         * modulo-sched.c : Likewise.
11376         * omega.c : Likewise.
11377         * omp-low.c : Likewise.
11378         * optabs.c : Likewise.
11379         * opts-global.c : Likewise.
11380         * opts.h : Likewise.
11381         * passes.c : Likewise.
11382         * plugin.c : Likewise.
11383         * postreload-gcse.c : Likewise.
11384         * postreload.c : Likewise.
11385         * predict.c : Likewise.
11386         * print-rtl.c : Likewise.
11387         * print-tree.c : Likewise.
11388         * profile.c : Likewise.
11389         * read-md.c : Likewise.
11390         * read-md.h : Likewise.
11391         * read-rtl.c : Likewise.
11392         * real.c : Likewise.
11393         * realmpfr.c : Likewise.
11394         * recog.c : Likewise.
11395         * ree.c : Likewise.
11396         * reg-stack.c : Likewise.
11397         * regcprop.c : Likewise.
11398         * reginfo.c : Likewise.
11399         * regrename.c : Likewise.
11400         * regstat.c : Likewise.
11401         * reload.c : Likewise.
11402         * reload1.c : Likewise.
11403         * reorg.c : Likewise.
11404         * resource.c : Likewise.
11405         * rtl-chkp.c : Likewise.
11406         * rtl.c : Likewise.
11407         * rtl.h : Likewise.
11408         * rtlanal.c : Likewise.
11409         * rtlhash.c : Likewise.
11410         * rtlhash.h : Likewise.
11411         * rtlhooks.c : Likewise.
11412         * sanopt.c : Likewise.
11413         * sched-deps.c : Likewise.
11414         * sched-ebb.c : Likewise.
11415         * sched-rgn.c : Likewise.
11416         * sched-vis.c : Likewise.
11417         * sdbout.c : Likewise.
11418         * sel-sched-dump.c : Likewise.
11419         * sel-sched-ir.c : Likewise.
11420         * sel-sched-ir.h : Likewise.
11421         * sel-sched.c : Likewise.
11422         * sese.c : Likewise.
11423         * shrink-wrap.c : Likewise.
11424         * shrink-wrap.h : Likewise.
11425         * simplify-rtx.c : Likewise.
11426         * stack-ptr-mod.c : Likewise.
11427         * statistics.c : Likewise.
11428         * stmt.c : Likewise.
11429         * stor-layout.c : Likewise.
11430         * store-motion.c : Likewise.
11431         * stringpool.c : Likewise.
11432         * symtab.c : Likewise.
11433         * target-globals.c : Likewise.
11434         * targhooks.c : Likewise.
11435         * tlink.c : Likewise.
11436         * toplev.c : Likewise.
11437         * tracer.c : Likewise.
11438         * trans-mem.c : Likewise.
11439         * tree-affine.c : Likewise.
11440         * tree-affine.h : Likewise.
11441         * tree-browser.c : Likewise.
11442         * tree-call-cdce.c : Likewise.
11443         * tree-cfg.c : Likewise.
11444         * tree-cfgcleanup.c : Likewise.
11445         * tree-chkp-opt.c : Likewise.
11446         * tree-chkp.c : Likewise.
11447         * tree-chrec.c : Likewise.
11448         * tree-complex.c : Likewise.
11449         * tree-data-ref.c : Likewise.
11450         * tree-dfa.c : Likewise.
11451         * tree-diagnostic.c : Likewise.
11452         * tree-dump.c : Likewise.
11453         * tree-eh.c : Likewise.
11454         * tree-eh.h : Likewise.
11455         * tree-emutls.c : Likewise.
11456         * tree-hasher.h : Likewise.
11457         * tree-if-conv.c : Likewise.
11458         * tree-inline.c : Likewise.
11459         * tree-inline.h : Likewise.
11460         * tree-into-ssa.c : Likewise.
11461         * tree-iterator.c : Likewise.
11462         * tree-loop-distribution.c : Likewise.
11463         * tree-nested.c : Likewise.
11464         * tree-nrv.c : Likewise.
11465         * tree-object-size.c : Likewise.
11466         * tree-outof-ssa.c : Likewise.
11467         * tree-parloops.c : Likewise.
11468         * tree-phinodes.c : Likewise.
11469         * tree-predcom.c : Likewise.
11470         * tree-pretty-print.c : Likewise.
11471         * tree-profile.c : Likewise.
11472         * tree-scalar-evolution.c : Likewise.
11473         * tree-sra.c : Likewise.
11474         * tree-ssa-address.c : Likewise.
11475         * tree-ssa-alias.c : Likewise.
11476         * tree-ssa-ccp.c : Likewise.
11477         * tree-ssa-coalesce.c : Likewise.
11478         * tree-ssa-copy.c : Likewise.
11479         * tree-ssa-copyrename.c : Likewise.
11480         * tree-ssa-dce.c : Likewise.
11481         * tree-ssa-dom.c : Likewise.
11482         * tree-ssa-dse.c : Likewise.
11483         * tree-ssa-forwprop.c : Likewise.
11484         * tree-ssa-ifcombine.c : Likewise.
11485         * tree-ssa-live.c : Likewise.
11486         * tree-ssa-loop-ch.c : Likewise.
11487         * tree-ssa-loop-im.c : Likewise.
11488         * tree-ssa-loop-ivcanon.c : Likewise.
11489         * tree-ssa-loop-ivopts.c : Likewise.
11490         * tree-ssa-loop-manip.c : Likewise.
11491         * tree-ssa-loop-niter.c : Likewise.
11492         * tree-ssa-loop-prefetch.c : Likewise.
11493         * tree-ssa-loop-unswitch.c : Likewise.
11494         * tree-ssa-loop.c : Likewise.
11495         * tree-ssa-math-opts.c : Likewise.
11496         * tree-ssa-operands.c : Likewise.
11497         * tree-ssa-phiopt.c : Likewise.
11498         * tree-ssa-phiprop.c : Likewise.
11499         * tree-ssa-pre.c : Likewise.
11500         * tree-ssa-propagate.c : Likewise.
11501         * tree-ssa-reassoc.c : Likewise.
11502         * tree-ssa-sccvn.c : Likewise.
11503         * tree-ssa-scopedtables.c : Likewise.
11504         * tree-ssa-sink.c : Likewise.
11505         * tree-ssa-strlen.c : Likewise.
11506         * tree-ssa-structalias.c : Likewise.
11507         * tree-ssa-tail-merge.c : Likewise.
11508         * tree-ssa-ter.c : Likewise.
11509         * tree-ssa-threadedge.c : Likewise.
11510         * tree-ssa-threadupdate.c : Likewise.
11511         * tree-ssa-uncprop.c : Likewise.
11512         * tree-ssa-uninit.c : Likewise.
11513         * tree-ssa.c : Likewise.
11514         * tree-ssanames.c : Likewise.
11515         * tree-stdarg.c : Likewise.
11516         * tree-streamer-in.c : Likewise.
11517         * tree-streamer-out.c : Likewise.
11518         * tree-streamer.c : Likewise.
11519         * tree-streamer.h : Likewise.
11520         * tree-switch-conversion.c : Likewise.
11521         * tree-tailcall.c : Likewise.
11522         * tree-vect-data-refs.c : Likewise.
11523         * tree-vect-generic.c : Likewise.
11524         * tree-vect-loop-manip.c : Likewise.
11525         * tree-vect-loop.c : Likewise.
11526         * tree-vect-patterns.c : Likewise.
11527         * tree-vect-slp.c : Likewise.
11528         * tree-vect-stmts.c : Likewise.
11529         * tree-vectorizer.c : Likewise.
11530         * tree-vectorizer.h : Likewise.
11531         * tree-vrp.c : Likewise.
11532         * tree.c : Likewise.
11533         * tsan.c : Likewise.
11534         * ubsan.c : Likewise.
11535         * valtrack.c : Likewise.
11536         * valtrack.h : Likewise.
11537         * value-prof.c : Likewise.
11538         * var-tracking.c : Likewise.
11539         * varasm.c : Likewise.
11540         * varpool.c : Likewise.
11541         * vec.c: Likewise.
11542         * vmsdbgout.c : Likewise.
11543         * vtable-verify.c : Likewise.
11544         * vtable-verify.h : Likewise.
11545         * web.c : Likewise.
11546         * wide-int.cc : Likewise.
11547         * xcoffout.c : Likewise.
11548         * config/aarch64/aarch64-builtins.c : Likewise.
11549         * config/aarch64/aarch64.c : Likewise.
11550         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
11551         * config/alpha/alpha.c : Likewise.
11552         * config/arc/arc.c : Likewise.
11553         * config/arm/aarch-common.c : Likewise.
11554         * config/arm/arm-builtins.c : Likewise.
11555         * config/arm/arm-c.c : Likewise.
11556         * config/arm/arm.c : Likewise.
11557         * config/avr/avr-c.c : Likewise.
11558         * config/avr/avr-log.c : Likewise.
11559         * config/avr/avr.c : Likewise.
11560         * config/bfin/bfin.c : Likewise.
11561         * config/c6x/c6x.c : Likewise.
11562         * config/cr16/cr16.c : Likewise.
11563         * config/cris/cris.c : Likewise.
11564         * config/darwin-c.c : Likewise.
11565         * config/darwin.c : Likewise.
11566         * config/default-c.c : Likewise.
11567         * config/epiphany/epiphany.c : Likewise.
11568         * config/epiphany/mode-switch-use.c : Likewise.
11569         * config/epiphany/resolve-sw-modes.c : Likewise.
11570         * config/fr30/fr30.c : Likewise.
11571         * config/frv/frv.c : Likewise.
11572         * config/ft32/ft32.c : Likewise.
11573         * config/glibc-c.c : Likewise.
11574         * config/h8300/h8300.c : Likewise.
11575         * config/i386/i386-c.c : Likewise.
11576         * config/i386/i386.c : Likewise.
11577         * config/i386/msformat-c.c : Likewise.
11578         * config/i386/winnt-cxx.c : Likewise.
11579         * config/i386/winnt-stubs.c : Likewise.
11580         * config/i386/winnt.c : Likewise.
11581         * config/ia64/ia64-c.c : Likewise.
11582         * config/ia64/ia64.c : Likewise.
11583         * config/iq2000/iq2000.c : Likewise.
11584         * config/lm32/lm32.c : Likewise.
11585         * config/m32c/m32c-pragma.c : Likewise.
11586         * config/m32c/m32c.c : Likewise.
11587         * config/m32r/m32r.c : Likewise.
11588         * config/m68k/m68k.c : Likewise.
11589         * config/mcore/mcore.c : Likewise.
11590         * config/mep/mep-pragma.c : Likewise.
11591         * config/mep/mep.c : Likewise.
11592         * config/microblaze/microblaze-c.c : Likewise.
11593         * config/microblaze/microblaze.c : Likewise.
11594         * config/mips/mips.c : Likewise.
11595         * config/mmix/mmix.c : Likewise.
11596         * config/mn10300/mn10300.c : Likewise.
11597         * config/moxie/moxie.c : Likewise.
11598         * config/msp430/msp430-c.c : Likewise.
11599         * config/msp430/msp430.c : Likewise.
11600         * config/nds32/nds32-cost.c : Likewise.
11601         * config/nds32/nds32-fp-as-gp.c : Likewise.
11602         * config/nds32/nds32-intrinsic.c : Likewise.
11603         * config/nds32/nds32-isr.c : Likewise.
11604         * config/nds32/nds32-md-auxiliary.c : Likewise.
11605         * config/nds32/nds32-memory-manipulation.c : Likewise.
11606         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
11607         * config/nds32/nds32-predicates.c : Likewise.
11608         * config/nds32/nds32.c : Likewise.
11609         * config/nios2/nios2.c : Likewise.
11610         * config/nvptx/nvptx.c : Likewise.
11611         * config/pa/pa.c : Likewise.
11612         * config/pdp11/pdp11.c : Likewise.
11613         * config/rl78/rl78-c.c : Likewise.
11614         * config/rl78/rl78.c : Likewise.
11615         * config/rs6000/rs6000-c.c : Likewise.
11616         * config/rs6000/rs6000.c : Likewise.
11617         * config/rx/rx.c : Likewise.
11618         * config/s390/s390-c.c : Likewise.
11619         * config/s390/s390.c : Likewise.
11620         * config/sh/sh-c.c : Likewise.
11621         * config/sh/sh-mem.cc : Likewise.
11622         * config/sh/sh.c : Likewise.
11623         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
11624         * config/sh/sh_treg_combine.cc : Likewise.
11625         * config/sol2-c.c : Likewise.
11626         * config/sol2-cxx.c : Likewise.
11627         * config/sol2-stubs.c : Likewise.
11628         * config/sol2.c : Likewise.
11629         * config/sparc/sparc-c.c : Likewise.
11630         * config/sparc/sparc.c : Likewise.
11631         * config/spu/spu-c.c : Likewise.
11632         * config/spu/spu.c : Likewise.
11633         * config/stormy16/stormy16.c : Likewise.
11634         * config/tilegx/mul-tables.c : Likewise.
11635         * config/tilegx/tilegx-c.c : Likewise.
11636         * config/tilegx/tilegx.c : Likewise.
11637         * config/tilepro/mul-tables.c : Likewise.
11638         * config/tilepro/tilepro-c.c : Likewise.
11639         * config/tilepro/tilepro.c : Likewise.
11640         * config/v850/v850-c.c : Likewise.
11641         * config/v850/v850.c : Likewise.
11642         * config/vax/vax.c : Likewise.
11643         * config/visium/visium.c : Likewise.
11644         * config/vms/vms-c.c : Likewise.
11645         * config/vms/vms.c : Likewise.
11646         * config/vxworks.c : Likewise.
11647         * config/winnt-c.c : Likewise.
11648         * config/xtensa/xtensa.c : Likewise.
11650 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11652         PR lto/65378
11653         * ipa-utils.h (warn_types_mismatch): Update prototype.
11654         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
11655         parameters.
11656         (type_mismatch_p): New function.
11657         (warn_types_mismatch): Reorg to work better on non-C++ types.
11658         (odr_types_equivalent_p): Add loc1/loc2 parameters.
11659         (add_type_duplicate): Update.
11661 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11663         PR rtl-optimization/66444
11664         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
11665         call_used_regs.
11667 2015-06-08  Richard Biener  <rguenther@suse.de>
11669         PR tree-optimization/66422
11670         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
11671         block after inserted gcc_unreachable.
11673 2015-06-08  Nick Clifton  <nickc@redhat.com>
11675         * config/rx/rx.c (rx_function_value): Do not promote vector types.
11676         (rx_promote_function_mode): Likewise.
11677         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
11679 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
11681         * genattrtab.c (insn_alternatives): Change type from int *
11682         to uint64_t *.
11683         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
11684         (get_attr_value): Change type of num_alt to uint64_t.
11685         (compute_alternative_mask): Change return type from
11686         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
11687         (make_alternative_compare, mk_attr_alt): Change argument type
11688         from int to uint64_t.
11689         (simplify_test_exp): Change type of i from int to uint64_t.
11690         Shift ((uint64_t) 1) instead of 1 up.
11691         (main): Adjust oballocvec first argument from int to uint64_t.
11692         Shift ((uint64_t) 1) instead of 1 up.
11694 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11696         PR other/65366
11697         * gdbhooks.py: Import sys.
11698         (intptr): New function.  Replace int(...) by intptr(...).
11700 2015-06-08  Richard Biener  <rguenther@suse.de>
11702         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
11703         adjustment for gaps at the end of a SLP load group properly.
11704         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
11705         all permutations we can generate.
11706         (vect_transform_slp_perm_load): Use the correct group-size.
11708 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
11710         * genmatch.c (expr::gen_transform): For conditions, guess the type
11711         from the second operand.
11713 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11715         PR tree-optimization/66442
11716         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
11717         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
11718         if the loop latch is not a singleton.  Use
11719         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
11721 2015-06-08  Marek Polacek  <polacek@redhat.com>
11723         PR sanitizer/66452
11724         * toplev.c (check_global_declaration): Don't warn about artificial
11725         decls.
11727 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11729         PR tree-optimization/66436
11730         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
11731         dump file.
11732         * gimplify.c: Add tree-dump.h include.
11733         (gimplify_function_tree): Dump function to gimple dump file.
11734         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
11735         dump file.
11737 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11739         PR tree-optimization/66435
11740         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
11741         function.
11743 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
11745         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
11746         of ptr_type_node to not be ptr_to_node.
11747         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
11748         TREE_TYPE of pointers.
11749         * gimple-expr.c (useless_type_conversion): Reorder the check for
11750         function pointers and TYPE_CANONICAL.
11752 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
11754         PR bootstrap/66319
11755         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
11756         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
11757         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
11758         later.
11759         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
11760         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
11761         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
11762         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
11763         and non iso if unix2003.
11765 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
11767         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
11769 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
11771         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
11772         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
11773         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
11774         except.c, final.c, function.c, gcse-common.c, genemit.c,
11775         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
11776         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
11777         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
11778         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
11779         more derived ones.
11781 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
11783         * combine.c (combine_split_insns): Remove cast.
11784         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
11785         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
11786         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
11787         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
11788         * genemit.c (gen_split): Change return type of generated functions to
11789         rtx_insn.
11790         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
11791         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
11792         gen_peephole2_* functions.
11793         (print_subroutine, main): Likewise.
11794         * recog.c (peephole2_optimize): Remove cast.
11795         (peep2_next_insn): Promote return type to rtx_insn.
11796         * recog.h (peep2_next_insn): Fix prototype.
11797         * rtl.h (try_split, split_insns): Likewise.
11799 2015-06-06  DJ Delorie  <dj@redhat.com>
11801         * config/msp430/msp430.c (msp430_asm_integer): Support addition
11802         and subtraction too.
11804 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11806         PR target/66410
11807         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
11808         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
11809         instead of Snd.  Disparage Sid/z alternative with '^'.
11811 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
11813         * dwarf2out.c: Remove deferred_locations*.
11814         (dwarf2_debug_hooks): Add early_finish hook.
11815         Remove global_decl hook.
11816         Add early_global_decl and late_global_decl hook.
11817         New global early_dwarf.
11818         New structure set_early_dwarf.
11819         (output_die): Indicate whether a DIE was generated early
11820         when generating assembly with -dA.
11821         (struct limbo_die_struct): Document created_for field.
11822         Remove file_table_last_lookup.
11823         (remove_AT): Return TRUE if successful.
11824         (remove_child_TAG): Clear die_parent.
11825         (reparent_child): New function abstracted from...
11826         (splice_child_die): ...here.
11827         (new_die): ICE if a DIE ends up in limbo too late.
11828         (check_die): New.
11829         (defer_location): Remove.
11830         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
11831         (fill_variable_array_bounds): New.
11832         (decl_start_label): Call fill_variable_array_bounds.
11833         (gen_formal_parameter_die): Rewrite to reuse previously generated
11834         DIEs.
11835         (gen_subprogram_die): Same.
11836         (gen_variable_die): Same.
11837         (gen_const_die): Same.
11838         (gen_label_die): Same.
11839         (gen_lexical_block_die): Same.
11840         (decl_will_get_specification_p): New.
11841         (local_function_static): New.
11842         (gen_struct_or_union_type_die): Fill in variable-length fields.
11843         (gen_typedef_die): Fill in variable-length typedefs.
11844         (gen_tagged_type_die): Gracefully return on error_mark_node.
11845         Handle re-entrancy.
11846         (gen_type_die_with_usage): Handle variable-length types.
11847         Remove duplicate code for ARRAY_TYPE case.
11848         (process_scope_var): Only process imported modules during early
11849         dwarf.
11850         (dwarf2out_early_global_decl): New.
11851         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
11852         (dwarf2out_type_decl): Set early_dwarf while calling
11853         dwarf2out_decl.
11854         (dwarf2out_decl): Verify that we did not recreate a previously
11855         generated DIE.
11856         Do not return on DECL_EXTERNALs in VAR_DECLs.
11857         Abstract some code to local_function_static.
11858         (lookup_filename): Remove use of file_table_last_lookup.
11859         Gracefully exit on missing file_name.
11860         (dwarf2out_finish): Verify limbo list.
11861         Remove deferred_locations_list use.
11862         Move deferred_asm_name and limbo flushing to...
11863         (dwarf2out_early_finish): ...here.  New.
11864         (dwarf2out_c_finalize): Remove set of deferred_location_list,
11865         deferred_asm_name, and file_table_last_lookup.
11866         * cgraph.h (referred_to_p): Add default argument.
11867         * cgraphunit.c (referred_to_p): Add and handle include_self
11868         argument.
11869         (analyze_functions): Add first_time argument.
11870         Call check_global_declaration for all symbols.
11871         Call late_global_decl for nodes for moribund nodes.
11872         (finalize_compilation_unit): Add new argument to
11873         analyze_functions.
11874         Call early_global_decl for functions.
11875         Call early_finish debug hook.
11876         * dbxout.c (dbxout_early_global_decl): New.
11877         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
11878         (dbx_debug_hooks): Add new hooks.
11879         (xcoff_debug_hooks): Same.
11880         * debug.c (do_nothing_debug_hooks): Add early_finish field.
11881         Add early and late debug hooks.
11882         Remove global_decl hook.
11883         * debug.h (struct gcc_debug_hooks): Add early_finish,
11884         early_global_decl, and late_global_decl fields.
11885         Remove global_decl field.
11886         Document gcc_debug_hooks.
11887         * gengtype.c (output_typename): Remove.
11888         * godump.c (go_early_global_decl): New.
11889         (go_late_global_decl): New.
11890         (go_global_decl): Remove.
11891         (dump_go_spec_init): Remove global_decl.  Add
11892         {early,late}_global_decl.
11893         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
11894         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
11895         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
11896         (write_global_declarations): Remove.
11897         (global_decl_processing): New.
11898         * langhooks.h (struct lang_hooks_for_decls): Remove
11899         final_write_globals field.
11900         Add post_compilation_parsing_cleanups field.
11901         * passes.c (rest_of_decl_compilation): Call early_global_decl.
11902         * sdbout.c: Add early and late_global_decl hooks.  Remove
11903         sdbout_global_decl hook.
11904         Add early_finish field for sdb_debug_hooks.
11905         (sdbout_global_decl): Remove.
11906         (sdbout_early_global_decl): New.
11907         (sdbout_late_global_decl): New.
11908         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
11909         * toplev.c (check_global_declaration): Rename from
11910         check_global_declaration_1.
11911         Adapt to use symtab infrastructure.
11912         (check_global_declarations): Remove.
11913         (emit_debug_global_declarations): Remove.
11914         (compile_file): Remove call to final_write_globals langhook.
11915         Run the actual compilation process.
11916         Perform any post compilation parser cleanups.
11917         Generate late debug info.
11918         * toplev.h (check_global_declaration): New.
11919         (check_global_declaration_1): Remove.
11920         (check_global_declarations): Remove.
11921         (write_global_declarations): Remove.
11922         (emit_debug_global_declarations): Remove.
11923         (global_decl_processing): New.
11924         * tree-core.h (struct tree_block): Add DIE field.
11925         * tree.h (BLOCK_DIE): New.
11926         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
11927         throughout.
11928         (vmsdbgout_early_global_decl): New.
11929         (vmsdbgout_late_global_decl): New.
11930         Add early_finish debug hook field to vmsdbg_debug_hooks.
11931         Remove vmsdbgout_decl to vmsdbgout_function_decl.
11932         Add early and late_global_decl debug hooks.
11934 2015-06-05  Julian Brown  <julian@codesourcery.com>
11935             Sandra Loosemore  <sandra@codesourcery.com>
11937         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
11938         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
11939         to print-sysroot-suffix.sh script.
11941 2015-06-05  Tom de Vries  <tom@codesourcery.com>
11943         merge from gomp4 branch:
11944         2015-05-28  Tom de Vries  <tom@codesourcery.com>
11946         PR tree-optimization/65443
11947         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
11948         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
11949         (try_transform_to_exit_first_loop_alt): New function.
11950         (transform_to_exit_first_loop): Use
11951         try_transform_to_exit_first_loop_alt.
11953 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
11955         * builtins.c (expand_builtin_atomic_compare_exchange): Call
11956         emit_cmp_and_jump_insns with the mode of target.
11958 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11960         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
11962 2015-06-04  DJ Delorie  <dj@redhat.com>
11964         * config/msp430/msp430.md (movsi_s): New.  Special case for
11965         storing a 20-bit symbol into a 32-bit register.
11966         * config/msp430/msp430.c (msp430_subreg): Add support for it.
11967         * config/msp430/predicates.md (msp430_symbol_operand): New.
11969 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
11971         * c-family/c-common.c (noplt): New attribute.
11972         (handle_noplt_attribute): New handler.
11973         * calls.c (prepare_call_address): Check for noplt
11974         attribute.
11975         * config/i386/i386.c (ix86_expand_call): Check
11976         for noplt attribute.
11977         (ix86_nopic_noplt_attribute_p): New function.
11978         (ix86_output_call_insn): Output indirect call for non-pic
11979         no plt calls.
11980         * doc/extend.texi (noplt): Document new attribute.
11981         * doc/invoke.texi: Document new attribute.
11983 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
11985         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
11986         real.h, and fixed-value.h when included in host source files.
11987         * double-int.h: Remove redundant #includes listed above.
11988         * fixed-value.h: Likewise.
11989         * real.h: Likewise.
11990         * wide-int.h: Likewise.
11991         * inchash.h: Likewise.
11992         * rtl.h: Add some include files When included from a generator file.
11993         * target.h: Remove wide-int.h and insn-modes.h from the include list.
11994         * internal-fn.h: Don't include coretypes.h.
11995         * alias.c: Adjust includes for restructured coretypes.h.
11996         * asan.c: Likewise.
11997         * attribs.c: Likewise.
11998         * auto-inc-dec.c: Likewise.
11999         * auto-profile.c: Likewise.
12000         * bb-reorder.c: Likewise.
12001         * bt-load.c: Likewise.
12002         * builtins.c: Likewise.
12003         * caller-save.c: Likewise.
12004         * calls.c: Likewise.
12005         * ccmp.c: Likewise.
12006         * cfg.c: Likewise.
12007         * cfganal.c: Likewise.
12008         * cfgbuild.c: Likewise.
12009         * cfgcleanup.c: Likewise.
12010         * cfgexpand.c: Likewise.
12011         * cfghooks.c: Likewise.
12012         * cfgloop.c: Likewise.
12013         * cfgloop.h: Likewise.
12014         * cfgloopanal.c: Likewise.
12015         * cfgloopmanip.c: Likewise.
12016         * cfgrtl.c: Likewise.
12017         * cgraph.c: Likewise.
12018         * cgraphbuild.c: Likewise.
12019         * cgraphclones.c: Likewise.
12020         * cgraphunit.c: Likewise.
12021         * cilk-common.c: Likewise.
12022         * combine-stack-adj.c: Likewise.
12023         * combine.c: Likewise.
12024         * compare-elim.c: Likewise.
12025         * convert.c: Likewise.
12026         * coverage.c: Likewise.
12027         * cppbuiltin.c: Likewise.
12028         * cprop.c: Likewise.
12029         * cse.c: Likewise.
12030         * cselib.c: Likewise.
12031         * data-streamer-in.c: Likewise.
12032         * data-streamer-out.c: Likewise.
12033         * data-streamer.c: Likewise.
12034         * dbxout.c: Likewise.
12035         * dce.c: Likewise.
12036         * ddg.c: Likewise.
12037         * debug.c: Likewise.
12038         * df-core.c: Likewise.
12039         * df-problems.c: Likewise.
12040         * df-scan.c: Likewise.
12041         * df.h: Likewise.
12042         * dfp.c: Likewise.
12043         * dojump.c: Likewise.
12044         * dominance.c: Likewise.
12045         * domwalk.c: Likewise.
12046         * double-int.c: Likewise.
12047         * dse.c: Likewise.
12048         * dumpfile.c: Likewise.
12049         * dwarf2asm.c: Likewise.
12050         * dwarf2cfi.c: Likewise.
12051         * dwarf2out.c: Likewise.
12052         * dwarf2out.h: Likewise.
12053         * emit-rtl.c: Likewise.
12054         * et-forest.c: Likewise.
12055         * except.c: Likewise.
12056         * explow.c: Likewise.
12057         * expmed.c: Likewise.
12058         * expr.c: Likewise.
12059         * final.c: Likewise.
12060         * fixed-value.c: Likewise.
12061         * fold-const.c: Likewise.
12062         * function.c: Likewise.
12063         * fwprop.c: Likewise.
12064         * gcc-plugin.h: Likewise.
12065         * gcse.c: Likewise.
12066         * generic-match-head.c: Likewise.
12067         * ggc-page.c: Likewise.
12068         * gimple-builder.c: Likewise.
12069         * gimple-expr.c: Likewise.
12070         * gimple-fold.c: Likewise.
12071         * gimple-iterator.c: Likewise.
12072         * gimple-low.c: Likewise.
12073         * gimple-match-head.c: Likewise.
12074         * gimple-pretty-print.c: Likewise.
12075         * gimple-ssa-isolate-paths.c: Likewise.
12076         * gimple-ssa-strength-reduction.c: Likewise.
12077         * gimple-streamer-in.c: Likewise.
12078         * gimple-streamer-out.c: Likewise.
12079         * gimple-streamer.h: Likewise.
12080         * gimple-walk.c: Likewise.
12081         * gimple.c: Likewise.
12082         * gimplify-me.c: Likewise.
12083         * gimplify.c: Likewise.
12084         * godump.c: Likewise.
12085         * graph.c: Likewise.
12086         * graphite-blocking.c: Likewise.
12087         * graphite-dependences.c: Likewise.
12088         * graphite-interchange.c: Likewise.
12089         * graphite-isl-ast-to-gimple.c: Likewise.
12090         * graphite-optimize-isl.c: Likewise.
12091         * graphite-poly.c: Likewise.
12092         * graphite-scop-detection.c: Likewise.
12093         * graphite-sese-to-poly.c: Likewise.
12094         * graphite.c: Likewise.
12095         * haifa-sched.c: Likewise.
12096         * hooks.h: Likewise.
12097         * hw-doloop.c: Likewise.
12098         * ifcvt.c: Likewise.
12099         * incpath.c: Likewise.
12100         * init-regs.c: Likewise.
12101         * internal-fn.c: Likewise.
12102         * ipa-chkp.c: Likewise.
12103         * ipa-comdats.c: Likewise.
12104         * ipa-cp.c: Likewise.
12105         * ipa-devirt.c: Likewise.
12106         * ipa-icf-gimple.c: Likewise.
12107         * ipa-icf.c: Likewise.
12108         * ipa-inline-analysis.c: Likewise.
12109         * ipa-inline-transform.c: Likewise.
12110         * ipa-inline.c: Likewise.
12111         * ipa-polymorphic-call.c: Likewise.
12112         * ipa-profile.c: Likewise.
12113         * ipa-prop.c: Likewise.
12114         * ipa-pure-const.c: Likewise.
12115         * ipa-ref.c: Likewise.
12116         * ipa-reference.c: Likewise.
12117         * ipa-split.c: Likewise.
12118         * ipa-utils.c: Likewise.
12119         * ipa-visibility.c: Likewise.
12120         * ipa.c: Likewise.
12121         * ira-build.c: Likewise.
12122         * ira-color.c: Likewise.
12123         * ira-conflicts.c: Likewise.
12124         * ira-costs.c: Likewise.
12125         * ira-emit.c: Likewise.
12126         * ira-lives.c: Likewise.
12127         * ira.c: Likewise.
12128         * jump.c: Likewise.
12129         * langhooks.c: Likewise.
12130         * lcm.c: Likewise.
12131         * loop-doloop.c: Likewise.
12132         * loop-init.c: Likewise.
12133         * loop-invariant.c: Likewise.
12134         * loop-iv.c: Likewise.
12135         * loop-unroll.c: Likewise.
12136         * lower-subreg.c: Likewise.
12137         * lra-assigns.c: Likewise.
12138         * lra-coalesce.c: Likewise.
12139         * lra-constraints.c: Likewise.
12140         * lra-eliminations.c: Likewise.
12141         * lra-lives.c: Likewise.
12142         * lra-remat.c: Likewise.
12143         * lra-spills.c: Likewise.
12144         * lra.c: Likewise.
12145         * lto-cgraph.c: Likewise.
12146         * lto-compress.c: Likewise.
12147         * lto-opts.c: Likewise.
12148         * lto-section-in.c: Likewise.
12149         * lto-section-out.c: Likewise.
12150         * lto-streamer-in.c: Likewise.
12151         * lto-streamer-out.c: Likewise.
12152         * lto-streamer.c: Likewise.
12153         * mcf.c: Likewise.
12154         * mode-switching.c: Likewise.
12155         * modulo-sched.c: Likewise.
12156         * omega.c: Likewise.
12157         * omp-low.c: Likewise.
12158         * optabs.c: Likewise.
12159         * opts-global.c: Likewise.
12160         * passes.c: Likewise.
12161         * plugin.c: Likewise.
12162         * postreload-gcse.c: Likewise.
12163         * postreload.c: Likewise.
12164         * predict.c: Likewise.
12165         * print-rtl.c: Likewise.
12166         * print-tree.c: Likewise.
12167         * profile.c: Likewise.
12168         * real.c: Likewise.
12169         * realmpfr.c: Likewise.
12170         * realmpfr.h: Likewise.
12171         * recog.c: Likewise.
12172         * ree.c: Likewise.
12173         * reg-stack.c: Likewise.
12174         * regcprop.c: Likewise.
12175         * reginfo.c: Likewise.
12176         * regrename.c: Likewise.
12177         * regs.h: Likewise.
12178         * regstat.c: Likewise.
12179         * reload.c: Likewise.
12180         * reload1.c: Likewise.
12181         * reorg.c: Likewise.
12182         * resource.c: Likewise.
12183         * rtl-chkp.c: Likewise.
12184         * rtlanal.c: Likewise.
12185         * rtlhooks.c: Likewise.
12186         * sanopt.c: Likewise.
12187         * sched-deps.c: Likewise.
12188         * sched-ebb.c: Likewise.
12189         * sched-rgn.c: Likewise.
12190         * sched-vis.c: Likewise.
12191         * sdbout.c: Likewise.
12192         * sel-sched-dump.c: Likewise.
12193         * sel-sched-ir.c: Likewise.
12194         * sel-sched.c: Likewise.
12195         * sese.c: Likewise.
12196         * shrink-wrap.c: Likewise.
12197         * shrink-wrap.h: Likewise.
12198         * simplify-rtx.c: Likewise.
12199         * stack-ptr-mod.c: Likewise.
12200         * statistics.c: Likewise.
12201         * stmt.c: Likewise.
12202         * stor-layout.c: Likewise.
12203         * store-motion.c: Likewise.
12204         * stringpool.c: Likewise.
12205         * symtab.c: Likewise.
12206         * target-globals.c: Likewise.
12207         * targhooks.c: Likewise.
12208         * toplev.c: Likewise.
12209         * tracer.c: Likewise.
12210         * trans-mem.c: Likewise.
12211         * tree-affine.c: Likewise.
12212         * tree-affine.h: Likewise.
12213         * tree-browser.c: Likewise.
12214         * tree-call-cdce.c: Likewise.
12215         * tree-cfg.c: Likewise.
12216         * tree-cfgcleanup.c: Likewise.
12217         * tree-chkp-opt.c: Likewise.
12218         * tree-chkp.c: Likewise.
12219         * tree-chrec.c: Likewise.
12220         * tree-complex.c: Likewise.
12221         * tree-data-ref.c: Likewise.
12222         * tree-dfa.c: Likewise.
12223         * tree-diagnostic.c: Likewise.
12224         * tree-dump.c: Likewise.
12225         * tree-eh.c: Likewise.
12226         * tree-emutls.c: Likewise.
12227         * tree-if-conv.c: Likewise.
12228         * tree-inline.c: Likewise.
12229         * tree-into-ssa.c: Likewise.
12230         * tree-iterator.c: Likewise.
12231         * tree-loop-distribution.c: Likewise.
12232         * tree-nested.c: Likewise.
12233         * tree-nrv.c: Likewise.
12234         * tree-object-size.c: Likewise.
12235         * tree-outof-ssa.c: Likewise.
12236         * tree-parloops.c: Likewise.
12237         * tree-phinodes.c: Likewise.
12238         * tree-predcom.c: Likewise.
12239         * tree-pretty-print.c: Likewise.
12240         * tree-pretty-print.h: Likewise.
12241         * tree-profile.c: Likewise.
12242         * tree-scalar-evolution.c: Likewise.
12243         * tree-sra.c: Likewise.
12244         * tree-ssa-address.c: Likewise.
12245         * tree-ssa-alias.c: Likewise.
12246         * tree-ssa-ccp.c: Likewise.
12247         * tree-ssa-coalesce.c: Likewise.
12248         * tree-ssa-copy.c: Likewise.
12249         * tree-ssa-copyrename.c: Likewise.
12250         * tree-ssa-dce.c: Likewise.
12251         * tree-ssa-dom.c: Likewise.
12252         * tree-ssa-dse.c: Likewise.
12253         * tree-ssa-forwprop.c: Likewise.
12254         * tree-ssa-ifcombine.c: Likewise.
12255         * tree-ssa-live.c: Likewise.
12256         * tree-ssa-loop-ch.c: Likewise.
12257         * tree-ssa-loop-im.c: Likewise.
12258         * tree-ssa-loop-ivcanon.c: Likewise.
12259         * tree-ssa-loop-ivopts.c: Likewise.
12260         * tree-ssa-loop-manip.c: Likewise.
12261         * tree-ssa-loop-niter.c: Likewise.
12262         * tree-ssa-loop-prefetch.c: Likewise.
12263         * tree-ssa-loop-unswitch.c: Likewise.
12264         * tree-ssa-loop.c: Likewise.
12265         * tree-ssa-loop.h: Likewise.
12266         * tree-ssa-math-opts.c: Likewise.
12267         * tree-ssa-operands.c: Likewise.
12268         * tree-ssa-phiopt.c: Likewise.
12269         * tree-ssa-phiprop.c: Likewise.
12270         * tree-ssa-pre.c: Likewise.
12271         * tree-ssa-propagate.c: Likewise.
12272         * tree-ssa-reassoc.c: Likewise.
12273         * tree-ssa-sccvn.c: Likewise.
12274         * tree-ssa-scopedtables.c: Likewise.
12275         * tree-ssa-sink.c: Likewise.
12276         * tree-ssa-strlen.c: Likewise.
12277         * tree-ssa-structalias.c: Likewise.
12278         * tree-ssa-tail-merge.c: Likewise.
12279         * tree-ssa-ter.c: Likewise.
12280         * tree-ssa-threadedge.c: Likewise.
12281         * tree-ssa-threadupdate.c: Likewise.
12282         * tree-ssa-uncprop.c: Likewise.
12283         * tree-ssa-uninit.c: Likewise.
12284         * tree-ssa.c: Likewise.
12285         * tree-ssanames.c: Likewise.
12286         * tree-stdarg.c: Likewise.
12287         * tree-streamer-in.c: Likewise.
12288         * tree-streamer-out.c: Likewise.
12289         * tree-streamer.c: Likewise.
12290         * tree-switch-conversion.c: Likewise.
12291         * tree-tailcall.c: Likewise.
12292         * tree-vect-data-refs.c: Likewise.
12293         * tree-vect-generic.c: Likewise.
12294         * tree-vect-loop-manip.c: Likewise.
12295         * tree-vect-loop.c: Likewise.
12296         * tree-vect-patterns.c: Likewise.
12297         * tree-vect-slp.c: Likewise.
12298         * tree-vect-stmts.c: Likewise.
12299         * tree-vectorizer.c: Likewise.
12300         * tree-vrp.c: Likewise.
12301         * tree.c: Likewise.
12302         * tsan.c: Likewise.
12303         * ubsan.c: Likewise.
12304         * valtrack.c: Likewise.
12305         * value-prof.c: Likewise.
12306         * var-tracking.c: Likewise.
12307         * varasm.c: Likewise.
12308         * varpool.c: Likewise.
12309         * vmsdbgout.c: Likewise.
12310         * vtable-verify.c: Likewise.
12311         * web.c: Likewise.
12312         * wide-int-print.cc: Likewise.
12313         * wide-int-print.h: Likewise.
12314         * wide-int.cc: Likewise.
12315         * xcoffout.c: Likewise.
12316         * config/aarch64/aarch64-builtins.c: Likewise.
12317         * config/aarch64/aarch64.c: Likewise.
12318         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12319         * config/alpha/alpha.c: Likewise.
12320         * config/arc/arc.c: Likewise.
12321         * config/arm/aarch-common.c: Likewise.
12322         * config/arm/arm-builtins.c: Likewise.
12323         * config/arm/arm-c.c: Likewise.
12324         * config/arm/arm.c: Likewise.
12325         * config/avr/avr-c.c: Likewise.
12326         * config/avr/avr-log.c: Likewise.
12327         * config/avr/avr.c: Likewise.
12328         * config/bfin/bfin.c: Likewise.
12329         * config/c6x/c6x.c: Likewise.
12330         * config/cr16/cr16.c: Likewise.
12331         * config/cris/cris.c: Likewise.
12332         * config/darwin-c.c: Likewise.
12333         * config/darwin.c: Likewise.
12334         * config/default-c.c: Likewise.
12335         * config/epiphany/epiphany.c: Likewise.
12336         * config/epiphany/mode-switch-use.c: Likewise.
12337         * config/epiphany/resolve-sw-modes.c: Likewise.
12338         * config/fr30/fr30.c: Likewise.
12339         * config/frv/frv.c: Likewise.
12340         * config/ft32/ft32.c: Likewise.
12341         * config/glibc-c.c: Likewise.
12342         * config/h8300/h8300.c: Likewise.
12343         * config/i386/i386-c.c: Likewise.
12344         * config/i386/i386.c: Likewise.
12345         * config/i386/msformat-c.c: Likewise.
12346         * config/i386/winnt-cxx.c: Likewise.
12347         * config/i386/winnt-stubs.c: Likewise.
12348         * config/i386/winnt.c: Likewise.
12349         * config/ia64/ia64-c.c: Likewise.
12350         * config/ia64/ia64.c: Likewise.
12351         * config/iq2000/iq2000.c: Likewise.
12352         * config/lm32/lm32.c: Likewise.
12353         * config/m32c/m32c-pragma.c: Likewise.
12354         * config/m32c/m32c.c: Likewise.
12355         * config/m32r/m32r.c: Likewise.
12356         * config/m68k/m68k.c: Likewise.
12357         * config/mcore/mcore.c: Likewise.
12358         * config/mep/mep-pragma.c: Likewise.
12359         * config/mep/mep.c: Likewise.
12360         * config/microblaze/microblaze-c.c: Likewise.
12361         * config/microblaze/microblaze.c: Likewise.
12362         * config/mips/mips.c: Likewise.
12363         * config/mmix/mmix.c: Likewise.
12364         * config/mn10300/mn10300.c: Likewise.
12365         * config/moxie/moxie.c: Likewise.
12366         * config/msp430/msp430-c.c: Likewise.
12367         * config/msp430/msp430.c: Likewise.
12368         * config/nds32/nds32-cost.c: Likewise.
12369         * config/nds32/nds32-fp-as-gp.c: Likewise.
12370         * config/nds32/nds32-intrinsic.c: Likewise.
12371         * config/nds32/nds32-isr.c: Likewise.
12372         * config/nds32/nds32-md-auxiliary.c: Likewise.
12373         * config/nds32/nds32-memory-manipulation.c: Likewise.
12374         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12375         * config/nds32/nds32-predicates.c: Likewise.
12376         * config/nds32/nds32.c: Likewise.
12377         * config/nios2/nios2.c: Likewise.
12378         * config/nvptx/nvptx.c: Likewise.
12379         * config/pa/pa.c: Likewise.
12380         * config/pdp11/pdp11.c: Likewise.
12381         * config/rl78/rl78-c.c: Likewise.
12382         * config/rl78/rl78.c: Likewise.
12383         * config/rs6000/rs6000-c.c: Likewise.
12384         * config/rs6000/rs6000.c: Likewise.
12385         * config/rx/rx.c: Likewise.
12386         * config/s390/s390-c.c: Likewise.
12387         * config/s390/s390.c: Likewise.
12388         * config/sh/sh-c.c: Likewise.
12389         * config/sh/sh-mem.cc: Likewise.
12390         * config/sh/sh.c: Likewise.
12391         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12392         * config/sh/sh_treg_combine.cc: Likewise.
12393         * config/sol2-c.c: Likewise.
12394         * config/sol2-cxx.c: Likewise.
12395         * config/sol2-stubs.c: Likewise.
12396         * config/sol2.c: Likewise.
12397         * config/sparc/sparc-c.c: Likewise.
12398         * config/sparc/sparc.c: Likewise.
12399         * config/spu/spu-c.c: Likewise.
12400         * config/spu/spu.c: Likewise.
12401         * config/stormy16/stormy16.c: Likewise.
12402         * config/tilegx/mul-tables.c: Likewise.
12403         * config/tilegx/tilegx-c.c: Likewise.
12404         * config/tilegx/tilegx.c: Likewise.
12405         * config/tilepro/mul-tables.c: Likewise.
12406         * config/tilepro/tilepro-c.c: Likewise.
12407         * config/tilepro/tilepro.c: Likewise.
12408         * config/v850/v850-c.c: Likewise.
12409         * config/v850/v850.c: Likewise.
12410         * config/vax/vax.c: Likewise.
12411         * config/visium/visium.c: Likewise.
12412         * config/vms/vms-c.c: Likewise.
12413         * config/vms/vms.c: Likewise.
12414         * config/vxworks.c: Likewise.
12415         * config/winnt-c.c: Likewise.
12416         * config/xtensa/xtensa.c: Likewise.
12417         * common/config/bfin/bfin-common.c: Likewise.
12419 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
12421         * tree.h (tree_code_for_canonical_type_merging): New function.
12422         * tree.c (gimple_canonical_types_compatible_p): Use
12423         tree_code_for_canonical_type_merging..
12425 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12427         PR c++/66192
12428         PR target/66200
12429         * doc/tm.texi: Regenerate.
12430         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
12431         * target.def (TARGET_RELAXED_ORDERING): Likewise.
12432         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
12433         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
12434         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
12435         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
12436         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
12437         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
12438         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
12440 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12442         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
12443         register fma steering pass.
12444         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
12445         AARCH64_TUNE_FMA_STEERING.
12447 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
12449         * tree.c (verify_type_variant): Verify that type and variant is
12450         compatible.
12451         (gimple_canonical_types_compatible_p): Look for main variants.
12453 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12455         * config.gcc (powerpc*-*-*): Add support for a new configure
12456         option --with-advance-toolchain=<xxx> which overrides using the
12457         default header files, libraries and dynamic linker.
12459         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
12460         specs to support the configure --with-advance-toolchain=<xxx>
12461         option.
12462         (INCLUDE_EXTRA_SPEC): Likewise.
12463         (LINK_OS_EXTRA_SPEC32): Likewise.
12464         (LINK_OK_EXTRA_SPEC64): Likewise.
12465         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
12466         (DYNAMIC_LINKER_PREFIX): Likewise.
12467         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
12468         toolchain support.
12469         (GLIBC_DYNAMIC_LINKER32): Likewise.
12470         (GLIBC_DYNAMIC_LINKER64): Likewise.
12471         (LINK_OS_LINUX_SPEC32): Likewise.
12472         (LINK_OS_LINUX_SPEC64): Likewise.
12474         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
12475         configuration option.
12477 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
12479         PR target/66275
12480         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
12481         to determine current function ABI.
12482         (ix86_function_value_regno_p): Ditto.
12484 2015-06-03  Martin Liska  <mliska@suse.cz>
12486         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
12487         * bitmap.h (struct bitmap_usage): Likewise.
12488         * ggc-common.c (struct ggc_usage): Likewise.
12489         * mem-stats.h (struct mem_location): Likewise.
12490         (struct mem_usage): Likewise.
12491         * vec.c (struct vec_usage): Likewise.
12493 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
12495         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
12496         -Bsymbolic.
12498 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
12500         * doc/plugins.texi (enum plugin_event): New event.
12501         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
12502         and PLUGIN_FINISH_FUNCTION.
12503         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
12504         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
12506 2015-06-03  Richard Biener  <rguenther@suse.de>
12508         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12509         compute GROUP_GAP for the first element.
12510         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
12511         on in-group gaps.
12513 2015-06-03  Nick Clifton  <nickc@redhat.com>
12515         * config/rl78/rl78-real.md: Add peepholes to avoid a register
12516         copy when calling a function.
12517         * config/rl78/rl78.c (need_to_save): Do not push the frame
12518         pointer in an interrupt handler prologue if it is never used.
12520 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12522         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
12524 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12526         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
12527         reference when cloning alias node.
12529 2015-06-03  Martin Liska  <mliska@suse.cz>
12531         * alloc-pool.h (struct pool_usage): Correct space padding.
12532         * ggc-page.c (ggc_print_statistics): Align columns in a report.
12533         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
12534         * tree.c (dump_tree_statistics): Align columns in a report.
12536 2015-06-03  Martin Liska  <mliska@suse.cz>
12538         * alloc-pool.c (allocate_pool_descriptor): Remove.
12539         (struct pool_output_info): Likewise.
12540         (print_alloc_pool_statistics): Likewise.
12541         (dump_alloc_pool_statistics): Likewise.
12542         * alloc-pool.h (struct pool_usage): New struct.
12543         (pool_allocator::initialize): Change usage of memory statistics
12544         to a new interface.
12545         (pool_allocator::release): Likewise.
12546         (pool_allocator::allocate): Likewise.
12547         (pool_allocator::remove): Likewise.
12548         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
12549         for a pool allocator.
12550         * mem-stats.h (struct mem_location): Add new ctor.
12551         (struct mem_usage): Add counter for number of
12552         instances.
12553         (mem_alloc_description::register_descriptor): New overload of
12554         * mem-stats.h (mem_location::to_string): New function.
12555         * bitmap.h (struct bitmap_usage): Use this new function.
12556         * ggc-common.c (struct ggc_usage): Likewise.
12557         the function.
12559 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12561         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
12562         of GCC_INSN_FLAGS_H block.
12564 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
12566         * explow.c (plus_constant): Update check after force_const_mem call
12567         to see if the value returned is not a NULL_RTX.
12569 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12571         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
12572         remove instumentation thunks calling reachable functions.
12573         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
12574         * lto/lto-partition.c (privatize_symbol_name_1): New.
12575         (privatize_symbol_name): Privatize both decl and orig_decl
12576         names for instrumented functions.
12577         * cgraph.c (cgraph_node::verify_node): Add transparent
12578         alias chain check for instrumented node.
12580 2015-06-03  Marek Polacek  <polacek@redhat.com>
12582         PR c/64223
12583         PR c/29358
12584         * tree.c (attribute_value_equal): Handle attribute format.
12585         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
12587 2015-06-03  Richard Biener  <rguenther@suse.de>
12589         PR tree-optimization/63916
12590         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12591         Forward-propagate non-invariant addresses by splicing their
12592         reference ops if the result isn't going to be used by PRE.
12593         (vn_reference_lookup_3): Remove pointless assert.
12595 2015-06-03  Richard Biener  <rguenther@suse.de>
12597         PR tree-optimization/66375
12598         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
12599         add to the evolution before following SSA edges.
12601 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
12603         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
12604         (dump_use, dump_cand, find_induction_variables): Pass new argument
12605         to dump_iv.
12606         (record_use): Preserve the ssa name information in IV.
12608 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12610         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
12611         NO_MODE_TEST.
12612         (add_mode_tests): Don't add mode tests if the predicate only
12613         accepts scalar constant integers.  Otherwise, allow the mode
12614         of "op" to be VOIDmode if the predicate does accept such integers.
12616 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
12618         PR target/66258
12619         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
12620         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
12621         (aarch64_secondary_reload): Likewise
12622         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
12623         to !TARGET_FLOAT.
12624         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
12625         Likewise.
12627 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
12628             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12630         PR target/65768
12631         * cprop.c (try_replace_reg): Check cost of constants before propagating.
12633 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12635         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
12636         provide access to the IBM extended double floating point mode if
12637         long double is IEEE 128-bit floating point.
12638         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
12639         point if long double is the IBM extended double type.
12641         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
12642         enable adding IEEE 128-bit floating point support.
12643         (-mfloat128-software): Likewise.
12644         (-mfloat128-sw): Likewise.
12646         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
12647         128-bit floating point types to occupy any register if
12648         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
12649         -mfloat128-software is enabled.
12650         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
12651         support.
12652         (rs6000_option_override_internal): Add -mfloat128-* support.
12653         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
12655         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
12656         and float128 type nodes.
12657         (ieee128_float_type_node): Likewise.
12658         (ibm128_float_type_node): Likewise.
12660 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12662         PR target/66136
12663         * config/aarch64/geniterators.sh: Rewrite in awk.
12665 2015-06-02  Martin Liska  <mliska@suse.cz>
12667         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
12668         values to avoid -Wmaybe-uninitialized errors.
12670 2015-06-02  Richard Biener  <rguenther@suse.de>
12672         PR debug/65549
12673         * dwarf2out.c (lookup_context_die): New function.
12674         (resolve_addr): Avoid forcing a full DIE for the
12675         target of a DW_TAG_GNU_call_site during late compilation.
12676         Instead create a stub DIE without a type if we have a
12677         context DIE present.
12679 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
12681         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
12683 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12685         PR tree-optimization/48052
12686         * cfgloop.h (struct control_iv): New.
12687         (struct loop): New field control_ivs.
12688         * tree-ssa-loop-niter.c : Include "stor-layout.h".
12689         (number_of_iterations_lt): Set no_overflow information.
12690         (number_of_iterations_exit): Init control iv in niter struct.
12691         (record_control_iv): New.
12692         (estimate_numbers_of_iterations_loop): Call record_control_iv.
12693         (loop_exits_before_overflow): New.  Interface factored out of
12694         scev_probably_wraps_p.
12695         (scev_probably_wraps_p): Factor loop niter related code into
12696         loop_exits_before_overflow.
12697         (free_numbers_of_iterations_estimates_loop): Free control ivs.
12698         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
12700 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
12702         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
12703         the target doesn't belong to the current function.
12705 2015-06-02  Marek Polacek  <polacek@redhat.com>
12707         PR middle-end/66345
12708         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
12709         get_maxval_strlen does not produce an INTEGER_CST.
12711 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
12713         * config/arc/constraints.md: Use lower-case names in match_code.
12714         * config/mmix/constraints.md: Likewise.
12716 2015-06-02  Richard Biener  <rguenther@suse.de>
12718         PR tree-optimization/65961
12719         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
12720         check and clarify dump message.
12721         (vect_build_slp_tree): If all children are built up from scalars
12722         build up the parent from scalars instead.
12723         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
12725 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12727         PR other/65366
12728         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
12729         instead of print ... .
12731 2015-06-02  Alan Modra  <amodra@gmail.com>
12733         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
12734         2014-08-11 change.
12736 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12738         PR tree-optimization/52563
12739         PR tree-optimization/62173
12740         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
12741         (alloc_iv, set_iv): New parameter.
12742         (determine_biv_step): Delete.
12743         (find_bivs): Inline original determine_biv_step.  Pass new
12744         argument to set_iv.
12745         (idx_find_step): Use no_overflow information for conversion.
12746         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
12747         resolve_mixers handle folded_casts.
12748         (instantiate_scev_name): Change bool parameter to bool pointer.
12749         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
12750         (instantiate_array_ref, instantiate_scev_not): Ditto.
12751         (instantiate_scev_3, instantiate_scev_2): Ditto.
12752         (instantiate_scev_1, instantiate_scev_r): Ditto.
12753         (instantiate_scev_convert, ): Change parameter.  Pass argument
12754         to chrec_convert_aggressive.
12755         (instantiate_scev): Change argument.
12756         (resolve_mixers): New parameter and set it.
12757         (scev_const_prop): New argument.
12758         * tree-scalar-evolution.h (resolve_mixers): New parameter.
12759         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
12760         of chrec_conert_1.
12761         (chrec_convert): New parameter.  Move definition below.
12762         (chrec_convert_aggressive): New parameter and set it.  Call
12763         convert_affine_scev.
12764         * tree-chrec.h (chrec_convert): New parameter.
12765         (chrec_convert_aggressive): Ditto.
12767 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12769         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
12770         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
12771         the LHS of a no-return call if its type has variable size.
12772         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12773         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
12775 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
12777         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
12778         * config.in: Regenerate.
12780 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
12782         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12783         consecutive accesses within outer-loop with force_vectorize
12784         for references with zero step in inner-loop.
12786 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12788         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
12789         rather than from gcc/build directory.
12791 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12793         PR target/65697
12794         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
12795         for __sync memory models, emit initial loads and final barriers as
12796         appropriate.
12798 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12800         PR target/65697
12801         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
12802         (aarch64_split_atomic_op): Check for __sync memory models, emit
12803         appropriate initial loads and final barriers.
12805 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12807         * Makefile.in: Fix gcov dependencies that should
12808         not point to a build folder.
12810 2015-06-01  Richard Biener  <rguenther@suse.de>
12812         Revert
12813         2015-05-29  Richard Biener  <rguenther@suse.de>
12815         PR tree-optimization/66314
12816         * tree-ssa-threadupdate.c (create_block_for_threading): Add
12817         parameter that says which loop the new block belongs to.
12818         (ssa_create_duplicates): Blocks duplicated for the threaded
12819         path belong to the loop of the thread destination.
12821 2015-06-01  Martin Liska  <mliska@suse.cz>
12823         * sched-deps.c: Include pool-alloc.h before
12824         cselib.h header file is included.
12826 2015-06-01  Richard Biener  <rguenther@suse.de>
12828         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
12829         functions.
12831 2015-06-01  Martin Liska  <mliska@suse.cz>
12833         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
12834         a function local variable.
12836 2015-06-01  Martin Liska  <mliska@suse.cz>
12838         * alloc-pool.c (create_alloc_pool): Remove.
12839         (empty_alloc_pool): Likewise.
12840         (free_alloc_pool): Likewise.
12841         (free_alloc_pool_if_empty): Likewise.
12842         (pool_alloc): Likewise.
12843         (pool_free): Likewise.
12844         * alloc-pool.h: Remove old declarations.
12846 2015-06-01  Martin Liska  <mliska@suse.cz>
12848         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
12849         (ira_create_object): Likewise.
12850         (ira_create_allocno): Likewise.
12851         (ira_create_live_range): Likewise.
12852         (copy_live_range): Likewise.
12853         (ira_finish_live_range): Likewise.
12854         (ira_free_allocno_costs): Likewise.
12855         (finish_allocno): Likewise.
12856         (finish_allocnos): Likewise.
12857         (initiate_prefs): Likewise.
12858         (ira_create_pref): Likewise.
12859         (finish_pref): Likewise.
12860         (finish_prefs): Likewise.
12861         (initiate_copies): Likewise.
12862         (ira_create_copy): Likewise.
12863         (finish_copy): Likewise.
12864         (finish_copies): Likewise.
12865         (finish_prefs): Likewise.
12867 2015-06-01  Martin Liska  <mliska@suse.cz>
12869         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
12870         (allocate_and_init_ipcp_value): Likewise.
12871         (ipcp_lattice::add_value): Likewise.
12872         (merge_agg_lats_step): Likewise.
12873         (ipcp_driver): Likewise.
12874         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
12875         (ipa_free_all_structures_after_iinln): Likewise.
12876         * ipa-prop.h: Likewise.
12878 2015-06-01  Martin Liska  <mliska@suse.cz>
12880         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
12881         pool allocator.
12882         (set_hint_predicate): Likewise.
12883         (inline_summary_alloc): Likewise.
12884         (reset_inline_edge_summary): Likewise.
12885         (reset_inline_summary): Likewise.
12886         (set_cond_stmt_execution_predicate): Likewise.
12887         (set_switch_stmt_execution_predicate): Likewise.
12888         (compute_bb_predicates): Likewise.
12889         (estimate_function_body_sizes): Likewise.
12890         (inline_free_summary): Likewise.
12892 2015-06-01  Martin Liska  <mliska@suse.cz>
12894         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
12895         (ipa_edge_duplication_hook): Likewise.
12896         (ipa_free_all_structures_after_ipa_cp): Likewise.
12897         (ipa_free_all_structures_after_iinln): Likewise.
12899 2015-06-01  Martin Liska  <mliska@suse.cz>
12901         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
12902         (ipa_profile_generate_summary): Likewise.
12903         (ipa_profile_read_summary): Likewise.
12904         (ipa_profile): Likewise.
12906 2015-06-01  Martin Liska  <mliska@suse.cz>
12908         * tree-ssa-structalias.c (new_var_info): Use new type-based
12909         pool allocator.
12910         (new_constraint): Likewise.
12911         (init_alias_vars): Likewise.
12912         (delete_points_to_sets): Likewise.
12914 2015-06-01  Martin Liska  <mliska@suse.cz>
12916         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
12917         (free_strinfo): Likewise.
12918         (pass_strlen::execute): Likewise.
12920 2015-06-01  Martin Liska  <mliska@suse.cz>
12922         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
12923         pool allocator.
12924         (vn_reference_insert_pieces): Likewise.
12925         (vn_phi_insert): Likewise.
12926         (visit_reference_op_call): Likewise.
12927         (copy_phi): Likewise.
12928         (copy_reference): Likewise.
12929         (process_scc): Likewise.
12930         (allocate_vn_table): Likewise.
12931         (free_vn_table): Likewise.
12933 2015-06-01  Martin Liska  <mliska@suse.cz>
12935         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
12936         pool allocator.
12937         (add_repeat_to_ops_vec): Likewise.
12938         (get_ops): Likewise.
12939         (maybe_optimize_range_tests): Likewise.
12940         (init_reassoc): Likewise.
12941         (fini_reassoc): Likewise.
12943 2015-06-01  Martin Liska  <mliska@suse.cz>
12945         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
12946         pool allocator.
12947         (bitmap_set_new): Likewise.
12948         (get_or_alloc_expr_for_constant): Likewise.
12949         (get_or_alloc_expr_for): Likewise.
12950         (phi_translate_1): Likewise.
12951         (compute_avail): Likewise.
12952         (init_pre): Likewise.
12953         (fini_pre): Likewise.
12955 2015-06-01  Martin Liska  <mliska@suse.cz>
12957         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
12958         (delete_dep_node): Likewise.
12959         (create_deps_list): Likewise.
12960         (free_deps_list): Likewise.
12961         (sched_deps_init): Likewise.
12962         (sched_deps_finish): Likewise.
12964 2015-06-01  Martin Liska  <mliska@suse.cz>
12966         * regcprop.c (free_debug_insn_changes): Use new type-based
12967         pool allocator.
12968         (replace_oldest_value_reg): Likewise.
12969         (pass_cprop_hardreg::execute): Likewise.
12971 2015-06-01  Martin Liska  <mliska@suse.cz>
12973         * ira-build.c (initiate_cost_vectors): Use new type-based
12974         pool allocator.
12975         (ira_allocate_cost_vector): Likewise.
12976         (ira_free_cost_vector): Likewise.
12977         (finish_cost_vectors): Likewise.
12979 2015-06-01  Martin Liska  <mliska@suse.cz>
12981         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
12982         pool allocator.
12983         (free_sched_pools): Likewise.
12984         * sel-sched-ir.h (_list_alloc): Likewise.
12985         (_list_remove): Likewise.
12987 2015-06-01  Martin Liska  <mliska@suse.cz>
12989         * stmt.c (add_case_node): Use new type-based pool allocator.
12990         (expand_case): Likewise.
12991         (expand_sjlj_dispatch_table): Likewise.
12993 2015-06-01  Martin Liska  <mliska@suse.cz>
12995         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
12996         (free_bb): Likewise.
12997         (pass_cse_reciprocals::execute): Likewise.
12999 2015-06-01  Martin Liska  <mliska@suse.cz>
13001         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
13002         (sra_deinitialize) Likewise.
13003         (create_access_1) Likewise.
13004         (build_accesses_from_assign) Likewise.
13005         (create_artificial_child_access) Likewise.
13007 2015-06-01  Martin Liska  <mliska@suse.cz>
13009         * dse.c (get_group_info):Use new type-based pool allocator.
13010         (dse_step0) Likewise.
13011         (free_store_info) Likewise.
13012         (delete_dead_store_insn) Likewise.
13013         (free_read_records) Likewise.
13014         (record_store) Likewise.
13015         (replace_read) Likewise.
13016         (check_mem_read_rtx) Likewise.
13017         (scan_insn) Likewise.
13018         (dse_step1) Likewise.
13019         (dse_step7) Likewise.
13021 2015-06-01  Martin Liska  <mliska@suse.cz>
13023         * df-scan.c (struct df_scan_problem_data):Use new type-based
13024         pool allocator.
13025         (df_scan_free_internal) Likewise.
13026         (df_scan_alloc) Likewise.
13027         (df_grow_reg_info) Likewise.
13028         (df_free_ref) Likewise.
13029         (df_insn_create_insn_record) Likewise.
13030         (df_mw_hardreg_chain_delete) Likewise.
13031         (df_insn_info_delete) Likewise.
13032         (df_free_collection_rec) Likewise.
13033         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
13034         (df_sort_and_compress_mws) Likewise.
13035         (df_ref_create_structure) Likewise.
13036         (df_ref_record) Likewise.
13038 2015-06-01  Martin Liska  <mliska@suse.cz>
13040         * df-problems.c (df_chain_create):Use new type-based pool allocator.
13041         (df_chain_unlink_1) Likewise.
13042         (df_chain_unlink) Likewise.
13043         (df_chain_remove_problem) Likewise.
13044         (df_chain_alloc) Likewise.
13045         (df_chain_free) Likewise.
13046         * df.h (struct dataflow) Likewise.
13048 2015-06-01  Martin Liska  <mliska@suse.cz>
13050         * cselib.c (new_elt_list):Use new type-based pool allocator.
13051         (new_elt_loc_list) Likewise.
13052         (unchain_one_elt_list) Likewise.
13053         (unchain_one_elt_loc_list) Likewise.
13054         (unchain_one_value) Likewise.
13055         (new_cselib_val) Likewise.
13056         (cselib_init) Likewise.
13057         (cselib_finish) Likewise.
13059 2015-06-01  Martin Liska  <mliska@suse.cz>
13061         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
13062         (sh_reorg) Likewise.
13064 2015-06-01  Martin Liska  <mliska@suse.cz>
13066         * cfg.c (initialize_original_copy_tables):Use new type-based
13067         pool allocator.
13068         (free_original_copy_tables) Likewise.
13069         (copy_original_table_clear) Likewise.
13070         (copy_original_table_set) Likewise.
13072 2015-06-01  Martin Liska  <mliska@suse.cz>
13074         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
13075         pool allocator.
13076         (asan_mem_ref_new) Likewise.
13077         (free_mem_ref_resources) Likewise.
13079 2015-06-01  Martin Liska  <mliska@suse.cz>
13081         * var-tracking.c (variable_htab_free):Use new type-based
13082         pool allocator.
13083         (attrs_list_clear) Likewise.
13084         (attrs_list_insert) Likewise.
13085         (attrs_list_copy) Likewise.
13086         (shared_hash_unshare) Likewise.
13087         (shared_hash_destroy) Likewise.
13088         (unshare_variable) Likewise.
13089         (var_reg_delete_and_set) Likewise.
13090         (var_reg_delete) Likewise.
13091         (var_regno_delete) Likewise.
13092         (drop_overlapping_mem_locs) Likewise.
13093         (variable_union) Likewise.
13094         (insert_into_intersection) Likewise.
13095         (canonicalize_values_star) Likewise.
13096         (variable_merge_over_cur) Likewise.
13097         (dataflow_set_merge) Likewise.
13098         (remove_duplicate_values) Likewise.
13099         (variable_post_merge_new_vals) Likewise.
13100         (dataflow_set_preserve_mem_locs) Likewise.
13101         (dataflow_set_remove_mem_locs) Likewise.
13102         (variable_from_dropped) Likewise.
13103         (variable_was_changed) Likewise.
13104         (set_slot_part) Likewise.
13105         (clobber_slot_part) Likewise.
13106         (delete_slot_part) Likewise.
13107         (loc_exp_insert_dep) Likewise.
13108         (notify_dependents_of_changed_value) Likewise.
13109         (emit_notes_for_differences_1) Likewise.
13110         (vt_emit_notes) Likewise.
13111         (vt_initialize) Likewise.
13112         (vt_finalize) Likewise.
13114 2015-06-01  Martin Liska  <mliska@suse.cz>
13116         * ira-color.c (init_update_cost_records):Use new type-based
13117         pool allocator.
13118         (get_update_cost_record) Likewise.
13119         (free_update_cost_record_list) Likewise.
13120         (finish_update_cost_records) Likewise.
13121         (initiate_cost_update) Likewise.
13123 2015-06-01  Martin Liska  <mliska@suse.cz>
13125         * lra.c (init_insn_regs): Use new type-based pool allocator.
13126         (new_insn_reg) Likewise.
13127         (free_insn_reg) Likewise.
13128         (free_insn_regs) Likewise.
13129         (finish_insn_regs) Likewise.
13130         (init_insn_recog_data) Likewise.
13131         (init_reg_info) Likewise.
13132         (finish_reg_info) Likewise.
13133         (lra_free_copies) Likewise.
13134         (lra_create_copy) Likewise.
13135         (invalidate_insn_data_regno_info) Likewise.
13137 2015-06-01  Martin Liska  <mliska@suse.cz>
13139         * lra-lives.c (free_live_range): Use new type-based pool allocator.
13140         (free_live_range_list) Likewise.
13141         (create_live_range) Likewise.
13142         (copy_live_range) Likewise.
13143         (lra_merge_live_ranges) Likewise.
13144         (remove_some_program_points_and_update_live_ranges) Likewise.
13145         (lra_live_ranges_init) Likewise.
13146         (lra_live_ranges_finish) Likewise.
13148 2015-06-01  Martin Liska  <mliska@suse.cz>
13150         * et-forest.c (et_new_occ): Use new type-based pool allocator.
13151         (et_new_tree): Likewise.
13152         (et_free_tree): Likewise.
13153         (et_free_tree_force): Likewise.
13154         (et_free_pools): Likewise.
13155         (et_split): Likewise.
13157 2015-06-01  Martin Liska  <mliska@suse.cz>
13159         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
13160         to header file.
13161         * alloc-pool.h (pool_allocator::pool_allocator): New function.
13162         (pool_allocator::release): Likewise.
13163         (inline pool_allocator::release_if_empty): Likewise.
13164         (inline pool_allocator::~pool_allocator): Likewise.
13165         (pool_allocator::allocate): Likewise.
13166         (pool_allocator::remove): Likewise.
13168 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13170         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
13171         in comment.
13173 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13175         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
13176         to fusible_ops.
13177         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
13178         (arm_macro_fusion_p): Likewise.
13179         (arm_macro_fusion_pair_p): Likewise.
13181 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13183         * config/aarch64/aarch64-protos.h (tune_params): Rename
13184         fuseable_ops to fusible_ops.
13185         * config/aarch64/aarch64.c (generic_tunings): Rename
13186         fuseable_ops to fusible_ops.
13187         (cortexa53_tunings): Likewise.
13188         (cortexa57_tunings): Likewise.
13189         (thunderx_tunings): Likewise.
13190         (xgene1_tunings): Likewise.
13191         (aarch64_macro_fusion_p): Likewise.
13192         (aarch64_macro_fusion_pair_p): Likewise.
13194 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13196         * config/s390/driver-native.c: New file.
13197         * config/s390/x-native: New file.
13198         * config.host: Add new files for s390.
13199         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
13200         and -march=native
13201         * config.gcc: Likewise.
13202         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
13203         * config/s390/s390-opts.h (enum processor_type): Ditto.
13204         * config/s390/s390.c (s390_option_override): Catch unhandled
13205         PROCESSOR_NATIVE
13207 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
13209         PR target/65527
13210         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
13211         redirection for instrumented calls.
13212         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
13213         (append_compiler_options): Append -fcheck-pointer-bounds.
13214         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
13215         (chkp_redirect_edge): New.
13216         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
13217         (chkp_redirect_edge): New.
13219 2015-06-01  Richard Biener  <rguenther@suse.de>
13221         PR tree-optimization/66280
13222         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
13223         def-use walking.
13225 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13227         * config/aarch64/aarch64.md
13228         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
13229         logic_shift_imm.
13231 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
13233         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
13234         Remove obsolete kludge.
13236 2015-06-01  Richard Biener  <rguenther@suse.de>
13238         * tree-ssa-reassoc.c (get_rank): Simplify.
13240 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13242         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
13243         * configure: Regenerated.
13245 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
13247         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
13248         issue (add space between string literal and macro).
13249         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
13251 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13253         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
13254         implict or explicit -fPIE or -fpie.
13256 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
13258         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
13260 2015-05-28  DJ Delorie  <dj@redhat.com>
13262         * expmed.c (extract_bit_field_1): Avoid clobbering a
13263         yet-to-be-used base/index register.
13265 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
13267         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
13268         (alias_stats): Add num_universal.
13269         (alias_set_subset_of): Special case pointers; be ready for NULL
13270         children.
13271         (alias_sets_conflict_p): Special case pointers; be ready for NULL
13272         children.
13273         (init_alias_set_entry): Break out from ...
13274         (record_alias_subset): ... here; propagate new fields;
13275         allocate children only when really needed.
13276         (get_alias_set): Do less generous pointer globbing.
13277         (dump_alias_stats_in_alias_c): Update statistics.
13279 2015-05-30  Alan Modra  <amodra@gmail.com>
13281         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
13282         correct block for use of r12.
13283         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
13285 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13287         PR target/66215
13288         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
13289         with -mhotpatch=.
13291 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
13293         PR tree-optimization/66142
13294         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
13295         virtual phis that feed themselves.
13297 2015-05-29  Richard Biener  <rguenther@suse.de>
13299         PR tree-optimization/66314
13300         * tree-ssa-threadupdate.c (create_block_for_threading): Add
13301         parameter that says which loop the new block belongs to.
13302         (ssa_create_duplicates): Blocks duplicated for the threaded
13303         path belong to the loop of the thread destination.
13305 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13307         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
13308         to cleanup-saved-temps.
13309         * doc/sourcebuild.texi (Clean up generated test files): Expand
13310         introduction.
13311         (dg-keep-saved-temps): Document new proc.
13312         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
13313         cleanup-saved-temps): Remove.
13315 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
13317         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
13318         gcc_AC_CHECK_DECLS.
13319         * configure: Regenerate.
13321 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13323         * config/nios2/linux.h (CPP_SPEC): Define.
13325 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13327         * config/microblaze/linux.h (CPP_SPEC): Define.
13329 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13331         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
13332         -pthread is specified.
13334 2015-05-28  Richard Biener  <rguenther@suse.de>
13336         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
13337         (vect_fixup_scalar_cycles_with_patterns): Likewise.
13338         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
13339         after pattern recog.
13340         (vect_create_epilog_for_reduction): Properly handle reductions
13341         with patterns.
13342         (vectorizable_reduction): Likewise.
13343         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
13344         reduction chains.
13345         (vect_get_constant_vectors): Create the correct number of
13346         initial values for reductions.
13347         (vect_schedule_slp_instance): Handle reduction chains that are
13348         type changing properly.
13349         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
13351 2015-05-28  Richard Biener  <rguenther@suse.de>
13353         PR tree-optimization/66142
13354         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
13355         values better in memcpy destination handling.  Handle non-aliasing
13356         we discover here.
13358 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
13360         PR target/63810
13361         * config/darwin-c.c (version_components): New global enum.
13362         (parse_version, version_as_legacy_macro)
13363         (version_as_modern_macro, macosx_version_as_macro): New functions.
13364         (version_as_macro): Remove.
13365         (darwin_cpp_builtins): Use new function.
13367 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
13369         * builtins.c (expand_builtin_acc_on_device): Mark parameters
13370         with ATTRIBUTE_UNUSED.
13372 2015-05-28  Julian Brown  <julian@codesourcery.com>
13374         PR libgomp/65742
13376         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
13377         sequence for !ACCEL_COMPILER.
13379 2015-05-28  Nick Clifton  <nickc@redhat.com>
13381         * config/rx/rx.c (push_regs): New function.  Extracts code from...
13382         (rx_expand_prologue): ... here.  Use push_regs to push even small
13383         spans of registers.
13384         (pop_regs): New function.
13385         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
13386         registers.
13388 2015-05-28  Richard Biener  <rguenther@suse.de>
13390         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
13391         member.
13392         (SLP_INSTANCE_BODY_COST_VEC): Remove.
13393         (vect_update_slp_costs_according_to_vf): Likewise.
13394         (vect_slp_analyze_operations): Update prototype.
13395         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
13396         vect_update_slp_costs_according_to_vf, adjust.
13397         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
13398         (vect_analyze_slp_cost_1): Likewise.
13399         (vect_analyze_slp_cost): Likewise.  Properly deal with
13400         widening reduction ops.  Commit body costs.
13401         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
13402         cost for loops from here.
13403         (vect_slp_analyze_operations): But do it from here when
13404         the vectorization factor is known and stmts are analyzed.
13405         (vect_bb_vectorization_profitable_p): Simplify.
13406         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
13407         (vect_update_slp_costs_according_to_vf): Remove.
13409 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
13410             H.J. Lu  <hongjiu.lu@intel.com>
13412         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
13413         (BUILD_CFLAGS): Likewise.
13414         (BUILD_CXXFLAGS): Likewise.
13415         (LINKER): Add @NO_PIE_FLAG@.
13416         (BUILD_LDFLAGS): Likewise.
13417         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
13418         --enable-default-pie.
13419         * common.opt (fPIE): Initialize to -1.
13420         (fpie): Likewise.
13421         (no-pie): New option.
13422         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
13423         * configure.ac: Add --enable-default-pie.
13424         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
13425         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
13426         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
13427         * gcc.c (NO_PIE_SPEC): New.
13428         (PIE_SPEC): Likewise.
13429         (NO_FPIE1_SPEC): Likewise.
13430         (FPIE1_SPEC): Likewise.
13431         (NO_FPIE2_SPEC): Likewise.
13432         (FPIE2_SPEC): Likewise.
13433         (NO_FPIE2_SPEC): Likewise.
13434         (FPIE_SPEC): Likewise.
13435         (NO_FPIE_SPEC): Likewise.
13436         (NO_FPIC1_SPEC): Likewise.
13437         (FPIC1_SPEC): Likewise.
13438         (NO_FPIC2_SPEC): Likewise.
13439         (FPIC2_SPEC): Likewise.
13440         (NO_FPIC2_SPEC): Likewise.
13441         (FPIC_SPEC): Likewise.
13442         (NO_FPIC_SPEC): Likewise.
13443         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
13444         (FPIE1_OR_FPIC1_SPEC): Likewise.
13445         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
13446         (FPIE2_OR_FPIC2_SPEC): Likewise.
13447         (NO_FPIE_AND_FPIC_SPEC): Likewise.
13448         (FPIE_OR_FPIC_SPEC): Likewise.
13449         (LD_PIE_SPEC): Likewise.
13450         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
13451         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
13452         * config/darwin.h (PIE_SPEC): Renamed to ...
13453         (DARWIN_PIE_SPEC): This.
13454         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
13455         * config/darwin9.h (PIE_SPEC): Renamed to ...
13456         (DARWIN_PIE_SPEC): This.
13457         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
13458         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13459         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
13460         FPIE2_OR_FPIC2_SPEC.
13461         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13462         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13463         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
13464         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13465         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13466         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13467         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
13468         * config/m32r/m32r.h (ASM_SPEC): Likewise.
13469         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
13470         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13471         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
13472         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
13473         * config/sparc/linux.h (ASM_SPEC): Likewise.
13474         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13475         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
13476         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
13477         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13478         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13479         * config/sparc/sparc.h (ASM_SPEC): Likewise.
13480         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
13481         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
13482         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
13483         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
13484         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
13485         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
13486         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
13487         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
13488         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
13489         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
13490         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
13491         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
13492         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13493         * config/vax/linux.h (ASM_SPEC): Likewise.
13494         * doc/install.texi: Document --enable-default-pie.
13495         * doc/invoke.texi: Document -no-pie.
13496         * config.in: Regenerated.
13497         * configure: Likewise.
13499 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13501         PR rtl-optimization/66168
13502         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
13503         can_move_invariant_reg.
13505 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
13507         PR target/66148
13508         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
13509         REG_EQUAL note when doing insert.
13511         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
13512         instead of "%d" for 'o' operand.
13514 2015-05-27  Nathan Sidwell  <nathan@acm.org>
13516         PR c++/66270
13517         * tree.c (build_pointer_type_for_mode): Canonical type does not
13518         inherit can_alias_all.
13519         (build_reference_type_for_mode): Likewise.
13521 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13523         * expr.h (array_at_struct_end_p): Move to...
13524         (array_ref_element_size): Likewise.
13525         (component_ref_field_offset): Likewise.
13526         * tree.h (array_ref_element_size): ...here.
13527         (array_at_struct_end_p): Likewise.
13528         (component_ref_field_offset): Likewise.
13529         * expr.c (array_ref_element_size): Move to...
13530         (array_ref_low_bound): Likewise.
13531         (array_at_struct_end_p): Likewise.
13532         (array_ref_up_bound): Likewise.
13533         (component_ref_field_offset): Likewise.
13534         * tree.c (array_ref_element_size): ...here.
13535         (array_ref_low_bound): Likewise.
13536         (array_ref_up_bound): Likewise.
13537         (array_at_struct_end_p): Likewise.
13538         (component_ref_field_offset): Likewise.
13540 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13541             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13543         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
13545 2015-05-27  Jason Merrill  <jason@redhat.com>
13547         PR bootstrap/66304
13548         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
13549         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
13550         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
13552 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
13554         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
13555         is true.
13557         * statistics.c (statistics_fini_pass): Print pass name.
13559 2015-05-27  Richard Biener  <rguenther@suse.de>
13561         PR tree-optimization/66272
13562         Revert parts of
13563         2014-08-15  Richard Biener  <rguenther@suse.de>
13565         PR tree-optimization/62031
13566         * tree-data-ref.c (dr_analyze_indices): Do not set
13567         DR_UNCONSTRAINED_BASE.
13568         (dr_may_alias_p): All indirect accesses have to go the
13569         formerly DR_UNCONSTRAINED_BASE path.
13570         * tree-data-ref.h (struct indices): Remove
13571         unconstrained_base member.
13572         (DR_UNCONSTRAINED_BASE): Remove.
13574 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
13576         * dwarf2out.c: Remove block_map.
13577         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
13578         (gen_lexical_block_die): Same.
13579         (dwarf2out_function_decl): Remove block_map use.
13580         (dwarf2out_c_finalize): Same.
13581         * tree-core.h (struct tree_block): Add die field.
13582         * tree.h (BLOCK_DIE): New.
13584 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13586         PR target/65358
13587         * expr.c (memory_load_overlap): New function.
13588         (emit_push_insn): When pushing partial args to the stack would
13589         clobber the register part load the overlapping part into a pseudo
13590         and put it into the hard reg after pushing.  Change return type
13591         to bool.  Add bool argument.
13592         * expr.h (emit_push_insn): Change return type to bool.
13593         Add bool argument.
13594         * calls.c (expand_call): Cancel sibcall optimization when encountering
13595         partial argument on targets with ARGS_GROW_DOWNWARD and
13596         !STACK_GROWS_DOWNWARD.
13597         (emit_library_call_value_1): Update callsite of emit_push_insn.
13598         (store_one_arg): Likewise.
13600 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13602         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
13604 2015-05-27  Martin Liska  <mliska@suse.cz>
13606         * Makefile.in: Add additional dependencies related to memory report
13607         enhancement.
13608         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
13609         * bitmap.c (struct bitmap_descriptor_d): Remove.
13610         (struct loc): Likewise.
13611         (struct bitmap_desc_hasher): Likewise.
13612         (bitmap_desc_hasher::hash): Likewise.
13613         (bitmap_desc_hasher::equal): Likewise.
13614         (get_bitmap_descriptor): Likewise.
13615         (bitmap_register): User new memory descriptor API.
13616         (register_overhead): Likewise.
13617         (bitmap_find_bit): Register nsearches and search_iter statistics.
13618         (struct bitmap_output_info): Remove.
13619         (print_statistics): Likewise.
13620         (dump_bitmap_statistics): Use new memory descriptor.
13621         * bitmap.h (struct bitmap_usage): New class.
13622         * genmatch.c: Extend header file inclusion.
13623         * genpreds.c: Likewise.
13624         * ggc-common.c (struct ggc_usage): New class.
13625         (struct ggc_loc_desc_hasher): Remove.
13626         (ggc_loc_desc_hasher::hash): Likewise.
13627         (ggc_loc_desc_hasher::equal): Likewise.
13628         (struct ggc_ptr_hash_entry): Likewise.
13629         (struct ptr_hash_hasher): Likewise.
13630         (ptr_hash_hasher::hash): Likewise.
13631         (ptr_hash_hasher::equal): Likewise.
13632         (make_loc_descriptor): Likewise.
13633         (ggc_prune_ptr): Likewise.
13634         (dump_ggc_loc_statistics): Use new memory descriptor.
13635         (ggc_record_overhead): Likewise.
13636         (ggc_free_overhead): Likewise.
13637         (final_cmp_statistic): Remove.
13638         (cmp_statistic): Likewise.
13639         (ggc_add_statistics): Liekwise.
13640         (ggc_prune_overhead_list): Likewise.
13641         * hash-map-traits.h: New file.
13642         * hash-map.h (struct default_hashmap_traits): Move the traits to a
13643         separate header file.
13644         * hash-set.h: Pass memory statistics info to ctor.
13645         * hash-table.c (void dump_hash_table_loc_statistics): New function.
13646         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
13647         (hash_table::~hash_table): Register memory release operation.
13648         (hash_table::alloc_entries): Handle memory allocation operation.
13649         (hash_table::expand): Likewise.
13650         * inchash.c (iterative_hash_hashval_t): Move implementation to header
13651         file.
13652         (iterative_hash_host_wide_int): Likewise.
13653         * inchash.h (class hash): Likewise.
13654         * mem-stats-traits.h: New file.
13655         * mem-stats.h: New file.
13656         (mem_location): Add new class.
13657         (mem_usage): Likewise.
13658         (mem_alloc_description): Likewise.
13659         * sese.c: Add new header file inclusision.
13660         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
13661         and hash_set.
13662         * tree-sra.c: Add new header file inclusision.
13663         * vec.c (struct vec_descriptor): Remove.
13664         (hash_descriptor): Likewise.
13665         (struct vec_usage): Likewise.
13666         (struct ptr_hash_entry): Likewise.
13667         (hash_ptr): Likewise.
13668         (eq_ptr): Likewise.
13669         (vec_prefix::register_overhead): Use new memory descriptor API.
13670         (vec_prefix::release_overhead): Likewise.
13671         (add_statistics): Remove.
13672         (dump_vec_loc_statistics): Use new memory descriptor API.
13673         * vec.h (struct vec_prefix): Likewise.
13674         (va_heap::reserve): Likewise.
13675         (va_heap::release): Likewise.
13676         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
13678 2015-05-27  Richard Biener  <rguenther@suse.de>
13680         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
13681         earlier and remove ??? comment.
13682         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
13683         and got called from loop analysis bail out.  Always pass the SLP
13684         node to the vectorizable_* functions.
13685         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
13686         the premature SLP check here.
13687         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
13688         detected SLP stmts.
13689         (vect_detect_hybrid_slp_1): Likewise.
13691 2015-05-26  Jeff Law  <law@redhat.com>
13693         * combine.c (find_split_point): Verify that the shift count is a
13694         constant when choosing (plus (ashift ...)) as a split point.
13696         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
13697         No functional changes.
13699 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
13701         * ipa-polymorphic-call.c
13702         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
13703         case when call target is already known.
13705 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
13707         PR target/65979
13708         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
13709         take into account the case that operands[1] and operands[2]
13710         are the same register.
13712 2015-05-26  Michael Matz  <matz@suse.de>
13714         PR middle-end/66251
13716         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
13717         stores.
13718         (vect_create_vectorized_demotion_stmts): Always set
13719         STMT_VINFO_VEC_STMT, also with SLP.
13720         (vectorizable_store): Handle strided group stores.
13722 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13724         PR target/66049
13725         * config/aarch64/aarch64.md
13726         (*adds_shift_imm_<mode>):  New pattern.
13727         (*subs_shift_imm_<mode>):  Likewise.
13728         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
13729         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13730         (*add_uxt<mode>_shift2): Likewise.
13731         (*add_uxtsi_shift2_uxtw): Likewise.
13732         (*sub_uxt<mode>_shift2): Likewise.
13733         (*sub_uxtsi_shift2_uxtw): Likewise.
13735 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
13737         * config/rs6000/constraints.md (Y, U): Use match_test.
13739 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13741         PR target/52144
13742         * config/arm/arm.c (arm_option_check_internal)
13743         (arm_option_params_internal): Check opts->target_flags to set macros.
13744         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13745         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
13746         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13747         (builtin_define): Replaced with def_or_undef_macro.
13748         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13749         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
13750         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13751         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
13752         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
13753         (TARGET_ARM_FEATURE_LDREX_P)
13754         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
13755         * config/arm/arm-c.c (def_or_undef_macro): New function.
13756         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
13758 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13760         * c-common.h (builtin_define_with_int_value)
13761         (builtin_define_type_sizeof): Declare.
13762         * c-cppbuiltin.c (builtin_define_with_int_value)
13763         (builtin_define_type_sizeof): Externalize.
13764         (builtin_define_std): Cleanup declaration.
13765         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
13766         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
13767         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
13768         (builtin_define, builtin_assert): New macros.
13770 2015-05-26  Richard Biener  <rguenther@suse.de>
13772         PR tree-optimization/66142
13773         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
13774         MEM_REFs for the same base address.
13776 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13778         PR ipa/66181
13779         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
13781 2015-05-26  Jason Merrill  <jason@redhat.com>
13783         * configure.ac: Set CXXFLAGS for ISL test.
13784         * configure: Regenerate.
13786         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
13787         strstr and basename.
13788         * configure: Regenerate.
13790 2015-05-26  Richard Biener  <rguenther@suse.de>
13792         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
13793         X % C -> X & (C - 1) for C being a power-of two to ...
13794         * match.pd: ... patterns.
13796 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
13798         * match.pd (swapped_tcc_comparison): New operator list.
13799         (-A CMP -B): New simplification.
13800         * fold-const.c (fold_comparison): Remove corresponding code.
13802 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13804         * caller-save.c (init_caller_save): Base temporary register numbers
13805         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
13806         * cfgloopanal.c (init_set_costs): Likewise.
13807         * dojump.c (prefer_and_bit_test): Likewise.
13808         * expr.c (init_expr_target): Likewise.
13809         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13810         * lower-subreg.c (init_lower_subreg): Likewise.
13811         * postreload.c (reload_cse_regs_1): Likewise.
13813 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13815         * gensupport.h (compute_test_codes): Declare.
13816         * gensupport.c (compute_predicate_codes): Rename to...
13817         (compute_test_codes): ...this.  Generalize error message.
13818         (process_define_predicate): Update accordingly.
13819         * genpreds.c (compute_maybe_allows): Delete.
13820         (add_constraint): Use compute_test_codes to determine whether
13821         something can accept a SUBREG, REG or MEM.
13823 2015-05-26  Torvald Riegel  <triegel@redhat.com>
13825         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
13826         'memory model' to align with C++11; fix description of memory orders;
13827         fix a few typos.
13829 2015-05-26  Richard Biener  <rguenther@suse.de>
13831         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
13832         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
13833         detect whether we apply SLP.  Remove call to
13834         vect_update_slp_costs_according_to_vf.
13835         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
13836         vect_update_slp_costs_according_to_vf from here.  Dispatch
13837         to vect_slp_analyze_operations to analyze SLP stmts.
13838         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
13839         unused bb_vec_info parameter, adjust assert.
13840         (vect_slp_analyze_operations): Pass in the slp instance tree
13841         instead of bb_vec_info.
13842         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
13843         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
13845 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13847         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
13848         Q_REGS.  Expand comment.
13849         (REG_CLASS_NAMES): Ditto.
13850         (REG_CLASS_CONTENTS): Ditto.
13852 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
13854         PR target/66274
13855         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
13856         when LEGACY_INT_REGNO_P is processed.
13858 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13860         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
13862 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13864         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
13865         register if not marked dead/unused, before return.
13867 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13869         PR lto/66180
13870         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
13871         is set; check for assembler name at LTO time.
13872         (type_in_anonymous_namespace): Remove hacks, check that all
13873         anonymous types are called "<anon>"
13874         (odr_type_p): Simplify; add check for "<anon>"
13875         (odr_subtypes_equivalent): Add odr_type_p check.
13876         * tree.c (need_assembler_name_p): Even anonymous namespace needs
13877         assembler name.
13879 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13881         * ipa-utils.h (method_class_type): Remove.
13882         * cgraphunit.c (walk_polymorphic_call_targets): Use
13883         TYPE_METHOD_BASETYPE.
13884         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
13885         on main variants only.
13886         (method_class_type): Remove.
13887         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
13888         (build_type_inheritance_graph): Likewise.
13889         * ipa-icf.c (sem_function::equals_wpa): Likewise.
13890         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
13891         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
13893 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13895         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
13896         is_typedef_decl, typedef_variant_p): Constify.
13897         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
13898         is_typedef_decl, typedef_variant_p): Constify.
13900 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13902         * defaults.h (gen_tablejump): New function.
13903         (HAVE_tablejump): Add default value.
13904         * expr.c: Adjust.
13905         * stmt.c: Likewise.
13907 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13909         * defaults.h (gen_store_multiple): New function.
13910         (HAVE_store_multiple): Add default value.
13911         * expr.c (move_block_from_reg): Adjust.
13913 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13915         * defaults.h (gen_load_multiple): New function.
13916         (HAVE_load_multiple): Add default value.
13917         * expr.c (move_block_to_reg): Adjust.
13919 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13921         * defaults.h (gen_mem_signal_fence): New function.
13922         (HAVE_mem_signal_fence): Add default value.
13923         * optabs.c: Adjust.
13925 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13927         * defaults.h (gen_memory_barrier): New function.
13928         (HAVE_memory_barrier): Add default value.
13929         * optabs.c: Adjust.
13931 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13933         * defaults.h (gen_mem_thread_fence): New function.
13934         (HAVE_mem_thread_fence): Add default definition.
13935         * optabs.c: Adjust.
13937 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13939         * combine.c (find_split_point): Check the value of HAVE_lo_sum
13940         instead of if it is defined.
13941         (combine_simplify_rtx): Likewise.
13942         * lra-constraints.c (process_address_1): Likewise.
13943         * config/darwin.c: Adjust.
13944         * genconfig.c (main): Always define HAVE_lo_sum.
13946 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13948         * genmatch.c (parser::parse_operation): Reject expanding
13949         operator-list inside 'for'.
13951 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13953         * genmatch.c (parser::parse_for): Reject iterator if used as
13954         operator-list.
13956 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13958         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
13959         after end of id-list.
13961 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13963         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
13964         we do not try to compute canonical type for type that does not need
13965         alias set.
13966         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
13967         FUNCITON_TYPE.
13968         * tree.h (type_with_alias_set_p): New.
13970 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13972         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
13973         function attributes.
13974         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
13976 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
13978         * Makefile.in (check_gcc_parallelize): Delete.
13979         (lang_checks_parallelized): Update comment.
13981 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
13983         PR rtl-optimization/66237
13984         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
13985         location of an "as_a" cast.
13987 2015-05-22  Jeff Law  <law@redhat.com>
13989         * config/pa/pa.md (non-canonical shift-add insns): Remove.
13990         (peepholes with non-canonical RTL sources): Remove.
13991         (peepholes for indexed stores of FP regs in integer modes): Match and
13992         generate canonical RTL.
13994 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13996         PR tree-optimization/63387
13997         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
13998         ((x ord x) & (y ord y) -> (x ord y),
13999         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
14000         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
14001         vectors like scalars.
14003 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
14005         * convert.c (convert_to_integer, convert_to_vector): Include the
14006         types in the error message.
14008 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
14010         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
14011         simplifications.
14013 2015-05-22  Jeff Law  <law@redhat.com>
14015         * config/pa/pa.md (integer_indexed_store splitters): Use
14016         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
14017         insns -- adjusting the constant 2nd operand accordingly.
14019         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
14020         (plus (ashift X log2) Y) if it is a split point.
14022         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
14023         out of hppa_legitimize_address to handle both forms of a multiply
14024         by 2, 4 or 8.
14025         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
14026         Always generate the ASHIFT variant as the result is not directly
14027         used in a MEM.  Update comments and refactor slightly to improve
14028         readability.
14030 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14032         PR target/65491
14033         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
14034         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
14035         (aarch64_composite_type_p): Return false if given type and mode are
14036         for a short vector.
14038 2015-05-22  Richard Biener  <rguenther@suse.de>
14040         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
14041         member.
14042         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
14043         patterns when determining whether SLP is pure.
14044         (vect_is_slp_reduction): Remove check for pattern stmts.
14045         (vect_is_simple_reduction_1): Remove dead code.
14046         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
14047         (vect_get_and_check_slp_defs): Pass in the stmt number.
14048         Allow the first def in a reduction to be not a pattern stmt when
14049         the rest of the stmts def are patterns.
14050         (vect_build_slp_tree_1): Allow tcc_expression codes like
14051         SAD_EXPR and DOT_PROD_EXPR.
14052         (vect_build_slp_tree): Adjust.
14053         (vect_analyze_slp): Refactor and move BB vect error message ...
14054         (vect_slp_analyze_bb_1): ... here.
14056 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
14058         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
14059         for CSWTCH temporary.
14061 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14063         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
14064         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
14065         unknown unspecs.
14067 2015-05-22  Richard Biener  <rguenther@suse.de>
14069         PR tree-optimization/66251
14070         * tree-vect-stmts.c (vectorizable_conversion): Properly
14071         set STMT_VINFO_VEC_STMT even for the SLP case.
14073 2015-05-22  Marek Polacek  <polacek@redhat.com>
14075         * doc/extend.texi: Use @pxref instead of @xref.
14077 2015-05-22  hiraditya  <hiraditya@msn.com>
14079         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
14080         redundant if.
14082 2015-05-22  Richard Biener  <rguenther@suse.de>
14084         PR tree-optimization/65701
14085         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14086         Move peeling cost models into one place.  Peel for alignment
14087         for single loads only if an aligned load is cheaper than
14088         an unaligned load.
14090 2015-05-22  Marek Polacek  <polacek@redhat.com>
14092         PR c/47043
14093         * doc/extend.texi (Enumerator Attributes): New section.
14094         Document syntax of enumerator attributes.
14096 2015-05-22  Richard Biener  <rguenther@suse.de>
14098         * tree-vect-loop.c (get_reduction_op): New function.
14099         (vect_model_reduction_cost): Use it, add reduc_index parameter.
14100         Make ready for BB reductions.
14101         (vect_create_epilog_for_reduction): Use get_reduction_op.
14102         (vectorizable_reduction): Init reduc_index to a valid value.
14103         Adjust vect_model_reduction_cost call.
14104         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
14105         operand for reduction defaults.  Add SAD_EXPR support.
14106         Assert we have a neutral op for SLP reductions.
14107         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
14108         walking pattern stmt ops only recurse to SSA names.
14110 2015-05-22  Richard Biener  <rguenther@suse.de>
14112         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
14113         assert with guard, remove check on detected reduction.
14114         (vect_recog_sad_pattern): Likewise.
14115         (vect_recog_widen_sum_pattern): Likewise.
14117 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14119         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
14120         __always_inline__ attribute.
14121         (vaesdq_u8): Likewise.
14122         (vaesmcq_u8): Likewise.
14123         (vaesimcq_u8): Likewise.
14124         (vsha1cq_u32): Likewise.
14125         (vsha1mq_u32): Likewise.
14126         (vsha1pq_u32): Likewise.
14127         (vsha1h_u32): Likewise.
14128         (vsha1su0q_u32): Likewise.
14129         (vsha1su1q_u32): Likewise.
14130         (vsha256hq_u32): Likewise.
14131         (vsha256h2q_u32): Likewise.
14132         (vsha256su0q_u32): Likewise.
14133         (vsha256su1q_u32): Likewise.
14134         (vmull_p64): Likewise.
14135         (vmull_high_p64): Likewise.
14137 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14139         * final.c (final_scan_insn): Don't check HAVE_peephole with the
14140         preprocessor.
14141         * output.h: Likewise.
14142         * genconfig.c (main): Alwways define HAVE_peephole.
14143         * genpeep.c: Don't emit checks of HAVE_peephole.
14145 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14147         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
14148         check HAVE_conditional_move with the preprocessor.
14150 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14152         * genconfig.c (main): Always define HAVE_conditional_move.
14153         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
14154         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
14155         is defined.
14157 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14159         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
14160         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
14161         and FRAME_POINTER_REGNUM with the preprocessor.
14163 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14165         * defaults.h: Add default for STACK_PUSH_CODE.
14166         * expr.c: Don't redefine STACK_PUSH_CODE.
14167         * recog.c: Likewise.
14169 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14171         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
14172         sched-deps.c: Use if instead of preprocessor checks with
14173         STACK_GROWS_DOWNWARD.
14175 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14177         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
14178         is defined.
14179         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
14180         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
14181         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
14182         * doc/tm.texi: Regenerate.
14184 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14186         PR target/66232
14187         * config/i386/constraints.md (Bg): New constraint for GOT memory
14188         operand.
14189         * config/i386/i386.md (*call_got_x32): New pattern.
14190         (*call_value_got_x32): Likewise.
14191         * config/i386/predicates.md (GOT_memory_operand): New predicate.
14193 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
14195         PR tree-optimization/66233
14196         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14197         Simplify.
14199 2015-05-21  Jeff Law  <law@redhat.com>
14201         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
14202         than MULT for shadd sequences.
14204 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
14206         * alias.c (alias_stats): New static var.
14207         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
14208         (dump_alias_stats_in_alias_c): New function.
14209         * alias.h (dump_alias_stats_in_alias_c): Declare.
14210         * tree-ssa-alias.c (dump_alias_stats): Call it.
14212 2015-05-08  Michael Matz  <matz@suse.de>
14214         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
14215         to strided_p.
14216         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
14217         (STMT_VINFO_STRIDED_P): ... this.
14218         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
14219         (vect_verify_datarefs_alignment): Likewise.
14220         (vect_enhance_data_refs_alignment): Likewise.
14221         (vect_analyze_data_ref_access): Likewise.
14222         (vect_analyze_data_refs): Accept strided stores.
14223         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
14224         (vect_model_load_cost): Adjust for macro rename.
14225         (vectorizable_mask_load_store): Likewise.
14226         (vectorizable_load): Likewise.
14227         (vectorizable_store): Open code strided stores.
14229 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14231         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
14232         Document sqrt_insn.
14234 2015-05-21  Richard Biener  <rguenther@suse.de>
14236         PR c++/66211
14237         * match.pd: Guard pattern optimzing (int)(float)int
14238         conversions to apply only on GIMPLE.
14240 2015-05-21  Jeff Law  <law@redhat.com>
14242         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
14243         multiply-accumulate/shift-add insn generation.
14245 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
14247         PR target/54236
14248         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
14249         operands[1] are the same.
14251 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
14253         PR middle-end/66221
14254         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
14255         build_distinct_type_copy to copy bounds.
14257 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14259         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
14260         Change to unsigned int.
14262 2015-05-20  Jeff Law  <law@redhat.com>
14264         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
14265         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
14266         (pa_shadd_constant_p): Allow constants for shadd insns rather
14267         than valid scaling constants for memory addresses.
14268         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
14269         * config/pa/predicates.md (mem_shadd_operand): New predicate.
14270         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
14271         (shift-add insns using ASHIFT): New patterns.
14273 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
14275         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
14276         feasible.
14277         (fix_up_fall_thru_edges): Likewise.
14278         (fix_crossing_conditional_branches): Likewise. Promote jump targets
14279         from to rtx_insn to rtx_code_label where feasible.
14280         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
14281         gen_move_insn (returned type changed to rtx_insn).
14282         * builtins.c (expand_errno_check): Fix arguments of
14283         do_compare_rtx_and_jump (now expects rtx_code_label).
14284         (expand_builtin_acc_on_device): Likewise.
14285         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
14286         invert_jump (now exprects rtx_jump_insn).
14287         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
14288         (construct_init_block): Use rtx_code_label.
14289         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
14290         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
14291         calling redirect_jump.
14292         (patch_jump_insn): Likewise.
14293         (redirect_branch_edge): Likewise.
14294         (force_nonfallthru_and_redirect): Likewise.
14295         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
14296         when suitable.
14297         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
14298         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
14299         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
14300         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
14301         to store the value retured by gen_label_rtx.
14302         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
14303         rtx_jump_insn.
14304         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
14305         (split_branches): Fix calls of redirect_jump.
14306         * dojump.c (jumpifnot): Promote argument type from rtx to
14307         rtx_code_label.
14308         (jumpifnot_1): Likewise.
14309         (jumpif): Likewise.
14310         (jumpif_1): Likewise.
14311         (do_jump_1): Likewise.
14312         (do_jump): Likewise. Use rtx_code_label when feasible.
14313         (do_jump_by_parts_greater_rtx): Likewise.
14314         (do_jump_by_parts_zero_rtx): Likewise.
14315         (do_jump_by_parts_equality_rtx): Likewise.
14316         (do_compare_rtx_and_jump): Likewise.
14317         * dojump.h: Update function prototypes.
14318         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
14319         returns rtx_insn).
14320         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
14321         rtx_jump_insn.
14322         (emit_label_before): Likewise.
14323         (emit_jump_insn_after_noloc): Likewise.
14324         (emit_jump_insn_after_setloc): Likewise.
14325         (emit_jump_insn_after): Likewise
14326         (emit_jump_insn_before_setloc): Likewise.
14327         (emit_jump_insn_before): Likewise.
14328         (emit_label_before): Promote return type to rtx_code_label.
14329         (emit_label): Likewise.
14330         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
14331         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
14332         gen_move_insn.
14333         (emit_stack_restore): Likewise.
14334         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
14335         (do_cmp_and_jump): Likewise.
14336         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
14337         from rtx to rtx_code_label.
14338         (gen_move_insn_uncast): New function.
14339         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
14340         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
14341         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
14342         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
14343         invert_jump_1 and redirect_jump_1.
14344         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
14345         do_compare_rtx_and_jump.
14346         (expand_addsub_overflow): Likewise.
14347         (expand_neg_overflow): Likewise.
14348         (expand_mul_overflow): Likewise.
14349         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
14350         return value of gen_move_insn.
14351         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
14352         * loop-doloop.c (add_test): Use rtx_code_label.
14353         (doloop_modify): Likewise.
14354         (doloop_optimize): Likewise.
14355         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
14356         * lra-constraints.c (emit_spill_move): Remove cast of value returned
14357         by gen_move_insn.
14358         (inherit_reload_reg): Add cast when calling dump_insn_slim.
14359         (split_reg): Likewise.
14360         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
14361         gen_move_insn.
14362         * optabs.c (expand_binop_directly): Remove casts of values returned by
14363         maybe_gen_insn.
14364         (expand_unop_direct): Likewise.
14365         (expand_abs): Likewise.
14366         (maybe_emit_unop_insn): Likewise.
14367         (maybe_gen_insn): Promote return type to rtx_insn.
14368         * optabs.h: Update prototype of maybe_gen_insn.
14369         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
14370         redundant cast.
14371         * recog.c (struct peep2_insn_data): Promote type of insn field to
14372         rtx_insn.
14373         (peep2_reinit_state): Use NULL instead of NULL_RTX.
14374         (peep2_attempt): Remove casts of insn in peep2_insn_data.
14375         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
14376         * recog.h (struct insn_gen_fn): Promote return types of function
14377         pointers and operator ().from rtx to rtx_insn.
14378         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
14379         (fill_eager_delay_slots): Likewise.
14380         (relax_delay_slots): Likewise.
14381         (make_return_insns): Likewise.
14382         (dbr_schedule): Likewise.
14383         (optimize_skips): Likewise.
14384         (reorg_redirect_jump): Likewise.
14385         (fill_slots_from_thread): Likewise.
14386         * reorg.h: Update prototypes.
14387         * resource.c (find_dead_or_set_registers): Use dyn_cast to
14388         rtx_jump_insn instead of check.  Use it's jump_target method.
14389         * rtl.h (rtx_jump_insn::jump_label): Define new method.
14390         (rtx_jump_insn::jump_target): Define new method.
14391         (rtx_jump_insn::set_jump_target): Define new method.
14392         * rtlanal.c (tablejump_p): Promote type of one local variable.
14393         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
14394         (sched_analyze_insn): Likewise.
14395         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
14396         (print_insn): Likewise.
14397         * stmt.c (label_rtx): Promote return type to rtx_insn.
14398         (force_label_rtx): Likewise.
14399         (jump_target_rtx): Define new function.
14400         (expand_label): Use it, get rid of one cast.
14401         (expand_naked_return): Promote rtx to rtx_code_label.
14402         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
14403         (expand_case): Use rtx_code_label instread of rtx where feasible.
14404         (expand_sjlj_dispatch_table): Likewise.
14405         (emit_case_nodes): Likewise.
14406         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
14407         * store-motion.c (insert_store): Make use of new return type of
14408         gen_move_insn and remove a cast.
14409         (replace_store_insn): Likewise.
14411 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
14413         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
14414         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
14416 2015-05-20  Jeff Law  <law@redhat.com>
14418         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
14419         dispose of the jump thread path when the jump threading
14420         opportunity is cancelled.
14422 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14424         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
14425         when printing the caret character.
14427 2015-05-20  Marek Polacek  <polacek@redhat.com>
14429         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
14431 2015-05-20  Marek Polacek  <polacek@redhat.com>
14433         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
14434         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
14435         * gimple-fold.c (canonicalize_bool): Likewise.
14436         (same_bool_result_p): Likewise.
14437         * tree-if-conv.c (parse_predicate): Likewise.
14439 2015-05-20  Marek Polacek  <polacek@redhat.com>
14441         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
14442         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
14444 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14446         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
14447         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
14448         values.
14450 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
14452         * config/mips/mips.h (micromips_globals): Declare.
14454 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
14456         * timevar.def (TV_INITIALIZE_RTL): New.
14457         * toplev.c (initialize_rtl): Use an auto_timevar to account this
14458         function's time to TV_INITIALIZE_RTL.
14460 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14462         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
14463         gimple_build_nop calls.
14464         (chkp_find_bounds_for_elem): Likewise.
14465         (chkp_get_zero_bounds): Likewise.
14466         (chkp_get_none_bounds): Likewise.
14467         (chkp_get_bounds_by_definition): Likewise.
14468         (chkp_generate_extern_var_bounds): Likewise.
14469         (chkp_get_bounds_for_decl_addr): Likewise.
14470         (chkp_get_bounds_for_string_cst): Likewise.
14472 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
14474         PR tree-optimization/65447
14475         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
14476         (dump_use, dump_uses): Support to dump sub use.
14477         (record_use): New parameters to support sub use.  Remove call to
14478         dump_use.
14479         (record_sub_use, record_group_use): New functions.
14480         (compute_max_addr_offset, split_all_small_groups): New functions.
14481         (group_address_uses, rewrite_use_address): New functions.
14482         (strip_offset): New declaration.
14483         (find_interesting_uses_address): Call record_group_use.
14484         (add_candidate): New assertion.
14485         (infinite_cost_p): Move definition forward.
14486         (add_costs): Check INFTY cost and return immediately.
14487         (get_computation_cost_at): Clear setup cost and dependent bitmap
14488         for sub uses.
14489         (determine_use_iv_cost_address): Compute cost for sub uses.
14490         (rewrite_use_address_1): Rename from old rewrite_use_address.
14491         (free_loop_data): Free sub uses.
14492         (tree_ssa_iv_optimize_loop): Call group_address_uses.
14494 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14495             Jim Wilson  <jim.wilson@linaro.org>
14497         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
14498         new  fields loadv and storev.
14499         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
14500         Initialize loadv and storev.
14501         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
14502         (cortexa53_extra_costs): Likewise.
14503         (cortexa57_extra_costs): Likewise.
14504         (xgene1_extra_costs): Likewise.
14505         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
14506         rtx_costs.
14508 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14510         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
14511          storev.
14512         (cortexa8_extra_costs): Likewise.
14513         (cortexa5_extra_costs): Likewise.
14514         (cortexa7_extra_costs): Likewise.
14515         (cortexa12_extra_costs): Likewise.
14516         (cortexa15_extra_costs): Likewise.
14517         (v7m_extra_costs): Likewise.
14519 2015-05-20  Jeff Law  <law@redhat.com>
14521         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
14522         instead of open-coded version.  Also delete the jump thread created
14523         within this function.
14525 2015-05-20  Alan Modra  <amodra@gmail.com>
14527         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
14528         stack adjusting insn.  Formatting.
14529         (rs6000_emit_prologue): Track stack adjusting insn, and use of
14530         r12.  If possible, emit first -fsplit-stack arg pointer insn
14531         before stack adjust.  Don't use r12 to save cr if split-stack.
14533 2015-05-20  Alan Modra  <amodra@gmail.com>
14535         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
14536         Define.
14537         (rs6000_supports_split_stack): New function.
14538         * gcc/config/rs6000/rs6000.c (machine_function): Add
14539         split_stack_arg_pointer.
14540         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
14541         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
14542         rather than virtual_incoming_args_rtx.
14543         (rs6000_va_start): Likewise.
14544         (split_stack_arg_pointer_used_p): New function.
14545         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
14546         (morestack_ref): New var.
14547         (gen_add3_const, rs6000_expand_split_stack_prologue,
14548         rs6000_internal_arg_pointer, rs6000_live_on_entry,
14549         rs6000_split_stack_space_check): New functions.
14550         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
14551         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
14552         (UNSPECV_SPLIT_STACK_RETURN): Define.
14553         (split_stack_prologue, load_split_stack_limit,
14554         load_split_stack_limit_di, load_split_stack_limit_si,
14555         split_stack_return, split_stack_space_check): New expands and insns.
14556         * gcc/config/rs6000/rs6000-protos.h
14557         (rs6000_expand_split_stack_prologue): Declare.
14558         (rs6000_split_stack_space_check): Declare.
14560 2015-05-20  Alan Modra  <amodra@gmail.com>
14562         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
14563         (direct_return): Test vrsave_size rather than vrsave_mask.
14564         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
14565         (rs6000_emit_epilogue): Likewise.
14567 2015-05-20  Alan Modra  <amodra@gmail.com>
14569         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
14570         when not saving registers.
14571         (debug_stack_info): Adjust to omit printing unused offsets,
14572         as before.
14573         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
14574         expression.
14576 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14578         PR c++/65835
14579         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
14580         value_type to const char *.
14582 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
14584         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
14585         to build a biarch toolchain again.
14587 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14589         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
14590         or implicit declarations.
14591         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
14592         into it.
14593         (get_odr_type): Check type has linkage before adding bases.
14594         (register_odr_type): Check that type has linkage before adding it.
14595         (type_known_to_have_no_deriavations_p): Rename to ..
14596         (type_known_to_have_no_derivations_p): This one.
14597         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
14598         (type_known_to_have_no_derivations_p): This one.
14599         * ipa-polymorphic-call.c
14600         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
14601         type has linkage.
14603 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14605         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
14606         (layout_type): Use RECORD_OR_UNION_TYPE_P.
14608 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14610         * config/s390/s390.c (s390_vector_bool_type_p): New function.
14611         (s390_invalid_binary_op): New function.
14612         (TARGET_INVALID_BINARY_OP): Define macro.
14614 2015-05-19  David Sherwood  <david.sherwood@arm.com>
14616         * loop-invariant.c (create_new_invariant): Don't calculate address cost
14617         if mode is not a scalar integer.
14618         (get_inv_cost): Increase computational cost for unused invariants.
14620 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14622         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
14623         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
14624         * config/s390/s390-builtin-types.def: New file.
14625         * config/s390/s390-builtins.def: New file.
14626         * config/s390/s390-builtins.h: New file.
14627         * config/s390/s390-c.c: New file.
14628         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
14629         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
14630         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
14631         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
14632         prototypes.
14633         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
14634         Include.
14635         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
14636         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
14637         variable definitions.
14638         (s390_const_operand_ok): New function.
14639         (s390_expand_builtin): Rewrite.
14640         (s390_init_builtins): New function.
14641         (s390_handle_vectorbool_attribute): New function.
14642         (s390_attribute_table): Add s390_vector_bool attribute.
14643         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
14644         (s390_branch_condition_mask): Generate masks for new modes.
14645         (s390_expand_vec_compare_cc): New function.
14646         (s390_mangle_type): Add mangling for vector bool types.
14647         (enum s390_builtin): Remove.
14648         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
14649         efpc builtins.
14650         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
14651         s390_cpu_cpp_builtins.
14652         (REGISTER_TARGET_PRAGMAS): New macro.
14653         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
14654         (insn_cmp mode attribute): Add new CC modes.
14655         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
14656         (lcbb): New pattern definition.
14657         * config/s390/s390intrin.h: Include vecintrin.h.
14658         * config/s390/t-s390: New file.
14659         * config/s390/vecintrin.h: New file.
14660         * config/s390/vector.md: Include vx-builtins.md.
14661         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
14662         support.
14664 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14666         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
14667         CCVFHE.
14668         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
14669         (s390_select_ccmode): Likewise.
14670         (s390_canonicalize_comparison): Swap operands if necessary.
14671         (s390_expand_vec_compare_scalar): Expand DFmode compare using
14672         single element vector instructions.
14673         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
14674         (s390_branch_condition_mask): Generate CC masks for the new modes.
14675         * config/s390/s390.md (v0, vf, vd): New mode attributes.
14676         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
14677         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
14678         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
14679         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
14680         (*extend<DSF:mode><BFP:mode>2): New insn definition.
14681         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
14682         (extend<DSF:mode><BFP:mode>2): Turn into expander.
14683         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
14684         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
14685         (sqrt<mode>2): Add vector instruction.
14687 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14689         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
14690         constraints.
14691         * config/s390/predicates.md (const0_operand, constm1_operand)
14692         (constable_operand): Accept vector operands.
14693         * config/s390/s390-modes.def: Add supported vector modes.
14694         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
14695         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
14696         (s390_bytemask_vector_p, s390_expand_vec_strlen)
14697         (s390_expand_vec_compare, s390_expand_vcond)
14698         (s390_expand_vec_init): Add prototypes.
14699         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
14700         (s390_vector_mode_supported_p): New function.
14701         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
14702         (s390_contiguous_bitmask_vector_p): New function.
14703         (s390_bytemask_vector_p): New function.
14704         (s390_split_ok_p): Vector regs don't work either.
14705         (regclass_map): Add VEC_REGS.
14706         (s390_legitimate_constant_p): Handle vector constants.
14707         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
14708         (legitimate_reload_vector_constant_p): New function.
14709         (s390_preferred_reload_class): Handle CONST_VECTOR.
14710         (s390_reload_symref_address):  Likewise.
14711         (s390_secondary_reload): Vector memory instructions only support
14712         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
14713         (s390_emit_ccraw_jump): New function.
14714         (s390_expand_vec_strlen): New function.
14715         (s390_expand_vec_compare): New function.
14716         (s390_expand_vcond): New function.
14717         (s390_expand_vec_init): New function.
14718         (s390_dwarf_frame_reg_mode): New function.
14719         (print_operand): Handle addresses with 'O' and 'R' constraints.
14720         (NR_C_MODES, constant_modes): Add vector modes.
14721         (s390_output_pool_entry): Handle vector constants.
14722         (s390_hard_regno_mode_ok): Handle vector registers.
14723         (s390_class_max_nregs): Likewise.
14724         (s390_cannot_change_mode_class): New function.
14725         (s390_invalid_arg_for_unprototyped_fn): New function.
14726         (s390_function_arg_vector): New function.
14727         (s390_function_arg_float): Remove size variable.
14728         (s390_pass_by_reference): Handle vector arguments.
14729         (s390_function_arg_advance): Likewise.
14730         (s390_function_arg): Likewise.
14731         (s390_return_in_memory): Vector values are returned in a VR if
14732         possible.
14733         (s390_function_and_libcall_value): Handle vector arguments.
14734         (s390_gimplify_va_arg): Likewise.
14735         (s390_call_saved_register_used): Consider the arguments named.
14736         (s390_conditional_register_usage): Disable v16-v31 for non-vec
14737         targets.
14738         (s390_preferred_simd_mode): New function.
14739         (s390_support_vector_misalignment): New function.
14740         (s390_vector_alignment): New function.
14741         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
14742         (TARGET_VECTOR_MODE_SUPPORTED_P)
14743         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
14744         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
14745         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
14746         (TARGET_VECTOR_ALIGNMENT): Define target macro.
14747         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
14748         (FIRST_PSEUDO_REGISTER): Increase value.
14749         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
14750         (VECTOR_REG_P): Define macros.
14751         (FIXED_REGISTERS, CALL_USED_REGISTERS)
14752         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
14753         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
14754         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
14755         Add vector registers.
14756         (CANNOT_CHANGE_MODE_CLASS): Call C function.
14757         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
14758         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
14759         memory.
14760         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
14761         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
14762         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
14763         (VR*_REGNUM): New constants.
14764         (ALL): New mode iterator.
14765         (INTALL): Remove mode iterator.
14766         Include vector.md.
14767         (movti): Implement TImode moves for VRs.
14768         Disable TImode splitter for VR targets.
14769         Implement splitting TImode GPR<->VR moves.
14770         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
14771         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
14772         reload<mode>_la_in, reload<mode>_la_out.
14773         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
14774         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
14775         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
14776         (mov<mode> SF SD): Prefer lder, lde for loading.
14777         Add lrl and strl instructions.
14778         Add vector instructions.
14779         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
14780         Call s390_expand_vec_strlen on z13.
14781         (*cc_to_int): Change predicate to nonimmediate_operand.
14782         (addti3): Rename to *addti3.  New expander.
14783         (subti3): Rename to *subti3.  New expander.
14784         * config/s390/vector.md: New file.
14786 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14788         * common/config/s390/s390-common.c (processor_flags_table): Add
14789         z13.
14790         * config.gcc: Add z13.
14791         * config/s390/s390-opts.h (enum processor_type): Add
14792         PROCESSOR_2964_Z13.
14793         * config/s390/s390.c (s390_adjust_priority): Check for
14794         PROCESSOR_2964_Z13.
14795         (s390_reorg): Likewise.
14796         (s390_sched_reorder): Likewise.
14797         (s390_sched_variable_issue): Likewise.
14798         (s390_loop_unroll_adjust): Likewise.
14799         (s390_option_override): Likewise. Default to -mvx when available.
14800         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
14801         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
14802         (TARGET_VX_ABI): Define macros.
14803         macros.
14804         (TARGET_DEFAULT): Add MASK_OPT_VX.
14805         * config/s390/s390.md ("cpu" attribute): Add z13.
14806         ("cpu_facility" attribute): Add vec.
14807         * config/s390/s390.opt (processor_type): Add z13.
14808         (mvx): New options.
14809         * doc/invoke.texi: Add z13 option for -march.
14811 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14813         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
14814         mode check to make sure that only scalar integer values are
14815         accepted.
14817 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14819         * tree.c (verify_type_variant): Fix #undef.
14820         (gimple_canonical_types_compatible_p): Move here from lto.c
14821         (verify_type): Verify TYPE_CANONICAL compatibility.
14822         * tree.h (gimple_canonical_types_compatible_p): Declare.
14824 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14826         PR middle-end/66199
14827         * tree.h (OMP_TEAMS_COMBINED): Define.
14828         * gimplify.c (enum gimplify_omp_var_data): Add
14829         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
14830         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
14831         (omp_notice_variable): Accept both ORT_TEAMS
14832         and ORT_COMBINED_TEAMS.  Don't recurse if
14833         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
14834         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
14835         GOVD_FIRSTPRIVATE.
14836         (omp_no_lastprivate): New function.
14837         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
14838         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
14839         notice_outer and set appropriate bits, otherwise make
14840         sure default(none) combined constructs won't complain.
14841         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
14842         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
14843         omp_no_lastprivate either remove the clause or turn it
14844         into OMP_CLAUSE_PRIVATE.
14845         (gimplify_omp_for): Fix up handling of implicit
14846         lastprivate or linear iterators.
14847         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
14848         ORT_COMBINED_TEAMS.
14849         * omp-low.c (lower_omp_for_lastprivate): For combined
14850         for simd use fd.loop.n2 from the for rather than simd.
14852 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14854         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
14855         instead of gen_rtx_raw_REG.
14856         (cris_expand_epilogue): Likewise.
14857         * config/microblaze/microblaze.c (microblaze_classify_address):
14858         Likewise.
14859         * config/sparc/sparc.md: Likewise.
14861 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
14863         * config/alpha/alpha.c (alpha_legitimize_reload_address)
14864         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
14865         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
14866         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
14867         Use CASE_CONST_SCALAR_INT.
14868         (print_operand) <case 'M'>: Use mode_width_operand to check the
14869         value of the constant.
14870         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
14871         * config/alpha/predicates.md (input_operand): Use general_operand
14872         instead of match_code as operand check.
14873         (symbolic_operand): Use match_code with subexpression digits.
14874         * config/alpha/constraints.md (Q): Ditto.
14876 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14878         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
14880 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14882         * config/s390/s390.c (s390_secondary_reload): Fix check for
14883         load/store relative.
14885 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14887         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
14888         alternative_mask to uint64_t.
14890 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14892         PR tree-optimization/66187
14893         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
14894         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
14895         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
14897 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
14899         * diagnostic.c (diagnostic_report_current_module): Strengthen
14900         local "new_map" from const line_map * to
14901         const line_map_ordinary *.
14902         * genmatch.c (error_cb): Likewise for local "map".
14903         (output_line_directive): Likewise for local "map".
14904         * input.c (expand_location_1): Likewise for local "map".
14905         Pass NULL rather than &map to
14906         linemap_unwind_to_first_non_reserved_loc, since the value is never
14907         read from there, and the value written back not read from here.
14908         (is_location_from_builtin_token): Strengthen local "map" from
14909         const line_map * to const line_map_ordinary *.
14910         (dump_location_info): Strengthen locals "map" from
14911         line_map *, one to const line_map_ordinary *, the other
14912         to const line_map_macro *.
14913         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
14914         const line_map * to const line_map_macro *.
14915         (maybe_unwind_expanded_macro_loc): Add a call to
14916         linemap_check_macro when writing to the "map" field of the
14917         loc_map_pair.
14918         Introduce local const line_map_ordinary * "ord_map", using it in
14919         place of "map" in the part of the function where we know we have
14920         an ordinary map.  Strengthen local "m" from const line_map * to
14921         const line_map_ordinary *.
14923 2015-05-19  Nick Clifton  <nickc@redhat.com>
14925         PR target/66156
14926         * config/msp430/msp430.md (zero_extendhisi2): Add support for
14927         separate source and destination registers.
14929 2015-05-19  Richard Biener  <rguenther@suse.de>
14931         PR tree-optimization/66165
14932         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
14933         for no load permutation.
14935         PR tree-optimization/66185
14936         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
14937         when building the SLP node from scalars.
14939 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14940             Tristan Gingold  <gingold@adacore.com>
14942         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
14943         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
14944         (expand_stack_restore): Call record_new_stack_level.
14945         (expand_stack_save): Do not call do_pending_stack_adjust.
14946         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
14947         * calls.c (expand_call): Call record_new_stack_level for alloca.
14948         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
14949         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
14950         (update_sjlj_context): New global function.
14951         * except.h (update_sjlj_context): Declare.
14952         * explow.c (record_new_stack_level): New global function.
14953         (allocate_dynamic_stack_space): Call record_new_stack_level.
14954         * explow.h (record_new_stack_level): Declare.
14955         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
14956         * cfgrtl.c (duplicate_insn_chain): Likewise.
14958 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14960         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
14961         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
14962         STACK_GROWS_DOWNWARD as normal if.
14963         (expand_call): Likewise.
14965 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
14967         PR target/54236
14968         * config/sh/sh.md (*round_int_even): New insn_and_split and
14969         accompanying new unnamed split.
14971 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14973         * bitmap.c (bitmap_set_range): Handle count==1 specially.
14974         (bitmap_clear_range): Likewise.
14975         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
14976         bitmap_set_range unconditionally.
14977         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14978         * df-scan.c (df_mark_reg): Likewise.
14979         * haifa-sched.c (setup_ref_regs): Likewise.
14980         * sched-rgn.c (update_live_1): Likewise.
14982 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14984         * regs.h (END_HARD_REGNO): Delete.
14985         (END_REGNO): Move to...
14986         * rtl.h: ...here.
14987         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
14988         * caller-save.c (mark_set_regs): Likewise.
14989         * combine.c (move_deaths, distribute_notes): Likewise.
14990         * cse.c (invalidate, invalidate_for_call): Likewise.
14991         * df-scan.c (df_ref_record): Likewise.
14992         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
14993         (record_last_reg_set_info): Likewise.
14994         * reg-stack.c (convert_regs_exit): Likewise.
14995         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
14996         * resource.c (update_live_status): Likewise.
14997         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
14999 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15001         * rtl.h (reg_info): Add an nregs field.
15002         (REG_NREGS): Use it.
15003         (SET_REGNO_RAW): Delete.
15004         (set_regno_raw): New function.
15005         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
15006         (END_REGNO): Redefine in terms of REG_NREGS.
15007         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
15008         SET_REGNO_RAW.
15009         * emit-rtl.c (set_mode_and_regno): Likewise.
15010         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
15011         instead of SET_REGNO_RAW.
15013 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15015         * rtl.h (PUT_MODE_RAW): New macro.
15016         (PUT_REG_NOTE_KIND): Use it.
15017         (set_mode_and_regno): Declare.
15018         (gen_raw_REG): Change regno to "unsigned int".
15019         (gen_rtx_REG): Change "unsigned" to "unsigned int".
15020         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
15021         use set_mode_and_regno to change the mode of registers.
15022         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
15023         * emit-rtl.c (set_mode_and_regno): New function.
15024         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
15025         * caller-save.c (reg_save_code): Use set_mode_and_regno.
15026         * expr.c (init_expr_target): Likewise.
15027         * ira.c (setup_prohibited_mode_move_regs): Likewise.
15028         * postreload.c (reload_cse_simplify_operands): Likewise.
15030 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15032         * caller-save.c (init_caller_save): Use word_mode and
15033         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
15034         * expr.c (init_expr_target): Likewise.
15035         * ira.c (setup_prohibited_mode_move_regs): Likewise.
15036         * postreload.c (reload_cse_regs_1): Likewise.
15038 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15040         * rtl.def (REG): Change format to "r".
15041         * rtl.h (rtunion): Remove rt_reg.
15042         (reg_info): New structure.
15043         (rtx_def): Add reg field to main union.
15044         (X0REGATTR): Delete.
15045         (REG_CHECK): New macro.
15046         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
15047         * rtl.c (rtx_format): Document "r".
15048         (rtx_code_size): Handle REG specially.
15049         * gengenrtl.c (special_format): Return true for formats
15050         that include 'r'.
15051         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
15052         Deal with REG_ATTRS after the field loop.
15053         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
15054         * expmed.c (init_expmed): Call gen_raw_REG instead of
15055         gen_rtx_raw_REG.
15056         * expr.c (init_expr_target): Likewise.
15057         * regcprop.c (maybe_mode_change): Likewise.
15058         * varasm.c (make_decl_rtl): Likewise.
15059         * final.c (leaf_renumber_regs_insn): Return early after
15060         handling REGs.
15061         * genemit.c (gen_exp): Handle 'r' fields.
15062         * genpeep.c (match_rtx): Likewise.
15063         * gensupport.c (subst_pattern_match): Likewise.
15064         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
15065         (alter_constraints, subst_dup): Likewise.
15066         * read-rtl.c (read_rtx_code): Likewise.
15067         * print-rtl.c (print_rtx): Likewise.
15068         * genrecog.c (find_operand, find_matching_operand): Likewise.
15069         (validate_pattern, match_pattern_2): Likewise.
15070         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
15071         (rtx_test::regno_field): New function.
15072         (operator ==, safe_to_hoist_p, transition_parameter_type)
15073         (parameter_type_string, print_parameter_value)
15074         (print_nonbool_test, print_test): Handle new enum values.
15075         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
15076         * lra-constraints.c (operands_match_p): Likewise.
15078 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15080         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
15081         Change type of new_regno to unsigned int.
15082         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
15083         new_regno to unsigned int.
15084         (df_ref_change_reg_with_loc): Remove old_regno parameter.
15085         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
15086         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
15087         (SET_REGNO_RAW): Add space after ",".
15089 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15091         * rtl.h (REG_NREGS): New macro
15092         * alias.c (record_set): Use it.
15093         * cfgcleanup.c (mark_effect): Likewise.
15094         * combine.c (likely_spilled_retval_1): Likewise.
15095         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
15096         (move_deaths, distribute_notes): Likewise.
15097         * cselib.c (cselib_record_set): Likewise.
15098         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
15099         * df-scan.c (df_mark_reg): Likewise.
15100         * dse.c (look_for_hardregs): Likewise.
15101         * dwarf2out.c (reg_loc_descriptor): Likewise.
15102         (multiple_reg_loc_descriptor): Likewise.
15103         * expr.c (write_complex_part, read_complex_part): Likewise.
15104         (emit_move_complex): Likewise.
15105         * haifa-sched.c (setup_ref_regs): Likewise.
15106         * ira-lives.c (mark_hard_reg_live): Likewise.
15107         * lra.c (lra_set_insn_recog_data): Likewise.
15108         * mode-switching.c (create_pre_exit): Likewise.
15109         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
15110         (reload_combine_recognize_pattern): Likewise.
15111         (reload_combine_note_use, move2add_record_mode): Likewise.
15112         (reload_cse_move2add): Likewise.
15113         * reg-stack.c (subst_stack_regs_pat): Likewise.
15114         * regcprop.c (kill_value, copy_value): Likewise.
15115         (copyprop_hardreg_forward_1): Likewise.
15116         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
15117         (build_def_use): Likewise.
15118         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
15119         (deps_analyze_insn): Likewise.
15120         * sched-rgn.c (check_live_1, update_live_1): Likewise.
15121         * sel-sched.c (count_occurrences_equiv): Likewise.
15122         * valtrack.c (dead_debug_insert_temp): Likewise.
15124 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15126         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
15127         * dse.c (note_add_store): Likewise.
15128         * ira-lives.c (mark_hard_reg_dead): Likewise.
15129         * loop-invariant.c (mark_reg_store): Likewise.
15130         (mark_reg_death): Likewise.
15131         * postreload.c (reload_combine): Likewise.
15132         (reload_combine_note_store): Likewise.
15133         (reload_combine_note_use): Likewise.
15134         * recog.c (peep2_reg_dead_p): Likewise.
15136 2015-05-19  Alan Modra  <amodra@gmail.com>
15138         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
15139         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
15140         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
15141         unused predicates.
15142         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
15143         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
15144         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
15145         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
15147 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
15149         * config/mips/mips.md (JOIN_MODE): New mode iterator.
15150         (join2_load_Store<JOIN_MODE:mode>): New pattern.
15151         (join2_loadhi): Likewise.
15152         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
15153         load-load and store-stores.
15154         * config/mips/mips.opt (mload-store-pairs): New option.
15155         (TARGET_LOAD_STORE_PAIRS): New macro.
15156         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
15157         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
15158         * config/mips/mips.c (mips_load_store_bonding_p): New function.
15160 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
15162         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
15163         explicit swaps.
15164         * dojump.c (do_compare_rtx_and_jump): Likewise.
15165         * expmed.c (emit_store_flag_1): Likewise.
15166         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
15167         * final.c (sprint_ul): Use std::reverse for reversing a string.
15168         * fold-const.c (extract_muldiv_1): Use std::swap.
15169         * genmodes.c (emit_mode_int_n): Likewise.
15170         * ifcvt.c (dead_or_predicable): Likewise.
15171         * ira-build.c (ira_merge_live_ranges): Likewise.
15172         (swap_allocno_copy_ends_if_necessary): Likewise.
15173         * ira.c (ira_setup_alts): Likewise.
15174         * loop-iv.c (iv_analyze_expr): Likewise.
15175         (implies_p): Likewise.
15176         (canon_condition): Likewise.
15177         * lra-constraints.c (swap_operands): Likewise.
15178         * lra-lives.c (lra_merge_live_ranges): Likewise.
15179         * omega.c (swap): Remove.
15180         (bswap): Remove.
15181         (omega_unprotect_1): Use std::swap.
15182         (omega_solve_geq): Likewise.
15183         * optabs.c (expand_binop_directly): Likewise.
15184         (expand_binop): Likewise.
15185         (emit_conditional_move): Likewise.
15186         (emit_conditional_add): Likewise.
15187         * postreload.c (reload_cse_simplify_operands): Likewise.
15188         * reg-stack.c (emit_swap_insn): Likewise.
15189         (swap_to_top): Likewise.
15190         (compare_for_stack_reg): Likewise.
15191         (subst_asm_stack_regs): Likewise.
15192         * reload.c (find_reloads): Likewise.
15193         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
15194         * sel-sched.c (invoke_reorder_hooks): Likewise.
15195         (create_block_for_bookkeeping): Likewise.
15196         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
15197         (lambda_matrix_right_hermite): Use std::swap.
15198         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
15199         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15200         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
15201         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
15202         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
15203         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
15204         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15205         * tree-vrp.c (compare_ranges): Likewise.
15206         * var-tracking.c (add_with_sets): Likewise.
15207         (vt_find_locations): Likewise.
15209 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
15211         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
15212         pie executables.
15213         (FBSD_ENDFILE_SPEC): Likewise.
15214         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
15215         config/freebsd-spec.h.
15216         (ENDFILE_SPEC): Likewise.
15218 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
15219             Richard Henderson  <rth@redhat.com>
15221         PR target/57032
15222         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
15223         Check for a memory location that is not a reference (using an AND)
15224         to an unaligned location here.
15225         * config/alpha/predicates.md (normal_memory_operand): Remove.
15227 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
15229         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
15230         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
15232 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15234         * config/mips/mips.c (micromips_globals): New variable.
15235         (mips_set_compression_mode): Save and reinitialize target-dependent
15236         state for microMIPS.
15238 2015-05-18  Martin Liska  <mliska@suse.cz>
15240         * dbgcnt.def: Add new counter.
15241         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
15243 2015-05-18  Martin Liska  <mliska@suse.cz>
15245         * dbgcnt.def: Sort counters.
15246         * opts.c (common_handle_option): Do not compile if
15247         -fdbg-cnt-list is enabled.
15249 2015-05-18  Tom de Vries  <tom@codesourcery.com>
15251         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
15252         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
15253         address operator to va_list operand.
15254         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
15255         unconditionally.
15256         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
15257         operand.
15258         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
15259         * config/s390/s390.c (s390_gimplify_va_arg): Same.
15260         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
15262 2015-05-18  Tom de Vries  <tom@codesourcery.com>
15264         * tree-ssa-tail-merge.c: Fix whitespace.
15266 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
15268         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
15269         cortex-a17, and cortex-a17.cortex-a7.
15271 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
15273         PR target/54236
15274         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
15276 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
15278         PR target/66174
15279         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
15280         QImode inner modes for TARGET_AVX512BW.  Force mask operand
15281         to a register for AVX512F modes.
15283 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15285         * toplev.c (emit_debug_global_declarations): Do not output debug info
15286         when doing slim LTO objects.
15288 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15290         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
15291         odr_types_equivalent_p): Declare.
15292         (odr_type_p): Use gcc_checking_assert.
15293         (type_in_anonymous_namespace_p) Declare.
15294         (type_with_linkage_p): Declare.
15295         * common.opt (Wlto-type-mismatch): New warning.
15296         * ipa-devirt.c (compound_type_base): New function.
15297         (odr_or_derived_type_p): New function.
15298         (odr_types_equivalent_p): New function.
15299         (add_type_duplicate): Simplify.
15300         (type_with_linkage_p): Add hack to prevent false positives on C types
15301         (type_in_anonymous_namespace_p): Likewise.
15302         * tree.c (need_assembler_name_p): Use type_with_linkage.
15303         * tree.h (type_in_anonymous_namespace_p): Remove.
15304         * doc/invoke.texi (-Wlto-type-mismatch): Document
15306 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15308         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
15309         (verify_type): Verify STRING_FLAG.
15311 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15313         PR fortran/44054
15314         * tree-pretty-print.c (percent_K_format): Replace locus pointer
15315         with accessor function.
15316         * tree-diagnostic.c (diagnostic_report_current_function): Use
15317         diagnostic_location function.
15318         (maybe_unwind_expanded_macro_loc): Likewise.
15319         (virt_loc_aware_diagnostic_finalizer): Likewise.
15320         (default_tree_printer): Replace locus pointer with accessor function.
15321         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
15322         (diagnostic_set_info_translated): Initialize second location.
15323         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
15324         (diagnostic_show_locus): Handle two locations. Call
15325         diagnostic_print_caret_line.
15326         (diagnostic_print_caret_line): New.
15327         (default_diagnostic_starter): Use diagnostic_location function.
15328         (diagnostic_report_diagnostic): Use diagnostic_location function.
15329         (verbatim): Do not set text.locus.
15330         * diagnostic.h (struct diagnostic_info): Remove location field.
15331         (struct diagnostic_context): Make caret_chars an array of two.
15332         (diagnostic_location): New inline.
15333         (diagnostic_expand_location): Handle two locations.
15334         (diagnostic_same_line): New inline.
15335         (diagnostic_print_caret_line): Declare.
15336         (CARET_LINE_MARGIN): New constant.
15337         * pretty-print.c (pp_printf): Do not set text.locus.
15338         (pp_verbatim): Do not set text.locus.
15339         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
15340         (struct text_info): Replace locus pointer with locations
15341         array. Add accessor functions.
15343 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
15344             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15346         PR target/65768
15347         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
15348         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
15349          large constants in register instead of splitting them.
15351 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
15353         PR target/66140
15354         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
15355         replacements in memory addresses.
15356         (get_unaligned_address): Ditto.
15358 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
15360         * config/ft32/*: New files for FT32 port.
15361         * doc/install.texi: Add FT32 information.
15362         * doc/invoke.texi: Add FT32 information.
15363         * doc/md.texi: Add FT32 information.
15364         * doc/contrib.texi: Self added.
15366 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
15368         PR tree-optimization/64454
15369         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
15370         (-1 - A -> ~A): Remove unnecessary condition.
15372 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
15374         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
15375         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
15376         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
15378 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
15380         * ipa-chkp.h (chkp_wrap_function): New.
15381         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
15382         (chkp_wrap_function_name): New.
15383         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
15384         to get wrapper name.
15385         * lto-cgraph.c: Include ipa-chkp.h.
15386         (input_cgraph_1): Avoid alias chain for wrappers.
15388 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15390         PR middle-end/66134
15391         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
15392         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
15394 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15396         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
15397         (AARCH64_FL_SLOWMUL): Delete.
15398         (AARCH64_FL_CRC): Redefine to 1<<3.
15399         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
15401 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15403         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
15404         casting.
15406 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
15408         * config/alpha/alpha.md (extendqidi2): Use general_operand
15409         instead of some_operand for operand[1] predicate.
15410         (extendhidi2): Ditto.
15411         (cbranchdi4): Use general_operand instead of some_operand
15412         for operand[1] and operands[2] predicates.
15413         (cstoredi4): Ditto.
15414         * config/alpha/predicates.md (some_operand): Remove unused predicate.
15415         (some_ni_operand): Ditto.
15417 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
15419         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
15420         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
15421         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
15422         low part of the constant using alpha_emit_set_const_1.
15423         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
15425 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
15427         * varasm.c (output_constant_pool_1): Pass down alignment from
15428         constant pool entry's descriptor to output_constant_pool_2.
15429         (output_object_block): Add comment prior to call to
15430         output_constant_pool_1.
15432 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
15434         PR rtl-optimization/65862
15435         * target.def (ira_change_pseudo_allocno_class): New hook.
15436         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
15437         value of the hook.
15438         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
15439         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
15440         hook.
15441         * ira-costs.c (find_costs_and_classes): Call the hook and change
15442         classes when it is necessary.
15443         * doc/tm.texi: Update.
15445 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
15447         * config/i386/i386.md (sibcall_memory): Check that register with
15448         callee address is not also used as one of the arguments, instead
15449         of checking that it is not live after the sibcall.
15450         (sibcall_pop_memory): Ditto.
15451         (sibcall_value_memory): Ditto.
15452         (sibcall_value_pop_memory): Ditto.
15454 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
15456         * generic-match-head.c (types_match): Handle non-types.
15457         * gimple-match-head.c (types_match): Likewise.
15458         * match.pd: Remove unnecessary TREE_TYPE for types_match.
15460 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
15462         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
15463         (csneg3<mode>_insn): Enable expansion of pattern.
15465 2015-05-14  Nick Clifton  <nickc@redhat.com>
15467         * config/rl78/rl78.c (rl78_select_section): Select the correct
15468         default section based upon the category of the decl.
15470 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15472         PR rtl-optimization/30967
15473         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
15474         destination mode for the cost of scc patterns.
15476 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15478         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
15479         using SWIM248 mode iterator.
15480         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
15481         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
15482         for operand[2] constraint.
15483         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
15485 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15487         PR middle-end/66133
15488         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
15489         make sure it is never noreturn, even when the task body does not
15490         return.
15491         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
15492         right before GIMPLE_OMP_RETURN.
15493         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
15494         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
15495         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
15497 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15499         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
15500         * tree-ssa-math-opts.c: Include params.h
15501         (pow_synth_sqrt_info): New struct.
15502         (representable_as_half_series_p): New function.
15503         (get_fn_chain): Likewise.
15504         (print_nested_fn): Likewise.
15505         (dump_fractional_sqrt_sequence): Likewise.
15506         (dump_integer_part): Likewise.
15507         (expand_pow_as_sqrts): Likewise.
15508         (gimple_expand_builtin_pow): Use above to attempt to expand
15509         pow as series of square roots.  Removed now unused variables.
15511 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15513         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
15514         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
15515         Remove *p0 and *p1 arguments.  Rewrite function.
15516         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
15517         (alpha_split_const_mov): Update calls to alpha_extract_integer and
15518         alpha_emit_set_long_const.
15519         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
15520         (alpha_output_mi_thunk_osf): Ditto.
15521         * config/alpha/alpha.md (movti): Do not check operands[1]
15522         for CONST_DOUBLE.
15524 2015-05-13  Richard Biener  <rguenther@suse.de>
15526         PR tree-optimization/66129
15527         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
15528         commutative.
15529         (vect_schedule_slp_instance): Fix typo.
15531 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
15533         * common.opt (fdump-internal-locations): New option.
15534         * input.c: Include diagnostic-core.h.
15535         (get_end_location): New function.
15536         (write_digit): New function.
15537         (write_digit_row): New function.
15538         (dump_location_range): New function.
15539         (dump_labelled_location_range): New function.
15540         (dump_location_info): New function.
15541         * input.h (dump_location_info): New prototype.
15542         * toplev.c (compile_file): Handle flag_dump_locations.
15544 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15546         * gimple-expr.h (is_gimple_constant): Reorder.
15547         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
15549 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15551         * combine.c (simplify_set): When generating a CC set, if the
15552         source already is in the correct mode, do not wrap it in a
15553         compare.  Simplify the rest of that code.
15555 2015-05-13  Richard Biener  <rguenther@suse.de>
15557         PR tree-optimization/66123
15558         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
15559         a taken edge.
15561 2015-05-13  Richard Biener  <rguenther@suse.de>
15563         PR middle-end/66110
15564         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
15565         specially.
15566         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
15568 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15570         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
15571         * aclocal.m4: Regenerated with automake-1.11.6.
15573 2015-05-13  Tom de Vries  <tom@codesourcery.com>
15575         PR tree-optimization/66010
15576         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
15577         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
15578         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
15579         and rval based on do_deref.
15581 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15583         PR target/65103
15584         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
15585         link time constants into adress expressions and therefore set
15586         their cost to 0.
15588 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15590         PR target/66112
15591         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
15592         Use SWI248 iterator instead of SWI.
15593         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
15594         Use eq_attr "alternative" "0" instead of match_test in
15595         length_immediate attribute computation.
15596         (*mulvhi4, *mulvhi4_1): New define_insns.
15598         PR target/66112
15599         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
15600         SIGNED to get precision of non-negative value.
15602 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15604         PR target/66048
15605         * function.c (diddle_return_value_1): Process bounds first.
15606         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
15607         register.
15609 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15611         PR rtl-optimization/64616
15612         * loop-invariant.c (can_move_invariant_reg): New.
15613         (move_invariant_reg): Call above new function to decide whether
15614         instruction can just be moved, skipping creation of temporary
15615         register.
15617 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15619         PR target/pr66047.c
15620         * i386.c (ix86_function_sseregparm): Only return -1 if local function
15621         with implied regparm is called from -mno-sse function.
15622         (init_cumulative_args): Output error if ix86_function_sseregparm
15623         return -1 and SSE register would be needed.
15624         (function_arg_advance_32): Likewise.
15625         (function_arg_32): Likewise.
15626         * i386.h (ix86_args): Add decl field.
15628 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15630         PR ipa/65873
15631         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
15632         inlines across optimization boundary.
15634 2015-05-12  Jason Merrill  <jason@redhat.com>
15636         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
15637         string literal and macro name.
15639 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
15641         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
15642         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
15643         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
15645 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15647         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
15648         (-Wmisleading-indentation): New option.
15649         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
15651 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
15653         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
15654         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
15655         (alpha_extract_integer): Ditto.
15656         (alpha_legitimate_constant_p): Ditto.
15657         (alpha_split_tmode_pair): Ditto.
15658         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
15659         (alpha_expand_mov): Ditto.
15660         (print_operand): Remove handling of 'H' modifier.
15661         <case 'm'>: Remove CONST_DOUBLE handling.
15662         (summarize_insn): Handle CONST_WIDE_INT.
15663         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
15664         (anddi3): Ditto.
15665         (movti): Handle CONST_WIDE_INT.
15666         * config/alpha/constraints.md ('H'): Remove constraint definition.
15667         ('G'): Do not match MODE_FLOAT class.
15668         * config/alpha/predicates.md (const0_operand): Also match
15669         const_wide_int.
15670         (non_add_const_operand): Ditto.
15671         (non_zero_const_operand): Ditto.
15672         (some_operand): Ditto.
15673         (input_operand): Ditto.  Handle CONST_WIDE_INT.
15674         (and_operand): Do not match const_double.
15675         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
15677 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
15679         PR target/65697
15680         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
15681         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
15682         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
15683         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
15684         is_mm_seq_cst, is_mm_sync): New accessor functions.
15685         * builtins.c (expand_builtin_sync_operation,
15686         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
15687         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
15688         (get_memmodel,  expand_builtin_atomic_compare_exchange,
15689         expand_builtin_atomic_load, expand_builtin_atomic_store,
15690         expand_builtin_atomic_clear): Use new accessor routines.
15691         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
15692         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
15693         (maybe_emit_sync_lock_test_and_set): Use new accessors and
15694         MEMMODEL_SYNC_ACQUIRE.
15695         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
15696         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
15697         expand_atomic_store): Use new accessors.
15698         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
15699         * tsan.c (instrument_builtin_call): Update check for memory model beyond
15700         final enum to use MEMMODEL_LAST.
15701         * c-family/c-common.c: Use new accessor for memmodel_base.
15702         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
15703         accessors.
15704         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
15705         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
15706         mem_thread_fence, *dmb): Likewise.
15707         * config/alpha/alpha.c (alpha_split_compare_and_swap,
15708         alpha_split_compare_and_swap_12): Likewise.
15709         * config/arm/arm.c (arm_expand_compare_and_swap,
15710         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
15711         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
15712         atomic_loaddi): Likewise.
15713         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
15714         Likewise.
15715         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
15716         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
15717         use new accessors.
15718         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
15719         atomic_store<mode>, atomic_compare_and_swap<mode>,
15720         atomic_exchange<mode>): Use new accessors.
15721         * config/mips/mips.c (mips_process_sync_loop): Likewise.
15722         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
15723         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
15724         rs6000_post_atomic_barrier): Add new cases.
15725         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
15726         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
15727         (atomic_load<mode>): Add new cases and use new accessors.
15728         (store_quadpti): Add new cases.
15729         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
15730         accessors.
15731         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
15732         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
15733         model, not 8.
15735 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15737         * ipa-devirt.c (type_with_linkage_p): New function.
15738         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
15739         type has linkage.
15740         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
15741         (can_be_name_hashed_p): Simplify.
15742         (hash_odr_name): Check that type has linkage before checking if it is
15743         anonymous.
15744         (types_same_for_odr): Likewise.
15745         (odr_name_hasher::equal): Likewise.
15746         (odr_subtypes_equivalent_p): Likewise.
15747         (warn_types_mismatch): Likewise.
15748         (get_odr_type): Likewise.
15749         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
15750         * ipa-utils.h (odr_type_p): Move offline.
15751         * tree.c (need_assembler_name_p): Fix handling of types
15752         without linkages.
15753         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
15755 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15757         * timevar.c (timevar_enable): Delete in favor of...
15758         (g_timer): New global.
15759         (struct timevar_def): Move to timevar.h inside class timer.
15760         (struct timevar_stack_def): Likewise.
15761         (timevars): Delete global in favor of field "m_timevars" within
15762         class timer in timevar.h
15763         (stack): Likewise, in favor of field "m_stack".
15764         (unused_stack_instances): Likewise, in favor of field
15765         "m_unused_stack_instances".
15766         (start_time): Likewise, in favor of field "m_start_time".
15767         (get_time): Eliminate check for timevar_enable.
15768         (timer::timer): New function, built from part of timevar_init.
15769         (timevar_init): Rewrite idempotency test from using
15770         "timevar_enable" bool to using dynamic allocation of "g_timer".
15771         Move rest of implementation into timer's constructor.
15772         (timevar_push_1): Rename to...
15773         (timer::push): ...this, adding "m_" prefixes to variables that
15774         are now fields of timer.
15775         (timevar_pop_1): Likewise, rename to...
15776         (timer::pop): ...this, and add "m_" prefixes.
15777         (timevar_start): Replace test for "timevar_enable" with one for
15778         "g_timer", and move bulk of implementation to...
15779         (timer::start): ...here, adding "m_" prefixes.
15780         (timevar_stop): Likewise, from here...
15781         (timer::stop): ...to here.
15782         (timevar_cond_start): Likewise, from here...
15783         (timer::cond_start): ...to here.
15784         (timevar_cond_stop): Likewise, from here...
15785         (timer::cond_stop): ...to here.
15786         (validate_phases): Rename to...
15787         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
15788         locals "total" and "tv" const.
15789         (timevar_print): Rename to...
15790         (timer::print): ...this, and add "m_" prefixes.  Make locals
15791         "total" and "tv" const.  Eliminate test for timevar_enable.
15792         * timevar.h (timevar_enable): Eliminate.
15793         (g_timer): New declaration.
15794         (timevar_push_1): Eliminate.
15795         (timevar_pop_1): Eliminate.
15796         (timevar_print): Eliminate.
15797         (class timer): New class.
15798         (timevar_push): Rewrite to use g_timer.
15799         (timevar_pop): Likewise.
15800         * toplev.c (toplev::~toplev): Likewise.
15802 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
15804         * arm-protos.h (arm_sched_autopref): Delete.
15805         (tune_params): Re-organize, use enums for flag values.
15806         (FUSE_OPS): New macro.
15807         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
15808         (ARM_PREFETCH_BENEFICIAL): Likewise.
15809         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
15810         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
15811         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
15812         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
15813         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
15814         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
15815         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
15816         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
15817         format.
15818         (arm_option_override, thumb2_reorg, arm_print_tune_info)
15819         (aarch_macro_fusion_pair_p): Update uses of current_tune.
15820         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
15822 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
15824         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
15825         "break".
15827 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
15828             Sandra Loosemore <sandra@codesourcery.com>
15830         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
15831         value.
15832         (REG_CLASS_NAMES): Add "IJMP_REGS".
15833         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
15834         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
15835         use new "c" register constraint.
15836         * config/nios2/constraint.md (c): New register constraint
15837         corresponding to IJMP_REGS.
15839 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15841         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
15842         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
15843         define_splits): Delete, revamp, transmogrify into ...
15844         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15845         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15846         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15847         New.
15849 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15851         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
15852         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
15854 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15856         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
15857         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
15858         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
15859         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
15860         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
15861         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
15862         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
15863         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
15864         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
15865         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15866         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
15867         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
15868         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
15869         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
15870         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
15871         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
15872         and 30 corresponding splitters): Delete.
15874 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15876         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
15877         zero_extract.
15879 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15881         * combine.c (recog_for_combine_1): New function, factored out
15882         from recog_for_combine.
15883         (change_zero_ext): New function.
15884         (recog_for_combine): If recog fails, try again with the pattern
15885         modified by change_zero_ext; if that still fails, restore the
15886         pattern.
15888 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15890         * combine.c (get_undo_marker): New function.
15891         (undo_to_marker): New function, largely factored out from ...
15892         (undo_all): ... this.  Adjust.
15894 2015-05-12  Richard Biener  <rguenther@suse.de>
15896         PR tree-optimization/66101
15897         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
15898         fixup if we turn a loop exit edge to a fallthru edge.
15900 2015-05-12  Richard Biener  <rguenther@suse.de>
15902         PR tree-optimization/37021
15903         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
15904         (SLP_TREE_TWO_OPERATORS): New define.
15905         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15906         SLP_TREE_TWO_OPERATORS.
15907         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
15908         SLP node.
15909         (vect_build_slp_tree): Adjust.
15910         (vect_analyze_slp_cost_1): Likewise.
15911         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
15912         emitting two vector stmts and mixing the results.
15914 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15916         * call.c (print_z_candidates): Remove dead code.
15918 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15920         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
15921         and zEC12_simple_fp.
15922         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
15923         to 1.
15925 2015-05-12  Tom de Vries  <tom@codesourcery.com>
15927         PR tree-optimization/66010
15928         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
15929         ifn_va_arg.
15930         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
15931         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
15932         va_lists are passed, and remove corresponding handling.
15933         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
15934         do_deref argument to ifn_va_arg.
15935         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
15936         ifn_va_arg.
15938 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15940         PR target/65955
15941         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
15942         REG before taking its REGNO.
15944 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15946         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
15947         rsp->sign_bit_copies and rsp->nonzero_bits into ...
15948         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
15949         present to get more accurate information about the number of sign bit
15950         copies and non zero bits.
15952 2015-05-12  Richard Biener  <rguenther@suse.de>
15954         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
15955         do not allow unrolling.
15957 2015-05-11  Richard Henderson  <rth@redhat.com>
15959         * config/i386/i386-modes.def (CCP): New.
15960         * config/i386/i386.c (put_condition_code): Handle it.
15961         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
15963 2015-05-11  Richard Henderson  <rth@redhat.com>
15965         * target.def (md_asm_clobbers): Replace with...
15966         (md_asm_adjust): this.
15967         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
15968         (TARGET_MD_ASM_ADJUST): New.
15969         * tm.texi: Rebuild.
15970         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
15971         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
15972         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
15974         * cfgexpand.c (check_operand_nalternatives): Accept vector of
15975         constraints instead of lists of outputs and inputs.
15976         (expand_asm_stmt): Save and restore input_location around the
15977         body of the function.  Move asm data into vectors instead of
15978         building tree lists.  Generate cleanup sequences as needed,
15979         rather than waiting til the end.  Use new md_asm_adjust hook.
15981         * config/vxworks.c: Include vec.h before target.h.
15982         * gimple.c: Likewise.
15983         * incpath.c: Likewise.
15984         * mode-switching.c: Likewise.
15986         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
15987         (cris_md_asm_adjust): this.
15988         (TARGET_MD_ASM_CLOBBERS): Remove.
15989         (TARGET_MD_ASM_ADJUST): New.
15990         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
15991         (ix86_md_asm_adjust): this.
15992         (TARGET_MD_ASM_CLOBBERS): Remove.
15993         (TARGET_MD_ASM_ADJUST): New.
15994         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
15995         (mn10300_md_asm_adjust): this.
15996         (TARGET_MD_ASM_CLOBBERS): Remove.
15997         (TARGET_MD_ASM_ADJUST): New.
15998         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
15999         (rs6000_md_asm_adjust): this.
16000         (TARGET_MD_ASM_CLOBBERS): Remove.
16001         (TARGET_MD_ASM_ADJUST): New.
16002         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
16003         (visium_md_asm_adjust): this.
16004         (TARGET_MD_ASM_CLOBBERS): Remove.
16005         (TARGET_MD_ASM_ADJUST): New.
16007 2015-05-11  Richard Henderson  <rth@redhat.com>
16009         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
16010         if noutputs is zero.
16011         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
16013         * cfgexpand.c (expand_asm_operands): Merge into...
16014         (expand_asm_stmt): ... here.
16016         * cfgexpand.c (expand_asm_operands): Don't call
16017         resolve_asm_operand_names.
16018         * stmt.c (resolve_asm_operand_names): Clarify block comment.
16020 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
16022         * dwarf2out.c (gen_member_die): Sanity check that we access
16023         TYPE_MAIN_VARIANT for TYPE_METHODS.
16024         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
16025         checking TYPE_METHODS.
16026         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
16027         if non-null.
16028         (build_distinct_type_copy): Clear TYPE_METHODS.
16029         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
16030         (verify_type): Allow TYPE_METHODS to be error_mark_node.
16031         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
16033 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
16035         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
16036         (emit_pattern_before_setloc): Likewise.
16038 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
16040         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
16041         for define_peephole2s.
16042         (get_peephole2_pattern): New function.
16043         (main): Use it.  Call validate_pattern.
16045 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16047         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
16048         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
16049         (Last callee saved reg is different for AVR_TINY architecture)
16051 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
16053         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
16054         when looking for memory references.
16056 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
16058         PR target/65753
16059         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
16060         via function pointers.
16062 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
16064         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
16065         indirect call by forcing address into a pseudo with -fno-plt.
16066         * common.opt (flag_plt): New option.
16067         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
16068         ([-fno-plt]): Document.
16070 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
16072         PR bootstrap/66105
16073         * config/rs6000/option-defaults.h: Add space between string literal
16074         and macro name.
16076 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16078         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
16079         accross ARM targets.
16081 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16083         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
16084         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
16086 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
16088         PR rtl-optimization/66076
16089         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
16090         Don't grow the heap array if it is already big enough from a
16091         previous iteration.
16093 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16095         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
16096         (is_called_in_ARM_mode): Remove.
16097         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
16098         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
16099         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
16100          arm_declare_function_name.
16102 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16104         * config/arm/arm.c (arm_option_override): Reoganized and split into :
16105         (arm_option_params_internal); New function.
16106         (arm_option_check_internal): New function.
16107         (arm_option_override_internal): New function.
16108         (thumb_code, thumb1_code): Remove.
16109         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
16110         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
16111         (thumb_code, thumb1_code): Remove.
16112         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
16114 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
16116         * config/alpha/alpha.c (alpha_emit_set_const_1)
16117         (alpha_emit_set_long_const, alpha_extract_integer)
16118         (alpha_legitimate_constant_p, alpha_split_const_mov)
16119         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
16120         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16121         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
16122         HOST_WIDE_INT_1U.
16123         * config/alpha/predicates.md (mode_mask_operand): Do not match
16124         const_double RTX.
16125         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16126         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
16127         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
16128         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16129         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
16131 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
16133         PR target/65780
16134         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
16135         default_binds_local_p_2.
16136         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
16137         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
16139 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16141         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
16143 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16145         Patch by Richard Biener
16146         * coverage.c (coverage_obj_init): Delay building of type variant
16147         until the type is finished.
16149 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16151         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
16152         mismatch between C and C++ type; compoare correctly ARG_TYPES
16153         for non-prototypes and output correctly parameter index for METHOD_TYPE.
16154         (odr_types_equivalent_p): Fix wording of warning about attributes;
16155         it is OK to match prototype and non-prototype.
16157 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16159         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
16160         TYPE_ARG_TYPES list.
16161         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
16162         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
16164 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16166         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
16167         * tree.h (is_lang_specific): Constify.
16169 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
16171         PR tree-optimization/64454
16172         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
16173         Rewrite.
16175 2015-05-08  Jason Merrill  <jason@redhat.com>
16177         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
16178         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
16179         config/darwin.h, config/darwin9.h, config/elfos.h,
16180         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
16181         config/microblaze/microblaze.h, config/mips/mips.h,
16182         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
16183         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
16184         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
16185         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
16186         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
16187         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
16188         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
16189         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
16190         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
16191         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
16192         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
16193         between string literal and macro name.
16195 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16197         * jump.c: Change argument types to rtx_insn *.
16198         * rtl.h: Adjust.
16200 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16202         * lra-constraints.c: Change argument type to rtx_insn *.
16204 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16206         * df-problems.c: Change argument type to rtx_insn *.
16208 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16210         * combine.c: Change argument type to rtx_insn *.
16212 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16214         * rtl.h: Adjust.
16215         * rtlanal.c: Change argument type to rtx_insn *.
16217 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16219         * sched-deps.c: Change argument types to rtx_insn *.
16220         * sched-int.h: Adjust.
16222 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16224         * dwarf2cfi.c: Change argument type to rtx_insn *.
16226 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16228         * ira.c (decrease_live_ranges_number): Changetype of local
16229         variable to rtx_insn *.
16230         * recog.c: Change argument types to rtx_insn *.
16231         * recog.h: Adjust.
16233 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16235         * reorg.c: Change argument types to rtx_insn *.
16237 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16239         * ira-color.c: Change argument types to rtx_insn *.
16240         * lra-eliminations.c: Likewise.
16241         * ira.h: Adjust.
16243 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16245         * gcse.c: Change argument types to rtx_insn *.
16247 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16249         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
16251 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16253         * emit-rtl.c (emit_debug_insn_before): Change argument type to
16254         rtx_insn *.
16255         * rtl.h: Adjust.
16257 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16259         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
16260         * rtl.h: Adjust.
16262 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16264         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
16265         * rtl.h: Adjust.
16267 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16269         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
16270         * rtl.h: Adjust.
16272 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16274         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
16275         * rtl.h: Adjust.
16277 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16279         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
16280         to rtx_insn *.
16281         * rtl.h: Adjust.
16283 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16285         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
16286         to rtx_insn *.
16287         * rtl.h: Likewise.
16289 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16291         * except.c (can_nonlocal_goto): Change type of argument to
16292         rtx_insn *.
16293         * rtl.h: Adjust.
16295 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16297         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
16298         * rtl.h: Adjust.
16300 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16302         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
16303         * cfgrtl.c (can_delete_label_p): Adjust.
16304         * rtl.h: likewise.
16306 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16308         * reorg.c (stop_search_p): Change argument to rtx_insn *.
16310 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16312         * except.c (make_reg_eh_region_note): Change argument to
16313         rtx_insn *.
16314         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
16315         * except.h: Adjust.
16317 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16319         * mode-switching.c (commit_mode_sets): Change type of local
16320         variable from rtx to rtx_insn *.
16322 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
16324         * doc/install.texi (--enable-languages): Add missing jit and lto info.
16325         Add ^ to grep command.
16326         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
16327         arg to last gimple_simplify declaration.  Add missing gimple_build
16328         declaration for built-in function case with four tree args.
16330 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
16331             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16333         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
16334         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
16335         (GNU_USER_DYNAMIC_LINKERN32): Update.
16337 2015-05-08  Richard Biener  <rguenther@suse.de>
16339         PR tree-optimization/66036
16340         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16341         Handle strided group loads.
16342         (vect_verify_datarefs_alignment): Likewise.
16343         (vect_enhance_data_refs_alignment): Likewise.
16344         (vect_analyze_group_access): Likewise.
16345         (vect_analyze_data_ref_access): Likewise.
16346         (vect_analyze_data_ref_accesses): Likewise.
16347         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
16348         (vectorizable_load): Likewise.
16350 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
16352         * config/rs6000/rs6000.md: Require operand inequality in one
16353         of the peepholes.
16355 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
16356             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16358         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
16359         from (set ...).
16360         * config/rx/rx.md (movdi, movdf): Likewise.
16361         Likewise for define_peephole2s.
16363 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16365         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
16366         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
16367         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
16368         vtst_u64): Rewrite using gcc vector extensions.
16370 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16372         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
16373         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
16375 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16377         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
16379 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16381         * config/glibc-stdint.h (OPTION_MUSL): Define.
16382         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
16383         Change the definition based on OPTION_MUSL for 64 bit targets.
16384         * config/linux.h (OPTION_MUSL): Redefine.
16385         * config/alpha/linux.h (OPTION_MUSL): Redefine.
16386         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
16387         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
16389 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
16390             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16392         * config.gcc (LIBC_MUSL): New tm_defines macro.
16393         * config/linux.h (OPTION_MUSL): Define.
16394         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
16395         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
16396         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16397         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16398         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16399         * config/linux.opt (mmusl): New option.
16400         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
16401         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16402         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16403         * configure: Regenerate.
16405 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16406             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16408         PR target/48904
16409         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
16410         * config/i386/knetbsd-gnu64.h: New file.
16412 2015-05-08  Marek Polacek  <polacek@redhat.com>
16414         PR c/64918
16415         * doc/invoke.texi: Document -Woverride-init-side-effects.
16417 2015-05-07  Marek Polacek  <polacek@redhat.com>
16419         PR c/65179
16420         * doc/invoke.texi: Document -Wshift-negative-value.
16422 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
16424         * gcov-tool.c (do_merge): Refactore to remove int ret.
16425         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
16426         !type == FUNC to type != FUNC.
16427         * reload.h (struct target_reload): Changee to type of
16428         x_spill_indirect_levels from bool to unsigned char.
16430 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
16432         * rtl.h (always_void_p): New function.
16433         * gengenrtl.c (always_void_p): Likewise.
16434         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
16435         with code foo are always VOIDmode.
16436         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
16437         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
16438         compare-elim.c, config/aarch64/aarch64.c,
16439         config/aarch64/aarch64.md, config/alpha/alpha.c,
16440         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
16441         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
16442         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
16443         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16444         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
16445         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
16446         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
16447         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
16448         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
16449         config/ia64/vect.md, config/iq2000/iq2000.c,
16450         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
16451         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
16452         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
16453         config/mep/mep.c, config/microblaze/microblaze.c,
16454         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
16455         config/mn10300/mn10300.c, config/msp430/msp430.c,
16456         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
16457         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
16458         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
16459         config/rs6000/altivec.md, config/rs6000/rs6000.c,
16460         config/rs6000/rs6000.md, config/rs6000/vector.md,
16461         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
16462         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
16463         config/sh/sh.md, config/sh/sh_treg_combine.cc,
16464         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
16465         config/spu/spu.md, config/stormy16/stormy16.c,
16466         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
16467         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
16468         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
16469         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
16470         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
16471         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
16472         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
16473         var-tracking.c: Update calls accordingly.
16475 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
16477         PR middle-end/192
16478         PR middle-end/54303
16479         * varasm.c (function_mergeable_rodata_prefix): New function.
16480         (mergeable_string_section): Use it.
16481         (mergeable_constant_section): Use it.
16483 2015-05-07  Jeff Law  <law@redhat.com>
16485         PR target/39726
16486         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16487         simplifier to narrow arithmetic.
16488         * generic-match-head.c: (types_match, single_use): New functions.
16489         * gimple-match-head.c: (types_match, single_use): New functions.
16491 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16493         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
16494         rtx type.
16496 2015-05-07  Richard Biener  <rguenther@suse.de>
16498         PR tree-optimization/66002
16499         * passes.def: Schedule another pass_merge_phi after ifcombine, right
16500         before phiopt.
16502 2015-05-07  Marek Polacek  <polacek@redhat.com>
16503             Martin Uecker  <uecker@eecs.berkeley.edu>
16505         * doc/invoke.texi: Document -fsanitize=bounds-strict.
16506         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
16507         into SANITIZE_NONDEFAULT.
16508         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
16510 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
16512         PR target/66015
16513         * config/alpha/alpha.c (alpha_override_options_after_change): New.
16514         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
16515         (alpha_override_options): Move align_loops, align_jumps and
16516         align_functions handling into alpha_override_options_after_change.
16518 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
16519             Chris Jones  <chrisj@nvidia.com>
16520             Joshua Conner  <jconner@nvidia.com>
16522         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
16523         linking of crtfastmath.o.
16524         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
16526 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
16528         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
16529         (cstore<mode>4_unsigned_imm): New expander.
16530         (cstore<mode>4): Remove empty constraint strings.  Use the new
16531         expanders.
16533 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
16535         PR target/64208
16536         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
16537         alternatives.
16539 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16541         * config/aarch64/geniterators.sh: Use standard BRE in sed.
16543 2015-05-06  Alan Modra  <amodra@gmail.com>
16545         PR target/66033
16546         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
16547         (UNSPEC_NOP): Define.
16548         (reload_vsx_from_gpr<mode>): Add missing DONE.
16549         (reload_gpr_from_vsx<mode>): Likewise.
16550         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
16551         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
16553 2015-05-06  Christian Bruel  <christian.bruel@st.com>
16555         PR target/66015
16556         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
16557         align_jumps, align_functions into aarch64_override_options_after_change.
16559 2015-05-06  Richard Biener  <rguenther@suse.de>
16561         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
16562         vect_transform_slp_perm_load to check if we support a permutation
16563         for basic-block vectorization.
16565 2015-05-06  Nick Clifton  <nickc@redhat.com>
16567         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
16568         used, even if it is not being used as a frame pointer.
16570 2015-05-05  Jason Merrill  <jason@redhat.com>
16572         * dwarf2out.c (gen_member_die): Don't emit anything for an
16573         anonymous class constructor.
16575 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
16577         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
16578         that it reflects the block structure.
16579         (afdo_propagate_edge): Likewise.
16580         (afdo_calculate_branch_prob): Likewise.
16581         (afdo_annotate_cfg): Likewise.
16582         * cfgcleanup.c (equal_different_set_p): Likewise.
16583         (try_crossjump_to_edge): Likewise.
16584         * cgraph.c (cgraph_node::verify_node): Likewise.
16585         * cgraphunit.c (expand_all_functions): Likewise.
16586         * config/i386/i386.c (ix86_expand_copysign): Likewise.
16587         (exact_dependency_1): Likewise.
16588         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
16589         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
16590         * gensupport.c (process_define_subst): Likewise.
16591         * lto-wrapper.c (merge_and_complain): Likewise.
16592         * tree-if-conv.c (if_convertible_bb_p): Likewise.
16593         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
16594         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
16595         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16596         * tree-vect-loop.c (vectorizable_reduction): Likewise.
16597         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16598         * tree-vect-stmts.c (vectorizable_shift): Likewise.
16599         * tree-vrp.c (vrp_finalize): Likewise.
16600         * tree.c (variably_modified_type_p): Likewise.
16602 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
16604         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
16605         on darwin12 and later.
16606         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
16607         file to pass -rdynamic on darwin12 and later.
16608         * config/darwin.opt (rdynamic): Add.
16610 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16612         * doc/extend.texi (C Extensions): Update menu for moved Variable
16613         Attributes and Type Attributes sections.
16615 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16617         PR target/65990
16618         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
16619         if rep_8byte stringop strategy was specified for 32-bit target.
16621 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
16623         PR target/65915
16624         * config/i386/i386.md (vector convert to float spltiter): Check for
16625         xmm16+, when splitting scalar float conversion.
16626         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
16628 2015-05-05  Nick Clifton  <nickc@redhat.com>
16630         * config/msp430/msp430-opts.h (enum msp430_regions): New.
16631         * config/msp430/msp430.c (msp430_override_options): Complain if
16632         -mcode-region or -mdata-region is used on a non MSP430X.
16633         (msp430_section_attr): New function.  Checks lower, upper and
16634         either attributes.
16635         (msp430_attribute_table): Add lower, upper and either.
16636         (gen_prefix): New function.  Generates a prefix for a section
16637         name.
16638         (msp430_select_section): New function - handles the choice of
16639         section for an object.  Takes into account memory region
16640         attributes and options.
16641         (msp430_function_section): Use gen_prefix.
16642         (TARGET_SECTION_TYPE_FLAGS): Define.
16643         (msp430_section_type_flags): New function.
16644         (TARGET_ASM_UNIQUE_SECTION): Define.
16645         (msp430_unique_section): New function.
16646         (msp430_output_aligned_decl_common): New function.
16647         (msp430_do_not_relax_short_jumps): New function.
16648         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
16649         Define.
16650         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16651         * config/msp430/msp430-protos.h
16652         (msp430_do_not_relax_short_jumps): New prototype.
16653         (msp430_output_aligned_decl_common): New prototype.
16654         * config/msp430/msp430.md (length): New attribute.
16655         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
16656         then use a long code sequence for short jumps.
16657         * config/msp430/msp430.opt (mcode-region): New.
16658         (mdata-region): New.
16659         * doc/invoke.texi: Document new options.
16660         * doc/extend.texi: Document new attributes.
16662 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16664         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
16665         (tune_params): Add field branch_costs.
16666         (aarch64_branch_cost): Declare.
16667         * gcc/config/aarch64.c (generic_branch_cost): New.
16668         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
16669         (cortexa53_tunings): Likewise.
16670         (cortexa57_tunings): Likewise.
16671         (thunderx_tunings): Likewise.
16672         (xgene1_tunings): Likewise.
16673         (aarch64_branch_cost): Define.
16674         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
16676 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16678         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
16679         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
16680         * config/i386/i386.md: Ditto.
16681         * config/i386/winnt.c: Ditto.
16683 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16685         * doc/extend.texi (__atomic Builtins): Move implementation details
16686         to the end of the description, rewrite opening paragraphs, state
16687         difference with __sync builtins, state C11/C++11 assumptions,
16688         weaken itemized descriptions, add explanation of memory model
16689         behaviour, expand description of compare-exchange, simplify text.
16691 2015-05-05  Renlin Li  <renlin.li@arm.com>
16693         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
16695 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
16697         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
16698         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16699         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
16700         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16701         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
16702         * configure: Regenerate.
16703         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
16704         * doc/install.texi (aarch64*-*-*): Document new
16705         --enable-fix-cortex-a53-843419 option.
16706         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
16707         and -mno-fix-cortex-a53-843419 options.
16709 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16711         PR target/65871
16712         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
16714 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
16716         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
16717         fix overactive TYPE_MIN_VALUE check and add FIXME for type
16718         compatibility problems.
16720 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16722         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
16723         constraints.
16724         (cbranchsi4_reg): New.
16725         * config/microblaze/microblaze.c
16726         (microblaze_expand_conditional_branch_reg): New.
16727         * config/microblaze/microblaze-protos.h
16728         (microblaze_expand_conditional_branch_reg): New prototype.
16730 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16732         * config/microblaze/microblaze.md (peephole2): New.
16734 2015-05-04  Jeff Law  <law@redhat.com>
16736         Revert:
16737         2015-05-04  Jeff Law  <law@redhat.com>
16739         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16740         simplifier to narrow arithmetic.
16741         * generic-match-head.c: (types_match, single_use): New functions.
16742         * gimple-match-head.c: (types_match, single_use): New functions.
16744 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16746         PR target/65987
16747         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
16748         (split_branches): Likewise.
16750 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
16752         * common.opt (fdelete-null-pointer-checks): Init to -1.
16753         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
16754         override flag_delete_null_pointer_checks default.
16755         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
16756         behavior re address zero.  Better document target-specific behavior.
16757         (-fisolate-errneous-paths-dereference): Mention relationship to
16758         -fdelete-null-pointer-checks.
16760 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16762         PR tree-optimization/65984
16763         * ubsan.c: Include tree-cfg.h.
16764         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
16765         stmt_could_throw_p test, rename can_throw variable to ends_bb.
16767 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16769         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
16770         to CONST_DOUBLE_P predicate.
16771         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
16772         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
16773         allow only operands that satisfy standard_sse_constant_p predicate.
16774         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
16775         to CONST_DOUBLE_P predicate.
16777 2015-05-04  Jeff Law  <law@redhat.com>
16779         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16780         simplifier to narrow arithmetic.
16781         * generic-match-head.c: (types_match, single_use): New functions.
16782         * gimple-match-head.c: (types_match, single_use): New functions.
16784 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
16786         * config/arm/arm.c: Restore bootstrap.
16788 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16790         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
16791         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
16792         as CONST_WIDE_INT, not CONST_DOUBLE.
16793         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
16794         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
16795         (ix86_find_base_term): Do not check for CONST_DOUBLE.
16796         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
16797         (ix86_build_signbit_mask): Rewrite using wide ints.
16798         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
16799         (ix86_rtx_costs): Handle CONST_WIDE_INT.
16800         (find_constant): Ditto.
16801         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
16802         using gen_int_mode.
16803         * config/i386/predicates.md (x86_64_immediate_operand)
16804         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16805         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
16806         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16807         (const0_operand): Also match const_wide_int.
16808         (constm1_operand): Ditto.
16809         (const1_operand): Ditto.
16811 2015-05-04  Richard Biener  <rguenther@suse.de>
16813         PR tree-optimization/65965
16814         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
16815         store groups at gaps.
16817 2015-05-04  Richard Biener  <rguenther@suse.de>
16819         PR tree-optimization/65935
16820         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
16821         then make sure to apply that swapping to the IL.
16823 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16825         * Makefile.in (PATCHLEVEL_c): New variable.
16826         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
16827         expand the same way as if DEVPHASE_c was non-empty.
16829 2015-05-04  Kai Tietz  <ktietz@redhat.com>
16831         PR target/65559
16832         * lto-wrapper.c (run_gcc): Open filename
16833         in binary-mode.
16835 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
16837         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
16838         sections up in file, to immediately after the Function Attributes
16839         section.
16841 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
16843         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
16845 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16847         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
16848         (insert_partition_copy_on_edge): Adjust.
16849         (insert_rtx_to_part_on_edge): Likewise.
16850         (insert_part_to_rtx_on_edge): Likewise.
16852 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16854         * function.c (set_return_jump_label): Change type of argument to
16855         rtx_insn *.
16856         * function.h (set_return_jump_label): Adjust.
16858 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16860         * reload.h (struct reg_equivs_t): Change type of init to
16861         rtx_insn *.
16862         * ira.c (fix_reg_equiv_init): Adjust.
16863         * reload1.c (eliminate_regs_1): Likewise.
16864         (init_eliminable_invariants): Likewise.
16866 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16868         * cselib.c (fp_setter_insn): Take a rtx_insn *.
16869         * cselib.h (fp_setter_insn): Adjust.
16871 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16873         * recog.c (struct validate_replace_src_data): Change type of
16874         insn field to rtx_insn *.
16875         (validate_replace_src_group): Change type of argument to rtx_insn *.
16876         * recog.h (validate_replace_src_group): Adjust.
16878 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16880         * haifa-sched.c: Change the type of some variables to rtx_insn *.
16881         * sched-deps.c: Likewise.
16882         * sched-int.h: Likewise.
16883         * sched-rgn.c: Likewise.
16884         * sel-sched.c: Likewise.
16886 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16888         to rtx_insn *.
16889         * config/i386/i386.c: Change the type of some arguments to
16890         rtx_insn *.
16891         * config/arm/arm.c: Likewise.
16893 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16895         * lra-constraints.c: Change type of some arguments to rtx_insn *.
16897 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16899         * regcprop.c (kill_autoinc_value): Change type of argument to
16900         rtx_insn *.
16902 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16904         * genrecog.c (print_subroutine): Adjust.
16905         * recog.c (get_bool_attr_mask_uncached): Likewise.
16906         * recog.h (struct recog_data_d): Change the type of insn to
16907         rtx_insn *.
16909 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16911         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
16913 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16915         * df-problems.c (df_set_note): Change type of argument to
16916         rtx_insn *.
16918 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16920         * builtins.c (expand_builtin_trap): Change type of local
16921         variable to rtx_insn *.
16922         (add_sched_insns_for_speculation): Likewise.
16923         (ix86_emit_save_regs): Likewise.
16924         (get_scratch_register_on_entry): Likewise.
16925         (ix86_emit_restore_reg_using_pop): Likewise.
16926         (ix86_emit_leave): Likewise.
16927         (ix86_emit_restore_regs_using_mov): Likewise.
16928         (ix86_expand_epilogue): Likewise.
16929         Likewise.
16930         (rl78_alloc_physical_registers_umul): Likewise.
16931         * cselib.c (discard_useless_locs): Likewise.
16932         (cselib_invalidate_regno): Likewise.
16933         (cselib_invalidate_mem): Likewise.
16934         * function.c (expand_function_start): Likewise.
16935         (emit_use_return_register_into_block): Likewise.
16936         * gcse.c: Likewise.
16937         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
16938         * ifcvt.c (noce_get_alt_condition): Likewise.
16939         * loop-doloop.c (doloop_condition_get): Likewise.
16940         * lra-constraints.c (inherit_in_ebb): Likewise.
16941         * modulo-sched.c (sms_schedule_by_order): Likewise.
16942         * recog.c (next_insn_tests_no_inequality): Likewise.
16943         * reorg.c (emit_delay_sequence): Likewise.
16944         (update_reg_dead_notes): Likewise.
16945         (fix_reg_dead_note): Likewise.
16946         (fill_slots_from_thread): Likewise.
16947         (delete_computation): Likewise.
16949 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
16951         * doc/extend.texi (Variable Attributes): Add menu and proper
16952         @nodes to subsections.  Move Microsoft Windows attributes to
16953         their own subsection.
16954         (Type Attributes): Reorganize introduction to remove duplicate
16955         list of attributes.  Add menu and proper @nodes to subsections.
16956         Alphabetize the main table of common attributes.
16958 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
16960         * match.pd: New simplification patterns.
16961         (x + (x & 1))  -> ((x + 1) & ~1)
16962         (x & ~(x & y)) -> ((x & ~y))
16963         (x | ~(x | y)) -> ((x | ~y))
16965 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16967         * target.def (attribute_table): Mention that struct attribute_spec
16968         is defined in tree-core.h rather than tree.h
16969         * doc/tm.texi: Regenerate.
16971 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
16973         * genrecog.c (test): Rename to rtx_test.  Update rest of file
16974         accordingly.
16976 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16978         PR translation/65959
16979         * params.h (DEFPARAM): Rename msgid to nocmsgid.
16981 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16983         * gcc/config/aarch64/aarch64-protos.h (tune_params):
16984         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
16985         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
16986         Return value depending on target.
16987         (generic_tunings): Initialize new target settings.
16988         (cortexa53_tunings): Likewise.
16989         (cortexa57_tunings): Likewise.
16990         (thunderx_tunings): Likewise.
16991         (xgene1_tunings): Likewise.
16993 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16995         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
16996         Make Cortex-A53 shift costs more accurate.
16998 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17000         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
17001         UNSIGNED_FLOAT.
17003 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
17005         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
17006         Calculate cost of op0 and op1 in PLUS and MINUS cases.
17008 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17010         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
17011         Add cost of op0 in the compare-with-fpzero case.
17013 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
17015         * builtins.c (fold_builtin_1): Remove spurious second
17016         semicolon.
17017         * cgraph.h (symtab_node::get_availability): Likewise.
17018         * opts.c (common_handle_option): Remove spurious second semicolon.
17019         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17020         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
17022 2015-04-30  Caroline Tice  <cmtice@google.com>
17024         PR gcov-profile/65929
17025         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
17026         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
17027         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
17028         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
17029         * doc/tm.texi: Regenerate.
17030         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
17031         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
17032         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
17033         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
17035 2015-04-30  Marek Polacek  <polacek@redhat.com>
17037         * varasm.c (handle_cache_entry): Fix logic.
17039 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17041         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
17042         (*extrsi5_insn_uxtw_alt): Likewise.
17043         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
17044         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
17045         operations.
17047 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17049         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
17050         fabd in ABS case.
17052 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17054         * config/aarch64/aarch64.md
17055         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
17056         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
17057         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
17058         appropriately.  Handle alternative EON form.
17060 2015-04-30  Renlin Li  <renlin.li@arm.com>
17062         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
17063         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
17065 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
17067         PR ipa/65873
17068         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
17069         -fstrict-aliasing boundaries.
17071 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17073         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
17074         and [SU]MNEGL patterns.
17076 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17078         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
17079         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
17080         combined arithmetic-shift ops.  Properly handle all shift and extend
17081         operations that can occur in combination with PLUS/MINUS.
17082         Rename maybe_fma to compound_p.
17083         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
17084         arithmetic and shift operations.
17086 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17088         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
17089         rather than arith_shift cost when costing ADD/MINUS of an
17090         extended value.
17092 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
17094         PR lto/65948
17095         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
17096         to itself.
17098 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
17100         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
17101         are for the same position.
17103 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
17105         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
17106         vectorize_loops.
17107         (vectorize_loops): Use it.
17109 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17111         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
17112         for aggregate types.
17113         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
17114         type to be non_ODR.
17115         * tree.c (need_assembler_name_p): Compute mangled name for
17116         non-fundamental types and integer types.
17118 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
17120         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
17121         manual swaps.
17122         * expr.c (expand_expr_real_2): Likewise.
17124 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17126         * tree.c (build_common_builtin_nodes): Do not build
17127         __builtin_alloca_with_align as equivalent of library alloca.
17129 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17131         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
17132         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
17133         bugus variants.
17134         * tree.c: Include print-tree.h and ipa-utils.h
17135         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
17136         (free_lang_data_in_cgraph): Call verify_type.
17137         (verify_type_variant): New function.
17138         (verify_type): New function.
17139         * tree.h (verify_type): Declare.
17141 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
17143         * config/mips/mips-cpus.def: (mips4): Change default processor
17144         from PROCESSOR_R8000 to PROCESSOR_R10000.
17146 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
17148         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
17149         la/jalr instead of jal.
17151 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
17153         PR target/65871
17154         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
17155         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
17156         (setcc+movzbl peephole2): Check also clobbered reg.
17157         (setcc+andl peephole2): Ditto.
17159 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17161         PR libgomp/65099
17162         * config/nvptx/mkoffload.c (target_ilp32): New variable.
17163         (main): Set it depending on "-foffload-abi=[...]".
17164         (compile_native, main): Use it to pass "-m32" or "-m64" to the
17165         compiler.
17167 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17169         PR target/65770
17170         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
17171         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
17172         Flip lane index back at assembly time for bigendian.
17174 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17176         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
17177         * gimplify.c (gimplify_omp_workshare): Use it.
17179 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17181         * Makefile.in (build/genrecog.o): Depend on inchash.h.
17182         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
17183         build/inchash.o
17184         * genrecog.c: Rewrite most of the code except for the third page.
17186 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17188         * inchash.h, inchash.c: Include bconfig.h for build objects.
17189         * Makefile.in (build/inchash.o): New rule.
17191 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
17193         PR target/65924
17194         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
17195         number in type attribute expression.
17197 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17199         * loop-iv.c (canon_condition): Generalize to all types of integer
17200         constant.
17202 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
17204         * gimple-walk.c: Prune duplicate or unneeded includes.
17205         (walk_gimple_asm): Only call parse_input_constraint or
17206         parse_output_constraint if their findings are used.
17207         Honour parse_input_constraint and parse_output_constraint
17208         result.
17210 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17212         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
17214 2015-04-29  Tom de Vries  <tom@codesourcery.com>
17216         PR tree-optimization/65893
17217         * passes.def (pass_all_optimizations): Move pass_stdarg to after
17218         pass_dce.
17220 2015-04-29  Richard Biener  <rguenther@suse.de>
17222         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17223         compute GROUP_SIZE for basic-block SLP.
17224         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
17225         take into account gaps.
17226         (vect_get_mask_element): Properly reject references to previous
17227         vectors.
17228         (vect_transform_slp_perm_load): Likewise.
17230 2015-04-29  Christian Bruel  <christian.bruel@st.com>
17232         PR target/64835
17233         * config/i386/i386.c (ix86_default_align): New function.
17234         (ix86_override_options_after_change): Call ix86_default_align.
17235         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
17236         (ix86_override_options_after_change): New function.
17238 2015-04-28  Jeff Law  <law@redhat.com>
17240         * tree-ssa-dom.c (record_equality); Fix comment typos.
17242 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17244         PR tree-optimization/65887
17245         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
17247 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
17249         * doc/extend.texi (Declaring Attributes of Functions): Split into
17250         subsections by target.  Alphabetize the table of common attributes.
17251         Rewrite some of the introductory text to reflect the new structure.
17252         Update some cross-references to point to the new subsections.
17253         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
17254         duplicate copies in the discussion of function, label, and type
17255         attributes.
17257 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
17259         PR bootstrap/65910
17260         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
17262 2015-04-28  Jason Merrill  <jason@redhat.com>
17264         PR c++/65734
17265         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
17266         (finalize_type_size): Respect TYPE_USER_ALIGN.
17267         (layout_type) [ARRAY_TYPE]: Likewise.
17269 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
17271         * config/arm/arm.md (*arm_movt): Fix type attribute.
17272         (*cmpsi_shiftsi): Likewise.
17273         (*cmpsi_shiftsi_swp): Likewise.
17274         (*movsicc_insn): Likewise.
17275         (*cond_move): Likewise.
17276         (*if_plus_move): Likewise.
17277         (*if_move_plus): Likewise.
17278         (*if_arith_move): Likewise.
17279         (*if_move_arith): Likewise.
17280         (*if_shift_move): Likewise.
17281         (*if_move_shift): Likewise.
17282         (*arm_movtas_ze): Likewise.
17283         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
17284         redundancy and type attribute.
17285         (*thumb2_movsi_insn): Fix type attribute.
17286         (*thumb2_addsi_short): Likewise.
17287         (thumb2_addsi3_compare0): Likewise.
17288         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
17289         attributes accordingly.
17291 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
17293         PR other/65911
17294         * function.c (pad_to_arg_alignment): Add parentheses.
17296 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
17298         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
17299         libgcc/config/frv/elf-lib.h.
17301 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17303         * tree-call-cdce.c: Fix example in header comment.
17305 2015-04-28  Richard Biener  <rguenther@suse.de>
17307         PR tree-optimization/62283
17308         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
17309         fails fatally and we are vectorizing a basic-block simply
17310         cause the child to be constructed piecewise.
17311         (vect_analyze_slp_cost_1): Adjust.
17312         (vect_detect_hybrid_slp_stmts): Likewise.
17313         (vect_bb_slp_scalar_cost): Likewise.
17314         (vect_get_constant_vectors): For piecewise constructed
17315         constants place them after the last def.
17316         (vect_get_slp_defs): Adjust.
17317         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
17318         externals for basic-block vectorization.
17320 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17322         PR target/63503
17323         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
17324         aarch64-*-*.
17325         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
17326         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
17327         (AARCH64_TUNE_FMA_STEERING): Likewise.
17328         * config/aarch64/aarch64-cores.def: Set
17329         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
17330         FMUL/FMADD instructions.
17331         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
17332         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
17333         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
17334         * config/aarch64/cortex-a57-fma-steering.h: New file.
17335         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17337 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
17339         * gensupport.c (std_preds): Add missing codes to address_operand entry.
17341 2015-04-28  Richard Biener  <rguenther@suse.de>
17343         PR tree-optimization/65851
17344         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
17345         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
17346         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
17347         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
17348         (ccp_visit_phi_node): Adjust.
17349         (evaluate_stmt): For simplifications to SSA names return its
17350         lattice value if that isn't VARYING.  Return immediately when
17351         simplified to a constant.
17352         (visit_assignment): Adjust.
17353         (ccp_visit_stmt): Likewise.
17355 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17357         PR tree-optimization/65818
17358         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
17359         evaluated.
17361 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17363         * calls.c (save_fixed_argument_area): Don't check
17364         ARGS_GROW_DOWNWARD with the preprocessor.
17365         (restore_fixed_argument_area): Likewise.
17366         (mem_overlaps_already_clobbered_arg_p): Likewise.
17367         (check_sibcall_argument_overlap): Likewise.
17368         (expand_call): Likewise.
17369         (emit_library_call_value_1): Likewise.
17370         (store_one_arg): Likewise.
17371         * function.c (assign_parms): Likewise.
17372         (locate_and_pad_parm): Likewise.
17373         (pad_to_arg_alignment): Likewise.
17374         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17376 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17378         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
17379         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
17380         * calls.c (save_fixed_argument_area): Don't chekc if
17381         ARGS_GROW_DOWNWARD is defined.
17382         (restore_fixed_argument_area): Likewise.
17383         (mem_overlaps_already_clobbered_arg_p): Likewise.
17384         (check_sibcall_argument_overlap): Likewise.
17385         (expand_call): Likewise.
17386         (emit_library_call_value_1): Likewise.
17387         (store_one_arg): Likewise.
17388         * function.c (assign_parms): Likewise.
17389         (locate_and_pad_parm): Likewise.
17390         (pad_to_arg_alignment): Likewise.
17391         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17393 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17395         * defaults.h (gen_epilogue): New function.
17396         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
17397         defined.
17398         * cfgrtl.c (cfg_layout_finalize): Likewise.
17399         * df-scan.c: Likewise.
17400         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17401         (reposition_prologue_and_epilogue_notes): Likewise.
17402         * reorg.c (find_end_label): Likewise.
17403         * toplev.c: Likewise.
17405 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17407         * bb-reorder.c (HAVE_return): Don't check if its undefined.
17408         * defaults.h (gen_simple_return): New function.
17409         (gen_simple_return): Likewise.
17410         (HAVE_return): Add default definition to false.
17411         (HAVE_simple_return): Likewise.
17412         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
17413         HAVE_return and HAVE_simple_return are defined.
17414         * function.c (gen_return_pattern): Likewise.
17415         (convert_jumps_to_returns): Likewise.
17416         (thread_prologue_and_epilogue_insns): Likewise.
17417         * reorg.c (find_end_label): Likewise.
17418         (dbr_schedule): Likewise.
17419         * shrink-wrap.c: Likewise.
17420         * shrink-wrap.h: Likewise.
17422 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17424         * defaults.h (EPILOGUE_USES): Add default definition of false.
17425         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
17426         * resource.c (init_resource_info): Likewise.
17428 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17430         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
17431         to false.
17432         * dwarf2out.c (field_byte_offset): REmove check if
17433         PCC_BITFIELD_TYPE_MATTERS is defined.
17434         * stor-layout.c (layout_decl): Likewise.
17435         (update_alignment_for_field): Likewise.
17436         (place_field): Likewise.
17438 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17440         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
17441         true.
17442         * regrename.c (check_new_reg_p): Remove check if
17443         HARD_REGNO_RENAME_OK is defined.
17444         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
17446 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17448         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
17449         * cse.c (fold_rtx): Likewise.
17450         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
17451         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
17452         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
17453         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
17454         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
17455         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
17456         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
17457         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
17458         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
17459         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
17460         * Likewise.
17461         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
17462         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
17463         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
17464         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
17465         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
17466         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
17467         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
17468         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
17469         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
17470         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
17471         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
17472         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
17473         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
17474         * doc/tm.texi: Regenerate.
17475         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
17476         either true or false.
17478 2015-04-27  Jeff Law  <law@redhat.com>
17480         PR tree-optimization/65217
17481         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
17482         of them has a single use, make sure it is the LHS of the implied
17483         copy.
17485 2015-04-28  Alan Modra  <amodra@gmail.com>
17487         PR target/65810
17488         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
17489         (offsettable_ok_by_alignment): Use minimum of decl and toc
17490         pointer alignment.  Replace dead code with assertion.
17491         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
17492         case if size exceeds toc pointer alignment.
17493         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
17494         (rs6000_emit_move): Likewise.
17495         * configure.ac: Add linker toc pointer alignment check.
17496         * configure: Regenerate.
17497         * config.in: Regenerate.
17499 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
17501         * config.gcc: Add h8300-*-linux.
17502         * config/h8300/linux.h: New.
17503         * config/h8300/t-linux: New.
17504         * config/h8300/h8300.c (h8300_option_override): Normal mode
17505         is not supported for h8300-*-linux.
17506         (h8300_file_start): Target priority change.
17507         (get_shift_alg): Likewise.
17508         (h8300_shift_need_scratch_p): Likewise.
17509         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17510         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
17512 2015-04-27  Caroline Tice  <cmtice@google.com>
17514         * final.c (final_scan_insn):  Output cold_function_name as function
17515         type.
17516         * varasm.c (cold_function_name):  Make global.
17517         (assemble_start_function):  Re-set cold_function_name.
17518         (assemble_end_function): Output cold partition size.
17519         * varasm.h (cold_function_name):  Declare global.
17521 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
17523         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
17524         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
17525         constraint.
17526         (*movxi_internal_avx512f): Ditto.
17527         (define_split): Check for xmm16+, when splitting scalar float_extend.
17528         (*extendsfdf2_mixed): Use "v" constraint.
17529         (define_split): Check for xmm16+, when splitting scalar float_truncate.
17530         (*truncdfsf_fast_sse): Use "v" constraint.
17531         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
17532         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
17533         (define_peephole2): Check for xmm16+, when converting scalar
17534         float_truncate.
17535         (define_peephole2): Check for xmm16+, when converting scalar
17536         float_extend.
17537         (*fop_<mode>_comm_mixed): Use "v" constraint.
17538         (*fop_<mode>_comm_sse): Ditto.
17539         (*fop_<mode>_1_mixed): Ditto.
17540         (*sqrt<mode>2_sse): Ditto.
17541         (*ieee_s<ieee_maxmin><mode>3): Ditto.
17543 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17545         * combine.c (simplify_if_then_else): Use std::swap instead
17546         of manually swapping.
17547         (known_cond): Likewise.
17548         (simplify_comparison): Likewise.
17550 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
17552         PR target/64579
17553         * config/rs6000/htm.md: Remove all define_expands.
17554         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
17555         UNSPECV_HTM_TABORTWCI): Remove.
17556         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
17557         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
17558         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
17559         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
17560         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
17561         tabortwci_internal): Remove define_insns.
17562         (tabort<wd>c, tabort<wd>ci): New define_insns.
17563         (tabort): Use gpc_reg_operand.
17564         (tcheck): Remove operand.
17565         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
17566         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
17567         expected value.
17568         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
17569         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
17570         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
17571         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
17572         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
17573         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
17574         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
17575         (tcheck): Remove builtin argument.
17576         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
17577         not TARGET_64BIT.
17578         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
17579         tabortdc and tabortdci builtins when not in 64-bit mode.
17580         Modify code to handle the loss of the HTM define_expands.
17581         Emit code to copy the CR register to TARGET.
17582         (htm_init_builtins): Modify code to handle the loss of the HTM
17583         define_expands.
17584         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
17585         (RS6000_BTC_64BIT): Likewise.
17586         (RS6000_BTC_CR): New macro.
17587         * doc/extend.texi: Update documentation for htm builtins.
17589 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17591         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
17592         of manually swapping.
17593         (simplify_associative_operation): Likewise.
17594         (simplify_binary_operation): Likewise.
17595         (simplify_plus_minus): Likewise.
17596         (simplify_relational_operation): Likewise.
17597         (simplify_ternary_operation): Likewise.
17599 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17601         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
17602         (xs_hi_nonmemory_operand): Remove error.
17603         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
17604         general_operand rather than xs_hi_general_operand.
17606 2015-04-27  Richard Biener  <rguenther@suse.de>
17608         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
17609         (record_equivalences_from_stmt): Valueize rhs.
17610         (record_equality): Canonicalize x and y order via
17611         tree_swap_operands_p.  Do not swap operands for same loop depth.
17613 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
17615         PR target/65296
17616         PR target/65895
17617         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
17618         Add hint how to use own spec file.
17620 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
17622         PR tree-optimization/65875
17623         * tree-vrp.c (update_value_range): If in is_new case setting
17624         old_vr to VR_VARYING, also set new_vr to it.  Remove
17625         old_vr->type == VR_VARYING test.
17626         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
17627         SSA_PROP_INTERESTING if update_value_range returned true,
17628         but new range is VR_VARYING.
17630 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17632         * combine.c (sign_extend_short_imm): New.
17633         (set_nonzero_bits_and_sign_copies): Use above new function for sign
17634         extension of src short immediate.
17635         (reg_nonzero_bits_for_combine): Likewise for tem.
17637 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17639         * stor-layout.c (self_referential_component_ref_p): New predicate.
17640         (copy_self_referential_tree_r): Use it.
17641         (self_referential_size): Punt for simple operations directly involving
17642         self-referential component references.
17643         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
17645 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17647         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
17649 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17651         * vec.h (vec): Make splice arguments const.  Update definitions
17652         accordingly.
17654 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
17656         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
17657         alternatives.
17659 2015-04-26  Tom de Vries  <tom@codesourcery.com>
17661         PR tree-optimization/65826
17662         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
17664 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
17666         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
17667         (*madd3<mode>): Ditto.
17668         (*msub4<mode>): Ditto.
17669         (*msub3<mode>): Ditto.
17670         (*nmadd4<mode>): Ditto.
17671         (*nmadd3<mode>): Ditto.
17672         (*nmadd4<mode>_fastmath): Ditto.
17673         (*nmadd3<mode>_fastmath): Ditto.
17674         (*nmsub4<mode>): Ditto.
17675         (*nmsub3<mode>): Ditto.
17676         (*nmsub4<mode>_fastmath): Ditto.
17677         (*nmsub3<mode>_fastmath): Ditto.
17679 2015-04-24  Jason Merrill  <jason@redhat.com>
17681         PR c++/50800
17682         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
17683         down when building TYPE_CANONICAL.
17684         (build_pointer_type_for_mode): Likewise.
17686 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
17688         * genrecog.c (validate_pattern): Check matching constraint refers
17689         to a lower numbered operand.
17691 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17693         PR target/65849
17694         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
17695         save to independent variables use the Save attribute.  This will
17696         allow these options to be modified with the #pragma/attribute
17697         target support.
17698         (-mallow-movmisalign): Likewise.
17699         (-mallow-df-permute): Likewise.
17700         (-msched-groups): Likewise.
17701         (-malways-hint): Likewise.
17702         (-malign-branch-targets): Likewise.
17703         (-mvectorize-builtins): Likewise.
17704         (-msave-toc-indirect): Likewise.
17706         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
17707         can be set via the #pragma/attribute target support.
17708         (rs6000_opt_vars): Likewise.
17709         (rs6000_inner_target_options): If VSX was set, also set
17710         -mno-avoid-indexed-addresses.
17712 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17714         * config/arm/iterators.md (shiftable_ops): Rename to...
17715         (SHIFTABLE_OPS): ... This.  Update use in comments.
17716         (ior_xor): Rename to...
17717         (IOR_XOR): ... This.
17718         (vqh_ops): Rename to...
17719         (VQH_OPS): ... This.
17720         (vqhs_ops): Rename to...
17721         (VQHS_OPS): ... This.
17722         (rshifts): Rename to...
17723         (RSHIFTS): ... This.
17724         (returns): Rename to...
17725         (RETURNS): ... This.
17726         * config/arm/arm.md: Update uses of the above.
17727         * config/arm/neon.md: Likewise.
17729 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17731         * config.host (case ${host}): Add aarch64*-*-linux case.
17732         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
17733         fields to all the cores.
17734         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
17735         Add MCPU_MTUNE_NATIVE_SPECS.
17736         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
17737         field to all extensions.
17738         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
17739         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
17740         Adjust definition of AARCH64_OPT_EXTENSION.
17741         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
17742         (MCPU_MTUNE_NATIVE_SPECS): Define.
17743         * config/aarch64/driver-aarch64.c: New file.
17744         * config/aarch64/x-arch64: New file.
17745         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
17746         -mtune and -march.
17748 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17749             Wei Mi  <wmi@google.com>
17751         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
17752         * config/i386/i386.c (extract_base_offset_in_addr): New function.
17753         (ix86_operands_ok_for_move_multiple): Ditto.
17754         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
17755         (movlpd/movhpd to movupd peephole2): Ditto.
17757 2015-04-24  Marek Polacek  <polacek@redhat.com>
17759         PR c/61534
17760         * input.h (from_macro_expansion_at): Define.
17762         PR c/63357
17763         * doc/invoke.texi: Update description of -Wlogical-op.
17765 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17767         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
17768         ternary operator in fprintf and harmonize spacing.
17770 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17772         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
17773         Mark operand1 commutative.
17775 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17777         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
17778         input operands in memory.
17779         (*vec_concatv2si_sse4_1): Ditto.
17780         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
17781         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
17782         register_operand.
17783         (vec_extract_hi_v32hi): Ditto.
17784         (vec_extract_hi_v64hi): Ditto.
17785         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
17787 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17788             Steven Bosscher <steven@gcc.gnu.org>
17790         PR rtl-optimization/34503
17791         * cprop.c (cprop_reg_p): New.
17792         (hash_scan_set): Use above function to check if register can be
17793         propagated.
17794         (find_avail_set): Return up to two sets, one whose source is a
17795         register and one whose source is a constant.  Sets are returned in an
17796         array passed as parameter rather than as a return value.
17797         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
17798         sets returned by find_avail_set, starting with the one whose source is
17799         a constant. Use cprop_reg_p to check if register can be propagated.
17800         (do_local_cprop): Use cprop_reg_p to check if register can be
17801         propagated.
17802         (implicit_set_cond_p): Likewise.
17804 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17806         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
17807         (sem_function::equals): IGNORED_NODES parameter is now unused;
17808         update call of equals_private.
17809         (sem_function::equals_private): Do not call equals_wpa; skip
17810         gimple body matching if there is no body.
17811         (sem_function::init): Add logic to hash tthunk info.
17812         (sem_function::parse): Also parse thunks.
17813         * ipa-icf.h (equals_private): Update declaration.
17815 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17817         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
17818         asterisk from name so this can be generated directly.
17819         (*altivec_stvx_<mode>_internal): Likewise.
17820         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
17821         that this is never called during or after reload/lra.
17822         (rs6000_frame_related): Remove split_reg
17823         argument and logic that references it.
17824         (emit_frame_save): Remove last parameter from call to
17825         rs6000_frame_related.
17826         (rs6000_emit_prologue): Remove last parameter from eight calls to
17827         rs6000_frame_related.  Force generation of stvx instruction for
17828         Altivec register saves.  Remove split_reg handling, which is no
17829         longer needed.
17830         (rs6000_emit_epilogue):  Force generation of lvx instruction for
17831         Altivec register restores.
17833 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17835         * config/rs6000/rs6000.opt (mcrypto): Change option description to
17836         match category changes in ISA 2.07B.
17838 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17840         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
17841         iterators.
17842         (cmp_op, cmp_type): New code attributes.
17843         (NEON_VCMP, NEON_VACMP): New int iterators.
17844         (cmp_op_unsp): New int attribute.
17845         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
17846         (neon_vceq<mode>): Delete.
17847         (neon_vc<cmp_op><mode>_insn): New pattern.
17848         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
17849         (neon_vcgeu<mode>): Delete.
17850         (neon_vcle<mode>): Likewise.
17851         (neon_vclt<mode>: Likewise.
17852         (neon_vcage<mode>): Likewise.
17853         (neon_vcagt<mode>): Likewise.
17854         (neon_vca<cmp_op><mode>): New define_expand.
17855         (neon_vca<cmp_op><mode>_insn): New pattern.
17856         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
17858 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17860         * tree.h (attribute_value_equal): Declare.
17861         * tree.c (attribute_value_equal): Export.
17863 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17865         * ipa-icf.c (sem_item::compare_attributes): New function.
17866         (sem_item::compare_referenced_symbol_properties): Compare variable
17867         attributes.
17868         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
17869         (sem_function::param_used_p): New function.
17870         (sem_function::equals_wpa): Fix attribute comparsion; match
17871         parameter type codes; do not compare paremter flags when
17872         they are not used; compare edge flags; compare indirect calls.
17873         (sem_item::update_hash_by_addr_refs): Hash reference type.
17874         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
17875         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
17876         reference use type.
17877         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
17878         * ipa-icf.h (compare_attributes, param_used_p): Declare.
17880 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17882         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
17883         cleanup.
17884         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
17885         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
17886         (sem_item::compare_referenced_symbol_properties): New.
17887         (sem_item::hash_referenced_symbol_properties): New.
17888         (sem_item::compare_cgraph_references): Rename to ...
17889         (sem_item::compare_symbol_references): ... this one; use
17890         compare_referenced_symbol_properties.
17891         (sem_function::equals_wpa): Do not compare
17892         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
17893         DECL_IS_OPERATOR_NEW; compare pointer sizes.
17894         (sem_item::update_hash_by_addr_refs): Call
17895         hash_referenced_symbol_properties.
17896         (sem_item::update_hash_by_local_refs): Cleanup.
17897         (sem_function::merge): Do not mix up symbol properties.
17898         (sem_variable::equals_wpa): Use compare_symbol_references.
17899         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
17900         (sem_item::hash_referenced_symbol_properties): New.
17901         (sem_item::compare_symbol_references): New.
17902         (sem_item::compare_cgraph_references): Remove.
17904 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
17906         PR target/26702
17907         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
17908         Emit size of local.
17910 2015-04-23  Nick Clifton  <nickc@redhat.com>
17912         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
17913         ATTRIBUTE_UNUSED to x parameter.
17914         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
17916 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17918         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
17919         TARGET_CRYPTO to TARGET_P8_VECTOR>
17920         (crypto_vpermxor_<mode>): Likewise.
17921         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
17922         (BU_CRYPTO_3A): Likewise.
17923         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
17924         (BU_CRYPTO_OVERLOAD_3A): New #define.
17925         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
17926         (VPMSUMH): Likewise.
17927         (VPMSUMW): Likewise.
17928         (VPMSUMD): Likewise.
17929         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
17930         (VPERMXOR_V4SI): Likewise.
17931         (VPERMXOR_V8HI): Likewise.
17932         (VPERMXOR_V16QI): Likewise.
17933         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
17934         BU_CRYPTO_OVERLOAD_2A.
17935         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
17936         BU_CRYPTO_OVERLOAD_3A.
17937         * config/rs6000/rs6000.opt (mcrypto): Change description of
17938         option.
17940 2015-04-23  Richard Biener  <rguenther@suse.de>
17942         * passes.def: Remove copy propagation passes run directly after CCP.
17943         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
17944         SSA names.
17945         (ccp_visit_phi_node): Rework to handle first executable edge
17946         specially.
17948 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
17950         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17951         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17952         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17953         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
17954         (thumb_legimitimize_reload_address): Remove.
17955         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
17956         Remove.
17957         (thumb_legimitimize_reload_address): Remove.
17959 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17961         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
17963 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17965         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
17966         MAX_LDM_STM_OPS.
17967         (store_multiple): Likewise.
17969 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17971         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
17972         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
17973         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
17974         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
17975         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
17976         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
17977         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
17978         Specify issue_rate value.
17979         (arm_issue_rate): Look up issue rate from tuning structs. Remove
17980         large switch statement.
17981         (arm_marvell_pj4_tune): New struct.
17982         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
17983         struct.
17985 2015-04-23  Richard Biener  <rguenther@suse.de>
17987         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
17988         (vect_find_last_store_in_slp_instance): Rename to ...
17989         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
17990         (vect_analyze_slp_cost_1): Use vector_load for constant defs
17991         and vec_construct for external defs when estimating prologue cost.
17992         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
17993         Compute costs here only when vectorizing loops.
17994         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
17995         have been determined.
17996         (vect_schedule_slp_instance): Simplify vectorized code placement
17997         and prepare for in-BB external defs.
17998         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
17999         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
18000         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
18001         guard.
18002         (vect_model_load_cost): Likewise.
18003         (vectorizable_store): Instead add it here.
18004         (vectorizable_load): Likewise.
18005         (vect_is_simple_use): Dump def type textually.
18007 2015-04-23  Richard Biener  <rguenther@suse.de>
18009         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
18010         * cfgloop.c (verify_loop_structure): Verify the root loop node.
18011         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
18012         instead of get_eh_region_from_lp_number.
18013         * loop-init.c (fix_loop_structure): If we removed a loop, reset
18014         the SCEV cache.
18016 2015-04-23  Anton Blanchard  <anton@samba.org>
18018         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
18019         need for -mprofile-kernel to save LR to stack.
18021 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18023         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
18024         adjustments.
18025         (insn_is_swappable_p): Return 1 for a convert from double to
18026         single precision when all of its uses are splats of BE element
18027         zero.
18029 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18031         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
18033 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18035         PR target/65456
18036         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
18037         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
18038         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
18039         option.
18040         (rs6000_builtin_mask_for_load): Return 0 for targets with
18041         efficient unaligned VSX accesses so that the vectorizer will use
18042         direct unaligned loads.
18043         (rs6000_builtin_support_vector_misalignment): Always return true
18044         for targets with efficient unaligned VSX accesses.
18045         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
18046         stores on targets with efficient unaligned VSX accesses is almost
18047         always the same as the cost of an aligned load or store, so model
18048         it that way.
18049         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
18050         unaligned vectors if we have efficient unaligned VSX accesses.
18051         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
18052         undocumented option.
18054 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18056         Revert:
18057         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
18059         * config.gcc (LIBC_MUSL): New tm_defines macro.
18060         * config/linux.h (OPTION_MUSL): Define.
18061         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18062         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18063         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18065         * config/linux.opt (mmusl): New option.
18066         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18067         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18069         * configure: Regenerate.
18071 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
18073         * config.gcc (LIBC_MUSL): New tm_defines macro.
18074         * config/linux.h (OPTION_MUSL): Define.
18075         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18076         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18077         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18079         * config/linux.opt (mmusl): New option.
18080         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18081         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18083         * configure: Regenerate.
18085 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
18087         * doc/invoke.texi (-fsanitize-sections): Update description.
18088         * asan.c (set_sanitized_sections): Parse incoming arg.
18089         (section_sanitized_p): Support wildcards.
18091 2015-04-22  Tom de Vries  <tom@codesourcery.com>
18093         PR tree-optimization/65823
18094         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
18095         equality between ap_copy and ap.
18097 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18099         PR target/47098
18100         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
18102 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18104         PR target/47122
18105         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
18107 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18109         PR target/55144
18110         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
18111         remove already contained t-files.
18113 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18115         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
18116         Remove unneeded forward declarations.
18117         (suitable_for_tail_call_opt_p): Commentary typo fix.
18119 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18121         * varasm.c (emit_bss): Remove redundant guard.
18123 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18125         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
18127 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18129         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
18131 2015-04-22  Hale Wang  <hale.wang@arm.com>
18132             Terry Guo  <terry.guo@arm.com>
18134         PR rtl-optimization/64818
18135         * combine.c (can_combine_p): Don't combine user-specified
18136         register if it is in an asm input.
18138 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
18140         PR ipa/65076
18141         * passes.def (early_optimizations): Add pass_dse.
18143 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18145         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
18146         * reorg.c (redundant_insn): Remove ifdef
18147         INSN_REFERENCES_ARE_DELAYED.
18148         * resource.c (mark_referenced_resources): Likewise.
18150 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18152         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
18153         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
18154         * resource.c (mark_set_resources): Likewise.
18156 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18158         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
18159         * cfgcleanup.c (flow_find_cross_jump): Likewise.
18160         (flow_find_head_matching_sequence): Likewise.
18161         (try_head_merge_bb): Likewise.
18162         * combine.c (can_combine_p): Likewise.
18163         (try_combine): Likewise.
18164         (distribute_notes): Likewise.
18165         * df-problems.c (can_move_insns_across): Likewise.
18166         * final.c (final): Likewise.
18167         * gcse.c (insert_insn_end_basic_block): Likewise.
18168         * ira.c (find_moveable_pseudos): Likewise.
18169         * reorg.c (try_merge_delay_insns): Likewise.
18170         (fill_simple_delay_slots): Likewise.
18171         (fill_slots_from_thread): Likewise.
18172         * sched-deps.c (sched_analyze_2): Likewise.
18174 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18176         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
18177         PIC_OFFSET_TABLE_REGNUM.
18179 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18181         * alias.c (init_alias_target): Remove ifdef
18182         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
18183         * df-scan.c (df_insn_refs_collect): Likewise.
18184         (df_get_regular_block_artificial_uses): Likewise.
18185         (df_get_eh_block_artificial_uses): Likewise.
18186         (df_get_entry_block_def_set): Likewise.
18187         (df_get_exit_block_use_set): Likewise.
18188         * emit-rtl.c (gen_rtx_REG): Likewise.
18189         * ira.c (ira_setup_eliminable_regset): Likewise.
18190         * reginfo.c (init_reg_sets_1): Likewise.
18191         * regrename.c (rename_chains): Likewise.
18192         * reload1.c (reload): Likewise.
18193         (eliminate_regs_in_insn): Likewise.
18194         * resource.c (mark_referenced_resources): Likewise.
18195         (init_resource_info): Likewise.
18197 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18199         * defaults.h (MASK_RETURN_ADDR): New definition.
18200         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18201         MASK_RETURN_ADDR.
18203 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18205         * defaults.h (RETURN_ADDR_OFFSET): New definition.
18206         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18207         RETURN_ADDR_OFFSET.
18208         (expand_builtin_frob_return_addr): Likewise.
18210 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18212         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
18213         (try_redirect_by_replacing_jump): Likewise.
18214         (rtl_tidy_fallthru_edge): Likewise.
18215         * combine.c (insn_a_feeds_b): Likewise.
18216         (find_split_point): Likewise.
18217         (simplify_set): Likewise.
18218         * cprop.c (cprop_jump): Likewise.
18219         * cse.c (cse_extended_basic_block): Likewise.
18220         * df-problems.c (can_move_insns_across): Likewise.
18221         * function.c (emit_use_return_register_into_block): Likewise.
18222         * haifa-sched.c (sched_init): Likewise.
18223         * ira.c (find_moveable_pseudos): Likewise.
18224         * loop-invariant.c (find_invariant_insn): Likewise.
18225         * lra-constraints.c (curr_insn_transform): Likewise.
18226         * postreload.c (reload_combine_recognize_const_pattern):
18227         * Likewise.
18228         * reload.c (find_reloads): Likewise.
18229         * reorg.c (delete_scheduled_jump): Likewise.
18230         (steal_delay_list_from_target): Likewise.
18231         (steal_delay_list_from_fallthrough): Likewise.
18232         (redundant_insn): Likewise.
18233         (fill_simple_delay_slots): Likewise.
18234         (fill_slots_from_thread): Likewise.
18235         (delete_computation): Likewise.
18236         * sched-rgn.c (add_branch_dependences): Likewise.
18238 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18240         * genconfig.c (main): Always define HAVE_cc0.
18241         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
18242         HAVE_cc0.
18243         * cfgcleanup.c (flow_find_cross_jump): Likewise.
18244         (flow_find_head_matching_sequence): Likewise.
18245         (try_head_merge_bb): Likewise.
18246         * cfgrtl.c (rtl_merge_blocks): Likewise.
18247         (try_redirect_by_replacing_jump): Likewise.
18248         (rtl_tidy_fallthru_edge): Likewise.
18249         * combine.c (do_SUBST_MODE): Likewise.
18250         (insn_a_feeds_b): Likewise.
18251         (combine_instructions): Likewise.
18252         (can_combine_p): Likewise.
18253         (try_combine): Likewise.
18254         (find_split_point): Likewise.
18255         (subst): Likewise.
18256         (simplify_set): Likewise.
18257         (distribute_notes): Likewise.
18258         * cprop.c (cprop_jump): Likewise.
18259         * cse.c (cse_extended_basic_block): Likewise.
18260         * df-problems.c (can_move_insns_across): Likewise.
18261         * final.c (final): Likewise.
18262         (final_scan_insn): Likewise.
18263         * function.c (emit_use_return_register_into_block): Likewise.
18264         * gcse.c (insert_insn_end_basic_block): Likewise.
18265         * haifa-sched.c (sched_init): Likewise.
18266         * ira.c (find_moveable_pseudos): Likewise.
18267         * loop-invariant.c (find_invariant_insn): Likewise.
18268         * lra-constraints.c (curr_insn_transform): Likewise.
18269         * optabs.c (prepare_cmp_insn): Likewise.
18270         * postreload.c (reload_combine_recognize_const_pattern):
18271         * Likewise.
18272         * reload.c (find_reloads): Likewise.
18273         (find_reloads_address_1): Likewise.
18274         * reorg.c (delete_scheduled_jump): Likewise.
18275         (steal_delay_list_from_target): Likewise.
18276         (steal_delay_list_from_fallthrough): Likewise.
18277         (try_merge_delay_insns): Likewise.
18278         (redundant_insn): Likewise.
18279         (fill_simple_delay_slots): Likewise.
18280         (fill_slots_from_thread): Likewise.
18281         (delete_computation): Likewise.
18282         (relax_delay_slots): Likewise.
18283         * sched-deps.c (sched_analyze_2): Likewise.
18284         * sched-rgn.c (add_branch_dependences): Likewise.
18286 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18288         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
18289         that is trivially ded on non cc0 targets.
18290         (simplify_set): Likewise.
18291         (mark_used_regs_combine): Likewise.
18292         * cse.c (new_basic_block): Likewise.
18293         (fold_rtx): Likewise.
18294         (cse_insn): Likewise.
18295         (cse_extended_basic_block): Likewise.
18296         (set_live_p): Likewise.
18297         * rtlanal.c (canonicalize_condition): Likewise.
18298         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18300 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18302         * conditions.h: Define macros even if HAVE_cc0 is undefined.
18303         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
18304         * final.c: Likewise.
18305         * jump.c: Likewise.
18306         * recog.c: Likewise.
18307         * recog.h: Declare functions even when HAVE_cc0 is undefined.
18308         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
18310 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18312         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
18313         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
18314         * builtins.c (expand_builtin): Remove check if
18315         EH_RETURN_DATA_REGNO is defined.
18316         * df-scan.c (df_bb_refs_collect): Likewise.
18317         (df_get_exit_block_use_set): Likewise.
18318         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18319         * ira-lives.c (process_bb_node_lives): Likewise.
18320         * lra-lives.c (process_bb_lives): Likewise.
18322 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18324         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
18325         FIRST_PSEUDO_REG): New.
18326         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
18327         (ARG_POINTER_REGNUM): Define to ARGP_REG.
18328         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
18329         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
18330         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
18331         (FIRST_INT_REG): New.
18332         (LAST_INT_REG): New.
18333         (FIRST_*_REG): Define using *_REG.
18334         (LAST_*_REG): Ditto.
18335         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
18336         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
18337         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
18339 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18341         * expmed.c: (synth_mult): Only assume overlapping
18342         shift with previous steps in alg_sub_t_m2 case.
18344 2015-04-21  Richard Biener  <rguenther@suse.de>
18346         PR tree-optimization/65650
18347         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
18348         transitions involving copies.
18349         (set_lattice_value): Adjust for copy lattice state.
18350         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
18351         if that doesn't dominate the merge point.
18352         (bit_value_unop): Adjust what we treat as varying mask.
18353         (bit_value_binop): Likewise.
18354         (bit_value_assume_aligned): Likewise.
18355         (evaluate_stmt): When we simplified to a SSA name record a copy
18356         instead of dropping to varying.
18357         (visit_assignment): Simplify.
18359         * gimple-match.h (gimple_simplify): Add another callback.
18360         * gimple-fold.c (fold_stmt_1): Adjust caller.
18361         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
18362         for the 2nd callback.
18363         * gimple-match-head.c (gimple_simplify): Add a callback that is
18364         used to valueize the stmt operands and use it that way.
18366 2015-04-21  Richard Biener  <rguenther@suse.de>
18368         PR tree-optimization/65788
18369         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
18371 2015-04-21  Richard Biener  <rguenther@suse.de>
18373         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
18374         vec_construct cost by vec_stmt_cost.
18376 2015-04-21  Richard Biener  <rguenther@suse.de>
18378         * cfghooks.h (create_basic_block): Replace with two overloads
18379         for RTL and GIMPLE.
18380         (split_block): Likewise.
18381         * cfghooks.c (split_block): Rename to ...
18382         (split_block_1): ... this.
18383         (split_block): Add two type-safe overloads for RTL and GIMPLE.
18384         (split_block_after_labels): Call split_block_1.
18385         (create_basic_block): Rename to ...
18386         (create_basic_block_1): ... this.
18387         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
18388         (create_empty_bb): Call create_basic_block_1.
18389         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
18390         split_block_after_labels.
18391         * omp-low.c (expand_parallel_call): Likewise.
18392         (expand_omp_target): Likewise.
18393         (simd_clone_adjust): Likewise.
18394         * tree-chkp.c (chkp_get_entry_block): Likewise.
18395         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
18396         create_basic_block overload.
18397         (cgraph_node::expand_thunk): Likewise.
18398         * tree-cfg.c (make_blocks): Likewise.
18399         (handle_abnormal_edges): Likewise.
18400         * tree-inline.c (copy_bb): Likewise.
18402 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18404         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
18405         New pattern.
18406         (*xor_one_cmplsidi3_ze): Likewise.
18408 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18410         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
18411         use df_remove_problem rather than manually removing problems, leaving
18412         holes in df->problems_in_order[].
18414 2015-04-21  Tom de Vries  <tom@codesourcery.com>
18416         PR tree-optimization/65802
18417         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
18419 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18421         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
18422         Increase to 128.
18423         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
18424         at '.'.  Assert that there's enough space for everything.
18426 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18428         PR tree-optimization/64950
18429         Revert:
18430         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
18432         PR target/41089
18433         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18434         as volatile.
18436 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
18438         PR rtl-optimization/64916
18439         * cfgcleanup.c (values_equal_p): New function.
18440         (can_replace_by): Use it.
18442 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
18444         PR c++/65801
18445         * doc/invoke.texi ([-Wnarrowing]): Update.
18447 2015-04-20  Jeff Law  <law@redhat.com>
18449         PR tree-optimization/65658
18450         * tree-ssa-threadupdate.c (redirection_block_p): Remove
18451         redundant test for GIMPLE_ASSIGN in last change.
18453 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
18455         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
18456         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
18457         (legitimize_tls_address): Ditto.
18458         (ix86_expand_move): Ditto.
18459         (ix86_expand_binary_operator): Remove reload_in_progress checks.
18460         (ix86_expand_unary_operator): Ditto.
18461         * config/i386/predicates.md (index_register_operand): Ditto.
18463 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
18465         * reorg.c (try_merge_delay_insns): Improve correctness checking
18466         for targets with multiple delay slots.
18468 2015-04-20  Jeff Law  <law@redhat.com>
18470         PR tree-optimization/65658
18471         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
18472         statements too.
18474 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18476         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
18477         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
18478         Delete.
18480 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
18482         PR debug/65807
18483         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
18485 2015-04-20  Richard Biener  <rguenther@suse.de>
18487         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
18488         * gimple-fold.c (gimple_build_valueize): New function.
18489         (gimple_build): Always use gimple_build_valueize as valueize hook.
18491 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18493         PR target/64134
18494         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
18495         and overwrite variable parts if <= 1/2 the elements are variable.
18497 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
18499         PR rtl-optimization/65805
18500         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
18501         Don't use difference of offset and previous offset if
18502         update_sp_offset is non-zero.
18503         (eliminate_regs_in_insn): Ditto.
18504         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
18505         lra_eliminate_regs_1 call.
18506         * lra-constraints.c (get_equiv_with_elimination): Ditto.
18508 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
18510         * hash-table.h: Remove version of hash_table that stored value_type *.
18511         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
18512         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
18513         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
18514         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
18515         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
18516         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
18517         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18518         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
18519         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
18520         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
18521         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
18522         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
18523         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
18524         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18525         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
18526         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
18528 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18529             Jakub Jelinek  <jakub@redhat.com>
18531         PR target/65787
18532         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
18533         subsequent SH_NONE operand does not overwrite an existing *special
18534         value.
18535         (adjust_extract): Handle case where a vec_extract operation is
18536         wrapped in a PARALLEL.
18538 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18540         PR target/65780
18541         * config/i386/i386.c (ix86_binds_local_p): Define only if
18542         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
18544 2015-04-17  Jeff Law  <law@redhat.com>
18546         PR tree-optimization/47679
18547         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
18548         * tree-ssa-scopedtables.c: New file.
18549         * tree-ssa-scopedtables.h: New file.
18550         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
18551         (const_and_copies): Change name/type.
18552         (record_const_or_copy): Move into tree-ssa-scopedtables.c
18553         (record_const_or_copy_1): Similarly.
18554         (restore_vars_to_original_value): Similarly.
18555         (pass_dominator::execute): Create and destroy const_and_copies table.
18556         (thread_across_edge): Update passing of const_and_copies.
18557         (record_temporary_equivalence): Use method calls rather than
18558         manipulating const_and_copies directly.
18559         (record_equality, cprop_into_successor_phis): Similarly.
18560         (dom_opt_dom_walker::before_dom_children): Similarly.
18561         (dom_opt_dom_walker::after_dom_children): Similarly.
18562         (eliminate_redundant_computations): Similarly.
18563         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
18564         (record_temporary_equivalence): Likewise.
18565         (invalidate_equivalences): Likewise.
18566         (record_temporary_equivalences_from_phis): Update due to type
18567         change of const_and_copies.  Use method calls rather than
18568         manipulating the stack directly.
18569         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
18570         (thread_through_normal_block, thread_across_edge): Likewise.
18571         (thread_across_edge): Likewise.
18572         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
18573         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
18574         of equiv_stack.
18575         (identify_jump_threads): Update due to type change of equiv_stack.
18576         (finalize_jump_threads): Delete the equiv_stack when complete.
18578 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
18580         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18581         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
18582         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
18584 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
18586         PR target/65535
18587         * config.gcc: Exit with a comment when we do not have a major version
18588         number for the FreeBSD target.
18590 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18592         PR target/65689
18593         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
18594         maybe_allows_mem bitfields.
18595         (maybe_allows_none_start, maybe_allows_none_end,
18596         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
18597         maybe_allows_mem_end): New variables.
18598         (compute_maybe_allows): New function.
18599         (add_constraint): Use it to initialize maybe_allows_reg and
18600         maybe_allows_mem fields.
18601         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
18602         is_address constraints such that those that allow neither mem nor
18603         reg come first, then those that only allow reg but not mem, then
18604         those that only allow mem but not reg, then the rest.
18605         (write_allows_reg_mem_function): New function.
18606         (write_tm_preds_h): Call it.
18607         * stmt.c (parse_output_constraint, parse_input_constraint): Use
18608         the generated insn_extra_constraint_allows_reg_mem function
18609         instead of always setting *allows_reg = true; *allows_mem = true;
18610         for unknown extra constraints.
18612 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18614         PR target/65780
18615         * output.h (default_binds_local_p_3): New.
18616         * varasm.c (default_binds_local_p_3): Make it public.  Take an
18617         argument to indicate if common symbol may be local.  If common
18618         symbol may be local, treat non-external variable as defined
18619         locally.
18620         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
18621         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
18622         * config/i386/i386.c (ix86_binds_local_p): New.
18623         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
18624         ix86_binds_local_p.
18626 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18628         PR debug/65771
18629         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
18630         trying mem_loc_descriptor on XEXP (rtl, 0).
18632 2015-04-17  Martin Liska  <mliska@suse.cz>
18634         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18635         Release symbol_compare_collection.
18636         * ipa-reference.c: Add TODO that a vector should be released.
18638 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
18640         PR target/65296
18641         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
18642         to new AVR-LibC file layout (bug #44574).
18643         (*avrlibc_devicelib): Same.
18644         * config/avr/avr-mcus.def: Adjust comments.
18645         * config/avr/avr.opt (nodevicelib): Adjust help.
18647 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
18649         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
18651 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
18653         PR c++/64527
18654         * gimplify.c (gimplify_init_constructor): Always emit a
18655         side-effecting constructor.
18657 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18659         PR tree-optimization/64950
18660         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
18661         in cfun->curr_properties.
18662         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
18663         if we generate an IFN_VA_ARG.
18664         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
18665         function if PROP_gimple_lva is not set in src function.
18667 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18668             Michael Matz  <matz@suse.de>
18670         PR tree-optimization/64950
18671         * gimple-iterator.c (update_modified_stmts): Remove static.
18672         * gimple-iterator.h (update_modified_stmts): Declare.
18673         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
18674         (gimplify_va_arg_internal): New function.
18675         (gimplify_va_arg_expr): Use IFN_VA_ARG.
18676         * gimplify.h (gimplify_va_arg_internal): Declare.
18677         * internal-fn.c (expand_VA_ARG): New unreachable function.
18678         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
18679         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
18680         (expand_ifn_va_arg): New function.
18681         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
18682         (pass_stdarg::execute): Call expand_ifn_va_arg.
18683         (pass_data_lower_vaarg): New pass_data.
18684         (pass_lower_vaarg): New gimple_opt_pass.
18685         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
18686         (make_pass_lower_vaarg): New function.
18687         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
18688         properties_required field.
18689         * passes.def (all_passes): Add pass_lower_vaarg.
18690         * tree-pass.h (PROP_gimple_lva): Add define.
18691         (make_pass_lower_vaarg): Declare.
18693 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18695         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
18696         * calls.c (call_expr_flags): Same.
18698 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18700         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
18701         (pass_stdarg::execute): ... here.
18703 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18704             Michael Matz  <matz@suse.de>
18706         * tree-cfg.c (make_blocks_1): Factor out of ...
18707         (make_blocks): ... here.
18708         (make_edges_bb): Factor out of ...
18709         (make_edges): ... here.
18710         (gimple_find_sub_bbs): New function.
18711         * tree-cfg.h (gimple_find_sub_bbs): Declare.
18713 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18715         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
18717 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
18719         * asan.c (set_sanitized_sections): New function.
18720         (section_sanitized_p): Ditto.
18721         (asan_protect_global): Optionally sanitize user-defined
18722         sections.
18723         * asan.h (set_sanitized_sections): Declare new function.
18724         * common.opt (fsanitize-sections): New option.
18725         * doc/invoke.texi (-fsanitize-sections): Document new option.
18726         * opts-global.c (handle_common_deferred_options): Handle new
18727         option.
18729 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18731         PR debug/65771
18732         * dwarf2out.c (loc_list_from_tree): Return NULL
18733         for DEBUG_EXPR_DECL.
18735 2015-04-17  Christian Bruel  <christian.bruel@st.com>
18737         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
18738         same attributes.
18740 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18742         * ira-color.c (setup_left_conflict_sizes_p): Do not process
18743         node itself when computing left conflict subnode size.
18745 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18747         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
18748         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
18749         *fop_<mode>_1_sse using enabled attribute.  Use
18750         register_mixssei387nonimm_operand operand 1 predicate. Change
18751         alternative 3 constraints from "x" to "v".
18753 2015-04-16  Richard Biener  <rguenther@suse.de>
18755         PR tree-optimization/65774
18756         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
18757         bit-value tracking on.
18759 2015-04-16  Richard Biener  <rguenther@suse.de>
18761         PR tree-optimization/64277
18762         * tree-vrp.c (check_array_ref): Fix anti-range handling,
18763         simplify upper bound handling.
18764         (search_for_addr_array): Simplify.
18765         (check_array_bounds): Handle ADDR_EXPRs here.
18766         (check_all_array_refs): Simplify.
18768 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18770         * config/i386/i386.c (print_reg): Rewrite function.
18772 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18774         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
18775         Invert the condition.
18777 2015-04-16  Renlin Li  <renlin.li@arm.com>
18779         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
18780         simplifications for UNSIGNED_FLOAT.
18782 2015-04-16  Nick Clifton  <nickc@redhat.com>
18784         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
18785         MUL_UNINIT.
18786         (enum rl78_cpu_type): New.
18787         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
18788         (umulhi3_shift_virt): Remove m constraint from operand 1.
18789         (umulqihi3_virt): Likewise.
18790         * config/rl78/rl78.c (rl78_option_override): Add code to process
18791         -mcpu and -mmul options.
18792         (rl78_alloc_physical_registers): Add code to handle divhi and
18793         divsi valloc attributes.
18794         (set_origin): Likewise.
18795         * config/rl78/rl78.h (RL78_MUL_G14): Define.
18796         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
18797         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
18798         __RL78_Gxx__.
18799         (ASM_SPEC): Pass -mcpu on to assembler.
18800         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
18801         (mulqi3_rl78): Likewise.
18802         (mulhi3_g13): Likewise.
18803         (mulhi3): Generate the G13 or G14 versions of the insn directly.
18804         (mulsi3): Likewise.
18805         (mulhi3_g14): Add clobbers of AX and BC.
18806         (mulsi3_g14): Likewise.
18807         (mulsi3_g13): Likewise.
18808         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
18809         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
18810         * config/rl78/rl78.opt (mmul): Initialise value to
18811         RL78_MUL_UNINIT.
18812         (mcpu): New option.
18813         (m13, m14, mrl78): New option aliases.
18814         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
18815         (MULTILIB_DIRNAMES): Add g13 and g14.
18816         * doc/invoke.texi: Document -mcpu and -mmul options.
18818 2015-04-16  Richard Biener  <rguenther@suse.de>
18820         * tree-ssa-ccp.c (likely_value): See if we have operands that
18821         are marked as never simulate again and return CONSTANT in this
18822         case.
18823         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
18824         not have any operands that will be simulated again as
18825         not being simulated again.
18827 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
18829         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
18830         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
18831         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
18832         attribute.
18833         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
18834         enabled attribute.
18835         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
18836         *float<SWI48:mode><MODEF:mode>2_sse.
18837         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
18838         enabled attribute.
18839         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
18840         enabled attribute.
18842 2015-04-15  Tom de Vries  <tom@codesourcery.com>
18844         PR other/65487
18845         * function.c (push_dummy_function): New function.
18846         (init_dummy_function_start): Use push_dummy_function.
18847         (pop_dummy_function): New function.  Factored out of ...
18848         (expand_dummy_function_end): ... here.
18849         * function.h (push_dummy_function, pop_dummy_function): Declare.
18850         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
18851         pop_dummy_function.
18852         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
18854 2015-04-15  Jeff Law  <law@redhat.com>
18856         PR tree-optimization/47679
18857         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
18858         need for forward declaration in upcoming changes.
18859         (record_conditions, record_edge_info): Likewise.
18861         PR rtl-optimization/42522
18862         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
18863         SIGN_EXTRACT as a whole object rather than simplifying
18864         its operand.
18866 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
18868         PR ipa/65765
18869         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
18870         and GIMPLE_PREDICT use break instead of return true. For
18871         GIMPLE_EH_DISPATCH, compare dispatch region.
18873 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
18875         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
18876         details about the implementation.  Make clear preference for
18877         __atomic builtins.  Reduce possibility of future change.
18879 2015-04-15  Nick Clifton  <nickc@redhat.com>
18881         * config/rx/rx.opt (mallow-string-insns): New option.
18882         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
18883         builtin if string instructions are denied.
18884         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
18885         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
18886         appropriate.
18887         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
18888         * config/rx/rx.md (movstr): Enable pattern only if string
18889         instructions are allowed.
18890         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
18891         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
18892         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
18893         (MULTILIB_DIRNAMES): Add no-strings.
18894         * doc/invoke.texi: Document -mno-allow-string-insns.
18896 2015-04-15  Alan Modra  <amodra@gmail.com>
18898         PR target/65408
18899         PR target/58744
18900         PR middle-end/36043
18901         * calls.c (load_register_parameters): Don't load past end of
18902         mem unless suitably aligned.
18904 2015-04-15  Nick Clifton  <nickc@redhat.com>
18906         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
18907         decrement instruction as being frame related.
18908         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
18909         based addresses.
18910         If zero extending a function address enclose the operation in
18911         %code(...).
18912         (rl78_preferred_reload_class): New function.
18913         (TARGET_PREFERRED_RELOAD_CLASS): Define.
18914         * config/rl78/rl78.md: Remove useless constraints in expanders.
18915         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
18916         (mulhi3_rl78): Likewise.
18917         (mulhi3_g13): Likewise.
18918         (mulsi3_rl78): Likewise.
18919         (es_addr): Move to before the multiply patterns.
18921 2015-04-15  Alan Modra  <amodra@gmail.com>
18923         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
18924         and sequence_stack.  Add seq.
18925         (seq_stack): Delete.
18926         * function.c (prepare_function_start): Don't access x_last_insn.
18927         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
18928         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
18929         * emit_rtl.c (start_sequence, push_topmost_sequence,
18930         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
18931         sequence accessors.
18932         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
18933         remove_insn): Likewise.  Simplify.
18934         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
18935         and pop_topmost_sequence.
18936         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
18937         debug insns.
18938         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
18940 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
18942         PR target/65729
18943         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
18944         the assertiion.
18946 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18948         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
18949         (LEGACY_INT_REGNO_P): Ditto.
18950         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
18951         (ANY_MASK_REG_P): Remove.
18952         (BND_REG_P): Rename from ANY_BND_REG_P.
18953         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
18954         legacy integer registers.  Do not handle MMX_REG_P in a special way.
18955         Merge 64byte and 32byte SSE handling.
18957 2015-04-14  Nick Clifton  <nickc@redhat.com>
18959         * expr.c (expand_assignment): Force an address offset computation
18960         into a register before changing its mode.
18961         (expand_expr_real_1): Likewise.
18963 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
18965         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
18966         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
18967         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
18968         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
18969         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
18970         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
18971         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
18972         and __aarch64_vget_lane_any.
18974 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
18976         PR rtl-optimization/65761
18977         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
18978         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
18980 2015-04-14  Richard Biener  <rguenther@suse.de>
18982         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
18983         (graphite_can_represent_scev): Use POINTER_TYPE_P.
18985 2015-04-14  Richard Biener  <rguenther@suse.de>
18987         PR tree-optimization/65758
18988         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
18989         against -1.
18990         (ccp_lattice_meet): Likewise.
18991         (bit_value_unop): Likewise.
18992         (bit_value_binop): Likewise.
18993         (bit_value_assume_aligned): Likewise.
18995 2015-04-14  Christian Bruel  <christian.bruel@st.com>
18997         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
18998         function.
19000 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
19002         PR tree-optimization/63387
19003         * match.pd ((x unord x) | (y unord y) -> (x unord y),
19004         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
19006 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
19008         * config/i386/predicates.md (any_QIreg_operand): Rename from
19009         q_regs_operand.  Do not process subregs.
19010         (QIreg_operand): Use QI_REGNO_P predicate.
19011         (ext_QIreg_operand): Ditto.
19012         (ext_register_operand): Ditto.
19013         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
19014         (AND splitters): Ditto.
19015         (AND with -65536 splitter): Add SWI48 mode for operand 0.
19016         (AND with -256 splitter): Use any_QIreg_operand predicate and
19017         SWI248 mode for operand 0.
19018         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
19019         mode for operand 0.
19020         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
19022 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
19024         * doc/plugins.texi: Rewrite first introductory paragraph.
19026 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19028         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
19029         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
19031 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19033         * ipa-profie.c (ipa_profile): Check number of parameters
19034         and possible polymorphic call targets before
19035         devirtualizing.
19037 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
19039         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
19040         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
19042 2015-04-13  Richard Biener  <rguenther@suse.de>
19044         PR tree-optimization/65204
19045         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
19046         takens for bit-CCP.
19048 2015-04-13  Richard Biener  <rguenther@suse.de>
19050         PR target/65660
19051         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
19052         and cond_not_taken_branch_cost to 4 and 2.
19053         (bdver2_cost): Likewise.
19054         (bdver3_cost): Likewise.
19055         (bdver4_cost): Likewise.
19057 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19059         * hash-table.h (hash_table constructor): Add mem stats.
19060         (alloc_entries): Likewise.
19062 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19064         * ipa-cp.c (ipcp_driver): Relase prev_edge.
19065         * passes.c (execute_one_pass): Only add transform if pass has one.
19067 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
19069         * config/i386/i386.c (ix86_option_override_internal): Don't set
19070         -fprefetch-loop-arrays if optimizing for size.
19072 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19073             Gerald Pfeifer  <gerald@pfeifer.com>
19075         * doc/contrib.texi (Contributors): Add Martin Jambor and
19076         Michael Matz.
19078 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
19080         * BASE-VER: Set to 6.0.0.
19082         PR tree-optimization/65747
19083         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
19084         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
19086 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
19088         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
19089         sentence.  Improve grammar.
19091 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
19093         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
19095 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
19097         PR ipa/65743
19098         * ipa-inline-transform.c (speculation_removed): Remove static var.
19099         (check_speculations): New function.
19100         (clone_inlined_nodes): Do not check spculations.
19101         (inline_call): Call check_speculations.
19102         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
19103         consider non-invariants.
19105 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
19106             Martin Liska  <mliska@suse.cz>
19108         PR ipa/65722
19109         * ipa-icf.c (sem_item::compare_cgraph_references): function and
19110         variable can not match.
19111         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
19112         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
19114 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
19116         PR tree-optimization/65735
19117         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
19118         Remove visited_phis argument, add visited_bbs, avoid recursing into the
19119         same bb rather than just into the same phi node.
19120         (thread_through_normal_block): Adjust caller.
19122 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
19124         * doc/contrib.texi (Contributors): Add Ira Rosen.
19126 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
19128         * gcov.c (find_source): Fix miswording in error message.
19129         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
19130         (ix86_expand_sse_comi_round): Fix typo in error message.
19132 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
19134         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
19136 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
19138         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
19140 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
19142         PR target/65710
19143         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
19144         Print bad_spills_num and insn_pseudos_num.
19146 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19148         PR target/65694
19149         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
19150         when creating +1 values for SImode.
19152 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
19154         PR target/65729
19155         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
19156         assert.
19158 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
19159             Iain Sandoe  <iain@codesourcery.com>
19161         PR target/65351
19162         * configure: Regenerate.
19164 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19166         PR target/65671
19167         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
19169 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
19171         * doc/contrib.texi (Contributors): Add John Marino.
19173 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19175         PR tree-optimization/65709
19176         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
19177         TREE_TYPE (TREE_TYPE (t)).
19179 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
19181         PR target/65710
19182         * lra-int.h (lra_bad_spill_regno_start): New.
19183         * lra.c (lra_bad_spill_regno_start): New.
19184         (lra): Set up lra_bad_spill_regno_start.  Set up
19185         lra_constraint_new_regno_start unconditionally.
19186         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
19187         spill preferences.
19189 2015-04-09  Marek Polacek  <polacek@redhat.com>
19190             Jakub Jelinek  <jakub@redhat.com>
19192         PR middle-end/65554
19193         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
19194         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
19195         of STRIP_NOPS.
19197 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
19199         PR rtl-optimization/65693
19200         * combine.c (is_parallel_of_n_reg_sets): Move outside of
19201         #ifndef HAVE_cc0.
19203 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
19205         PR target/65296
19206         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
19207         device specs file if "device-specs%s" didn't resolve to a path.
19209 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19211         PR target/65676
19212         * config/i386/i386.c (fixup_modeless_constant): New.
19213         (ix86_expand_args_builtin): Fixup modeless constant operand.
19214         (ix86_expand_round_builtin): Ditto.
19215         (ix86_expand_special_args_builtin): Ditto.
19216         (ix86_expand_builtin): Ditto.
19218 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19220         PR target/65693
19221         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
19222         any pow2 integer in between 2 and 0x80000000U inclusive.
19224 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
19226         PR rtl-optimization/65693
19227         * combine.c (is_parallel_of_n_reg_sets): Change first argument
19228         from an rtx_insn * to an rtx.
19229         (try_combine): Adjust both callers.  Use it once more.
19231 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19233         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
19234         (chkp_make_static_const_bounds): Search existing
19235         symbol by assembler name.  Use make_decl_one_only.
19236         (chkp_get_zero_bounds_var): Remove node search which
19237         is now performed in chkp_make_static_const_bounds.
19238         (chkp_get_none_bounds_var): Likewise.
19240 2015-04-08  Michael Witten  <mfwitten@gmail.com>
19242         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
19243         to an example.
19245 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19247         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
19249 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
19251         * doc/extend.texi (__sync Builtins): Fix grammar.
19253 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19255         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
19257 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19259         * varasm.c (emit_local): Move definition of align.
19261 2015-04-08  Julian Brown  <julian@codesourcery.com>
19263         * config/nvptx/mkoffload.c (process): Support variable mapping.
19265 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
19267         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
19268         alpha_links **.
19269         (alpha_write_one_linkage): Correct typo.
19271 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19273         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
19275 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
19277         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
19279 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19281         * tree-chkp.h (chkp_insert_retbnd_call): New.
19282         * tree-chkp.c (chkp_insert_retbnd_call): New.
19283         * ipa-split.c (insert_bndret_call_after): Remove.
19284         (split_function): Use chkp_insert_retbnd_call.
19285         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
19286         bounds for instrumented functions.
19288 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
19290         PR ipa/65540
19291         * calls.c (initialize_argument_information): When producing tail
19292         call also turn SSA_NAMES passed by references to original PARM_DECLs
19294 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
19296         PR target/65648
19297         * lra-remat.c (do_remat): Process input and non-input insn
19298         registers separately.
19300 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
19302         PR debug/65678
19303         * valtrack.c (debug_lowpart_subreg): New function.
19304         (dead_debug_insert_temp): Use it.
19306         PR middle-end/65680
19307         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
19308         into signed HOST_WIDE_INT the same as negative bit_offset.
19310 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
19312         * ipa-comdats.c (ipa_comdats): Visit all thunks
19313         to set proper comdat group.
19315 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19317         PR target/65489
19318         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
19319         on constants for NEON VSTRUCT modes.
19321 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
19322             Iain Sandoe  <iain@codesourcery.com>
19324         PR target/65351
19325         * configure: Regenerate.
19327 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19329         PR target/65614
19330         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
19331         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
19332         that LFD is used to load double constants instead of LFS.  Add
19333         defaults for all costs structures.  Add comments for missing
19334         initialization fields.
19335         (size32_cost): Likewise.
19336         (size64_cost): Likewise.
19337         (rs64a_cost): Likewise.
19338         (mpccore_cost): Likewise.
19339         (ppc403_cost): Likewise.
19340         (ppc405_cost): Likewise.
19341         (ppc440_cost): Likewise.
19342         (ppc476_cost): Likewise.
19343         (ppc601_cost): Likewise.
19344         (ppc603_cost): Likewise.
19345         (ppc604_cost): Likewise.
19346         (ppc604e_cost): Likewise.
19347         (ppc620_cost): Likewise.
19348         (ppc630_cost): Likewise.
19349         (ppccell_cost): Likewise.
19350         (ppc750_cost): Likewise.
19351         (ppc7450_cost): Likewise.
19352         (ppc8540_cost): Likewise.
19353         (ppce300c2c3_cost): Likewise.
19354         (ppce500mc_cost): Likewise.
19355         (ppce500mc64_cost): Likewise.
19356         (ppce5500_cost): Likewise.
19357         (ppce6500_cost): Likewise.
19358         (titan_cost): Likewise.
19359         (power4_cost): Likewise.
19360         (power6_cost): Likewise.
19361         (power7_cost): Likewise.
19362         (power8_cost): Likewise.
19363         (ppca2_cost): Likewise.
19364         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
19366         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
19367         instead of XXLOR to copy SFmode to clear out dirty bits created
19368         when SFmode denormals are generated.
19369         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
19370         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
19372 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
19374         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
19375         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
19376         * config/aarch64/aarch64-tune.md: Regenerate.
19378 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
19380         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
19381         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
19382         * config/arm/arm-cores.def (exynos-m1): New core.
19383         * config/arm/arm-tune.md: Regenerate.
19384         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
19385         * config/arm/bpabi.h: Likewise.
19387 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
19389         * ipa-cp (set_single_call_flag): Remove too
19390         restrictive assert.
19392 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
19394         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
19395         GOMP_offload_unregister from the destructor.
19397 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
19399         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
19400         flags for instrumentation thunk.
19401         (chkp_produce_thunks): Likewise.
19403 2015-04-05  Martin Liska  <mliska@suse.cz>
19405         PR ipa/65665
19406         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
19407         has computed data structure.
19408         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19410 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
19412         * invoke.texi (inline-unit-growth): Increase growth to 20%
19413         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
19415 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19417         PR target/65647
19418         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
19419         value checking.
19420         (lra_rematerialization_iter): New.
19421         * lra.c (lra): Initialize lra_rematerialization_iter.
19422         Stop updating lra_constraint_new_regno_start after switching of
19423         inheritance and rematerialization.
19424         * lra-remat.c (lra_rematerialization_iter): New.
19425         (lra_remat): Add printing pass iteration.  Do rematerialization
19426         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
19428 2015-04-04  Richard Biener  <rguenther@suse.de>
19430         PR tree-optimization/64909
19431         PR tree-optimization/65660
19432         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
19433         to take a cost vector for scalar iteration cost.
19434         (vect_get_single_scalar_iteration_cost): Likewise.
19435         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
19436         Compute the scalar iteration cost into a cost vector.
19437         (vect_get_known_peeling_cost): Use the scalar cost vector to
19438         account for the cost of the peeled iterations.
19439         (vect_estimate_min_profitable_iters): Likewise.
19440         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19441         Likewise.
19443 2015-04-04  Alan Modra  <amodra@gmail.com>
19445         PR target/65576
19446         PR target/65240
19447         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
19448         0.0 constant unless TARGET_VSX.
19449         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
19450         alternative.
19452 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19454         PR ipa/65654
19455         * ipa-inline-transform.c (inline_call): Skip sanity check to work
19456         around the ICE
19458 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19460         PR ipa/65655
19461         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
19462         speculative indirect edges to avoid ordering issue.
19464 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19466         PR ipa/65076
19467         * ipa-inline.c (edge_badness): Add combined size to the denominator.
19469 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
19471         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
19472         TYPE_ARTIFICIAL on the .omp_data* types.
19474 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19476         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
19477         instrumentation thunks.
19479 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19481         * config/i386/i386.c (ix86_expand_call): Avoid nested
19482         PARALLEL in returned call value.
19484 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19486         * lto-cgraph.c (input_cgraph_1): Always link instrumented
19487         assembler name with original one.
19489 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19491         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
19493 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19495         Revert parts of r216820.
19496         * config/i386/i386.md (movqi_internal): Correct type calculation
19497         for alternatives 3 and 5.
19499 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
19501         PR preprocessor/61977
19502         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
19503         predefine __vector/__bool/__pixel macros nor context sensitive
19504         macros for CLK_ASM.
19505         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
19507 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
19509         * config/pa/pa.c (pa_output_move_double): Directly handle register
19510         indexed memory operand.  Simplify handling of scaled register indexed
19511         memory operands.
19513 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19515         PR driver/65444
19516         * config/i386/linux-common.h (MPX_SPEC): New.
19517         (CHKP_SPEC): Add MPX_SPEC.
19518         * doc/invoke.texi (-fcheck-pointer-boudns): Document
19519         possible issues with '-z bndplt' support in linker.
19521 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19523         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
19524         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
19525         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
19526         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
19527         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
19529 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
19531         * config/i386/sync.md (UNSPEC_MOVA): Remove.
19532         (atomic_load<mode>): Change operand 0 predicate to
19533         nonimmediate_operand and fix up the destination when needed.
19534         Use UNSPEC_LDA.
19535         (atomic_loaddi_fpu): Use UNSPEC_LDA.
19536         (atomic_store<mode>): Change operand 1 predicate to
19537         nonimmendate_operand and move the source to register when needed.
19538         Use UNSPEC_STA.
19539         (atomic_store<mode>_1): Use UNSPEC_STA.
19540         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
19541         Fix moves from memory operand.  Use UNSPEC_STA.
19543 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19545         * expmed.c (strict_volatile_bitfield_p): Check that the access will
19546         not cross a MODESIZE boundary.
19547         (store_bit_field, extract_bit_field): Added assertions in the
19548         strict volatile bitfields code path.
19550 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19552         PR target/65624
19553         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19554         Increase args array size by one to avoid buffer overflow.
19556 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19558         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19559         split_part.
19560         * ipa-inline.c (edge_badness): Add wrapper penalty.
19561         (sum_callers): Move up.
19562         (inline_small_functions): Set single_caller.
19563         * ipa-inline.h (inline_summary): Add single_caller.
19564         * ipa-split.c (split_function): Set split_part.
19565         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
19566         * cgraph.h (cgraph_node): Add split_part.
19568 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
19570         PR target/58945
19571         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
19572         Do not split operands 0 and operands 2 to halfmode.
19573         (atomic_compare_and_swap<mode>): Update for
19574         atomic_compare_and_swap<dwi>_doubleword changes.
19576 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19578         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
19579         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
19580         no caching is done.
19582 2015-03-31  Martin Liska  <mliska@suse.cz>
19584         PR ipa/65557
19585         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
19586         has already filled up function summary.
19587         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19589 2015-03-31  Richard Biener  <rguenther@suse.de>
19591         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
19592         of types.
19594 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19596         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
19597         nested functions.
19598         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
19599         (s390_asm_output_function_label): Adapt to new signature of
19600         s390_function_num_hotpatch_hw
19601         Optimise the code generating assembler output.
19602         Add comments to assembler file.
19604 2015-03-31  Richard Biener  <rguenther@suse.de>
19606         PR middle-end/65626
19607         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
19608         of the noreturn call so it is last and cleanup_control_flow_bb
19609         can do the CFG part.
19611 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
19613         PR target/65531
19614         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
19615         same_comdat_group for external symbols.
19616         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
19617         infinite same_comdat_group traversal loop.
19619 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
19621         PR plugins/61176
19622         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
19623         automatically to $headers.
19625 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
19627         PR ipa/65610
19628         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
19629         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
19630         function.
19631         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
19632         Use it.
19633         * ipa-prop.c (param_type_may_change_p): Likewise.
19634         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
19635         (remove_unused_scope_block_p): Add in_ctor_dtor_block
19636         argument.  Before inlining, preserve
19637         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
19638         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
19639         recursive calls.
19640         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
19642 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19644         PR ipa/65076
19645         * ipa-inline.c (edge_badness): Base denominator on callee's
19646         grwoth squared.
19648 2015-03-27  Martin Jambor  <mjambor@suse.cz>
19650         PR ipa/65478
19651         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
19652         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
19653         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
19654         node_calling_single_call.
19655         * ipa-cp.c (count_callers): New function.
19656         (set_single_call_flag): Likewise.
19657         (initialize_node_lattices): Count callers and set single_flag_call if
19658         necessary.
19659         (incorporate_penalties): New function.
19660         (good_cloning_opportunity_p): Use it, dump new flags.
19661         (propagate_constants_topo): Set node_within_scc flag if appropriate.
19662         * doc/invoke.texi (ipa-cp-recursion-penalty,
19663         ipa-cp-single-call-pentalty): Document.
19665 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19667         PR ipa/65588
19668         * symtab.c (symtab_node::get_partitioning_class): Register vars
19669         are duplicated.
19670         * varpool.c (symbol_table::output_variables) Do not assemble unefined
19671         decls for non-symbols.
19673 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19675         PR target/65248
19676         * output.h (default_binds_local_p_2): New.
19677         * varasm.c (default_binds_local_p_2): Renamed to ...
19678         (default_binds_local_p_3): This.  Don't return true on protected
19679         data symbol if protected data may be external.
19680         (default_binds_local_p): Use default_binds_local_p_3.
19681         (default_binds_local_p_1): Likewise.
19682         (default_binds_local_p_2): New.
19683         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
19684         default_binds_local_p_2 if TARGET_MACHO is undefined.
19686 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
19688         PR target/65593
19689         * config/i386/i386.c (legitimize_pic_address): If base
19690         is SYMBOL_REF or LABEL_REF using %rip addressing, force
19691         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
19693 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19695         PR target/65531
19696         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
19697         comdat groups.
19699 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19701         PR ipa/65600
19702         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
19703         of optimized out indirect call.
19704         (redirect_to_unreachable): Always build symbol table node for
19705         BUILT_IN_UNREACHABLE
19707 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
19709         PR target/65407
19710         * ira-costs.c (record_reg_classes): Process all constraint string
19711         containing 0-9.
19713 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
19715         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
19716         memory_operand.
19718         PR target/65052
19719         * config/c6x/constraints.md (S3): New constraint.
19720         * config/c6x/c6x.md (real_jump): Use it.
19722 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19724         PR middle-end/65595
19725         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
19726         do redirection if the call is not optimized out.
19728 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19730         PR target/65495
19731         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
19732         (fchkp-check-incomplete-type): Add LTO.
19733         (fchkp-zero-input-bounds-for-main): Likewise.
19734         (fchkp-first-field-has-own-bounds): Likewise.
19735         (fchkp-narrow-bounds): Likewise.
19736         (fchkp-narrow-to-innermost-array): Likewise.
19737         (fchkp-use-static-bounds): Likewise.
19738         (fchkp-use-static-const-bounds): Likewise.
19739         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19741 2015-03-27  Marek Polacek  <polacek@redhat.com>
19743         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
19745 2015-03-27  Marek Polacek  <polacek@redhat.com>
19747         PR sanitizer/65583
19748         * ubsan.c (ubsan_create_edge): New function.
19749         (instrument_bool_enum_load): Call it.
19750         (instrument_nonnull_arg): Likewise.
19751         (instrument_nonnull_return): Likewise.
19752         (instrument_object_size): Likewise.
19754 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19756         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
19757         auto_vec.
19759 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19761         PR lto/65536
19762         * lto-streamer.h (class lto_location_cache): New.
19763         (struct data_in): Add location_cache.
19764         (lto_input_location): Update prototype.
19765         (stream_input_location_now): New.
19766         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
19767         pointer to location.
19768         (stream_input_location): Update.
19769         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
19770         (warn_odr): Apply location cache before warning.
19771         (lto_input_location): Update prototype.
19772         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
19773         Use stream_input_location_now.
19774         * lto-streamer-in.c (lto_location_cache::current_cache): New static
19775         variable.
19776         (lto_location_cache::cmp_loc): New function.
19777         (lto_location_cache::apply_location_cache): New function.
19778         (lto_location_cache::accept_location_cache): New function.
19779         (lto_location_cache::revert_location_cache): New function.
19780         (lto_location_cache::input_location): New function.
19781         (lto_input_location): Do location caching.
19782         (stream_input_location_now): New function.
19783         (input_eh_region, input_struct_function_base): Use
19784         stream_input_location_now.
19785         (lto_data_in_create): use new.
19786         (lto_data_in_delete): Use delete.
19787         * tree-streamer-in.c (unpack_ts_block_value_fields,
19788         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
19789         lto_input_ts_exp_tree_pointers): Update for cached location api.
19791 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19793         PR ipa/65076
19794         * passes.def: Add pass_nothrow.
19795         * ipa-pure-const.c: (pass_data_nothrow): New.
19796         (pass_nothrow): New.
19797         (pass_nothrow::execute): New.
19798         (make_pass_nothrow): New.
19799         * tree-pass.h (make_pass_nothrow): Declare.
19801 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19803         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
19804         edge to change by speculation resolution or redirection.
19805         (edge_set_predicate): Likewise.
19806         (inline_summary_t::duplicate): Likewise.
19807         (remap_edge_summaries): Likewise.
19809 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19811         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
19812         New macros.
19813         (can_inline_edge_p): Relax option matching for always inline functions.
19815 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
19817         PR target/65561
19818         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
19819         Check operand 4 and operand 0 for equality.
19820         (avx512f_vextract<shuffletype>32x4_1_maskm):
19821         Check operand 6 and operand 0 for equality.
19822         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
19823         for equality.
19824         (vec_extract_hi_<mode>_maskm): Ditto.
19826 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19828         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
19829         dead calls back to live.
19830         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
19831         cross check to ...
19832         (cgraph_node::verify_node): ... here; verify only callee edges,
19833         not caller.
19834         * cif-code.def (CILK_SPAWN): New code.
19836 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19838         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
19839         (edge_set_predicate): Use it to mark unreachable edges.
19840         (inline_summary_t::duplicate): Remove unnecesary code.
19841         (remap_edge_summaries): Likewise.
19842         (dump_inline_summary): Report contains_cilk_spawn.
19843         (compute_inline_parameters): Compute contains_cilk_spawn.
19844         (inline_read_section, inline_write_summary): Stream
19845         contains_cilk_spawn.
19846         * ipa-inline.c (can_inline_edge_p): Do not touch
19847         DECL_STRUCT_FUNCTION that may not be available;
19848         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
19849         remove check for callee_fun->can_throw_non_call_exceptions and
19850         replace it by optimization attribute check; check for flag_exceptions.
19851         * ipa-inline-transform.c (inline_call): Maintain
19852         DECL_FUNCTION_PERSONALITY
19853         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
19855 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19857         PR tree-optimization/65551
19858         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
19859         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
19861 2015-03-26  Richard Biener  <rguenther@suse.de>
19863         PR middle-end/65555
19864         * tree-cfg.c (verify_gimple_call): Do not require a call to
19865         have no LHS if it wasn't recognized as control altering yet.
19867 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19869         PR tree-optimization/64715
19870         * passes.def: Add another instance of pass_object_sizes before ccp1.
19871         * tree-object-size.c (pass_object_sizes::execute): In
19872         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
19873         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
19874         __bos result and the computed constant.  Remove redundant
19875         checks, obsoleted by gimple_call_builtin_p test.
19877         * var-tracking.c (variable_tracking_main_1): Don't track
19878         variables for targetm.no_register_allocation targets.
19880 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
19882         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
19883         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
19885 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19887         PR target/65569
19888         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
19889         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
19890         0.0 is correctly setup.
19891         (extenddftf2_internal): Likewise.
19893 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
19895         PR tree-optimization/65177
19896         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
19897         (bb_in_bbs): New.
19898         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
19899         edges not adjacent on the path to the original code.
19901 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
19903         PR bootstrap/65537
19904         * doc/install.texi (Building a native compiler): Document new
19905         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
19906         configuration assumes that the host supports the linker plugin.
19908 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
19910         PR target/65508
19911         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
19912         chain for generated call.
19914 2015-03-25  Richard Biener  <rguenther@suse.de>
19916         * passes.c (pass_manager::execute_early_local_passes): Guard
19917         execution of pass_chkp_instrumentation_passes with
19918         flag_check_pointer_bounds.
19919         (pass_chkp_instrumentation_passes::gate): Likewise.
19921 2015-03-25  Martin Liska  <mliska@suse.cz>
19923         PR tree-optimization/65538
19924         * symbol-summary.h (function_summary::~function_summary):
19925         Relese memory for allocated summaries.
19926         (function_summary::release): New function.
19928 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
19930         PR lto/65515
19931         * lto-streamer-out.c (DFS::worklist): New struct.
19932         (DFS::worklist_vec): New data member.
19933         (DFS::next_dfs_num): Remove.
19934         (DFS::DFS): Rewritten using worklist instead of recursion,
19935         using most of code from DFS::DFS_write_tree.
19936         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
19937         pass it to DFS_write_tree calls.
19938         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
19939         quick initial checks push it into worklist_vec and return.
19941 2015-03-25  Richard Biener  <rguenther@suse.de>
19943         PR middle-end/65519
19944         * genmatch.c (expr::gen_transform): Re-write to avoid
19945         using gimple_build.
19947 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19949         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
19951 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19953         * config/arm/arm.opt (print_tune_info): New option.
19954         * config/arm/arm.c (arm_print_tune_info): New function.
19955         (arm_file_start): Call arm_print_tune_info.
19956         * config/arm/arm-protos.h (struct tune_params): Add comment.
19957         * doc/invoke.texi (@item -mprint-tune-info): New item.
19958         (-mtune): mention it in ARM Option Summary.
19960 2015-03-25  DJ Delorie  <dj@redhat.com>
19962         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
19963         correct clause.
19965 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
19966             Martin Liska  <mliska@suse.cz>
19968         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
19969         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
19970         (sem_item::add_type): New function.
19971         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
19972         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
19973         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
19974         (sem_function::equals_wpa): Fix typo.
19975         * ipa-icf.h (sem_item::add_type): New function.
19976         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
19977         order.
19979 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
19981         PR tree-optimization/65533
19982         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
19983         with swapped operands, call vect_free_slp_tree on
19984         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
19985         vector.
19987 2015-03-24  Richard Biener  <rguenther@suse.de>
19989         PR middle-end/65517
19990         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
19991         for fixup if necessary.
19993 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
19995         * doc/extend.texi (Function Attributes): Add @cindex entries
19996         for all attributes and regularize their format.  Delete text
19997         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
19998         information about "eightbit_data", "tiny_data", and "model"
19999         variable attributes to the Variable Attributes section.  Fix
20000         some obvious typos and copy-editing issues.
20001         (Variable Attributes, Type Attributes): Likewise add/fix
20002         @cindex entries for all attributes.
20004 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
20006         PR target/65523
20007         * tree-chkp.c (chkp_build_returned_bound): Ignore
20008         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
20010 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
20012         PR target/65505
20013         * config/sh/predicates.md (simple_mem_operand,
20014         displacement_mem_operand): Add test for reg.
20015         (short_displacement_mem_operand): Test for displacement_mem_operand
20016         before invoking sh_disp_addr_displacement.
20017         * config/sh/constraints.md (Sdd, Sra): Simplify.
20018         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
20019         Remove redundant displacement_mem_operand tests.
20021 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
20023         PR target/65296
20024         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
20025         the same -mmcu=MCU more than once.
20027 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
20029         PR bootstrap/65522
20030         * ipa-devirt.c: Remove duplicate demangle.h include.
20032         PR target/65504
20033         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
20034         on the pseudo.
20035         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
20036         REG_POINTER on *destptr after adjusting it for prologue size.
20038         PR ipa/65521
20039         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
20040         ultimate_alias_target ()->order ints instead of
20041         ultimate_alias_target () pointers.
20043 2015-03-23  Richard Biener  <rguenther@suse.de>
20045         PR tree-optimization/65518
20046         * tree-vect-stmts.c (vectorizable_load): Reject single-element
20047         interleaving cases we generate absymal code for.
20049 2015-03-23  Richard Biener  <rguenther@suse.de>
20051         PR tree-optimization/65494
20052         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
20053         matches here.
20054         (vect_analyze_slp_instance): But do that here, always and once.
20056 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20058         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
20059         adding T or multiplying by T+1 and subracting T.
20061 2015-03-22  Jeff Law  <law@redhat.com>
20063         PR rtl-optimization/64317
20064         * Makefile.in (OBJS): Add gcse-common.c
20065         * gcse.c: Include gcse-common.h
20066         (struct modify_pair_s): Move structure definition to gcse-common.h
20067         (compute_transp): Move function to gcse-common.c.
20068         (canon_list_insert): Similarly.
20069         (record_last_mem_set_info): Break out some code and put it into
20070         gcse-common.c.  Call into the new common code.
20071         (compute_local_properties): Pass additional arguments to compute_transp.
20072         * postreload-gcse.c: Include gcse-common.h and df.h
20073         (modify_mem_list_set, blocks_with_calls): New variables.
20074         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
20075         (get_bb_avail_insn): Pass in the expression index too.
20076         (alloc_mem): Allocate memory for the new bitmaps and lists.
20077         (free_mem): Free memory for the new bitmaps and lists.
20078         (insert_expr_in_table): Record a bitmap index for each entry we
20079         add to the table.
20080         (record_last_mem_set_info): Call into common code in gcse-common.c.
20081         (get_bb_avail_insn): If no available insn was found in the requested
20082         BB.  If BB has a single predecessor, see if the expression is
20083         transparent in BB and available in that single predecessor.
20084         (compute_expr_transp): New wrapper for compute_transp.
20085         (eliminate_partially_redundant_load): Pass expression's bitmap_index
20086         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
20087         (gcse_after_reload_main): If there are elements in the hash table,
20088         then compute transparency for all the elements in the hash table.
20089         * gcse-common.h: New file.
20090         * gcse-common.c: New file.
20092 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
20094         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
20095         as an adjective.
20096         (System Headers): Likewise.
20097         (Ifdef): Likewise.
20098         (Traditional macros): Likewise.
20099         (Invocation): Likewise.
20100         (Option Index): Likewise.
20101         * doc/cppopts.texi (-M): Likewise.
20102         (-finput-charset): Likewise.
20103         (--help): Likewise.
20104         * doc.invoke.texi (AVR Options): Likewise.
20105         (V850 Options): Likewise.
20107 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
20109         PR ipa/65475
20110         * ipa-devirt.c: Include demangle.h
20111         (odr_type_d): Add field rtti_broken.
20112         (odr_subtypes_equivalent_p): Do not require name to match.
20113         (compare_virtual_tables): Fix typo; if type already has ODR violation,
20114         bypass the tests; be ready for function referneces in vtables that are
20115         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
20116         (warn_odr): Give up for nameless types.
20117         (warn_types_mismatch): Report mismatch in mangled names;
20118         report mismatch in anonymous namespaces; look into component types to
20119         give useful error; report when mismatch is dragged in from other ODR
20120         type.
20121         (odr_types_equivalent_p): Match types for being polymorphic; avoid
20122         duplicated diagnostics.
20123         (add_type_duplicate): Reorder checks so more informative ones come
20124         first; fix typo; do not output "the extra base is defined here" when
20125         we did not warn.
20126         (BINFO_N_BASE_BINFOS): Relax sanity check.
20128 2015-03-22  Martin Liska  <mliska@suse.cz>
20129             Jakub Jelinek  <jakub@redhat.com>
20131         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
20132         masks that can potentially include a builtin.
20133         (ix86_add_new_builtins): Introduce fast filter for isa values
20134         that cannot trigger builtin inclusion.
20136 2015-03-22  Martin Liska  <mliska@suse.cz>
20138         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
20139         (sem_item::update_hash_by_local_refs): Likewise.
20140         (sem_variable::get_hash): Empty line is fixed.
20141         (sem_item_optimizer::execute): Include adding of hash references.
20142         (sem_item_optimizer::update_hash_by_addr_refs): New function.
20143         (sem_item_optimizer::build_hash_based_classes): Use local hash.
20144         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
20145         (sem_item::update_hash_by_local_refs): Likewise.
20147 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20149         PR ipa/65502
20150         * ipa-comdats.c (enqueue_references): Walk through thunks.
20151         (ipa_comdats): Likewise.
20152         (set_comdat_group_1): New function.
20154 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20156         PR ipa/65475
20157         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
20158         non-polymorphic
20160 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20161             Gerald Pfeifer  <gerald@pfeifer.com>
20163         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
20165 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
20166             Sandra Loosemore  <sandra@codesourcery.com>
20168         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
20169         function parameter declaration.
20170         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
20171         Update arguments to nios2_adjust_call_address().
20172         (sibcall_internal): Rename from *sibcall.
20173         (sibcall_value_internal): Rename from *sibcall_value.
20174         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
20175         (nios2_large_got_address): Add target temp reg parameter.
20176         (nios2_got_address): Adjust call to nios2_large_got_address, add
20177         force_reg around it.
20178         (nios2_load_pic_address): Add target temp reg parameter, replace call
20179         to nios2_got_address with corresponding code.
20180         (nios2_legitimize_constant_address): Update call to
20181         nios2_load_pic_address.
20182         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
20183         to use temp reg for PIC loading purposes.
20184         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
20185         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20186         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
20188 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20190         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
20191         usage of "the @option{...}".
20192         (-Wopenmp-simd): Likewise.
20193         (-fsanitize-recover): Likewise.
20194         (-fsanitize-undefined-trap-on-error): Likewise.
20195         (-flto): Likewise.
20196         (tracer-dynamic-coverage-feedback): Likewise.
20197         (reorder-block-duplicate-feedback): Likewise.
20198         (loop-unroll-jam-size): Likewise.
20199         (-B): Likewise.
20200         (-I-): Likewise.
20201         (-mabs=legacy): Likewise.
20202         (-mupper-regs-df): Likewise.
20203         (-mupper-regs-sf): Likewise.
20204         (-mpointers-to-nested-functions): Likewise.
20206 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20208         * doc/extend.texi (Cilk Plus Builtins): Add markup.
20210 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20212         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
20213         additional index entries and cross-references.
20214         (-fchkp-check-incomplete-type): Likewise.
20215         (-fchkp-first-field-has-own-bounds): Likewise.
20216         (-fchkp-narrow-to-innermost-array): Likewise.
20217         (-fchkp-use-fast-string-functions): Likewise.
20218         (-fchkp-use-nochk-string-functions): Likewise.
20219         (-fchkp-use-static-const-bounds): Likewise.
20220         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20221         (-fchkp-instrument-marked-only): Likewise.
20222         (-fchkp-use-wrappers): Likewise.
20223         (-static-libmpx): Likewise.
20224         (-static-libmpxwrappers): Likewise.
20225         * doc/extend.texi (bnd_legacy): Likewise.
20226         (bnd_instrument): Likewise.
20227         (bnd_variable_size): Likewise.
20228         (Pointer Bounds Checker builtins): Likewise.
20230 2015-03-21  Tom de Vries  <tom@codesourcery.com>
20232         PR tree-optimization/65458
20233         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
20234         * cgraph.h (cgraph_node): Add parallelized_function field.
20235         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
20236         (input_overwrite_node): Read parallelized_function field.
20237         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
20238         parallelized_function on cgraph_node for child_fn.
20239         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
20240         Remove include of gt-tree-parloops.h.
20241         (parallelized_functions): Remove static variable.
20242         (parallelized_function_p): Rewrite using parallelized_function field of
20243         cgraph_node.
20244         (create_loop_fn): Remove adding to parallelized_functions.
20245         * Makefile.in (GTFILES): Remove tree-parloops.c
20247 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
20249         PR rtl-optimization/64366
20250         * lra.c (lra_update_insn_regno_info): Consider regs in
20251         CALL_INSN_FUNCTION_USAGE memory.
20253 2015-03-20  Richard Biener  <rguenther@suse.de>
20255         PR middle-end/64715
20256         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
20257         for type comparison and gcc_checking_assert.
20258         (chrec_fold_plus_poly_poly): Likewise.
20259         (chrec_fold_multiply_poly_poly): Likewise.
20260         (chrec_convert_1): Likewise.
20261         * gimplify.c (gimplify_expr): Remove premature folding of
20262         &X + CST to &MEM[&X, CST].
20264 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20266         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
20267         already is final.
20268         (ipa_inline): Recompute inline_failed codes.
20269         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20270         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
20271         CIF_FINAL_ERROR.
20273 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
20275         PR rtl-optimization/60851
20276         * recog.c (constrain_operands): Accept a pseudo register before reload
20277         for LRA enabled targets.
20279 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20281         PR target/65240
20282         * config/rs6000/predicates.md (easy_fp_constant): Remove special
20283         -ffast-math handling that kept non-0 constants live in the RTL
20284         until reload.  Remove logic testing the number of instructions it
20285         took to create a constant in a GPR that was never used, due to a
20286         test for soft-float earlier.
20287         (memory_fp_constant): Delete, no longer used.
20289         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
20290         alternatives for loading non-0 constants into GPRs for hard
20291         floating point that is no longer needed due to changes in
20292         easy_fp_constant.  Add support for loading 0.0 into GPRs.
20293         (mov<mode>_hardfloat32): Likewise.
20294         (mov<mode>_hardfloat64): Likewise.
20295         (mov<mode>_64bit_dm): Likewise.
20296         (movtd_64bit_nodm): Likewise.
20297         (pre-reload move FP constant define_split): Delete define_split,
20298         since it is no longer used.
20299         (extenddftf2_internal): Remove GHF constraints that are not valid
20300         for extenddftf2.
20302 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
20304         PR rtl-optimization/63491
20305         * lra-constraints.c (check_and_process_move): Use src instead of
20306         sreg.  Remove some dead code.
20308 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
20310         PR ipa/65380
20311         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
20312         (sem_variable::merge): Likewise.
20314 2015-03-19  Martin Liska  <mliska@suse.cz>
20316         PR ipa/65465
20317         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
20318         all fields of cgraph_thunk_info.
20320 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20322         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
20323         clone instrumented thunks.
20325 2015-03-19  Richard Biener  <rguenther@suse.de>
20327         Revert
20328         2015-03-10  Richard Biener  <rguenther@suse.de>
20330         PR middle-end/63155
20331         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20332         * tree-ssa-coalesce.c: Include timevar.h.
20333         (attempt_coalesce): Handle graph being NULL.
20334         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20335         Split out abnormal coalescing to ...
20336         (perform_abnormal_coalescing): ... this function.
20337         (coalesce_ssa_name): Perform abnormal coalescing without computing
20338         live/conflict.
20339         (verify_ssa_coalescing_worker): New function.
20340         (verify_ssa_coalescing): Likewise.
20342 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20343             Jakub Jelinek  <jakub@redhat.com>
20345         PR sanitizer/65400
20346         * tsan.c (instrument_gimple): Clear tail call flag on
20347         calls.
20349 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
20351         PR sanitizer/65400
20352         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
20353         call in the return bb.
20354         (find_split_points): Add RETURN_BB argument, don't call
20355         find_return_bb.
20356         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
20357         if true append TSAN_FUNC_EXIT internal call after the call to
20358         the split off function.
20359         (execute_split_functions): Call find_return_bb here.
20360         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
20361         Adjust find_split_points and split_function calls.
20363 2015-03-18  DJ Delorie  <dj@redhat.com>
20365         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
20366         (iorqi3_virt): Likewise.
20368 2015-03-18  Tom de Vries  <tom@codesourcery.com>
20370         * tree-parloops.c (parallelize_loops): Make static.
20371         * tree-parloops.h (parallelize_loops): Remove extern declaration.
20373 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
20375         PR middle-end/64491
20376         Revert:
20377         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
20379         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
20380         condition would be removed due to undefined behaviour.
20382 2015-03-18  Martin Liska  <mliska@suse.cz>
20384         PR ipa/65432
20385         * cgraph.c (cgraph_node::get_create): Remove unnecessary
20386         xstrdup_for_dump wrapper.
20387         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
20388         sem_item::name.
20389         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
20390         with xstrdup_for_dump.
20391         (sem_variable::equals): Likewise.
20392         (sem_item_optimizer::read_section): Use symtab_node::name instead of
20393         sem_item::name.
20394         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
20395         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
20396         symtab_node::asm_name with xstrdup_for_dump.
20397         (congruence_class::dump): Use symtab_node::name instead of
20398         sem_item::name.
20399         * ipa-icf.h (symtab_node::name): Remove.
20400         (symtab_node::asm_name): Likewise.
20402 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20404         PR tree-optimization/65450
20405         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
20406         function.
20407         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
20408         it instead of duplicate_ssa_name_ptr_info.
20410         PR target/65222
20411         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
20413 2015-03-18  Richard Biener  <rguenther@suse.de>
20415         * tree-data-ref.h (struct access_matrix): Remove.
20416         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
20417         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
20418         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
20419         (am_vector_index_for_loop): Likewise.
20420         (struct data_reference): Remove access_matrix member.
20421         (DR_ACCESS_MATRIX): Remove.
20422         (lambda_vector_new): Add comment.
20423         (lambda_matrix_new): Use XOBNEWVEC.
20425 2015-03-18  Richard Biener  <rguenther@suse.de>
20427         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
20428         (pass_ch::execute): Cleanup the CFG only if we did sth.
20429         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
20431 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20433         * expmed.c (synth_mult): Use std::swap instead of manually
20434         swapping algorithms.
20436 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20438         PR target/65078
20439         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
20441 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
20443         PR target/65296
20444         * config/avr/avr.opt (-nodevicelib): New option.
20445         * doc/invoke.texi (AVR Options): Document it.
20446         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
20447         libgcc.a, libc.a, libm.a.
20448         * config/avr/specs.h: Same.
20449         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
20450         which don't (directly) depend on the device.  Print more help.
20451         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
20452         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
20453         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
20454         case of an error.
20455         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
20456         for specs file name.
20457         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
20458         * config/avr/avr-mcus.def: Adjust initializers and comments.
20460 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
20462         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
20463         DECL_ONE_ONLY to check if decl is one only.
20464         * ipa-split.c (consider_split): Limit splitt of one only functions.
20466 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20468         PR tree-optimization/65427
20469         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
20470         functions.
20471         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
20473 2015-03-16  Marek Polacek  <polacek@redhat.com>
20475         * cgraph.h (add_new_static_var): Remove declaration.
20476         * varpool.c (add_new_static_var): Remove function.
20478 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20480         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
20481         instead of vec<tree> * with vec_alloc and release for args.
20482         Adjust all users.
20484         PR middle-end/65431
20485         * omp-low.c (delete_omp_context): Only splay_tree_delete
20486         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
20487         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
20489 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20491         PR sanitizer/64820
20492         * cfgexpand.c (align_base): New function.
20493         (alloc_stack_frame_space): Call it.
20494         (expand_stack_vars): Align prev_frame to be sure
20495         data->asan_vec elements aligned properly.
20497 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
20499         PR middle-end/65409
20500         * expr.c (store_field): Do not do a direct block copy if the source is
20501         a PARALLEL with BLKmode.
20503 2015-03-16  Tom de Vries  <tom@codesourcery.com>
20505         PR middle-end/65414
20506         Revert:
20507         2015-03-12  Tom de Vries  <tom@codesourcery.com>
20509         PR rtl-optimization/64895
20510         * lra-lives.c (check_pseudos_live_through_calls): Use
20511         actual_call_used_reg_set instead of call_used_reg_set, if available.
20513 2015-03-16  Alan Modra  <amodra@gmail.com>
20515         PR target/63150
20516         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
20517         Modify Z->r bswapdi splitter to use dest in place of scratch.
20518         In r->Z and Z->r bswapdi splitter rename word_high, word_low
20519         to word1, word2 and rearrange logic to suit.
20520         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
20521         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
20522         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
20523         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
20524         early clobber.
20526 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
20528         PR tree-optimization/65369
20529         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
20530         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
20531         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
20533         PR tree-optimization/65418
20534         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
20535         are casts in the first PLUS_EXPR operand, ensure tbias and
20536         *totallowp are in the inner type.
20538         PR rtl-optimization/65401
20539         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
20540         argument.  If true, adjust_address_nv of x with big-endian
20541         correction for the mode widening to GET_MODE (y).
20542         (make_field_assignment): Don't do MEM mode widening here.
20543         Use MEM_P instead of GET_CODE == MEM.
20545 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
20547         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
20548         the external decls.
20550 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20552         PR target/64600
20553         * config/arm/arm.c (arm_gen_constant, AND case): Use
20554         ARM_SIGN_EXTEND when constructing AND mask.
20556 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20558         * graph.c (print_graph_cfg): Make function names visible and append
20559         parenthesis to it.  Also make groups of basic blocks belonging to the
20560         same function visible.
20562 2015-03-12  Richard Biener  <rguenther@suse.de>
20564         PR middle-end/44563
20565         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
20566         to avoid quadratic behavior with inline expansion splitting blocks.
20567         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
20568         with the successor if the predecessor will be merged with it.
20569         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
20570         entry block with its successor.
20572 2015-03-13  Richard Biener  <rguenther@suse.de>
20574         PR middle-end/44563
20575         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
20576         (cleanup_tree_cfg_1): Do not call it.
20577         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
20578         (fixup_noreturn_call): Mark the stmt as control altering.
20579         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
20580         here.
20581         (pass_data_fixup_cfg): Produce a dump file.
20582         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
20583         (need_noreturn_fixup): New global.
20584         (pass_dominator::execute): Fixup queued noreturn calls.
20585         (optimize_stmt): Queue calls that became noreturn for fixup.
20586         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
20587         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
20588         (el_to_fixup): New global.
20589         (eliminate_dom_walker::before_dom_childre): Queue calls that
20590         became noreturn for fixup.
20591         (eliminate): Fixup queued noreturn calls.
20592         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
20593         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
20594         (substitute_and_fold_dom_walker::before_dom_children): Queue
20595         alls that became noreturn for fixup.
20596         (substitute_and_fold): Fixup queued noreturn calls.
20598 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
20600         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
20601         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
20602         are building; for methods check ODR type of class they belong to if
20603         they may lead to a polymorphic call.
20604         (sem_function::compare_polymorphic_p): Be bit smarter about testing
20605         when function may lead to a polymorphic call.
20606         (sem_function::compare_type_list): Remove.
20607         (sem_variable::equals): Update use of compatible_types_p.
20608         (sem_variable::parse_tree_refs): Remove.
20609         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
20610         cdtor.
20611         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
20612         matching here.
20613         (func_checker::compatible_polymorphic_types_p): Break out from ...
20614         (unc_checker::compatible_types_p): ... here.
20615         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
20616         Declare.
20617         (unc_checker::compatible_types_p): Update.
20618         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
20619         Remove.
20621 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20623         PR rtl-optimization/65235
20624         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
20625         When first element of vec_concat is const_int, calculate its size
20626         using second element.
20628 2015-03-12  Richard Biener  <rguenther@suse.de>
20630         PR middle-end/65270
20631         * fold-const.c (operand_equal_p): Fix ordering of resetting
20632         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
20634 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20636         * config/s390/s390.c (s390_reorg): Move code to output nops after label
20637         to s390_reorg ().
20638         (s390_asm_output_function_label): Likewise.
20639         * config/s390/s390.c (s390_asm_output_function_label):
20640         Fix function label alignment with -mhtopatch.
20641         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
20642         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
20643         ("nop_2_byte"): New define_insn.
20644         ("nop_4_byte"): Likewise.
20645         ("nop_6_byte"): Likewise.
20646         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
20647         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
20649 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20651         PR target/65103
20652         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
20653         register.
20655 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20657         PR target/65044
20658         * toplev.c (process_options): Restrict Pointer Bounds Checker
20659         usage with Address Sanitizer.
20661 2015-03-12  Richard Biener  <rguenther@suse.de>
20663         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
20664         to split on.
20665         * omp-low.c (expand_omp_taskreg): Split block before removing
20666         the stmt.
20667         (expand_omp_target): Likewise.
20668         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
20669         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
20670         stmt to split_block.
20672 2015-03-12  Tom de Vries  <tom@codesourcery.com>
20674         PR rtl-optimization/64895
20675         * lra-lives.c (check_pseudos_live_through_calls): Use
20676         actual_call_used_reg_set instead of call_used_reg_set, if available.
20678 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20680         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
20681         (cgraph_node::remove): Likewise.
20682         (cgraph_node::get_untransformed_body): Likewise.
20683         * varpool.c (varpool_node::remove): Likewise.
20684         (varpool_node::get_constructor): Add sanity check.
20686 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
20688         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
20689         old GCC versions.
20690         (-fabi-compat-version): Likewise.
20691         (-ffriend-injection): Likewise.
20692         (-Wdeclaration-after-statement): Likewise.
20693         (-fomit-frame-pointer): Likewise.
20694         (-ftree-coalesce-inlined-vars): Likewise.
20695         (-fvisibility=): Likewise.
20696         * doc/extend.texi (Typeof): Likewise.
20697         (Zero Length): Likewise.
20698         (Escaped Newlines): Likewise.
20699         (Compound Literals): Likewise.
20700         (Function Attributes): Likewise.
20701         (Label Attributes): Likewise.
20702         (Type Attributes): Likewise.
20703         (Function Names): Likewise.
20704         (Other Builtins): Likewise.
20705         (Function Specific Option Pragmas): Likewise.
20706         (C++ Interface): Likewise.
20708 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
20710         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
20712 2015-03-11  Marek Polacek  <polacek@redhat.com>
20714         PR tree-optimization/65388
20715         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
20717 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20719         PR target/65296
20720         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
20721         * configure: Regenerate.
20722         * config.in: Regenerate.
20723         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
20724         [-mn-flash]: Document it.
20725         [__AVR_ARCH__]: Document avrtiny.
20727         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
20728         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
20729         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
20731 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20733         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
20735 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20737         PR target/65242
20738         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
20739         allow reloads of PLUS in floating point/VSX registers.
20741 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
20743         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
20744         crypto_sha256_fast.
20745         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
20747 2015-03-11  Richard Biener  <rguenther@suse.de>
20749         PR tree-optimization/65310
20750         * tree-sra.c (build_ref_for_offset): Also preserve larger
20751         alignment.
20753 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
20755         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
20757 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20759         PR target/65368
20760         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
20761         new define_expand.
20762         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
20764 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20766         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
20767         (sem_function::equals_wpa): ... here.
20769 2015-03-10  Marek Polacek  <polacek@redhat.com>
20770             Jakub Jelinek  <jakub@redhat.com>
20772         PR sanitizer/65367
20773         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
20774         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
20775         separately.
20777 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20779         PR target/65286
20780         * config/rs6000/t-linux: For powerpc64* target set
20781         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
20783 2015-03-10  Richard Biener  <rguenther@suse.de>
20785         PR middle-end/44563
20786         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
20787         for redirect_all_calls.
20789 2015-03-10  Marek Polacek  <polacek@redhat.com>
20791         * gdbinit.in (pcfun): Define and document.
20793 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
20795         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
20796         of libgomp-plugin.h.
20797         (find_target_compiler): Support a case when the path to gcc is
20798         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
20799         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
20800         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
20801         libgomp-plugin.h.
20802         (main): Use GCC_INSTALL_NAME as target_driver_name.
20803         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
20804         define.
20805         (mkoffload.o): Remove obsolete include path and defines.
20806         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
20808 2015-03-10  Richard Biener  <rguenther@suse.de>
20810         PR middle-end/63155
20811         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20812         * tree-ssa-coalesce.c: Include timevar.h.
20813         (attempt_coalesce): Handle graph being NULL.
20814         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20815         Split out abnormal coalescing to ...
20816         (perform_abnormal_coalescing): ... this function.
20817         (coalesce_ssa_name): Perform abnormal coalescing without computing
20818         live/conflict.
20819         (verify_ssa_coalescing_worker): New function.
20820         (verify_ssa_coalescing): Likewise.
20822 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20824         PR target/65296
20825         * config.gcc (extra_options) [avr]: Remove.
20826         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
20827         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
20828         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
20830         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
20831         (-mmcu=): Add Var and MissingArgError properties.
20832         (-march=): Remove.
20833         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
20834         * config/avr/t-multilib: Regenerate.
20835         * config/avr/specs.h: New file.
20836         * config/avr/driver-avr.c: New file.
20837         * config/avr/genopt.sh: Remove file.
20838         * config/avr/avr-tables.opt: Remove file.
20839         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
20840         * config/avr/avr-c.c: Same.
20841         * avr-arch.h: Same.
20842         (avr_current_device): Remove proto.
20843         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
20844         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
20845         (EXTRA_SPEC_FUNCTIONS): Define.
20846         (avr_devicespecs_file): New specs function proto.
20847         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
20848         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
20849         (avr_current_device): Remove definition and usage.
20850         (avr_set_core_architecture): New static function.
20851         (avr_option_override): Use it.
20852         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
20853         (mcu_name): New static array.
20854         (comparator, avr_archs_str, avr_mcus_str): New static functions.
20855         (avr_inform_devices, avr_inform_core_architectures): New functions.
20856         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
20857         (avrlibc.h) [WITH_AVRLIBC]: Include.
20858         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
20859         (print_mcu): Rewrite from scratch.
20860         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
20861         Forward to avr-specific specs defined in device-specs file.
20862         * config/avr/t-avr (driver-avr.o): New rule.
20863         (avr-devices.o): Depend on avr-arch.h.
20864         (avr-mcus): No more depend on avr-tables.opt.
20865         (avr-tables.opt): Remove rule.
20866         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
20868 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20870         * c-family/c.opt (fchkp-use-wrappers): New.
20871         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
20872         (chkp_wrap_function): New.
20873         (chkp_build_instrumented_fndecl): Support wrapped
20874         functions.
20875         * doc/invoke.texi (-fcheck-pointer-bounds): New.
20876         (-fchkp-check-incomplete-type): New.
20877         (-fchkp-first-field-has-own-bounds): New.
20878         (-fchkp-narrow-bounds): New.
20879         (-fchkp-narrow-to-innermost-array): New.
20880         (-fchkp-optimize): New.
20881         (-fchkp-use-fast-string-functions): New.
20882         (-fchkp-use-nochk-string-functions): New.
20883         (-fchkp-use-static-bounds): New.
20884         (-fchkp-use-static-const-bounds): New.
20885         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
20886         (-fchkp-check-read): New.
20887         (-fchkp-check-write): New.
20888         (-fchkp-store-bounds): New.
20889         (-fchkp-instrument-calls): New.
20890         (-fchkp-instrument-marked-only): New.
20891         (-fchkp-use-wrappers): New.
20892         (-static-libmpx): New.
20893         (-static-libmpxwrappers): New.
20895 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20897         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
20898         (CHKP_SPEC): Add wrappers library.
20899         * c-family/c.opt (static-libmpxwrappers): New.
20901 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20903         * config/i386/linux-common.h (LIBMPX_LIBS): New.
20904         (LIBMPX_SPEC): New.
20905         (CHKP_SPEC): New.
20906         * gcc.c (CHKP_SPEC): New.
20907         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
20908         * c-family/c.opt (static-libmpx): New.
20910 2015-03-10  Richard Biener  <rguenther@suse.de>
20912         PR middle-end/44563
20913         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
20914         for compare_type.
20915         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
20916         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
20917         (cgraph_add_edge_to_call_site_hash): Likewise.
20918         (cgraph_node::get_edge): Likewise.
20919         (cgraph_edge::set_call_stmt): Likewise.
20920         (cgraph_edge::remove_caller): Likewise.
20922 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
20924         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
20925         (callee_saved_gpr_regs_size): ... this.
20926         (callee_saved_regs_first_regno): Rename to ...
20927         (callee_saved_first_gpr_regno): ... this.
20928         (callee_saved_regs_last_regno) Rename to ...
20929         (callee_saved_last_gpr_regno): ... this.
20930         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
20931         variables.
20932         (nds32_initial_elimination_offset): Likewise.
20933         (nds32_expand_prologue): Likewise.
20934         (nds32_expand_epilogue): Likewise.
20935         (nds32_expand_prologue_v3push): Likewise.
20936         (nds32_expand_epilogue_v3pop): Likewise.
20937         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20938         Adjust renamed variables.
20939         (nds32_output_stack_pop): Likewise.
20941 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20943         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
20944         code in comment.
20946 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20948         PR rtl-optimization/65321
20949         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
20950         than shift mode.
20951         * var-tracking.c (use_narrower_mode): Likewise.
20953 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20955         PR tree-optimization/65355
20956         * varasm.c (notice_global_symbol): Do not produce RTL.
20957         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
20958         anchor.
20959         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
20960         check for section anchors.
20962 2015-03-10  Alan Modra  <amodra@gmail.com>
20964         PR target/65286
20965         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
20966         to be single-arch by default.  Set cpu_is_64bit for powerpc64
20967         given --with-cpu=native.
20968         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
20969         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
20970         and powerpc64le.
20971         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
20972         rs6000_isa_flags rather than TARGET_64BIT.
20974 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
20975             Kaz Kojima  <kkojima@gcc.gnu.org>
20977         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
20979 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
20981         PR lto/65361
20982         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
20983         on a TREE_BINFO, instead use BINFO_TYPE.
20985 2015-03-09  Richard Biener  <rguenther@suse.de>
20987         PR middle-end/65270
20988         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
20989         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
20990         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
20991         of that.  When comparing dereferences compare alignment.
20992         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
20994 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20996         * ipa-inline-analysis.c (check_callers): Check
20997         node->can_remove_if_no_direct_calls_and_refs_p.
20998         (growth_likely_positive): Reorganize to call
20999         can_remove_if_no_direct_calls_p later.
21000         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
21001         will_be_removed_from_program_if_no_direct_calls_p): Add
21002         will_inline parameter.
21003         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
21004         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21005         Handle inliner case correctly.
21007 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21009         PR tree-optimization/63743
21010         * cfgexpand.c (reorder_operands): Also reorder if only second operand
21011         had its definition forwarded by TER.
21013 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
21015         PR lto/65316
21016         * ipa-utils.h (types_odr_comparable): Add strict argument.
21017         * ipa-devirt.c: Fix whitespace;
21018         (odr_hasher): Remove.
21019         (odr_name_hasher, odr_vtable_hasher): New hashers.
21020         (can_be_name_hashed_p): New predicate.
21021         (hash_type_name): remove.
21022         (hash_odr_name): New.
21023         (odr_name_hasher::hash): new.
21024         (can_be_vtable_hashed_p): New.
21025         (hash_odr_vtable): New.
21026         (odr_vtable_hasher::hash): New.
21027         (types_same_for_odr): Add strict parameter.
21028         (types_odr_comparable): Likewise.
21029         (odr_name_hasher::equal): New.
21030         (odr_vtable_hasher::equal): New.
21031         (odr_name_hasher::remove): New.
21032         (odr_hash_type): Change to hash_table<odr_name_hasher>.
21033         (odr_vtable_hash_type): New.
21034         (odr_vtable_hash): New.
21035         (odr_subtypes_equivalent_p): Do strict comparsion.
21036         (add_type_duplicate): Merge type names; cleanup; avoid type
21037         duplicates.
21038         (register_odr_type): Initialize vtable hash.
21039         (build_type_inheritance_graph): Likewise
21040         (get_odr_type): Reorg to use two hashes.
21041         (dump_possible_polymorphic_call_targets): Move sanity check after debug
21042         output.
21043         (ipa_devirt): Dump type_inheritance_graph.
21044         (types_same_for_odr): Add strict mode.
21046 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21048         PR ipa/65334
21049         * cgraph.h (symtab_node): Add definition_alignment,
21050         can_increase_alignment_p and increase_alignment.
21051         * symtab.c (symtab_node::can_increase_alignment_p,
21052         increase_alignment_1, symtab_node::increase_alignment,
21053         symtab_node::definition_alignment): New.
21054         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
21055         can_increase_alignment_p.
21056         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
21057         * tree-vect-stmts.c (ensure_base_align): Likewise.
21058         * varasm.c (function_section_1): Use definition_alignment.
21059         (assemble_start_function): Likewise.
21060         (emit_local): likewise.
21061         (build_constant_desc): Likewsie.
21062         (output_constant_def_contents): Likewise.
21063         (place_block_symbol): Likewise.
21064         (output_object_block): Likewise.
21066 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21068         PR ipa/65316
21069         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
21070         when outputting debug.
21072 2015-03-07  Marek Polacek  <polacek@redhat.com>
21073             Martin Uecker  <uecker@eecs.berkeley.edu>
21075         PR sanitizer/65280
21076         * doc/invoke.texi: Update description of -fsanitize=bounds.
21078 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
21080         * tree-ssa-phiopt.c (neg_replacement): Remove.
21081         (tree_ssa_phiopt_worker): Remove negate optimization.
21083 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21085         PR ipa/65302
21086         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
21088 2015-03-06  Richard Biener  <rguenther@suse.de>
21090         PR middle-end/64928
21091         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
21092         and liveout_obstack members.
21093         (calculate_live_on_exit): Remove.
21094         (calculate_live_ranges): Change declaration.
21095         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
21096         (new_tree_live_info): Adjust.
21097         (calculate_live_ranges): Delete livein when not wanted.
21098         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
21099         Deal with partly deleted live info.
21100         (loe_visit_block): Remove temporary bitmap by using
21101         bitmap_ior_and_compl_into.
21102         (live_worklist): Adjust accordingly.
21103         (calculate_live_on_exit): Make static.
21104         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
21105         we do not need livein.
21107 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
21109         * real.c (real_from_string): Fix typo in assertion.
21111 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
21113         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
21114         the patch.
21116 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21118         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
21120 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
21122         PR target/64342
21123         * lra-assigns.c (find_hard_regno_for): Rename to
21124         find_hard_regno_for_1.  Add a new parameter.
21125         (find_hard_regno_for): New function using find_hard_regno_for_1.
21127 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21129         PR rtl-optimization/65067
21130         * expmed.c (store_bit_field, extract_bit_field): Reworked the
21131         strict volatile bitfield handling.
21133 2015-03-05  Martin Liska  <mliska@suse.cz>
21135         PR ipa/65318
21136         * ipa-icf.c (sem_variable::equals): Compare variables types.
21138 2015-03-05  Richard Henderson  <rth@redhat.com>
21140         PR target/65121
21141         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
21142         correctly check weak symbol binding.
21144 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
21146         PR middle-end/65315
21147         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
21148         needed alignment.
21150 2015-03-05  Martin Liska  <mliska@suse.cz>
21152         * ipa-inline.c (inline_small_functions): Set default value to
21153         prevent warning during bootstrap.
21154         * tree.h: Add pragma guard that ignores false positives during
21155         bootstrap.
21157 2015-03-05  Richard Biener  <rguenther@suse.de>
21159         PR tree-optimization/65310
21160         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21161         Properly preserve alignment of the base of the access.
21163 2015-03-05  Richard Biener  <rguenther@suse.de>
21165         PR ipa/65270
21166         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
21167         Compare dependence info.
21169 2015-03-05  Richard Biener  <rguenther@suse.de>
21171         PR middle-end/65233
21172         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
21173         tree-into-ssa.h.
21174         (walk_ssa_copies): Revert last chage.  Instead do not walk
21175         SSA names registered for SSA update.
21177 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21179         PR ipa/65270
21180         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
21181         vtable references for their containing type.
21182         (sem_function::equals_wpa): Compare TYPE_RESTRICT
21183         and type attributes.
21185 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
21187         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
21188         before negating it.
21189         * stor-layout.c (finalize_record_size): Revert latest change.
21191 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
21193         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
21195 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21197         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
21198         for correct comdat handling.
21199         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21200         Likewise.
21201         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
21202         (used_from_object_file_p_worker): Remove.
21203         (cgraph_node::only_called_directly_or_alised): Add
21204         used_from_object_file_p.
21205         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
21206         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
21207         can_remove_if_no_direct_calls_and_refs_p.
21209 2015-03-04  Nick Clifton  <nickc@redhat.com>
21211         * config/rl78/rl78.h (enum reg_class): Remove real registers from
21212         General register class.
21213         * config/rl78/rl78-real.md: Replace general register constraints
21214         with real+virtual register constraints.
21216 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21218         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
21219         from checking for -mhtm option.
21221 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21223         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
21224         (struct ipa_sra_check_caller_data): Add has_thunk field.
21225         (ipa_sra_check_caller): Check for thunk.
21226         (ipa_sra_preliminary_function_checks): Give up on function with
21227         thunks.
21228         (ipa_early_sra): Use call_for_symbol_and_aliases.
21230 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
21232         PR target/65249
21233         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
21234         called for __stack_chk_guard symbol.
21236 2015-03-03  DJ Delorie  <dj@redhat.com>
21238         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
21239         inc/dec.
21240         (*addhi3_real): Likewise.
21241         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
21242         pattern to match incrementing memory.
21243         * config/rl78/predicates.md (rl78_1_2_operand): New.
21244         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
21245         it's the same and only mem.
21246         (rl78_alloc_physical_registers_op2): If there's effectively only
21247         one MEM, transcode it into HL.
21248         (rl78_far_p): Reject addresses that aren't legitimate.
21250 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21252         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
21253         negating it.
21255         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
21257 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
21259         Implement call0 ABI for xtensa
21260         * config/xtensa/constraints.md ("a" constraint): Include stack
21261         pointer in case of call0 ABI.
21262         ("q" constraint): Make empty in case of call0 ABI.
21263         ("D" constraint): Include stack pointer in case of call0 ABI.
21264         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
21265         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
21266         prototypes.
21267         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
21268         variable.
21269         (xtensa_regno_to_class): Make it a local variable in the
21270         function xtensa_regno_to_class.
21271         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
21272         macro, function prototype and implementation.
21273         (reg_nonleaf_alloc_order): Make it a local variable in the
21274         function order_regs_for_local_alloc.
21275         (xtensa_conditional_register_usage): New function.
21276         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
21277         (xtensa_valid_move): Allow direct moves to stack pointer
21278         register in call0 ABI.
21279         (xtensa_setup_frame_addresses): Only spill register windows in
21280         windowed ABI.
21281         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
21282         call0 ABI respectively.
21283         (xtensa_function_arg_1): Only mark a7 register for copying in
21284         windowed ABI.
21285         (xtensa_call_save_reg): New function.
21286         (compute_frame_size): Add space for callee saved register
21287         storage to the frame size in call0 ABI.
21288         (xtensa_expand_prologue): Generate code to set up stack frame
21289         and save callee-saved registers in call0 ABI.
21290         (xtensa_expand_epilogue): New function.
21291         (xtensa_set_return_address): New function.
21292         (xtensa_return_addr): Calculate return address in call0 ABI.
21293         (xtensa_builtin_saveregs): Only mark a7 register for copying and
21294         emit copying code in windowed ABI.
21295         (order_regs_for_local_alloc): Add preferred register allocation
21296         order for non-leaf function in call0 ABI.
21297         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
21298         (xtensa_asm_trampoline_template): Add trampoline generation for
21299         call0 ABI.
21300         (xtensa_trampoline_init): Add trampoline initialization for
21301         call0 ABI.
21302         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
21303         functions.
21304         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
21305         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
21306         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
21307         ABI call-used registers.
21308         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
21309         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
21310         call0 ABI.
21311         (REG_CLASS_CONTENTS): Include all registers into the preferred
21312         reload registers set, adjust the set in the
21313         xtensa_conditional_register_usage.
21314         (xtensa_regno_to_class): Drop variable declaration.
21315         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
21316         function.
21317         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
21318         respectively.
21319         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
21320         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
21321         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
21322         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
21323         location in call0 ABI.
21324         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
21325         stack adjustment size when handling exception.
21326         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
21327         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
21328         definitions.
21329         ("return" pattern): Generate ret.n/ret in call0 ABI.
21330         ("epilogue" pattern): Expand epilogue.
21331         ("nonlocal_goto" pattern): Use default in call0 ABI.
21332         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
21333         emit eh_set_a0_* depending on ABI.
21334         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
21335         ("eh_set_a0_call0", "blockage"): New patterns.
21337 2015-03-03  Martin Liska  <mliska@suse.cz>
21339         PR ipa/65287
21340         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
21342 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21344         PR 65138/target
21345         * config/rs6000/rs6000-tables.opt: Regenerate table.
21347 2015-03-03  Renlin Li  <renlin.li@arm.com>
21349         * doc/md.texi (@item ^): Change ? into ^.
21351 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
21353         * doc/tm.texi: Regenerated.
21355 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
21357         * builtins.c (expand_builtin_return_addr): Add
21358         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
21359         surrounding #ifdef.
21360         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
21361         definition to 1.
21362         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
21363         Likewise.
21364         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
21365         undefined.
21366         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
21367         paragraph.
21369 2015-03-03  Martin Jambor  <mjambor@suse.cz>
21370             Eric Botcazou  <ebotcazou@adacore.com>
21372         * tree-sra.c (ipa_sra_check_caller_data): New type.
21373         (has_caller_p): Removed.
21374         (ipa_sra_check_caller): New function.
21375         (ipa_sra_preliminary_function_checks): Use it.
21377 2015-03-03  Martin Liska  <mliska@suse.cz>
21379         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
21380         instead of if branch.
21382 2015-03-03  Martin Liska  <mliska@suse.cz>
21384         PR ipa/65282
21385         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
21387 2015-03-23  Jeff Law  <law@redhat.com>
21389         PR tree-optimization/65241
21390         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
21391         hash table if INSERT is true.
21393 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21395         PR target/65296
21396         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
21398 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21400         PR target/64331
21401         * config/avr/avr.c (context.h, tree-pass.h): Include them.
21402         (avr_pass_data_recompute_notes): New static variable.
21403         (avr_pass_recompute_notes): New class.
21404         (avr_register_passes): New static function.
21405         (avr_option_override): Call it.
21407 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21409         Fix various problems with specs file generation.
21411         PR target/65296
21412         * config.gcc (extra_gcc_objs) [avr]: Remove.
21413         * config/avr/driver-avr.c: Remove file.
21414         * config/avr/t-avr (driver-avr.o): Remove rule.
21415         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
21416         INCLUDES to build.  Depend on TM_H.
21417         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
21418         build warnings.  Fix non-matching types and non-existing %-codes.
21419         (tm.h): Include.
21420         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
21421         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
21422         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
21423         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
21424         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
21425         (LIBGCC_SPEC): Remove definitions.
21427 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21429         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
21430         to create a register in testing mode.
21432 2015-03-03  Martin Liska  <mliska@suse.cz>
21433             Jan Hubicka  <hubicka@ucw.cz>
21435         PR ipa/65263
21436         * cgraph.c (cgraph_node::has_thunk_p): New function.
21437         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
21438         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
21439         (sem_function::merge): Assert is changed.
21441 2015-03-03  Martin Liska  <mliska@suse.cz>
21442             Martin Jambor  <mjambor@suse.cz>
21444         PR ipa/65087
21445         * ipa-icf.c (sem_item_optimizer::execute): Change function
21446         return value to boolean.
21447         (sem_item_optimizer::merge_classes): Likewise.
21448         (ipa_icf_driver): Return TODO_remove_functions in case there's
21449         a merge operation processed.
21450         * ipa-icf.h: Change function return value to boolean.
21452 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21454         PR 65138/target
21455         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
21456         processor type for 64-bit little endian PowerPC.
21458         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21459         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
21460         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
21461         printing built-in mask so it does not pass NULL pointers.
21463         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
21464         -mcpu=powerpc64le.
21466 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
21468         PR target/58158
21469         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
21470         !ISA_HAS_FP_CONDMOVE.
21472 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
21474         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
21475         reload_completed.
21477 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
21479         * doc/invoke.texi (Options for Code Generation Conventions):
21480         Fix URL of DSO paper.
21482 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21484         PR ipa/65130
21485         * ipa-inline.c (check_callers): Looks for recursion.
21486         (inline_to_all_callers): Give up on uninlinable or recursive edges.
21487         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
21488         summary of inline clones.
21489         (do_estimate_growth_1): Fix recursion check.
21491 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21493         PR ipa/64988
21494         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
21495         comdat groups.
21497 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21498             Aldy Hernandez  <aldyh@redhat.com>
21500         PR lto/65276
21501         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
21502         when checking TYPE_BINFO.
21504 2015-03-02  Richard Biener  <rguenther@suse.de>
21506         PR ipa/65270
21507         * ipa-icf-gimple.c: Include builtins.h.
21508         (func_checker::compare_memory_operand): Compare base alignment.
21510 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21512         PR target/65184
21513         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
21514         are never passed by reference.
21516 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21518         PR target/65183
21519         * tree-chkp.c (chkp_check_lower): Don't check against
21520         zero bounds for already instrumented functions.
21521         (chkp_check_upper): Likewise.
21522         (chkp_fini): Clean pass local data to avoid wrong reusage.
21524 2015-02-28  Martin Liska  <mliska@suse.cz>
21525             Jan Hubicka  <hubicka@ucw.cz>
21527         * ipa-icf.c (sem_variable::equals): Improve debug output;
21528         get variable constructor.
21529         (sem_variable::parse): Do not filter out too early; give up on
21530         volatile and register vars.
21531         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
21532         variables.
21533         * ipa-icf.h (sem_variable::init): Do not set ctor.
21534         (sem_variable::ctor): Remove.
21536 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
21538         PR middle-end/65233
21539         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
21541 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21543         * ipa-icf.c: Include stor-layout.h
21544         (sem_function::compare_cgraph_references): Rename to ...
21545         (sem_item::compare_cgraph_references): ... this one.
21546         (sem_variable::equals_wpa): New function
21547         (sem_variable::equals): Do not check stuff already verified by
21548         equals_wpa.
21549         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
21550         * ipa-icf.h (sem_item): Add compare_cgraph_references.
21551         (sem_function): Remove compare_cgraph_references.
21552         (sem_variable): Turns equals_wpa into non-inline.
21554 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21556         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
21557         (sem_item::add_expr): New function.
21558         (sem_function::hash_stmt): Handle operands of most statements.
21559         (sem_variable::get_hash): Hash the actual constructor.
21560         * ipa-icf.h (sem_item): Add add_expr.
21561         (sem_function): Update prototype of hash_stmt
21563 2015-02-28  Martin Liska  <mliska@suse.cz>
21564             Jan Hubicka  <hubicka@ucw.cz>
21566         PR ipa/65245
21567         * ipa-icf-gimple.c (func_checker::compare_function_decl):
21568         Remove.
21569         (func_checker::compare_variable_decl): Skip symtab vars.
21570         (func_checker::compare_cst_or_decl): Update.
21571         * ipa-icf.c (sem_function::parse): Do not consider aliases.
21572         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
21573         use correct symtab predicates.
21574         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
21575         (sem_variable::parse):  Update comment.
21576         (sem_item_optimizer::build_graph): Consider ultimate aliases
21577         for references.
21579 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21581         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
21582         of OBJ_TYPE_REF.
21584 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21586         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
21587         (sem_variable::merge) Likewise.
21589 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21591         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
21592         target; also match flag_ipa_devirt.
21594 2015-03-01  Martin Liska  <mliska@suse.cz>
21595             Jan Hubicka  <hubicka@ucw.cz>
21597         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
21598         Validate variable alignment.
21599         * ipa-icf.c (sem_function::equals_private): Be more precise
21600         about non-common function attributes.
21601         (sem_variable::equals): Likewise.
21603 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21605         PR ipa/65237
21606         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
21607         across COMDAT group boundary.
21609 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21611         PR ipa/65232
21612         * ipa-icf.c (clear_decl_rtl): New function.
21613         (sem_function::merge): Clear RTL before forming alias.
21614         (sem_variable::merge): Clear RTL before forming alias.
21616 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21618         PR ipa/65236
21619         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
21621 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
21623         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
21624         to neon_to_gp<q>.
21626 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21628         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
21629         a typo in the description.
21631 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21633         PR target/64317
21634         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21635         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21636         * lra-constraints.c: Include "params.h".
21637         (EBB_PROBABILITY_CUTOFF): Use
21638         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
21639         (lra_inheritance): Use '<' instead of '<=' for
21640         EBB_PROBABILITY_CUTOFF.
21641         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
21642         Document change.
21644 2015-02-27  Martin Liska  <mliska@suse.cz>
21646         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
21647         vector length condition.
21649 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
21651         * doc/extend.texi (x86 transactional memory intrinsics):
21652         Reorganize discussion of _xbegin.  Clarify that the return
21653         value is a bit mask.  Expand example and move to end of section.
21655 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21656             Aldy Hernandez  <aldyh@redhat.com>
21658         PR rtl-optimization/65220
21659         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
21661 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21663         PR target/65032
21664         * lra-remat.c (update_scratch_ops): New.
21665         (do_remat): Call it.
21666         * lra.c (lra_register_new_scratch_op): New. Take code from ...
21667         (remove_scratches): ... here.
21668         * lra-int.h (lra_register_new_scratch_op): New prototype.
21670 2015-02-27  Marek Polacek  <polacek@redhat.com>
21672         PR c/65040
21673         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
21674         -Wformat-signedness anymore.
21676 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21678         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
21679         function.
21680         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
21682 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21684         * config/s390/s390.c (enum s390_builtin):
21685         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
21686         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
21687         (s390_init_builtins): Generate new builtin functions.
21688         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
21689         (s390_sfpc, s390_efpc): New pattern definitions.
21691 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21693         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
21694         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
21695         (s390_builtin_decls): New array.
21696         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
21697         (s390_builtin_decl): New function.
21698         (TARGET_BUILTIN_DECL): Define macro.
21700 2015-02-27  Richard Biener  <rguenther@suse.de>
21702         PR middle-end/63175
21703         * builtins.c (get_object_alignment_2): Make sure to re-apply
21704         the ANDed mask after recursing to its operand gets us a new
21705         misalignment bit position.
21707 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
21708             Martin Liska  <mliska@suse.cz>
21710         PR bootstrap/65150
21711         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
21712         Use address_matters_p.
21713         (redirect_all_callers, set_addressable): New functions.
21714         (sem_function::merge): Reorganize and fix merging issues.
21715         (sem_variable::merge): Likewise.
21716         (sem_variable::compare_sections): Remove.
21717         * common.opt (fmerge-all-constants, fmerge-constants): Remove
21718         Optimization flag.
21719         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
21720         redirect them.
21721         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
21722         decl is used.
21723         (address_matters_1): New function.
21724         (symtab_node::address_matters_p): New function.
21725         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
21726         check for merged flag.
21727         * cgraph.h (address_matters_p): Declare.
21728         (symtab_node::address_taken_from_non_vtable_p): Remove.
21729         (symtab_node::address_can_be_compared_p): New method.
21730         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
21731         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
21732         Remove.
21733         (comdat_can_be_unshared_p_1) Use address_matters_p.
21734         (update_vtable_references): Fix formating.
21735         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
21736         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
21737         * cgraphclones.c: Preserve merged and icf_merged flags.
21739 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
21741         * doc/extend.texi (Function Attributes): Fix spelling and typos.
21742         (Label Attributes): Likewise.
21743         (Cilk Plus Builtins): Likewise.
21744         (ARC SIMD Built-in Functions): Likewise.
21745         (ARM C Language Extensions (ACLE)): Likewise.
21746         (PowerPC Built-in Functions): Likewise.
21747         (PowerPC Hardware Transactional Memory Built-in Functions):
21748         Likewise.
21750 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21752         PR tree-optimization/65216
21753         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
21754         new stmt and new SSA_NAME for lhs whenever the arguments have
21755         changed and weren't just swapped.  Fix comment typo.
21757         PR tree-optimization/65215
21758         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
21759         for PDP endian targets.
21760         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
21761         Fix up formatting issues.
21762         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
21763         size is smaller than the original, adjust MEM_REF offset by the
21764         difference of sizes.  Use is_gimple_mem_ref_addr instead of
21765         is_gimple_min_invariant test to avoid adding address temporaries.
21767 2015-02-26  Martin Liska  <mliska@suse.cz>
21768             Jan Hubicka  <hubicka@ucw.cz>
21770         PR ipa/64693
21771         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
21772         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
21773         (sem_item_optimizer::process_cong_reduction): Include division by
21774         sensitive references.
21775         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
21776         * ipa-ref.c (ipa_ref::address_matters_p): New function.
21777         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
21779 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
21781         PR target/65192
21782         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
21783         Remove.
21784         * config/avr/avr.c: Same.
21785         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
21786         Refuse any constant address not in 0..0xbf.
21787         * config/avr/avr.md (*mov<mode>, *movsf): Remove
21788         tiny_valid_direct_memory_access_range from insn conditions.
21789         (mov<mode>): Don't special-case expansion of avrtiny addresses.
21791 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
21793         PR target/61142
21794         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
21795         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
21796         * config/sh/predicates.md (const_logical_operand): New predicate.
21797         * config/sh/sh.md: Add new peephole2 patterns.
21799 2015-02-26  Marek Polacek  <polacek@redhat.com>
21801         PR ipa/65008
21802         * ipa-inline.c (early_inliner): Recompute inline parameters.
21804 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21806         PR target/65171
21807         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
21808         instructions with TImode operands are included in the analysis.
21810 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21812         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
21813         of an EDGE_FSM_THREAD.
21815 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21817         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
21819 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
21821         PR debug/46102
21822         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
21824 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21826         PR tree-optimization/65048
21827         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
21828         (thread_through_all_blocks): Call valid_jump_thread_path.
21829         Remove invalid FSM jump-thread paths.
21831 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21833         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
21834         (ipa_write_optimization_summaries): Likewise.
21835         * tree-streamer.h: Include data-streamer.h.
21836         (streamer_mode_table): Declare extern variable.
21837         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
21838         * lto-streamer-out.c (lto_output_init_mode_table,
21839         lto_write_mode_table): New functions.
21840         (produce_asm_for_decls): Call lto_write_mode_table when streaming
21841         offloading LTO.
21842         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
21843         (lto_create_simple_input_block): Add mode_table argument to the
21844         lto_input_block constructors.
21845         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
21846         Likewise.
21847         * data-streamer-in.c (string_for_index): Likewise.
21848         * ipa-inline-analysis.c (inline_read_section): Likewise.
21849         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
21850         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21851         * lto-streamer-in.c (lto_read_body_or_constructor,
21852         lto_input_toplevel_asms): Likewise.
21853         (lto_input_mode_table): New function.
21854         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
21855         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
21856         Use bp_pack_machine_mode.
21857         * real.h (struct real_format): Add name field.
21858         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
21859         (class lto_input_block): Add mode_table member.
21860         (lto_input_block::lto_input_block): Add mode_table_ argument,
21861         initialize mode_table.
21862         (struct lto_file_decl_data): Add mode_table field.
21863         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
21864         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
21865         unpack_ts_decl_common_value_fields,
21866         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
21867         * tree-streamer.c (streamer_mode_table): New variable.
21868         * real.c (ieee_single_format, mips_single_format,
21869         motorola_single_format, spu_single_format, ieee_double_format,
21870         mips_double_format, motorola_double_format,
21871         ieee_extended_motorola_format, ieee_extended_intel_96_format,
21872         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
21873         ibm_extended_format, mips_extended_format, ieee_quad_format,
21874         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
21875         decimal_single_format, decimal_double_format, decimal_quad_format,
21876         ieee_half_format, arm_half_format, real_internal_format): Add name
21877         field.
21878         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
21880 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
21882         PR target/65161
21883         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
21884         reordering for selective scheduling.
21886 2015-02-26  Terry Guo  <terry.guo@arm.com>
21888         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
21889         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
21890         (arm_arch_no_volatile_ce): Declare new global variable.
21891         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
21892         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
21893         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
21894         (TARGET_NO_VOLATILE_CE): New macro.
21895         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
21896         volatile memory access in IT block
21898 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21900         PR tree-optimization/61917
21901         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
21902         that reduc_def_stmt is null.
21904 2015-02-25  Martin Liska  <mliska@suse.cz>
21906         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
21907         hard register variables.
21909 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21911         PR target/64212
21912         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
21913         (symtab::noninterposable_alias): Likewise.
21915 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
21917         PR target/65167
21918         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
21919         bounds registers.
21920         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
21922 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
21924         PR target/64997
21925         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
21926         as split condition; force split via '#' in output pattern.
21928 2015-02-25  Richard Biener  <rguenther@suse.de>
21929             Kai Tietz  <ktietz@redhat.com>
21931         PR tree-optimization/61917
21932         * tree-vect-loop.c (vectorizable_reduction): Allow
21933         vect_internal_def without reduction to exit graceful.
21935 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21937         PR target/65196
21938         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
21939         only with NONDEBUG_INSN_P.
21941 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21943         Use variadic macros with avr-log.c.
21945         * config/avr/avr-protos.h (avr_vdump): New prototype.
21946         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
21947         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
21948         * config/avr/avr-log.c: Adjust comments.
21949         (avr_vdump): New function.
21950         (avr_vadump): Pass caller as 2nd argument instead of format string.
21951         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
21952         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
21954 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
21956         PR lto/64374
21957         * target.def (target_option_stream_in): New target hook.
21958         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
21959         targetm.target_option.post_stream_in if non-NULL.
21960         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
21961         * doc/tm.texi: Updated.
21962         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
21963         function.
21964         (TARGET_OPTION_POST_STREAM_IN): Redefine.
21966 2015-02-24  Jeff Law  <law@redhat.com>
21968         PR target/65117
21969         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
21970         of operand 0 and operand 2.
21971         (zero_cost_loop_end, loop_end): Similarly.
21973 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
21975         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
21976         CXX_MEM_STAT_INFO.
21978 2015-02-24  DJ Delorie  <dj@redhat.com>
21980         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
21981         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
21982         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
21983         instead of hardcoding SImode.
21985 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
21987         * omp-low.c (create_omp_child_function): Tag entrypoint
21988         functions with a special attribute.
21990 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21992         PR target/65058
21993         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
21995 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
21997         PR rtl-optimization/65123
21998         * lra-remat.c (operand_to_remat): Check hard regs in insn
21999         definition too.
22001 2015-02-24  Nick Clifton  <nickc@redhat.com>
22003         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
22004         to the assembler.
22006 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
22008         PR libgomp/64625
22009         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
22010         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
22011         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
22012         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
22013         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
22014         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
22015         (BUILT_IN_GOACC_PARALLEL): Specify as
22016         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
22017         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
22018         * builtin-types.def
22019         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22020         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22021         Remove function types.
22022         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
22023         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22024         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22025         New function types.
22027 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
22029         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
22031 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
22033         PR tree-optimization/65170
22034         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
22035         if val[1] < 0, clear also val[2] and return 3.
22037 2015-02-24  Alan Modra  <amodra@gmail.com>
22039         PR target/65172
22040         * config/rs6000/rs6000.c (get_memref_parts): Only return true
22041         when *base is a reg.  Handle nested plus addresses.  Simplify
22042         pre_modify test.
22044 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
22046         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
22047         use natural alignment when optimizing for size.
22049 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
22051         PR target/65153
22052         * config/sh/sh.md (movsicc_true+3): Remove peephole.
22053         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
22054         * config/sh/sh.c (replace_n_hard_rtx): Remove.
22056 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
22058         PR fortran/63427
22059         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
22060         too big for a wide_int.  Implement missing wrapping operation.
22062 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
22064         PR target/65163
22065         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
22066         instead of const_int 4294901760.
22068 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
22070         * config/avr/t-avr: Fix typo in comment.
22072 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
22074         * doc/rtl.texi (fma): Clarify documentation.
22076 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
22078         PR debug/58123
22079         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
22080         over input_location.
22082 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22084         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
22085         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
22086         restrict alignments to absolute_biggest_alignment.
22087         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
22088         Define.
22089         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
22090         * doc/tm.texi: Regenerate.
22091         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
22093 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
22095         PR target/64172
22096         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
22098 2015-02-20  Richard Biener  <rguenther@suse.de>
22100         PR tree-optimization/65136
22101         * tree-ssa-propagate.c: Include cfgloop.h.
22102         (replace_phi_args_in): Avoid replacing loop latch edge PHI
22103         arguments with constants.
22105 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
22106             Martin Liska  <mliska@suse.cz>
22108         PR target/63892
22109         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
22110         don't try to create_thunk if stdarg_p.  If
22111         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
22112         redirect_callers if possible.
22113         (sem_item_optimizer::execute): Call unregister_hooks here...
22114         (ipa_icf_driver): ... instead of here.
22116 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22118         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
22119         Mark operand 0 as earlyclobber in 2nd alternative.
22120         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
22121         Write negated shift amount into QI lowpart operand 0 and use it
22122         in the shift step.
22123         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22125 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22127         * cgraph.h (clone_function_name_1): Declare.
22128         * cgraphclones.c (clone_function_name_1): New function.
22129         (clone_function_name): Use it.
22130         * lto-partition.c: Include "stringpool.h".
22131         (must_not_rename, maybe_rewrite_identifier)
22132         (validize_symbol_for_target): New static functions.
22133         (privatize_symbol_name): Use must_not_rename.
22134         (promote_symbol): Call validize_symbol_for_target.
22135         (lto_promote_cross_file_statics): Likewise.
22136         (lto_promote_statics_nonwpa): Likewise.
22138 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
22140         PR target/64452
22141         * config/avr/avr.md (pushhi_insn): New insn.
22142         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
22144 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22145             Jakub Jelinek  <jakub@redhat.com>
22147         * tree-streamer.c (preload_common_nodes): Don't preload
22148         TI_VA_LIST* for offloading.
22149         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
22150         in_lto_p.
22152 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
22154         * config/pa/pa.c (pa_emit_move_sequence): Always force
22155         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
22156         note on insn.
22158         * config/pa/pa.c (pa_reloc_rw_mask): New function.
22159         (TARGET_ASM_RELOC_RW_MASK): Define.
22160         (pa_cannot_force_const_mem): Revert previous change.
22162 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
22163             Jan Hubicka  <hubicka@ucw.cz>
22165         PR ipa/65028
22166         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
22167         across jump functions.
22169 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
22171         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
22173 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
22175         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
22177 2015-02-19  Richard Henderson  <rth@redhat.com>
22179         PR middle-end/65074
22180         * varasm.c (default_binds_local_p_2): Don't test node->definition;
22181         test DECL_EXTERNAL independent of symtab_node.
22183 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
22185         PR lto/65012
22186         * varpool.c (varpool_node::get_constructor): Return early
22187         if this->lto_file_data is NULL.
22189 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22191         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
22192         (rank_for_schedule_debug): Update.
22193         (ready_sort): Make static.  Move sorting logic to ...
22194         (ready_sort_debug, ready_sort_real): New static functions.
22195         (schedule_block): Sort both debug insns and real insns in preparation
22196         for ready list trimming.  Improve debug output.
22197         * sched-int.h (ready_sort): Remove global declaration.
22199 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
22201         * ipa-icf.c (sem_function::equals_private): Adjust.
22202         (sem_function::bb_dict_test): Take a vec<int> * instead of
22203         auto_vec<int>.
22204         * ipa-icf.h (bb_dict_test): Likewise.
22206 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22208         PR gcov-profile/64634
22209         * tree-eh.c (frob_into_branch_around): Fix up typos
22210         in function comment.
22211         (lower_catch): Put eh_seq resulting from EH lowering of
22212         the cleanup sequence after the cleanup rather than before it.
22214 2015-02-18  Tom de Vries  <tom@codesourcery.com>
22216         * common.opt (fstdarg-opt): New option.
22217         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
22218         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22219         (@item -fstdarg-opt): New item.
22221 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22223         PR target/65064
22224         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
22225         for common symbols.
22227 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22229         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
22230         insn-modes.h.
22231         (ALL_HOST_OBJS): Add mkoffload.o.
22232         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
22234 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
22236         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
22237         (compare_virtual_tables): Be smarter about skipping typeinfos;
22238         do sane output on virtual table table mismatch.
22239         (warn_odr): Be ready for forward declarations of enums;
22240         output sane info on base mismatch and virtual table mismatch.
22241         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
22242         when only one type is polymorphic.
22243         (get_odr_type): Fix hashtable corruption.
22244         (dump_odr_type): Dump mangled names.
22246 2015-02-18  Richard Biener  <rguenther@suse.de>
22248         PR tree-optimization/65063
22249         * tree-predcom.c (determine_unroll_factor): Return 1 if we
22250         have replaced looparound PHIs.
22252 2015-02-18  Martin Liska  <mliska@suse.cz>
22254         * lto-streamer.c (lto_streamer_init): Encapsulate
22255         streamer_check_handled_ts_structures with checking macro.
22257 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22259         PR ipa/65087
22260         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
22261         section if !implicit_section.
22262         (cgraph_node::create_version_clone_with_body): Likewise.
22263         * trans-mem.c (ipa_tm_create_version): Likewise.
22265 2015-02-18  Richard Biener  <rguenther@suse.de>
22267         PR tree-optimization/62217
22268         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
22269         into BIVs.
22271 2015-02-18  Marek Polacek  <polacek@redhat.com>
22273         PR sanitizer/65081
22274         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
22275         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
22276         is in range [-16K, -1].  Don't issue run-time error if
22277         (ptr > ptr + offset).
22279 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
22281         * doc/install.texi (nvptx-*-none): New section.
22282         * doc/invoke.texi (Nvidia PTX Options): Likewise.
22283         * config/nvptx/nvptx.opt: Update.
22285         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
22286         (access_check): New functions, copied from
22287         config/i386/intelmic-mkoffload.c.
22288         (main): For non-installed testing, look in all COMPILER_PATHs for
22289         GCC_INSTALL_NAME.
22291         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
22293 2015-02-18  Andrew Pinski  <apinski@cavium.com>
22294             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22296         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
22297         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
22299 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
22301         * ipa-visibility.c (function_and_variable_visibility): Only
22302         check locality if node is not already local.
22303         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22304         call_for_symbol_and_aliases instead of
22305         call_for_symbol_thunks_and_aliases.
22306         (ipa_inline): Likewise.
22307         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22308         first walk aliases.
22309         * ipa.c (symbol_table::remove_unreachable_nodes): Use
22310         call_for_symbol_and_aliases.
22311         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22312         (ipa_propagate_frequency_1): Use it; use opt_for_fn
22313         (ipa_propagate_frequency): Update.
22314         (ipa_profile): Add opt_for_fn gueards.
22316 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
22318         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
22319         * doc/invoke.texi (SH options): Document it.
22320         * config/sh/sh.c (sh_insn_length_adjustment): Check
22321         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
22323 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
22325         * common.opt (fipa-cp-alignment): New.
22326         * ipa-cp.c (ipcp_store_alignment_results): Check
22327         flag_ipa_cp_alignment.
22328         * opts.c (default_options_table): Enable -fipa-cp-alignment for
22329         -O2.
22330         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
22331         * doc/invoke.texi: Document -fipa-cp-alignment.
22333 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
22335         PR target/64793
22336         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
22337         to nil.  Adjust comments.
22339 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
22341         * ipa-visibility.c (function_and_variable_visibility): Only
22342         check locality if node is not already local.
22343         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22344         call_for_symbol_and_aliases instead of
22345         call_for_symbol_thunks_and_aliases.
22346         (ipa_inline): Likewise.
22347         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22348         first walk aliases.
22349         * ipa.c (symbol_table::remove_unreachable_nodes): Use
22350         call_for_symbol_and_aliases.
22351         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22352         (ipa_propagate_frequency_1): Use it; use opt_for_fn
22353         (ipa_propagate_frequency): Update.
22354         (ipa_profile): Add opt_for_fn guards.
22356 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
22358         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
22359         skipping of "strange" tokens.
22361 2015-02-17  Jeff Law  <law@redhat.com>
22363         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
22364         obsolete comment.
22366 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
22368         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
22369         as forcing a HARD_DEP between instructions, thereby
22370         disallowing rewriting to break dependencies.
22372 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22374         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
22375         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
22376         variables in boundary that have no inlitalizer encoded and are
22377         not aliases.
22378         * varasm.c (default_binds_local_p_2): External definitions do not
22379         count as definitions here.
22381 2015-02-16  Jeff Law  <law@redhat.com>
22383         PR tree-optimization/64823
22384         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
22385         statements.
22386         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22387         threading through blocks with PHIs, but no statements.
22388         (thread_through_normal_block): Distinguish between blocks where
22389         we did not process all the statements and blocks with no statements.
22391 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
22392             James Greenhalgh  <james.greenhalgh@arm.com>
22394         PR ipa/64963
22395         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
22396         section if not linkonce.  Fix up formatting.
22397         (cgraph_node::create_version_clone_with_body): Copy section.
22398         * trans-mem.c (ipa_tm_create_version): Likewise.
22400 2015-02-16  Richard Biener  <rguenther@suse.de>
22402         PR tree-optimization/65077
22403         * tree-ssa-structalias.c (get_constraint_for_1): Handle
22404         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
22405         (find_func_aliases): Allow float values to carry pointers again.
22407 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22409         * doc/install.texi (Specific): Reorder targets list to put
22410         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
22411         from the top menu.
22413 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22414             David Edelsohn  <dje.gcc@gmail.com>
22416         PR target/65058
22417         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
22418         mapping class to external variable or function reference.
22419         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
22420         mapping class.
22422 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
22424         PR target/53348
22425         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
22426         ASM_WEAKEN_DECL if defined.
22428 2015-02-16  Richard Biener  <rguenther@suse.de>
22430         PR lto/65015
22431         * varasm.c (default_file_start): For LTO produced units
22432         emit <artificial> as file directive.
22434 2015-02-16  Richard Biener  <rguenther@suse.de>
22436         PR tree-optimization/63593
22437         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
22438         stmts and releasing SSA names until...
22439         (execute_pred_commoning): ... after processing all chains.
22441 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22443         PR ipa/65059
22444         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
22445         external functions.
22447 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
22449         * doc/bugreport.texi: Adjust section titles throughout the file
22450         to use "Title Case".
22451         * doc/extend.texi: Likewise.
22452         * doc/gcov.texi: Likewise.
22453         * doc/implement-c.texi: Likewise.
22454         * doc/implement-cxx.texi: Likewise.
22455         * doc/invoke.texi: Likewise.
22456         * doc/objc.texi: Likewise.
22457         * doc/standards.texi: Likewise.
22458         * doc/trouble.texi: Likewise.
22460 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
22462         * cgraph.h (symtab_node::has_aliases_p): Simplify.
22463         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
22464         * tree.c (lookup_binfo_at_offset): Make static.
22465         (get_binfo_at_offset): Do not shadow offset; add explanatory
22466         comment.
22468 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
22470         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
22471         for all floading point loads and stores except those using a register
22472         index address.
22473         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
22474         to a register.
22476 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22478         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
22479         (do_estimate_growth_1): Record if any uninlinable edge was seen.
22480         (estimate_growth): Handle uninlinable edges correctly.
22481         (check_callers): New.
22482         (growth_likely_positive): Handle aliases correctly.
22484 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22486         * ipa-chkp.c: Use iterate_direct_aliases.
22487         * symtab.c (resolution_used_from_other_file_p): Move inline.
22488         (symtab_node::create_reference): Fix formating.
22489         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22490         (symtab_node::iterate_reference): Move inline.
22491         (symtab_node::iterate_referring): Move inline.
22492         (symtab_node::iterate_direct_aliases): Move inline.
22493         (symtab_node::used_from_object_file_p_worker): Inline into ...
22494         (symtab_node::used_from_object_file_p): ... this one; move inline.
22495         (symtab_node::call_for_symbol_and_aliases): Move inline;
22496         use iterate_direct_aliases.
22497         (symtab_node::call_for_symbol_and_aliases_1): New method.
22498         (cgraph_node::call_for_symbol_and_aliases): Move inline;
22499         use iterate_direct_aliases.
22500         (cgraph_node::call_for_symbol_and_aliases_1): New method.
22501         (varpool_node::call_for_node_and_aliases): Rename to ...
22502         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
22503         use iterate_direct_aliases.
22504         (varpool_node::call_for_symbol_and_aliases_1): New method.
22505         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
22506         (ipa_discover_readonly_nonaddressable_var): Update.
22507         * ipa-devirt.c: Fix formating.
22508         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
22509         Move inline.
22510         (cgraph_node::call_for_symbol_and_aliases): Move inline.
22511         (cgraph_node::call_for_symbol_and_aliases_1): New function..
22512         * cgraph.h (used_from_object_file_p_worker): Remove.
22513         (resolution_used_from_other_file_p): Move inline.
22514         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22515         (symtab_node::iterate_reference): Move inline.
22516         (symtab_node::iterate_referring): Move inline.
22517         (symtab_node::iterate_direct_aliases): Move inline.
22518         (symtab_node::used_from_object_file_p_worker): Inline into ...
22519         (symtab_node::used_from_object_file_p): Move inline.
22520         * tree-emutls.c (ipa_lower_emutls): Update.
22521         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
22522         (varpool_node::call_for_node_and_aliases): Remove.
22524 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
22526         PR tree-optimization/62209
22527         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
22528         op == range->exp, insert seq and gimplified code after labels
22529         instead of after the phi.
22531 2015-02-13  Jeff Law  <law@redhat.com>
22533         PR bootstrap/65060
22534         Revert my change for tree-optimization/64823.
22536 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22538         PR tree-optimization/65053
22539         * tree-ssa-phiopt.c (value_replacement): When moving assign before
22540         cond, either reset VR on lhs or set it to phi result VR.
22542 2015-02-13  Jeff Law  <law@redhat.com>
22544         PR tree-optimization/64823
22545         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
22546         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22547         threading through blocks with PHIs, but no statements.
22548         (thread_through_normal_block): Distinguish between blocks where
22549         we did not process all the statements and blocks with no statements.
22551         PR rtl-optimization/47477
22552         * match.pd (convert (plus/minus (convert @0) (convert @1): New
22553         simplifier to narrow arithmetic.
22555 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
22557         PR ipa/65028
22558         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
22559         polymorphic call info when type is not known to be preserved.
22561 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
22563         PR ipa/65028
22564         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
22565         (inline_call): Use it.
22567 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
22569         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
22570         GOMP_DEVICE_NVIDIA_PTX.
22572 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22574         PR ipa/65034
22575         * stmt.c (emit_case_nodes): Use void_type_node instead of
22576         NULL_TREE as LABEL_DECL type.
22578 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
22580         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22581         constraints.
22582         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
22583         symbolic references to data to be forced to constant memory on the
22584         SOM target.
22586 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22588         PR tree-optimization/65002
22589         * tree-cfg.c (pass_data_fixup_cfg): Don't update
22590         SSA on start.
22591         * tree-sra.c (some_callers_have_no_vuse_p): New.
22592         (ipa_early_sra): Reject functions whose callers
22593         assume function is read only.
22595 2015-02-13  Richard Biener  <rguenther@suse.de>
22597         PR lto/65015
22598         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
22599         for LTO produced CUs.
22601 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
22603         PR tree-optimization/64705
22604         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
22605         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
22606         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
22607         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
22608         expand_simple_operations.
22610 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22611             Richard Henderson  <rth@redhat.com>
22613         PR rtl/32219
22614         * cgraphunit.c (cgraph_node::finalize_function): Set definition
22615         before notice_global_symbol.
22616         (varpool_node::finalize_decl): Likewise.
22617         * varasm.c (default_binds_local_p_2): Rename from
22618         default_binds_local_p_1, add weak_dominate argument.  Use direct
22619         returns instead of assigning to local variable.  Unify varpool and
22620         cgraph paths via symtab_node.  Reject undef weak variables before
22621         testing visibility.  Reorder tests for simplicity.
22622         (default_binds_local_p): Use default_binds_local_p_2.
22623         (default_binds_local_p_1): Likewise.
22624         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
22625         via symtab_node.
22626         (default_elf_asm_output_external): Emit visibility when specified.
22628 2015-02-13  Alan Modra  <amodra@gmail.com>
22630         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
22631         code setting up r11 for out-of-line fp restore.
22633 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
22635         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
22636         (muser-mode): Likewise.
22638 2015-02-13  Alan Modra  <amodra@gmail.com>
22640         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
22641         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
22643 2015-02-12  David Howells  <dhowells@redhat.com>
22645         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
22646         warning.
22647         * tree-ssa-uninit.c (dump_predicates): Likewise.
22648         * opts.c (print_filtered_help): Likewise.
22650 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22652         * dwarf2out.c (output_die): Use "%s", name instead of name to
22653         avoid -Wformat-security warning.
22655         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
22656         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22657         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
22658         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22660 2015-02-12  Jason Merrill  <jason@redhat.com>
22662         * common.opt (-flifetime-dse): New.
22664 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22666         PR sanitizer/65019
22667         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
22669         PR tree-optimization/65014
22670         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
22671         use original second operand of arg0 or arg1 instead of
22672         that adjusted by STRIP_NOPS.
22674 2015-02-11  Jeff Law  <law@redhat.com>
22676         PR target/63347
22677         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
22678         that needs to be queued, just queue it for a single cycle.
22680 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
22682         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
22683         bodies of thunks; comment on why.
22684         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
22685         symbols are extern.
22687 2015-02-11  Richard Henderson  <rth@redhat.com>
22689         PR sanitize/65000
22690         * tree-eh.c (mark_reachable_handlers): Mark source and destination
22691         regions of __builtin_eh_copy_values.
22693 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22695         PR middle-end/65003
22696         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
22697         ultimate alias is MEM with SYMBOL_REF satisfying
22698         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
22699         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
22701 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
22703         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
22704         "diagnostic-core.h".
22705         (main): Initialize progname, and call diagnostic_initialize.
22707         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
22708         instead of __OPENMP_TARGET__.
22710         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
22711         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
22712         hard-coding PTX_ID.
22714 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
22716         * doc/sourcebuild.texi (pie_enabled): Document.
22718 2015-02-11  Martin Liska  <mliska@suse.cz>
22720         PR ipa/64813
22721         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
22722         a return value for call to a function that is noreturn.
22724 2015-02-11  Richard Biener  <rguenther@suse.de>
22726         PR lto/65015
22727         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
22728         and -fresolution.
22730 2015-02-11  Andrew Pinski  <apinski@cavium.com>
22732         PR target/64893
22733         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
22734         Change the first argument type to size_type_node and add another
22735         size_type_node.
22736         (aarch64_simd_expand_builtin): Handle the new argument to
22737         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
22738         print an out when the first two arguments are not
22739         nonzero integer constants.
22740         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
22741         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
22743 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22745         PR target/61925
22746         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
22747         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
22748         (ix86_set_current_function): Rewritten.
22749         (ix86_add_new_builtins): Temporarily clear current_target_pragma
22750         when creating builtin fndecls.
22752 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22754         PR ipa/65005
22755         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
22756         function.
22757         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
22758         have no comdat group.
22759         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
22760         (lto_output_varpool_node): Always output alias info.
22761         (output_refs): Output refs of boundary aliases, too.
22762         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
22763         (output_symtab): Output call eges in thunks in boundary.
22764         (get_alias_symbol): Remove.
22765         (input_node, input_varpool_node): Do not special case weakrefs.
22766         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
22767         alias and thunks targets in the boundary; do not take removed symbols
22768         from their comdat groups.
22769         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
22770         (cgraph_node::global_info): Remove.
22771         (cgraph_node::rtl_info): Look through aliases and thunks.
22772         * cgrpah.h (global_info): Remove.
22773         (non_local_p): Remove.
22775 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22776             Sandra Loosemore  <sandra@codesourcery.com>
22778         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
22779         to inline asm.  List dialects in proper order.
22781 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22782             Sandra Loosemore  <sandra@codesourcery.com>
22784         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
22786 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22788         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
22789         modified) reference to Solaris.
22791 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
22793         * doc/extend.texi (Extended Asm): Fix typos.
22795 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
22797         PR sanitizer/65004
22798         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
22800 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
22802         PR target/64661
22803         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
22804         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
22805         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
22806         * config/sh/constraints.md (Ara, Add): New constraints.
22807         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
22808         predicates.
22809         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
22810         atomic_mem_operand_0.  Don't use force_reg on the memory address.
22811         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
22812         Sra constraint.  Convert to insn_and_split.  Add workaround for
22813         PR 64974.
22814         (atomic_compare_and_swap<mode>_hard): Copy to
22815         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
22816         Use atomic_mem_operand_0 predicate.
22817         (atomic_compare_and_swap<mode>_soft_gusa,
22818         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
22819         AraAdd constraints.
22820         (atomic_compare_and_swap<mode>_soft_tcb,
22821         atomic_compare_and_swap<mode>_soft_imask,
22822         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
22823         atomic_mem_operand_0 predicate and SraSdd constraints.
22824         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
22825         constraint.
22826         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
22827         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
22828         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
22829         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
22830         force_reg on the memory address.
22831         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
22832         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
22833         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
22834         atomic_mem_operand_1 predicate and Sra constraint.
22835         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
22836         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22837         Use atomic_mem_operand_1 predicate.
22838         (atomic_<fetchop_name><mode>_hard): Copy to
22839         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22840         Use atomic_mem_operand_1 predicate.
22841         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
22842         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22843         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
22844         insn_and_split.  Use atomic_mem_operand_1 predicate.
22845         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
22846         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
22847         Use atomic_mem_operand_1 predicate.
22848         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
22849         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22850         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
22851         in generated insn with original mem operand before emitting the insn.
22852         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
22853         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
22854         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
22855         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
22856         Use atomic_mem_operand_1 predicate and AraAdd constraints.
22857         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
22858         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
22859         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
22860         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
22861         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
22862         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
22863         atomic_not_fetch<mode>_soft_tcb,
22864         atomic_<fetchop_name>_fetch<mode>_soft_imask,
22865         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
22866         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
22867         Use atomic_mem_operand_1 predicate and SraSdd constraints.
22869 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
22871         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
22872         and 3 earlyclobber operands.
22874 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22876         * common.opt (fstack-reuse): Mark as optimization.
22878 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22880         PR ipa/64982
22881         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
22883 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
22885         PR tree-optimization/64326
22886         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
22888 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
22890         PR gcov-profile/61889
22891         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
22893 2015-02-10  Richard Biener  <rguenther@suse.de>
22895         PR tree-optimization/64995
22896         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
22897         value we use is final.
22898         (visit_reference_op_store): Always valueize op.
22899         (visit_use): Properly valueize vuses.
22901 2015-02-10  Richard Biener  <rguenther@suse.de>
22903         PR tree-optimization/64909
22904         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
22905         pass a scalar-stmt count estimate to the cost model.
22906         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
22908 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
22910         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
22911         enabled by default together with var-tracking.
22913 2015-02-10  Nick Clifton  <nickc@redhat.com>
22915         * config/rl78/rl78.c: Remove DIV attribute code accidentally
22916         included in previous rl78 commit.
22918 2015-02-10  Richard Biener  <rguenther@suse.de>
22920         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
22921         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
22922         return the bitpack.
22924 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22926         PR gcov-profile/61889
22927         * config.in: regenerate.
22928         * configure.in: Likewise.
22929         * configure.ac: Check for ftw.h.
22930         * gcov-tool.c: Check for ftw.h before using nftw.
22932 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22934         PR lto/64076
22935         * ipa-visibility.c (update_visibility_by_resolution_info): Only
22936         assert when not in lto mode.
22938 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22940         * ira-color.c (setup_left_conflict_sizes_p): Simplify
22941         initialization/assignment of conflict_size.
22943 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
22945         PR ipa/64978
22946         * ipa-cp.c (gather_caller_stats): Skip thunks.
22947         (propagate_constants_topo): Skip aliases.
22949 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
22951         PR target/64761
22952         * config/sh/sh.c (sh_option_override): Don't change
22953         -freorder-blocks-and-partition to -freorder-blocks even when
22954         unwinding is enabled.
22955         (sh_can_follow_jump): Return false if the followee jump is
22956         a crossing jump when -freorder-blocks-and-partition is specified.
22957         * config/sh/sh.md (*jump_compact_crossing): New insn.
22959 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
22960             Kaz Kojima  <kkojima@gcc.gnu.org>
22962         PR target/64761
22963         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
22964         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
22965         (sh_can_redirect_branch): Rename to ...
22966         (sh_can_follow_jump): ... this.  Constify argument types.
22967         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
22968         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
22969         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
22970         * doc/tm.texi: Regenerate.
22972 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22974         PR sanitizer/64981
22975         * builtins.c (expand_builtin): Call targetm.expand_builtin
22976         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
22978 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22980         PR ipa/61548
22981         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
22983 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22985         PR ipa/63566
22986         * ipa-icf.c (set_local): New function.
22987         (sem_function::merge): Use it.
22989 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22991         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
22992         (add_type_duplicate): Fix comparison of BINFOs.
22994 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22996         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
22997         on getting VOID pointer.
22999 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
23001         PR target/64979
23002         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
23003         va_list escapes.
23005 2015-02-09  Richard Biener  <rguenther@suse.de>
23007         * genmatch.c (replace_id): Copy expr_type.
23009 2015-02-09  Richard Biener  <rguenther@suse.de>
23011         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
23012         (streamer_write_tree_bitfields): Declare.
23013         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
23014         properly unpack padding.
23015         (unpack_value_fields): Inline ...
23016         (streamer_read_tree_bitfields): ... here.
23017         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
23018         and properly add padding bits.
23019         (streamer_pack_tree_bitfields): Fold into ...
23020         (streamer_write_tree_bitfields): ... this new function,
23021         exposing the bitpack object.
23022         * lto-streamer-out.c (lto_write_tree_1): Call
23023         streamer_write_tree_bitfields.
23025 2015-02-09  Richard Biener  <rguenther@suse.de>
23027         PR tree-optimization/54000
23028         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
23029         (struct ivopts_data): Add loop_loc member.
23030         (tree_ssa_iv_optimize_loop): Dump loop location.
23031         (create_new_ivs): Likewise, also dump number of IVs generated.
23033 2015-02-09  Martin Liska  <mliska@suse.cz>
23035         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
23036         just if not yet registered.
23037         (ipa_icf_generate_summary): Register callgraph hooks.
23039 2015-02-08  Andrew Pinski  <apinski@cavium.com>
23041         * config/aarch64/aarch64.c (gty_dummy): Delete.
23043 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23045         PR ipa/63566
23046         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
23047         (cgraph_node::local_p): Remove thunk related FIXME.
23049 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23051         PR ipa/63566
23052         * i386.c (ix86_function_regparm): Look through aliases to see if callee
23053         is local and optimized.
23054         (ix86_function_sseregparm): Likewise; also use target's SSE math
23055         settings; error out instead of silently generating wrong code
23056         on mismatches.
23057         (init_cumulative_args): Look through aliases.
23059 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23061         PR ipa/63566
23062         * ipa-split.c (execute_split_functions): Split if function has aliases.
23064 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23066         PR ipa/63566
23067         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
23068         aliases before trying to expand it.
23069         (cgraph_node::expand_thunk): Fix formating.
23071 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
23073         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
23074         (Using Assembly Language with C): Expand introduction.
23075         (Basic Asm): Copy-edit.  Add more information about uses of
23076         basic asm.
23077         (Extended Asm): Copy-edit.  Document new escape syntax and
23078         %l[label] syntax.
23079         (Global Reg Vars): Copy-edit.
23080         (Local Reg Vars): Likewise.
23082 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
23084         PR debug/2714
23085         PR bootstrap/64256
23086         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
23087         (DBX_CONTIN_CHAR): Define.
23089 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
23090             Brian Rzycki  <b.rzycki@samsung.com>
23092         PR tree-optimization/64878
23093         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
23094         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
23095         Stop recursion at loop phi nodes after having visited a loop phi node.
23097 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23099         * toplev.c (process_options): Change flag_ipa_ra before creating
23100         optimization_{default,current}_node.
23102         PR ipa/64896
23103         * cgraphunit.c (cgraph_node::expand_thunk): If
23104         restype is not is_gimple_reg_type nor the thunk_fndecl
23105         returns aggregate_value_p, set restmp to a temporary variable
23106         instead of resdecl.
23108 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
23110         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
23112 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23114         PR target/64205
23115         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
23116         add a general secondary reload handler for SDmode, unless we have
23117         both read/write support for SDmode.
23119 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23121         PR middle-end/64937
23122         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
23123         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
23124         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
23125         1 before, push it to abstract_vec.
23126         (dwarf2out_abstract_function): Adjust caller.  Don't call
23127         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
23128         DECL_ABSTRACT_P flags for all abstract_vec elts.
23130 2015-02-06  Renlin Li  <renlin.li@arm.com>
23132         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
23133         complex gimple.
23134         * tree-ssa.c (execute_update_addresses_taken): Likewise.
23136 2015-02-06  Jeff Law  <law@redhat.com>
23138         PR target/64889
23139         * config/h8300/h8300.c (push): New argument "in_prologue".
23140         Pass "in_prologue" along to "F".
23141         (h8300_push_pop): Corresponding changes.
23142         (h8300_expand_prologue): Likewise.
23143         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
23145 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23147         PR rtl-optimization/64957
23148         PR debug/64817
23149         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
23150         IOR rather than for AND.
23152 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
23154         PR target/62631
23155         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
23156         of shift-add and (add + shift) operations.  Rename local variable.
23158 2015-02-05  Jeff Law  <law@redhat.com>
23160         PR target/17306
23161         * config/h8300/constraints.md (U): Correctly dectect
23162         "eightbit_data" memory addresses.
23163         * config/h8300/h8300.c (eightbit_constant_address_p): Also
23164         handle (const (plus (symbol_ref (x)))) where x is declared
23165         as an 8-bit data memory address.
23166         * config/h8300/h8300.md (call, call_value): Correctly detect
23167         "funcvec" functions.
23169         PR target/43264
23170         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
23171         24 to 28 bits for the H8/300.
23173 2015-02-06  Alan Modra  <amodra@gmail.com>
23175         PR target/64876
23176         * config/rs6000/rs6000.c (chain_already_loaded): New function.
23177         (rs6000_call_aix): Use it.
23179 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
23181         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
23182         check.
23184 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
23186         * config/h8300/constraints.md ("U" constraint): Use strict
23187         variant of REG_OK_FOR_BASE_P after reload has started.
23189 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
23191         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
23192         define to zero if !TARGET_NEON.
23193         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
23195 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23196             Trevor Saunders  <tsaunders@mozilla.com>
23198         PR ipa/61548
23199         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
23201 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23203         PR ipa/61548
23204         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
23205         when removing varpool nodes.
23207 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23209         PR ipa/61548
23210         * varpool.c (varpool_node::remove): Fix order of variables.
23212 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23214         PR ipa/64686
23215         * ipa-inline.c (inline_small_functions): Fix ordering issue between
23216         speculation resolution and key updates.
23218 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23220         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
23221         about not letting any speculative edges unupdated.
23223 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23225         PR gcov/64123
23226         * gcov-io.c (gcov_var): Export.
23228 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23230         PR middle-end/64922
23231         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
23232         edges that become speculative.
23234 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
23236         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
23237         or DW_LANG_Fortran08.
23238         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
23239         DW_LANG_Fortran08.
23240         (gen_compile_unit_die): Handle "GNU Fortran2003" and
23241         "GNU Fortran2008" language strings.
23242         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
23243         * langhooks.h (lang_GNU_Fortran): New prototype.
23244         * langhooks.c (lang_GNU_Fortran): New function.
23245         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
23246         lang_GNU_Fortran.
23248 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23250         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
23251         (RTX_OK_FOR_OLO10_P): Likewise.
23253 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23255         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
23257 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23259         PR middle-end/64922
23260         * gimple.c: Include gimple-ssa.h.
23261         (maybe_remove_unused_call_args): New function.
23262         * gimple.h (maybe_remove_unused_call_args): Declare.
23263         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
23264         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
23265         * gimple-fold.c (gimple_fold_call): Likewise.
23267 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
23269         PR rtl-optimization/64905
23270         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
23271         pointer alignment if it isn't needed.
23273 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
23275         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
23276         cortex-a72.cortex-a53.
23277         * config/aarch64/aarch64-tune.md: Regenerate.
23278         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
23280 2015-02-04  Nick Clifton  <nickc@redhat.com>
23282         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
23283         inside a MEM.
23285 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
23287         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
23288         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
23289         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
23290         of DEF_BUILTIN.
23291         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
23292         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
23293         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
23294         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
23295         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
23296         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
23297         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
23298         * tree-core.h (enum built_in_function): In between
23299         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
23300         for builtins that use DEF_BUILTIN_CHKP macro.
23302 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
23304         PR debug/64817
23305         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
23306         operands for tcc_comparison exprs.  Fix typos.
23308         PR debug/64817
23309         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
23310         of two XORs that have an intervening AND or IOR.
23312         PR debug/64817
23313         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
23314         simplification of XOR of AND to not allocate new rtx before
23315         committing to a simplification.
23317 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23319         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
23320         manual swaps in all peepholes.
23322 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23324         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
23325         of manual swapping implementation.
23326         (aarch64_expand_vec_perm_const_1): Likewise.
23328 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
23330         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
23331         (generic_addrcost_table): Remove NAMED_PARAM.
23332         (cortexa57_addrcost_table): Likewise.
23333         (xgene1_addrcost_table): Likewise.
23334         (generic_regmove_table): Likewise.
23335         (cortexa53_regmove_table): Likewise.
23336         (xgene1_regmove_table): Likewise.
23337         (generic_vector_table): Likewise.
23338         (cortexa57_vector_table): Likewise.
23339         (xgene1_vector_table): Likewise.
23340         (generic_tunings): Likewise.
23341         (cortexa53_tunings): Likewise.
23342         (cortexa57_tunings): Likewise.
23343         (xgene1_tunings): Likewise.
23345 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
23347         * config/arm/arm-cores.def: Add cortex-a72 and
23348         cortex-a72.cortex-a53.
23349         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
23350         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
23351         * config/arm/arm-tune.md: Regenerate.
23352         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
23353         "cortex-a72.cortex-a53".
23354         * doc/invoke.texi (ARM Options/-mtune): Likewise.
23356 2015-02-04  Nick Clifton  <nickc@redhat.com>
23358         PR target/64408
23359         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
23360         of accepted codes.
23361         (nonimmediate_di_operand): Likewise.
23363         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
23364         prefixes of known F5 using MSP430 MCUs.
23366 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23368         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
23369         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
23370         instead of __builtin_sqrt.
23372 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
23374         * varasm.c (do_assemble_alias): Follow transparent alias
23375         chain for target.
23376         (default_assemble_visibility): Follow transparent alias
23377         chain for decl name.
23379 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23381         PR middle-end/62103
23382         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
23383         to compute size of referenced value in the constant case.
23385 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23387         PR rtl-optimization/64756
23388         * cse.c (invalidate_dest): New function.
23389         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
23390         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
23391         invalidate and do not record it.
23393 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
23395         PR target/64660
23396         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
23397         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
23398         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
23399         atomic_nand<mode>_soft_tcb): New insns.
23400         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
23401         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
23402         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
23403         Split into atomic_not_fetchsi_hard if operands[0] is unused.
23404         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
23405         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23406         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
23407         atomic_not<mode>_hard if operands[0] is unused.
23408         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
23409         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
23410         if operands[0] is unused.
23411         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
23412         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
23413         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
23414         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23415         unused.
23416         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
23417         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23418         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
23419         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
23420         if operands[0] is unused.
23421         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
23422         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
23423         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
23424         atomic_nand_fetchsi_hard if operands[0] is unused.
23425         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
23426         atomic_nand<mode>_hard if operands[0] is unused.
23427         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
23428         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
23429         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
23430         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23431         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
23432         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
23433         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
23434         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23435         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
23436         atomic_not<mode>_hard if operands[0] is unused.
23437         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
23438         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23439         unused.
23440         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23441         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23442         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
23443         atomic_nand<mode>_hard if operands[0] is unused.
23444         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23445         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23447 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
23449         PR jit/64810
23450         * Makefile.in (GCC_OBJS): Add gcc-main.o.
23451         * gcc-main.c: New file, containing "main" taken from gcc.c.
23452         * gcc.c (do_self_spec): Free decoded_options.
23453         (class driver): Move declaration to gcc.h.
23454         (main): Move declaration and implementation to new file
23455         gcc-main.c.
23456         (driver_get_configure_time_options): New function.
23457         * gcc.h (class driver): Move this declaration here, from
23458         gcc.c.
23459         (driver_get_configure_time_options): New declaration.
23461 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
23463         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
23464         cross-module inlining.
23465         * cgraph.h (cgraph_node): Add flag merged.
23466         * ipa-icf.c (sem_function::merge): Maintain it.
23468 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
23470         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
23471         instead of OBJECT_P.
23473 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
23475         PR target/62631
23476         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
23477         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
23478         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
23479         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
23481 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23483         PR other/63504
23484         * combine.c (reg_n_sets_max): New variable.
23485         (can_change_dest_mode, reg_nonzero_bits_for_combine,
23486         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
23487         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
23488         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
23489         (rest_of_handle_combine): Initialize reg_n_sets_max.
23491 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
23493         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
23494         if some always_inline was inlined, apply changes before inlining
23495         heuristically.
23497 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
23499         PR jit/64810
23500         * config/arm/arm.c (arm_option_override): Set
23501         arm_selected_arch/cpu/tune to NULL on entry.
23503 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
23504             Andrew Pinski  <pinskia@gcc.gnu.org>
23505             Jakub Jelinek  <jakub@gcc.gnu.org>
23507         PR target/64231
23508         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
23509         integer typing for small model. Use IN_RANGE.
23511 2015-02-02  Richard Biener  <rguenther@suse.de>
23513         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
23514         * tree-vrp.c (vrp_valueize_1): Likewise.
23516 2015-02-02  Alan Modra  <amodra@gmail.com>
23518         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23519         than mem for toc_restore.
23520         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
23521         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
23522         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
23524 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
23526         PR target/64047
23527         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
23528         explicit default options.
23530 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
23532         PR ipa/64872
23533         * ipa-utils.c (ipa_merge_profiles): Add release argument.
23534         * ipa-icf.c (sem_function::merge): Do not release body when merging.
23535         * ipa-utils.h (ipa_merge_profiles): Update prototype.
23537 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
23539         PR debug/64817
23540         * cfgexpand.c (deep_ter_debug_map): New variable.
23541         (avoid_deep_ter_for_debug): New function.
23542         (expand_debug_expr): If TERed SSA_NAME is in
23543         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
23544         instead of trying to expand SSA_NAME's def stmt.
23545         (expand_debug_locations): When expanding debug bind
23546         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
23547         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
23548         value.
23549         (pass_expand::execute): Call avoid_deep_ter_for_debug on
23550         all debug bind stmts.  Delete deep_ter_debug_map after
23551         expand_debug_location if non-NULL and clear it.
23553 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
23555         PR target/64851
23556         * config/sh/sync.md (atomic_fetch_notsi_hard,
23557         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
23558         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
23559         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
23560         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
23561         atomic_not_fetch<mode>_soft_imask): New insns.
23563 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23565         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
23566         (rank_for_schedule_debug): Split from ...
23567         (rank_for_schedule): ... this.
23568         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
23569         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
23571 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23573         * doc/md.texi (Machine Constraints): Alphabetize table by target.
23574         * doc/extend.texi (x86 Variable Attributes): Move section to
23575         correct alphabetization after renaming.
23576         (x86 Type Attributes): Likewise.
23577         (Target Builtins): Re-alphabetize menu.
23578         (x86 Built-in Functions): Move section to correct alphabetization
23579         after renaming.
23580         (x86 transactional memory intrinsics): Likewise.
23581         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
23582         and x86 Windows Options in table and menu.
23583         (x86 Options): Move section to correct alphabetization after
23584         renaming.
23585         (x86 Windows Options): Likewise.
23587 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23589         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
23590         preferred names of the architecture and its 32- and 64-bit
23591         variants.
23592         * doc/invoke.texi: Likewise.
23593         * doc/md.texi: Likewise.
23595 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23597         PR target/64882
23598         * config/i386/predicates.md (address_no_seg_operand): Reject
23599         non-CONST_INT_P operands in invalid mode.
23601 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23603         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
23604         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
23605         * config/i386/predicates.md (address_no_seg_operand): Call
23606         address_operand with VOIDmode.
23607         (vsib_address_operand): Ditto.
23608         (address_mpx_no_base_operand): Ditto.
23609         (address_mpx_no_index_operand): Ditto.
23611 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23613         PR target/64688
23614         * lra-constraints.c (original_subreg_reg_mode): New.
23615         (simplify_operand_subreg): Try to simplify subreg of const.  Use
23616         original_subreg_reg_mode for it.
23617         (swap_operands): Update original_subreg_reg_mode.
23618         (curr_insn_transform): Set up original_subreg_reg_mode.
23620 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23622         PR target/64617
23623         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
23624         function.
23625         (process_alt_operands): Use it.
23626         (curr_insn_transform): Check the optional reload pseudo class is
23627         ok for the mode.
23629 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
23631         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
23632         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
23633         prototype.
23634         * toplev.h (init_asm_output): Update comment on use of
23635         UNKNOWN_LOCATION with fatal_error.
23636         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
23637         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
23638         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
23639         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
23640         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
23641         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
23642         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
23643         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
23644         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
23645         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
23646         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
23647         fatal_error changed to pass input_location as first argument.
23649 2015-01-30  Martin Liska  <mliska@suse.cz>
23651         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
23652         in #pragma GCC diagnostic guards.
23654 2015-01-30  Richard Biener  <rguenther@suse.de>
23656         PR tree-optimization/64829
23657         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
23658         not add a widening conversion pattern but hand off extra
23659         widenings to callers.
23660         (vect_recog_widen_mult_pattern): Handle extra widening produced
23661         by vect_handle_widen_op_by_const.
23662         (vect_recog_widen_shift_pattern): Likewise.
23663         (vect_pattern_recog_1): Remove excess vertical space in dumping.
23664         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23665         (vect_init_vector_1): Likewise.
23666         (vect_get_vec_def_for_operand): Likewise.
23667         (vect_finish_stmt_generation): Likewise.
23668         (vectorizable_load): Likewise.
23669         (vect_analyze_stmt): Likewise.
23670         (vect_is_simple_use): Likewise.
23672 2015-01-29  Jeff Law  <law@redhat.com>
23674         * combine.c (try_combine): Fix typo in comment.
23676 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
23678         PR target/64580
23679         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
23680         (rs6000_stack_info): Add assert.
23681         (rs6000_output_savres_externs): New function, split off from...
23682         (rs6000_output_function_prologue): ... here.  Do not call it for
23683         thunks.
23685 2015-01-29  Jeff Law  <law@redhat.com>
23687         PR target/15184
23688         * combine.c (try_combine): If I0 is a memory load and I3 a store
23689         to a related address, increase the "goodness" of doing a 4-insn
23690         combination with I0-I3.
23691         (make_field_assignment): Handle SUBREGs in the ior+and case.
23693 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
23695         PR tree-optimization/64746
23696         * tree-if-conv.c (mask_exists): New function.
23697         (predicate_mem_writes): Save created mask with given size for further
23698         use.
23699         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
23700         (ifcvt_repair_bool_pattern): Collect all statements that are root
23701         of bool pattern and use iterative algorithm to remove multiple uses
23702         of predicates, display number of required iterations.
23704 2015-01-29  Richard Biener  <rguenther@suse.de>
23706         PR tree-optimization/64853
23707         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
23708         stmt will get simulated again.
23709         * tree-ssa-ccp.c (valueize_op_1): Likewise.
23711 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23713         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
23714         return_in_pc.  Remove redundant assignments.
23715         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
23716         (arm_expand_epilogue): Don't compare boolean with true in if condition.
23718 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
23720         * config/i386/i386.c (ix86_mode_after): Make static.
23722 2015-01-29  Richard Biener  <rguenther@suse.de>
23724         PR tree-optimization/64844
23725         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
23726         dump cost model analysis.
23727         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23728         Do not register adjusted load/store costs here.
23730 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23731             Uros Bizjak  <ubizjak@gmail.com>
23733         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
23734         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
23735         using x86_use_pseudo_pic_reg.
23736         * config/i386/i386.c (ix86_conditional_register_usage): Remove
23737         support for fixed PIC register.
23738         (ix86_use_pseudo_pic_reg): Not static any more.
23740 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23742         PR middle-end/64805
23743         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
23744         to avoid error in cgraph node verification.
23746 2015-01-29  Marek Polacek  <polacek@redhat.com>
23748         * doc/standards.texi: Reflect that the default for C is gnu11.
23750 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23752         PR target/64761
23753         * reorg.c (switch_text_sections_between_p): New function.
23754         (relax_delay_slots): Call it when testing if the jump insn
23755         is removable.  Use targetm.can_follow_jump when testing if
23756         the conditional branch can follow an unconditional jump.
23758 2015-01-27  Caroline Tice  <cmtice@google.com>
23760         Committing VTV Cywin/Ming patch for Patrick Wollgast
23761         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
23762         if -fvtable-verify=preinit/std is used.
23763         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
23764         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
23765         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
23766         if -fvtable-verify=preinit/std is used.
23767         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23768         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
23769         if -fvtable-verify=preinit/std is used.
23770         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
23771         * config/i386/mingw32.h (LIB_SPEC): Likewise.
23772         * varasm.c (assemble_variable): Add code to properly set the comdat
23773         section and name for the .vtable_map_vars section in case the
23774         target is PE or COFF.
23776 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23778         PR ipa/64801
23779         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
23780         make sane BB profile.
23781         (cgraph_node::expand_thunk): Make sane BB profile.
23782         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
23783         * cgraph.h (init_lowered_empty_function): Update prototype.
23784         * config/i386/i386.c (make_resolver_func): Update call.
23785         * predict.c (gate): Disable branch prediction pass if
23786         profile is already there.
23788 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23790         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
23791         * opth-gen.awk: Likewise.
23792         * common.opt: Mark flag_fp_contract_mode as Optimization.
23794 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23796         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
23797         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
23799 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
23801         PR target/64659
23802         * config/sh/predicates.md (atomic_arith_operand,
23803         atomic_logical_operand): Remove.
23804         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
23805         (atomic_arith_operand_0): New predicate.
23806         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
23807         Use atomic_arith_operand_0 for input values.
23808         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23809         atomic_compare_and_swap<mode>_soft_gusa,
23810         atomic_compare_and_swap<mode>_soft_tcb,
23811         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
23812         arith_reg_operand instead of register_operand.
23813         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
23814         atomic_arith_operand_0 for newval input.
23815         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23816         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
23817         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
23818         arith_reg_operand instead of register_operand.
23819         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
23820         fetchop_predicate_1, fetchop_constraint_1_llcs,
23821         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
23822         fetchop_constraint_1_imask): New code iterator attributes.
23823         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
23824         register_operand.  Use fetchop_predicate_1.
23825         (atomic_fetch_<fetchop_name>si_hard,
23826         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
23827         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
23828         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
23829         and arith_reg_operand instead of register_operand.  Use
23830         fetchop_predicate_1, fetchop_constraint_1_gusa.
23831         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
23832         and arith_reg_operand instead of register_operand.  Use
23833         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
23834         to allow R0 usage.
23835         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
23836         and arith_reg_operand instead of register_operand.  Use
23837         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
23838         to allow R0 usage.
23839         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
23840         register_operand.  Use atomic_logical_operand_1.
23841         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23842         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
23843         arith_reg_operand instead of register_operand.
23844         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
23845         Use arith_reg_dest and arith_reg_operand instead of register_operand.
23846         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
23847         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
23848         register_operand.  Use fetchop_predicate_1.
23849         (atomic_<fetchop_name>_fetchsi_hard,
23850         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
23851         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23852         fetchop_constraint_1_llcs.
23853         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
23854         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23855         fetchop_constraint_1_gusa.
23856         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
23857         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23858         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
23859         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
23860         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23861         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
23862         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
23863         register_operand.  Use atomic_logical_operand_1.
23864         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23865         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
23866         arith_reg_operand instead of register_operand.
23867         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
23868         arith_reg_operand instead of register_operand.  Use logical_operand
23869         and K08.  Adjust asm sequence to allow R0 usage.
23870         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
23871         arith_reg_operand instead of register_operand.  Use logical_operand
23872         and K08.
23874 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23876         PR other/63504
23877         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
23878         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
23879         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
23880         only get_full_len HOST_WIDE_INTs from get_val () array rather than
23881         all bits in *val_wide.
23883 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
23885         * varpool.c (tls_model_names): Fix names.
23886         (varpool_node::dump): Dump tls- prefix for tls models.
23888 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
23889             Bernd Schmidt  <bernds@codesourcery.com>
23890             Nathan Sidwell  <nathan@codesourcery.com>
23892         * config/nvptx/mkoffload.c: New file.
23893         * config/nvptx/t-nvptx: Add build rules for it.
23894         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
23895         (extra_programs): Add mkoffload.
23896         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
23897         function.
23898         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
23900 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
23902         PR middle-end/64809
23903         * cfgexpand.c (reorder_operands): Skip debug gimples.
23905 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
23907         PR tree-optimization/64277
23908         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
23909         range info when possible to refine estimation.
23911 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23913         PR tree-optimization/64718
23914         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
23915         be a 16bit unsigned integer when n->range is 16.
23916         (bswap_replace): Convert src to that type if necessary for all bswap
23917         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
23918         set in pass_optimize_bswap::execute ().
23920 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
23922         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
23923         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
23924         integer and floating point variants.
23925         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
23927 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
23929         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
23930         for all vector modes.
23932 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23934         PR bootstrap/64612
23935         * doc/sourcebuild.texi (comdat_group): Document.
23937 2015-01-28  Terry Guo  <terry.guo@arm.com>
23939         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
23941 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
23943         * toplev.c (print_version): Add param "show_global_state", and
23944         only print GGC and plugin information if it is true.
23945         (init_asm_output): Pass in "true" for the new param when calling
23946         print_version.
23947         (process_options): Likewise.
23948         (toplev::main): Likewise.
23949         * toplev.h (print_version): Add new param to decl.
23951 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23953         PR ipa/60871
23954         PR ipa/64139
23955         * tree.c (lookup_binfo_at_offset): New function.
23956         (get_binfo_at_offset): Use it.
23958 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23960         PR ipa/64282
23961         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
23962         on vtable being vtable.
23964 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23966         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
23967         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
23968         -mhotpatch= option.
23969         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
23970         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
23971         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
23972         Renamed.
23973         (s390_hotpatch_trampoline_halfwords_max): Renamed.
23974         (s390_hotpatch_hw_max): New name.
23975         (s390_hotpatch_trampoline_halfwords): Renamed.
23976         (s390_hotpatch_hw_before_label): New name.
23977         (get_hotpatch_attribute): Removed.
23978         (s390_hotpatch_hw_after_label): New name.
23979         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
23980         attribute.
23981         (s390_attribute_table): Ditto.
23982         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
23983         (s390_function_num_hotpatch_hw): New name.
23984         Remove special handling of inline functions and hotpatching.
23985         Return number of nops before and after the function label.
23986         (s390_can_inline_p): Removed.
23987         (s390_asm_output_function_label): Emit a configurable number of nops
23988         after the function label.
23989         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
23990         (TARGET_CAN_INLINE_P) Removed.
23991         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
23993 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23994             Jiong Wang  <jiong.wang@arm.com>
23996         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
23997         of scratch reg.
23998         (cb<optab><mode>1): Likewise.
23999         * config/aarch64/iterators.md (bcond): New define_code_attr.
24001 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24003         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
24004         memory accesses.
24006 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24008         * config/s390/s390.c (s390_register_move_cost): Increase costs for
24009         FPR->GPR moves.
24011 2015-01-27  Richard Biener  <rguenther@suse.de>
24013         * tree-vrp.c (update_value_range): Intersect the range with
24014         old recorded SSA name range information.
24016 2015-01-27  Nick Clifton  <nickc@redhat.com>
24018         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
24019         BC, DE and HL registers directly, not via AX.
24020         When decrementing the stack pointer by a large amount, transfer SP
24021         into AX and perform the subtraction there.
24022         (rl78_expand_epilogue): Perform the inverse of the above
24023         enhancements.
24025 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24027         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
24029 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
24030             Yury Gribov  <y.gribov@samsung.com>
24032         PR ubsan/64741
24033         * ubsan.c (ubsan_source_location): Refactor code.
24034         (ubsan_type_descriptor): Update type size. Refactor code.
24036 2015-01-27  Richard Biener  <rguenther@suse.de>
24038         PR tree-optimization/56273
24039         PR tree-optimization/59124
24040         PR tree-optimization/64277
24041         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
24042         from the first VRP pass.
24044 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
24046         PR ipa/64776
24047         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
24048         handle the first argument in the same loop as all the other arguments.
24050         PR rtl-optimization/61058
24051         * jump.c (cleanup_barriers): Update basic block boundaries
24052         if BLOCK_FOR_INSN is non-NULL on PREV.
24054 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
24056         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
24057         bounds narrowing, already instrumented calls and calls to
24058         not instrumentable functions.
24060 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
24062         PR tree-optimization/64807
24063         * wide-int.cc (wi::divmod_internal): Clear
24064         b_dividend[dividend_blocks_needed].
24066 2015-01-26  DJ Delorie  <dj@redhat.com>
24068         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
24069         volatile memory references.
24071 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
24073         PR target/49263
24074         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
24075         remove_insn.
24076         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
24077         shifts if it already fits into K08.
24079 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
24081         PR ipa/64730
24082         * ipa-inline.c (inline_small_functions): Print "unknown" even
24083         if edge->call_stmt is non-NULL, but has builtins or unknown
24084         location.
24086         PR middle-end/64421
24087         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
24088         with asterisk, skip the first character.
24090 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
24092         PR target/64806
24093         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
24094         order change.
24096 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
24098         PR target/64795
24099         * config/i386/i386.md (*movdi_internal): Also check operand 0
24100         to determine TYPE_LEA operand.
24101         (*movsi_internal): Ditto.
24103 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
24105         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
24106         OPTION_MASK_QUAD_MEMORY_ATOMIC.
24108 2015-01-26  Renlin Li  <renlin.li@arm.com>
24110         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
24111         the comment.
24112         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
24113         for higher part.
24115 2015-01-26  Richard Biener  <rguenther@suse.de>
24117         PR middle-end/64764
24118         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
24119         combining two BIT_AND_EXPR predicates.
24121 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
24123         PR bootstrap/64754
24124         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
24126 2015-01-26  Terry Guo  <terry.guo@arm.com>
24128         * config/arm/arm.c (arm_file_start): Update the assignment of
24129         Tag_ABI_HardFP_use.
24131 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
24133         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
24134         pipeline model.
24135         config/arm/arm.md: Include the new Cortex-A57 model.
24136         (generic_sched): Don't use generic_sched when tuning for
24137         Cortex-A57.
24139 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
24140             Uros Bizjak  <ubizjak@gmail.com>
24142         * config/i386/i386.c (get_builtin_code_for_version): Add
24143         support for BMI and BMI2 multiversion functions.
24145 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24147         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
24148         (extract_bit_field): Likewise.
24149         (extract_low_bits): Likewise.
24150         (expand_mult): Likewise.
24151         (expand_mult_highpart_adjust): Likewise.
24153 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
24155         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
24156         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
24157         * config/i386/i386.c (processor_model): Add
24158         M_INTEL_COREI7_BROADWELL.
24159         (arch_names_table): Add "broadwell".
24161 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
24163         PR target/49263
24164         PR target/53987
24165         PR target/64345
24166         PR target/59533
24167         PR target/52933
24168         PR target/54236
24169         PR target/51244
24170         * config/sh/sh-protos.h
24171         (sh_extending_set_of_reg::can_use_as_unextended_reg,
24172         sh_extending_set_of_reg::use_as_unextended_reg,
24173         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
24174         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
24175         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
24176         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
24177         (sh_treg_insns): New class.
24178         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
24179         (scope_counter): New class.
24180         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
24181         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
24182         sh_extending_set_of_reg::can_use_as_unextended_reg,
24183         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
24184         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
24185         sh_split_treg_set_expr): New functions.
24186         (addsubcosts): Handle treg_set_expr.
24187         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
24188         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
24189         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
24190         (sh_insn_operands_modified_between_p): Make non-static.
24191         * config/sh/predicates.md (zero_extend_movu_operand): Allow
24192         simple_mem_operand in addition to displacement_mem_operand.
24193         (zero_extend_operand): Don't allow zero_extend_movu_operand.
24194         (treg_set_expr, treg_set_expr_not_const01,
24195         arith_reg_or_treg_set_expr): New predicates.
24196         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
24197         arith_or_int_operand instead of logical_operand.  Convert to
24198         insn_and_split.  Try to optimize constant operand in splitter.
24199         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
24200         (*tstqi_t_zero): Delete.
24201         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
24202         (tstsi_t_and_not): Delete.
24203         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
24204         Convert to insn_and_split.
24205         (unnamed split, tstsi_t_zero_extract_xor,
24206         tstsi_t_zero_extract_subreg_xor_little,
24207         tstsi_t_zero_extract_subreg_xor_big): Delete.
24208         (*tstsi_t_shift_mask): New insn_and_split.
24209         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
24210         to recombine with surrounding insns when splitting.
24211         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
24212         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
24213         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
24214         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
24215         (*cbranch_div0s: Delete.
24216         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24217         Try to recombine with surrounding insns when splitting.  Add operand
24218         order variants.
24219         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
24220         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
24221         *addc_r_r_msb, *addc_2r_msb): Delete.
24222         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
24223         order variant.
24224         (*addc_negreg_t): New insn_and_split.
24225         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24226         Try to recombine with surrounding insns when splitting.
24227         Add operand order variants.
24228         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
24229         insn_and_split patterns.
24230         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
24231         surrounding insns when splitting.
24232         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
24233         (*rotcl): Likewise.  Add zero_extract variant.
24234         (*ashrsi2_31): New insn_and_split.
24235         (*negc): Convert to insn_and_split.  Use treg_set_expr.
24236         (*zero_extend<mode>si2_disp_mem): Update comment.
24237         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
24238         condition.
24239         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
24240         with surrounding insns when splitting.
24241         (any_treg_expr_to_reg): New insn_and_split.
24242         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
24243         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
24244         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
24245         *zero_extract_2): New single bit zero extract patterns.
24246         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
24247         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
24248         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
24249         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
24250         set destination.
24251         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
24252         register_operand for set source.
24254 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
24256         * i386.opt (prefetch_sse): New targetsave.
24257         * i386.c (ix86_function_specific_save): Save prefetch_sse.
24258         (ix86_function_specific_restore): Restore prefetch_sse and initialize
24259         ix86_cost/ix86_tune_cost.
24261 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24263         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
24264         Support the JIT by using 0 as the language type.
24266 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
24268         PR target/64317
24269         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
24270         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
24271         (mark_regno_live, process_bb_lives): Pass new parameter value to
24272         make_hard_regno_born.
24274 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24276         PR rtl-optimization/63637
24277         PR rtl-optimization/60663
24278         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
24279         if elt->cost is MAX_COST for ASM_OPERANDS.
24280         (find_sets_in_insn): Fix up comment typo.
24281         (cse_insn): Don't set src_volatile for all non-volatile
24282         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
24283         or with "memory" clobber.  Set elt->cost to MAX_COST
24284         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
24285         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
24287 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
24289         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
24290         alternative 1.
24292 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
24294         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
24295         libgcc/config/i386/elf-lib.h.
24297 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24299         PR driver/64737
24300         * gcc.c (print_configuration): Don't print a blank line at the end
24301         here...
24302         (run_attempt): ... but here unstead.
24304         PR middle-end/64734
24305         * omp-low.c (scan_sharing_clauses): Don't ignore
24306         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
24307         on target data/update constructs.
24309 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24311         PR target/50928
24312         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
24313         (DEBUG_RELOAD): Removed define.
24314         (m32c_limit_reload_class): Enable traces with if DEBUG0.
24315         (m32c_function_arg): Added a type cast.
24316         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
24317         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
24318         * config/m32c/bitops.md (andqi3_16): Likewise.
24319         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
24320         (push_a01_l): Likewise.
24322 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24324         PR jit/64721
24325         * main.c (main): Construct toplev instances with init_signals=true.
24326         * toplev.c (general_init): Add param "init_signals", and use it to
24327         conditionalize the calls to signal and host_hooks.extra_signals.
24328         (toplev::toplev): Add param "init_signals".
24329         (toplev::main): When invoking general_init, pass m_init_signals
24330         to control whether signal-handlers are installed.
24331         * toplev.h (toplev::toplev): Add param "init_signals".
24332         (toplev::m_init_signals): New field.
24334 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24336         PR jit/64722
24337         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
24338         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
24339         latter may be affected by the former (e.g. on i686).
24341 2015-01-23  Martin Liska  <mliska@suse.cz>
24343         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
24344         false positive during profiledbootstrap.
24346 2015-01-23  Tom de Vries  <tom@codesourcery.com>
24348         PR libgomp/64672
24349         * lto-opts.c (lto_write_options): Output non-explicit conservative
24350         -fno-openacc.
24351         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
24352         (append_compiler_options): Pass -fopenacc through.
24354 2015-01-23  Tom de Vries  <tom@codesourcery.com>
24356         PR libgomp/64707
24357         * lto-opts.c (lto_write_options): Output non-explicit conservative
24358         -fno-openmp.
24359         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
24360         (append_compiler_options): Pass -fopenmp through.
24362 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24364         PR debug/64511
24365         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
24366         GTY markup.
24368         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
24369         * diagnostic.def (DK_ICE_NOBT): New kind.
24370         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
24371         like DK_ICE, but never print backtrace.
24372         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
24373         (internal_error_no_backtrace): New function.
24374         * gcc.c (execute): Use internal_error_no_backtrace instead of
24375         internal_error.
24377 2015-01-22  Jeff Law  <law@redhat.com>
24379         PR target/52076
24380         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
24381         improve code density for small immediate to memory case.
24382         (insv): Better handle bitfield assignments when the field is
24383         being set to all ones.
24384         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
24385         operand predicate.
24387 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24388             Jakub Jelinek  <jakub@redhat.com>
24390         PR middle-end/64729
24391         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
24392         for !TARGET_LIBC_PROVIDES_SSP version and
24393         -fstack-protector-{all,strong,explicit} otherwise.
24394         * config/freebsd.h (LINK_SSP_SPEC): Handle
24395         -fstack-protector-{strong,explicit}.
24397 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
24398             H.J. Lu  <hongjiu.lu@intel.com>
24400         PR ipa/64694
24401         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
24402         heap.
24404 2015-01-22  Wei Mi  <wmi@google.com>
24406         PR rtl-optimization/64557
24407         * dse.c (record_store): Call get_addr for mem_addr.
24408         (check_mem_read_rtx): Likewise.
24410 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24412         * fold-const.c (const_binop): Add early return for non-tcc_binary.
24414 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
24416         * toplev.c (init_local_tick): Process the failure when read
24417         fails for random_seed.
24419         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
24420         'pretty_name' to avoid memory overflow.
24422 2015-01-22  Richard Biener  <rguenther@suse.de>
24424         PR middle-end/64728
24425         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
24426         abnormal coalescing on undefined SSA names.
24428 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
24430         PR target/64688
24431         PR target/64477
24432         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
24433         for alternative 3.
24434         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
24436 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
24438         PR middle-end/63325
24439         * fold-const.c (fold_checksum_tree): Don't include value of
24440         expr->decl_with_vis.symtab_node in the checksum.
24442 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24444         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
24446 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24448         PR driver/64690
24449         * gcc.c (insert_comments): New function.
24450         (try_generate_repro): Call it.
24451         (append_text): Removed.
24453 2015-01-22  Richard Biener  <rguenther@suse.de>
24455         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
24456         with IL incompatible options.  Properly honor user optimize
24457         attributes.
24459 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
24461         PR rtl-optimization/64682
24462         * combine.c (distribute_notes): When moving a death note for
24463         a register that is set in the new I2, make sure to put it
24464         before that new I2.
24466 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
24468         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
24469         not TARGET_DEFAULT.
24471 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
24473         PR debug/64511
24474         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
24475         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
24476         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
24478         PR sanitizer/64706
24479         * doc/invoke.texi (-fsanitize=vptr): Document.
24481         PR rtl-optimization/62078
24482         * dse.c: Include cfgcleanup.h.
24483         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
24484         anything call purge_all_dead_edges and cleanup_cfg at the end
24485         of the pass.
24487 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
24489         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
24490         edges.
24492 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24494         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
24495         decl attribute.
24497 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24498             Tejas Belagod <Tejas.Belagod@arm.com>
24500         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
24501         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
24502         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
24503         Removed.
24505 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24506             Tejas Belagod <Tejas.Belagod@arm.com>
24508         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
24509         (aarch64_reverse_mask): New decls.
24510         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
24511         (insn_count): New mode_attr.
24512         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
24513         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
24514         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
24515         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
24516         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
24517         (aarch64_simd_st4): New patterns.
24518         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
24519         (aarch64_reverse_mask): New functions.
24521 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
24523         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
24524         Declare.
24525         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
24526         addressing modes for BE.
24527         (aarch64_print_operand): Add 'R' specifier.
24528         (aarch64_simd_disambiguate_copy): Delete.
24529         (aarch64_simd_emit_reg_reg_move): New function.
24530         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
24531         in define_splits for structural moves.
24532         (mov<mode>): Use less restrictive predicates.
24533         (*aarch64_mov<mode>): Simplify and only allow for LE.
24534         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
24536 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
24538         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
24540 2015-01-21  Richard Henderson  <rth@redhat.com>
24542         PR target/64669
24543         * ccmp.c (used_in_cond_stmt_p): Remove.
24544         (expand_ccmp_expr): Don't use it.
24546 2015-01-21  Nick Clifton  <nickc@redhat.com>
24548         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
24549         PARALLELs.
24551 2015-01-21  Richard Biener  <rguenther@suse.de>
24553         PR middle-end/64313
24554         * tree-core.h (builtin_info, builtin_info_type): Turn from
24555         an object with two arrays into an array of an object with
24556         decl and two flags, implicit_p and declared_p.
24557         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24558         set_builtin_decl, set_builtin_decl_implicit_p,
24559         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
24560         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
24561         * builtins.c (builtin_info): Adjust.
24562         * gimplify.c (gimplify_addr_expr): References to builtins
24563         that have been declared by the user makes them eligible for
24564         use by the compiler.  Call set_builtin_decl_implicit_p on them.
24566 2015-01-20  Jeff Law  <law@redhat.com>
24568         PR target/59946
24569         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
24570         allow pc-relative addresses in operand predicates or constraints.
24572 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
24574         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
24575         neon on aarch32 processors for stringops.
24577 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24579         PR ipa/63576
24580         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
24582 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24584         PR lto/45375
24585         * ipa-inline.c: Include lto-streamer.h
24586         (report_inline_failed_reason): Output source file differences and
24587         flags on optimization/target node mismatch.
24588         (can_inline_edge_p): Consider caller to be the outer inline function;
24589         be less restrictive about matching opimize and optimize_size attributes.
24590         (inline_account_function_p): Break out from ...
24591         (inline_small_functions): ... here.
24592         * ipa-inline-transform.c (clone_inlined_nodes): Use
24593         inline_account_function_p.
24594         (inline_call): Use optimize attribution; use inline_account_function_p.
24595         (inline_transform): Use opt_for_fn.
24596         * ipa-inline.h (inline_account_function_p): Declare.
24598 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
24600         PR debug/64663
24601         * dwarf2out.c (decl_piece_node): Don't put bitsize into
24602         mode if bitsize <= 0.
24603         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
24604         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
24605         sizes and positions.
24607 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
24609         * config/nios2/nios2.c (nios2_asm_file_end): Implement
24610         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
24611         needed.
24612         (TARGET_ASM_FILE_END): Define.
24614 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24616         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
24617         (struct tune_params): Use the enum.
24618         * arm.c (arm_*_tune): Update.
24619         (arm_option_override): Update.
24621 2015-01-20  Richard Biener  <rguenther@suse.de>
24623         PR ipa/64684
24624         * ipa-reference.c (add_static_var): Inline ...
24625         (analyze_function): ... here after splitting out from ...
24626         (is_proper_for_analysis): ... this.
24628 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
24630         PR target/64149
24631         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
24632         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
24633         replace the conditional with it's true branch.
24634         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
24635         (arm_lra_p): Remove.
24637 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
24639         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
24641 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24643         * config/tilegx/mul-tables.c: Move symtab.h include after
24644         coretypes.h include.
24645         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
24646         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
24647         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
24648         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
24649         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24651 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
24653         PR bootstrap/64676
24654         Revert:
24655         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24657         PR rtl-optimization/64081
24658         * loop-iv.c (def_pred_latch_p): New function.
24659         (latch_dominating_def): Allow specific cases with non-single
24660         definitions.
24661         (iv_get_reaching_def): Likewise.
24662         (check_complex_exit_p): New function.
24663         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24664         with exits not executing on any iteration.
24666 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24668         PR lto/45375
24669         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
24670         to set branch cost.
24672 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24674         PR lto/45375
24675         * i386.c (gate): Check flag_expensive_optimizations and
24676         optimize_size.
24677         (ix86_option_override_internal): Drop optimize_size condition
24678         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
24679         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
24680         MASK_PREFER_AVX128.
24681         (ix86_avx256_split_vector_move_misalign,
24682         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
24683         * sse.md (all uses of TARGET_PREFER_AVX128): Add
24684         optimize_insn_for_speed_p check.
24686 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
24688         * config/mips/mips.h (FP_ASM_SPEC): New define.
24689         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
24690         instead.
24692 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
24694         PR target/53988
24695         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
24696         nullptr for insn when reaching the first insn.
24697         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
24698         (sh_insn_operands_modified_between_p): Add nullptr check.
24699         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
24700         sign extending mem load if the insn contains any UNSPEC or
24701         UNSPEC_VOLATILE.
24703 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24705         * params.def (inline-unit-growth): Drop to 15%.
24706         * invoke.texi (inline-unit-growth): Document change.
24708 2015-01-19  Martin Liska  <mliska@suse.cz>
24710         PR ipa/64668
24711         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
24712         function for second argument of OBJ_TYPE_REF.
24714 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24716         PR ipa/64218
24717         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
24718         whether function is an alias.
24720 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24722         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
24723         cases.
24725 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
24727         PR rtl-optimization/64671
24728         * lra-remat.c (operand_to_remat): Don't consider jump and call
24729         insns.
24731 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
24733         PR target/59828
24734         * config/rs6000/default64.h: Include rs6000-cpus.def.
24735         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
24736         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
24737         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
24738         and POWER8.
24739         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
24740         POWER8.
24741         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
24742         pseudo-op to specify assembler dialect.
24744 2015-01-19  Martin Liska  <mliska@suse.cz>
24746         PR ipa/64664
24747         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
24748         Handle safe potentially removed nodes during filtering.
24750 2015-01-19  Martin Liska  <mliska@suse.cz>
24752         * doc/extend.texi (no_icf): Add new attribute description.
24753         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
24754         where the pass attempts to merge a function with no_icf attribute.
24756 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24758         PR target/64532
24759         * doc/md.texi (ARM Options): Document register constraints.
24761 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
24762             Andrew Pinski  <apinski@cavium.com>
24764         PR target/64304
24765         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
24766         (ashl<mode>3): Don't expand if operands[2] is not constant.
24768 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24770         PR target/64448
24771         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
24772         Match xor-and-xor RTL pattern.
24774 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24776         PR rtl-optimization/64081
24777         * loop-iv.c (def_pred_latch_p): New function.
24778         (latch_dominating_def): Allow specific cases with non-single
24779         definitions.
24780         (iv_get_reaching_def): Likewise.
24781         (check_complex_exit_p): New function.
24782         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24783         with exits not executing on any iteration.
24785 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
24787         * common.opt (fgraphite): Fix a typo.
24789 2015-01-19  Felix Yang  <felix.yang@huawei.com>
24791         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
24792         pattern.
24793         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
24794         uminp, smax_nanp, smin_nanp): New builtins.
24795         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
24796         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
24797         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
24798         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
24799         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
24800         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
24801         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
24802         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
24803         vpminnms_f32): Rewrite using builtin functions.
24805 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
24807         PR libgomp/64625
24808         * omp-low.c (offload_symbol_decl): Remove variable.
24809         (get_offload_symbol_decl): Remove function.
24810         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
24811         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
24812         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
24813         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
24814         BUILT_IN_GOACC_UPDATE don't pass it at all.
24816 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24818         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
24819         callers.
24821 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24823         * ipa-chkp.c (chkp_produce_thunks): Add early param
24824         to split thunks production into two passes.  Keep
24825         'always_inline' function bodies after the first pass.
24826         (pass_data_ipa_chkp_early_produce_thunks): New.
24827         (pass_ipa_chkp_early_produce_thunks): New.
24828         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
24829         chkp_produce_thunks signature.
24830         (make_pass_ipa_chkp_early_produce_thunks): New.
24831         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
24832         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
24833         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
24835 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24837         * cgraph.c (cgraph_node::dump): Dump profile flags.
24839 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
24841         PR target/64652
24842         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
24843         reg appear first in the parallel.
24845 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24847         * ipa-reference.c (set_reference_optimization_summary,
24848         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
24849         disabled.
24850         (ignore_module_statics): New static var.
24851         (propagate_bits): If ipa-reference is disabled, do not look into local
24852         properties.
24853         (analyze_function): Disable analysis when ipa_reference is disabled.
24854         (generate_summary): Do not dump when reference is disabled;
24855         collect vars accessed from functions with ipa-reference disabled.
24856         (get_read_write_all_from_node): When ipa-reference is disabled, use the
24857         node flags.
24858         (gate): Enable for LTO.
24859         (ignore_edge_p): New function.
24860         (propagate): Skip functions w/o ipa-reference analysis.
24861         * optc-save-gen.awk: Handle optimize_debug correctly.
24862         * opth-gen.awk: Likewise.
24863         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
24864         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
24865         fira-share-save-slots, fira-share-spill-slots,
24866         fmodulo-sched-allow-regmoves, fpartial-inlining,
24867         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
24868         ftracer, ftree-parallelize-loops, fassociative-math,
24869         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
24870         Optimization
24871         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
24872         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
24873         Optimization.
24874         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
24875         Fix for IPA.
24877 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24879         PR ipa/64378
24880         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
24881         flag correctly.
24882         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
24884 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
24886         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
24887         Remove duplicate option listings.
24889 2015-01-18  Felix Yang  <felix.yang@huawei.com>
24891         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
24892         (autofdo_source_profile::get_callsite_total_count,
24893         function_instance::get_function_instance_by_decl,
24894         string_table::get_index, string_table::get_index_by_decl,
24895         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
24896         Fix comment typos. Reformatting and minor code rearrangement.
24898 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24900         * config/rs6000/rs6000.md (probe_stack): Delete.
24901         (probe_stack_address): New.
24903 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24905         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
24906         to test for 32-bit ABIs, not !TARGET_POWERPC64.
24908 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24910         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
24911         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
24912         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
24913         snafu.
24914         (rs6000_libcall_value): Use the new function.
24916 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
24918         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
24920 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24922         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
24923         implement a more precise life analysis for it during backward scan.
24925 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
24927         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
24929 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
24931         PR rtl-optimization/52773
24932         * calls.c (emit_library_call_value): When pushing arguments use
24933         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
24934         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
24935         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
24937 2015-01-17  Jeff Law  <law@redhat.com>
24939         PR rtl-optimization/32790
24940         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
24941         not ZERO_EXTEND in SET_DESTs.
24943 2015-01-17  Alan Modra  <amodra@gmail.com>
24945         * cprop.c (do_local_cprop): Revert last change.
24947 2015-01-16  DJ Delorie  <dj@redhat.com>
24948             Nick Clifton  <nickc@redhat.com>
24950         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
24951         (addhi3_real): Likewise.  Fix [HL+0] syntax.
24952         (subqi3_real): Likewise.
24953         (subhi3_real): Likewise.
24954         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
24955         (cbranchhi4_real): Likewise.
24956         (cbranchhi4_real_inverted): Likewise.
24957         (cbranchsi4_real_lt): Likewise.
24958         (cbranchsi4_real_ge): Likewise.
24959         (cbranchsi4_real_ge): Likewise.
24960         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
24961         (sub<mode>3_virt): Likewise.
24962         (cbranchqi4_virt): Likewise.
24963         (cbranchhi4_virt): Likewise.
24964         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
24965         always use '[reg+imm]' even when imm is zero.
24966         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
24967         (rl78_general_operand): New.
24968         (rl78_nonimmediate_operand): New.
24969         (rl78_nonfar_operand): Use them.
24970         (rl78_nonfar_nonimm_operand): Likewise.
24971         (rl78_stack_based_mem): Fix.
24972         * config/rl78/constraints.md (Ibqi): New.
24973         (IBqi): New.
24974         (Wsa): New.
24975         (Wsf): New.
24976         (Cs1): Fix.
24977         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
24978         (iorqi3): Likewise.
24979         (xorqi3): Likewise.
24980         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
24982         * config/rl78/constrains (Qs8): New constraint.
24983         * config/rl78/rl78.c (rl78_flags_already_set): New function.
24984         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
24985         * config/rl78/rl78-real.md (update_Z): New attribute.
24986         Update patterns to set it.
24987         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
24988         shorter compare and branch sequence can be used.
24989         (cbranchhi4_real): Likewise.
24990         (cbranchhi4_real_inverted): Likewise.
24992         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
24993         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
24994         address space.
24995         * config/rl78/rl78.c (rl78_get_name_encoding): New.
24996         (rl78_option_override): Allow -mes0 only if C.
24997         (characterize_address): Support subregs of symbol_refs.
24998         (rl78_addr_space_address_mode): Move.  Add __near.
24999         (rl78_far_p): Likewise.
25000         (rl78_addr_space_pointer_mode): Likewise.
25001         (rl78_as_legitimate_address): Likewise.
25002         (rl78_addr_space_subset_p): Likewise.
25003         (rl78_addr_space_convert): Likewise.
25004         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
25005         symbols with -mes0.
25006         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
25007         addressing.
25008         (rl78_alloc_physical_registers_op1): Change logic to prefer
25009         symbol[BC] addressing.
25010         (frodata_section): New.
25011         (rl78_asm_init_sections): Initialize it.
25012         (rl78_select_section): Put __far readonly symbols in .frodata.
25013         (rl78_make_type_far): New.
25014         (rl78_insert_attributes): Force all readonly symbols to be
25015         __far when -mes0.
25016         (rl78_asm_out_integer): New.
25017         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
25018         * config/rl78/rl78.opt (-mes0): New.
25020         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
25021         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
25022         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
25023         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
25024         (rl78_saddr_p): New.
25025         (rl78_output_aligned_common): New.
25026         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
25027         (rl78_handle_saddr_attribute): New.
25028         (rl78_handle_naked_attribute): New.
25029         (rl78_attribute_table): Add saddr.
25030         (rl78_print_operand_1): Don't print '!' on saddr operands.
25031         (rl78_print_operand_1): Strip encodings.
25032         (rl78_sfr_p): New.
25033         (rl78_strip_name_encoding): New.
25034         (rl78_attrlist_to_encoding): New.
25035         (rl78_encode_section_info): New.
25036         (rl78_asm_init_sections): New.
25037         (rl78_select_section): New.
25038         (rl78_output_labelref): New.
25039         (rl78_output_aligned_common): New.
25040         (rl78_asm_out_integer): New.
25041         (rl78_asm_ctor_dtor): New.
25042         (rl78_asm_constructor): New.
25043         (rl78_asm_destructor): New.
25045         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
25046         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
25047         (transcode_memory_rtx): Update.
25048         (rl78_expand_epilogue): Use A_REG instead of 0.
25050 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25052         * config/arm/arm-protos.h (struct tune_params): New field
25053         sched_autopref_queue_depth.
25054         * config/arm/arm.c (sched-int.h): Include header.
25055         (arm_first_cycle_multipass_dfa_lookahead_guard,)
25056         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
25057         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
25058         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
25059         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
25060         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
25061         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
25062         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
25063         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
25064         * config/arm/t-arm (arm.o): Update.
25065         * haifa-sched.c (update_insn_after_change): Update.
25066         (rank_for_schedule): Use auto-prefetcher model, if requested.
25067         (autopref_multipass_init): New static function.
25068         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
25069         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
25070         variable for debug dumps.
25071         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
25072         (autopref_multipass_dfa_lookahead_guard): New global function that
25073         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
25074         (init_h_i_d): Update.
25075         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
25076         * sched-int.h (enum autopref_multipass_data_status): New const enum.
25077         (autopref_multipass_data_): Structure for auto-prefetcher data.
25078         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
25079         (struct _haifa_insn_data:autopref_multipass_data): New field.
25080         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
25081         (autopref_multipass_dfa_lookahead_guard): Declare.
25083 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25085         * rtlanal.c (get_base_term): Handle SCRATCH.
25087 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25089         * config/aarch64/aarch64.c
25090         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
25091         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25092         * config/arm/arm.c
25093         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
25094         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25096 2015-01-17  Alan Modra  <amodra@gmail.com>
25098         * cprop.c (do_local_cprop): Disallow replacement of fixed
25099         hard registers.
25101 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25103         PR target/62066
25104         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
25105         early return 0.
25107 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25109         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
25110         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
25112 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25114         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
25115         * config/arm/thumb1.md: ... Here.
25117 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25119         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
25120         TImode for TARGET_32BIT.
25122 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25124         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
25125         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
25126         as ...
25127         (rs6000_abi_word_mode): New function.
25129 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25131         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
25132         instead of UNITS_PER_WORD to describe the size of stack slots.
25134 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25136         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
25137         as rs6000_promote_function_mode.  Move comment to there.
25138         (rs6000_promote_function_mode): New function.
25140 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25142         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
25143         -mpowerpc64 is active.
25145 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25147         PR middle-end/64353
25148         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
25149         virtuals on start.
25151 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25153         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
25154         introduced in revision 219724.
25156 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25157             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25159         PR target/64263
25160         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
25161         destination is not a GP reg.
25162         (*movdi_aarch64): Likewise.
25164 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
25166         PR target/64623
25167         * config/rs6000/default64.h: Revert ISA change.
25169 2015-01-16  Richard Biener  <rguenther@suse.de>
25171         PR middle-end/64614
25172         * tree-ssa-uninit.c: Include tree-cfg.h.
25173         (MAX_SWITCH_CASES): New define.
25174         (convert_control_dep_chain_into_preds): Handle switch statements.
25175         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
25176         (normalize_one_pred_1): Do not split bit-manipulations.
25177         Record (x & CST).
25179 2015-01-16  Richard Biener  <rguenther@suse.de>
25181         PR tree-optimization/64568
25182         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
25183         complex load rewriting for TARGET_MEM_REFs.
25185 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
25187         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
25189 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
25191         PR target/64149
25192         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
25193         variable.
25194         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
25195         (aarch64_lra_p): Remove.
25197 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25199         PR target/64363
25200         * ipa-chkp.h (chkp_instrumentable_p): New.
25201         * ipa-chkp.c: Include tree-inline.h.
25202         (chkp_instrumentable_p): New.
25203         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
25204         Fix processing of not instrumentable functions.
25205         (chkp_versioning): Use chkp_instrumentable_p. Warn about
25206         not instrumentable functions.
25207         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
25208         chkp_instrumentable_p.
25209         * tree-inline.h (copy_forbidden): New.
25210         * tree-inline.c (copy_forbidden): Not static anymore.
25212 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25214         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
25215         ptr1, ptr2 unused.
25217 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25219         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
25220         type OP_OUT to OP_INOUT.
25222 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25224         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
25225         (high x) y) to y if x and y have the same base.
25227 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25229         * config/arm/cortex-a57.md: New.
25230         * config/aarch64/aarch64.md: Include it.
25231         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
25232         * config/aarch64/aarch64-tune.md: Regenerate.
25234 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
25236         PR target/64015
25237         * ccmp.c (expand_ccmp_next): New function.
25238         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
25239         and compare insn sequence.
25240         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
25241         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
25242         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
25243         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
25244         (*ccmp_ior): Changed to ccmp_ior<mode>.
25245         (cmp<mode>): New pattern.
25246         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
25247         parameters.
25248         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
25250 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
25252         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
25253         _mm256_bsrli_epi128): New.
25254         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
25256 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
25258         * expmed.c (store_bit_field_using_insv): Improve warning message.
25259         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
25261 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
25263         PR rtl-optimization/64011
25264         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
25265         there is partial overflow.
25267 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25269         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
25270         prototype.
25271         (nds32_expand_epilogue_v3pop): Likewise.
25272         * config/nds32/nds32.md (sibcall): Define this for sibling call
25273         optimization.
25274         (sibcall_register): Likewise.
25275         (sibcall_immediate): Likewise.
25276         (sibcall_value): Likewise.
25277         (sibcall_value_register): Likewise.
25278         (sibcall_value_immediate): Likewise.
25279         (sibcall_epilogue): Likewise.
25280         (epilogue): Pass false to indicate this is not a sibcall epilogue.
25281         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
25282         (nds32_expand_epilogue_v3pop): Likewise.
25284 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25286         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
25287         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
25288         (return_internal): New.
25289         (return): Define this named pattern.
25290         (simple_return): Define this named pattern.
25291         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
25292         pattern instead of unspec_volatile_func_return.
25293         (nds32_expand_epilogue_v3pop): Likewise.
25294         (nds32_can_use_return_insn): New function.
25296 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25298         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
25299         * config/nds32/nds32.md (pop25return): New.
25300         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
25301         pop25return pattern.
25303 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25305         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
25306         -mforbid-fp-as-gp, and -mex9 options.
25308 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25310         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
25311         remove -mgp-direct option.
25313 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25315         * doc/invoke.texi (--param early-inlining-insns): Update default value.
25316         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
25318 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25320         * ipa-inline.c (inline_small_functions): Work around hints
25321         cache issue.
25323 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
25325         PR target/59710
25326         * doc/invoke.texi (Option Summary): Document new Nios II
25327         -mgpopt= syntax.
25328         (Nios II Options): Likewise.
25329         * config/nios2/nios2.opt: Add -mgpopt= option support.
25330         Modify existing -mgpopt and -mno-gpopt options to be aliases.
25331         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
25332         * config/nios2/nios2.c (nios2_option_override): Adjust
25333         -mgpopt defaulting.
25334         (nios2_in_small_data_p): Return true for explicit small data
25335         sections even with -G0.
25336         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
25337         option choices.
25339 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25341         PR ipa/64612
25342         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
25343         of comdat locals.
25344         (inline_call): Fix removal of aliases.
25346 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
25348         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
25349         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
25350         * opts.c (common_handle_option): Add -fsanitize=vptr.
25351         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
25352         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
25353         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
25354         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
25355         (ubsan_expand_vptr_ifn): New prototype.
25356         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
25357         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
25358         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
25359         expand_LOOP_VECTORIZED): Make argument nameless, remove
25360         ATTRIBUTE_UNUSED.
25361         (expand_UBSAN_VPTR): New function.
25362         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
25363         in fn spec.
25364         (UBSAN_VPTR): New internal function.
25365         * sanopt.c (tree_map_traits): Renamed to ...
25366         (sanopt_tree_map_traits): ... this.
25367         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
25368         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
25369         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
25370         (maybe_optimize_ubsan_vptr_ifn): New function.
25371         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
25372         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
25373         -fsanitize=vptr.
25374         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
25375         internal calls like pure functions for aliasing, even when they
25376         have other side-effects that prevent making them ECF_PURE.
25377         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
25378         (ubsan_expand_vptr_ifn): New function.
25380 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
25382         PR rtl-optimization/64110
25383         * stmt.c (parse_output_constraint): Process '^' and '$'.
25384         (parse_input_constraint): Ditto.
25385         * lra-constraints.c (process_alt_operands): Process the new
25386         constraints.
25387         * ira-costs.c (record_reg_classes): Process the new constraint
25388         '^'.
25389         * genoutput.c (indep_constraints): Add '^' and '$'.
25390         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
25391         * doc/md.texi: Add description of the new constraints.
25393 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
25394             Bernd Schmidt  <bernds@codesourcery.com>
25395             Cesar Philippidis  <cesar@codesourcery.com>
25396             James Norris  <jnorris@codesourcery.com>
25397             Tom de Vries  <tom@codesourcery.com>
25398             Ilmir Usmanov  <i.usmanov@samsung.com>
25399             Dmitry Bocharnikov  <dmitry.b@samsung.com>
25400             Evgeny Gavrin  <e.gavrin@samsung.com>
25401             Jakub Jelinek  <jakub@redhat.com>
25403         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
25404         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25405         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25406         New function types.
25407         * builtins.c: Include "gomp-constants.h".
25408         (expand_builtin_acc_on_device): New function.
25409         (expand_builtin, is_inexpensive_builtin): Handle
25410         BUILT_IN_ACC_ON_DEVICE.
25411         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
25412         New macros.
25413         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
25414         flag_openmp.
25415         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
25416         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
25417         i386/intelmic-offload.h.
25418         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
25419         to libgomp and its dependencies.
25420         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
25421         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25422         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25423         * config/ia64/hpux.h (LIB_SPEC): Likewise.
25424         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25425         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25426         * doc/generic.texi: Update for OpenACC changes.
25427         * doc/gimple.texi: Likewise.
25428         * doc/invoke.texi: Likewise.
25429         * doc/sourcebuild.texi: Likewise.
25430         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
25431         GF_OMP_FOR_KIND_OACC_LOOP.
25432         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
25433         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
25434         GF_OMP_TARGET_KIND_OACC_UPDATE,
25435         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25436         Dump more data.
25437         * gimple.c: Update comments for OpenACC changes.
25438         * gimple.def: Likewise.
25439         * gimple.h: Likewise.
25440         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
25441         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25442         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
25443         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25444         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
25445         appropriate place.
25446         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
25447         * gimplify.c: Include "gomp-constants.h".
25448         Update comments for OpenACC changes.
25449         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
25450         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
25451         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25452         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
25453         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25454         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25455         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
25456         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25457         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
25458         OMP_CLAUSE_SEQ.
25459         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
25460         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25461         OMP_CLAUSE_SET_MAP_KIND.
25462         (gimplify_oacc_cache): New function.
25463         (gimplify_omp_for): Handle OACC_LOOP.
25464         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
25465         OACC_DATA.
25466         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
25467         OACC_EXIT_DATA, OACC_UPDATE.
25468         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
25469         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
25470         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
25471         (gimplify_body): Consider flag_openacc next to flag_openmp.
25472         * lto-streamer-out.c: Include "gomp-constants.h".
25473         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
25474         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
25475         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
25476         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
25477         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
25478         (BUILT_IN_ACC_ON_DEVICE): New builtins.
25479         * omp-low.c: Include "gomp-constants.h".
25480         Update comments for OpenACC changes.
25481         (struct omp_context): Add reduction_map, gwv_below, gwv_this
25482         members.
25483         (extract_omp_for_data, use_pointer_for_field, install_var_field)
25484         (new_omp_context, delete_omp_context, scan_sharing_clauses)
25485         (create_omp_child_function, scan_omp_for, scan_omp_target)
25486         (check_omp_nesting_restrictions, lower_reduction_clauses)
25487         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
25488         Update for OpenACC changes.
25489         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
25490         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
25491         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
25492         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25493         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
25494         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
25495         OMP_CLAUSE_MAP_*.
25496         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25497         Handle GF_OMP_FOR_KIND_OACC_LOOP.
25498         (expand_omp_target, lower_omp_target): Handle
25499         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25500         GF_OMP_TARGET_KIND_OACC_UPDATE,
25501         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
25502         GF_OMP_TARGET_KIND_OACC_DATA.
25503         (pass_expand_omp::execute, execute_lower_omp)
25504         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
25505         flag_openmp.
25506         (offload_symbol_decl): New variable.
25507         (oacc_get_reduction_array_id, oacc_max_threads)
25508         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
25509         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
25510         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
25511         (oacc_gimple_assign, oacc_initialize_reduction_data)
25512         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
25513         functions.
25514         (is_targetreg_ctx): Remove function.
25515         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
25516         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
25517         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25518         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
25519         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
25520         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
25521         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
25522         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
25523         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
25524         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
25525         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
25526         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
25527         * tree-core.h: Update comments for OpenACC changes.
25528         (enum omp_clause_map_kind): Remove.
25529         (struct tree_omp_clause): Change type of map_kind member from enum
25530         omp_clause_map_kind to unsigned char.
25531         * tree-inline.c: Update comments for OpenACC changes.
25532         * tree-nested.c: Likewise.  Include "gomp-constants.h".
25533         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
25534         (convert_tramp_reference_stmt, convert_gimple_call): Update for
25535         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25536         OMP_CLAUSE_SET_MAP_KIND.
25537         * tree-pretty-print.c: Include "gomp-constants.h".
25538         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
25539         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
25540         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
25541         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
25542         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25543         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
25544         instead of OMP_CLAUSE_MAP_*.
25545         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
25546         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
25547         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25548         * tree-streamer-in.c: Include "gomp-constants.h".
25549         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
25550         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
25551         * tree-streamer-out.c: Include "gomp-constants.h".
25552         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
25553         OMP_CLAUSE_MAP_*.
25554         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
25555         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
25556         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
25557         * tree.c (omp_clause_num_ops): Update accordingly.
25558         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
25559         Likewise.
25560         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
25561         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
25562         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
25563         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
25564         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
25565         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
25566         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
25567         (OMP_CLAUSE_SET_MAP_KIND): New macro.
25568         * varpool.c (varpool_node::get_create): Consider flag_openacc next
25569         to flag_openmp.
25570         * config/i386/intelmic-offload.h: New file.
25571         * config/nvptx/offload.h: Likewise.
25573 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25575         * explow.h: Remove duplicate contents.
25576         * dojump.h: Likewise.
25578 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
25580         * arm.c (arm_xgene_tune): Add default initializer for instruction
25581         fusion.
25583 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25585         PR ipa/64068
25586         PR ipa/64559
25587         * ipa.c (symbol_table::remove_unreachable_nodes):
25588         Do not put abstract origins into boundary.
25590 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
25592         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
25593         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
25595 2015-01-15  Steve Ellcey  <sellcey@mips.com>
25597         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
25598         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
25599         builtins.def, and chkp-builtins.def.
25601 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
25603         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
25604         ISA 2.7 (POWER8).
25606 2015-01-15  Richard Biener  <rguenther@suse.de>
25608         PR tree-optimization/61743
25609         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
25610         information on PHIs for some simple cases.
25612 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25614         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
25615         Include xgene1.md.
25616         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
25617         * config/arm/arm-cores.def (xgene1): New entry.
25618         * config/arm/arm-tables.opt: Regenerate.
25619         * config/arm/arm-tune.md: Regenerate.
25620         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
25622 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25624         * tree-if-conv.c: Include hash-map.h.
25625         (aggressive_if_conv): New variable.
25626         (fold_build_cond_expr): Add simplification of non-zero condition.
25627         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
25628         destination block is not always executed.
25629         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
25630         than two predecessors if AGGRESSIVE_IF_CONV is true.
25631         (if_convertible_stmt_p): Fix commentary.
25632         (all_preds_critical_p): New function.
25633         (has_pred_critical_p): New function.
25634         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
25635         BB can have more than two predecessors and all incoming edges can be
25636         critical.
25637         (predicate_bbs): Skip predication for loop exit block, use build2_loc
25638         to compute predicate for true edge.
25639         (find_phi_replacement_condition): Delete this function.
25640         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
25641         Allow interchange PHI arguments if EXTENDED is false.
25642         Change check that block containing reduction statement candidate
25643         is predecessor of phi-block since phi may have more than two arguments.
25644         (phi_args_hash_traits): New helper structure.
25645         (struct phi_args_hash_traits): New type.
25646         (phi_args_hash_traits::hash): New function.
25647         (phi_args_hash_traits::equal_keys): New function.
25648         (gen_phi_arg_condition): New function.
25649         (predicate_scalar_phi): Add handling of phi nodes with more than two
25650         arguments, delete COND and TRUE_BB arguments, insert body of
25651         find_phi_replacement_condition to predicate ordinary phi nodes.
25652         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
25653         delete call of find_phi_replacement_condition and invoke
25654         predicate_scalar_phi with two arguments.
25655         (insert_gimplified_predicates): Add assert that non-predicated block
25656         don't have statements to insert.
25657         (ifcvt_split_critical_edges): New function.
25658         (ifcvt_split_def_stmt): Likewise.
25659         (ifcvt_walk_pattern_tree): Likewise.
25660         (stmt_is_root_of_bool_pattern): Likewise.
25661         (ifcvt_repair_bool_pattern): Likewise.
25662         (ifcvt_local_dce): Likewise.
25663         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
25664         is copy of inner or outer loop force_vectorize field, invoke
25665         ifcvt_split_critical_edges, ifcvt_local_dce and
25666         ifcvt_repair_bool_pattern for aggressive if-conversion.
25668 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
25670         * config/aarch64/aarch64.md: Include xgene1.md.
25671         * config/aarch64/xgene1.md: New file.
25673 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25675         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
25676         xgene1 (APM XGene-1) core definition.
25677         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
25678         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
25679         * doc/invoke.texi: Document -mcpu=xgene1.
25681 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25683         * dojump.h: New header file.
25684         * explow.h: Likewise.
25685         * expr.h: Remove includes.
25686         Move expmed.c prototypes to expmed.h.
25687         Move dojump.c prototypes to dojump.h.
25688         Move alias.c prototypes to alias.h.
25689         Move explow.c prototypes to explow.h.
25690         Move calls.c prototypes to calls.h.
25691         Move emit-rtl.c prototypes to emit-rtl.h.
25692         Move varasm.c prototypes to varasm.h.
25693         Move stmt.c prototypes to stmt.h.
25694         (saved_pending_stack_adjust): Move to dojump.h.
25695         (adjust_address): Move to explow.h.
25696         (adjust_address_nv): Move to emit-rtl.h.
25697         (adjust_bitfield_address): Likewise.
25698         (adjust_bitfield_address_size): Likewise.
25699         (adjust_bitfield_address_nv): Likewise.
25700         (adjust_automodify_address_nv): Likewise.
25701         * explow.c (expr_size): Move to expr.c.
25702         (int_expr_size): Likewise.
25703         (tree_expr_size): Likewise.
25704         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25705         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25706         * genemit.c (main): Generate includes statistics.h, real.h,
25707         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
25708         stmt.h.
25709         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
25710         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
25711         explow.h, emit-rtl.h, stmt.h.
25712         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
25713         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
25714         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
25715         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
25716         emit-rtl.h, varasm.h, stmt.h.
25717         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
25718         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
25719         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
25720         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
25721         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25722         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
25723         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
25724         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
25725         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
25726         tm.h tree.h varasm.h vec.h wide-int.h.
25727         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25728         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25729         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
25730         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
25731         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
25732         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
25733         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
25734         * loop-iv.c: Likewise.
25735         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
25736         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
25737         statistics.h stmt.h tree.h varasm.h wide-int.h.
25738         * lra-constraints.c: Likewise.
25739         * lra-eliminations.c: Likewise.
25740         * lra-lives.c: Likewise.
25741         * lra-remat.c: Likewise.
25742         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25743         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
25744         statistics.h stmt.h tree.h varasm.h wide-int.h.
25745         * hw-doloop.c: Likewise.
25746         * ira-color.c: Likewise.
25747         * ira-emit.c: Likewise.
25748         * loop-doloop.c: Likewise.
25749         * loop-invariant.c: Likewise.
25750         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25751         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
25752         statistics.h stmt.h tree.h varasm.h wide-int.h.
25753         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
25754         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
25755         statistics.h stmt.h tree.h varasm.h wide-int.h.
25756         * combine-stack-adj.c: Likewise.
25757         * cse.c: Likewise.
25758         * ddg.c: Likewise.
25759         * ifcvt.c: Likewise.
25760         * ira-costs.c: Likewise.
25761         * jump.c: Likewise.
25762         * lra-coalesce.c: Likewise.
25763         * lra-spills.c: Likewise.
25764         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25765         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
25766         stmt.h varasm.h wide-int.h.
25767         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25768         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25769         varasm.h.
25770         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
25771         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
25772         statistics.h stmt.h varasm.h wide-int.h.
25773         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
25774         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
25775         varasm.h wide-int.h.
25776         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
25777         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25778         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
25779         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
25780         statistics.h stmt.h.
25781         * config/tilepro/tilepro.c: Likewise.
25782         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
25783         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
25784         * config/pdp11/pdp11.c: Likewise.
25785         * config/xtensa/xtensa.c: Likewise.
25786         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
25787         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25788         varasm.h.
25789         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25790         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25791         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
25792         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25793         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25794         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
25795         * rtl-chkp.c: Likewise.
25796         * tree-chkp-opt.c: Likewise.
25797         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
25798         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25799         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
25800         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25801         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25802         statistics.h stmt.h.
25803         * tree-vect-data-refs.c: Likewise.
25804         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
25805         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25806         rtl.h statistics.h stmt.h varasm.h.
25807         * internal-fn.c: Likewise.
25808         * ipa-icf-gimple.c: Likewise.
25809         * lto-section-out.c: Likewise.
25810         * tree-data-ref.c: Likewise.
25811         * tree-nested.c: Likewise.
25812         * tree-outof-ssa.c: Likewise.
25813         * tree-predcom.c: Likewise.
25814         * tree-pretty-print.c: Likewise.
25815         * tree-scalar-evolution.c: Likewise.
25816         * tree-ssa-strlen.c: Likewise.
25817         * tree-vect-loop.c: Likewise.
25818         * tree-vect-patterns.c: Likewise.
25819         * tree-vect-slp.c: Likewise.
25820         * tree-vect-stmts.c: Likewise.
25821         * tsan.c: Likewise.
25822         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25823         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
25824         stmt.h.
25825         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
25826         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25827         statistics.h stmt.h varasm.h.
25828         * loop-unroll.c: Likewise.
25829         * ubsan.c: Likewise.
25830         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
25831         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
25832         stmt.h varasm.h.
25833         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25834         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
25835         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
25836         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25837         statistics.h stmt.h.
25838         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
25839         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25840         statistics.h stmt.h varasm.h.
25841         * gimple-match-head.c: Likewise.
25842         * lto-cgraph.c: Likewise.
25843         * lto-section-in.c: Likewise.
25844         * lto-streamer-in.c: Likewise.
25845         * lto-streamer-out.c: Likewise.
25846         * tree-affine.c: Likewise.
25847         * tree-cfg.c: Likewise.
25848         * tree-cfgcleanup.c: Likewise.
25849         * tree-if-conv.c: Likewise.
25850         * tree-into-ssa.c: Likewise.
25851         * tree-ssa-alias.c: Likewise.
25852         * tree-ssa-copyrename.c: Likewise.
25853         * tree-ssa-dse.c: Likewise.
25854         * tree-ssa-forwprop.c: Likewise.
25855         * tree-ssa-live.c: Likewise.
25856         * tree-ssa-math-opts.c: Likewise.
25857         * tree-ssa-pre.c: Likewise.
25858         * tree-ssa-sccvn.c: Likewise.
25859         * tree-tailcall.c: Likewise.
25860         * tree-vect-generic.c: Likewise.
25861         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25862         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
25863         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25864         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
25865         * varasm.c: Likewise.
25866         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25867         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
25868         varasm.h.
25869         * init-regs.c: Likewise.
25870         * ira.c: Likewise.
25871         * omp-low.c: Likewise.
25872         * stack-ptr-mod.c: Likewise.
25873         * tree-ssa-reassoc.c: Likewise.
25874         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25875         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
25876         varasm.h.
25877         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25878         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
25879         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25880         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
25881         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25882         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
25883         * tree-ssa-phiopt.c: Likewise.
25884         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25885         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25886         * config/fr30/fr30.c: Likewise.
25887         * config/frv/frv.c: Likewise.
25888         * expr.c: Likewise.
25889         * final.c: Likewise.
25890         * optabs.c: Likewise.
25891         * passes.c: Likewise.
25892         * simplify-rtx.c: Likewise.
25893         * stmt.c: Likewise.
25894         * toplev.c: Likewise.
25895         * var-tracking.c: Likewise.
25896         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25897         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25898         * lower-subreg.c: Likewise.
25899         * postreload-gcse.c: Likewise.
25900         * ree.c: Likewise.
25901         * reginfo.c: Likewise.
25902         * store-motion.c: Likewise.
25903         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25904         fixed-value.h hashtab.h real.h stmt.h varasm.h.
25905         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25906         fixed-value.h hashtab.h statistics.h stmt.h.
25907         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25908         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25909         * except.c: Likewise.
25910         * explow.c: Likewise.
25911         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25912         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
25913         varasm.h.
25914         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25915         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
25916         * tree-ssa-structalias.c: Likewise.
25917         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25918         fixed-value.h insn-config.h real.h statistics.h.
25919         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25920         fixed-value.h insn-config.h real.h statistics.h stmt.h.
25921         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25922         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25923         * cfgbuild.c: Likewise.
25924         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25925         fixed-value.h real.h rtl.h statistics.h stmt.h.
25926         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25927         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25928         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25929         fixed-value.h real.h statistics.h stmt.h.
25930         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25931         fixed-value.h real.h statistics.h stmt.h varasm.h.
25932         * cprop.c: Likewise.
25933         * modulo-sched.c: Likewise.
25934         * postreload.c: Likewise.
25935         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25936         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
25937         statistics.h stmt.h varasm.h.
25938         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
25939         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25940         rtl.h statistics.h stmt.h varasm.h.
25941         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
25942         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
25943         varasm.h.
25944         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25945         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
25946         varasm.h.
25947         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
25948         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
25949         varasm.h.
25950         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
25951         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25952         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25953         function.h real.h statistics.h stmt.h varasm.h.
25954         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25955         insn-config.h real.h statistics.h stmt.h.
25956         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25957         statistics.h stmt.h.
25958         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
25959         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
25960         statistics.h stmt.h varasm.h.
25961         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
25962         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
25963         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25964         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
25965         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
25966         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25967         statistics.h stmt.h varasm.h.
25968         * ipa-polymorphic-call.c: Likewise.
25969         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
25970         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25971         statistics.h stmt.h.
25972         * config/c6x/c6x.c: Likewise.
25973         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
25974         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25975         statistics.h stmt.h varasm.h.
25976         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
25977         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
25978         stmt.h varasm.h.
25979         * ipa-split.c: Likewise.
25980         * tree-eh.c: Likewise.
25981         * tree-ssa-dce.c: Likewise.
25982         * tree-ssa-loop-niter.c: Likewise.
25983         * tree-vrp.c: Likewise.
25984         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
25985         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
25986         stmt.h.
25987         * config/nds32/nds32-fp-as-gp.c: Likewise.
25988         * config/nds32/nds32-intrinsic.c: Likewise.
25989         * config/nds32/nds32-isr.c: Likewise.
25990         * config/nds32/nds32-md-auxiliary.c: Likewise.
25991         * config/nds32/nds32-memory-manipulation.c: Likewise.
25992         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25993         * config/nds32/nds32-predicates.c: Likewise.
25994         * config/nds32/nds32.c: Likewise.
25995         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
25996         fixed-value.h hashtab.h real.h statistics.h.
25997         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
25998         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25999         * config/arm/arm.c: Likewise.
26000         * config/avr/avr.c: Likewise.
26001         * config/bfin/bfin.c: Likewise.
26002         * config/h8300/h8300.c: Likewise.
26003         * config/i386/i386.c: Likewise.
26004         * config/ia64/ia64.c: Likewise.
26005         * config/iq2000/iq2000.c: Likewise.
26006         * config/m32c/m32c.c: Likewise.
26007         * config/m32r/m32r.c: Likewise.
26008         * config/m68k/m68k.c: Likewise.
26009         * config/mcore/mcore.c: Likewise.
26010         * config/mep/mep.c: Likewise.
26011         * config/mips/mips.c: Likewise.
26012         * config/mn10300/mn10300.c: Likewise.
26013         * config/moxie/moxie.c: Likewise.
26014         * config/pa/pa.c: Likewise.
26015         * config/rl78/rl78.c: Likewise.
26016         * config/rx/rx.c: Likewise.
26017         * config/s390/s390.c: Likewise.
26018         * config/sh/sh.c: Likewise.
26019         * config/sparc/sparc.c: Likewise.
26020         * config/spu/spu.c: Likewise.
26021         * config/stormy16/stormy16.c: Likewise.
26022         * config/v850/v850.c: Likewise.
26023         * config/vax/vax.c: Likewise.
26024         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
26025         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
26026         * config/msp430/msp430.c: Likewise.
26027         * predict.c: Likewise.
26028         * value-prof.c: Likewise.
26029         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
26030         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
26031         * config/microblaze/microblaze.c: Likewise.
26032         * config/nios2/nios2.c: Likewise.
26033         * config/rs6000/rs6000.c: Likewise.
26034         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26035         insn-config.h real.h rtl.h statistics.h stmt.h.
26036         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26037         insn-config.h real.h statistics.h stmt.h.
26038         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
26039         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
26040         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
26041         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
26042         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
26043         fixed-value.h real.h statistics.h stmt.h.
26044         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
26045         fixed-value.h statistics.h stmt.h.
26046         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
26047         stmt.h.
26049 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
26051         * gengtype.c (create_user_defined_type): Workaround
26052         -Wmaybe-uninitialized false positives.
26053         * cse.c (fold_rtx): Likewise.
26054         * loop-invariant.c (gain_for_invariant): Likewise.
26056 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26058         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
26059         set the memory attributes in all cases but clear MEM_EXPR if need be.
26061 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
26063         PR tree-optimization/64434
26064         * cfgexpand.c (reorder_operands): New function.
26065         (expand_gimple_basic_block): Insert call of reorder_operands if
26066         optimized is true.
26068 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
26070         * config/mips/micromips.md (*swp): Remove explicit parallel.
26071         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
26072         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
26073         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
26074         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
26075         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
26076         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
26077         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
26078         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
26079         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
26080         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
26081         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
26082         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
26083         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
26084         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
26085         (mips_wrdsp): Likewise.
26086         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
26087         parallel.
26088         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
26089         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
26090         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
26091         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
26092         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
26093         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
26094         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
26095         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
26096         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
26098 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26100         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
26101         (mips_print_operand): Support 'y' to print exact log2 in decimal
26102         of a const_int.
26103         * config/mips/mips.h (ISA_HAS_LSA): New define.
26104         (ISA_HAS_DLSA): Likewise.
26105         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
26106         * config/mips/predicates.md (const_immlsa_operand): New predicate.
26108 2015-01-15  Martin Liska  <mliska@suse.cz>
26110         PR target/64377
26111         * optc-save-gen.awk: Add support for array types.
26113 2015-01-15  Richard Biener  <rguenther@suse.de>
26115         PR middle-end/64365
26116         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
26117         for MEM_REF access functions with the same base can never partially
26118         overlap.
26120 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
26122         * common.opt: New option -fstack-protector-explicit.
26123         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
26124         (stack_protect_decl_phase): Handle stack_protect attribute for
26125         explicit stack protection requests.
26126         (expand_used_vars): Similarly.
26127         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
26128         * doc/extend.texi: Add documentation for "stack_protect" attribute.
26129         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
26131 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
26133         PR target/53988
26134         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
26135         reg-reg copies.
26136         (sh_extending_set_of_reg): New struct.
26137         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
26138         sh_remove_reg_dead_or_unused_notes): New Declarations.
26139         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
26140         sh_find_extending_set_of_reg, sh_split_tst_subregs,
26141         sh_extending_set_of_reg::use_as_extended_reg): New functions.
26142         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
26143         convert to insn_and_split and use new function sh_split_tst_subregs.
26145 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
26147         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
26148         option.
26149         (Optimization Options): Move -fuse-ld documentation to...
26150         (Link Options): ...here.
26152 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26154         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
26155         offsets.
26156         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
26157         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
26158         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
26159         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
26160         instead of ZR for the memory operand of LL/SC.
26161         (compare_and_swap_12, sync_add<mode>): Likewise.
26162         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
26163         (sync_new_<optab>_12, sync_nand_12): Likewise.
26164         (sync_old_nand_12, sync_new_nand_12): Likewise.
26165         (sync_sub<mode>, sync_old_add<mode>): Likewise.
26166         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
26167         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
26168         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
26169         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
26170         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
26171         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
26172         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
26173         * doc/md.texi (ZC): Update description.
26175 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26177         * builtins.c (expand_builtin_atomic_exchange): Remove error when
26178         memory model is CONSUME.
26179         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
26180         expand_builtin_atomic_store): Change invalid memory model errors to
26181         warnings.
26182         (expand_builtin_atomic_clear): Change invalid model errors to warnings
26183         and issue warning for CONSUME.
26185 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
26187         * lto-cgraph: Update function comments for
26188         lto_symtab_encoder_encode_*.
26190 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26192         * Makefile.in (site.exp): Do not set ENABLE_LTO.
26194 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26196         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
26197         * lto-cgraph.c (select_what_to_stream): Remove argument, use
26198         lto_stream_offload_p instead.
26199         * lto-streamer.h (select_what_to_stream): Remove argument.
26200         * passes.c (ipa_write_summaries): Likewise.
26201         * tree-pass.h (ipa_write_summaries): Likewise.
26203 2015-01-14  Richard Biener  <rguenther@suse.de>
26205         PR tree-optimization/59354
26206         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
26207         groups larger than the slp group size as having gaps.
26209 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26211         PR middle-end/59448
26212         * builtins.c (get_memmodel): Promote consume to acquire always.
26214 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26216         PR target/64386
26217         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
26218         V32HImode.
26220 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26222         PR target/64393
26223         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
26224         Enable AVX512BW.
26225         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
26226         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
26227         AVX512VBMI, as it implies AVX512BW.
26229 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26231         PR target/64387
26232         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
26233         (vec_unpacks_hi_v16sf): Ditto.
26235 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26237         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
26238         is not available.
26240 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26242         * doc/invoke.texi (mapcs): Mention deprecation.
26243         (mapcs-frame): Likewise.
26245 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26247         PR target/64453
26248         * config/arm/arm.c (callee_saved_reg_p): Define.
26249         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
26250         register is callee saved instead of !call_used_regs[reg].
26251         (thumb1_compute_save_reg_mask): Likewise.
26253 2015-01-14  Hale Wang  <hale.wang@arm.com>
26255         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
26256         Cortex-M7.
26258 2015-01-14  Richard Biener  <rguenther@suse.de>
26260         PR lto/64415
26261         * tree-inline.c (insert_debug_decl_map): Check destination
26262         function MAY_HAVE_DEBUG_STMTS.
26263         (insert_init_debug_bind): Likewise.
26264         (insert_init_stmt): Remove redundant check.
26265         (remap_gimple_stmt): Drop debug stmts if the destination
26266         function has var-tracking assignments disabled.
26268 2015-01-14  Martin Liska  <mliska@suse.cz>
26270         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
26271         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
26273 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26275         PR target/64460
26276         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
26277         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
26279 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26281         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
26282         level from an ARCH; do not inject the default.
26283         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
26284         MIPS_ISA_LEVEL_SPEC.
26285         (MIPS_ISA_NAN2008_SPEC): Update comment.
26286         (BASE_DRIVER_SELF_SPECS): Likewise.
26287         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
26288         MIPS_DEFAULT_ISA_LEVEL_SPEC.
26289         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
26290         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
26291         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
26293 2015-01-14  Richard Biener  <rguenther@suse.de>
26295         PR tree-optimization/64493
26296         PR tree-optimization/64495
26297         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
26298         assign the proper vectorized PHI to the inner loop exit PHIs.
26300 2015-01-14  Joey Ye  <joey.ye@arm.com>
26302         * config/arm/arm.c (arm_compute_save_reg_mask):
26303         Do not save lr in case of tail call.
26304         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
26306 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
26308         * tree-vrp.c (check_array_ref): Emit more warnings
26309         for warn_array_bounds >= 2.
26310         * common.opt: New option -Warray-bounds=.
26311         * doc/invoke.texi: Document -Warray-bounds=.
26313 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
26315         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
26316         (mforbid-fp-as-gp): Remove.
26317         (mex9): Remove.
26318         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
26319         (nds32_symbol_load_store_p): Remove.
26320         (nds32_fp_as_gp_check_available): Clean up implementation.
26321         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
26322         cases.
26323         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
26324         fp-as-gp and ex9 cases.
26326 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26328         * tree-profile.c (init_ic_make_global_vars): Drop workaround
26329         for bintuils bug 14342.
26330         (init_ic_make_global_vars): Likewise.
26331         (gimple_init_edge_profiler): Likewise.
26332         (gimple_gen_ic_func_profiler): Likewise.
26334 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26336         * ipa-inline.c (inline_small_functions): Swap the operands in
26337         enum.
26339 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26341         PR ipa/64481
26342         * ipa-inline-analysis.c (node_growth_cache): Remove.
26343         (initialize_growth_caches): Do not initialize it.
26344         (free_growth_caches): Do not free it.
26345         (do_estimate_growth): Rename to ...
26346         (estimate_growth): ... this one; drop growth cache code.
26347         (growth_likely_positive): Always go the heuristics way.
26348         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
26349         (reset_edge_caches): Do not reset node growth.
26350         (heap_edge_removal_hook): Do not maintain cache.
26351         (inline_small_functions): Likewise; strenghten sanity check.
26352         (ipa_inline): Do not maintain caches.
26353         * ipa-inline.h (node_growth_cache): Remove.
26354         (do_estimate_growth): Remove to ...
26355         (estimate_growth): this one; remove inline version.
26356         (reset_node_growth_cache): Remove.
26358 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26360         PR ipa/64565
26361         * ipa-inline.c (inline_small_functions): Update callee keys after
26362         resolving speculation
26363         (inline_small_functions): Always check monotonicity of the queue.
26365 2015-01-13  Marek Polacek  <polacek@redhat.com>
26367         PR middle-end/64391
26368         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
26370 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
26372         PR rtl-optimization/64286
26373         * ree.c (combine_reaching_defs): Move part of comment earlier,
26374         remove !SCALAR_INT_MODE_P check.
26375         (add_removable_extension): Don't add vector mode
26376         extensions if all uses of the source register aren't the same
26377         vector extensions.
26379 2015-01-13  Renlin Li  <renlin.li@arm.com>
26381         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
26382         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
26384 2015-01-13  Martin Liska  <mliska@suse.cz>
26386         * ipa-icf.c (sem_function::equals_private): Call new functions
26387         cl_target_option_print_diff and cl_optimization_print_diff.
26388         * optc-save-gen.awk (cl_target_option_print_diff): New function.
26389         (cl_optimization_print_diff): Likewise.
26390         * opth-gen.awk: Likewise.
26392 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
26394         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
26395         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
26396         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
26397         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
26398         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
26399         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
26401 2015-01-13  Andrew Pinski  <apinski@cavium.com>
26403         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
26404         instead of src mode.
26406 2015-01-13  Richard Biener  <rguenther@suse.de>
26408         PR lto/64373
26409         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
26410         DECL_CONTEXT.
26412 2015-01-13  Andrew Pinski  <apinski@cavium.com>
26414         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
26415         volatile mems.
26416         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
26418 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
26420         PR middle-end/63974
26421         * cfgexpand.c (expand_computed_goto): Don't call
26422         convert_memory_address here.
26424 2015-01-13  Richard Biener  <rguenther@suse.de>
26426         PR tree-optimization/64406
26427         * tree-loop-distibution.c (pass_loop_distribution::execute):
26428         Reset the SCEV hashtable if we distributed anything.
26430 2015-01-13  Richard Biener  <rguenther@suse.de>
26432         PR tree-optimization/64404
26433         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
26434         SLP types for CSEd loads.
26436 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26438         PR tree-optimization/64436
26439         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
26440         merge of two symbolic numbers for a bitwise OR to ...
26441         (perform_symbolic_merge): This. Also fix computation of the range and
26442         end of the symbolic number corresponding to the result of a bitwise OR.
26444 2015-01-13  Richard Biener  <rguenther@suse.de>
26446         PR tree-optimization/64568
26447         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
26448         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
26450 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26452         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
26453         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
26455 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26457         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
26458         target-specific symbol_ref flag.
26459         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
26460         resides in rodata section.
26461         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
26462         (nds32_encode_section_info): New function.
26464 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26466         * config/nds32/nds32.md (call): Use pseudo instruction bal which
26467         clobbers TA_REGNUM if large code model is specified.
26468         (call_register): Likewise.
26469         (call_immediate): Likewise.
26470         (call_value): Likewise.
26471         (call_value_register): Likewise.
26472         (call_value_immediate): Likewise.
26474 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26476         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
26477         (TARGET_CMODEL_MEDIUM): New macro.
26478         (TARGET_CMODEL_LARGE): New macro.
26479         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
26480         code model setting in assembly code.
26482 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26484         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26485         Remove MASK_GP_DIRECT flag.
26486         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
26487         one of the multilib default options.
26488         * config/nds32/nds32.opt (mgp-direct): Remove.
26489         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
26490         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
26492 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26494         * config/nds32/nds32.opt (mcmodel): Add new option.
26495         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
26496         to describe code model.
26498 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
26500         PR target/64479
26501         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
26503 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
26505         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
26506         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26507         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
26508         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
26509         __builtin_sh_set_fpscr.
26511 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26513         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
26514         after a funtion name just to indicate it is a function.
26515         ([-fsanitize-undefined-trap-on-error]): Likewise.
26516         ([-fdbg-cnt=]): Likewise.
26517         ([-mmemcpy]): Likewise.
26518         ([-mflush-func]): Likewise.
26519         ([-msynci]): Likewise.
26521 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26523         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
26524         example.
26526 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
26528         PR tree-optimization/64563
26529         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
26530         instead of != VR_VARYING.
26532         PR target/64513
26533         * config/i386/i386.c (ix86_expand_prologue): Add
26534         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
26536         PR tree-optimization/64454
26537         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
26538         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
26539         for signed or [0, op1 - 1] for unsigned modulo.
26540         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
26541         even if op1 does not satisfy integer_pow2p.
26543         PR other/64370
26544         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
26546 2015-01-12  Jeff Law  <law@redhat.com>
26548         PR target/64461
26549         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
26550         (trunchiqi2, truncsihi2): Similarly.
26552         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
26553         rather than calling F.
26555 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26557         * tsan.c (instrument_expr): Use force_gimple_operand.
26558         Use may_be_nonaddressable_p instead of is_gimple_addressable.
26560 2015-01-12  Richard Biener  <rguenther@suse.de>
26562         PR tree-optimization/64530
26563         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
26564         back dr1.
26566 2015-01-12  Richard Biener  <rguenther@suse.de>
26568         PR middle-end/64357
26569         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
26570         latches properly.
26572 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26574         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
26575         Cortex-A17 tuning parameters.
26576         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
26578 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26580         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
26581         * config/arm/arm.c (arm_macro_fusion_p): New function.
26582         (arm_macro_fusion_pair_p): Likewise.
26583         (TARGET_SCHED_MACRO_FUSION_P): Define.
26584         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
26585         (ARM_FUSE_NOTHING): Likewise.
26586         (ARM_FUSE_MOVW_MOVT): Likewise.
26587         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
26588         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
26589         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
26590         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
26591         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
26592         arm_cortex_a5_tune): Specify fuseable_ops value.
26594 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
26596         PR bootstrap/64561
26597         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
26598         test for PIE with copy reloc.
26599         * configure: Regenerated.
26601 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26603         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
26604         in gen_rtx_REG.
26605         (arm_tls_descseq_addr): Likewise.
26606         (arm_gen_movmemqi): Likewise.
26607         (arm_expand_epilogue_apcs_frame): Likewise.
26608         (arm_expand_epilogue): Likewise.
26609         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
26610         in gen_rtx_REG.
26612 2015-01-12  Martin Liska  <mliska@suse.cz>
26614         PR ipa/64550
26615         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
26616         volatility for correct operands.
26618 2015-01-12  Martin Liska  <mliska@suse.cz>
26620         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
26621         indication that a function is not leaf.
26622         (sem_function::compare_polymorphic_p): Likewise.
26624 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26626         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
26627         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
26628         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
26629         fold-const.h, tree-check.h.
26631 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26633         PR ipa/63967
26634         PR ipa/64425
26635         * ipa-inline.c (compute_uninlined_call_time,
26636         compute_inlined_call_time): Use counts for extra precision when
26637         needed possible.
26638         (big_speedup_p): Fix formating.
26639         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
26640         (relative_time_benefit): Remove.
26641         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
26642         merge guessed and read profile paths.
26643         (inline_small_functions): Count only !optimize_size functions into
26644         initial size; be more lax about sanity check when profile is used;
26645         be sure to update inlined function profile when profile is read.
26647 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26649         PR ipa/63470
26650         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
26651         cost when edge becomes direct.
26652         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
26653         is resolved or when introducing new speculation.
26655 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
26657         PR ipa/64551
26658         PR ipa/64552
26659         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
26660         '||' to fix typo issue.
26662         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
26663         accept and return NULL.
26665 2015-01-12  Martin Liska  <mliska@suse.cz>
26667         * cgraph.c (cgraph_edge::remove_callee): Move function to header
26668         file for being inlined.
26669         (cgraph_set_edge_callee): Delete.
26670         (cgraph_edge::redirect_callee): Move function to header file
26671         for being inlined.
26672         (cgraph_edge::make_direct): Use new function.
26673         (cgraph_edge::dump_edge_flags): New function created from
26674         static dump_edge_flags function.
26675         (cgraph_node::dump): Use new function.
26676         (cgraph_edge::verify_count_and_frequency): New function created
26677         from verify_edge_count_and_frequency.
26678         (cgraph_edge::verify_corresponds_to_fndecl): New function created
26679         from verify_edge_corresponds_to_fndecl.
26680         (verify_edge_corresponds_to_fndecl): Delete.
26681         (cgraph_node::verify_node): Use new function.
26682         * cgraph.h (cgraph_edge::set_callee): New function.
26683         (cgraph_edge::dump_edge_flags): Likewise.
26684         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
26686 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
26688         * ipa-utils.c (estimate_function_body_sizes): Do not
26689         free node params when called late with early=true.
26691 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
26693         * doc/md.texi (Instruction Patterns): Rewrite text for
26694         clarity.
26695         (Example): Likewise.
26697 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
26699         * doc/invoke.texi (Option Summary): Break long lines.
26700         [(-fdiagnostics-color)]: Put long literal in @smallexample
26701         instead of inline.
26702         [(-fsanitize-recover)]: Likewise.
26703         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
26704         [(-ffast-math)]: Likewise.
26705         [(--param max-inline-insns-recursive)]: Likewise.
26706         [(--param max-inline-recursive-depth)]: Likewise.
26707         [(-mno-text-section-literals)]: Likewise.
26709 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
26711         * doc/install.texi: Update for libgomp being renamed from "GNU
26712         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
26713         Runtime Library".
26714         * doc/sourcebuild.texi: Likewise.
26716 2015-01-10  Anthony Green  <green@moxielogic.com>
26718         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
26719         mul.x availability for moxiebox configuration.
26721 2015-01-09  Anthony Green  <green@moxielogic.com>
26723         * config/moxie/moxie.md: Tabify assembly output.
26725 2015-01-09  Anthony Green  <green@moxielogic.com>
26727         * config/moxie/moxie.md (CC_REG): Correct register definition.
26729 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
26731         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
26732         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
26733         of log files.
26735 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26737         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
26739 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
26740             Jakub Jelinek  <jakub@redhat.com>
26742         PR middle-end/64412
26743         * lto-streamer.h (lto_stream_offload_p): New declaration.
26744         * lto-streamer.c (lto_stream_offload_p): New variable.
26745         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
26746         at the same time as section_name_prefix.
26747         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
26748         if lto_stream_offload_p.
26749         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
26750         stream TREE_TARGET_OPTION if lto_stream_offload_p.
26751         (write_ts_function_decl_tree_pointers): Don't
26752         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
26753         * tree-streamer-in.c (unpack_value_fields): Don't stream
26754         TREE_TARGET_OPTION in if ACCEL_COMPILER.
26755         (lto_input_ts_function_decl_tree_pointers): Don't stream
26756         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
26757         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
26758         instead of section_name_prefix string comparisons.
26760 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
26762         PR rtl-optimization/64536
26763         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
26764         tablejumps.
26766 2015-01-09  Michael Collison  <michael.collison@linaro.org>
26768         PR tree-optimization/64322
26769         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
26770         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
26772 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26774         PR rtl-optimization/64539
26775         * regcprop.c (kill_clobbered_values): Factor out of ...
26776         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
26777         instead of note_stores with kill_clobbered_value.
26779 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26781          * ginclude/unwind-arm-common.h: Revert previous commit.
26783 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26785         * config.gcc (arm*-*-freebsd*): New configuration.
26786         * config/arm/freebsd.h: New file.
26787         * config.host: Add extra components for arm*-*-freebsd*.
26788         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
26789         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
26791 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26793         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
26794         for -mcpu=e6500.
26795         * config/rs6000/t-rtems: Add e6500 multilibs.
26797 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26799         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
26800         MPC8540.
26802 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26804         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
26805         MULTILIB_EXCEPTIONS.
26807 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26809         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
26810         MULTILIB_EXCEPTIONS.
26812 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26814         * config/arm/t-rtems-eabi: Rename to...
26815         * config/arm/t-rtems: ...this.
26816         * config/arm/rtems-eabi.h: Rename to...
26817         * config/arm/rtems.h: ...this.
26818         * config.gcc (arm*-*-rtems*): Reflect changes above.
26820 2015-01-09  Richard Biener  <rguenther@suse.de>
26822         PR tree-optimization/64410
26823         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
26824         on the LHS.
26825         (execute_update_addresses_taken): Deal with that.
26826         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
26827         loads/stores for complex variables.
26829 2015-01-09  Martin Liska  <mliska@suse.cz>
26831         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
26832         name comparison.
26833         (func_checker::compare_memory_operand): New function.
26834         (func_checker::compare_operand): Split case to newly
26835         added functions.
26836         (func_checker::compare_cst_or_decl): New function.
26837         (func_checker::compare_gimple_call): Identify
26838         memory operands.
26839         (func_checker::compare_gimple_assign): Likewise.
26840         * ipa-icf-gimple.h: New function.
26842 2015-01-09  Martin Liska  <mliska@suse.cz>
26844         PR ipa/64503
26845         * sreal.c (sreal::dump): Change unsigned format to signed for
26846         m_exp value.
26847         (sreal::to_double): Replace exp2 with scalbln.
26849 2015-01-09  Martin Liska  <mliska@suse.cz>
26851         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
26852         * ipa-icf.c (sem_function::equals_private): Add support for target and
26853         (sem_item_optimizer::merge_classes): Remove redundant function
26854         optimization flags comparison.
26855         * tree.h (target_opts_for_fn): New function.
26857 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26859         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
26861 2015-01-09  Kito Cheng  <kito@0xlab.org>
26863         PR rtl-optimization/64348
26864         * lra-constraints.c (split_reg): Fix caller-save store/restore
26865         instruction generation.
26867 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
26869         PR gcov-profile/61790
26870         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
26871         long long.  Fallback to int64_t if host doesn't have long long and
26872         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
26874 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26876         PR tree-optimization/63989
26877         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
26878         from 1000 to 10000.
26879         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
26880         (get_stridx): If we don't have a record for certain SSA_NAME,
26881         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
26882         constant offset, call get_stridx_plus_constant.
26883         (get_stridx_plus_constant): New function.
26884         (zero_length_string): Don't use get_stridx here.
26886         PR target/55023
26887         PR middle-end/64388
26888         * dse.c (struct insn_info): Mention frame_read set also
26889         before reload for tail calls on some targets.
26890         (scan_insn): Revert 2014-12-22 change.  Set frame_read
26891         also before reload for tail calls if
26892         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
26893         instead of add_non_frame_wild_read for non-const/memset
26894         tail calls after reload.
26896 2015-01-08  Jason Merrill  <jason@redhat.com>
26898         * ubsan.c (do_ubsan_in_current_function): New.
26899         (pass_ubsan::gate): Use it.
26900         * ubsan.h: Declare it.
26901         * convert.c (convert_to_integer): Use it.
26903 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26905         PR target/64338
26906         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
26907         compare_code when it is unconditionally overwritten afterwards.
26908         Use ix86_reverse_condition instead of reverse_condition.  Don't
26909         change code if *reverse_condition* returned UNKNOWN and don't
26910         swap ct/cf and negate diff in that case.
26912 2015-01-08  Mike Stump  <mikestump@comcast.net>
26914         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
26915         (pass_tsan_O0::gate): Likewise.
26916         * extend.texi (Function Attributes): Add no_sanitize_thread
26917         documentation.
26919 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
26921         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
26922         for registering builtins.
26923         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
26924         add -fopenmp to the argv_obstack used when invoking
26925         compile_for_target.
26927         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
26928         add "-m32" or "-m64" to argv_obstack.
26929         (generate_host_descr_file): Likewise, when invoking host_compiler.
26930         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
26931         ld.
26933 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26935         * config/sh/sh-mem.cc: Use constant as second operand when emitting
26936         tstsi_t insns.
26938 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26940         PR target/55212
26941         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
26942         constant load if constant operand fits into I08.
26944 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26946         PR sanitizer/64336
26947         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
26948         and TREE_THIS_VOLATILE for MEM_REFs.
26949         (build5_stat): Fix up initialization of TREE_READONLY and
26950         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
26952 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
26954         PR target/64533
26955         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
26956         of r for the second alternative of the destination operand.
26958 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
26960         PR target/36557
26961         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
26963 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26965         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
26966         keywords.
26967         ([-fivar-visibility], [-fvisibility]): Likewise.
26969 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26971         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
26972         the file where @code, @command, etc is more appropriate.
26974 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
26976         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
26977         of -mrecip= documentation.
26979 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26981         PR target/64505
26982         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
26983         correct reload handler if -m32 -mpowerpc64 is used.
26985 2015-01-06  Tom de Vries  <tom@codesourcery.com>
26987         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
26989 2015-01-08  Christian Bruel  <christian.bruel@st.com>
26991         PR target/64507
26992         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
26994 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26996         PR tree-optimization/63259
26997         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
26998         if optab exists for 16bit byteswap.
27000 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
27002         * opts.c (common_handle_option): Add support for
27003         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
27004         * doc/invoke.texi: Document -fno-sanitize=all,
27005         -f{,no-}sanitize-recover=all.  Document that
27006         -fsanitize=float-cast-overflow is not enabled
27007         by -fsanitize=undefined.  Fix up documentation
27008         of -f{,no-}sanitize-recover.
27010 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
27012         * config.gcc: Add Visium support.
27013         * configure.ac: Likewise.
27014         * configure: Regenerate.
27015         * doc/extend.texi (interrupt attribute): Add Visium.
27016         * doc/invoke.texi: Document Visium options.
27017         * doc/install.texi: Document Visium target.
27018         * doc/md.texi: Document Visium constraints.
27019         * common/config/visium: New directory.
27020         * config/visium: Likewise.
27022 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
27024         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
27025         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
27027 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
27029         * combine.c (combine_validate_cost): Do not count the cost of a
27030         split I2 twice.  Do not display it twice in the dump, either.
27032 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
27034         Revert parts of r219199.
27035         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
27036         <inttypes.h>.
27037         ([-Wtraditional]): Restore markup on <limits.h>.
27039 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
27041         PR c++/31397
27042         * doc/invoke.texi: Document -Wsuggest-override.
27044 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
27046         PR rtl-optimization/64287
27047         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
27048         (process_options): Disable flag_ipa_ra if profiling.
27050 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
27052         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
27054 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
27056         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
27057         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
27058         put under #if TARGET_LOOPS guard.
27060 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
27062         * config/i386/i386.c (output_387_binary_op): Use std::swap.
27064 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
27066         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
27067         * rtl.h (refers_to_regno_p): Add overload.
27068         * cse.c: Use it.
27069         * bt-load.c: Likewise.
27070         * combine.c: Likewise.
27071         * df-scan.c: Likewise.
27072         * sched-deps.c: Likewise.
27073         * config/s390/s390.c: Likewise.
27074         * config/m32r/m32r.c: Likewise.
27075         * config/rs6000/spe.md: Likewise.
27076         * config/rs6000/rs6000.c: Likewise.
27077         * config/pa/pa.c: Likewise.
27078         * config/stormy16/stormy16.c: Likewise.
27079         * config/cris/cris.c: Likewise.
27080         * config/arc/arc.md: Likewise.
27081         * config/arc/arc.c: Likewise.
27082         * config/sh/sh.md: Likewise.
27083         * config/sh/sh.c: Likewise.
27084         * config/frv/frv.c: Likewise.
27086 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27088         PR sanitizer/64265
27089         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
27090         call as cleanup of the whole body.
27091         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
27092         * tsan.c (replace_func_exit): New function.
27093         (instrument_func_exit): Moved earlier.
27094         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
27095         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
27096         been found.
27097         (tsan_pass): Don't call instrument_func_exit.
27098         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
27099         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
27100         inlining.
27102         PR sanitizer/64344
27103         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
27104         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
27105         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
27106         if the result is integer_zerop, return NULL_TREE.
27107         * convert.c (convert_to_integer): Pass expr as ARG.
27109         PR tree-optimization/64465
27110         * tree-inline.c (redirect_all_calls): During inlining
27111         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
27112         changed the stmt to a non-throwing call.
27114 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
27116         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
27117         etc markup throughout the file.
27119 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27121         Enable experimental TSAN support for Ada.
27122         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
27124 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27126         PR tree-optimization/64494
27127         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
27128         clear SSA_NAME_ANTI_RANGE_P flag.
27130 2015-01-05  Marek Polacek  <polacek@redhat.com>
27132         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
27134 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27136         Update copyright years.
27138         * gcc.c (process_command): Update copyright notice dates.
27139         * gcov-dump.c: Ditto.
27140         * gcov.c: Ditto.
27141         * doc/cpp.texi: Bump @copying's copyright year.
27142         * doc/cppinternals.texi: Ditto.
27143         * doc/gcc.texi: Ditto.
27144         * doc/gccint.texi: Ditto.
27145         * doc/gcov.texi: Ditto.
27146         * doc/install.texi: Ditto.
27147         * doc/invoke.texi: Ditto.
27149         * auto-profile.c, auto-profile.h: Fix up Copyright line.
27151 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
27153         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
27154         verb tense, etc.
27155         ([-fvtable-verify], [-fvtv-debug]): Likewise.
27156         ([-Wabi]): Likewise.
27157         ([-fmessage-length]): Likewise.
27158         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
27159         ([-Wno-discarded-qualifiers]): Likewise.
27160         ([-Wnodiscarded-array-qualifiers]): Likewise.
27161         ([-Wno-virtual-move-assign]): Likewise.
27162         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
27163         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
27164         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
27165         ([-fsanitize-undefined-trap-on-error]): Likewise.
27166         ([-floop-interchange]): Likewise.
27167         ([-ftree-coalesce-inlined-vars]): Likewise.
27168         ([-fvect-cost-model]): Likewise.
27169         ([-flto]): Likewise.
27170         ([--param]): Likewise.
27171         (Spec Files): Likewise.
27172         ([-mstrict-align]): Likewise.
27173         ([-mfix-cortex-a53-835769]): Likewise.
27174         ([-march], [-mtune]): Likewise.
27175         ([-mpic-register]): Likewise.
27176         ([-munaligned-access]): Likewise.
27177         ([-msp8]): Likewise.
27178         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
27179         (AVR Built-in Macros): Likewise.
27180         ([-mpreferred-stack-boundary]): Likewise.
27181         ([-mtune-crtl]): Likewise.
27182         ([-mashf]): Likewise.
27183         ([-mmcu=]): Likewise.
27184         ([-minrt]): Likewise.
27185         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
27186         ([-mupper-regs]): Likewise.
27187         ([-matomic-model]): Likewise.
27188         ([-mdiv]): Likewise.
27189         ([-mzdcbranch]): Likewise.
27190         ([-mdisable-callt]): Likewise.
27191         ([-msoft-float]): Likewise.
27192         ([-m8byte-align]): Likewise.
27193         ([-fstack-reuse]): Likewise.
27195 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27197         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
27198         Fix markup, light copy-editing.
27199         ([-fauto-profile]): Rewrite to fix formatting and content
27200         problems.
27202 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27204         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
27205         Copy-edit description.
27206         ([-fisolate-erroneous-paths-attribute]): Likewise.
27207         * common.opt (fisolate-erroneous-paths-dereference):
27208         Copy-edit description.
27209         (fisolate-erroneous-paths-attribute): Likewise.
27211 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27213         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
27214         tidy grammar.
27216 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27218         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
27219         ([-fvtv-debug]): Likewise.
27220         ([-Wc++-compat]): Likewise.
27221         ([-Wc++11-compat]): Likewise.
27222         ([-Wc++14-compat]): Likewise.
27223         ([-Wno-sized-deallocation]): Likewise.
27224         ([-femit-class-debug-always]): Likewise.
27225         ([-femit-struct-debug-detailed]): Likewise.
27226         ([-fno-keep-inline-dllexport]): Likewise.
27227         ([-fira-algorithm]): Likewise.
27228         ([-fira-region]): Likewise.
27229         ([-flra-remat]): Likewise.
27230         ([-fipa-ra]): Likewise.
27231         ([-fhoist-adjacent-loads]): Likewise.
27232         ([-fisolate-erroneous-paths-dereference]): Likewise.
27233         ([-fisolate-erroneous-paths-attribute]): Likewise.
27234         ([-ftree-switch-conversion]): Likewise.
27235         ([-ftree-tail-merge]): Likewise.
27236         ([-ftree-loop-if-convert]): Likewise.
27237         ([-ftree-loop-if-convert-stores]): Likewise.
27238         ([-ftree-loop-distribution]): Likewise.
27239         ([-ftree-loop-distribute-patterns]): Likewise.
27240         ([-flto-compression-level]): Likewise.
27241         ([-flto-report]): Likewise.
27242         ([-flto-report-wpa]): Likewise.
27243         ([-fuse-linker-plugin]): Likewise.
27244         ([-mfix-cortex-a53-835769]): Likewise.
27245         ([-mno-fix-cortex-a53-835769]): Likewise.
27246         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
27247         explicit listing; add a note to the discussion indicating they
27248         exist.  Reorder table to group similar options.  Add missing
27249         @opindex entries.  Add @need commands throughout the table to
27250         allow it to be split across multiple pages.
27251         ([-m8bit-idiv]): Fix @opindex.
27252         ([-mavx256-split-unaligned-load]): Likewise.
27253         ([-mavx256-split-unaligned-store]): Likewise.
27254         ([-mstack-protector-guard]): Likewise.
27255         ([-mcpu=]): Likewise.
27256         ([-mcpu]): Likewise.
27257         ([-mpointer-size=]): Likewise.
27259 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
27261         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
27262         instead of `m' constraint.  Likewise for unnamed movb comparison
27263         patterns using reg_before_reload_operand predicate.
27264         * config/pa/predicates.md (reg_before_reload_operand): Tighten
27265         predicate to reject register index and LO_SUM DLT memory forms
27266         after reload.
27268 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
27270         * doc/invoke.texi (Option Summary): Fix spelling of
27271         -fdevirtualize-at-ltrans.
27272         ([-fdevirtualize]): Fix markup.
27273         ([-fdevirtualize-speculatively]): Fix typo.
27274         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
27275         implementor-speaky.
27276         * common.opt (fdevirtualize-at-ltrans): Likewise.
27277         * ipa-devirt.c: Fix typos in comments throughout the file.
27278         (ipa_devirt): Fix typos in format strings for dump output.
27280 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
27282         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
27283         discussion of defaults, light copy-editing.
27285 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27287         * tsan.c (instrument_expr): corrected previous checkin.
27289 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27291         Instrument bit field and unaligned accesses for TSAN.
27292         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
27293         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
27294         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
27295         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
27296         unaligned memory regions.
27298 2015-01-01  Anthony Green  <green@moxielogic.com>
27300         * config/moxie/predicates.md (moxie_general_movsrc_operand):
27301         Restrict move source register offsets to 16 bits.
27303 Copyright (C) 2015 Free Software Foundation, Inc.
27305 Copying and distribution of this file, with or without modification,
27306 are permitted in any medium without royalty provided the copyright
27307 notice and this notice are preserved.