2015-09-03 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob3a04aaf9506cc3b83042429f329ea086af4ef50b
1 2015-09-03  Richard Biener  <rguenther@suse.de>
3         * dwarf2out.c (flush_limbo_die_list): Split out from ...
4         (dwarf2out_early_finish): ... here.
5         (dwarf2out_finish): Do not call dwarf2out_early_finish but
6         flush_limbo_die_list.  Assert we have no deferred asm names.
8 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10         * optabs.c (expand_binop): Don't create a broadcast vector with a
11         source element wider than the inner mode.
13 2015-09-03  Richard Biener  <rguenther@suse.de>
15         * varasm.c (output_constant): Use fold_convert instead of
16         wide_int_to_tree.
18 2015-09-03  Tom de Vries  <tom@codesourcery.com>
20         PR tree-optimization/65637
21         * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
22         predecessors.
24 2015-09-03  Tom de Vries  <tom@codesourcery.com>
26         PR tree-optimization/65637
27         * omp-low.c (find_phi_with_arg_on_edge): New function.
28         (expand_omp_for_static_chunk): Fix inner loop phi.
30 2015-09-03  Tom de Vries  <tom@codesourcery.com>
32         PR tree-optimization/65637
33         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
34         that head is NULL.
36 2015-09-03  Tom de Vries  <tom@codesourcery.com>
38         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
40 2015-09-03  Tom de Vries  <tom@codesourcery.com>
42         * doc/invoke.texi (parloops-chunk-size): Add item.
43         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
44         * tree-parloops.c: Include params.h.
45         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
46         param parloops-chunk-size is used.
48 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
50         PR middle-end/67351
51         * fold-const.c (fold_binary_loc) : Move 
52         Transform (x >> c) << c into x & (-1<<c) or
53         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
54         types using simplify and match.
55         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
56         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
58 2015-09-03  Richard Biener  <rguenther@suse.de>
60         PR ipa/66705
61         * tree-ssa-structalias.c (ctor_for_analysis): New function.
62         (create_variable_info_for_1): Use ctor_for_analysis instead
63         of get_constructor.
64         (create_variable_info_for): Likewise.
66 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
68         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
69         in new callgraph edge.
71 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
73         PR target/59810
74         PR target/63652
75         PR target/63653
76         * config/aarch64/aarch64-simd.md
77         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
78         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
79         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
80         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
82 2015-09-02  Alan Modra  <amodra@gmail.com>
84         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
85         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
86         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
88 2015-09-02  Alan Modra  <amodra@gmail.com>
90         PR target/67417
91         * config/rs6000/predicates.md (current_file_function_operand): Don't
92         return true for weak symbols.
93         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
95 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
96             Andrew Bennett  <andrew.bennett@imgtec.com>
98         * config/mips/mips-opts.h (mips_cb_setting): New enum.
99         * config/mips/mips-protos.h: Add definitions for
100         mips_output_jump and mips_output_equal_conditional_branch
101         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
102         JIC instruction.
103         (mips_emit_compare): Add support for the MIPS R6 conditional
104         compact branches.
105         (mips_process_sync_loop): Likewise.
106         (mips_output_order_conditional_branch): Likewise.
107         (mips16_build_call_stub): Change MIPS_CALL to
108         mips_output_jump.
109         (mips_print_operand_punctuation): Update 's' case to only
110         apply to micromips r2.
111         (mips_adjust_insn_length): Add support for forbidden slot
112         hazards.
113         (mips_avoid_hazard): Likewise.
114         (mips_reorg_process_insns): Likewise.
115         (mips_output_jump): New function.
116         (mips_output_equal_conditional_branch): Likewise.
117         (mips_output_conditional_branch): Use jrc/bc if compact
118         branch support is enabled.  Ensure the forbidden slots
119         between the two branch instructions is filled with a nop.
120         (mips_option_override): Add support to process the compact
121         branch option and set the correct defaults.  Prevent
122         non-explict relocs being using for MIPS R6.
123         (mips_trampoline_init): Add compact branch support.
124         (mips_mult_zero_zero_cost): Allow zero initialisation of
125         accumulators with TARGET_DSP.
126         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
127         (TARGET_CB_MAYBE): New define.
128         (TARGET_CB_ALWAYS): New define.
129         (ISA_HAS_DELAY_SLOTS): New define.
130         (ISA_HAS_COMPACT_BRANCHES): New define.
131         (ISA_HAS_JRC): New define.
132         (MIPS_BRANCH_C): New define.
133         (MIPS_CALL): Removed.
134         (MICROMIPS_J): Removed.
135         * config/mips/mips.md (compact_form): New attr.
136         (hazard): Add support for forbidden slots.
137         (define_delay): Add support for compact branches.
138         (*branch_order<mode>): Likewise.
139         (*branch_order<mode>_inverted): Likewise.
140         (*branch_equality<mode>): Likewise.
141         (*branch_equality<mode>_inverted): Likewise.
142         (*jump_absolute): Likewise.
143         (*jump_pic): Likewise.
144         (indirect_jump): Use mips_output_jump to produce assembly output.
145         (tablejump_<mode>"): Likewise.
146         (*<optab>"): Likewise.
147         (<optab>_internal): Likewise.
148         (sibcall_internal): Likewise.
149         (sibcall_value_internal): Likewise.
150         (sibcall_value_multiple_internal): Likewise.
151         (call_internal): Likewise.
152         (call_split): Likewise.
153         (call_internal_direct): Likewise.
154         (call_direct_split): Likewise.
155         (call_value_internal): Likewise.
156         (call_value_split): Likewise.
157         (call_value_internal_direct): Likewise.
158         (call_value_direct_split): Likewise.
159         (call_value_multiple_internal): Likewise.
160         (call_value_multiple_split): Likewise.
161         (mips_get_fcsr_mips16_<mode>): Likewise.
162         (mips_set_fcsr_mips16_<mode>): Likewise.
163         (tls_get_tp_mips16_<mode>): Likewise.
164         * config/mips/mips.opt: Add -mcompact-branches option.
165         * config/mips/predicates.md (order_operator): Ensure the
166         conditional compact branches are only used if the ISA them.
167         * doc/invoke.texi: Document -mcompact-branches option.
169 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
171         PR target/61578
172         * lra-lives.c (process_bb_lives): Process move pseudos with the
173         same value for copies and preferences
174         * lra-constraints.c (match_reload): Create match reload pseudo
175         with the same value from single dying input pseudo.
177 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
179         PR target/67405
180         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
182 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
184         * trans-mem.c: Add contributed-by.
185         * trans-mem.h: Same.
187 2015-09-01  Richard Biener  <rguenther@suse.de>
189         * expr.c (expand_expr_real_1): For expanding TERed defs
190         set the current location to that of the def if not UNKNOWN.
192 2015-09-01  David Sherwood  <david.sherwood@arm.com>
194         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
196 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
198         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
199         then_cost, else_cost fields.  Change branch_cost field to unsigned
200         int.
201         (end_ifcvt_sequence): Call set_used_flags on each insn in the
202         sequence.
203         Include rtl-iter.h.
204         (noce_simple_bbs): New function.
205         (noce_try_move): Bail if basic blocks are not simple.
206         (noce_try_store_flag): Likewise.
207         (noce_try_store_flag_constants): Likewise.
208         (noce_try_addcc): Likewise.
209         (noce_try_store_flag_mask): Likewise.
210         (noce_try_cmove): Likewise.
211         (noce_try_minmax): Likewise.
212         (noce_try_abs): Likewise.
213         (noce_try_sign_mask): Likewise.
214         (noce_try_bitop): Likewise.
215         (bbs_ok_for_cmove_arith): New function.
216         (noce_emit_all_but_last): Likewise.
217         (noce_emit_insn): Likewise.
218         (noce_emit_bb): Likewise.
219         (noce_try_cmove_arith): Handle non-simple basic blocks.
220         (insn_valid_noce_process_p): New function.
221         (contains_mem_rtx_p): Likewise.
222         (bb_valid_for_noce_process_p): Likewise.
223         (noce_process_if_block): Allow non-simple basic blocks
224         where appropriate.
226 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
228         * tree-ssa-dom.c (record_equivalences_from_phis,
229         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
230         (lookup_avail_expr): Likewise, and remove comment and unused temp.
232 2015-09-01  Nick Clifton  <nickc@redhat.com>
234         * config/msp430/msp430.opt (mcpu): Fix typo.
236 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
238         * config/aarch64/aarch64.c (aarch64_set_current_function):
239         Re-layout any vector parameters have non-simd layout.
240         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
241         Delete.
242         (aarch64_simd_expand_args): Delete call to the above.
244 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
246         * doc/invoke.texi (asan-stack): Add space before option.
248 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
250         * tree.h (zerop): New function.
251         * tree.c (zerop): Likewise.
252         (element_precision): Handle expressions.
253         * match.pd (define_predicates): Add zerop.
254         (x <= +Inf): Fix comment.
255         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
256         * fold-const.c (fold_binary_loc): ... here. Remove.
258 2015-08-31  Richard Biener  <rguenther@suse.de>
260         PR middle-end/67381
261         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
263 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
265         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
266         (CEXPI): New operator list.
267         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
268         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
269         Converted from ...
270         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
272 2015-08-31  Tom de Vries  <tom@codesourcery.com>
274         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
275         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
276         parameter.
277         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
278         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
279         (rewrite_into_loop_closed_ssa): ... here.
280         (replace_uses_in_dominated_bbs): Remove function.
281         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
282         rewrite_into_loop_closed_ssa_1.
284 2015-08-31  Michael Matz  <matz@suse.de>
286         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
287         enter entry and exit blocks for reverse post order.
289 2015-08-31  Richard Biener  <rguenther@suse.de>
291         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
292         (lto_location_cache::current_sysp): Likewise.
293         (output_block::current_sysp): Likewise.
294         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
295         (lto_location_cache::apply_location_cache): Properly record
296         system header locations.
297         (lto_location_cache::input_location): Input whether a file
298         is a system header.
299         * lto-streamer-out.c (lto_output_location): Stream whether a file
300         is a system header.
302 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
304         PR bootstrap/67363
305         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
307 2015-08-31  Tom de Vries  <tom@codesourcery.com>
309         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
310         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
311         Improve function header comments.
313 2015-08-30  Michael Collison  <michael.collison@linaro.org>
315         PR other/67320
316         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
317         standard names
319 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
321         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
322         special_handling bitfield.
323         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
324         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
325         that represents a general xxpermdi.
326         (insn_is_swappable_p): Add handling for vec_concat of two
327         doublewords, which maps to a specific xxpermdi.
328         (adjust_xxpermdi): New function.
329         (adjust_concat): Likewise.
330         (handle_special_swappables): Call adjust_xxpermdi and
331         adjust_concat.
332         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
334 2015-08-30  Rich Felker <dalias@libc.org>
336         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
337         case instead of sh[123456ble]-*-*.
339 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
341         * ira.c (print_unform_and_important_classes,
342         print_translated_classes): Remove reg_class_names static array.
343         (print_unform_and_important_classes): Rename to ...
344         (print_uniform_and_important_classes): ... this.
345         (ira_debug_allocno_classes): Update accordingly.
347 2015-08-29  Tom de Vries  <tom@codesourcery.com>
349         PR tree-optimization/46193
350         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
351         clause.
353 2015-08-28  Jeff Law  <law@redhat.com>
355         PR lto/66752
356         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
357         unable to find X NE 0 in the tables, return X as the simplified
358         condition.
359         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
360         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
361         to VISISTED_BBS.
362         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
363         after removing the control flow statement and unnecessary edges.
365 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
367         Revert:
368         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
369                 PR tree-optimization/67283
370                 * tree-sra.c (type_consists_of_records_p): Rename to...
371                 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
373                 (completely_scalarize_record): Rename to...
374                 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
375                  code to:
376                 (scalarize_elem): New.
378 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
380         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
381         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
382         (aarch64_symbol_type): Likewise.
383         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
384         Likewise.
385         (aarch64_expand_mov_immediate): Likewise.
386         (aarch64_print_operand): Likewise.
387         (aarch64_classify_tls_symbol): Likewise.
389 2015-08-28  Richard Biener  <rguenther@suse.de>
391         * cgraphunit.c (symbol_table::compile): Move early debug generation
392         and finish...
393         (symbol_table::finalize_compilation_unit): ... back here and
394         add a !seen_error () guard.
396 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
398         * toplev.c (process_options): Do not use flag_loop_block,
399         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
400         flag_loop_optimize_isl.
402 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
404         * Makefile.in (OBJS): Remove graphite-blocking.o and
405         graphite-interchange.o.
406         * common.opt (floop-strip-mine, floop-interchange, floop-block):
407         Alias of floop-nest-optimize.
408         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
409         Document as alias of -floop-nest-optimize.
410         * graphite-blocking.c: Remove.
411         * graphite-interchange.c: Remove.
412         * graphite-optimize-isl.c: Include dumpfile.h.
413         (getScheduleForBand): Add dump for tiled loops.  Use
414         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
415         * graphite-poly.c (scop_max_loop_depth): Remove.
416         (print_scattering_function_1): Remove.
417         (print_scattering_function): Remove.
418         (print_scattering_functions): Remove.
419         (debug_scattering_function): Remove.
420         (debug_scattering_functions): Remove.
421         (apply_poly_transforms): Remove use of flag_loop_block,
422         flag_loop_strip_mine, and flag_loop_interchange.
423         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
424         PBB_ORIGINAL.
425         (print_pdr_access_layout): Remove.
426         (print_pdr): Print ISL representation.
427         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
428         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
429         (free_scop): Same.
430         (openscop_print_pbb_domain): Remove.
431         (print_pbb): Remove call to print_scattering_function.
432         (openscop_print_scop_context): Remove.
433         (print_scop_context): Do not print matrices anymore.
434         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
435         SCOP_TRANSFORMED_SCHEDULE.
436         (print_isl_set): Add printing of a new line.
437         (print_isl_map): Same.
438         (print_isl_aff): Same.
439         (print_isl_constraint): Same.
440         (loop_to_lst): Remove.
441         (scop_to_lst): Remove.
442         (lst_indent_to): Remove.
443         (print_lst): Remove.
444         (debug_lst): Remove.
445         (dot_lst_1): Remove.
446         (dot_lst): Remove.
447         (reverse_loop_at_level): Remove.
448         (reverse_loop_for_pbbs): Remove.
449         * graphite-poly.h (pdr_dim_iter_domain): Remove.
450         (pdr_nb_params): Remove.
451         (pdr_alias_set_dim): Remove.
452         (pdr_subscript_dim): Remove.
453         (pdr_iterator_dim): Remove.
454         (pdr_parameter_dim): Remove.
455         (same_pdr_p): Remove.
456         (struct poly_scattering): Remove.
457         (struct poly_bb): Remove _original, _transformed, _saved.
458         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
459         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
460         (PBB_NB_LOCAL_VARIABLES): Remove.
461         (PBB_NB_SCATTERING_TRANSFORM): Remove.
462         (schedule_to_scattering): Remove.
463         (number_of_write_pdrs): Remove.
464         (pbb_dim_iter_domain): Remove.
465         (pbb_nb_params): Remove.
466         (pbb_nb_scattering_orig): Remove.
467         (pbb_nb_scattering_transform): Remove.
468         (pbb_nb_dynamic_scattering_transform): Remove.
469         (pbb_nb_local_vars): Remove.
470         (pbb_iterator_dim): Remove.
471         (pbb_parameter_dim): Remove.
472         (psco_scattering_dim): Remove.
473         (psct_scattering_dim): Remove.
474         (psct_local_var_dim): Remove.
475         (psco_iterator_dim): Remove.
476         (psct_iterator_dim): Remove.
477         (psco_parameter_dim): Remove.
478         (psct_parameter_dim): Remove.
479         (psct_dynamic_dim): Remove.
480         (psct_static_dim): Remove.
481         (psct_add_local_variable): Remove.
482         (new_lst_loop): Remove.
483         (new_lst_stmt): Remove.
484         (free_lst): Remove.
485         (copy_lst): Remove.
486         (lst_add_loop_under_loop): Remove.
487         (lst_depth): Remove.
488         (lst_dewey_number): Remove.
489         (lst_dewey_number_at_depth): Remove.
490         (lst_pred): Remove.
491         (lst_succ): Remove.
492         (lst_find_pbb): Remove.
493         (find_lst_loop): Remove.
494         (lst_find_first_pbb): Remove.
495         (lst_empty_p): Remove.
496         (lst_find_last_pbb): Remove.
497         (lst_contains_p): Remove.
498         (lst_contains_pbb): Remove.
499         (lst_create_nest): Remove.
500         (lst_remove_from_sequence): Remove.
501         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
502         (lst_niter_for_loop): Remove.
503         (pbb_update_scattering): Remove.
504         (lst_update_scattering_under): Remove.
505         (lst_update_scattering): Remove.
506         (lst_insert_in_sequence): Remove.
507         (lst_replace): Remove.
508         (lst_substitute_3): Remove.
509         (lst_distribute_lst): Remove.
510         (lst_remove_all_before_including_pbb): Remove.
511         (lst_remove_all_before_excluding_pbb): Remove.
512         (struct scop): Remove original_schedule, transformed_schedule, and
513         saved_schedule.
514         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
515         (SCOP_SAVED_SCHEDULE): Remove.
516         (poly_scattering_new): Remove.
517         (poly_scattering_free): Remove.
518         (poly_scattering_copy): Remove.
519         (store_scattering_pbb): Remove.
520         (store_lst_schedule): Remove.
521         (restore_lst_schedule): Remove.
522         (store_scattering): Remove.
523         (restore_scattering_pbb): Remove.
524         (restore_scattering): Remove.
525         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
526         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
527         compute the scattering polyhedron dimension from the dimension of
528         pbb->domain.
529         (build_scop_scattering): Update call to
530         build_pbb_scattering_polyhedrons.
531         (build_poly_scop): Remove call to scop_to_lst.
532         * graphite.c (graphite_transform_loops): Add call to print_scop.
533         (gate_graphite_transforms): Remove use of flag_loop_block,
534         flag_loop_interchange, and flag_loop_strip_mine.
536 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
538         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
539         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
540         -floop-nest-optimize.
541         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
542         (generate_luj_sepclass): Remove.
543         (generate_luj_options): Remove.
544         (set_options): Remove opt_luj.
545         (scop_to_isl_ast): Remove opt_luj.
546         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
547         flag_loop_unroll_jam.
548         (getPrevectorMap_full): Remove.
549         (getScheduleForBandList): Remove map_sepcl.
550         (getScheduleMap): Same.
551         (apply_schedule_map_to_scop): Remove sepcl.
552         (optimize_isl): Same.
553         * graphite-poly.c (apply_poly_transforms): Remove check for
554         flag_loop_unroll_jam.
555         (new_poly_bb): Remove map_sepclass.
556         * graphite-poly.h (struct poly_bb): Same.
557         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
558         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
559         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
560         * toplev.c (process_options): Remove flag_loop_unroll_jam.
562 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
564         PR target/67317
565         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
566         (addqi3_cc): Ditto.
567         (UNSPEC_ADD_CARRY): Remove.
568         (addqi3_cconly_overflow): New expander.
569         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
570         Adjust for changed add<mode>3_carry.
571         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
572         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
573         (<plusminus_insn><mode>3_carry): Remove expander.
574         (*<plusminus_insn><mode>3_carry): Split insn pattern to
575         add<mode>3_carry and sub<mode>3_carry.
576         (plusminus_carry_mnemonic): Remove code attribute.
577         (add<mode>3_carry): Canonicalize insn pattern.
578         (*addsi3_carry_zext): Ditto.
579         (sub<mode>3_carry): Ditto.
580         (*subsi3_carry_zext): Ditto.
581         (adcx<mode>3): Remove insn pattern.
582         (addcarry<mode>): New insn pattern.
583         (subborrow<mode>): Ditto.
584         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
585         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
586         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
587         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
588         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
589         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
590         Rewrite expander to not clobber carry flag chains.
592 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
594         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
595         instead of a rotate.
597 2015-08-27  Marek Polacek  <polacek@redhat.com>
599         PR middle-end/67005
600         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
601         an entry into an irreducible region.
603 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
605         * configure: Regenerate.
607 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
609         PR tree-optimization/67283
610         * tree-sra.c (type_consists_of_records_p): Rename to...
611         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
613         (completely_scalarize_record): Rename to...
614         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
615         (scalarize_elem): New.
617 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
619         * tree-sra.c (completely_scalarize_var): Rename to...
620         (create_total_scalarization_access): ... Here. Drop call to
621         completely_scalarize_record.
623         (analyze_all_variable_accesses): Replace completely_scalarize_var
624         with create_total_scalarization_access and completely_scalarize_record.
626 2015-08-27  Alan Modra  <amodra@gmail.com>
628         PR target/67356
629         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
630         for operand 1.
632 2015-08-27  Richard Biener  <rguenther@suse.de>
634         * passes.c (rest_of_decl_compilation): Guard early_global_decl
635         call with !seen_error ().
636         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
637         early debug generation and finish...
638         (symbol_table::compile): ... here to put it after a !seen_error ()
639         guard.
641 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
643         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
644         Solaris 12+.
646 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
647             Andre Vieira  <andre.simoesdiasvieira@arm.com>
649         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
650         (*cb<optab><mode>1): Likewise.
651         (*tb<optab><mode>1): Likewise.
652         (*cb<optab><mode>1): Likewise.
653         * config/aarch64/iterators.md (inv_cb): New code attribute.
654         (inv_tb): Likewise.
655         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
656         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
658 2015-08-27  Richard Biener  <rguenther@suse.de>
660         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
662 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
664         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
665         trap to fix ICE.
667 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
669         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
670         Add declaration.
672         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
673         comment.
674         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
675         floating point in VSX registers.
676         (rs6000_output_move_128bit): Always print out the set insn if we
677         can't generate an appropriate 128-bit move.
678         (rs6000_generate_compare): Add support for IEEE 128-bit floating
679         point in VSX registers comparisons.
680         (rs6000_expand_float128_convert): Likewise.
682         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
683         predicate for only GPR hard registers.
685         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
686         modes to iterators. Add new iterators for moving 128-bit values in
687         scalar FPR registers and VSX registers.
688         (FMOVE128): Likewise.
689         (FMOVE128_FPR): Likewise.
690         (FMOVE128_GPR): Likewise.
691         (FMOVE128_VSX): Likewise.
692         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
693         in VSX registers.
694         (IFKF): Likewise.
695         (IBM128): Likewise.
696         (TFIFKF): Likewise.
697         (RELOAD): Add IEEE 128-bit floating point modes.
698         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
699         floating point in VSX registers modes.
700         (signbit<mode>2, IBM128 iterator): Likewise.
701         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
702         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
703         (negtf2): Likewise.
704         (neg<mode>2, TFIFKF iterator): Likewise.
705         (negtf2_internal): Likewise.
706         (abstf2): Likewise.
707         (abs<mode>2, TFIFKF iterator): Likewise.
708         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
709         VSX insn support for negate, absolute value, and negative absolute
710         value.
711         (ieee_128bit_vsx_neg<mode>2): Likewise.
712         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
713         (ieee_128bit_vsx_abs<mode>2): Likewise.
714         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
715         (ieee_128bit_vsx_nabs<mode>2): Likewise.
716         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
717         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
718         floating point in VSX registers.
719         (unpack<mode>_dm): Likewise.
720         (unpack<mode>_nodm): Likewise.
721         (pack<mode>): Likewise.
722         (unpackv1ti): Likewise.
723         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
724         (packv1ti): Likewise.
725         (pack<mode>, FMOVE128_VSX iterator): Likewise.
726         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
727         registers.
728         (extenddftf2_internal): Likewise.
729         (trunctfdf2): Likewise.
730         (trunctfdf2_internal2): Likewise.
731         (fix_trunc_helper): Likewise.
732         (fix_trunctfdi2"): Likewise.
733         (floatditf2): Likewise.
734         (floatuns<mode>tf2): Likewise.
735         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
736         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
737         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
738         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
739         (float<SDI:mode><IFKF:mode>2): Likewise.
740         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
742 2015-08-26  Renlin Li  <renlin.li@arm.com>
744         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
746 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
747             Jiong Wang  <jiong.wang@arm.com>
749         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
750         (tlsie_tiny_<mode>): New define_insn.
751         (tlsie_tiny_sidi): Likewise.
752         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
753         SYMBOL_TINY_TLSIE.
754         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
755         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
756         SYMBOL_TINY_TLSIE.
757         (aarch64_expand_mov_immediate): Likewise.
758         (aarch64_print_operand): Likewise.
759         (arch64_classify_tls_symbol): Likewise.
761 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
763         * config/arm/arm-arches.def: Replace single value flags with
764         an initializer built from ARM_FSET_MAKE_CPU1.
765         * config/arm/arm-cores.def: Likewise.
766         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
767         derivation from the ARM_CORE macro definition, use the given value
768         instead.
769         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
770         ARM_ARCH macro definition, use the given value instead.
772 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
774         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
775         feature set.
776         (struct builtin_description): Replace field mask with field
777         features.
778         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
779         (IWMMXT2_BUILTIN): Likewise.
780         (IWMMXT2_BUILTIN2): Likewise.
781         (FP_BUILTIN): Likewise.
782         (CRC32_BUILTIN): Likewise.
783         (CRYPTO_BUILTIN): Likewise.
784         (iwmmx_mbuiltin): Likewise.
785         (iwmmx2_mbuiltin): Likewise.
786         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
787         struct builtin_description.
789 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
791         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
792         (struct builtin_description): Change type of mask to unsigned
793         long.
794         * config/arm/arm-protos.h (insn_flags): Declare as type
795         arm_feature_set.
796         (tune_flags): Likewise.
797         * config/arm/arm.c (feature_count): New.
798         (insn_flags): Define as type arm_feature_set.
799         (tune_flags): Likewise.
800         (struct processors): Define field flags as type arm_feature_set.
801         (all_cores): Update for change to struct processors.
802         (all_architectures): Likewise.
803         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
804         macros.
805         (arm_option_override_internal): Likewise.
806         (arm_option_override): Likewise.
808 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
809             Jiong Wang  <jiong.wang@arm.com>
811         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
812         tls size for tiny, small, large memory model.
813         (aarch64_load_symref_appropriately): Support new symbol types.
814         (aarch64_expand_mov_immediate): Likewise.
815         (aarch64_print_operand): Likewise.
816         (aarch64_classify_tls_symbol): Likewise.
817         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
818         (aarch64_symbol_type): Likewise.
819         * config/aarch64/aarch64.md (tlsle): Deleted.
820         (tlsle12_<mode>): New define_insn.
821         (tlsle24_<mode>): Likewise.
822         (tlsle32_<mode>): Likewise.
823         (tlsle48_<mode>): Likewise.
824         * doc/sourcebuild.texi (AArch64-specific attributes): Document
825         "aarch64_tlsle32".
827 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
829         * config/arm/arm-protos.h (FL_NONE): New.
830         (FL_ANY): New.
831         (arm_feature_set): New.
832         (ARM_FSET_MAKE): New.
833         (ARM_FSET_MAKE_CPU1): New.
834         (ARM_FSET_MAKE_CPU2): New.
835         (ARM_FSET_CPU1): New.
836         (ARM_FSET_CPU2): New.
837         (ARM_FSET_EMPTY): New.
838         (ARM_FSET_ANY): New.
839         (ARM_FSET_HAS_CPU1): New.
840         (ARM_FSET_HAS_CPU2): New.
841         (ARM_FSET_HAS_CPU): New.
842         (ARM_FSET_ADD_CPU1): New.
843         (ARM_FSET_ADD_CPU2): New.
844         (ARM_FSET_DEL_CPU1): New.
845         (ARM_FSET_DEL_CPU2): New.
846         (ARM_FSET_UNION): New.
847         (ARM_FSET_INTER): New.
848         (ARM_FSET_XOR): New.
849         (ARM_FSET_EXCLUDE): New.
850         (AFM_FSET_IS_EMPTY): New.
851         (ARM_FSET_CPU_SUBSET): New.
853 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
855         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
856         SYMBOL_TLSLE to SYMBOL_TLSLE24.
857         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
858         Likewise.
859         (aarch64_expand_mov_immediate): Likewise.
860         (aarch64_print_operand): Likewise.
861         (aarch64_classify_symbol): Likewise.
863 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
865         * config/aarch64/aarch64.opt (mtls-size): New entry.
866         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
867         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
868         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
870 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
872         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
873         ARM_CORE entry.  Fix some white-space.
874         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
875         ARM_CORE definition.
877 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
879         * fold-const.c (fold_binary_loc) : Move Optimize 
880         root(x)*root(y) as root(x*y) to match.pd.
881         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
882         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
883         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
884         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
885         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
886         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
887         (mult (exps:s @0) (exps:s @1)) : New simplifier.
888         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
889         (rdiv @0 (exps:s @1)) : New simplifier.
891 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
893         * gcc.c (driver::finalize): Only assign to extra_specs if
894         [EXTRA_SPECS].
896 2015-08-25  Marek Polacek  <polacek@redhat.com>
898         PR middle-end/67330
899         * varasm.c (declare_weak): Return after giving an error.
901 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
903         * gcc-main.c (main): Add params to driver ctor.
904         * gcc.c (class env_manager): New.
905         (env): New global.
906         (env_manager::init): New.
907         (env_manager::get): New.
908         (env_manager::xput): New.
909         (env_manager::restore): New.
910         Poison getenv and putenv.
911         (DEFAULT_TARGET_SYSTEM_ROOT): New.
912         (target_system_root): Update initialization to use
913         DEFAULT_TARGET_SYSTEM_ROOT.
914         (struct spec_list): Add field "default_ptr".
915         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
916         (init_spec): Likewise.
917         (set_spec): Clear field "default_ptr".
918         (read_specs): Free "spec" and "buffer".
919         (xputenv): Reimplement in terms of env_manager.
920         (process_command): Replace ::getenv calls with calls to the
921         env_manager singleton.
922         (process_brace_body): Free string in three places.
923         (driver::driver): New.
924         (driver::~driver): New.
925         (used_arg): Convert from a function to...
926         (class used_arg_t): ...this class, and...
927         (used_arg): ...this new global instance.
928         (used_arg_t::finalize): New function.
929         (getenv_spec_function): Add "const" to local "value".  Replace
930         ::getenv call with call to the env_manager singleton.
931         (path_prefix_reset): New function.
932         (driver::finalize): New function.
933         * gcc.h (driver::driver): New.
934         (driver::~driver): New.
935         (driver::finalize): New.
937 2015-08-25  Nathan Sidwell  <nathan@acm.org>
939         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
940         target doesn't have one.
942 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
944         PR target/67346
945         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
947 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
949         PR target/67344
950         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
951         a define_insn, remove second alternative.
953 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
954             Joseph Myers  <joseph@codesourcery.com>
956         * gcc.c (struct switchstr): Expand comment.
958 2015-08-25  Nathan Sidwell  <nathan@acm.org>
960         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
961         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
963 2015-08-25  Richard Biener  <rguenther@suse.de>
965         PR middle-end/67306
966         * genmatch.c (expr::gen_transform): Verify the result of
967         builtin_decl_implicit.
968         (dt_simplify::gen_1): Likewise.
970 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
972         * config/arm/constraints.md: Also list Cs and US ARM-specific
973         constraints as used.
975 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
977         PR target/66609
978         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
979         UNSPEC_PCREL.
980         (nonpic_symbol_mentioned_p): Likewise.
981         (sh_delegitimize_address): Likewise.
982         (sh_function_ok_for_sibcall): Take into account weak symbols.
983         (sh_expand_sym_label2reg): New.
984         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
985         * config/sh/sh.md (UNSPEC_PCREL): New enum.
986         (call_pcrel): Use sh_expand_sym_label2reg.
987         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
988         (symPCREL_label2reg) New expand.
990 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
992         * graphite-poly.c: Change type of region from void* to sese.
993         * graphite-poly.h (struct scop): Changing the type of scop::region
994         from void* to sese. Change accessor macro accordingly.
995         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
997 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
999         * graphite-scop-detection.c (stmt_simple_for_scop_p):
1000         Constrain only on INTEGER_TYPE.
1002 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1004         PR target/67211
1005         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
1006         -mefficient-unaligned-vsx on ISA 2.7.
1008         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
1009         option to a masked option.
1011         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
1012         logic for -mefficient-unaligned-vsx so that it is set via an arch
1013         ISA option, instead of being set if -mtune=power8 is set. Move
1014         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
1015         near other default option handling.
1017 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1019         * genflags.c (gen_macro): Delete.
1020         (gen_proto): Don't create GEN.*CALL.* macros.
1021         * gensupport.h (get_file_location): Declare.
1022         * gensupport.c (rtx_locs): New variable.
1023         (read_md_rtx): Record rtx locations.
1024         (get_file_location): New function.
1025         * target-insns.def (call, call_pop, call_value, call_value_pop)
1026         (sibcall, sibcall_value): New patterns.
1027         * gentarget-def.c (parse_argument): New function.
1028         (def_target_insn): Use it.  Handle optional operands.  Raise an
1029         error if an .md pattern has the wrong number of operands for the
1030         pattern name.  Remove the names of unused operands from the prototype.
1031         * builtins.c (expand_builtin_apply): Use targetm functions
1032         instead of HAVE_call_value and GEN_CALL_VALUE.
1033         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
1034         and sibcall_value_pop.
1035         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
1036         of GEN_CALL.
1037         * config/alpha/alpha.md (untyped_call): Likewise.
1038         * config/iq2000/iq2000.md (untyped_call): Likewise.
1039         * config/m68k/m68k.md (untyped_call): Likewise.
1040         * config/mips/mips.md (untyped_call): Likewise.
1041         * config/pa/pa.md (untyped_call): Likewise.
1042         * config/rs6000/rs6000.md (untyped_call): Likewise.
1043         * config/sparc/sparc.md (untyped_call): Likewise.
1044         * config/tilegx/tilegx.md (untyped_call): Likewise.
1045         * config/tilepro/tilepro.md (untyped_call): Likewise.
1046         * config/visium/visium.md (untyped_call): Likewise.
1047         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
1048         gen_call_value instead of GEN_CALL_VALUE.
1049         * config/arm/arm.md (untyped_call): Likewise.
1050         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
1051         GEN_CALL.
1053 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1055         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
1056         (have_cbranchcc4): New variable.
1057         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
1058         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
1059         (if_convert): Initialize have_cbranchcc4.
1061 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1063         * builtins.c (expand_cmpstrn): Rename to...
1064         (expand_cmpstrn_or_cmpmem): ...this.
1065         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
1066         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
1067         Remove mode argument.
1068         (expand_builtin): Update accordingly.
1070 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1072         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
1073         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
1074         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
1075         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
1076         Add predicates for operands 0 and 3.
1077         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
1078         operand.
1079         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
1080         immediate_operand to nonmemory_operand.
1082 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1084         * df-scan.c (df_insn_info_init_fields): New function, split out
1085         from...
1086         (df_insn_create_insn_record): ...here.
1087         (df_insn_info_free_fields): New function, split out from...
1088         (df_insn_info_delete): ...here.
1089         (df_insn_rescan): Use the new functions instead of freeing and
1090         reallocating the df_insn_info.
1092 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1094         * doc/install.texi (Binaries): Remove links no longer valid.
1096 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
1098         * config/nvptx/mkoffload.c (process): Replace
1099         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
1101 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1103         PR target/67329
1104         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
1106 2015-08-24  Renlin Li  <renlin.li@arm.com>
1108         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1109         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1110         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1111         * config/arm/constraints.md ("j"): Add check for high code.
1113 2015-08-24  Tom de Vries  <tom@codesourcery.com>
1115         PR tree-optimization/65468
1116         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
1117         chunk_size is one.
1119 2015-08-24  Nathan Sidwell  <nathan@acm.org>
1121         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
1122         change to nvptx_type_from_mode call. Use arg_promotion for both
1123         split and non-split args.
1125 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1127         * target-insns.def (movstr): New pattern.
1128         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
1129         (expand_movstr): Use targetm rather than HAVE_movstr/
1130         CODE_FOR_movstr.
1132 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1134         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
1135         cast syntax.
1137 2015-08-24  Andrew Pinski  <apinski@cavium.com>
1139         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
1140         AARCH64_EXTRA_TUNING_OPTION.
1141         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
1142         (aarch64_extra_tuning_flags): Base the shifted value on the index instead
1143         of the argument to AARCH64_EXTRA_TUNING_OPTION.
1144         * config/aarch64/aarch64.c: Remove the last argument to
1145         AARCH64_EXTRA_TUNING_OPTION.
1147 2015-08-23  Nathan Sidwell  <nathan@acm.org>
1149         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
1150         decls.
1151         (nvptx_declare_function_name): Insert formatting tabs for
1152         consistency.
1154 2015-08-23  Tom de Vries  <tom@codesourcery.com>
1156         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
1157         parm_decl, rather than generating a dummy default def in cfun.
1158         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
1159         ssa_name from cfun and child_fn do not share a stmt as def stmt.
1160         (move_stmt_op): Handle PARM_DECl.
1161         (gather_ssa_name_hash_map_from): New function.
1162         (move_sese_region_to_fn): Add default defs for function params, and add
1163         them to vars_map.  Release copied ssa names.
1164         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
1166 2015-08-23  Tom de Vries  <tom@codesourcery.com>
1168         * doc/sourcebuild.texi: Rename vect_no_int_max with
1169         vect_no_int_min_max.  Update description.
1171 2015-08-22  Andrew Pinski  <apinski@cavium.com>
1173          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
1174         * config/aarch64/aarch64-protos.h
1175         (aarch64_fusion_pairs_index): New enum.
1176         (aarch64_fusion_pairs): Base the shifted value on the index instead
1177         Rewrite AARCH64_FUSE_ALL to be based on the end index.
1178         of the argument to AARCH64_FUSION_PAIR.
1179         * config/aarch64/aarch64.c: Remove the last argument to
1180         AARCH64_FUSION_PAIR.
1182 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
1184         * dominance.c (new_zero_array): Define.
1185         (dom_info): Redefine as class with proper encapsulation.
1186         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
1187         Add new members.
1188         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
1189         allocations/deallocations.  Pass function as parameter (instead of
1190         using cfun).
1191         (dom_info::get_idom): Define accessor method.
1192         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
1193         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
1194         (calculate_dominance_info): Adjust to use dom_info class.
1195         (verify_dominators): Likewise.
1197 2015-08-21  Alexandre Oliva <aoliva@redhat.com>
1199         * print-rtl.c (print_rtx): Check the correct range for
1200         flag_dump_unnumbered_links to behave as documented.
1202         PR rtl-optimization/67227
1203         PR rtl-optimization/64164
1204         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
1205         (nonoverlapping_memrefs_p): Test offsets and sizes when given
1206         identical gimple_reg exprs.
1208 2015-08-21  Nathan Sidwell  <nathan@acm.org>
1210         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
1211         expansion.
1212         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
1213         crtl->stack_alignment_needed to determine alignment.
1214         (nvptx_get_drap_rtx): New.
1215         (TARGET_GET_DRAP_RTX): Override.
1216         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
1218 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1220         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
1222 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1224         * configure.ac: Remove uwin* cases.
1225         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
1226         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
1227         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
1228         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
1229         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
1230         i[34567]86-*-uwin*, powerpc-*-beos*.
1232 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
1234         * gencodes.c (gencodes): Print the comma for the preceding
1235         enum value rather than the current one.  Use aliased enum values
1236         rather than #defines for compiled-out patterns.
1237         (main): Update accordingly.  Replace LAST_INSN_CODE with
1238         NUM_INSN_CODES.
1239         * lra.c (insn_code_data): Update accordingly.
1240         (finish_insn_code_data_once, get_static_insn_data): Likewise.
1241         * recog.h (target_recog): Likewise.
1242         (preprocess_insn_constraints): Change parameter to unsigned int.
1243         * recog.c (preprocess_insn_constraints): Likewise.
1244         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
1245         * tree-vect-stmts.c (vectorizable_operation): Simplify.
1247 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1249         PR rtl-optimization/61657
1250         * loop-iv.c (iv_number_of_iterations): Declare up and down as
1251         unsigned.  Remove superflous uint64_t cast.
1253 2014-08-21  Felix Yang  <felix.yang@huawei.com>
1254             Jiji Jiang  <jiangjiji@huawei.com>
1256         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
1257         and get builtin function code directly from CALL.
1258         (gimple_stringop_fixed_value): Modified accordingly.
1259         (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
1260         accordingly and only accept BUILT_IN_NORMAL string operations.
1262 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1264         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
1266 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1268         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
1269         to match.pd.
1270         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
1271         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
1272         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
1273         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
1274         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
1275         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
1276         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
1277         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
1278         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
1279         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
1281         * match.pd (SIN ) : New Operator.
1282         (TAN) : New Operator.
1283         (mult (SQRT@1 @0) @1) : New simplifier.
1284         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
1285         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1286         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1287         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
1288         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
1289         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
1290         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
1291         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
1292         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
1293         (rdiv @0 (POW:s @1 @2)) : New simplifier.
1295 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
1297         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
1298         loop if EXPR is simplified to const value.
1300 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
1302         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1303         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
1305 2015-08-21  Richard Biener  <rguenther@suse.de>
1307         PR middle-end/67285
1308         * gimple-fold.c (replace_stmt_with_simplification): Assert
1309         seq is empty when replacing a call with itself but different
1310         arguments.
1311         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
1312         a call require that it is const.
1314 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1316         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
1317         * builtins.c (get_object_alignment_2): Adjust.
1318         * varasm.c (align_variable): Likewise.
1319         (get_variable_align): Likewise.
1320         (build_constant_desc): Likewise.
1321         (force_const_mem): Likewise.
1322         * doc/tm.texi.in: Likewise.
1323         * doc/tm.texi: Regenerate.
1325 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1327         * genconfig.c (main): Always define HAVE_cc0.
1328         * recog.c (rest_of_handle_peephole2): Adjust.
1330 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1332         * reorg.c (relax_delay_slots): Don't use #if to check value of
1333         HAVE_cc0.
1335 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1337         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
1338         * targhooks.c (default_have_conditional_execution): Adjust.
1340 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1342         * rtl.h (rtvec_all_equal_p): Declare.
1343         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
1344         * rtl.c (rtvec_all_equal_p): New function.
1345         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
1346         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
1347         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
1348         * config/arm/arm.c (neon_vdup_constant): Likewise.
1349         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
1350         * config/tilegx/constraints.md (W, Y): Likewise.
1351         * config/tilepro/constraints.md (W, Y): Likewise.
1352         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
1353         (classify_immediate): Use unwrap_const_vec_duplicate.
1354         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
1355         (reg_or_v2s8bit_operand): Likewise.
1356         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
1357         (reg_or_v4s8bit_operand): Likewise.
1359 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1361         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
1362         (vec_shasigma_be): New #define.
1363         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
1364         (VPMSUMH): Likewise.
1365         (VPMSUMW): Likewise.
1366         (VPMSUMD): Likewise.
1367         (VPMSUM): New BU_P8V_OVERLOAD_2.
1368         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
1369         entries for VEC_MADD and VEC_VPMSUM.
1371 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
1373         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
1374         Multiply argument avr_n_flash by 64 to match unit of "KiB".
1375         (avr_pgm_check_var_decl): Same.
1377 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
1379         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
1380         initialization of HFmode scalar type (float16_t) to...
1381         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
1382         code.
1384         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
1386         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
1387         having an -mfp16-format.
1389 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1391         * config/i386/predicates.md (vector_all_ones_operand): Use
1392         CONSTM1_RTX to simplify definition.
1394 2015-08-20  Richard Biener  <rguenther@suse.de>
1396         * toplev.c (compile_file): Remove loop calling late_global_decl
1397         on all symbols.
1398         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
1399         on decls we assembled.
1401 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
1403         * common/config/aarch64/aarch64-common.c
1404         (AARCH64_CPU_NAME_LENGTH): Delete.
1405         (aarch64_option_extension): New.
1406         (all_extensions): Likewise.
1407         (processor_name_to_arch): Likewise.
1408         (arch_to_arch_name): Likewise.
1409         (all_cores): New.
1410         (all_architectures): Likewise.
1411         (aarch64_get_extension_string_for_isa_flags): Likewise.
1412         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
1413         architecture names.
1414         * config/aarch64/aarch64-protos.h
1415         (aarch64_get_extension_string_for_isa_flags): New.
1416         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
1417         (aarch64_option_print): Get the string to print from
1418         aarch64_get_extension_string_for_isa_flags.
1419         (aarch64_declare_function_name): Likewise.
1420         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
1421         (MCPU_TO_MARCH_SPEC): This.
1422         (ASM_CPU_SPEC): Use it.
1423         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
1424         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
1425         (EXTRA_SPEC_FUNCTIONS): Use it.
1427 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
1429         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
1430         expansion when !ISA_HAS_LWL_LWR.
1431         (mips_block_move_straight): Update the size of elements copied to
1432         account for alignment when !ISA_HAS_LWL_LWR.
1433         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
1435 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1437         * expr.c (expand_expr_real_2): Check gimple statement during
1438         LSHIFT_EXPR expand.
1440 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
1442         * common.opt (fstack-protector): Initialize to -1.
1443         (fstack-protector-all): Likewise.
1444         (fstack-protector-strong): Likewise.
1445         (fstack-protector-explicit): Likewise.
1446         * configure.ac: Add --enable-default-ssp.
1447         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
1448         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
1449         -1.
1450         * doc/install.texi: Document --enable-default-ssp.
1451         * config.in: Regenerated.
1452         * configure: Likewise.
1454 2015-08-19  Alexandre Oliva <aoliva@redhat.com>
1456         PR rtl-optimization/64164
1457         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
1458         (parm_in_stack_slot_p): ... this.  Disregard mode, what
1459         matters is whether the parm will live in a pseudo or a stack
1460         slot.
1461         (expand_one_ssa_partition): Deal with params without a default
1462         def.  Disregard mode.
1463         * cfgexpand.h: Renamed function declaration.
1464         * tree-ssa-coalesce.c: Adjust.
1465         * function.c (split_complex_args): Allocate stack slot for
1466         unassigned parms before splitting.
1467         (parm_in_unassigned_mem_p): New.  Use it instead of
1468         parm_maybe_byref_p throughout this file.
1469         (assign_parm_setup_block): Use it.  Accept pseudos in the
1470         expand-assigned rtl.
1471         (assign_parm_setup_reg): Drop BLKmode requirement.
1472         (assign_parm_setup_stack): Allocate and fill in the address of
1473         unassigned MEM parms.
1475 2015-08-19  David Sherwood  <david.sherwood@arm.com>
1477         * genmodes.c (emit_mode_unit_size_inline): New function.
1478         (emit_mode_unit_precision_inline): New function.
1479         (emit_insn_modes_h): Emit new #define.  Emit new functions.
1480         (emit_mode_unit_size): New function.
1481         (emit_mode_unit_precision): New function.
1482         (emit_mode_adjustments): Add mode_unit_size adjustments.
1483         (emit_insn_modes_c): Emit new arrays.
1484         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
1485         use new inline methods.
1487 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1489         * config/aarch64/aarch64.c (bit_count): Delete prototype
1490         and definition.
1491         (aarch64_print_operand): Use popcount_hwi instead of the above.
1493 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1495         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
1496         comment.
1498 2015-08-19  Marek Polacek  <polacek@redhat.com>
1500         PR middle-end/67133
1501         * gimple-ssa-isolate-paths.c
1502         (insert_trap_and_remove_trailing_statements): Rename to ...
1503         (insert_trap): ... this.  Don't remove trailing statements; split
1504         block instead.
1505         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
1507 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
1509         PR other/67042
1510         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
1511         conditionalize the whole on __GNUC__.  Add fallback code
1512         depending neither on undefined nor implementation-defined behaviour.
1514 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1516         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
1517         whitespaces with tab.
1519 2015-08-19  Florian Weimer  <fweimer@redhat.com>
1521         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
1522         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
1523         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
1524         Move Name_Ids instantiation to the Prj.Proc package, to avoid
1525         trampolines.
1527 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1529         * config/arm/arm.c (bounds_check): Use %wd print format
1530         for HOST_WIDE_INT arguments.
1532 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
1534         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
1535         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
1536         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
1537         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
1538         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
1539         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
1540         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
1541         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
1542         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
1543         typedefs.
1545 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
1547         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
1548         function.c, graphite-scop-detection.c, haifa-sched.c,
1549         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
1550         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
1551         varasm.c: Remove typedefs of structs.
1553 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
1555         * config/rs6000/altivec.h (vec_adde): New define.
1556         (vec_addec): Likewise.
1557         (vec_double): Likewise.
1558         (vec_bperm): Likewise.
1559         (vec_gb): Likewise.
1560         * config/rs6000/rs6000-builtin.def (ADDE): New
1561         BU_ALTIVEC_OVERLOAD_3.
1562         (ADDEC): Likewise.
1563         (DOUBLE): New BU_VSX_OVERLOAD_1.
1564         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
1565         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
1566         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
1567         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
1568         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
1569         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
1570         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
1571         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
1572         and P8V_BUILTIN_VEC_VBPERMQ.
1574 2015-08-18  Jason Merrill  <jason@redhat.com>
1576         * print-tree.c (print_node): Handle TREE_BINFO.
1578 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1580         PR middle-end/36757
1581         * builtins.c (expand_builtin_signbit): Add asserts to make sure
1582         we can expand BUILT_IN_SIGNBIT inline.
1583         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
1584         * doc/extend.texi: Document the type-generic __builtin_signbit.
1586 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
1588         PR rtl-optimization/67218
1589         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
1590         (simplify_unary_operation_1): Use it.
1592 2015-08-18  Marek Polacek  <polacek@redhat.com>
1594         PR middle-end/67222
1595         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1596         if the call isn't valid.
1597         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1598         gimple_call_builtin_p.
1599         (call_may_clobber_ref_p_1): Likewise.
1600         (stmt_kills_ref_p): Likewise.
1602 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
1604         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
1605         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
1606         (mips_hard_regno_scratch_ok): Likewise.
1607         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
1608         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
1610 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
1612         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
1613         (determine_value_range): Call refine_value_range_using_guard for
1614         each loop initial condition to improve value range.
1616 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
1618         * config/i386/i386.c: Remove include of fibheap.h.
1620 2015-08-17  Richard Biener  <rguenther@suse.de>
1622         PR tree-optimization/67221
1623         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
1624         (sccvn_dom_walker::before_dom_children): Mark backedges of
1625         non-executable blocks as not executable.
1627 2015-08-17  David Sherwood  <david.sherwood@arm.com>
1629         * config/arm/arm.c (neon_element_bits): Replace call to
1630         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
1631         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
1632         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
1633         (neon_vdup_lane<mode>): Likewise.
1634         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
1635         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
1636         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
1637         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
1638         * config/spu/spu.c (arith_immediate_p): Likewise.
1639         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1640         * expr.c (expand_expr_real_2): Likewise.
1641         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
1642         * simplify-rtx.c (simplify_immed_subreg): Likewise.
1643         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1644         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
1645         New variable.
1646         * fold-const.c (fold_binary_loc): Replace call to
1647         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
1648         GET_MODE_UNIT_PRECISION (m).
1650 2015-08-17  Mike Stump  <mikestump@comcast.net>
1652         * config/arm/arm.c (arm_block_move_unaligned_straight):
1653         Emit normal move instead of unaligned load when source or destination
1654         are appropriately aligned.
1656 2015-08-17  Richard Biener  <rguenther@suse.de>
1657             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1659         PR middle-end/16107
1660         * match.pd (div (coss (op @0) : New simplifier.
1662 2015-08-14  Alexandre Oliva <aoliva@redhat.com>
1664         PR rtl-optimization/64164
1665         PR bootstrap/66978
1666         PR middle-end/66983
1667         PR rtl-optimization/67000
1668         PR middle-end/67034
1669         PR middle-end/67035
1670         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1671         * tree-ssa-copyrename.c: Removed.
1672         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1673         -ftree-coalesce-vars.
1674         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1675         * common.opt (ftree-copyrename): Ignore.
1676         (ftree-coalesce-inlined-vars): Likewise.
1677         * doc/invoke.texi: Remove the ignored options above.
1678         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1679         * tree-ssa-coalesce.h: ... here.
1680         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1681         headers required by it.
1682         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1683         across variables when flag_tree_coalesce_vars.  Check register
1684         use and promoted modes to allow coalescing.  Do not coalesce
1685         maybe-byref parms with SSA_NAMEs of other variables, or
1686         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
1687         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1688         with its member functions to tree-ssa-coalesce.c.
1689         (var_map_base_init): Likewise.  Renamed to
1690         compute_samebase_partition_bases.
1691         (partition_view_normal): Drop want_bases parameter.
1692         (partition_view_bitmap): Likewise.
1693         * tree-ssa-live.h: Adjust declarations.
1694         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
1695         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1696         default defs at the entry point.
1697         (dump_part_var_map): New.
1698         (compute_optimized_partition_bases): New, called by...
1699         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1700         of compute_samebase_partition_bases.  Adjust.
1701         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1702         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
1703         (ssa_default_def_partition): New.
1704         (get_rtl_for_parm_ssa_default_def): New.
1705         (align_local_variable, add_stack_var): Support anonymous SSA
1706         names.
1707         (defer_stack_allocation): Likewise.  Declare earlier.
1708         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1709         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1710         Do no record deferred-allocation marker in
1711         SA.partition_to_pseudo.
1712         (expand_stack_vars): Adjust check for the marker in it.
1713         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1714         redundant MEM attr setting.
1715         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1716         from...
1717         (expand_one_stack_var): ... this.  New wrapper to check and
1718         skip already expanded SSA partitions.
1719         (record_alignment_for_reg_var): New, factored out of...
1720         (expand_one_var): ... this.
1721         (expand_one_ssa_partition): New.
1722         (adjust_one_expanded_partition_var): New.
1723         (expand_one_register_var): Check and skip already expanded SSA
1724         partitions.
1725         (expand_used_vars): Don't create DECLs for anonymous SSA
1726         names.  Expand all SSA partitions, then adjust all SSA names.
1727         (pass::execute): Replace the loops that set
1728         SA.partition_to_pseudo from partition leaders and cleared
1729         DECL_RTL for multi-location variables, and that which used to
1730         rename vars and set attrs, with one that clears DECL_RTL and
1731         checks that PARMs and RESULTs default_defs match DECL_RTL.
1732         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1733         * emit-rtl.c: Include stor-layout.h.
1734         (set_reg_attrs_for_parm): Handle NULL decl.
1735         (set_reg_attrs_for_decl_rtl): Take mode from expression if
1736         it's not a DECL.
1737         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
1738         rather than its possibly-NULL DECL.
1739         * explow.c (promote_ssa_mode): New.
1740         * explow.h (promote_ssa_mode): Declare.
1741         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1742         (read_complex_part): Export.
1743         * expr.h (read_complex_part): Declare.
1744         * cfgexpand.h (parm_maybe_byref_p): Declare.
1745         * function.c: Include cfgexpand.h.
1746         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1747         (use_register_for_parm_decl): Wrapper for the above to
1748         special-case the result_ptr.
1749         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1750         (split_complex_args): Take assign_parm_data_all argument.
1751         Pass it to rtl_for_parm.  Set up rtl and context for split
1752         args.  Reset complex parm before fetching its default decl
1753         rtl.
1754         (assign_parms_unsplit_complex): Use the default-def complex
1755         parm rtl if it matches the components.
1756         (assign_parms_augmented_arg_list): Adjust.
1757         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1758         multiple locations.  Recognize split complex args.
1759         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1760         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1761         (assign_parm_setup_block): Prefer SSA-assigned location, and
1762         fill in its address if the memory location of a maybe-byref
1763         parm was not assigned by cfgexpand.
1764         (assign_parm_setup_reg): Likewise.  Adjust its mode as
1765         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
1766         sure passed_pointer parms don't need conversion.  Copy address
1767         or value as needed.
1768         (assign_parm_setup_stack): Prefer SSA-assigned location.
1769         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1770         rtl before testing for pointer bounds.  Special-case result_ptr.
1771         (expand_function_start): Maybe reset DECL_RTL of result.
1772         Prefer SSA-assigned location for result and static chain.
1773         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
1774         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
1775         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1776         anonymous SSA names.  Use promote_ssa_mode.
1777         (get_temp_reg): Likewise.
1778         (remove_ssa_form): Adjust.
1779         * stor-layout.c (layout_decl): Don't set mem attributes of
1780         non-MEMs.
1781         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1782         and get its reg_usage for reg invalidation.
1783         (compute_bb_dataflow): Pass it insn.
1784         (emit_notes_in_bb): Likewise.
1786 2015-08-14  Marek Polacek  <polacek@redhat.com>
1788         * tree-core.h (tree_base): Fix typo.
1790 2015-08-14  Marek Polacek  <polacek@redhat.com>
1792         PR middle-end/67133
1793         * gimple.c (infer_nonnull_range_by_attribute): Check that the
1794         nonnull argument position is not outside function arguments.
1796 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
1798         PR target/67143
1799         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
1800         'lconst_atomic' with 'const_atomic'.
1801         (atomic_fetch_<optab><mode>): Likewise.
1802         (atomic_<optab>_fetch<mode>): Likewise.
1803         * config/aarch64/iterators.md (lconst-atomic): Move below
1804         'const_atomic'.
1805         (const_atomic): New.
1807 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
1808             Bernd Schmidt  <bernds@codesourcery.com>
1810         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
1811         debug options.
1812         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
1813         (DWARF2_DEBUGGING_INFO): Don't define.
1814         * debug.h (dwarf2_lineno_debug_hooks): Declare.
1815         * toplev.c (process_options): Add a case for it.
1816         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
1817         (dwarf2out_init): Skip most initializations if
1818         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
1819         case.
1820         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
1821         DWARF2_LINENO_DEBUGGING_INFO.
1822         * opts.c (set_debug_level): Likewise.
1824 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
1826         * config/arm/types.md (is_neon_type): Add missing types.
1828 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
1830         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
1831         for skylake.
1832         * config/i386/i386.c (PTA_SKYLAKE): New macros.
1833         (processor_alias_table): Add skylake description.
1834         (enum processor_model): Add skylake processor.
1835         (arch_names_table): Add skylake record.
1836         * doc/invoke.texi: Add skylake item.
1838 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
1840         * ira-int.h: Include recog.h.
1841         * ira-build.c: Don't include recog.h.
1842         * ira-color.c: Likewise.
1843         * ira-conflicts.c: Likewise.
1844         * ira-costs.c: Likewise.
1845         * ira-emit.c: Likewise.
1846         * ira-lives.c: Likewise.
1847         * ira.c: Likewise.
1848         * sched-deps.c: Likewise.
1849         * sel-sched.c: Likewise.
1850         * target-globals.c: Likewise.
1852 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
1854         PR bootstrap/55035
1855         * reload1.c (elimination_costs_in_insn): Make it obvious to the
1856         compiler that the n_dups and n_operands loop bounds are invariant.
1858 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1860         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
1861         expressions in A and B.
1863 2015-08-13  Richard Biener  <rguenther@suse.de>
1865         * tree.c (nonnull_arg_p): Move from ...
1866         * tree-vrp.c (nonnull_arg_p): ... here.
1867         * tree.h (nonnull_arg_p): Declare.
1868         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
1869         here, register ptr != 0 for nonnull_arg_p pointer arguments.
1870         Properly initialize static chain and by-reference result pointer.
1871         (run_scc_vn): Adjust.
1873 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1875         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
1876         TUNE_I6400.
1878 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1880         * config/aarch64/aarch64-protos.h
1881         (aarch64_gen_atomic_cas): Declare.
1882         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
1883         Choose appropriate instruction pattern for the target.
1884         (aarch64_gen_atomic_cas): New.
1885         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
1886         (atomic_compare_and_swap<mode>_1): Rename to
1887         aarch64_compare_and_swap<mode>.  Fix some indentation.
1888         (aarch64_compare_and_swap<mode>_lse): New.
1889         (aarch64_atomic_cas<mode>): New.
1891 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1893         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
1894         (TARGET_LSE): New.
1896 2015-08-13  Richard Biener  <rguenther@suse.de>
1898         PR tree-optimization/67191
1899         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
1900         assert we value-numbered last stmts operand because it can validly
1901         trigger for unreachable code.
1903 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1905         PR rtl-optimization/67103
1906         * ifcvt.c (noce_try_store_flag_constants): Move
1907         x = (-(test != 0) & (b - a)) + a transformation to...
1908         (noce_try_cmove): ... Here.  Try it if normal conditional
1909         move fails.
1911 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1913         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
1914         pseudo-processors.
1915         * config/mips/mips.md (processor): Remove w32 and w64.
1917 2015-08-13  Richard Biener  <rguenther@suse.de>
1919         PR tree-optimization/66502
1920         PR tree-optimization/67167
1921         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
1922         backedge arguments.
1923         (vn_phi_lookup): Adjust.
1924         (vn_phi_insert): Likewise.
1925         (visit_phi): Prefer to value-number to another PHI node
1926         over value-numbering to a PHI argument.
1927         (init_scc_vn): Mark DFS back edges.
1929 2015-08-13  Richard Biener  <rguenther@suse.de>
1931         * gimple.h (gcall::code_): New constant static member.
1932         (gcond::code_): Likewise.
1933         * gimple.c (gcall::code_): Define.
1934         (gcond::code_): Likewise.
1935         (is_a_helper <const gcond *>): Add.
1936         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
1937         and forward to a new gcall overload with less checking and a
1938         cheaper way to access the operand.
1939         (gimple_call_lhs_ptr): Likewise.
1940         (gimple_call_set_lhs): Likewise.
1941         (gimple_call_internal_p): Likewise.
1942         (gimple_call_with_bounds_p): Likewise.
1943         (gimple_call_set_with_bounds): Likewise.
1944         (gimple_call_internal_fn): Likewise.
1945         (gimple_call_set_ctrl_altering): Likewise.
1946         (gimple_call_ctrl_altering_p): Likewise.
1947         (gimple_call_fntype): Likewise.
1948         (gimple_call_fn): Likewise.
1949         (gimple_call_fn_ptr): Likewise.
1950         (gimple_call_set_fndecl): Likewise.
1951         (gimple_call_fndecl): Likewise.
1952         (gimple_call_chain): Likewise.
1953         (gimple_call_num_args): Likewise.
1954         (gimple_call_arg): Likewise.
1955         (gimple_call_arg_ptr): Likewise.
1956         (gimple_call_set_arg): Likewise.
1957         (gimple_call_noreturn_p): Likewise.
1958         (gimple_cond_code): Likewise.
1959         (gimple_cond_lhs): Likewise.
1960         (gimple_cond_rhs): Likewise.
1961         (gimple_has_lhs): Reduce checking.
1963 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1965         PR middle-end/25529
1966         * match.pd (div (mult @0 @1) @1) : New simplifier.
1968 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1970         PR target/67071
1971         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
1972         predicate to allow construction of vector constants using the
1973         VSLDOI vector shift instruction.
1975         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
1976         declaration.
1978         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
1979         the number of bytes to be shifted left and filled in with either
1980         all zero or all one bits.
1981         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
1982         methods exist.
1983         (output_vec_const_move): On power8, generate XXLORC to generate
1984         a vector constant with all 1's. Do a split if we need to use a
1985         VSLDOI instruction.
1987         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
1988         properly test for the MSB.
1990         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
1991         vector constants that can be created with VSLDOI.
1993 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
1995         revert:
1996         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
1997         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
1998         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
1999         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2000         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2001         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2002         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2003         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2004         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2006 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
2008         * config/xtensa/constraints.md (define_constraint "Y"): New
2009         constraint.
2010         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
2011         * config/xtensa/linux.h (ASM_SPEC): Likewise.
2012         * config/xtensa/predicates.md (move_operand): Match constants
2013         and symbols in the presence of TARGET_AUTO_LITPOOLS.
2014         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
2015         immediate references to TLS data.
2016         (xtensa_emit_move_sequence): Don't force constants to memory in
2017         the presence of TARGET_AUTO_LITPOOLS.
2018         (print_operand): Add 'y' format, same as default, but capable of
2019         printing SF mode constants as well.
2020         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
2021         (movsf_internal): Add movi pattern that loads literal.
2022         (movsf, movdf): Don't force constants to memory in the presence
2023         of TARGET_AUTO_LITPOOLS.
2024         (movdf_internal): Add 'Y' constraint.
2025         * config/xtensa/xtensa.opt (mauto-litpools): New option.
2026         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
2028 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
2030         * config/arm/arm-fpus.def: Replace booleans with feature flags.
2031         Update comment.
2032         * config/arm/arm.c (ARM_FPU): Update macro.
2033         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
2034         (TARGET_FP16): Likewise.
2035         (TARGET_CRYPTO): Likewise.
2036         (TARGET_NEON): Likewise.
2037         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
2038         field features.
2040 2015-08-12  Tom de Vries  <tom@codesourcery.com>
2042         PR other/67092
2043         PR other/67098
2044         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
2045         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
2046         accordingly.  Mention default for --with-stage1-ldflags.
2048 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
2050         * config/arm/arm.h (arm_fpu_feature_set): New.
2051         (ARM_FPU_FSET_HAS): New.
2052         (FPU_FL_NONE): New.
2053         (FPU_FL_NEON): New.
2054         (FPU_FL_FP16): New.
2055         (FPU_FL_CRYPTO): New.
2057 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2059         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
2060         after -mcmodel=large -fPIC sorry.
2062 2015-08-12  Richard Biener  <rguenther@suse.de>
2064         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
2065         comparison operand order and commutative ternary op operand order.
2066         (sccvn_dom_walker::cond_stack): New state to track temporary
2067         expressions.
2068         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
2069         no longer valid.
2070         (sccvn_dom_walker::record_cond): Add a single temporary conditional
2071         expression.
2072         (sccvn_dom_walker::record_conds): Add a temporary conditional
2073         expressions and all related expressions also true/false.
2074         (sccvn_dom_walker::before_dom_children): Record temporary
2075         expressions based on the controlling condition of a single
2076         predecessor.  When trying to simplify a conditional statement
2077         lookup expressions we might have inserted earlier.
2079 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
2081         PR target/67127
2082         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
2083         to ARM core registers.
2085 2015-08-12  Nathan Sidwell  <nathan@acm.org>
2087         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
2088         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
2090 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
2092         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
2093         line with comments.
2094         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
2096 2015-08-12  Richard Biener  <rguenther@suse.de>
2098         * gimple.h (remove_pointer): New trait.
2099         (GIMPLE_CHECK2): New inline template function.
2100         (gassign::code_): New constant static member.
2101         (is_a_helper<const gassign *>): Add.
2102         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
2103         and forward to a new gassign overload with less checking and a
2104         cheaper way to access the operand.
2105         (gimple_assign_lhs_ptr): Likewise.
2106         (gimple_assign_set_lhs): Likewise.
2107         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
2108         Likewise.
2109         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
2110         Likewise.
2111         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
2112         Likewise.
2113         (gimple_assign_rhs_code): Likewise.
2114         * gimple.c (gassign::code_): Define.
2116 2015-08-12  Richard Biener  <rguenther@suse.de>
2118         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2119         Eliminate edges marked as not executable by SCCVN.
2120         * tree-ssa-sccvn.c: Include gimple-iterator.h.
2121         (cond_dom_walker): Rename to sccvn_dom_walker.
2122         (sccvn_dom_walker::before_dom_children): Value-number defs
2123         of all stmts.
2124         (run_scc_vn): Remove loop value-numbering all SSA names.
2125         Drop not visited SSA names to varying.
2127 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
2129         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2130         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2131         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2132         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2133         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2134         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2135         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2136         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2137         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2139 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
2141         PR target/66954
2142         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
2143         to enum feature_priority and feature_list.
2144         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
2145         and isa_names_table.
2147 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
2149         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
2150         vect_induction_def.
2152 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2154         PR c/66098
2155         PR c/66711
2156         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
2157         account when deciding what was the command-line status.
2159 2015-08-11  Nathan Sidwell  <nathan@acm.org>
2161         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
2163         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
2164         we're not the only contributor to target phi.
2166 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
2168         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
2169         FIXED_REG0.
2171 2015-08-11  Tom de Vries  <tom@codesourcery.com>
2173         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
2175 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
2177         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
2178         with CPU_SLM.
2179         * config/i386/i386.md (cpu): Remove knl.
2181 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
2183         PR libgomp/65742
2184         PR middle-end/66332
2185         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
2186         open-coded sequence.
2187         * omp-low.c (oacc_process_reduction_data): Remove handline of
2188         GOMP_DEVICE_HOST_NONSHM.
2190         * lto-streamer-in.c (lto_input_mode_table): Adjust to
2191         GET_MODE_INNER changes.
2193 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
2194             Ilya Verbin  <ilya.verbin@intel.com>
2196         * lto-streamer-in.c (lto_input_mode_table): Correctly advance
2197         iterator.
2199 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2201         * doc/options.texi (EnabledBy): Document that the argument must be
2202         a Common option.
2203         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
2204         Not enabled by -Wall.
2205         * optc-gen.awk: Give nicer error messages. Detect if the argument
2206         of EnabledBy is not a Common option.
2207         * common.opt (Wnull-dereference): Not enabled by -Wall.
2208         * opt-functions.awk (lang_enabled_by): Nicer error messages.
2210 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2212         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
2213         model == 0x4f as Broadwell.
2215 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
2217         PR rtl-optimization/67028
2218         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
2219         Add test to see if a const_int fits in the new mode.
2221 2015-08-07  DJ Delorie  <dj@redhat.com>
2223         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
2224         
2225 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2227         PR rtl-optimization/67029
2228         * ira-color.c: Include "recog.h" before including "ira-int.h".
2229         * target-globals.c: Likewise.
2230         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
2231         adds an alternative_mask argument and use it instead of
2232         preferred_alternatives.
2233         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
2234         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
2235         * sched-deps.c: Include "ira-int.h" after including "ira.h".
2236         (sched_analyze_insn): Update call to
2237         ira_implicitly_set_insn_hard_regs.
2238         * sel-sched.c: Include "ira-int.h" after including "ira.h".
2239         (implicit_clobber_conflict_p): Update call to
2240         ira_implicitly_set_insn_hard_regs.
2242 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
2244         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
2246 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2248         PR target/67002
2249         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
2250         currently_expanding_to_rtl is set.
2252 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
2254         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
2255         * configure: Regenerate.
2257 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2258             Jiong Wang  <jiong.wang@arm.com>
2260         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2261         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2262         (REG_CLASS_NAMES): Likewise.
2263         (REG_CLASS_CONTENTS): Likewise.
2264         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2265         (aarch64_register_move_cost): Likewise.
2266         (aarch64_load_symref_appropriately): Invoke the new added pattern if
2267         possible.
2268         * config/aarch64/constraints.md (Uc0): New constraint.
2270 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
2272         * config/aarch64/constraints.md (Usf): Add the test of
2273         aarch64_is_noplt_call_p.
2275 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
2277         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
2278         declaration.
2279         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
2280         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
2281         (call_symbol): Likewise.
2283 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2285         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
2286         for vectorizing multiplication patterns.
2287         * tree-vectorizer.h: Adjust the number of patterns.
2289 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
2291         * config/i386/sse.md (*vec_concatv2df): Declare added
2292         alternatives as sselog type.
2294 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2296         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
2297         all GPRs.
2299 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2301         * config/s390/s390.c (s390_expand_tbegin): Expand either
2302         tbegin_1_z13 or tbegin_1 depending on VX flag.
2303         * config/s390/s390.md ("tbegin_1_z13"): New expander.
2305 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2307         * config/s390/s390.opt: Clarify description for -mzvector
2308         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
2309         -mzvector.
2311 2015-08-06  Richard Biener  <rguenther@suse.de>
2313         * gimple.h (gimple_call_set_fn): Access op member directly.
2314         (gimple_call_chain_ptr): Likewise.
2315         (gimple_call_set_chain): Likewise.
2316         (gimple_cond_lhs_ptr): Likewise.
2317         (gimple_cond_set_lhs): Likewise.
2318         (gimple_cond_rhs_ptr): Likewise.
2319         (gimple_cond_set_rhs): Likewise.
2320         (gimple_cond_true_label): Likewise.
2321         (gimple_cond_set_true_label): Likewise.
2322         (gimple_cond_set_false_label): Likewise.
2323         (gimple_cond_false_label): Likewise.
2324         (gimple_label_label): Likewise.
2325         (gimple_label_set_label): Likewise.
2326         (gimple_goto_set_dest): Likewise.
2327         (gimple_asm_input_op): Likewise.
2328         (gimple_asm_input_op_ptr): Likewise.
2329         (gimple_asm_set_input_op): Likewise.
2330         (gimple_asm_output_op): Likewise.
2331         (gimple_asm_output_op_ptr): Likewise.
2332         (gimple_asm_set_output_op): Likewise.
2333         (gimple_asm_clobber_op): Likewise.
2334         (gimple_asm_set_clobber_op): Likewise.
2335         (gimple_asm_label_op): Likewise.
2336         (gimple_asm_set_label_op): Likewise.
2337         (gimple_switch_index): Likewise.
2338         (gimple_switch_index_ptr): Likewise.
2339         (gimple_return_retval_ptr): Likewise.
2340         (gimple_return_retval): Likewise.
2341         (gimple_return_set_retval): Likewise.
2342         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
2343         (gimple_switch_label): Likewise.
2344         (gimple_switch_set_label): Likewise.
2346 2015-08-06  Richard Biener  <rguenther@suse.de>
2348         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
2349         bool comparison canonicalization and restrict to integers.
2351 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
2353         * coretypes.h (enum symbol_visibility): Relocate here.
2354         * flag-types.h (enum symbol_visibility): Remove.
2355         * tree-core.h (enum symbol_visibility): Remove.
2357 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
2359         PR target/66870
2360         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
2361         for no_split_stack function attribute along with
2362         flag_split_stack.
2363         (rs6000_expand_split_stack_prologue): Likewise.
2365 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2366             Jeff Law  <law@redhat.com>
2368         PR c/16351
2369         * doc/invoke.texi (Wnull-dereference): New.
2370         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
2371         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
2372         Warn for potential NULL dereferences.
2373         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
2374         * ubsan.c (instrument_nonnull_arg): Call
2375         infer_nonnull_range_by_attribute.
2376         (instrument_nonnull_return): Likewise.
2377         * common.opt (Wnull-dereference); New.
2378         * gimple.c (infer_nonnull_range): Remove bool arguments.
2379         (infer_nonnull_range_by_dereference): New.
2380         (infer_nonnull_range_by_attribute): New.
2381         * gimple.h: Update declarations.
2383 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2385         * gensupport.c (sequence_num): Replace with...
2386         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
2387         ...these new variables.
2388         (init_rtx_reader_args_cb): Update accordingly.
2389         (get_num_code_insns): Likewise.
2390         (read_md_rtx): Rework to use a while loop and get_c_test.
2391         Use the new counters.  Remove redundant DEFINE_SUBST case.
2392         * genoutput.c (gen_split): Delete.
2393         (main): Don't call it.
2395 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2397         * gensupport.h (get_c_test): Declare.
2398         * gensupport.c (get_c_test): New function.
2399         * genconditions.c (main): Use it.
2400         * genrecog.c (validate_pattern): Likewise.
2401         (match_pattern_1): Likewise.  Remove c_test argument.
2402         (match_pattern): Update accordingly and remove c_test argument.
2403         (main): Update accordingly.
2405 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2407         * gensupport.h (get_num_insn_codes): Declare.
2408         * gensupport.c (get_num_insn_codes): New function.
2409         * genattrtab.c (optimize_attrs): Rename max_insn_code to
2410         num_insn_codes.
2411         (main): Likewise.  Use get_num_insn_codes.
2412         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
2414 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2416         PR middle-end/66311
2417         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
2418         is zero- rather than sign-extended.
2420 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2422         * target-insns.def (can_extend): Delete.
2424 2015-08-05  Richard Biener  <rguenther@suse.de>
2426         PR tree-optimization/67121
2427         * tree-if-conv.c (combine_blocks): Clear range-info produced
2428         by stmts no longer executed conditionally.
2430 2015-08-05  Nick Clifton  <nickc@redhat.com>
2432         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
2433         to allow identical far pointers to remain.
2435 2015-08-05  Richard Biener  <rguenther@suse.de>
2437         PR middle-end/67120
2438         * match.pd: Compare address bases with == if they are decls
2439         or SSA names, not operand_equal_p.  Otherwise fail.
2441 2015-08-05  Richard Biener  <rguenther@suse.de>
2443         PR tree-optimization/67055
2444         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
2445         NULL gimple_block.
2447         * g++.dg/torture/pr67055.C: New testcase.
2449 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2451         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
2452         noavx512vl.
2453         (define_attr "enabled"): Handle avx521vl and noavx512vl.
2454         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
2455         AVX-512 alternative out of SSE.
2456         (define_insn "*vec_concatv2df"): Ditto.
2458 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2460         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
2461         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
2462         CODE_FOR_avx_ptestv4di.
2463         * config/i386/sse.md (define_mode_iterator V_AVX): New.
2464         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
2465         (define_insn "avx_ptest256"): Merge this ...
2466         (define_insn "sse4_1_ptest"): And this ...
2467         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
2469 2015-08-05  Richard Biener  <rguenther@suse.de>
2471         PR tree-optimization/67109
2472         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
2473         against too big groups.  Print whether this is a load or store
2474         group.  Rename from ...
2475         (vect_analyze_group_access): ... this which is now a wrapper
2476         dissolving an invalid group.
2477         (vect_analyze_data_ref_accesses): Print whether this is a load
2478         or store group.
2480 2015-08-05  Richard Biener  <rguenther@suse.de>
2482         PR middle-end/67107
2483         * match.pd: Guard const_binop result checking against NULL_TREE
2484         result.
2486 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
2488         * cse.c (cse_insn): Restoring old behaviour for src_eqv
2489          when dest and value in the REG_EQUAL are same and dest
2490          is STRICT_LOW_PART.
2492 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
2494         * config/moxie/moxie.h (PRINT_OPERAND,
2495           PRINT_OPERAND_ADDRESS): Remove macros.
2496         * config/moxie/moxie-protos.h (moxie_print_operand,
2497           moxie_print_operand_address): Remove declaration.
2498         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
2499           TARGET_PRINT_OPERAND_ADDRESS): Define.
2500           (moxie_print_operand, moxie_print_operand_address): Make static.
2502 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2504         PR target/66731
2505         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
2506         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
2508 2015-08-04  Richard Biener  <rguenther@suse.de>
2510         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
2511         generated code.
2512         (dt_operand::gen_gimple_expr): Adjust.
2514 2015-08-04  Richard Biener  <rguenther@suse.de>
2516         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
2517         bool compares on RHS.
2518         * match.pd: Add X ==/!= !X is false/true pattern.
2520 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
2522         * config/aarch64/aarch64.c: Change inner loop statement cost
2523         to be consistent with other targets.
2525 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
2527         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
2528         targets.
2530 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
2532         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
2533         (machine_function): Remove pseudos field.
2535 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2537         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2538         Exit early and use target_option_current_node if processing current
2539         pragma.
2541 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2543         * doc/extend.texi (AArch64 Function Attributes): New node.
2544         (AArch64 Pragmas): Likewise.
2546 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2548         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2549         Initialize simd builtins if TARGET_SIMD.
2550         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2551         Make sure that the builtins are initialized only once no matter how
2552         many times the function is called.
2553         (aarch64_init_builtins): Unconditionally initialize crc builtins.
2554         (aarch64_relayout_simd_param): New function.
2555         (aarch64_simd_expand_args): Use above during argument expansion.
2556         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
2557         simd builtins if TARGET_SIMD.
2558         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
2559         prototype.
2560         (aarch64_relayout_simd_types): Likewise.
2562 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2564         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
2565         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
2566         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
2567         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2568         static keyword.
2569         (aarch64_reset_previous_fndecl): New function.
2570         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
2571         the string.
2572         * config/aarch64/aarch64-c.c: New file.
2573         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
2574         Push and pop options at beginning and end.  Remove ifdef
2575         __ARM_FEATURE_CRC32.
2576         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
2577         Add pragma +nothing+simd and +nothing+crypto where appropriate.
2578         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
2579         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
2580         Define prototype.
2581         (aarch64_register_pragmas): Likewise.
2582         (aarch64_reset_previous_fndecl): Likewise.
2583         (aarch64_process_target_attr): Likewise.
2584         (aarch64_override_options_internal): Likewise.
2586 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2588         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
2589         New function.
2590         (aarch64_can_inline_p): Likewise.
2591         (TARGET_CAN_INLINE_P): Define.
2593 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2595         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2596         Remove static.  Handle OPT_mgeneral_regs_only,
2597         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
2598         OPT_momit_leaf_frame_pointer.
2599         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
2600         (aarch64_attr_opt_type): New enum.
2601         (aarch64_attribute_info): New struct.
2602         (aarch64_handle_attr_arch): New function.
2603         (aarch64_handle_attr_cpu): Likewise.
2604         (aarch64_handle_attr_tune): Likewise.
2605         (aarch64_handle_attr_isa_flags): Likewise.
2606         (aarch64_attributes): New table.
2607         (aarch64_process_one_target_attr): New function.
2608         (num_occurences_in_str): Likewise.
2609         (aarch64_process_target_attr): Likewise.
2610         (aarch64_option_valid_attribute_p): Likewise.
2611         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2612         * config/aarch64/aarch64-protos.h: Include input.h
2613         (aarch64_handle_option): Declare prototype.
2615 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2617         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
2618         * config/aarch64/aarch64.c: Include target-globals.h
2619         (aarch64_previous_fndecl): New variable.
2620         (aarch64_set_current_function): New function.
2621         (TARGET_SET_CURRENT_FUNCTION): Define.
2623 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2625         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
2626         (explicit_arch): Likewise.
2627         (x_aarch64_isa_flags): Likewise.
2628         (mgeneral-regs-only): Mark as Save.
2629         (mfix-cortex-a53-835769): Likewise.
2630         (mcmodel=): Likewise.
2631         (mstrict-align): Likewise.
2632         (momit-leaf-frame-pointer): Likewise.
2633         (mtls-dialect): Likewise.
2634         (master=): Likewise.
2635         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
2636         (aarch64_isa_flags): Remove extern declaration.
2637         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
2638         to indicate success or failure.
2639         (aarch64_validate_march): Likewise.
2640         (aarch64_validate_mtune): Likewise.
2641         (aarch64_isa_flags): Delete.
2642         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
2643         instead of aarch64_isa_flags.
2644         (aarch64_get_tune_cpu): New function.
2645         (aarch64_get_arch): Likewise.
2646         (aarch64_override_options): Use above and set up explicit_tune_core
2647         and explicit_arch.
2648         (aarch64_print_extension): Move earlier in file.  Add isa_flags
2649         argument and use that instead of the global aarch64_isa_flags.
2650         (aarch64_option_save): New function.
2651         (aarch64_option_restore): Likewise.
2652         (aarch64_option_print): Likewise.
2653         (aarch64_declare_function_name): Likewise.
2654         (aarch64_start_file): Delete.
2655         (TARGET_ASM_FILE_START): Do not define.
2656         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
2657         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
2658         Declare prototype.
2660 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2662         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
2663         flag_omit_leaf_frame_pointer to 2.
2665 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2667         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
2668         define to 0 or 1.
2669         (TARGET_FIX_ERR_A53_835769): New macro.
2670         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2671         handling of opts->x_aarch64_fix_a53_err835769.
2672         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
2673         than aarch64_fix_a53_err835769.
2674         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
2675         * config/aarch64/aarch64-linux.h: Likewise.
2677 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
2679         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
2680         ix86_expand_int_movcc as boolean.
2682 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2684         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
2685         (aarch64_cpu_string): Likewise.
2686         (aarch64_tune_string): Likewise.
2687         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
2688         (aarch64_parse_extension): Return aarch64_parse_opt_result.
2689         Add extra argument to put result into.
2690         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
2691         (aarch64_parse_cpu): Add arguments to put results into. Return
2692         aarch64_parse_opt_result.
2693         (aarch64_parse_tune): Likewise.
2694         (aarch64_override_options_after_change_1): New function.
2695         (aarch64_override_options_internal): New function.
2696         (aarch64_validate_mcpu): Likewise.
2697         (aarch64_validate_march): Likewise.
2698         (aarch64_validate_mtune): Likewise.
2699         (aarch64_override_options): Update to reflect above changes.
2700         Move some logic into aarch64_override_options_internal.
2701         Initialize target_option_default_node and target_option_current_node.
2702         (aarch64_override_options_after_change): Move logic into
2703         aarch64_override_options_after_change_1 and call it with global_options.
2704         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
2705         flag values from that.
2707 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2709         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2710         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
2711         * config/aarch64/aarch64.c (struct processor): Add arch field.
2712         (all_architectures): Handle above, move above all_cores.
2713         (all_cores): Handle above.
2714         (aarch64_parse_arch): Handle above changes.
2715         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
2716         above.  Update comments.
2717         (armv8.1-a): Likewise.
2718         * config/aarch64/aarch64-cores.def: Update according to above.
2719         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
2720         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
2721         aarch64_arch_driver_info.
2723 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2725         * config/aarch64/aarch64.c (struct processor): Add ident field.
2726         Rename core sched_core.
2727         (all_cores): Handle above changes.
2728         (all_architectures): Likewise.
2729         (aarch64_parse_arch): Likewise.
2730         (aarch64_override_options): Likewise.
2732 2015-08-04  Richard Biener  <rguenther@suse.de>
2734         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
2735         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
2736         comparisons embedded in [VEC_]COND_EXPRs.
2738 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
2740         * tree-if-conv.c: Fix various typos in comments.
2741         * tree-vect-stmts.c: Likewise.
2743 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2745         PR tree-optimization/67043
2746         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
2747         preheader after hoisting invariant in it.
2748         (find_defs): Force recomputation of all luids.
2750 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
2752         * config/rs6000/htm.md (tabort.): Restrict the source operand to
2753         using a base register.
2755 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
2757         * main.c (main): Pass in NULL for toplev's external_timer.
2758         * timevar.c: Include coretypes.h.
2759         (class timer::named_items): New.
2760         (timer::named_items::named_items): New.
2761         (timer::named_items::~named_items): New.
2762         (timer::named_items::push): New.
2763         (timer::named_items::pop): New.
2764         (timer::named_items::print): New.
2765         (timer::timer): Initialize field "m_jit_client_items".
2766         (timer::~timer): New.
2767         (timer::push): Move bulk of implementation to...
2768         (timer::push_internal): ...here.  New function.
2769         (timer::pop): Move bulk of implementation to...
2770         (timer::pop_internal): ...here.  New function.
2771         (timer::push_client_item): New.
2772         (timer::pop_client_item): New.
2773         (timer::print_row): New function, taken from timer::print.
2774         (timer::print): Print "GCC items" header if we also have client
2775         items.  Move row-printing to timer::print_row.  Print any client
2776         items.
2777         (timer::get_topmost_item_name): New method.
2778         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
2779         (TV_JIT_CLIENT_CODE): New.
2780         * timevar.h (timer::push_client_item): New declaration.
2781         (timer::pop_client_item): New declaration.
2782         (timer::get_topmost_item_name): New method.
2783         (timer::push_internal): New declaration.
2784         (timer::pop_internal): New declaration.
2785         (timer::print_row): New declaration.
2786         (timer::named_items): New declaration.
2787         (timer::m_jit_client_items): New field.
2788         (timer): Add friend class named_items.
2789         (auto_timevar::auto_timevar): Add timer param.
2790         (auto_timevar::~auto_timevar): Use field "m_timer".
2791         (auto_timevar::m_timer): New field.
2792         * toplev.c (initialize_rtl): Add g_timer as param when
2793         constructing auto_timevar instance.
2794         (toplev::toplev): Add "external_timer" param, and use it to
2795         initialize the "g_timer" global if non-NULL.
2796         (toplev::~toplev): If this created "g_timer", delete it.
2797         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
2798         with "external_timer" timer *.
2800 2015-08-03  Alexander Basov <coohpt@gmail.com>
2802         PR middle-end/64744
2803         PR middle-end/48470
2804         PR middle-end/43404
2805         * cfgexpand.c (expand_one_var): Add check if stack is going to
2806         be used in naked function.
2807         * expr.c (expand_expr_addr_expr_1): Remove excess checking
2808         whether expression should not reside in MEM.
2809         * function.c (use_register_for_decl): Do not use registers for
2810         non-register things (volatile, float, BLKMode) in naked functions.
2812 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
2814         PR target/67060
2815         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
2816         Adjust splits to match new pattern.
2818 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2820         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
2821         (VEC_M): Likewise.
2822         (VEC_N): Likewise.
2823         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
2824         point in VSX registers.
2826         * config/rs6000/constraints.md (wb constraint): Document unused
2827         w<x> constraint.
2828         (we constraint): Likewise.
2829         (wo constraint): Likewise.
2830         (wp constraint): New constraint for IEEE 128-bit floating point in
2831         VSX registers.
2832         (wq constraint): Likewise.
2834         * config/rs6000/predicates.md (easy_fp_constant): Add support for
2835         IEEE 128-bit floating point in VSX registers.
2836         (easy_scalar_constant): Likewise.
2838         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
2839         constraints (wp, wq) for IEEE 128-bit floating point in VSX
2840         registers.
2841         (rs6000_init_hard_regno_mode_ok): Likewise.
2843         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
2844         floating point in VSX registers.
2845         (VSX_L): Likewise.
2846         (VSX_M): Likewise.
2847         (VSX_M2): Likewise.
2848         (VSm): Likewise.
2849         (VSs): Likewise.
2850         (VSr): Likewise.
2851         (VSa): Likewise.
2852         (VSv): Likewise.
2853         (vsx_le_permute_<mode>): Add support to properly swap bytes for
2854         IEEE 128-bit floating point in VSX registers on little endian.
2855         (vsx_le_undo_permute_<mode>): Likewise.
2856         (vsx_le_perm_load_<mode>): Likewise.
2857         (vsx_le_perm_store_<mode>): Likewise.
2858         (splitters for IEEE 128-bit fp moves): Likewise.
2860         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
2861         wq constraints.
2863         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
2864         floating point in VSX registers.
2865         (VM2): Likewise.
2867         * doc/md.text (Machine Constraints): Document wp and wq
2868         constraints on PowerPC.
2870 2015-08-03  Jeff Law  <law@redhat.com>
2872         PR middle-end/66314
2873         PR gcov-profile/66899
2874         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
2875         iterate over the jump threading paths when an element in the
2876         jump threading paths array is eliminated.
2878 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
2880         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
2882 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
2884         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
2885         is_use_properly_guarded the variable def_preds.  Free its
2886         contents before returning.
2887         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
2888         (is_use_properly_guarded): Replace local variable def_preds with
2889         a parameter.  Adjust accordingly.  Only update *def_preds if it's
2890         the empty vector.
2892 2015-08-03  Richard Biener  <rguenther@suse.de>
2894         * genmatch.c (simplify::for_subst_vec): New member.
2895         (binary_ok): New helper for for lowering.
2896         (lower_for): Delay substituting operators into result expressions
2897         if we can merge the results eventually again.
2898         (capture_info::walk_result): Adjust for user_id appearing as
2899         result expression operator.
2900         (expr::gen_transform): Likewise.
2901         (dt_simplify::gen_1): Likewise.
2902         (dt_simplify::gen): Pass not substituted operators to tail
2903         functions or initialize local variable with it.
2904         (decision_tree::gen): Adjust function signature.
2905         * match.pd: Fix tests against global code and add default
2906         cases to switch stmts.
2908 2015-08-03  Richard Biener  <rguenther@suse.de>
2910         * genmatch.c (dt_simplify::gen): Create captures array
2911         with an initializer.
2913 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2915         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
2916         the host compiler is affected by placement new aliasing bug.
2917         * configure: Regenerate.
2918         * Makefile.in (ALIASING_FLAGS): New variable.
2919         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
2921 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2923         PR target/66731
2924         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
2925         (negmulsf3_vfp): Likewise.
2926         (muldf3negdf_vfp): Disable for -frounding-math.
2927         (mulsf3negsf_vfp): Likewise.
2928         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
2929         fix MULT cost with -frounding-math.
2931 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2933         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
2934         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
2935         explicit.  Prefer to add the flag whenever possible.
2936         (noce_process_if_block): Try noce_try_store_flag_constants before
2937         noce_try_cmove.
2939 2015-08-03  Richard Biener  <rguenther@suse.de>
2941         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
2942         New hash-map to record equivalent transforms.
2943         (dt_node::analyze): Populate the equivalent transforms hash-map.
2944         (dt_simplify::info): Add reference to hash-map entry.
2945         (dt_simplify::gen): If we have split out a function for the
2946         transform, generate a call to it.
2947         (sinfo_hashmap_traits::hash): New function.
2948         (compare_op): New helper function for ...
2949         (sinfo_hashmap_traits::equal_keys): ... this new function.
2950         (decision_tree::gen): Split out common equivalent transforms
2951         into functions.
2953 2015-08-03  Richard Biener  <rguenther@suse.de>
2955         * gimple-fold.c (fold_gimple_assign): Remove folding of
2956         the comparison in COND_EXPRs.
2958 2015-08-03  Richard Biener  <rguenther@suse.de>
2960         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
2961         on the rhs of assignments first simplify the embedded
2962         GENERIC condition.
2964 2015-08-03  Richard Biener  <rguenther@suse.de>
2966         PR tree-optimization/66917
2967         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
2968         field.
2969         (DR_VECT_AUX): New macro.
2970         (set_dr_misalignment): Adjust.
2971         (dr_misalignment): Likewise.
2972         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2973         Compute whether the base is at least element aligned.
2974         * tree-vect-stmts.c (ensure_base_align): Adjust.
2975         (vectorizable_store): If the base is not element aligned
2976         preserve alignment of the original access if misalignment is unknown.
2977         (vectorizable_load): Likewise.
2979 2015-08-02  Martin Sebor  <msebor@redhat.com>
2981         * c-family/c.opt (-Wframe-address): New warning option.
2982         * doc/invoke.texi (Wframe-address): Document it.
2983         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
2984         Clarify possible effects of calling the functions with non-zero
2985         arguments and mention -Wframe-address.
2986         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
2988 2015-08-01  Michael Collison  <michael.collison@linaro.org
2989             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2991         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
2992         (*arm_umin_cmp): Likewise.
2994 2015-08-01  Caroline Tice  <cmtice@google.com>
2996         PR 66521
2997         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
2998         global variables.
2999         (vtbl_find_mangled_name):  New function.
3000         (vtbl_register_mangled_name):  New function.
3001         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
3002         mangled name in mangled name vectors.
3003         (find_or_create_vtbl_map_node):  Ditto.
3004         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
3005         update recursion_depth on function entry; pass it to every recursive
3006         call; automatically exit if depth > 25 (give up looking at that point).
3007         (verify_bb_vtables):  Initialize recursion_depth and pass it to
3008         var_is_used_for_virtual_call_p.
3009         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
3010         global variable decls.
3011         (vtbl_register_mangled_name): New extern function decl.
3013 2015-08-01  Tom de Vries  <tom@codesourcery.com>
3015         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
3016         function.
3017         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
3018         Declare.
3019         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
3020         operation_no_trapping_overflow.  Allow non-overflow operations.
3021         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
3022         operations.
3024 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3026         PR target/67049
3027         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
3029 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3031         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
3032         Enable for TARGET_32BIT.
3033         (*if_move_neg): Likewise.
3035 2015-07-31  Nick Clifton  <nickc@redhat.com>
3037         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
3038         Returns true for __model__.
3039         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3041 2015-07-31  Alan Modra  <amodra@gmail.com>
3043         PR target/66870
3044         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
3045         (rs6000_emit_prologue): Set it.
3046         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
3048 2015-07-31  Richard Biener  <rguenther@suse.de>
3050         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
3051         -> X == (C1 ^ C2) which is already implemented in match.pd.
3052         Remove redundant dispatching to fold_relational_const.
3053         Move unordered self and NaN compares ...
3054         * match.pd: ... as patterns here.  Remove some stray captures
3055         and add a comment.
3057 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
3059         * config/i386/i386.c
3060         (bdesc_special_args): Convert mask type from signed to unsigned for
3061         masked builtins.
3062         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
3063         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
3064         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
3065         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
3066         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
3067         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
3068         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
3069         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
3070         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
3071         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
3072         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
3073         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
3074         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
3075         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
3076         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
3077         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
3078         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
3079         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
3080         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
3081         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
3082         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
3083         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
3084         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
3085         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
3086         * config/i386/i386-builtin-types.def
3087         (V16QI_FTYPE_V16SI): Remove.
3088         (V8DF_FTYPE_V8SI): Ditto.
3089         (V8HI_FTYPE_V8DI): Ditto.
3090         (V8SI_FTYPE_V8DI): Ditto.
3091         (V8SF_FTYPE_V8DF): Ditto.
3092         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
3093         (V16HI_FTYPE_V16SI): Ditto.
3094         (V16SF_FTYPE_V16HI): Ditto.
3095         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3096         (V16SF_FTYPE_V16SI): Ditto.
3097         (V4DI_FTYPE_V4DI): Ditto.
3098         (V16SI_FTYPE_V16SF): Ditto.
3099         (V16SF_FTYPE_FLOAT): Ditto.
3100         (V8DF_FTYPE_DOUBLE): Ditto.
3101         (V8DI_FTYPE_INT64): Ditto.
3102         (V8DI_FTYPE_V4DI): Ditto.
3103         (V16QI_FTYPE_V8DI): Ditto.
3104         (UINT_FTYPE_V4SF): Ditto.
3105         (UINT64_FTYPE_V4SF): Ditto.
3106         (UINT_FTYPE_V2DF): Ditto.
3107         (UINT64_FTYPE_V2DF): Ditto.
3108         (V16SI_FTYPE_V16SI): Ditto.
3109         (V8DI_FTYPE_V8DI): Ditto.
3110         (V16SI_FTYPE_PV4SI): Ditto.
3111         (V16SF_FTYPE_PV4SF): Ditto.
3112         (V8DI_FTYPE_PV2DI): Ditto.
3113         (V8DF_FTYPE_PV2DF): Ditto.
3114         (V4DI_FTYPE_PV2DI): Ditto.
3115         (V4DF_FTYPE_PV2DF): Ditto.
3116         (V16SI_FTYPE_PV2SI): Ditto.
3117         (V16SF_FTYPE_PV2SF): Ditto.
3118         (V8DI_FTYPE_PV4DI): Ditto.
3119         (V8DF_FTYPE_PV4DF): Ditto.
3120         (V8SF_FTYPE_FLOAT): Ditto.
3121         (V4SF_FTYPE_FLOAT): Ditto.
3122         (V4DF_FTYPE_DOUBLE): Ditto.
3123         (V8SF_FTYPE_PV4SF): Ditto.
3124         (V8SI_FTYPE_PV4SI): Ditto.
3125         (V4SI_FTYPE_PV2SI): Ditto.
3126         (V8SF_FTYPE_PV2SF): Ditto.
3127         (V8SI_FTYPE_PV2SI): Ditto.
3128         (V16SF_FTYPE_PV8SF): Ditto.
3129         (V16SI_FTYPE_PV8SI): Ditto.
3130         (V8DI_FTYPE_V8SF): Ditto.
3131         (V4DI_FTYPE_V4SF): Ditto.
3132         (V2DI_FTYPE_V4SF): Ditto.
3133         (V64QI_FTYPE_QI): Ditto.
3134         (V32HI_FTYPE_HI): Ditto.
3135         (V8UHI_FTYPE_V8UHI): Ditto.
3136         (V16UHI_FTYPE_V16UHI): Ditto.
3137         (V32UHI_FTYPE_V32UHI): Ditto.
3138         (V2UDI_FTYPE_V2UDI): Ditto.
3139         (V4UDI_FTYPE_V4UDI): Ditto.
3140         (V8UDI_FTYPE_V8UDI): Ditto.
3141         (V4USI_FTYPE_V4USI): Ditto.
3142         (V8USI_FTYPE_V8USI): Ditto.
3143         (V16USI_FTYPE_V16USI): Ditto.
3144         (V2DF_FTYPE_V2DF_UINT64): Ditto.
3145         (V2DI_FTYPE_V2DF_V2DF): Ditto.
3146         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
3147         (V8DF_FTYPE_V8DF_V8DI): Ditto.
3148         (V4SF_FTYPE_V4SF_UINT64): Ditto.
3149         (V4SI_FTYPE_V4SF_V4SF): Ditto.
3150         (V16SF_FTYPE_V16SF_V16SI): Ditto.
3151         (V64QI_FTYPE_V32HI_V32HI): Ditto.
3152         (V32HI_FTYPE_V16SI_V16SI): Ditto.
3153         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
3154         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
3155         (V32HI_FTYPE_V64QI_V64QI): Ditto.
3156         (V32HI_FTYPE_V32HI_V32HI): Ditto.
3157         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
3158         (V16SI_FTYPE_V16SI_V4SI): Ditto.
3159         (V16SI_FTYPE_V16SI_V16SI): Ditto.
3160         (V16SI_FTYPE_V32HI_V32HI): Ditto.
3161         (V16SI_FTYPE_V16SI_SI): Ditto.
3162         (V8DI_FTYPE_V8DI_V8DI): Ditto.
3163         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
3164         (V8DI_FTYPE_V16SI_V16SI): Ditto.
3165         (V8DI_FTYPE_V8DI_V2DI): Ditto.
3166         (QI_FTYPE_QI): Ditto.
3167         (SI_FTYPE_SI): Ditto.
3168         (DI_FTYPE_DI): Ditto.
3169         (QI_FTYPE_QI_QI): Ditto.
3170         (QI_FTYPE_QI_INT): Ditto.
3171         (HI_FTYPE_HI_INT): Ditto.
3172         (SI_FTYPE_SI_INT): Ditto.
3173         (DI_FTYPE_DI_INT): Ditto.
3174         (HI_FTYPE_V16QI_V16QI): Ditto.
3175         (SI_FTYPE_V32QI_V32QI): Ditto.
3176         (DI_FTYPE_V64QI_V64QI): Ditto.
3177         (QI_FTYPE_V8HI_V8HI): Ditto.
3178         (HI_FTYPE_V16HI_V16HI): Ditto.
3179         (SI_FTYPE_V32HI_V32HI): Ditto.
3180         (QI_FTYPE_V4SI_V4SI): Ditto.
3181         (QI_FTYPE_V8SI_V8SI): Ditto.
3182         (QI_FTYPE_V2DI_V2DI): Ditto.
3183         (QI_FTYPE_V4DI_V4DI): Ditto.
3184         (QI_FTYPE_V8DI_V8DI): Ditto.
3185         (HI_FTYPE_V16SI_V16SI): Ditto.
3186         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
3187         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
3188         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
3189         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
3190         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
3191         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
3192         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
3193         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
3194         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
3195         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
3196         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
3197         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
3198         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
3199         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
3200         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
3201         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
3202         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
3203         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
3204         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
3205         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
3206         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
3207         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
3208         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
3209         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
3210         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
3211         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
3212         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
3213         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
3214         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
3215         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
3216         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
3217         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
3218         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
3219         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
3220         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
3221         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
3222         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
3223         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
3224         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
3225         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
3226         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
3227         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
3228         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
3229         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
3230         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
3231         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
3232         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
3233         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
3234         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
3235         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
3236         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
3237         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
3238         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
3239         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
3240         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
3241         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
3242         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
3243         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
3244         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
3245         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
3246         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
3247         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
3248         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
3249         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
3250         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
3251         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
3252         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
3253         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
3254         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
3255         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
3256         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
3257         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
3258         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
3259         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
3260         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
3261         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
3262         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
3263         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
3264         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
3265         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
3266         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
3267         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
3268         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
3269         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
3270         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
3271         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
3272         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
3273         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
3274         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
3275         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
3276         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
3277         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
3278         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
3279         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
3280         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
3281         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
3282         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
3283         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
3284         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
3285         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
3286         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
3287         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3288         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3289         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3290         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
3291         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
3292         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
3293         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
3294         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
3295         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
3296         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
3297         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
3298         (HI_FTYPE_HI): Ditto.
3299         (HI_FTYPE_V16QI): Ditto.
3300         (SI_FTYPE_V32QI): Ditto.
3301         (DI_FTYPE_V64QI): Ditto.
3302         (QI_FTYPE_V8HI): Ditto.
3303         (HI_FTYPE_V16HI): Ditto.
3304         (SI_FTYPE_V32HI): Ditto.
3305         (QI_FTYPE_V4SI): Ditto.
3306         (QI_FTYPE_V8SI): Ditto.
3307         (HI_FTYPE_V16SI): Ditto.
3308         (QI_FTYPE_V2DI): Ditto.
3309         (QI_FTYPE_V4DI): Ditto.
3310         (QI_FTYPE_V8DI): Ditto.
3311         (V16QI_FTYPE_HI): Ditto.
3312         (V32QI_FTYPE_SI): Ditto.
3313         (V64QI_FTYPE_DI): Ditto.
3314         (V8HI_FTYPE_QI): Ditto.
3315         (V16HI_FTYPE_HI): Ditto.
3316         (V32HI_FTYPE_SI): Ditto.
3317         (V4SI_FTYPE_QI): Ditto.
3318         (V4SI_FTYPE_HI): Ditto.
3319         (V8SI_FTYPE_QI): Ditto.
3320         (V8SI_FTYPE_HI): Ditto.
3321         (V2DI_FTYPE_QI): Ditto.
3322         (V4DI_FTYPE_QI): Ditto.
3323         (HI_FTYPE_HI_HI): Ditto.
3324         (SI_FTYPE_SI_SI): Ditto.
3325         (DI_FTYPE_DI_DI): Ditto.
3326         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3327         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3328         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3329         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3330         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3331         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3332         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3333         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3334         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3335         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3336         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3337         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3338         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3339         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3340         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3341         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3342         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3343         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3344         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3345         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3346         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
3347         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
3348         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
3349         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
3350         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
3351         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
3352         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
3353         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
3354         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
3355         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
3356         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
3357         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
3358         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
3359         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
3360         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
3361         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
3362         (V16SI_FTYPE_HI): Ditto.
3363         (V8DI_FTYPE_QI): Ditto.
3364         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3365         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3366         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3367         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3368         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3369         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3370         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3371         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3372         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3373         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3374         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3375         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3376         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3377         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3378         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3379         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
3380         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
3381         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3382         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3383         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3384         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3385         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3386         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3387         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3388         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3389         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
3390         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
3391         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
3392         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3393         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3394         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3395         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3396         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3397         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
3398         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
3399         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
3400         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3401         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3402         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3403         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
3404         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3405         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3406         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
3407         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
3408         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3409         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3410         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3411         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3412         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3413         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3414         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3415         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3416         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
3417         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3418         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3419         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3420         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3421         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3422         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3423         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3424         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3425         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3426         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3427         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3428         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3429         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
3430         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
3431         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
3432         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3433         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
3434         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
3435         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
3436         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3437         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
3438         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
3439         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
3440         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
3441         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
3442         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3443         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
3444         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
3445         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3446         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3447         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3448         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3449         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3450         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3451         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3452         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3453         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3454         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3455         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3456         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3457         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3458         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3459         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3460         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3461         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3462         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3463         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3464         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3465         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3466         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3467         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3468         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3469         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3470         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3471         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3472         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3473         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3474         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3475         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3476         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3477         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3478         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3479         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
3480         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
3481         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
3482         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3483         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3484         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3485         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
3486         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3487         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3488         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3489         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3490         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3491         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3492         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3493         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3494         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
3495         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
3496         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
3497         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3498         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3499         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3500         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3501         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3502         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3503         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3504         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3505         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3506         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3507         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3508         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3509         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3510         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3511         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3512         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3513         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3514         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3515         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3516         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3517         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3518         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
3519         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
3520         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
3521         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3522         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3523         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3524         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3525         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3526         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3527         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3528         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3529         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
3530         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3531         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3532         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
3533         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3534         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3535         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
3536         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
3537         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
3538         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3539         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3540         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
3541         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3542         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3543         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3544         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3545         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3546         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3547         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3548         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3549         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3550         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3551         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
3552         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3553         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3554         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3555         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3556         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3557         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3558         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3559         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3560         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3561         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3562         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3563         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3564         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3565         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3566         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3567         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3568         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3569         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3570         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3571         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3572         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3573         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3574         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3575         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3576         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3577         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
3578         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3579         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3580         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3581         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3582         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3583         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3584         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3585         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3586         (QI_FTYPE_V8DF_INT_QI): Ditto.
3587         (QI_FTYPE_V4DF_INT_QI): Ditto.
3588         (QI_FTYPE_V2DF_INT_QI): Ditto.
3589         (HI_FTYPE_V16SF_INT_HI): Ditto.
3590         (QI_FTYPE_V8SF_INT_QI): Ditto.
3591         (QI_FTYPE_V4SF_INT_QI): Ditto.
3592         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
3594 2015-07-31  Richard Biener  <rguenther@suse.de>
3596         * gimple-fold.c (fold_gimple_assign): Remove folding of
3597         GIMPLE_BINARY_RHS.
3599 2015-07-31  Tom de Vries  <tom@codesourcery.com>
3601         PR tree-optimization/66846
3602         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
3603         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
3604         (expand_omp_target) [ENABLE_CHECKING]: Same.
3605         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
3606         cfun if !LOOPS_NEED_FIXUP.
3607         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
3608         that omp_for already has its own loop struct.
3609         * tree-parloops.c (create_phi_for_local_result)
3610         (create_call_for_reduction): Handle simple latch bb.
3611         (create_parallel_loop): Add simple latch bb to preserve
3612         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
3613         (gen_parallel_loop): Remove call to cancel_loop_tree.
3614         (parallelize_loops): Skip loops that are inner loops of parallelized
3615         loops.
3616         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
3617         verify_loop_structure.
3619 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3621         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
3622         * config/v850/v850.md (RV_REGNUM): New constants.
3623         * config/v850/v850.c (v850_libcall_value): New functions.
3624         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
3625         (TARGET_LIBCALL_VALUE): Define.
3627 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3629         * rtl.h (lowpart_subreg): Move in file.
3630         * loop-iv.c (lowpart_subreg): Move to...
3631         * simplify-rtx.c (lowpart_subreg): ...here.
3632           (simplify_binary_operation_1): Use lowpart_subreg instead of
3633           simplify_gen_subreg.
3634         * expr.c (expand_expr_real_2): Ditto.
3635         * emit-rtl.c (gen_lowpart_common): Ditto.
3636         * combine.c (gen_lowpart_for_combine): Ditto.
3637         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
3638           expand_debug_source_expr): Ditto.
3640 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
3642         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
3643         (expand_builtin_atomic_clear): Remove support for atomic_clear
3644         pattern.
3646 2015-07-30  Richard Biener  <rguenther@suse.de>
3648         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
3649         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
3650         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
3651         redundant operand canonicalization.
3653 2015-07-30  David Sherwood  <david.sherwood@arm.com>
3655         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
3656         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
3657         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
3658         * config/arm/arm.c (neon_valid_immediate): Likewise.
3659         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
3660         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
3661         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
3662         (expand_vec_perm_vpshufb2_vpermq): Likewise.
3663         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
3664         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3665         * config/i386/sse.md
3666         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
3667         (*ssse3_palignr<mode>_perm): Likewise.
3668         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
3669         * config/spu/spu.c (arith_immediate_p): Likewise.
3670         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3671         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
3673 2015-07-30  Richard Biener  <rguenther@suse.de>
3675         * genmatch.c (decision_tree::gen_gimple): Merge with ...
3676         (decision_tree::gen_generic): ... this into ...
3677         (decision_tree::gen): ... this.
3678         (main): Adjust callers.
3680 2015-07-30  Richard Biener  <rguenther@suse.de>
3682         * genmatch.c (verbose): New global.
3683         (warning_at): Add overload with source_location.
3684         (capture_info::capture_info): Add bool whether generating gimple
3685         or generic.  Add gimple member.
3686         (capture_info::cinfo): Add capture member.
3687         (capture_info::walk_match): Record capture.  Warn on
3688         non-captured leafs.
3689         (capture_info::walk_c_expr): Add more fragments captures cannot
3690         escape through.  Warn on escaped captures.
3691         (dt_simplify::gen_1): Warn on operands we force to have no
3692         side-effects.
3693         (main): Initialize verbose.
3694         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
3696 2015-07-30  Richard Biener  <rguenther@suse.de>
3698         PR middle-end/67053
3699         * match.pd: Allow both operands to independently have conversion
3700         when simplifying compares of addresses.
3702 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
3704         PR target/66217
3705         PR target/67045
3706         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
3707         around those cases that need one.
3709 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
3711         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
3713 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
3715         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3716         New.  Copied from config/i386/gnu-user.h.
3717         (ASM_COMMENT_START): Likewise.
3718         (DBX_REGISTER_NUMBER): Likewise.
3720 2015-07-29  Richard Biener  <rguenther@suse.de>
3722         * gimple-fold.c (fold_gimple_cond): Remove.
3723         (fold_stmt_1): Do not call it.
3725 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
3727         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
3728         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
3730         * config/aarch64/aarch64-modes.def: Add HFmode.
3732         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3733         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
3735         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
3736         aarch64_promoted_type): New.
3738         (aarch64_float_const_representable_p): Disable HFmode.
3739         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
3740         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
3741         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
3743         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
3744         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
3746         * config/aarch64/iterators.md (GPF_F16): New.
3748 2015-07-29  Richard Biener  <rguenther@suse.de>
3750         * match.pd: Merge address comparison patterns and make them
3751         handle some more cases.
3753 2015-07-29  Richard Biener  <rguenther@suse.de>
3755         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
3756         (parser::parse_capture): Add bool argument on whether to reject
3757         unknown captures.
3758         (parser::parse_expr): Adjust.
3759         (parser::parse_op): Likewise.
3760         (parser::parse_pattern): Likewise.
3762 2015-07-29  Richard Biener  <rguenther@suse.de>
3764         * gimple-fold.c (has_use_on_stmt): New function.
3765         (replace_stmt_with_simplification): Use it to allow
3766         abnormals originally referenced in the stmt.
3767         (fold_stmt_1): Canonicalize operand order.
3769 2015-07-28  David Sherwood  <david.sherwood@arm.com>
3771         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
3772         GET_MODE_INNER unconditionally.
3773         * config/spu/spu.c (arith_immediate_p): Likewise.
3774         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
3775         * expmed.c (synth_mult): Remove check for VOIDmode result from
3776         GET_MODE_INNER.
3777         (expand_mult_const): Likewise.
3778         * fold-const.c (fold_binary_loc): Replace call to element_precision
3779         with call to GET_MODE_PRECISION.
3780         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
3781         m->name.
3782         (emit_mode_inner): Likewise.
3783         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
3784         result check.
3785         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
3786         (GET_MODE_UNIT_PRECISION): Likewise.
3787         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
3788         * simplify-rtx.c (simplify_immed_subreg): Likewise.
3789         * stor-layout.c (bitwise_type_for_mode): Update assert.
3790         (element_precision): Remove.
3792 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3794         * target-insns.def (reload_load_address): New targetm instruction
3795         pattern.
3796         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
3798 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3800         * target-insns.def (atomic_test_and_set): New targetm instruction
3801         pattern.
3802         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
3803         HAVE_*/gen_* interface.
3805 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3807         * target-insns.def (can_extend, ptr_extend): New targetm instruction
3808         patterns.
3809         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
3810         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3811         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3812         * rtlanal.c (nonzero_bits1): Likewise.
3813         (num_sign_bit_copies1): Likewise.
3815 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3817         * target-insns.def (eh_return): New targetm instruction pattern.
3818         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
3819         interface.
3820         * function.c (thread_prologue_and_epilogue_insns): Remove
3821         preprocessor condition.
3823 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3825         * target-insns.def (indirect_jump): New targetm instruction pattern.
3826         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
3827         interface.
3829 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3831         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
3832         instead of nonimmediate_operand.  Remove C condiition.
3834 2015-07-28  Richard Biener  <rguenther@suse.de>
3836         * match.pd: Add more simplification of address comparisons.
3838 2015-07-28  Richard Biener  <rguenther@suse.de>
3840         * match.pd: Re-order two cases in comparison with max/min
3841         value simplification to make it apply for bools.
3843 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3845         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
3846         Handle simple SIGN_EXTEND or ZERO_EXTEND.
3847         (aarch64_rtx_costs): Properly strip extend or extract before
3848         passing down to rtx costs again.
3850 2015-07-28  Nick Clifton  <nickc@redhat.com>
3852         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
3853         Optimizes the case where -mes0 is active and a constant symbolic
3854         address is used.
3855         * config/rl78/rl78-protos.h: Prototype the new function.
3856         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
3858 2015-07-28  Tom de Vries  <tom@codesourcery.com>
3860         * tree-parloops.c (reduc_stmt_res): New function.
3861         (initialize_reductions, add_field_for_reduction)
3862         (create_phi_for_local_result, create_loads_for_reductions)
3863         (create_stores_for_reduction, build_new_reduction): Handle case that
3864         reduc_stmt is a phi.
3865         (gather_scalar_reductions): Allow double_reduc reductions.
3867 2015-07-28  Richard Biener  <rguenther@suse.de>
3869         * fold-const.c (fold_comparison): Remove equality folding
3870         of decl addresses ...
3871         * match.pd: ... here and merge with existing pattern.
3873 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3875         PR tree-optimization/66828
3876         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
3877         from int64_t to uint64_t.
3879 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3881         * opts-common.c (read_cmdline_option): List DriverOnly enum values
3882         as valid only in the error message of the driver, not in the
3883         messages of the language compilers.
3885 2015-07-27  Tom de Vries  <tom@codesourcery.com>
3887         * tree-parloops.c (gather_scalar_reductions): Simplify function
3888         structure.
3890 2015-07-27  Marek Polacek  <polacek@redhat.com>
3892         * ipa-devirt.c (types_same_for_odr): Fix typo.
3894 2015-07-27  Jason Merrill  <jason@redhat.com>
3896         PR debug/66468
3897         * dwarf2out.c (gen_inlined_subroutine_die): Check
3898         cgraph_function_possibly_inlined_p.
3900 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
3902         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
3903         Place integer variant first.
3904         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3906 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
3908         PR/63870
3909         * config/arm/arm-builtins.c (enum arm_builtins):
3910         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
3911         (ARM_BUILTIN_NEON_BASE): Rename macro to....
3912         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
3913         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
3914         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
3916 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
3918         PR/63870
3919         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
3920         Add qualifier_lane_index.
3921         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
3922         (arm_getlane_qualifiers): Use qualifier_lane_index.
3923         (arm_lanemac_qualifiers): Rename to...
3924         (arm_mac_n_qualifiers): ...this.
3925         (LANEMAC_QUALIFIERS): Rename to...
3926         (MAC_N_QUALIFIERS): ...this.
3927         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
3928         (arm_setlane_qualifiers): Use qualifier_lane_index.
3929         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
3930         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
3931         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
3932         (arm_expand_neon_builtin): Handle qualifier_lane_index.
3934         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
3935         * config/arm/arm.c (bounds_check): Likewise, improve error message.
3936         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
3937         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
3938         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
3939         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
3940         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
3941         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
3942         qualifiers to TERNOP_IMM.
3943         (vdup_lane): Change qualifiers to GETLANE.
3944         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
3945         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
3946         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
3947         vqdmlsl_n): Change qualifiers to MAC_N.
3949         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
3950         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
3951         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
3952         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
3953         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
3954         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
3955         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
3956         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
3957         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
3958         Remove call to neon_lane_bounds.
3960 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
3962         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
3963         Place integer variant first.
3965 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
3967         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
3968         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
3969         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
3970         for armv6kz targets.
3971         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
3972         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
3973         (FL_FOR_ARCH6ZK): Remove.
3974         (FL_FOR_ARCH6KZ): New.
3975         (arm_arch6zk): New declaration.
3976         * config/arm/arm-tables.opt: Regenerate.
3977         * config/arm/arm.c (arm_arch6kz): New.
3978         (arm_option_override): Set arm_arch6kz.
3979         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
3980         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
3981         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
3983 2015-07-27  Marek Polacek  <polacek@redhat.com>
3985         PR c++/66555
3986         PR c/54979
3987         * doc/invoke.texi: Document -Wtautological-compare.
3989 2015-07-27  Richard Biener  <rguenther@suse.de>
3991         * genmatch.c (decision_tree::gen_gimple): Split out large
3992         subtrees into separate functions.
3993         (decision_tree::gen_generic): Likewise.
3995 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
3997         * config/alpha/alpha.c: Use SUBREG_P predicate.
3998         * config/alpha/predicates.md: Ditto.
4000 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4002         * config.host (s390*-*-*): Include driver-native.c only when
4003         building with s390* as host *and* target.
4005 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
4007         PR target/66930
4008         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
4009         T bit register modified_between_p check.
4011 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4013         * config/i386/i386.c: Use SUBREG_P predicate.
4014         * config/i386/i386.md: Ditto.
4015         * config/i386/sse.md: Ditto.
4016         * config/i386/predicates.md: Ditto.
4018 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4020         PR target/67004
4021         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
4022         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
4024 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4026         * Makefile.in: Remove use of TREEBROWSER.
4027         * config.in: Regenerated.
4028         * configure: Regenerated.
4029         * configure.ac: Remove definition of TREEBROWSER.
4030         * tree-browser.c: Removed.
4031         * tree-browser.def: Removed.
4033 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4035         * graphite-scop-detection.c: Include gimple-pretty-print.h.
4036         (stmt_simple_for_scop_p): Print when a stmt is not handled in
4037         Graphite.
4038         (scopdet_basic_block_info): Print when a loop or bb cannot be
4039         represented in Graphite.
4041 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4043         PR target/66648
4044         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
4045         execution guard when min_size is less than size_needed.
4047 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4049         * doc/install.texi: Document supported versions of ISL.
4051 2015-07-25  Jeff Law  <law@redhat.com>
4053         Revert:
4054         PR lto/66752
4055         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4056         unable to find X NE 0 in the tables, return X as the simplified
4057         condition.
4058         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4059         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4060         to VISISTED_BBS.  */
4061         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4062         after removing the control flow statement and unnecessary edges.
4064 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
4066         Revert:
4067         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4069         PR rtl-optimization/64164
4070         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4071         * tree-ssa-copyrename.c: Removed.
4072         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4073         -ftree-coalesce-vars.
4074         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4075         * common.opt (ftree-copyrename): Ignore.
4076         (ftree-coalesce-inlined-vars): Likewise.
4077         * doc/invoke.texi: Remove the ignored options above.
4078         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4079         * tree-ssa-coalesce.h: ... here.
4080         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4081         headers required by it.
4082         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4083         across variables when flag_tree_coalesce_vars.  Check register
4084         use and promoted modes to allow coalescing.  Moved to
4085         tree-ssa-coalesce.c.
4086         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4087         with its member functions to tree-ssa-coalesce.c.
4088         (var_map_base_init): Likewise.  Renamed to
4089         compute_samebase_partition_bases.
4090         (partition_view_normal): Drop want_bases parameter.
4091         (partition_view_bitmap): Likewise.
4092         * tree-ssa-live.h: Adjust declarations.
4093         * tree-ssa-coalesce.c: Include explow.h.
4094         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4095         default defs at the entry point.
4096         (dump_part_var_map): New.
4097         (compute_optimized_partition_bases): New, called by...
4098         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4099         of compute_samebase_partition_bases.  Adjust.
4100         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4101         * cfgexpand.c (leader_merge): New.
4102         (get_rtl_for_parm_ssa_default_def): New.
4103         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4104         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4105         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4106         redundant MEM attr setting.
4107         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4108         from...
4109         (expand_one_stack_var): ... this.  New wrapper to check and
4110         skip already expanded SSA partitions.
4111         (record_alignment_for_reg_var): New, factored out of...
4112         (expand_one_var): ... this.
4113         (expand_one_ssa_partition): New.
4114         (adjust_one_expanded_partition_var): New.
4115         (expand_one_register_var): Check and skip already expanded SSA
4116         partitions.
4117         (expand_used_vars): Don't create DECLs for anonymous SSA
4118         names.  Expand all SSA partitions, then adjust all SSA names.
4119         (pass::execute): Replace the loops that set
4120         SA.partition_to_pseudo from partition leaders and cleared
4121         DECL_RTL for multi-location variables, and that which used to
4122         rename vars and set attrs, with one that clears DECL_RTL and
4123         checks that PARMs and RESULTs default_defs match DECL_RTL.
4124         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4125         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4126         * explow.c (promote_ssa_mode): New.
4127         * explow.h (promote_ssa_mode): Declare.
4128         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4129         * function.c: Include cfgexpand.h.
4130         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4131         (use_register_for_parm_decl): Wrapper for the above to
4132         special-case the result_ptr.
4133         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4134         (split_complex_args): Take assign_parm_data_all argument.
4135         Pass it to rtl_for_parm.  Set up rtl and context for split
4136         args.
4137         (assign_parms_augmented_arg_list): Adjust.
4138         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4139         multiple locations.  Recognize split complex args.
4140         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4141         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4142         (assign_parm_setup_block): Prefer SSA-assigned location.
4143         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4144         if stack_parm is NULL.
4145         (assign_parm_setup_stack): Prefer SSA-assigned location.
4146         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4147         rtl before testing for pointer bounds.  Special-case result_ptr.
4148         (expand_function_start): Maybe reset DECL_RTL of result.
4149         Prefer SSA-assigned location for result and static chain.
4150         Factor out DECL_RESULT and SET_DECL_RTL.
4151         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4152         anonymous SSA names.  Use promote_ssa_mode.
4153         (get_temp_reg): Likewise.
4154         (remove_ssa_form): Adjust.
4155         * stor-layout.c (layout_decl): Don't set mem attributes of
4156         non-MEMs.
4157         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4158         and get its reg_usage for reg invalidation.
4159         (compute_bb_dataflow): Pass it insn.
4160         (emit_notes_in_bb): Likewise.
4162 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4164         * config/i386/i386.c (ix86_va_start): Remove
4165         unneeded !TARGET_64BIT check.
4166         (ix86_gimplify_va_arg): Ditto.
4168 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4170         * graphite-sese-to-poly.c (build_poly_scop): Always call
4171         rewrite_commutative_reductions_out_of_ssa.
4173 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4175         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
4176         flag_associative_math to FLOAT_TYPE_P.  Honour
4177         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
4179 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4181         PR c++/64079
4182         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
4183         and "%qD" in warning_at instead of "%q+D" in warning.
4185 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
4187         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
4188         (ix86_function_abi): Cleanup.
4190 2015-07-24  Michael Darling  <darlingm@gmail.com>
4192         PR other/66259
4193         * acinclude.m4: Reflects renaming of configure.in to configure.ac
4194         * configure: Likewise
4195         * configure.ac: Likewise
4196         * doc/install.texi: Likewise
4197         * doc/tm.texi: Likewise
4198         * doc/tm.texi.in: Likewise
4200 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4202         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
4203         manually swapping values.
4204         * cse.c (fold_rtx): Likewise.
4205         * lra-eliminations.c (form_sum): Likewise.
4207 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
4209         PR target/64003
4210         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
4211         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
4212         (*jcc_1, *jcc_2, jump, simple_return_internal)
4213         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
4214         Set length_nobnd attribute instead of length attribute.
4215         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
4216         (length_nobnd): Remove attribute.
4217         (length): Remove length_nobnd processing.
4219 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
4221         * gimplify.c (omp_default_clause): New function.  Reorganize flow
4222         for clarity. Broken out of ...
4223         (omp_notice_variable): ... here.
4225 2015-07-24  Gary Funck  <gary@intrepid.com>
4227         PR middle-end/66984
4228         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
4229         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
4231 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4233         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
4234         exit-first loop transform.
4236 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
4238         PR 66714
4239         * tree-cfg.c (struct replace_decls_d): New struct.
4240         (replace_block_vars_by_duplicates_1): New function.
4241         (replace_block_vars_by_duplicates): Use it to replace the decls
4242         in the value exprs by duplicates.
4244 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4246         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
4247         -shared, -symbolic, -rdynamic.
4249 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4251         PR target/65711
4252         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
4253         -dynamic-linker within %{!static %{!shared, and -rdynamic within
4254         %{!static.
4256 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
4258         PR ipa/66566
4259         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
4260         edge summary is available.
4262 2015-07-24  Richard Biener  <rguenther@suse.de>
4264         * genmatch.c (struct dt_node): Add statistic fields.
4265         (dt_node::analyze): New method.
4266         (decision_tree::gen_gimple): Call analyze on the root node
4267         and print statistics to stderr.
4268         (decision_tree::gen_generic): Likewise.
4270 2015-07-24  Richard Biener  <rguenther@suse.de>
4272         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
4273         against the highest or lowest possible integer ...
4274         * match.pd: ... as patterns here.
4276 2015-07-24  Richard Biener  <rguenther@suse.de>
4278         * genmatch.c (struct capture_info): Add same_as field.
4279         (capture_info::capture_info): Initialize same_as.
4280         (capture_info::walk_match): Compute same_as.
4281         (capture_info::walk_result): Compute stuff for the leader.
4282         (capture_info::walk_c_expr): Likewise.
4283         (dt_simplify::gen_1): Only look at leaders when deciding
4284         to force no side-effects or emit side-effects of omitted operands.
4286 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4288         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
4289         reg note to the GPR -> FPR save instructions.
4291 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4293         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
4294         cheaper.
4295         (s390_expand_insv): Don't generate risbg pattern for constant zero
4296         sources.
4297         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
4298         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
4299         splitters.
4301 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4303         * config/s390/s390.c (s390_reorg): Clean up handling of processors
4304         with
4305         -mtune=
4306         (s390_issue_rate): Likewise.
4307         (s390_sched_reorder): Likewise.
4308         (s390_sched_variable_issue): Likewise.
4309         (s390_loop_unroll_adjust): Likewise.
4310         (s390_option_override):  Likewise.
4312 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4314         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
4315         processor capabilities with -march=native.
4316         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
4317         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
4318         (S390_TARGET_BITS_STRING): Macro to simplify specs.
4320 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4322         * config/s390/s390.c (s390_issue_rate): Handle
4323         PROCESSOR_2094_Z9_EC.
4324         (s390_option_override): Likewise.
4325         (s390_adjust_priority): Likewise.
4327 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4329         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
4330         when cross compiling.
4332 2015-07-24  Richard Biener  <rguenther@suse.de>
4334         * fold-const.c (maybe_canonicalize_comparison_1): Move
4335         A code CST canonicalization ...
4336         * match.pd: ... to a pattern here.
4338 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
4340         Revert:
4341         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4342         PR target/63521
4343         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4344         (HONOR_REG_ALLOC_ORDER): Define.
4346 2015-07-24  Richard Biener  <rguenther@suse.de>
4348         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
4349         * fold-const.c (fold_comparison): Move parameter does not
4350         alias &local simplification ...
4351         * match.pd: ... as a pattern here.
4353 2015-07-24  Richard Biener  <rguenther@suse.de>
4355         * gimple-fold.c (replace_stmt_with_simplification): Special-case
4356         valueizing call operands.
4357         * gimple-match-head.c (maybe_push_res_to_seq): Take
4358         number of call arguments from ops array.
4359         (do_valueize): New function.
4360         (gimple_simplify): Return true if valueization changed
4361         any operand even if the result didn't simplify further.
4363 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4365         PR middle-end/25530
4366         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
4368 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4370         PR middle-end/25529
4371         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
4373 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4375         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
4376         instruction.
4378 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4380         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
4381         clean up.
4383 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
4385         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
4386         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
4387         targets here.
4388         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
4389         ms_va_list_type_node initialization.
4391 2015-07-23  Jeff Law  <law@redhat.com>
4393         PR lto/66752
4394         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4395         unable to find X NE 0 in the tables, return X as the simplified
4396         condition.
4397         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4398         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4399         to VISISTED_BBS.  */
4400         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4401         after removing the control flow statement and unnecessary edges.
4403 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4405         * tree-pass.h (get_current_pass_name): Removed.
4407 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4409         PR rtl-optimization/64164
4410         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4411         * tree-ssa-copyrename.c: Removed.
4412         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4413         -ftree-coalesce-vars.
4414         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4415         * common.opt (ftree-copyrename): Ignore.
4416         (ftree-coalesce-inlined-vars): Likewise.
4417         * doc/invoke.texi: Remove the ignored options above.
4418         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4419         * tree-ssa-coalesce.h: ... here.
4420         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4421         headers required by it.
4422         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4423         across variables when flag_tree_coalesce_vars.  Check register
4424         use and promoted modes to allow coalescing.  Moved to
4425         tree-ssa-coalesce.c.
4426         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4427         with its member functions to tree-ssa-coalesce.c.
4428         (var_map_base_init): Likewise.  Renamed to
4429         compute_samebase_partition_bases.
4430         (partition_view_normal): Drop want_bases parameter.
4431         (partition_view_bitmap): Likewise.
4432         * tree-ssa-live.h: Adjust declarations.
4433         * tree-ssa-coalesce.c: Include explow.h.
4434         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4435         default defs at the entry point.
4436         (dump_part_var_map): New.
4437         (compute_optimized_partition_bases): New, called by...
4438         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4439         of compute_samebase_partition_bases.  Adjust.
4440         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4441         * cfgexpand.c (leader_merge): New.
4442         (get_rtl_for_parm_ssa_default_def): New.
4443         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4444         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4445         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4446         redundant MEM attr setting.
4447         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4448         from...
4449         (expand_one_stack_var): ... this.  New wrapper to check and
4450         skip already expanded SSA partitions.
4451         (record_alignment_for_reg_var): New, factored out of...
4452         (expand_one_var): ... this.
4453         (expand_one_ssa_partition): New.
4454         (adjust_one_expanded_partition_var): New.
4455         (expand_one_register_var): Check and skip already expanded SSA
4456         partitions.
4457         (expand_used_vars): Don't create DECLs for anonymous SSA
4458         names.  Expand all SSA partitions, then adjust all SSA names.
4459         (pass::execute): Replace the loops that set
4460         SA.partition_to_pseudo from partition leaders and cleared
4461         DECL_RTL for multi-location variables, and that which used to
4462         rename vars and set attrs, with one that clears DECL_RTL and
4463         checks that PARMs and RESULTs default_defs match DECL_RTL.
4464         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4465         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4466         * explow.c (promote_ssa_mode): New.
4467         * explow.h (promote_ssa_mode): Declare.
4468         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4469         * function.c: Include cfgexpand.h.
4470         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4471         (use_register_for_parm_decl): Wrapper for the above to
4472         special-case the result_ptr.
4473         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4474         (split_complex_args): Take assign_parm_data_all argument.
4475         Pass it to rtl_for_parm.  Set up rtl and context for split
4476         args.
4477         (assign_parms_augmented_arg_list): Adjust.
4478         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4479         multiple locations.  Recognize split complex args.
4480         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4481         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4482         (assign_parm_setup_block): Prefer SSA-assigned location.
4483         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4484         if stack_parm is NULL.
4485         (assign_parm_setup_stack): Prefer SSA-assigned location.
4486         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4487         rtl before testing for pointer bounds.  Special-case result_ptr.
4488         (expand_function_start): Maybe reset DECL_RTL of result.
4489         Prefer SSA-assigned location for result and static chain.
4490         Factor out DECL_RESULT and SET_DECL_RTL.
4491         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4492         anonymous SSA names.  Use promote_ssa_mode.
4493         (get_temp_reg): Likewise.
4494         (remove_ssa_form): Adjust.
4495         * stor-layout.c (layout_decl): Don't set mem attributes of
4496         non-MEMs.
4497         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4498         and get its reg_usage for reg invalidation.
4499         (compute_bb_dataflow): Pass it insn.
4500         (emit_notes_in_bb): Likewise.
4502 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
4504         PR target/66217
4505         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
4506         prototype.
4507         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
4508         (rs6000_emit_2insn_and): Handle dot forms.
4509         * config/rs6000/rs6000.md (and<mode>3): Adjust.
4510         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
4511         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
4513 2015-07-23  Richard Biener  <rguenther@suse.de>
4515         * generic-match-head.c: Include cgraph.h.
4516         * gimple-match-head.c: Likewise.
4517         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
4518         SSA names.
4519         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
4520         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
4521         pattern.
4523 2015-07-23  Richard Biener  <rguenther@suse.de>
4525         * gimple-fold.c (fold_gimple_cond): Do not require folding
4526         results to pass valid_gimple_rhs_p.
4527         * tree-cfg.h (fold_cond_expr_cond): Remove.
4528         * tree-cfg.c (fold_cond_expr_cond): Likewise.
4529         (make_edges): Do not call it.
4530         * tree-inline.c (tree_function_versioning): Likewise.
4532 2015-07-23  Tom de Vries  <tom@codesourcery.com>
4534         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
4535         vect_force_simple_reduction.
4536         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
4537         (vect_is_simple_reduction_1): Add and handle
4538         need_wrapping_integral_overflow parameter.
4539         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
4540         need_wrapping_integral_overflow parameter.
4541         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
4542         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
4543         decl.
4545 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
4547         PR tree-optimization/66926,66951
4548         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
4549         INNER_LOOP and fix up condition for renaming virtual operands.
4551 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4553         * combine.c (try_combine): Use std::swap instead of manually
4554         swapping.
4556 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
4558         * config/mips/i6400.md: New file.
4559         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
4560         (mips64r6): Likewise.
4561         (i6400): Define.
4562         * config/mips/mips-tables.opt: Regenerate.
4563         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
4564         (mips_issue_rate): Add support for i6400.
4565         (mips_multipass_dfa_lookahead): Likewise.
4566         * config/mips/mips.h (TUNE_I6400): Define.
4567         * config/mips/mips.md: Include i6400.md.
4568         (processor): Add i6400.
4569         * doc/invoke.texi (-march=@var{arch}): Add i6400.
4571 2015-07-23  Richard Biener  <rguenther@suse.de>
4573         PR middle-end/66916
4574         * match.pd: Guard widen and sign-change comparison simplification
4575         with single_use.
4577 2015-07-23  Richard Biener  <rguenther@suse.de>
4579         PR tree-optimization/66945
4580         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
4581         ::before_dom_children): Force the propagators idea of
4582         non-executable edges to materialize, not what the folder
4583         chooses.
4585 2015-07-23  Richard Biener  <rguenther@suse.de>
4587         * gimple.h (gimple_cond_make_false): Use 0 != 0.
4588         (gimple_cond_make_true): Use 1 != 0.
4590 2015-07-22  DJ Delorie  <dj@redhat.com>
4592         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
4593         slashes.
4595         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
4596         (ashrhi3): Likewise.
4597         (lshrhi3): Likewise.
4598         (movhi): Take advantage of zero-extend to load small constants.
4599         (movpsi): Likewise.
4600         (and<mode>3): Likewise.
4601         (zero_extendqihi2): Likewise.
4602         (zero_extendqisi2): New.
4603         * config/msp430/constraints.md (N,O): New.
4604         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
4606 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
4608         PR target/66954
4609         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
4610         to enum feature_priority and feature_list.
4611         (fold_builtin_cpu): Add F_AES to enum processor_features
4612         and isa_names_table.
4614 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
4616         PR driver/66737
4617         * config/i386/linux-common.h (MPX_SPEC): Use linker option
4618         for 64bit target only.
4620 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4622         * config/nvptx/nvptx.c: Expand some comments.
4624 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
4626         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
4627         (cortex_a53_advsimd): ...This.
4629 2015-07-22  Richard Biener  <rguenther@suse.de>
4631         * genmatch.c (expr::gen_transform): Clarify error message
4632         and display location.
4634 2015-07-22  Richard Biener  <rguenther@suse.de>
4636         * genmatch.c (struct operand): Add location member.
4637         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
4638         constructors.
4639         (struct simplify): Remove match_location and result_location
4640         members.
4641         (elsehwere): Adjust.
4643 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
4645         * config/mips/m5100.md: New file.
4646         * config/mips/mips-cpus.def (m5100, m5101): Define.
4647         * config/mips/mips-tables.opt: Regenerate.
4648         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
4649         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
4650         -march=m5101 to -mips32r5.
4651         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
4652         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
4653         !-msoft-float.
4654         * config/mips/mips.md: Include m5100.md.
4655         (processor): Add m5100.
4656         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
4658 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
4660         * config/mips/mips-cpus.def (interaptiv): Define.
4661         * config/mips/mips-tables.opt: Regenerate.
4662         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
4663         -mips32r2.
4664         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
4665         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
4667 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4669         PR target/63521
4670         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4671         (HONOR_REG_ALLOC_ORDER): Define.
4673 2015-07-22  Richard Biener  <rguenther@suse.de>
4675         PR tree-optimization/66952
4676         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
4677         blocks we end up executing unconditionally reset all SSA
4678         info such as range and alignment.
4679         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
4680         * tree-ssanames.c (reset_flow_sensitive_info): New function.
4682 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4684         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
4685         typo in attribute.
4687 2015-07-22  Richard Biener  <rguenther@suse.de>
4689         * genmatch.c (parser::parse_result): Properly handle
4690         match with result operands and conditions.
4692 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4694         PR target/63870
4695         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4696         Add qualifier_struct_load_store_lane_index.
4697         (aarch64_types_loadstruct_lane_qualifiers): Use
4698         qualifier_struct_load_store_lane_index for lane index argument for
4699         last argument.
4700         (aarch64_types_storestruct_lane_qualifiers): Ditto.
4701         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4702         (aarch64_simd_expand_args): Add new argument describing mode of
4703         builtin. Check lane bounds for arguments with
4704         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4705         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
4706         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4707         (aarch64_simd_expand_builtin): Handle arguments with
4708         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
4709         aarch64_simd_expand_args.
4710         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
4711         vst[234]_lane with BUILTIN_VALLDIF.
4712         * config/aarch64/aarch64-simd.md:
4713         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
4714         endianness reversal on lane index.
4715         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
4716         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
4717         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
4718         (vec_store_lanesci_lane<mode>): Ditto.
4719         (vec_store_lanesxi_lane<mode>): Ditto.
4720         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
4721         reversal of lane index.
4722         (aarch64_ld3_lane<mode>): Ditto.
4723         (aarch64_ld4_lane<mode>): Ditto.
4724         (aarch64_st2_lane<mode>): Ditto.
4725         (aarch64_st3_lane<mode>): Ditto.
4726         (aarch64_st4_lane<mode>): Ditto.
4727         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
4728         to qmode. Add new mode parameter. Update uses.
4729         (__LD3_LANE_FUNC): Ditto.
4730         (__LD4_LANE_FUNC): Ditto.
4731         (__ST2_LANE_FUNC): Ditto.
4732         (__ST3_LANE_FUNC): Ditto.
4733         (__ST4_LANE_FUNC): Ditto.
4735 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
4737         * doc/invoke.texi (Language Independent Options): Rename node to
4738         Diagnostic Message Formatting Options.
4740 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
4742         PR ipa/66424.
4743         * lra-remat.c (operand_to_remat): Prevent using insns with input
4744         subregs processed separately by IRA.
4746 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
4748         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
4749         straight loops.
4750         (single_imm_use): Check for iterator node.
4751         (num_imm_uses): Likewise.
4752         * tree-ssa-operands.c (has_zero_uses_1): Delete.
4753         (single_imm_use_1): Check for iterator node.
4755 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
4756             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4758         * configure.ac: Add check for new options in isl-0.15.
4759         * config.in, configure: Rebuilt.
4760         * graphite-blocking.c: Include <isl/constraint.h>
4761         * graphite-interchange.c,  graphite-poly.c: Likewise.
4762         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
4763         * graphite.c: Likewise.
4764         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
4765         <isl/union_set.h>.
4766         * graphite-dependences.c: Include <isl/constraint.h>.
4767         (max_number_of_out_dimensions): Returns isl_stat.
4768         (extend_schedule_1): Likewise
4769         (extend_schedule): Corresponding changes.
4770         * graphite-optimize-isl.c: Include <isl/constraint.h> and
4771         <isl/union_set.h>.
4772         (getSingleMap): Change return type of isl_stat.
4773         (optimize_isl): Conditionally use
4774         isl_options_set_schedule_serialize_sccs.
4775         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
4776         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
4778 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
4780         PR target/66956
4781         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
4782         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
4784 2015-07-21  Richard Biener  <rguenther@suse.de>
4786         PR tree-optimization/66948
4787         * genmatch.c (capture_info::walk_match): Also recurse to
4788         captures.  Properly compute expr state from captures of
4789         captures.
4790         * match.pd: Add single-use guards to
4791         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
4793 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
4795         * config/nvptx/mkoffload.c (process): Add static destructor call.
4797 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4799         PR middle-end/66915
4800         * match.pd (A - B -> A + (-B)): Don't allow folding
4801         when type if a fixed-point type.
4803 2015-07-20  DJ Delorie  <dj@redhat.com>
4805         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
4806         (iorqi3_real): Likewise for set1.
4808 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
4810         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
4811         for !TARGET_64BIT.
4813 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
4815         * graphite-isl-ast-to-gimple.c:
4816         Refactor so that each function can access 'region'. This will help
4817         maintain a parameter rename_map within a region.
4819 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4821         * config/rs6000/rs6000.md (*lt0_disi): New.
4823 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4825         PR target/66217
4826         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
4827         "available letters" comment.
4828         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
4829         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
4830         and_2rld_operand):  Delete.
4831         (and_operand): Adjust.
4832         (rotate_mask_operator): New.
4833         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
4834         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
4835         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
4836         extract_ME): Delete.
4837         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4838         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
4839         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
4840         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4841         rs6000_emit_2insn_and): New.
4842         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
4843         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
4844         includes_rldic_lshift_p, includes_rldicr_lshift_p,
4845         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
4846         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4847         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
4848         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
4849         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4850         rs6000_emit_2insn_and): New.
4851         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
4852         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
4853         handling.
4854         <NOT>: Don't fall through to next case.
4855         <AND>: Handle the various rotate-and-mask cases directly.
4856         <IOR>: Always cost as one insn.
4857         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
4858         (and<mode>3): Adjust expander for the new patterns.
4859         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
4860         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
4861         (*and<mode>3_imm_dot_shifted): New.
4862         (*and<mode>3_mask): Delete, rewrite as ...
4863         (and<mode>3_mask): ... New.
4864         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
4865         (andsi3_internal0_nomc): Delete.
4866         (*andsi3_internal6): Delete.
4867         (*and<mode>3_2insn): New.
4868         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4869         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4870         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
4871         *insvdi_internal3): Delete.
4872         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
4873         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
4874         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
4875         *ior<mode>_mask): New.
4876         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
4877         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4878         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4879         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4880         Delete.
4881         (ashr<mode>3): Delete expander.
4882         (*ashr<mode>3): Rename to ...
4883         (ashr<mode>3): ... This.
4884         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
4885         (*rotldi3_internal4, *rotldi3_internal5 and split,
4886         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
4887         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
4888         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
4889         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
4890         (splitter for loading a mask): Adjust.
4891         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
4893 2015-07-20  Marek Polacek  <polacek@redhat.com>
4895         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
4896         output_add_clobbers, output_added_clobbers_hard_reg_p,
4897         gen_rtx_scratch): Remove declarations.
4899 2015-07-20  Marek Polacek  <polacek@redhat.com>
4901         PR c++/55095
4902         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
4904 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4906         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
4907         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
4909 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4911         * combine.c (combine_simplify_rtx): Move simplification step
4912         before various transformations/substitutions.
4914 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
4916         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
4917         (struct int_traits): Likewise.
4919 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4921         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
4922         function to vmsdbgout_function_decl.
4924 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
4926         PR target/66922
4927         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
4928         from misaligned positions.
4929         (ix86_expand_pinsr): Reject insertions to misaligned positions.
4931 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
4933         PR middle-end/46851
4934         PR middle-end/60340
4935         * Makefile.in: Removed omega.o.
4936         * common.opt: Document flag fcheck-data-deps as deprecated.
4937         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
4938         its associated params: omega-max-vars, omega-max-geqs,
4939         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
4940         omega-max-keys, omega-eliminate-redundant-constraints.
4941         * doc/loop.texi: Remove all the section on Omega.
4942         * graphite-blocking.c: Include missing params.h: it used to be
4943         included through tree-data-ref.h and omega.h.
4944         * graphite-isl-ast-to-gimple.c: Same.
4945         * graphite-optimize-isl.c: Same.
4946         * graphite-sese-to-poly.c: Same.
4947         * graphite.c: Same.
4948         * omega.c: Remove.
4949         * omega.h: Remove.
4950         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
4951         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
4952         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
4953         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
4954         * passes.def: Remove pass_check_data_deps.
4955         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
4956         (dump_conflict_function): Same.
4957         (dump_subscript): Same.
4958         (print_direction_vector): Same.
4959         (print_dir_vectors): Same.
4960         (print_lambda_vector): Same.
4961         (print_dist_vectors): Same.
4962         (dump_data_dependence_relation): Same.
4963         (dump_data_dependence_relations): Same.
4964         (dump_dist_dir_vectors): Same.
4965         (dump_ddrs): Same.
4966         (init_omega_eq_with_af): Removed.
4967         (omega_extract_distance_vectors): Removed.
4968         (omega_setup_subscript): Removed.
4969         (init_omega_for_ddr_1): Removed.
4970         (init_omega_for_ddr): Removed.
4971         (ddr_consistent_p): Removed.
4972         (compute_affine_dependence): Do not use omega to check data
4973         dependences.
4974         (compute_data_dependences_for_bb): Removed.
4975         (analyze_all_data_dependences): Removed.
4976         (tree_check_data_deps): Removed.
4977         * tree-data-ref.h: Do not include omega.h.
4978         (compute_data_dependences_for_bb): Removed.
4979         (tree_check_data_deps): Removed.
4980         * tree-ssa-loop.c (pass_check_data_deps): Removed.
4981         (make_pass_check_data_deps): Removed.
4982         * tree-ssa-phiopt.c: Include params.h.
4983         * tree-vect-data-refs.c: Same.
4984         * tree-vect-slp.c: Same.
4986 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
4988         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
4989         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
4990         (mem->fpreg splitters): Ditto.
4991         (general_operand->nonimmediate_operand splitter): Use explicit modes.
4992         Disable DFmode for TARGET_64BIT.
4994 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4996         PR target/66906
4997         * config/i386/i386.c (ix86_expand_prologue): Replicate static
4998         chain on the stack.
5000 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5002         * config/nvptx/mkoffload.c (process): Constify host data.
5003         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5004         Constify host data.
5005         (generate_host_descr_file): Likewise.
5007 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
5008             Sebastian Pop  <s.pop@samsung.com>
5010         PR middle-end/61929
5011         * graphite-dependences.c (add_pdr_constraints): Renamed
5012         pdr->extent to pdr->subscript_sizes.
5013         * graphite-interchange.c (build_linearized_memory_access): Add
5014         back all gcc_assert's that the "isl_int to isl_val conversion"
5015         patch has removed.  Refactored.
5016         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
5017         * graphite-poly.c (new_poly_dr): Same.
5018         (free_poly_dr): Same.
5019         * graphite-poly.h (struct poly_dr): Same.
5020         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
5021         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
5022         * graphite-scop-detection.h: Fix space.
5023         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
5024         back all gcc_assert's removed by a previous patch.
5025         (wrap): Remove the_isl_ctx global variable that the same patch has
5026         added.
5027         (build_loop_iteration_domains): Same.
5028         (add_param_constraints): Same.
5029         (pdr_add_data_dimensions): Same.  Refactored.
5030         (build_poly_dr): Renamed extent to subscript_sizes.
5032 2015-07-17  Marek Polacek  <polacek@redhat.com>
5034         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
5035         * match.pd: ... here.
5037 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5039         * config/nvptx/mkoffload.c (process): Constify target data.
5040         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5041         Constify target data.
5042         (generate_target_offloadend_file): Likewise.
5044 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
5046         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
5047         to allow renaming of PHI arguments on edges incoming from outer
5048         loop header, add corresponding check before start PHI iterator.
5049         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
5050         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
5051         with true force_vectorize.  Set-up dominator for outer loop too.
5052         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
5053         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
5054         was marked with force_vectorize and has restricted cfg.
5055         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
5056         inner loop.
5057         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5058         do peeling for outer loops.
5060 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
5061             Matthias Klose  <doko@ubuntu.com>
5063         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
5064         build-sysroot, sysroot from the `Miscenalleous configure options' to
5065         the `Directories' section and strip trailing `/' from with_sysroot.
5066         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
5067         * configure: Regenerated.
5069 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5071         PR target/66824
5072         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
5073         (TARGET_HARD_DF_REGS): Ditto.
5074         (TARGET_HARD_XF_REGS): Ditto.
5075         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
5076         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
5077         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
5078         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
5079         (*movsf_internal): Add alternatives 16 and 17. Enable
5080         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
5082 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5084         PR rtl-optimization/66891
5085         * calls.c (expand_call): Wrap precompute_register_parameters with
5086         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
5088 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
5090         * config/nvptx/mkoffload.c (process): Constify mapping variables.
5091         Define target data struct and initialize it.
5093 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
5095         PR rtl-optimization/66626
5096         * ira.h (emit-rtl.h): Include.
5097         (non_spilled_static_chain_regno_p): New.
5098         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
5099         unless it is non spilled static chain pseudo.
5100         (assign_hard_rego): Spill memory profitable allocno unless it is
5101         non spilled static chain pseudo.
5102         (allocno_spill_priority_compare): Put non spilled static chain
5103         pseudo at the end of sorted array.
5104         (improve_allocation): Do nothing if we have static chain and
5105         non-local goto.
5106         (allocno__priority_compare_func): Put non spilled static chain
5107         pseudo at the beginning of sorted array.
5108         (move_spill_restore): Ignore non spilled static chain pseudo.
5109         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
5110         to non spilled static chain pseudo.
5111         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
5112         pseudo at the beginning of sorted array.
5113         (spill_for): Spill non spilled static chain pseudo last.
5114         * lra-constraints.c (lra_constraints): Remove static chain pseudo
5115         check for equivalence.
5117 2015-07-16  Martin Liska  <mliska@suse.cz>
5119         PR ipa/66896.
5120         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
5121         dst_ctx if it does not exist.
5123 2015-07-16  Martin Liska  <mliska@suse.cz>
5125         * hash-set.h (remove): New function.
5126         (iterator): New iteration class for hash_set.
5128 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5130         * genattrtab.c (make_canonical): Add a file_location parameter.
5131         Use fatal_at rather than fatal.
5132         (get_attr_value): Likewise.  Update call to make_canonical.
5133         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
5134         (make_internal_attr): Update calls accordingly.
5136 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5138         * read-md.h (message_with_line, error_with_line): Delete.
5139         * read-md.c (message_with_line, error_with_line): Delete.
5140         * gensupport.h: Include read-md.h.
5141         (md_rtx_info): New structure.
5142         (read_md_rtx): Use it.  Return a bool success value.
5143         * gensupport.c (read_md_rtx): Likewise.
5144         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
5145         (main): Update after interface changes.
5146         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
5147         (main): Update after interface changes.
5148         * genattrtab.c (insn_code_number): Delete.
5149         (optimize_attrs): Add a max_insn_code parameter and use it instead
5150         of insn_code_number.
5151         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
5152         Use *_at rather than *_with_line functions.
5153         (gen_insn): Likewise.
5154         (gen_delay): Likewise.
5155         (gen_insn_reserv): Likewise.
5156         (gen_bypass): Take an md_rtx_info rather than an rtx.
5157         (main): Update after interface changes.  Use a local max_insn_code
5158         variable instead of insn_code_number.
5159         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
5160         an rtx.  Use fatal_at rather than fatal.
5161         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
5162         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
5163         (gen_absence_set, gen_final_absence_set, gen_automaton)
5164         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
5165         (main): Update after interface changes.
5166         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
5167         and code number.
5168         (main): Update after interface changes.
5169         * genconditions.c (main): Use new read_md_rtx interface.
5170         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
5171         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
5172         (main): Update after interface changes.
5173         * genemit.c (insn_code_number, insn_index_number): Delete.
5174         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5175         Use fatal_at rather than fatal.
5176         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
5177         rather than fatal.
5178         (gen_split): Likewise.
5179         (main): Update after interface changes.
5180         * genextract.c (line_no): Delete.
5181         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5182         Update call to walk_rtx.
5183         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
5184         rather than message_with_line.
5185         (walk_rtx): Add an md_rtx_info argument.  Update call to
5186         VEC_safe_set_locstr.
5187         (main): Update after interface changes.
5188         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
5189         and lineno.  Use error_at rather than separate message_with_line
5190         calls and have_error assignments.
5191         (main): Update after interface changes.
5192         * genmddump.c (main): Use new read_md_rtx interface.
5193         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
5194         (main): Update after interface changes.
5195         * genoutput.c (next_code_number): Delete.
5196         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5197         (gen_peephole, gen_expand, gen_split): Likewise.
5198         (note_constraint): Likewise.  Use *_at rather than *_with_line
5199         functions.
5200         (main): Update after interface changes.
5201         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
5202         rtx and lineno.
5203         (main): Update after interface changes.
5204         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
5205         than an rtx and lineno.
5206         (process_define_constraint): Likewise.
5207         (process_define_register_constraint): Likewise.
5208         (main): Update after interface changes.
5209         * genrecog.c (next_insn_code, pattern_lineno): Delete.
5210         (validate_pattern): Replace top-level rtx with an md_rtx_info.
5211         Use *_at rather than *_with_line functions.
5212         (match_pattern_2): Likewise.
5213         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
5214         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
5215         Use *_at rather than *_with_line functions.
5216         * gentarget-def.c (add_insn): New function.
5217         (main): Use it.  Use new read_md_rtx interface.
5219 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5221         * gensupport.h (compute_test_codes): Take a file_location rather
5222         than a line number.
5223         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
5224         rather than *_with_line functions.
5225         (process_define_predicate): Update call to compute_test_codes.
5226         * genpreds.c (validate_exp): Take a file_location rather than a
5227         line number.  Use *_at functions rather than *_with_line functions.
5228         (process_define_predicate): Update call to validate_exp.
5229         (constraint_data): Replace lineno field with a file_location.
5230         (add_constraint): Take a file_location rather than a line number.
5231         Use *_at functions rather than *_with_line functions.  Fix error
5232         message for address constraints.  Update after changes to
5233         validate_exp, constraint_data and compute_test_codes.
5234         (process_define_constraint): Update accordingly.
5235         (process_define_register_constraint): Likewise.
5237 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5239         * genoutput.c (data): Use a file_location to record the source
5240         position.
5241         (nothing): Delete.
5242         (idata, idata_end): Remove initialization.
5243         (constraint_data): Replace lineno with a file_location.
5244         (output_insn_data): Update after changes to data.
5245         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
5246         (scan_operands): Likewise, using *_at rather than *_with_line
5247         functions.
5248         (process_template): Likewise.
5249         (validate_insn_alternatives): Likewise.
5250         (validate_insn_operands): Likewise.
5251         (validate_optab_operands): Likewise.
5252         (init_insn_for_nothing): Initialize idata and idata_end.
5253         (note_constraint): Update after changes to constraint_data,
5254         using at rather than with_line functions.
5255         (mdep_constraint_len): Take a file_location rather than a
5256         line number.  Use at rather than with_line functions.
5258 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5260         * read-md.h (fatal_at): Declare.
5261         * read-md.c (fatal_at): New function.
5262         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
5263         to record the source position.
5264         (check_attr_test): Take a file_location instead of a line number.
5265         Use fatal_at instead of fatal.
5266         (check_attr_value): Update after above changes, using "at"
5267         rather than "with_line" reporting functions.
5268         (convert_set_attr_alternative): Likewise.
5269         (gen_attr): Likewise.
5270         (check_defs): Likewise.  Don't assign to read_md_filename.
5271         (gen_insn): Update initialization after above changes.
5272         (gen_delay): Likewise.
5273         (write_insn_cases): Print the filename for a define_peephole.
5274         (gen_insn_reserv): Take a line number as argument and update
5275         the call to check_attr_test.
5276         (main): Pass a line number to gen_insn_reserv.
5278 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5280         * read-md.h (file_location): New structure.
5281         (directive_handler_t): Take a file_location rather than a line number.
5282         (message_at, error_at): Declare.
5283         (read_skip_construct): Delete.
5284         * read-md.c (message_with_line_1): Replace with...
5285         (message_at_1): ...this new function.
5286         (message_at, error_at): New functions.
5287         (message_with_line, error_with_line): Update to use message_at_1.
5288         (handle_enum): Take a file_location rather than a line number
5289         and use error_at for error reporting.
5290         (handle_include): Likewise.
5291         (read_skip_construct): Likewise.  Make static.
5292         (handle_file): Update after above changes.  Pass a file_location
5293         rather than a line number to handle_directive.
5294         * gensupport.c (queue_elem): Replace separate filename and lineno
5295         with a file_location.
5296         (queue_pattern): Replace filename and lineno arguments with a
5297         file_location.  Update after change to queue_elem.
5298         (process_define_predicate): Replace lineno argument with a
5299         file_location and use error_at for error reporting.  Update
5300         after above changes.
5301         (process_rtx): Likewise.
5302         (subst_pattern_match): Likewise.
5303         (get_alternatives_number): Likewise.
5304         (alter_predicate_for_insn): Likewise.
5305         (rtx_handle_directive): Likewise.
5306         (is_predicable): Update after above changes, using error_at rather
5307         than error_with_line.
5308         (has_subst_attribute): Likewise.
5309         (identify_predicable_attribute): Likewise.
5310         (alter_attrs_for_subst_insn): Likewise.
5311         (process_one_cond_exec): Likewise.
5312         (process_substs_on_one_elem): Likewise.
5313         (process_define_subst): Likewise.
5314         (check_define_attr_duplicates): Likewise.
5315         (read_md_rtx): Update after change to queue_elem.
5317 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5319         * genoutput.c (next_index_number): Delete.
5320         (data): Remove index_number.
5321         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
5322         (main): Remove manipulation of next_index_number.
5324 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5326         * genattrtab.c (check_attr_value): Remove handling of null attrs.
5327         (make_canonical): Likewise.
5329 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
5331         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
5332         instead of adjust_address_nv.
5333         (restore_stack_nonlocal): Likewise.
5334         (nonlocal_goto): Likewise.
5336 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5338         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
5339         not have a corresponding loop header phi.
5341 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5343         * tree-parloops.c (create_loads_for_reductions): Handle case that
5344         reduction is unused.
5346 2015-07-16  Richard Biener  <rguenther@suse.de>
5348         PR tree-optimization/66894
5349         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
5350         about deriving NE_EXPR from truncated values.
5352 2015-07-16  Martin Liska  <mliska@suse.cz>
5354         * alloc-pool.h
5355         (object_allocator): Add new class.
5356         (pool_allocator::initialize): Use the underlying class.
5357         (pool_allocator::allocate): Likewise.
5358         (pool_allocator::remove): Likewise.
5359         (operator new): A new generic allocator.
5360         * asan.c (struct asan_mem_ref): Remove unused members.
5361         (asan_mem_ref_new): Replace new operator with
5362         object_allocator::allocate.
5363         (free_mem_ref_resources): Change deallocation.
5364         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
5365         with object_allocator.
5366         * config/sh/sh.c (add_constant): Replace new operator with
5367         object_allocator::allocate.
5368         (sh_reorg): Change call to a release method.
5369         * cselib.c (struct elt_list): Remove unused members.
5370         (new_elt_list): Replace new operator with
5371         object_allocator::allocate.
5372         (new_elt_loc_list): Likewise.
5373         (new_cselib_val): Likewise.
5374         (unchain_one_elt_list): Change delete operator with remove method.
5375         (unchain_one_elt_loc_list): Likewise.
5376         (unchain_one_value): Likewise.
5377         (cselib_finish): Release newly added static allocators.
5378         * cselib.h (struct cselib_val): Remove unused members.
5379         (struct elt_loc_list): Likewise.
5380         * df-problems.c (df_chain_alloc): Replace pool_allocator with
5381         object_allocator.
5382         * df-scan.c (struct df_scan_problem_data): Likewise.
5383         (df_scan_alloc): Likewise.
5384         * df.h (struct dataflow): Likewise.
5385         * dse.c (struct read_info_type): Likewise.
5386         (struct insn_info_type): Likewise.
5387         (struct dse_bb_info_type): Likewise.
5388         (struct group_info): Likewise.
5389         (struct deferred_change): Likewise.
5390         (get_group_info): Likewise.
5391         (delete_dead_store_insn): Likewise.
5392         (free_read_records): Likewise.
5393         (replace_read): Likewise.
5394         (check_mem_read_rtx): Likewise.
5395         (scan_insn): Likewise.
5396         (dse_step1): Likewise.
5397         (dse_step7): Likewise.
5398         * et-forest.c (struct et_occ): Remove unused members.
5399         (et_new_occ): Use allocate instead of new operator.
5400         (et_new_tree): Likewise.
5401         (et_free_tree): Call release method explicitly.
5402         (et_free_tree_force): Likewise.
5403         (et_free_pools): Likewise.
5404         (et_split): Use remove instead of delete operator.
5405         * et-forest.h (struct et_node): Remove unused members.
5406         * ipa-cp.c: Change pool_allocator to object_allocator.
5407         * ipa-inline-analysis.c: Likewise.
5408         * ipa-profile.c: Likewise.
5409         * ipa-prop.c: Likewise.
5410         * ipa-prop.h: Likewise.
5411         * ira-build.c (initiate_cost_vectors): Cast return value.
5412         (ira_allocate_cost_vector): Likewise.
5413         * ira-color.c (struct update_cost_record): Remove unused members.
5414         * lra-int.h (struct lra_live_range): Likewise.
5415         (struct lra_copy): Likewise.
5416         (struct lra_insn_reg): Likewise.
5417         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
5418         * lra.c (new_insn_reg): Replace new operator with allocate method.
5419         (free_insn_regs): Same for operator delete.
5420         (finish_insn_regs): Release new static allocator.
5421         (finish_insn_recog_data): Likewise.
5422         (lra_free_copies): Replace delete operator with remove method.
5423         (lra_create_copy): Replace operator new with allocate method.
5424         (invalidate_insn_data_regno_info): Same for remove method.
5425         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
5426         (free_debug_insn_changes): Replace delete operator with remove method.
5427         (replace_oldest_value_reg): Replace operator new with allocate method.
5428         (pass_cprop_hardreg::execute): Release new static variable.
5429         * sched-deps.c (sched_deps_init): Change pool_allocator to
5430         object_allocator.
5431         * sel-sched-ir.c: Likewise.
5432         * sel-sched-ir.h: Likewise.
5433         * stmt.c (expand_case): Likewise.
5434         (expand_sjlj_dispatch_table): Likewise.
5435         * tree-sra.c (struct access): Remove unused members.
5436         (struct assign_link): Likewise.
5437         (sra_deinitialize): Release newly added static pools.
5438         (create_access_1):Replace operator new with allocate method.
5439         (build_accesses_from_assign): Likewise.
5440         (create_artificial_child_access): Likewise.
5441         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
5442         pool_allocator to object_allocator.
5443         * tree-ssa-pre.c: Likewise.
5444         * tree-ssa-reassoc.c: Likewise.
5445         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5446         * tree-ssa-strlen.c: Likewise.
5447         * tree-ssa-structalias.c: Likewise.
5448         * var-tracking.c (onepart_pool_allocate): New function.
5449         (unshare_variable): Use the newly added function.
5450         (variable_merge_over_cur): Likewise.
5451         (variable_from_dropped): Likewise.
5452         (variable_was_changed): Likewise.
5453         (set_slot_part): Likewise.
5454         (emit_notes_for_differences_1): Likewise.
5455         (vt_finalize): Release newly added static pools.
5457 2015-07-16  Martin Jambor  <mjambor@suse.cz>
5459         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
5460         all uses.  Fix two typos in its general comment.
5461         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
5463 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
5465         * config/i386/linux-common.h (LINK_MPX): New.
5466         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
5467         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
5468         indicating '-z bndplt' support by linker.
5469         * configure: Regenerate.
5470         * config.in: Regenerate.
5472 2015-07-16  Richard Biener  <rguenther@suse.de>
5474         * fold-const.c (fold_widened_comparison): Remove.
5475         (fold_sign_changed_comparison): Likewise.
5476         (fold_comparison): Move widened and sign-changed comparison
5477         simplification ...
5478         * match.pd: ... to patterns here.
5479         * generic-match-head.c: Include target.h.
5480         * gimple-match-head.c: Likewise.
5482 2015-07-16  Richard Biener  <rguenther@suse.de>
5484         * tree-ssa-dom.c (dom_valueize): New function.
5485         (record_temporary_equivalences): Also record equivalences
5486         for dominating stmts that have uses of equivalences we are
5487         about to record.
5489 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
5491         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
5492         add_autoinc_candidates.
5493         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
5494         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
5495         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
5496         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
5497         Call new function.
5498         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
5499         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
5500         Remove parameter struct iv*.  Call add_autoinc_candidates here.
5501         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
5502         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
5503         Call new function.
5504         (find_iv_candidates): Call new functions.
5506 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
5508         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
5509         uninitialized-variable warning.
5511 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5513         PR target/65249
5514         * config/sh/sh.md (movdi): Split simple reg move to two movsi
5515         when the destination is R0.
5517 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
5519         PR target/66866
5520         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
5521         * config/i386/i386.c (ix86_expand_pextr): New function.
5522         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
5523         for non-lowpart subregs.
5524         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
5525         (insv<mode>): Use SWI248 mode iterator.
5526         (insv<mode>_1): Ditto.
5528 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5529             Sebastian Pop  <s.pop@samsung.com>
5531         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
5532         iterator to use_stmt.
5534 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5535             Sebastian Pop <s.pop@samsung.com>
5537         * graphite-scop-detection.c (build_scops_1): Discard scops for
5538         which entry==exit.
5540 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5541             Sebastian Pop <s.pop@samsung.com>
5543         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
5544         case of a return statement in scop.
5546 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5547             Sebastian Pop <s.pop@samsung.com>
5549         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
5550         INTEGER_TYPE parameters.
5551         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
5552         VECTOR_CST in scan_tree_for_params.
5553         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
5555 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5557         * gimple-pretty-print.h: Don't include pretty-print.h.
5558         * tree-streamer.h: Don't include lto-streamer.h.
5559         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
5560         * gimple-streamer-in.c: Remove redundant includes.
5561         * gimple-streamer-out.c: Likewise.
5562         * ipa-devirt.c: Likewise.
5563         * ipa-icf.c: Likewise.
5564         * ipa-inline-analysis.c: Likewise.
5565         * ipa-polymorphic-call.c: Likewise.
5566         * ipa-profile.c: Likewise.
5567         * ipa-prop.c: Likewise.
5568         * ipa-pure-const.c: Likewise.
5569         * lto-cgraph.c: Likewise.
5570         * lto-streamer-in.c: Likewise.
5571         * lto-streamer-out.c: Likewise.
5572         * lto-streamer.c: Likewise.
5573         * tree-streamer-in.c: Likewise.
5574         * tree-streamer-out.c: Likewise.
5575         * tree-streamer.c: Likewise.
5577 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5579         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
5580         include input.h.
5581         * opts.c: Remove multiline #include comment.
5583 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
5585         * config/nvptx/mkoffload.c (process): Add C++ protection to
5586         emitted code.
5588 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5590         PR target/66854
5591         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
5592         null before IEEE 128-bit floating point support patch.
5594 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5596         * simplify-rtx.c (simplify_ternary_operation): Add simplification
5597         for (!c) != {0,...,0} ? a : b for vector modes.
5599 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
5600             Martin Jambor  <mjambor@suse.cz>
5602         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
5603         struct func_body_info* instead of struct ipa_node_params*, expecting
5604         fbi->info to be filled in.  Replace throughout.  Adjust call to
5605         ipa_load_from_parm_agg.
5606         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
5607         instead of struct ipa_node_params*.  Adjust calls to other functions
5608         so that they pass either fbi or fbi->info.
5609         (set_switch_stmt_execution_predicate): Likewise.
5610         (will_be_nonconstant_predicate): Likewise.
5611         (compute_bb_predicates): Likewise.
5612         (estimate_function_body_sizes): Move asserts earlier.  Fill in
5613         struct func_body_info, replace parms_info with fbi.info.  Adjust
5614         calls to functions that now accept struct func_body_info.
5615         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
5616         (struct func_body_info): Likewise.
5617         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
5618         remove static.  Adjust callers.
5619         (ipa_load_from_parm_agg): Remove.
5620         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
5621         (func_body_info): Likewise.
5622         (ipa_load_from_parm_agg): Adjust prototype.
5624 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5626         * gensupport.c (rtx_handle_directive): Adjust.
5627         * read-rtl.c (apply_iterators): Take vector to add rtxs to
5628         instead of expr list rtx.
5629         (add_define_attr_for_define_subst): Likewise.
5630         (add_define_subst_attr): Likewise.
5631         (read_subst_mapping): Likewise.
5632         (read_rtx): Likewise.
5633         * rtl.h (read_rtx): Adjust.
5635 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5637         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
5639 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5641         PR target/58066
5642         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
5643         (*tls_local_dynamic_base_64_<mode>): Ditto.
5644         (*tls_local_dynamic_base_64_largepic): Ditto.
5645         (tls_global_dynamic_64_<mode>): Update expander pattern.
5646         (tls_local_dynamic_base_64_<mode>): Ditto.
5648 2015-07-15  Richard Biener  <rguenther@suse.de>
5650         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
5651         and bool_var == 1 -> bool_var simplifications ...
5652         * match.pd: ... to patterns here.  Factor out negate_expr_p
5653         cases from the A - B -> A + (-B) patterns as negate_expr_p
5654         predicate and add a -(A + B) -> (-B) - A pattern.
5656 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5658         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
5660 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
5661             Robert Suchanek  <robert.suchanek@imgtec.com>
5663         * config/mips/mips.c (mips_int_mask): New enum.
5664         (mips_shadow_set): Likewise.
5665         (int_mask): New variable.
5666         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
5667         (machine_function): Add int_mask and use_shadow_register_set.
5668         (mips_attribute_table): Add attribute handlers for interrupt and
5669         use_shadow_register_set.
5670         (mips_interrupt_mask): New static function.
5671         (mips_handle_interrupt_attr): Likewise.
5672         (mips_handle_use_shadow_register_set_attr): Likewise.
5673         (mips_use_shadow_register_set): Change return type to enum
5674         mips_shadow_set.  Add argument handling for use_shadow_register_set
5675         attribute.
5676         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
5677         compare with mips_shadow_set enum.
5678         (mips_compute_frame_info): Add interrupt mask and
5679         use_shadow_register_set to per-function information structure.
5680         Add a stack slot for EPC unconditionally.
5681         (mips_expand_prologue): Compare use_shadow_register_set value
5682         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
5683         masked interrupt register but in EIC mode use K0 and save Cause in K0.
5684         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
5685         copying the stack pointer from the shadow register set.
5686         * config/mips/mips.h (SR_IM0): New define.
5687         * config/mips/mips.md (mips_rdpgpr): Rename to...
5688         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
5689         * doc/extend.texi (Declaring Attributes of Functions): Document
5690         optional arguments for interrupt and use_shadow_register_set
5691         attributes.
5693 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5695         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
5696         interrupt attribute.
5697         (mips_expand_prologue): Disable the floating point unit in an ISR.
5698         * config/mips/mips.h (SR_COP1): New define.
5700 2015-07-15  Richard Biener  <rguenther@suse.de>
5702         * genmatch.c (parser::peek, parser::peek_ident): Add argument
5703         to tell how many tokens to peek ahead (default 1).
5704         (parser::eat_token, parser::eat_ident): Return token consumed.
5705         (parser::parse_result): Parse new switch statement.
5706         * match.pd: Use case statements where appropriate.
5708 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5710         PR rtl-optimization/58066
5711         * calls.c (expand_call): Precompute register parameters before stack
5712         alignment is performed.
5714 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5716         PR rtl-optimization/66838
5717         * postreload.c (reload_cse_move2add): Also process
5718         CALL_INSN_FUNCTION_USAGE when resetting information of
5719         call-clobbered registers.
5721 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5722             Cesar Philippidis  <cesar@codesourcery.com>
5723             Chung-Lin Tang  <cltang@codesourcery.com>
5725         * config/nios2/constraints.md (U, v): New constraints.
5726         * config/nios2/predicates.md (rdprs_dcache_operand): New.
5727         (ldstex_memory_operand): New.
5728         * config/nios2/sync.md: New file.
5729         * config/nios2/nios2.md (unspecv): Add new builtin function
5730         UNSPECV codes.
5731         (rdprs, flushd, flushda, wrpie, eni): New patterns.
5732         (top-level): Include sync.md.
5733         * config/nios2/nios2.c (N2_FTYPES): Add function types for
5734         new builtins.
5735         (N2_BUILTINS): Add arch field setting, add new builtins.
5736         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
5737         for arch field.
5738         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
5739         Also handle ldex/stex/ldsex/stsex builtins.
5740         (nios2_expand_rdprs_builtin): New function.
5741         (nios2_expand_cache_builtin): New function.
5742         (nios2_expand_wrpie_builtin): New function.
5743         (nios2_expand_eni_builtin): New function.
5744         (nios2_expand_builtin): Add arch field handling and new builtin
5745         cases.
5746         * doc/extend.texi (Altera Nios II Built-in Functions): Document
5747         new builtins.
5748         * doc/md.texi (Machine Constraints): Document U and v constraints.
5750 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5751             Cesar Philippidis  <cesar@codesourcery.com>
5752             Chung-Lin Tang  <cltang@codesourcery.com>
5754         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
5755         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
5756         callee_save_reg_size and uses_anonymous_args fields.
5757         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
5758         (nios2_create_cfa_notes): New function.
5759         (nios2_adjust_stack): New function for adjusting stack.
5760         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
5761         Use nios2_adjust_stack.
5762         (nios2_expand_epilogue): Likewise.
5763         (nios2_expand_return): New function.
5764         (nios2_can_use_return_insn): Update for CDX pop.n usage.
5765         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
5766         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
5767         * config/nios2/nios2.md (return): Use nios2_expand_return.
5769 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5770             Cesar Philippidis  <cesar@codesourcery.com>
5771             Chung-Lin Tang  <cltang@codesourcery.com>
5773         * config/nios2/predicates.md (pop_operation): New.
5774         (ldwm_operation, stwm_operation): New.
5775         (nios2_hard_register_operand): New.
5776         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
5777         (ldstwm_operation_p): Declare.
5778         (gen_ldstwm_peep): Declare.
5779         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
5780         (base_reg_adjustment_p): New.
5781         (pop_operation_p): New.
5782         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
5783         (nios2_ldstwm_regset_p): New.
5784         (ldstwm_operation_p): New.
5785         (gen_ldst): New.
5786         (nios2_ldst_parallel): New.
5787         (struct ldswm_operand): Declare.
5788         (compare_ldstwm_operands): New.
5789         (can_use_cdx_ldstw): New.
5790         (gen_ldstwm_peep): New.
5791         * config/nios2/nios2-ldstwm.sml: New.
5792         * config/nios2/nios2.md: Include ldstwm.md.
5793         * config/nios2/ldstwm.md: Generated.
5795 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5796             Cesar Philippidis  <cesar@codesourcery.com>
5797             Chung-Lin Tang  <cltang@codesourcery.com>
5799         * config/nios2/nios2.h (LABEL_ALIGN): Define.
5800         (REG_ALLOC_ORDER): Define.
5801         (ADJUST_REG_ALLOC_ORDER): Define.
5802         (HONOR_REG_ALLOC_ORDER): Define.
5803         (CDX_REG_P): Define.
5804         (ANDCLEAR_INT): Define.
5805         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
5806         (nios2_label_align): Declare.
5807         (nios2_cdx_narrow_form_p): Declare.
5808         (nios2_adjust_reg_alloc_order): Declare.
5809         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
5810         operation.
5811         (nios2_large_unspec_reloc_p): New function, split from...
5812         (nios2_legitimate_pic_operand_p): ...here.
5813         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
5814         (nios2_print_operand_punct_valid_p): New.
5815         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
5816         (split_mem_address): New.
5817         (split_alu_insn): New.
5818         (cdxreg): New.
5819         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
5820         (enum nios2_add_insn_kind): New.
5821         (nios2_add_insn_names, nios2_add_insn_narrow): New.
5822         (nios2_add_insn_classify): New.
5823         (nios2_add_insn_asm): New.
5824         (nios2_cdx_narrow_form_p): New.
5825         (label_align, min_labelno, max_labelno): New.
5826         (nios2_reorg): New.
5827         (nios2_label_align): New.
5828         (nios2_adjust_reg_alloc_order): New.
5829         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5830         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5831         * config/nios2/constraints.md (P): New constraint.
5832         * config/nios2/predicates.md (const_and_operand): New.
5833         (and_operand): New.
5834         (stack_memory_operand): New.
5835         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
5836         (length): Update to use nios2_cdx_narrow_form_p().
5837         (type): Add new insn type values.
5838         (control, alu, st, ld, shift): Update insn reservations with
5839         new insn type values.
5840         (*high, *lo_sum): Define new insn patterns for constant generation.
5841         (movqi_internal, movhi_internal, movsi_internal): Reduce
5842         alternatives, update asm template to handle CDX variants, update
5843         type attributes.
5844         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
5845         template, update type attributes.
5846         (extendhisi2, extendqi<mode>2): Likewise.
5847         (addsi3): Change to use function for asm string.
5848         (subsi3): Add CDX notation to asm template, update type attributes.
5849         (negsi3, one_cmplsi3): Likewise.
5850         (andsi3): New pattern, specialized from logical patterns.
5851         (<code>si3): Remove and case, combine alternatives, update asm
5852         template.
5853         (<shift_op>si3): Add CDX notation, update type attributes.
5854         (rotrsi3): Update type attribute.
5855         (*merge, extzv, insv): New insn patterns.
5856         (return): Change to define_expand.
5857         (simple_return): Add CDX notation, update type attributes.
5858         (indirect_jump): Add CDX notation.
5859         (jump): Update asm cases, update length attribute expression.
5860         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
5861         (nios2_cbranch): Update asm cases and length attribute expression
5862         to handle CDX variants.
5863         (nios2_cmp<code>): Update asm template.
5864         (nop): Add CDX notation, update type attributes.
5865         (trap): Add CDX notation.
5866         (ctrapsi4): Update asm cases and length attribute expression to
5867         handle CDX variant.
5868         * doc/md.texi (Machine Constraints): Document P constraint.
5870 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5871             Cesar Philippidis  <cesar@codesourcery.com>
5872             Chung-Lin Tang  <cltang@codesourcery.com>
5874         * config/nios2/nios2.h (SMALL_INT12): New macro.
5875         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
5876         (nios2_valid_addr_expr_p): Use it.
5877         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
5878         with implicit "io" instructions on R2.
5879         * config/nios2/constraints.md (w): New constraint.
5880         * config/nios2/predicates.md (ldstio_memory_operand): New.
5881         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
5882         operand predicate and constraint.
5883         (ld<bh>io_signed, st<bhw>io>): Likewise.
5884         * doc/md.texi (Machine Constraints): Document w constraint.
5886 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5887             Cesar Philippidis  <cesar@codesourcery.com>
5888             Chung-Lin Tang  <cltang@codesourcery.com>
5890         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
5891         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
5892         Nios II architecture level.
5893         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
5894         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
5895         (OPTION_DEFAULT_SPECS): Define.
5896         (ASM_SPEC): Add -march= spec strings.
5897         * config/nios2/nios2.c (nios2_option_override): Check for
5898         conflicts involving new options.
5899         * config.gcc (nios2*-*-*): Support --with-arch=.
5900         * doc/invoke.texi (Option Summary, Nios II Options): Document
5901         -march=, -mbmx, and -mcdx.
5903 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
5905         PR rtl-optimization/66626
5906         * lra-constraints.c (lra_constraints): Prevent equivalence
5907         substitution for static chain pseudo in functions with nonlocal
5908         goto.
5910 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5912         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
5913         (nios2_emit_stack_limit_check): Add size parameter.  Handle
5914         -fstack-limit-symbol as well as -fstack-limit-register.
5915         (nios2_expand_prologue): Emit only a single stack limit check,
5916         even if multiple stack adjustments are required.
5917         (nios2_option_override): Diagnose unsupported combination of -fpic
5918         and -stack-limit-symbol.
5920 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
5922         * Makefile.in (top_srcdir): New.
5923         * configure.ac: Use AM_ZLIB.
5924         * configure: Regeneated.
5926 2015-07-14  Matthias Klose  <doko@ubuntu.com>
5928         PR target/66840
5929         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
5931 2015-07-14  Richard Biener  <rguenther@suse.de>
5933         PR tree-optimization/66863
5934         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
5935         what we record for conversion use stmt lhs inequalities.
5937 2015-07-14  Richard Biener  <rguenther@suse.de>
5939         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
5940         (decision_tree::gen_gimple): Likewise.
5942 2015-07-14  Tom de Vries  <tom@codesourcery.com>
5944         * gcc.c (greater_than_spec_func): Declare forward.
5945         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
5946         -ftree-parallelize-loops={0,1}.
5947         (static_spec_functions): Add greater_than_spec_func function with name
5948         "gt".
5949         (greater_than_spec_func): New function.
5951 2015-07-14  Richard Biener  <rguenther@suse.de>
5953         * tree-ssa-dom.c (record_temporary_equivalences): Merge
5954         wideing type conversion case from record_equivalences_from_incoming_edge
5955         and use record_equality to record equivalences.
5956         (record_equivalences_from_incoming_edge): Call
5957         record_temporary_equivalences.
5959 2015-07-14  Richard Biener  <rguenther@suse.de>
5961         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
5962         (struct if_expr): New.
5963         (struct with_expr): Likewise.
5964         (is_a_helper): Add helpers for if_expr and with_expr.
5965         (struct simplify): Add simplify_kind enum and member.  Remove
5966         ifexpr_vec member.
5967         (simplify::simplify): Adjust.
5968         (lower_commutative): Adjust.
5969         (lower_opt_convert): Likewise.
5970         (lower_cond): Likewise.
5971         (replace_id): Handle with_expr and if_expr.
5972         (lower_for): Adjust.
5973         (dt_simplify::gen_1): New recursive worker, split out from ...
5974         (dt_simplify::gen): ... here.  Deal with if and with expansion
5975         recursively.
5976         (capture_info::capture_info): Take context argument
5977         (capture_info::walk_result): Only analyze specific result.
5978         (parser::parse_result): New function.
5979         (parser::parse_simplify): Adjust to parse ifs with then end
5980         else case.
5981         (parser::parse_if): Simplify.
5982         (parser::parse_pattern): Pass down simplify kind.
5983         * match.pd: Convert if structure to new syntax.
5985 2015-07-13  Marek Polacek  <polacek@redhat.com>
5987         * rtl.c (rtx_equal_p_cb): Fix typo.
5989 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
5991         * omega.h: Don't include config.h, don't include params.h again if
5992         omega.h has already been included.
5993         * graphite-poly.h: Include sese.h.
5994         * graphite.c: Don't include sese.h, remove needless includes and
5995         minimize includes outside #ifdef HAVE_isl block.
5996         * graphite-blocking.c: Don't include sese.h, remove needless includes,
5997         and wrap entire file in #ifdef HAVE_isl
5998         * graphite-dependences.c: Likewise.
5999         * graphite-interchange.c: Likewise.
6000         * graphite-isl-ast-to-gimple.c: Likewise.
6001         * graphite-optimize-isl.c: Likewise.
6002         * graphite-poly.c: Likewise.
6003         * graphite-scop-detection.c: Likewise.
6004         * graphite-sese-to-poly.c: Likewise.
6006 2015-07-13  Tom de Vries  <tom@codesourcery.com>
6008         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
6010 2015-07-13  Renlin Li  <renlin.li@arm.com>
6012         PR rtl/66556
6013         * simplify-rtx.c (simplify_const_relational_operation): Add
6014         side_effects_p checks.
6016 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
6018         * bitmap.h: Fix double word typos.
6019         * builtins.c: Same.
6020         * calls.c: Same.
6021         * cfgloopmanip.c: Same.
6022         * cgraph.c: Same.
6023         * cgraph.h: Same.
6024         * cgraphclones.c: Same.
6025         * combine.c: Same.
6026         * config/aarch64/aarch64-protos.h: Same.
6027         * config/aarch64/aarch64.c: Same.
6028         * config/aarch64/aarch64.md: Same.
6029         * config/arm/arm.md: Same.
6030         * config/arm/arm1020e.md: Same.
6031         * config/arm/arm1026ejs.md: Same.
6032         * config/arm/arm926ejs.md: Same.
6033         * config/arm/fa526.md: Same.
6034         * config/arm/fa606te.md: Same.
6035         * config/arm/fa626te.md: Same.
6036         * config/arm/fa726te.md: Same.
6037         * config/arm/fmp626.md: Same.
6038         * config/darwin.c: Same.
6039         * config/epiphany/epiphany.c: Same.
6040         * config/frv/frv.c: Same.
6041         * config/ft32/ft32.c: Same.
6042         * config/gnu-user.h: Same.
6043         * config/h8300/constraints.md: Same.
6044         * config/i386/i386.c: Same.
6045         * config/i386/i386.md: Same.
6046         * config/iq2000/iq2000.md: Same.
6047         * config/mips/mips.c: Same.
6048         * config/mmix/mmix.md: Same.
6049         * config/moxie/moxie.c: Same.
6050         * config/nds32/nds32.md: Same.
6051         * config/pa/pa.h: Same.
6052         * config/rs6000/aix.h: Same.
6053         * config/rs6000/rs6000.h: Same.
6054         * config/sh/sh.c: Same.
6055         * config/tilegx/tilegx.md: Same.
6056         * config/tilepro/gen-mul-tables.cc: Same.
6057         * cse.c: Same.
6058         * dbxout.c: Same.
6059         * doc/invoke.texi: Same.
6060         * dse.c: Same.
6061         * dwarf2out.c: Same.
6062         * final.c: Same.
6063         * gcc.c: Same.
6064         * genmatch.c: Same.
6065         * gimplify.c: Same.
6066         * hash-table.h: Same.
6067         * internal-fn.c: Same.
6068         * ipa-cp.c: Same.
6069         * ipa-devirt.c: Same.
6070         * ipa-icf.c: Same.
6071         * ipa-icf.h: Same.
6072         * ipa-profile.c: Same.
6073         * ipa-prop.c: Same.
6074         * ipa-prop.h: Same.
6075         * ira.c: Same.
6076         * omp-low.c: Same.
6077         * reg-stack.c: Same.
6078         * regcprop.c: Same.
6079         * reorg.c: Same.
6080         * rtl.h: Same.
6081         * sbitmap.h: Same.
6082         * tree-eh.c: Same.
6083         * tree-inline.c: Same.
6084         * tree-sra.c: Same.
6085         * tree-ssa-dom.c: Same.
6086         * tree-ssa-loop-ivopts.c: Same.
6087         * tree-ssa-structalias.c: Same.
6088         * tree-ssa-tail-merge.c: Same.
6089         * tree-ssa-ter.c: Same.
6090         * tree-ssa-threadupdate.c: Same.
6091         * tree-ssa-uninit.c: Same.
6092         * tree-ssanames.c: Same.
6093         * tree-vect-loop-manip.c: Same.
6094         * tree-vrp.c: Same.
6095         * tree.c: Same.
6096         * valtrack.c: Same.
6097         * vec.h: Same.
6099 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6101         PR middle-end/66726
6102         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
6103         tree_ssa_phiopt_worker): Call it.
6105 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6107         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
6108         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
6109         REG_EQUAL note.
6111 2015-07-11  Marek Polacek  <polacek@redhat.com>
6113         PR middle-end/66353
6114         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
6115         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
6116         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
6117         rather than bb_has_abnormal_call_pred.
6118         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
6119         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
6120         rather than bb_has_abnormal_call_pred.
6122 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
6124         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6125         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
6126         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6127         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
6128         v850_legitimate_address_p): New functions.
6129         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6131 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6133         PR target/66819
6134         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
6135         indirect sibcall with register arguments if register available
6136         for argument passing.
6137         (init_cumulative_args): Set cfun->machine->arg_reg_available
6138         to (cum->nregs > 0) or to true if function has a variable
6139         argument list.
6140         (function_arg_advance_32): Set cfun->machine->arg_reg_available
6141         to false if cum->nregs <= 0.
6142         * config/i386/i386.h (machine_function): Add arg_reg_available.
6144 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6146         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
6147         and gen_higpart instead of gen_rtx_SUBREG.
6148         * config/i386/i386.md
6149         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
6150         (read-modify peephole2): Use gen_lowpart instead of
6151         gen_rtx_SUBREG for operand 5.
6153 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
6155         * config/tilepro/gen-mul-tables.cc (main): Change include list for
6156         generated files.
6157         * config/tilepro/mul-tables.c: Regenerate.
6158         * config/tilegx/mul-tables.c: Regenerate.
6160 2015-07-10  Richard Biener  <rguenther@suse.de>
6162         * fold-const.c (distribute_bit_expr): Remove.
6163         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
6164         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
6165         to A & (B | C) and simplifying A << C1 << C2 to ...
6166         * match.pd: ... patterns here.
6168 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
6170         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6171         Mark mem as READONLY and NOTRAP for PIC symbol.
6173 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
6175         * gimple-predict.h: New file.
6176         (gimple_predict_predictor, gimple_predict_set_predictor,
6177         gimple_predict_outcome, gimple_predict_set_outcome,
6178         gimple_build_predict): Relocate here.
6179         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
6180         gimple_predict_outcome, gimple_predict_set_outcome): Move to
6181         gimple-predict.h.
6182         * gimple.c (gimple_build_predict): Move to gimple-predict.h
6183         * basic-block.h: Don't include cfghooks.h.
6184         * backend.h: Don't include predict.h.
6185         * cfghooks.h: Include predict.h.
6186         * gimple-pretty-print.c: Include gimple-predict.h.
6187         * gimplify.c: Likwise.
6188         * predict.c: Adjust includes.
6189         * tree-inline.c: Likewise.
6190         * asan.c: Likewise.
6191         * auto-inc-dec.c: Likewise.
6192         * auto-profile.c: Likewise.
6193         * bb-reorder.c: Likewise.
6194         * builtins.c: Likewise.
6195         * caller-save.c: Likewise.
6196         * calls.c: Likewise.
6197         * cfganal.c: Likewise.
6198         * cfgbuild.c: Likewise.
6199         * cfg.c: Likewise.
6200         * cfgcleanup.c: Likewise.
6201         * cfgexpand.c: Likewise.
6202         * cfghooks.c: Likewise.
6203         * cfgloopanal.c: Likewise.
6204         * cfgloop.c: Likewise.
6205         * cfgloopmanip.c: Likewise.
6206         * cfgrtl.c: Likewise.
6207         * cgraph.c: Likewise.
6208         * cgraphunit.c: Likewise.
6209         * combine.c: Likewise.
6210         * cprop.c: Likewise.
6211         * cse.c: Likewise.
6212         * dce.c: Likewise.
6213         * dojump.c: Likewise.
6214         * dse.c: Likewise.
6215         * except.c: Likewise.
6216         * expmed.c: Likewise.
6217         * expr.c: Likewise.
6218         * final.c: Likewise.
6219         * fold-const.c: Likewise.
6220         * function.c: Likewise.
6221         * fwprop.c: Likewise.
6222         * gcc-plugin.h: Likewise.
6223         * gcse.c: Likewise.
6224         * genattrtab.c: Likewise.
6225         * genemit.c: Likewise.
6226         * gengtype.c: Likewise.
6227         * genopinit.c: Likewise.
6228         * genoutput.c: Likewise.
6229         * genpreds.c: Likewise.
6230         * genrecog.c: Likewise.
6231         * gimple-fold.c: Likewise.
6232         * gimple-iterator.c: Likewise.
6233         * gimple-ssa-isolate-paths.c: Likewise.
6234         * gimple-ssa-strength-reduction.c: Likewise.
6235         * graph.c: Likewise.
6236         * graphite-blocking.c: Likewise.
6237         * graphite.c: Likewise.
6238         * graphite-dependences.c: Likewise.
6239         * graphite-interchange.c: Likewise.
6240         * graphite-isl-ast-to-gimple.c: Likewise.
6241         * graphite-optimize-isl.c: Likewise.
6242         * graphite-poly.c: Likewise.
6243         * graphite-scop-detection.c: Likewise.
6244         * graphite-sese-to-poly.c: Likewise.
6245         * haifa-sched.c: Likewise.
6246         * ifcvt.c: Likewise.
6247         * internal-fn.c: Likewise.
6248         * ipa-cp.c: Likewise.
6249         * ipa-profile.c: Likewise.
6250         * ipa-split.c: Likewise.
6251         * ipa-utils.c: Likewise.
6252         * ira-build.c: Likewise.
6253         * ira-color.c: Likewise.
6254         * ira-conflicts.c: Likewise.
6255         * ira-costs.c: Likewise.
6256         * ira-emit.c: Likewise.
6257         * ira-lives.c: Likewise.
6258         * jump.c: Likewise.
6259         * loop-doloop.c: Likewise.
6260         * loop-init.c: Likewise.
6261         * loop-invariant.c: Likewise.
6262         * loop-unroll.c: Likewise.
6263         * lower-subreg.c: Likewise.
6264         * lra-assigns.c: Likewise.
6265         * lra.c: Likewise.
6266         * lra-coalesce.c: Likewise.
6267         * lra-constraints.c: Likewise.
6268         * lra-lives.c: Likewise.
6269         * lto-cgraph.c: Likewise.
6270         * lto-streamer-in.c: Likewise.
6271         * mode-switching.c: Likewise.
6272         * modulo-sched.c: Likewise.
6273         * omp-low.c: Likewise.
6274         * optabs.c: Likewise.
6275         * passes.c: Likewise.
6276         * postreload.c: Likewise.
6277         * postreload-gcse.c: Likewise.
6278         * profile.c: Likewise.
6279         * recog.c: Likewise.
6280         * regstat.c: Likewise.
6281         * reload1.c: Likewise.
6282         * reorg.c: Likewise.
6283         * rtlanal.c: Likewise.
6284         * sched-ebb.c: Likewise.
6285         * sel-sched-ir.c: Likewise.
6286         * sese.c: Likewise.
6287         * shrink-wrap.c: Likewise.
6288         * simplify-rtx.c: Likewise.
6289         * stmt.c: Likewise.
6290         * store-motion.c: Likewise.
6291         * tracer.c: Likewise.
6292         * trans-mem.c: Likewise.
6293         * tree-call-cdce.c: Likewise.
6294         * tree-cfg.c: Likewise.
6295         * tree-cfgcleanup.c: Likewise.
6296         * tree-chkp.c: Likewise.
6297         * tree-complex.c: Likewise.
6298         * tree-eh.c: Likewise.
6299         * tree-if-conv.c: Likewise.
6300         * tree-loop-distribution.c: Likewise.
6301         * tree-outof-ssa.c: Likewise.
6302         * tree-parloops.c: Likewise.
6303         * tree-predcom.c: Likewise.
6304         * tree-pretty-print.c: Likewise.
6305         * tree-profile.c: Likewise.
6306         * tree-sra.c: Likewise.
6307         * tree-ssa.c: Likewise.
6308         * tree-ssa-coalesce.c: Likewise.
6309         * tree-ssa-dce.c: Likewise.
6310         * tree-ssa-dom.c: Likewise.
6311         * tree-ssa-forwprop.c: Likewise.
6312         * tree-ssa-ifcombine.c: Likewise.
6313         * tree-ssa-loop-ch.c: Likewise.
6314         * tree-ssa-loop-im.c: Likewise.
6315         * tree-ssa-loop-ivcanon.c: Likewise.
6316         * tree-ssa-loop-ivopts.c: Likewise.
6317         * tree-ssa-loop-manip.c: Likewise.
6318         * tree-ssa-loop-prefetch.c: Likewise.
6319         * tree-ssa-loop-unswitch.c: Likewise.
6320         * tree-ssa-math-opts.c: Likewise.
6321         * tree-ssa-phiopt.c: Likewise.
6322         * tree-ssa-pre.c: Likewise.
6323         * tree-ssa-reassoc.c: Likewise.
6324         * tree-ssa-sink.c: Likewise.
6325         * tree-ssa-tail-merge.c: Likewise.
6326         * tree-ssa-threadedge.c: Likewise.
6327         * tree-ssa-threadupdate.c: Likewise.
6328         * tree-switch-conversion.c: Likewise.
6329         * tree-tailcall.c: Likewise.
6330         * tree-vect-data-refs.c: Likewise.
6331         * tree-vect-loop.c: Likewise.
6332         * tree-vect-loop-manip.c: Likewise.
6333         * tree-vectorizer.c: Likewise.
6334         * tree-vrp.c: Likewise.
6335         * ubsan.c: Likewise.
6336         * value-prof.c: Likewise.
6337         * varasm.c: Likewise.
6338         * var-tracking.c: Likewise.
6339         * config/aarch64/aarch64-builtins.c: Likewise.
6340         * config/aarch64/aarch64.c: Likewise.
6341         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6342         * config/alpha/alpha.c: Likewise.
6343         * config/arc/arc.c: Likewise.
6344         * config/arm/arm.c: Likewise.
6345         * config/avr/avr.c: Likewise.
6346         * config/bfin/bfin.c: Likewise.
6347         * config/c6x/c6x.c: Likewise.
6348         * config/cr16/cr16.c: Likewise.
6349         * config/cris/cris.c: Likewise.
6350         * config/darwin.c: Likewise.
6351         * config/darwin-c.c: Likewise.
6352         * config/epiphany/epiphany.c: Likewise.
6353         * config/epiphany/mode-switch-use.c: Likewise.
6354         * config/epiphany/resolve-sw-modes.c: Likewise.
6355         * config/fr30/fr30.c: Likewise.
6356         * config/frv/frv.c: Likewise.
6357         * config/ft32/ft32.c: Likewise.
6358         * config/h8300/h8300.c: Likewise.
6359         * config/i386/i386.c: Likewise.
6360         * config/i386/winnt.c: Likewise.
6361         * config/ia64/ia64.c: Likewise.
6362         * config/iq2000/iq2000.c: Likewise.
6363         * config/lm32/lm32.c: Likewise.
6364         * config/m32c/m32c.c: Likewise.
6365         * config/m32r/m32r.c: Likewise.
6366         * config/m68k/m68k.c: Likewise.
6367         * config/mcore/mcore.c: Likewise.
6368         * config/mep/mep.c: Likewise.
6369         * config/microblaze/microblaze.c: Likewise.
6370         * config/mips/mips.c: Likewise.
6371         * config/mmix/mmix.c: Likewise.
6372         * config/mn10300/mn10300.c: Likewise.
6373         * config/moxie/moxie.c: Likewise.
6374         * config/msp430/msp430.c: Likewise.
6375         * config/nds32/nds32.c: Likewise.
6376         * config/nds32/nds32-cost.c: Likewise.
6377         * config/nds32/nds32-fp-as-gp.c: Likewise.
6378         * config/nds32/nds32-intrinsic.c: Likewise.
6379         * config/nds32/nds32-isr.c: Likewise.
6380         * config/nds32/nds32-md-auxiliary.c: Likewise.
6381         * config/nds32/nds32-memory-manipulation.c: Likewise.
6382         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6383         * config/nds32/nds32-predicates.c: Likewise.
6384         * config/nios2/nios2.c: Likewise.
6385         * config/nvptx/nvptx.c: Likewise.
6386         * config/pa/pa.c: Likewise.
6387         * config/pdp11/pdp11.c: Likewise.
6388         * config/rl78/rl78.c: Likewise.
6389         * config/rs6000/rs6000.c: Likewise.
6390         * config/rx/rx.c: Likewise.
6391         * config/s390/s390.c: Likewise.
6392         * config/sh/sh.c: Likewise.
6393         * config/sh/sh-mem.cc: Likewise.
6394         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6395         * config/sh/sh_treg_combine.cc: Likewise.
6396         * config/sparc/sparc.c: Likewise.
6397         * config/spu/spu.c: Likewise.
6398         * config/stormy16/stormy16.c: Likewise.
6399         * config/tilegx/tilegx.c: Likewise.
6400         * config/tilepro/tilepro.c: Likewise.
6401         * config/v850/v850.c: Likewise.
6402         * config/vax/vax.c: Likewise.
6403         * config/visium/visium.c: Likewise.
6404         * config/xtensa/xtensa.c: Likewise.
6406 2015-07-10  Richard Biener  <rguenther@suse.de>
6408         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
6409         (decision_tree::gen_gimple): Likewise.
6410         (decision_tree::gen_generic): Likewise.
6412 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6414         PR target/66813
6415         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
6416         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
6418 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
6420         PR middle-end/66820
6421         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
6422         or ORT_TASK contexts.
6423         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
6424         is non-zero.
6426 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6428         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6429         above function.
6431 2015-07-10  Tom de Vries  <tom@codesourcery.com>
6433         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
6434         insert nit + 1 bound.
6436 2015-07-10  Richard Biener  <rguenther@suse.de>
6438         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
6439         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
6440         (if_convertible_loop_p_1): For this always compute bb predicates.
6441         (if_convertible_loop_p): And free them.
6443 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6445         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
6446         in dump message.
6448 2015-07-10  Richard Biener  <rguenther@suse.de>
6450         PR tree-optimization/66823
6451         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
6452         inverted predicate.
6454 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
6456         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
6457         to handle mips[32|64]r3 and mips[32|64]r5.
6459 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
6461         PR middle-end/66633
6462         * tree-nested.c (get_static_chain): Or in a flag into
6463         info->static_chain_added.
6464         (get_frame_field, get_nonlocal_debug_decl): Likewise.
6465         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
6466         2015-07-01 changes.
6467         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
6468         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
6469         add it to clauses.
6471         PR tree-optimization/66718
6472         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
6473         field.
6474         (vect_simd_lane_linear): New function.
6475         (vectorizable_simd_clone_call): Support using linear arguments for
6476         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
6478 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6480         PR target/66821
6481         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
6483 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6485         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
6486         Use machine mode, not enum machine_mode in the prototype.
6488         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
6489         classify 128-bit floating point support.
6490         (FLOAT128_IBM_P): Likewise.
6491         (FLOAT128_VECTOR_P): Likewise.
6492         (FLOAT128_2REG_P): Likewise.
6493         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
6494         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
6495         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6496         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6498         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
6499         tests against TFmode/TDmode, since those modes do not use VSX
6500         addresses.
6501         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
6502         support.
6503         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
6504         tests against TFmode, etc.
6505         (invalid_e500_subreg): Add tests against IFmode/KFmode.
6506         (reg_offset_addressing_ok_p): Likewise.
6507         (rs6000_legitimate_offset_address_p): Likewise.
6508         (rs6000_legitimize_address): Likewise.
6509         (rs6000_legitimize_reload_address): Likewise.
6510         (rs6000_legitimate_address_p): Clean up tests against TFmode and
6511         TDmode to use the new helper macros, which will include IFmode and
6512         KFmode.
6513         (rs6000_emit_move): Likewise.
6514         (rs6000_darwin64_record_arg_recurse): Likewise.
6515         (print_operand): Likewise.
6516         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
6517         that uses a single vector register as a vector and not as a
6518         floating point register in terms of the calling sequence.
6519         (rs6000_discover_homogeneous_aggregate): Likewise.
6520         (rs6000_return_in_memory): Likewise.
6521         (init_cumulative_args): Likewise.
6522         (rs6000_function_arg_boundary): Likewise.
6523         (rs6000_function_arg_advance_1): Likewise.
6524         (rs6000_function_arg): Likewise.
6525         (rs6000_pass_by_reference): Likewise.
6526         (rs6000_gimplify_va_arg): Likewise.
6527         (rs6000_secondary_reload_memory): Use machine_mode not enum
6528         machine mode.
6529         (rs6000_split_multireg_move): Use new helper macros.
6530         (spe_func_has_64bit_regs_p): Likewise.
6531         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
6532         (output_toc): Use new helper macros.
6533         (rs6000_register_move_cost): Likewise.
6534         (rs6000_function_value): Add IEEE 128-bit floating point calling
6535         sequence support.
6536         (rs6000_libcall_value): Likewise.
6537         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
6538         floating point support.
6539         (rs6000_vector_mode_supported_p): Likewise.
6541 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
6543         PR rtl-optimization/66782
6544         * lra-int.h (struct lra_insn_recog_data): Add comment about
6545         clobbered hard regs for arg_hard_regs.
6546         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
6547         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
6548         Add condition for processing used hard regs.
6549         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
6550         Process clobbered hard regs.
6552 2015-07-09  Michael Matz  <matz@suse.de>
6554         * genmatch.c (fprintf_indent): New function.
6555         (operand::gen_transform): Add indent parameter.
6556         (expr::gen_transform, c_expr::gen_transform,
6557         capture::gen_transform): Ditto and use fprintf_indent.
6558         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
6559         (dt_operand::gen, dt_operand::gen_predicate,
6560         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
6561         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
6562         (decision_tree::gen_gimple): Adjust calls and indent generated
6563         code.
6564         (decision_tree::gen_generic): Ditto.
6565         (write_predicate): Ditto.
6567 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6569         PR target/66814
6570         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
6571         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
6572         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
6573         {GENERAL,SSE,MMX}_REG_P where appropriate.
6575 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6577         * lto-streamer.h: Don't include target.h and alloc-pool.h.
6578         * builtins.c: Adjust includes.
6579         * gimple.c: Likewise.
6580         * ipa-icf.c: Likewise.
6581         * lto-opts.c: Likewise.
6582         * ipa-reference.c: Likewise.
6583         * lto-section-out.c: Likewise.
6584         * lto-streamer-in.c: Likewise.
6585         * lto-streamer-out.c: Likewise.
6586         * opts-global.c: Likewise.
6587         * symtab.c: Likewise.
6588         * tree-chkp.c: Likewise.
6589         * tree-ssa-live.c: Likewise.
6590         * tree-streamer-in.c: Likewise.
6591         * tree-streamer-out.c: Likewise.
6592         * config/darwin.c: Likewise.
6593         * config/i386/winnt.c: Likewise.
6595 2015-07-09  Richard Biener  <rguenther@suse.de>
6597         * genmatch.c (struct expr): Add force_single_use flag.
6598         (expr::expr): Add copy constructor.
6599         (capture_info::walk_match): Gather force_single_use captures.
6600         (expr::gen_transform): Use possibly NULLified sequence.
6601         (dt_simplify::gen): Apply single-use restrictions by NULLifying
6602         seq if any constrained expr is not single-use.
6603         (parser::parse_expr): Refactor to allow multiple flags.  Handle
6604         's' flag to force an expression have a single-use if the pattern
6605         simplifies to more than one statement.
6606         * match.pd: Convert most single_use conditionals to :s flags.
6608 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6610         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
6611         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6612         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6614 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6616         * flags.h: Don't include flag-types.h or options.h.
6617         * opts-common.c: Adjust includes.
6618         * opts-global.c: Likewise.
6619         * common/config/epiphany/epiphany-common.c: Likewise.
6621 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6623         PR target/66818
6624         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
6625         for IA MCU.
6627 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6629         PR target/66817
6630         * config/i386/i386.c (ix86_return_in_memory): Return true
6631         if int_size_in_bytes returns negative for IA MCU.
6633 2015-07-09  Marek Polacek  <polacek@redhat.com>
6635         PR tree-optimization/66718
6636         * Makefile.in (OBJS): Add gimple-laddress.o.
6637         * passes.def: Schedule pass_laddress.
6638         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
6639         * tree-pass.h (make_pass_laddress): Declare.
6640         * gimple-laddress.c: New file.
6642 2015-07-09  Richard Biener  <rguenther@suse.de>
6644         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
6646 2015-07-09  Richard Biener  <rguenther@suse.de>
6648         PR tree-optimization/66807
6649         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
6651 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
6653         * function.c (stack_protect_epilogue): Use if rather than switch for
6654         check targetm.have_stack_protect_test.
6656 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6658         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
6659         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
6660         * config/arc/arc.h: Likewise.
6661         * config/arm/arm.h: Likewise.
6662         * config/bfin/bfin.h: Likewise.
6663         * config/epiphany/epiphany.h: Likewise.
6664         * config/frv/frv.h: Likewise.
6665         * config/ia64/ia64.h: Likewise.
6666         * config/iq2000/iq2000.h: Likewise.
6667         * config/lm32/lm32.h: Likewise.
6668         * config/m32r/m32r.h: Likewise.
6669         * config/mcore/mcore.h: Likewise.
6670         * config/mep/mep.h: Likewise.
6671         * config/microblaze/microblaze.h: Likewise.
6672         * config/mips/mips.h: Likewise.
6673         * config/mmix/mmix.h: Likewise.
6674         * config/mn10300/mn10300.h: Likewise.
6675         * config/nds32/nds32.h: Likewise.
6676         * config/nios2/nios2.h: Likewise.
6677         * config/pa/pa.h: Likewise.
6678         * config/rl78/rl78.h: Likewise.
6679         * config/sh/sh.h: Likewise.
6680         * config/sparc/sparc.h: Likewise.
6681         * config/stormy16/stormy16.h: Likewise.
6682         * config/tilegx/tilegx.h: Likewise.
6683         * config/tilepro/tilepro.h: Likewise.
6684         * config/v850/v850.h: Likewise.
6685         * config/xtensa/xtensa.h: Likewise.
6686         * doc/tm.texi: Regenerate.
6687         * doc/tm.texi.in: Adjust.
6688         * combine.c (simplify_set): Likewise.
6689         (simplify_comparison): Likewise.
6690         * expr.c (store_constructor): Likewise.
6691         * internal-fn.c (expand_arith_overflow): Likewise.
6692         * reload.c (push_reload): Likewise.
6693         (find_reloads): Likewise.
6694         (find_reloads_subreg_address): Likewise.
6695         * reload1.c (eliminate_regs_1): Likewise.
6696         * rtlanal.c (nonzero_bits1): Likewise.
6697         (num_sign_bit_copies1): Likewise.
6698         * simplify-rtx.c (simplify_truncation): Likewise.
6700 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6702         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
6703         of AUTO_INC_DEC with the preprocessor.
6704         * combine.c (combine_instructions): Likewise.
6705         (can_combine_p): Likewise.
6706         (try_combine): Likewise.
6707         * emit-rtl.c (try_split): Likewise.
6708         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6709         * lower-subreg.c (resolve_simple_move): Likewise.
6710         * lra.c (update_inc_notes): Likewise.
6711         * recog.c (asm_operand_ok): Likewise.
6712         (constrain_operands): Likewise.
6713         * regrename.c (scan_rtx_address): Likewise.
6714         * reload.c (update_auto_inc_notes): Likewise.
6715         (reg_inc_found_and_valid_p): Likewise.
6716         * reload1.c (reload): Likewise.
6717         (emit_input_reload_insns): Likewise.
6718         (delete_output_reload): Likewise.
6719         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6720         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6722 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6724         * rtl.h: Always define AUTO_INC_DEC.
6725         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
6726         * combine.c (combine_instructions): Likewise.
6727         (can_combine_p): Likewise.
6728         (try_combine): Likewise.
6729         * emit-rtl.c (try_split): Likewise.
6730         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6731         * lower-subreg.c (resolve_simple_move): Likewise.
6732         * lra.c (update_inc_notes): Likewise.
6733         * recog.c (asm_operand_ok): Likewise.
6734         (constrain_operands): Likewise.
6735         * regrename.c (scan_rtx_address): Likewise.
6736         * reload.c (update_auto_inc_notes): Likewise.
6737         (find_equiv_reg): Likewise.
6738         * reload1.c (reload): Likewise.
6739         (reload_as_needed): Likewise.
6740         (choose_reload_regs): Likewise.
6741         (emit_input_reload_insns): Likewise.
6742         (delete_output_reload): Likewise.
6743         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6744         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6746 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6748         * combine.c (can_combine_def_p): Don't check the value of
6749         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
6750         (combinable_i3pat): Likewise.
6751         (mark_used_regs_combine): Likewise.
6752         * regrename.c (rename_chains): Likewise.
6753         * reload.c (find_reloads_address): Likewise.
6754         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6756 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6758         * combine.c (update_rsp_from_reg_equal): Don't check if
6759         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
6760         (reg_nonzero_bits_for_combine): Likewise.
6761         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
6762         1.
6763         * config/frv/frv.h: Likewise.
6764         * config/lm32/lm32.h: Likewise.
6765         * config/mep/mep.h: Likewise.
6766         * config/mips/mips.h: Likewise.
6767         * config/rs6000/rs6000.h: Likewise.
6768         * config/sh/sh.h: Likewise.
6769         * config/tilegx/tilegx.h (enum reg_class): Likewise.
6770         * config/tilepro/tilepro.h: Likewise.
6771         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
6772         * doc/tm.texi: Regenerate.
6773         * doc/tm.texi.in: Adjust.
6774         * rtlanal.c (nonzero_bits1): Likewise.
6776 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6778         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
6779         with the preprocessor.
6780         (combine_instructions): Likewise.
6781         (try_combine): Likewise.
6782         (subst): Likewise.
6783         (distribute_notes): Likewise.
6785 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6787         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
6788         defined.
6789         (simplify_set): Likewise.
6790         * cse.c (cse_insn): Likewise.
6791         * fold-const.c (fold_single_bit_test): Likewise.
6792         (fold_unary_loc): Likewise.
6793         * postreload.c (reload_cse_simplify_set): Likewise.
6794         (reload_cse_simplify_operands): Likewise.
6796 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
6798         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
6799         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
6801 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6803         PR target/66746
6804         * config/i386/x86intrin.h: Include <adxintrin.h> even if
6805         __iamcu__ is defined.
6807 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6809         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
6811 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
6813         PR target/66523
6814         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
6815         names from preservation.
6817 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6819         PR target/66806
6820         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
6821         change for IAMCU.
6822         (function_arg_advance_32): Don't pass vectors in registers for
6823         IAMCU.
6824         (function_arg_32): Likewise.
6825         (ix86_return_in_memory): Don't return vectors in registers for
6826         IAMCU.
6828 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
6830         PR middle-end/66334
6831         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
6832         hard regno live at the start of BB with incoming abnormal edges.
6833         * lra-lives.c (process_bb_lives): Ditto.
6835 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
6837         PR libgomp/65099
6838         * config/nvptx/mkoffload.c (main): Create an offload image only in
6839         64-bit configurations.
6841 2015-07-08  Martin Liska  <mliska@suse.cz>
6843         PR bootstrap/66744
6844         * tree-sra.c (create_access_1): Call ctor without brackets.
6845         (create_artificial_child_access): Likewise.
6847 2015-07-08  Richard Biener  <rguenther@suse.de>
6849         PR tree-optimization/66793
6850         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
6851         Properly split the block after stmts ending it.
6853 2015-07-08  Richard Biener  <rguenther@suse.de>
6855         PR tree-optimization/66794
6856         * passes.c (execute_function_todo): Assert that post-dominators
6857         are not computed.
6858         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
6859         Free post-dominators.
6861 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6863         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
6864         with early exit.
6866 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6868         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
6869         more than or equal 8 and less than 32 when optimizing for size.
6871 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6873         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
6874         COSTS_N_INSNS (1) and increment it appropriately throughout the
6875         function.
6877 2015-07-08  Richard Biener  <rguenther@suse.de>
6879         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
6881 2015-07-08  Alan Modra  <amodra@gmail.com>
6883         * target.def (rtx_costs): Remove "code" param, add "mode".
6884         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
6885         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
6886         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
6887         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
6888         call.  Track mode when given in rtx.
6889         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
6890         (default_address_cost): Pass Pmode to rtx_cost.
6891         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
6892         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
6893         with NULL set.
6894         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
6895         (notreg_cost): Add mode param.  Use it.
6896         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
6897         mode param and pass to set_src_cost.  Update all calls.
6898         (hash_scan_set): Formatting.
6899         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
6900         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
6901         * hooks.h: Ditto.
6902         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
6903         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
6904         emit_store_flag): Update set_src_cost and rtx_cost calls.
6905         * auto-inc-dec.c (attempt_change): Likewise.
6906         * calls.c (precompute_register_parameters): Likewise.
6907         * combine.c (expand_compound_operation, make_extraction,
6908         force_to_mode, distribute_and_simplify_rtx): Likewise.
6909         * dojump.c (prefer_and_bit_test): Likewise.
6910         * dse.c (find_shift_sequence): Likewise.
6911         * expr.c (compress_float_constant): Likewise.
6912         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6913         * ifcvt.c (noce_try_sign_mask): Likewise.
6914         * loop-doloop.c (doloop_optimize): Likewise.
6915         * loop-invariant.c (create_new_invariant): Likewise.
6916         * lower-subreg.c (shift_cost, compute_costs): Likewise.
6917         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
6918         lshift_cheap_p): Likewise.
6919         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
6920         try_replace_in_use, reload_cse_move2add): Likewise.
6921         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
6922         Likewise.
6923         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6924         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6925         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
6926         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6927         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
6928         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
6929         to rtx_cost calls.
6930         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
6931         * config/arc/arc.c (arc_rtx_costs): Likewise.
6932         * config/arm/arm.c (arm_rtx_costs): Likewise.
6933         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
6934         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6935         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6936         * config/cris/cris.c (cris_rtx_costs): Likewise.
6937         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
6938         * config/frv/frv.c (frv_rtx_costs): Likewise.
6939         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6940         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6941         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6942         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6943         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6944         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6945         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6946         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6947         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6948         * config/mep/mep.c (mep_rtx_cost): Likewise.
6949         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6950         * config/mips/mips.c (mips_rtx_costs): Likewise.
6951         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6952         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
6953         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
6954         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
6955         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
6956         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
6957         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
6958         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6959         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6960         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
6961         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6962         * config/s390/s390.c (s390_rtx_costs): Likewise.
6963         * config/sh/sh.c (sh_rtx_costs): Likewise.
6964         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6965         * config/spu/spu.c (spu_rtx_costs): Likewise.
6966         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6967         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
6968         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
6969         * config/v850/v850.c (v850_rtx_costs): Likewise.
6970         * config/vax/vax.c (vax_rtx_costs): Likewise.
6971         * config/visium/visium.c (visium_rtx_costs): Likewise.
6972         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6973         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
6974         "code" param, and pass as outer_code to first rtx_cost call.  Pass
6975         mode to rtx_cost calls.
6976         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
6977         calls.
6978         (aarch64_rtx_costs_wrapper): Update.
6979         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
6980         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
6981         rtx_cost calls.
6982         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
6983         and rtx_cost calls.
6984         (avr_operand_rtx_cost): Similarly.
6985         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
6986         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
6987         * config/mips/mips.c (mips_stack_address_p): Comment typo.
6988         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
6989         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
6990         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
6991         rtx_cost.
6992         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
6993         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
6994         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
6995         * doc/tm.texi: Regenerate.
6997 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
6999         * tree-core.h: Include symtab.h.
7000         * rtl.h: Include hard-reg-set.h but not flags.h.
7001         (HARD_CONST): Remove condition compilation involving HARD_CONST since
7002         hard-reg-set.h is always included.
7003         * regs.h: Don't include hard-reg-set.h or rtl.h.
7004         * cfg.h: Include dominance.h.
7005         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
7006         * backend.h: New.  Aggregate commonly used backend header files.
7007         * gimple-ssa.h: Don't include tree-hasher.h.
7008         * ssa.h: New.  Aggregate commonly used SSA header files.
7009         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
7010         * sel-sched-ir.h: Flatten includes.
7011         * lra-int.h: Flatten completely.
7012         * sel-sched-dump.h: Flatten includes.
7013         * ira-int.h: Flatten includes.
7014         * gimple-streamer.h: Remove all includes.
7015         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
7016         * resource.h: Flatten hard-reg-set.h and df.h.
7017         * sched-int.h: Flatten insn-arrt.h and df.h.
7018         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
7019         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
7020         * genattrtab.c (write_header): Adjust generated includes.
7021         * genautomata.c (main): Likewise.
7022         * genconditions.c (write-header): Likewise.
7023         * genemit.c (main): Likewise.
7024         * gengtype.c (open_base_files): Likewise.
7025         * genopinit.c (main): Likewise.
7026         * genoutput.c (output_prologue): Likewise.
7027         * genpeep.c (main): Likewise.
7028         * genpreds.c (write_insn_preds_c): Likewise.
7029         * genrecog.c (write_header): Likewise.
7030         * alias.c: Adjust includes.
7031         * asan.c: Likewise.
7032         * attribs.c: Likewise.
7033         * auto-inc-dec.c: Likewise.
7034         * auto-profile.c: Likewise.
7035         * bb-reorder.c: Likewise.
7036         * bt-load.c: Likewise.
7037         * builtins.c: Likewise.
7038         * caller-save.c: Likewise.
7039         * calls.c: Likewise.
7040         * ccmp.c: Likewise.
7041         * cfg.c: Likewise.
7042         * cfganal.c: Likewise.
7043         * cfgbuild.c: Likewise.
7044         * cfgcleanup.c: Likewise.
7045         * cfgexpand.c: Likewise.
7046         * cfghooks.c: Likewise.
7047         * cfgloop.c: Likewise.
7048         * cfgloopanal.c: Likewise.
7049         * cfgloopmanip.c: Likewise.
7050         * cfgrtl.c: Likewise.
7051         * cgraph.c: Likewise.
7052         * cgraphbuild.c: Likewise.
7053         * cgraphclones.c: Likewise.
7054         * cgraphunit.c: Likewise.
7055         * cilk-common.c: Likewise.
7056         * combine-stack-adj.c: Likewise.
7057         * combine.c: Likewise.
7058         * compare-elim.c: Likewise.
7059         * convert.c: Likewise.
7060         * coverage.c: Likewise.
7061         * cppbuiltin.c: Likewise.
7062         * cprop.c: Likewise.
7063         * cse.c: Likewise.
7064         * cselib.c: Likewise.
7065         * data-streamer-in.c: Likewise.
7066         * data-streamer-out.c: Likewise.
7067         * data-streamer.c: Likewise.
7068         * dbxout.c: Likewise.
7069         * dce.c: Likewise.
7070         * ddg.c: Likewise.
7071         * debug.c: Likewise.
7072         * df-core.c: Likewise.
7073         * df-problems.c: Likewise.
7074         * df-scan.c: Likewise.
7075         * dfp.c: Likewise.
7076         * dojump.c: Likewise.
7077         * dominance.c: Likewise.
7078         * domwalk.c: Likewise.
7079         * double-int.c: Likewise.
7080         * dse.c: Likewise.
7081         * dumpfile.c: Likewise.
7082         * dwarf2asm.c: Likewise.
7083         * dwarf2cfi.c: Likewise.
7084         * dwarf2out.c: Likewise.
7085         * emit-rtl.c: Likewise.
7086         * et-forest.c: Likewise.
7087         * except.c: Likewise.
7088         * explow.c: Likewise.
7089         * expmed.c: Likewise.
7090         * expr.c: Likewise.
7091         * final.c: Likewise.
7092         * fixed-value.c: Likewise.
7093         * fold-const.c: Likewise.
7094         * function.c: Likewise.
7095         * fwprop.c: Likewise.
7096         * gcc-plugin.h: Likewise.
7097         * gcse-common.c: Likewise.
7098         * gcse.c: Likewise.
7099         * generic-match-head.c: Likewise.
7100         * ggc-page.c: Likewise.
7101         * gimple-builder.c: Likewise.
7102         * gimple-expr.c: Likewise.
7103         * gimple-fold.c: Likewise.
7104         * gimple-iterator.c: Likewise.
7105         * gimple-low.c: Likewise.
7106         * gimple-match-head.c: Likewise.
7107         * gimple-pretty-print.c: Likewise.
7108         * gimple-ssa-isolate-paths.c: Likewise.
7109         * gimple-ssa-strength-reduction.c: Likewise.
7110         * gimple-streamer-in.c: Likewise.
7111         * gimple-streamer-out.c: Likewise.
7112         * gimple-walk.c: Likewise.
7113         * gimple.c: Likewise.
7114         * gimplify-me.c: Likewise.
7115         * gimplify.c: Likewise.
7116         * godump.c: Likewise.
7117         * graph.c: Likewise.
7118         * graphite-blocking.c: Likewise.
7119         * graphite-dependences.c: Likewise.
7120         * graphite-interchange.c: Likewise.
7121         * graphite-isl-ast-to-gimple.c: Likewise.
7122         * graphite-optimize-isl.c: Likewise.
7123         * graphite-poly.c: Likewise.
7124         * graphite-scop-detection.c: Likewise.
7125         * graphite-sese-to-poly.c: Likewise.
7126         * graphite.c: Likewise.
7127         * haifa-sched.c: Likewise.
7128         * hw-doloop.c: Likewise.
7129         * ifcvt.c: Likewise.
7130         * init-regs.c: Likewise.
7131         * internal-fn.c: Likewise.
7132         * ipa-chkp.c: Likewise.
7133         * ipa-comdats.c: Likewise.
7134         * ipa-cp.c: Likewise.
7135         * ipa-devirt.c: Likewise.
7136         * ipa-icf-gimple.c: Likewise.
7137         * ipa-icf.c: Likewise.
7138         * ipa-inline-analysis.c: Likewise.
7139         * ipa-inline-transform.c: Likewise.
7140         * ipa-inline.c: Likewise.
7141         * ipa-polymorphic-call.c: Likewise.
7142         * ipa-profile.c: Likewise.
7143         * ipa-prop.c: Likewise.
7144         * ipa-pure-const.c: Likewise.
7145         * ipa-ref.c: Likewise.
7146         * ipa-reference.c: Likewise.
7147         * ipa-split.c: Likewise.
7148         * ipa-utils.c: Likewise.
7149         * ipa-visibility.c: Likewise.
7150         * ipa.c: Likewise.
7151         * ira-build.c: Likewise.
7152         * ira-color.c: Likewise.
7153         * ira-conflicts.c: Likewise.
7154         * ira-costs.c: Likewise.
7155         * ira-emit.c: Likewise.
7156         * ira-lives.c: Likewise.
7157         * ira.c: Likewise.
7158         * jump.c: Likewise.
7159         * langhooks.c: Likewise.
7160         * lcm.c: Likewise.
7161         * loop-doloop.c: Likewise.
7162         * loop-init.c: Likewise.
7163         * loop-invariant.c: Likewise.
7164         * loop-iv.c: Likewise.
7165         * loop-unroll.c: Likewise.
7166         * lower-subreg.c: Likewise.
7167         * lra-assigns.c: Likewise.
7168         * lra-coalesce.c: Likewise.
7169         * lra-constraints.c: Likewise.
7170         * lra-eliminations.c: Likewise.
7171         * lra-lives.c: Likewise.
7172         * lra-remat.c: Likewise.
7173         * lra-spills.c: Likewise.
7174         * lra.c: Likewise.
7175         * lto-cgraph.c: Likewise.
7176         * lto-compress.c: Likewise.
7177         * lto-opts.c: Likewise.
7178         * lto-section-in.c: Likewise.
7179         * lto-section-out.c: Likewise.
7180         * lto-streamer-in.c: Likewise.
7181         * lto-streamer-out.c: Likewise.
7182         * lto-streamer.c: Likewise.
7183         * mcf.c: Likewise.
7184         * mode-switching.c: Likewise.
7185         * modulo-sched.c: Likewise.
7186         * omega.c: Likewise.
7187         * omp-low.c: Likewise.
7188         * optabs.c: Likewise.
7189         * opts-global.c: Likewise.
7190         * passes.c: Likewise.
7191         * plugin.c: Likewise.
7192         * postreload-gcse.c: Likewise.
7193         * postreload.c: Likewise.
7194         * predict.c: Likewise.
7195         * print-rtl.c: Likewise.
7196         * print-tree.c: Likewise.
7197         * profile.c: Likewise.
7198         * real.c: Likewise.
7199         * realmpfr.c: Likewise.
7200         * recog.c: Likewise.
7201         * ree.c: Likewise.
7202         * reg-stack.c: Likewise.
7203         * regcprop.c: Likewise.
7204         * reginfo.c: Likewise.
7205         * regrename.c: Likewise.
7206         * regstat.c: Likewise.
7207         * reload.c: Likewise.
7208         * reload1.c: Likewise.
7209         * reorg.c: Likewise.
7210         * resource.c: Likewise.
7211         * rtl-chkp.c: Likewise.
7212         * rtlanal.c: Likewise.
7213         * rtlhooks.c: Likewise.
7214         * sanopt.c: Likewise.
7215         * sched-deps.c: Likewise.
7216         * sched-ebb.c: Likewise.
7217         * sched-rgn.c: Likewise.
7218         * sched-vis.c: Likewise.
7219         * sdbout.c: Likewise.
7220         * sel-sched-dump.c: Likewise.
7221         * sel-sched-ir.c: Likewise.
7222         * sel-sched.c: Likewise.
7223         * sese.c: Likewise.
7224         * shrink-wrap.c: Likewise.
7225         * simplify-rtx.c: Likewise.
7226         * stack-ptr-mod.c: Likewise.
7227         * stmt.c: Likewise.
7228         * stor-layout.c: Likewise.
7229         * store-motion.c: Likewise.
7230         * stringpool.c: Likewise.
7231         * symtab.c: Likewise.
7232         * target-globals.c: Likewise.
7233         * targhooks.c: Likewise.
7234         * toplev.c: Likewise.
7235         * tracer.c: Likewise.
7236         * trans-mem.c: Likewise.
7237         * tree-affine.c: Likewise.
7238         * tree-browser.c: Likewise.
7239         * tree-call-cdce.c: Likewise.
7240         * tree-cfg.c: Likewise.
7241         * tree-cfgcleanup.c: Likewise.
7242         * tree-chkp-opt.c: Likewise.
7243         * tree-chkp.c: Likewise.
7244         * tree-chrec.c: Likewise.
7245         * tree-complex.c: Likewise.
7246         * tree-data-ref.c: Likewise.
7247         * tree-dfa.c: Likewise.
7248         * tree-diagnostic.c: Likewise.
7249         * tree-dump.c: Likewise.
7250         * tree-eh.c: Likewise.
7251         * tree-emutls.c: Likewise.
7252         * tree-if-conv.c: Likewise.
7253         * tree-inline.c: Likewise.
7254         * tree-into-ssa.c: Likewise.
7255         * tree-iterator.c: Likewise.
7256         * tree-loop-distribution.c: Likewise.
7257         * tree-nested.c: Likewise.
7258         * tree-nrv.c: Likewise.
7259         * tree-object-size.c: Likewise.
7260         * tree-outof-ssa.c: Likewise.
7261         * tree-parloops.c: Likewise.
7262         * tree-phinodes.c: Likewise.
7263         * tree-predcom.c: Likewise.
7264         * tree-pretty-print.c: Likewise.
7265         * tree-profile.c: Likewise.
7266         * tree-scalar-evolution.c: Likewise.
7267         * tree-sra.c: Likewise.
7268         * tree-ssa-address.c: Likewise.
7269         * tree-ssa-alias.c: Likewise.
7270         * tree-ssa-ccp.c: Likewise.
7271         * tree-ssa-coalesce.c: Likewise.
7272         * tree-ssa-copy.c: Likewise.
7273         * tree-ssa-copyrename.c: Likewise.
7274         * tree-ssa-dce.c: Likewise.
7275         * tree-ssa-dom.c: Likewise.
7276         * tree-ssa-dse.c: Likewise.
7277         * tree-ssa-forwprop.c: Likewise.
7278         * tree-ssa-ifcombine.c: Likewise.
7279         * tree-ssa-live.c: Likewise.
7280         * tree-ssa-loop-ch.c: Likewise.
7281         * tree-ssa-loop-im.c: Likewise.
7282         * tree-ssa-loop-ivcanon.c: Likewise.
7283         * tree-ssa-loop-ivopts.c: Likewise.
7284         * tree-ssa-loop-manip.c: Likewise.
7285         * tree-ssa-loop-niter.c: Likewise.
7286         * tree-ssa-loop-prefetch.c: Likewise.
7287         * tree-ssa-loop-unswitch.c: Likewise.
7288         * tree-ssa-loop.c: Likewise.
7289         * tree-ssa-math-opts.c: Likewise.
7290         * tree-ssa-operands.c: Likewise.
7291         * tree-ssa-phiopt.c: Likewise.
7292         * tree-ssa-phiprop.c: Likewise.
7293         * tree-ssa-pre.c: Likewise.
7294         * tree-ssa-propagate.c: Likewise.
7295         * tree-ssa-reassoc.c: Likewise.
7296         * tree-ssa-sccvn.c: Likewise.
7297         * tree-ssa-scopedtables.c: Likewise.
7298         * tree-ssa-sink.c: Likewise.
7299         * tree-ssa-strlen.c: Likewise.
7300         * tree-ssa-structalias.c: Likewise.
7301         * tree-ssa-tail-merge.c: Likewise.
7302         * tree-ssa-ter.c: Likewise.
7303         * tree-ssa-threadedge.c: Likewise.
7304         * tree-ssa-threadupdate.c: Likewise.
7305         * tree-ssa-uncprop.c: Likewise.
7306         * tree-ssa-uninit.c: Likewise.
7307         * tree-ssa.c: Likewise.
7308         * tree-ssanames.c: Likewise.
7309         * tree-stdarg.c: Likewise.
7310         * tree-streamer-in.c: Likewise.
7311         * tree-streamer-out.c: Likewise.
7312         * tree-streamer.c: Likewise.
7313         * tree-switch-conversion.c: Likewise.
7314         * tree-tailcall.c: Likewise.
7315         * tree-vect-data-refs.c: Likewise.
7316         * tree-vect-generic.c: Likewise.
7317         * tree-vect-loop-manip.c: Likewise.
7318         * tree-vect-loop.c: Likewise.
7319         * tree-vect-patterns.c: Likewise.
7320         * tree-vect-slp.c: Likewise.
7321         * tree-vect-stmts.c: Likewise.
7322         * tree-vectorizer.c: Likewise.
7323         * tree-vrp.c: Likewise.
7324         * tree.c: Likewise.
7325         * tsan.c: Likewise.
7326         * ubsan.c: Likewise.
7327         * valtrack.c: Likewise.
7328         * value-prof.c: Likewise.
7329         * var-tracking.c: Likewise.
7330         * varasm.c: Likewise.
7331         * varpool.c: Likewise.
7332         * vmsdbgout.c: Likewise.
7333         * vtable-verify.c: Likewise.
7334         * web.c: Likewise.
7335         * wide-int.cc: Likewise.
7336         * xcoffout.c: Likewise.
7337         * config/aarch64/aarch64-builtins.c: Likewise.
7338         * config/aarch64/aarch64.c: Likewise.
7339         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7340         * config/alpha/alpha.c: Likewise.
7341         * config/arc/arc.c: Likewise.
7342         * config/arm/aarch-common.c: Likewise.
7343         * config/arm/arm-builtins.c: Likewise.
7344         * config/arm/arm-c.c: Likewise.
7345         * config/arm/arm.c: Likewise.
7346         * config/avr/avr-c.c: Likewise.
7347         * config/avr/avr-log.c: Likewise.
7348         * config/avr/avr.c: Likewise.
7349         * config/bfin/bfin.c: Likewise.
7350         * config/c6x/c6x.c: Likewise.
7351         * config/cr16/cr16.c: Likewise.
7352         * config/cris/cris.c: Likewise.
7353         * config/darwin-c.c: Likewise.
7354         * config/darwin.c: Likewise.
7355         * config/epiphany/epiphany.c: Likewise.
7356         * config/epiphany/mode-switch-use.c: Likewise.
7357         * config/epiphany/resolve-sw-modes.c: Likewise.
7358         * config/fr30/fr30.c: Likewise.
7359         * config/frv/frv.c: Likewise.
7360         * config/ft32/ft32.c: Likewise.
7361         * config/h8300/h8300.c: Likewise.
7362         * config/i386/i386-c.c: Likewise.
7363         * config/i386/i386.c: Likewise.
7364         * config/i386/msformat-c.c: Likewise.
7365         * config/i386/winnt-cxx.c: Likewise.
7366         * config/i386/winnt-stubs.c: Likewise.
7367         * config/i386/winnt.c: Likewise.
7368         * config/ia64/ia64-c.c: Likewise.
7369         * config/ia64/ia64.c: Likewise.
7370         * config/iq2000/iq2000.c: Likewise.
7371         * config/lm32/lm32.c: Likewise.
7372         * config/m32c/m32c-pragma.c: Likewise.
7373         * config/m32c/m32c.c: Likewise.
7374         * config/m32r/m32r.c: Likewise.
7375         * config/m68k/m68k.c: Likewise.
7376         * config/mcore/mcore.c: Likewise.
7377         * config/mep/mep-pragma.c: Likewise.
7378         * config/mep/mep.c: Likewise.
7379         * config/microblaze/microblaze-c.c: Likewise.
7380         * config/microblaze/microblaze.c: Likewise.
7381         * config/mips/mips.c: Likewise.
7382         * config/mmix/mmix.c: Likewise.
7383         * config/mn10300/mn10300.c: Likewise.
7384         * config/moxie/moxie.c: Likewise.
7385         * config/msp430/msp430-c.c: Likewise.
7386         * config/msp430/msp430.c: Likewise.
7387         * config/nds32/nds32-cost.c: Likewise.
7388         * config/nds32/nds32-fp-as-gp.c: Likewise.
7389         * config/nds32/nds32-intrinsic.c: Likewise.
7390         * config/nds32/nds32-isr.c: Likewise.
7391         * config/nds32/nds32-md-auxiliary.c: Likewise.
7392         * config/nds32/nds32-memory-manipulation.c: Likewise.
7393         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7394         * config/nds32/nds32-predicates.c: Likewise.
7395         * config/nds32/nds32.c: Likewise.
7396         * config/nios2/nios2.c: Likewise.
7397         * config/nvptx/nvptx.c: Likewise.
7398         * config/pa/pa.c: Likewise.
7399         * config/pdp11/pdp11.c: Likewise.
7400         * config/rl78/rl78-c.c: Likewise.
7401         * config/rl78/rl78.c: Likewise.
7402         * config/rs6000/rs6000-c.c: Likewise.
7403         * config/rs6000/rs6000.c: Likewise.
7404         * config/rx/rx.c: Likewise.
7405         * config/s390/s390-c.c: Likewise.
7406         * config/s390/s390.c: Likewise.
7407         * config/sh/sh-c.c: Likewise.
7408         * config/sh/sh-mem.cc: Likewise.
7409         * config/sh/sh.c: Likewise.
7410         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7411         * config/sh/sh_treg_combine.cc: Likewise.
7412         * config/sol2-c.c: Likewise.
7413         * config/sol2-cxx.c: Likewise.
7414         * config/sol2-stubs.c: Likewise.
7415         * config/sol2.c: Likewise.
7416         * config/sparc/sparc-c.c: Likewise.
7417         * config/sparc/sparc.c: Likewise.
7418         * config/spu/spu-c.c: Likewise.
7419         * config/spu/spu.c: Likewise.
7420         * config/stormy16/stormy16.c: Likewise.
7421         * config/tilegx/mul-tables.c: Likewise.
7422         * config/tilegx/tilegx-c.c: Likewise.
7423         * config/tilegx/tilegx.c: Likewise.
7424         * config/tilepro/mul-tables.c: Likewise.
7425         * config/tilepro/tilepro-c.c: Likewise.
7426         * config/tilepro/tilepro.c: Likewise.
7427         * config/v850/v850-c.c: Likewise.
7428         * config/v850/v850.c: Likewise.
7429         * config/vax/vax.c: Likewise.
7430         * config/visium/visium.c: Likewise.
7431         * config/vms/vms-c.c: Likewise.
7432         * config/vms/vms.c: Likewise.
7433         * config/vxworks.c: Likewise.
7434         * config/xtensa/xtensa.c: Likewise.
7436 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
7438         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
7439         Remove operand constraints.  Change operand 2 predicate to
7440         nonmemory operand.  Limit const_int values to mode bitsize.  Only
7441         allow const_int values less than 32 when optimizing for size.
7442         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
7443         Remove operand constraints.
7444         (*bt<mode>): Use SImode for const_int values less than 32.
7445         (regmode): Remove mode attribute.
7447 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
7449         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7450         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
7451           moxie_legitimate_address_p): New functions.
7452           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7454 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7456         PR tree-optimization/66642
7457         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
7458         header comment.  Rename split_edge variable to edge_at_split.  Split
7459         exit edge to create new loop exit bb.  Insert loop exit phis in new
7460         loop exit bb.
7462 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7464         * tree-cfg.c (get_virtual_phi): New function.
7465         * tree-cfg.h (get_virtual_phi): Declare.
7466         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
7467         (rewrite_virtuals_into_loop_closed_ssa): New function.
7468         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
7469         Declare.
7470         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
7471         (transform_to_exit_first_loop_alt): Use
7472         rewrite_virtuals_into_loop_closed_ssa.
7474 2015-07-07  Richard Biener  <rguenther@suse.de>
7476         * fold-const.c (fold_binary_loc): Move
7477         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
7478         * match.pd: ... here.
7479         Add (X * C1) % C2 -> 0 simplification pattern derived from
7480         extract_muldiv_1.
7482 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7484         PR target/66780
7485         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
7486         change for target/65249.
7488 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
7490         * symtab.c (address_matters_1): Fix typo in comment above.
7491         (can_increase_alignment_p): Likewise.
7493 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7495         * function.c (free_after_compilation): Clear PROP_cfg in
7496         f->curr_properties.
7498 2015-07-07  Richard Biener  <rguenther@suse.de>
7500         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
7501         add which use to.
7502         (add_control_edge): Remove excessive vertical space in dumping.
7503         (process_ssa_edge_worklist): Simulate at most one statement and
7504         return whether we did.  Do not simulate PHIs if they are in a
7505         BB not yet simulated.
7506         (ssa_propagate): Adjust to always drain the BB worklist whenever
7507         a BB is available there, likewise the VARYING edges list before
7508         the interesting edge list.
7510 2015-07-07  Christian Bruel  <christian.bruel@st.com>
7512         PR target/52144
7513         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
7515 2015-07-07  Richard Biener  <rguenther@suse.de>
7517         PR middle-end/66739
7518         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
7519         A - B.
7521 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7523         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
7524         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
7525         Copy operand 0 to a temporary if !ext_register_operand.  Remove
7526         ancient extract_bit_field workaround.
7527         (insv<mode>_1): Rename from mov<mode>_insv_1.
7528         (*insvqi): Rename from *movqi_insv_2.
7529         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
7530         for renamed insvsi_1.
7531         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
7533 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
7535         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
7536         call to nvptx_reorg_subreg.
7538 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
7540         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
7541         * graphite-dependencies.c, graphite-interchange.c,
7542         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
7543         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
7544         Likewise.
7546 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
7548         * match.pd: Remove element_mode inside HONOR_*.
7549         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
7550         (~X | X -> -1, ~X ^ X -> -1): Merge.
7551         * tree.c (build_each_one_cst): New function.
7552         * tree.h (build_each_one_cst): Likewise.
7554 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7556         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7557         PROCESSOR_IAMCU.
7559 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
7561         * config.gcc <mips*-*-*>: Add fused-madd.opt.
7562         * config/mips/mips.opt (mfused-madd): Remove.
7563         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
7564         * config/mips/mips.h (TARGET_MIPS8000): New.
7565         (ISA_HAS_FP_MADD4_MSUB4): Remove.
7566         (ISA_HAS_FP_MADDF_MSUBF): Remove.
7567         (ISA_HAS_FP_MADD3_MSUB3): Remove.
7568         (ISA_HAS_NMADD4_NMSUB4): Remove.
7569         (ISA_HAS_NMADD3_NMSUB3): Remove.
7570         (ISA_HAS_FUSED_MADD4): New.
7571         (ISA_HAS_UNFUSED_MADD4): New.
7572         (ISA_HAS_FUSED_MADDF): New.
7573         (ISA_HAS_FUSED_MADD3): New.
7574         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
7575         (*fma<mode>4_madd3) New.
7576         (*fma<mode>4_madd4) New.
7577         (*fma<mode>4_maddf) New.
7578         (fms<mode>4) New.
7579         (*fms<mode>4_msub3) New.
7580         (*fms<mode>4_msub4) New.
7581         (fnma<mode>4) New.
7582         (*fnma<mode>4_nmadd3) New.
7583         (*fnma<mode>4_nmadd4) New.
7584         (fnms<mode>4) New.
7585         (*fnms<mode>4_nmsub3) New.
7586         (*fnms<mode>4_nmsub4) New.
7587         (*madd4<mode>) Modify to be unfused only.
7588         (*msub4<mode>) Modify to be unfused only.
7589         (*nmadd4<mode>) Modify to be unfused only.
7590         (*nmsub4<mode>) Modify to be unfused only.
7591         (*madd3<mode>) Remove.
7592         (*msub3<mode>) Remove.
7593         (*nmadd3<mode>) Remove.
7594         (*nmsub3<mode>) Remove.
7595         (*nmadd3<mode>_fastmath) Remove.
7596         (*nmsub3<mode>_fastmath) Remove.
7597         (*nmadd4<mode>_fastmath) Update condition.
7598         (*nmsub4<mode>_fastmath) Update condition.
7600 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7602         PR target/65956
7603         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
7604         alignment attribute, exploring one level down for records and arrays.
7606 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7608         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
7609         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
7610         Copy operand 1 to a temporary if !ext_register_operand.  Remove
7611         ancient extract_bit_field workaround.
7612         (*extv<mode>): Rename from *mov<mode>_extv_1.
7613         (*extvqi): Rename from *movqi_extv_1.
7614         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
7615         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
7616         to a temporary if !ext_register_operand.  Remove ancient
7617         extract_bit_field workaround.
7618         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
7619         (*extzvqi): Rename from *movqi_extzv_2.
7620         (*testqi_ext_3): Remove modes from const_int_operand predicated
7621         operands.  Add "n" constraint.
7622         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
7623         operand.  Add "J" constraint.
7624         (*btsq, *btrq, *btcq peephole2s): Remove mode from
7625         const_0_to_63 predicated operand.
7626         (regmode): New insn attribute.
7627         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
7628         to nonmemory_operand.  Use regmode insn attribute.
7629         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
7630         (*jcc_bt<mode>_mask): Remove mode from operand 3.
7631         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
7632         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
7633         operands.  Use "N" constraint instead of "n".
7635 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7637         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
7639 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7641         PR target/66749
7642         * config/i386/i386.c (iamcu_cost): New.
7643         (m_IAMCU): Likewise.
7644         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
7645         (processor_target_table): Add an entry for "iamcu".
7646         (processor_alias_table): Likewise.
7647         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
7648         (ix86_adjust_cost): Likewise.
7649         (ia32_multipass_dfa_lookahead): Likewise.
7650         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
7651         * config/i386/x86-tune.def: Updated for m_IAMCU.
7653 2015-07-06  Richard Biener  <rguenther@suse.de>
7655         PR tree-optimization/66772
7656         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
7657         values are available in the PHI node BB when there are
7658         still unexecutable edges.
7660 2015-07-06  Richard Biener  <rguenther@suse.de>
7662         PR tree-optimization/66767
7663         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7664         Make sure to build the alignment test on a SSA name without
7665         final alignment info valid only if the alignment test
7666         evaluates to true.
7668 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7670         PR target/66620
7671         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
7672         loop start when inserting LSETUP.
7674 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7676         PR target/53383
7677         * config/i386/i386.c (ix86_option_override_internal): Allow
7678         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
7680 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7682         * read-md.c (decimal_string): Rename to ...
7683         (md_decimal_string): ... this.
7684         (handle_enum): Reflect this.
7686 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7688         PR target/66731
7689         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
7691 2015-07-06  Richard Biener  <rguenther@suse.de>
7693         PR middle-end/66759
7694         * match.pd: Add missing constraint of y to REAL_CST in
7695         REAL_CST - x CMP y to y - CST CMP x simplification.
7697 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
7699         PR tree-optimization/66757
7700         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
7702 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
7703             Sandra Loosemore <sandra@codesourcery.com>
7705         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
7706         Delete extern declaration.
7707         (gprel_constant_p): Add extern declaration.
7708         * config/nios2/constraints.md ("S"): Use gprel_constant_p
7709         instead of nios2_symbol_ref_in_small_data_p.
7710         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
7711         (nios2_symbol_ref_in_small_data_p): Make static.
7712         (gprel_constant_p): Make non-static.
7714 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
7716         * doc/fragments.texi (Target Fragment): Convert debian.org
7717         link to use https.
7718         * doc/install.texi (Configuration): Ditto.
7720 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
7722         PR tree-optimization/66718
7723         * tree-vect-stmts.c (vectorizable_call): Replace uses of
7724         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7726         PR tree-optimization/66718
7727         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
7728         vectorizable_load, vectorizable_condition): Move vectype,
7729         nunits, ncopies computation after checking what kind of statement
7730         stmt is.
7732 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7734         * target-insns.def (extv, extzv, insv): New targetm instruction
7735         patterns.
7736         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
7737         interface.
7738         * recog.c (simplify_while_replacing): Likewise.
7740 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7742         * target-insns.def (doloop_begin, doloop_end): New targetm
7743         instruction patterns.
7744         * loop-init.c: Include target.h.
7745         (pass_loop2::gate): Use the new targetm patterns instead of
7746         HAVE_*/gen_* interface.
7747         (pass_rtl_doloop::gate): Likewise.
7748         (pass_rtl_doloop::execute): Remove preprocessor condition.
7749         * hw-doloop.c: Build unconditionally.
7750         * loop-doloop.c: Likewise.
7751         (doloop_optimize): Use the new targetm patterns instead of
7752         HAVE_*/gen_* interface.
7753         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
7754         * modulo-sched.c (doloop_register_get): Likewise.
7756 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7758         * target-insns.def (clear_cache): New targetm instruction pattern.
7759         * builtins.c (expand_builtin___clear_cache): Use it instead of
7760         HAVE_*/gen_* interface.
7762 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7764         * target-insns.def (allocate_stack, check_stack, probe_stack)
7765         (probe_stack_address, split_stack_prologue, split_stack_space_check):
7766         New targetm instruction patterns.
7767         * explow.c (allocate_dynamic_stack_space): Use them instead of
7768         HAVE_*/gen_* interface.
7769         (emit_stack_probe): Likewise.
7770         (probe_stack_range): Likewise.
7771         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7773 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7775         * target-insns.def (stack_protect_set, stack_protect_test): New
7776         targetm instruction patterns.
7777         * cfgexpand.c (stack_protect_prologue): Use them instead of
7778         HAVE_*/gen_* interface.
7779         * function.c (stack_protect_epilogue): Likewise.
7781 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7783         * expr.h (gen_move_insn_uncast): Delete.
7784         * expr.c (gen_move_insn_uncast): Delete.
7786 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7788         * target-insns.def (restore_stack_block, restore_stack_function)
7789         (restore_stack_nonlocal, save_stack_block, save_stack_function)
7790         (save_stack_nonlocal): New targetm instruction patterns.
7791         * builtins.c (expand_builtin_apply): Use them instead of
7792         HAVE_*/gen_* interface.
7793         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
7795 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7797         * target-insns.def (trap): New targetm instruction pattern.
7798         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
7799         interface.
7800         * explow.c (allocate_dynamic_stack_space): Likewise.
7801         * ifcvt.c (find_if_header): Likewise.
7803 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7805         * target-insns.def (prefetch): New targetm instruction pattern.
7806         * tree-ssa-loop-prefetch.c: Include targeth.
7807         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
7808         of HAVE_*/gen_* interface.
7809         * builtins.c (expand_builtin_prefetch): Likewise.
7810         * toplev.c (process_options): Likewise.
7812 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7814         * target-insns.def (untyped_call, untyped_return): New targetm
7815         instruction patterns.
7816         * builtins.c (expand_builtin_apply): Use them instead of
7817         HAVE_*/gen_* interface.
7818         (result_vector): Define unconditionally.
7820 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7822         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
7823         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
7824         (nonlocal_goto_receiver): New targetm instruction patterns.
7825         * builtins.c (expand_builtin_setjmp_setup): Use them instead
7826         of HAVE_*/gen_* interface.
7827         (expand_builtin_setjmp_receiver): Likewise.
7828         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7829         * except.c (expand_dw2_landing_pad_for_region): Likewise.
7831 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7833         * target.def: Add code_for_* hooks.
7834         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
7835         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
7836         * target-insns.def (casesi, tablejump): New targetm instruction
7837         patterns.
7838         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
7839         (do_tablejump): Likewise.
7840         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
7841         (expand_sjlj_dispatch_table): Likewise.
7842         * targhooks.c (default_case_values_threshold): Likewise.
7844 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
7846         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
7847         Use rtx_insn * instead of rtx.
7848         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
7849         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
7850         (nios2_call_tls_get_addr): Likewise.
7851         (nios2_emit_expensive_div): Likewise.
7852         (nios2_emit_move_sequence): Change return type to bool.
7853         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
7854         Change return type to bool.
7856 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7858         PR target/66747
7859         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
7861 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
7863         PR target/66114
7864         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
7865         of register_operand.  Remove constraint.
7867 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
7869         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
7870         the first argument.
7872 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
7874         * attribs.c (decl_attributes): Guard inform with the return value
7875         of the preceding warning.
7877 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7879         * doc/invoke.texi (moverride): Move to correct section.
7881 2015-07-03  Richard Biener  <rguenther@suse.de>
7883         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
7884         Copy from tree.c
7885         (dt_operand::gen_gimple_expr): After valueizing operands
7886         re-canonicalize operand order for commutative tree codes.
7888 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
7890         PR target/66746.
7891         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
7892         is defined.
7893         (__crc32w): Likewise.
7894         (__crc32d): Likewise.
7895         (__rdpmc): Likewise.
7896         (__rdtscp): Likewise.
7897         (_rdpmc): Likewise.
7898         (_rdtscp): Likewise.
7899         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
7900         is defined.
7902 2015-07-03  Richard Biener  <rguenther@suse.de>
7904         * fold-const.c (fold_mathfn_compare): Remove.
7905         (fold_inf_compare): Likewise.
7906         (fold_comparison): Move floating point comparison simplifications...
7907         * match.pd: ... to patterns here.  Introduce simple_comparisons
7908         operator list and use it for patterns formerly in fold_comparison.
7910 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7912         PR tree-optimization/66119
7913         * toplev.c (process_options): Don't set up default values for
7914         the sra_max_scalarization_size_{speed,size} parameters.
7915         * tree-sra (analyze_all_variable_accesses): If no values
7916         have been set for the sra_max_scalarization_size_{speed,size}
7917         parameters, call get_move_ratio to get target defaults.
7919 2015-07-03  Richard Biener  <rguenther@suse.de>
7921         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
7922         * match.pd: ... here.
7924 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
7926         PR target/37072
7927         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
7928         is not actually the default on FreeBSD.
7930 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7932         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
7933         definition.
7934         (CMPGE_8HI): Likewise.
7935         (CMPGE_4SI): Likewise.
7936         (CMPGE_2DI): Likewise.
7937         (CMPGE_U16QI): Likewise.
7938         (CMPGE_U8HI): Likewise.
7939         (CMPGE_U4SI): Likewise.
7940         (CMPGE_U2DI): Likewise.
7941         (CMPLE_16QI): Likewise.
7942         (CMPLE_8HI): Likewise.
7943         (CMPLE_4SI): Likewise.
7944         (CMPLE_2DI): Likewise.
7945         (CMPLE_U16QI): Likewise.
7946         (CMPLE_U8HI): Likewise.
7947         (CMPLE_U4SI): Likewise.
7948         (CMPLE_U2DI): Likewise.
7949         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7950         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
7951         ALTIVEC_BUILTIN_VEC_CMPLE.
7952         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
7953         floating-point vector modes.
7954         (vector_nlt<mode>): New define_expand.
7955         (vector_nltu<mode>): Likewise.
7956         (vector_ngt<mode>): Likewise.
7957         (vector_ngtu<mode>): Likewise.
7959 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
7961         PR rtl-optimization/66706
7962         * combine.c (make_compound_operation): If an AND of SUBREG of
7963         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
7965 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
7967         * tree-pass.h (make_pass_ch_vect): New.
7968         * passes.def: Add pass_ch_vect just before pass_if_conversion.
7970         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
7971         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
7972         make_pass_ch_vect): New.
7973         (pass_ch): Extend ch_base.
7975         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
7976         (ch_base::copy_headers): ...here.
7978 2015-07-02  Richard Biener  <rguenther@suse.de>
7980         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
7981         * fold-const.c (get_pointer_modulus_and_residue): Remove.
7982         (fold_binary_loc): Implement (T)ptr & CST in terms of
7983         get_pointer_alignment_1.
7984         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
7985         Make sure to build the alignment test on a SSA name without
7986         final alignment info valid only after the prologue.
7988 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
7990         * config/cris/cris.md ("epilogue"): Remove condition.
7991         ("prologue"): Ditto.
7993 2015-07-02  Richard Biener  <rguenther@suse.de>
7995         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
7996         parameter to record a condition that is false.
7997         (record_conditions): When recording an extra NE_EXPR that is
7998         true also record a EQ_EXPR that is false.
8000 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
8002         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
8003         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
8004         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
8005         (set_iv, find_interesting_uses_address, add_candidate_1): New
8006         argument to alloc_iv.
8007         (find_interesting_uses_op, find_interesting_uses_cond): Don't
8008         duplicate struct iv.
8009         (free_loop_data): Don't free struct iv explicitly.
8010         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
8012 2015-07-01  DJ Delorie  <dj@redhat.com>
8014         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
8015         (LIB_SPEC): Add.
8016         (SUPPORTS_DISCRIMINATOR): Define.
8018 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8020         PR bootstrap/66685
8021         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
8022         there are no CALLs in the same pattern.
8024 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8026         PR rtl-optimization/61047
8027         * rtlanal.c (get_initial_register_offset): New function.
8028         (rtx_addr_can_trap_p_1): Check offsets of stack references.
8030 2015-07-01  Richard Biener  <rguenther@suse.de>
8032         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
8033         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
8034         ~X CMP C -> X CMP' ~C to ...
8035         * match.pd: ... patterns here.
8037 2015-07-01  Nick Clifton  <nickc@redhat.com>
8039         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
8040         a 16-bit value into a 20-bit memory slot.
8042 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8044         * doc/sourcebuild.texi (AArch64-specific attributes): Document
8045         "aarch64_tiny", "aarch64_small", "aarch64_large",
8046         "aarch64_little_endian", "aarch64_big_endian".
8048 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8050         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
8051         Document "aarch64_small_fpic".
8053 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8055         * configure.ac: Add check for aarch64 assembler -fpic relocation
8056         modifier support.
8057         * configure: Regenerate.
8058         * config.in: Regenerate.
8059         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
8060         to -fPIC if not support of -fpic relocation modifier in assembler.
8062 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8064         PR bootstrap/66685
8065         * rtl.c (classify_insn): Handle returns in PARALLELs.
8067 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8069         PR middle-end/66633
8070         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
8071         to true if the function is nested and if not optimizing.
8072         (convert_local_omp_clauses): Initialize need_frame to true if the
8073         function contains nested functions and if not optimizing.
8075 2015-07-01  Richard Biener  <rguenther@suse.de>
8077         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
8078         (X & Y) ^ Y -> ~X & Y transforms to ...
8079         * match.pd: ... here.
8081 2015-07-01  Richard Biener <rguenther@suse.de>
8083         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
8084         of converts to avoid uninteresting noise from the conversion
8085         simplifying patterns.
8087 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
8089         * config/c6x/c6x.c (try_rename_operands): Do not depend on
8090         gcc_assert evaluating its argument for side-effect.
8092 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8094         PR target/64833
8095         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
8096         flag_pic is set.
8098 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8100         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
8101         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
8102         (hash_scc): Add this_ref_p and ref_p parameters and pass them
8103         to the inner DFS walk.
8105 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8107         * target-insns.def (jump): New targetm instruction pattern.
8108         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
8109         instead of gen_jump.
8110         (fix_up_crossing_landing_pad): Likewise.
8111         (add_labels_and_missing_jumps): Likewise.
8112         (fix_crossing_conditional_branches): Likewise.
8113         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8114         (force_nonfallthru_and_redirect): Likewise.
8115         * cse.c (cse_insn): Likewise.
8116         * expmed.c (expand_divmod): Likewise.
8117         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
8118         * haifa-sched.c (init_before_recovery): Likewise.
8119         (sched_create_recovery_edges): Likewise.
8120         * ifcvt.c (find_cond_trap): Likewise.
8121         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
8122         (expand_float, expand_fix): Likewise.
8123         * stmt.c (emit_jump): Likewise.
8125 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8127         * defaults.h (HAVE_load_multiple, gen_load_multiple)
8128         (HAVE_store_multiple, gen_store_multiple): Delete.
8129         * target-insns.def (load_multiple, store_multiple): New targetm
8130         instruction patterns.
8131         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
8132         of HAVE_*/gen_* interface.
8134 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8136         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
8137         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
8138         (gen_mem_signal_fence): Delete.
8139         * target-insns.def (mem_signal_fence, mem_thread_fence)
8140         (memory_barrier): New targetm instruction patterns.
8141         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
8142         interface.
8143         (expand_mem_signal_fence): Likewise.
8145 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8147         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
8148         * target-insns.def (epilogue, prologue, sibcall_prologue): New
8149         targetm instruction patterns.
8150         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
8151         interface.
8152         * calls.c (expand_call): Likewise.
8153         * cfgrtl.c (cfg_layout_finalize): Likewise.
8154         * df-scan.c (df_get_entry_block_def_set): Likewise.
8155         (df_get_exit_block_use_set): Likewise.
8156         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
8157         * final.c (final_start_function): Likewise.
8158         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8159         (reposition_prologue_and_epilogue_notes): Likewise.
8160         * reorg.c (find_end_label): Likewise.
8161         * toplev.c (process_options): Likewise.
8163 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
8165         * typed-splay-tree.h: New file.
8167 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
8169         PR debug/66691
8170         * lra-int.h (lra_substitute_pseudo): Add a parameter.
8171         (lra_substitute_pseudo_within_insn): Ditto.
8172         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
8173         of constant.
8174         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
8175         to lra_substitute_pseudo.
8176         * lra-lives.c (process_bb_lives): Add an argument to
8177         lra_substitute_pseudo_within_insn call.
8178         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
8179         argument to lra_substitute_pseudo and
8180         lra_substitute_pseudo_within_insn calls.
8181         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
8183 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8185         * configure: Regenerated.
8187 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8189         * config.gcc: Support i[34567]86-*-elfiamcu target.
8190         * config/i386/iamcu.h: New.
8191         * config/i386/i386.opt: Add -miamcu.
8192         * doc/invoke.texi: Document -miamcu.
8193         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
8194         off x87/MMX/SSE/AVX codegen for -miamcu.
8195         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8196         __iamcu/__iamcu__ for -miamcu.
8197         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
8198         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
8199         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
8200         * config/i386/i386.c (ix86_option_override_internal): Ignore and
8201         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
8202         MCU by default.  Default long double to 64-bit for Intel MCU.
8203         Turn on -freg-struct-return for Intel MCU.  Issue an error when
8204         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
8205         AVX is turned on.
8206         (function_arg_advance_32): Pass value whose size is no larger
8207         than 8 bytes in registers for Intel MCU.
8208         (function_arg_32): Likewise.
8209         (ix86_return_in_memory): Return value whose size is no larger
8210         than 8 bytes in registers for Intel MCU.
8211         (iamcu_alignment): New function.
8212         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
8213         true.
8214         (ix86_local_alignment): Don't increase alignment for Intel MCU.
8215         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
8216         true.
8218 2015-06-30  Marek Polacek  <polacek@redhat.com>
8220         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
8221         both operands of the resulting expression.
8223         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
8224         the final expression with the operand's type and then convert
8225         it to the type of the expression.
8227 2015-06-30  Richard Biener  <rguenther@suse.de>
8229         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
8230         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
8231         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
8232         * match.pd: ... to patterns here.
8234 2015-06-30  Richard Biener  <rguenther@suse.de>
8236         PR tree-optimization/66704
8237         * tree-vect-data-refs.c (vect_setup_realignment): Use
8238         make_ssa_name for non-SSA name source.
8240 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
8242         PR middle-end/66702
8243         * omp-low.c (simd_clone_adjust): Handle addressable linear
8244         or uniform parameters or non-gimple type uniform parameters.
8246 2015-06-30  Richard Biener  <rguenther@suse.de>
8248         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
8249         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
8250         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
8251         * match.pd: ... here.
8252         Add a few cases of A - B -> A + (-B) when B "easily" negates.
8253         Move (x & y) | x -> x and friends before
8254         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
8256 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8258         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
8259         -mfix-ut699 is not specified.
8260         (leon3_load): Rename into...
8261         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
8262         is specified.
8264 2015-06-30  Marek Polacek  <polacek@redhat.com>
8266         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
8267         * match.pd: ... here.
8269 2015-06-30  Richard Biener  <rguenther@suse.de>
8271         * target-insns.def (canonicalize_funcptr_for_compare): Add.
8272         * fold-const.c (build_range_check): Replace uses of
8273         HAVE_canonicalize_funcptr_for_compare.
8274         (fold_widened_comparison): Likewise.
8275         (fold_sign_changed_comparison): Likewise.
8276         * dojump.c: Include "target.h".
8277         (do_compare_and_jump): Replace uses of
8278         HAVE_canonicalize_funcptr_for_compare and
8279         gen_canonicalize_funcptr_for_compare.
8280         * expr.c (do_store_flag): Likewise.
8282 2015-06-30  Tom de Vries  <tom@codesourcery.com>
8284         PR tree-optimization/66652
8285         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
8286         max_loop_iterations to determine if nit + 1 overflows.
8288 2015-06-30  Richard Biener  <rguenther@suse.de>
8290         * tree-vrp.c (register_edge_assert_for_2): Also register
8291         asserts for dominating conversion results.
8293 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
8295         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
8296         field in struct iv.
8298 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
8300         PR target/66509
8301         * configure.ac: Fix filds and fildq test for 64-bit.
8302         * configure: Regenerated.
8304 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8306         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
8307         (nvptx_reorg): Here.  Keep the non-subreg pieces.
8309 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
8311         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
8312         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8314 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
8316         * config/i386/i386.md (*jcc_1): Use %! in asm template.
8317         Set attribute "length_nobnd" instead of "length".
8318         (*jcc_2): Ditto.
8319         (jump): Ditto.
8320         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
8322 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
8324         * config/nios2/nios2.c (nios2_delegitimize_address): Make
8325         assert less restrictive.
8327 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8329         PR fortran/66605
8330         * cgraphunit.c (cgraph_node::finalize_function): Do not call
8331         do_warn_unused_parameter.
8332         * function.c (do_warn_unused_parameter): Move from here.
8333         * function.h (do_warn_unused_parameter): Do not declare.
8335 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8337         PR target/65697
8338         * gcc.target/arm/armv-sync-comp-swap.c: New.
8339         * gcc.target/arm/armv-sync-op-acquire.c: New.
8340         * gcc.target/arm/armv-sync-op-full.c: New.
8341         * gcc.target/arm/armv-sync-op-release.c: New.
8343 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8345         PR target/65697
8346         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
8347         initial acquire barrier with final barrier.
8349 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8351         PR target/65697
8352         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
8353         initial acquire barrier with final barrier.
8355 2015-06-29  Richard Henderson  <rth@redhat.com>
8357         * config/i386/constraints.md (Bf): New constraint.
8358         * config/i386/i386-c.c (ix86_target_macros): Define
8359         __GCC_ASM_FLAG_OUTPUTS__.
8360         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
8361         as flags outputs.
8362         * doc/extend.texi (FlagOutputOperands): Document them.
8364 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
8366         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
8367         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
8368         unspec name.
8369         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
8370         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
8371         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
8372         (aarch64_symbol_context): Ditto.
8373         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
8374         and use new pattern name.
8375         (aarch64_expand_mov_immediate): Ditto.
8376         (aarch64_print_operand): Ditto.
8377         (aarch64_classify_tls_symbol): Ditto.
8379 2015-06-29  Marek Polacek  <polacek@redhat.com>
8380             Marc Glisse  <marc.glisse@inria.fr>
8382         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
8383         * match.pd: ... pattern here.
8385 2015-06-29  Tom de Vries  <tom@codesourcery.com>
8387         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
8388         function structure.
8390 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8392         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
8393         feature description, split out the native option, add a link to
8394         the feature documentation, rearrange and slightly rewrite text.
8395         (Aarch64 options, -mcpu): Likewise.
8396         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
8397         +rdma implies Adv. SIMD.
8399 2015-06-29  Marek Polacek  <polacek@redhat.com>
8401         PR c/66322
8402         * function.c (stack_protect_epilogue): Remove a cast to int.
8403         * doc/invoke.texi: Update -Wswitch-bool description.
8405 2015-06-29  Richard Biener  <rguenther@suse.de>
8407         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
8408         * fold-const.c (fold_binary_loc): Move &A - &B simplification
8409         via ptr_difference_const ...
8410         * match.pd: ... here.
8411         When matching (X ^ Y) == Y also match with swapped operands.
8413 2015-06-29  Richard Biener  <rguenther@suse.de>
8415         * lto-streamer.h (LTO_major_version): Bump to 5.
8417 2015-06-29  Richard Biener  <rguenther@suse.de>
8419         PR tree-optimization/66677
8420         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
8421         STMT_VINFO_VEC_STMT clobbering less strict.
8423 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
8425         PR middle-end/64130
8426         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
8427         division, compute max and min when value ranges for dividend and
8428         divisor are available.
8430 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
8431             Sandra Loosemore <sandra@codesourcery.com>
8433         * regrename.h (regrename_do_replace): Change to return bool.
8434         * regrename.c (rename_chains): Check return value of
8435         regname_do_replace.
8436         (regrename_do_replace): Re-validate the modified insns and
8437         return bool status.
8438         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
8439         Update to match rename_chains changes.
8440         * config/c6x/c6x.c (try_rename_operands): Assert that
8441         regrename_do_replace returns true.
8443 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
8445         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
8446         operand 2 here.  Use copy_addr_to_reg to copy non-index
8447         register operand 2 to a temporary.
8448         (<mode>_stx): Ditto for operand 1.
8449         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
8450         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
8451         (ix86_store_bounds): Ditto.
8453 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
8455         * print-tree.c (print_node) [TREE_VEC]: Print its length.
8457 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
8459         * gimple.c (gimple_call_set_fndecl): Remove.
8460         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
8461         build1_loc directly instead of build_fold_addr_expr_loc.
8463 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8465         * hash-map.h (hash_map::traverse): Use the definition of the
8466         Key typedef rather than the typedef itself.
8468 2015-06-26  Martin Jambor  <mjambor@suse.cz>
8470         PR debug/66301
8471         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
8472         NULL instead of calling dump_enabled_p.
8474 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8476         * config/aarch64/aarch64.opt: (override): New.
8477         * doc/invoke.texi (override): Document.
8478         * config/aarch64/aarch64.c (aarch64_flag_desc): New
8479         (aarch64_fusible_pairs): Likewise.
8480         (aarch64_tuning_flags): Likewise.
8481         (aarch64_tuning_override_function): Likewise.
8482         (aarch64_tuning_override_functions): Likewise.
8483         (aarch64_parse_one_option_token): Likewise.
8484         (aarch64_parse_boolean_options): Likewise.
8485         (aarch64_parse_fuse_string): Likewise.
8486         (aarch64_parse_tune_string): Likewise.
8487         (aarch64_parse_one_override_token): Likewise.
8488         (aarch64_parse_override_string): Likewise.
8489         (aarch64_override_options): Parse the -override string if it
8490         is present.
8492 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8494         * config/aarch64/aarch64-protos.h (tune_params): Remove
8495         const from members.
8496         (aarch64_tune_params): Remove const, change to no longer be
8497         a pointer.
8498         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
8499         change to no longer be a pointer, initialize to generic_tunings.
8500         (aarch64_min_divisions_for_recip_mul): Change dereference of
8501         aarch64_tune_params to member access.
8502         (aarch64_reassociation_width): Likewise.
8503         (aarch64_rtx_mult_cost): Likewise.
8504         (aarch64_address_cost): Likewise.
8505         (aarch64_branch_cost): Likewise.
8506         (aarch64_rtx_costs): Likewise.
8507         (aarch64_register_move_cost): Likewise.
8508         (aarch64_memory_move_cost): Likewise.
8509         (aarch64_sched_issue_rate): Likewise.
8510         (aarch64_builtin_vectorization_cost): Likewise.
8511         (aarch64_override_options): Take a copy of the selected tuning
8512         struct in to aarch64_tune_params, rather than just setting
8513         a pointer, change dereferences of aarch64_tune_params to member
8514         accesses.
8515         (aarch64_override_options_after_change): Change dereferences of
8516         aarch64_tune_params to member access.
8517         (aarch64_macro_fusion_p): Likewise.
8518         (aarch_macro_fusion_pair_p): Likewise.
8519         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
8521 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8523         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
8524         (aarch64_tune_flags): Likewise.
8525         (AARCH64_TUNE_FMA_STEERING): Likewise.
8526         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
8527         to AARCH64_FL_USE_FMA_STEERING_PASS.
8528         (cortex-a57.cortex-a53): Likewise.
8529         (cortex-a72): Use cortexa72_tunings.
8530         (cortex-a72.cortex-a53): Likewise.
8531         (exynos-m1): Likewise.
8532         * config/aarch64/aarch64-protos.h (tune_params): Add
8533         a field: extra_tuning_flags.
8534         * config/aarch64/aarch64-tuning-flags.def: New.
8535         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
8536         (aarch64_extra_tuning_flags): Likewise.
8537         (aarch64_tune_params): Declare here.
8538         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
8539         (cortexa53_tunings): Likewise.
8540         (cortexa57_tunings): Likewise.
8541         (thunderx_tunings): Likewise.
8542         (xgene1_tunings): Likewise.
8543         (cortexa72_tunings): New.
8544         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
8545          (gate): Check against aarch64_tune_params.
8546         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
8547         aarch64-protos.h.
8549 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8551         * config/aarch64/aarch64-fusion-pairs.def: New.
8552         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
8553         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
8554         aarch64_fusion_pairs.
8555         (AARCH64_FUSE_MOV_MOVK): Likewise.
8556         (AARCH64_FUSE_ADRP_ADD): Likewise.
8557         (AARCH64_FUSE_MOVK_MOVK): Likewise.
8558         (AARCH64_FUSE_ADRP_LDR): Likewise.
8559         (AARCH64_FUSE_CMP_BRANCH): Likewise.
8561 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8563         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
8564         SYMBOL_SMALL_GOT_28K.
8565         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
8566         relocation modifiers.
8567         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
8568         (ldr_got_small_28k_<mode>): New.
8569         (ldr_got_small_28k_sidi): New.
8570         * config/aarch64/iterators.md (got_modifier): New mode iterator.
8571         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
8572         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8573         SYMBOL_SMALL_GOT_28K.
8574         (aarch64_rtx_costs): Add costs for new instruction sequences.
8575         (initialize_aarch64_code_model): Initialize new model.
8576         (aarch64_classify_symbol): Recognize new model and new symbol classification.
8577         (aarch64_asm_preferred_eh_data_format): Support new model.
8578         (aarch64_load_symref_appropriately): Generate new instruction
8579         sequences for -fpic.
8580         (TARGET_USE_PSEUDO_PIC_REG): New definition.
8581         (aarch64_use_pseudo_pic_reg): New function.
8583 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8585         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8586         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
8587         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
8588         (aarch64_expand_mov_immediate): Ditto.
8589         (aarch64_print_operand): Ditto.
8590         (aarch64_classify_symbol): Ditto.
8592 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
8594         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
8596 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
8598         PR bootstrap/66638
8599         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
8600         assertion failed.  Remove assertion itself.
8602 2015-06-26  Richard Biener  <rguenther@suse.de>
8604         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
8605         and -A CMP CST -> A CMP -CST which is redundant with a pattern
8606         in match.pd.
8607         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
8608         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
8609         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
8610         * match.pd: ... patterns here.
8612 2015-06-26  Marek Polacek  <polacek@redhat.com>
8614         * match.pd ((x | y) & ~(x & y) -> x ^ y,
8615         (x | y) & (~x ^ y) -> x & y): New patterns.
8617 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8619         * rtl.h (emit): Add an optional boolean parameter to control
8620         whether barriers are emitted.
8621         * emit-rtl.c (emit): Likewise.
8622         * gensupport.c (get_emit_function): Return null rather than "emit".
8623         * genemit.c (gen_emit_seq): Handle the null return value.
8624         Don't emit barriers after the final instruction in the sequence.
8625         * gentarget-def.c (main): Don't emit barriers after the instruction.
8627 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8629         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
8630         TARGET_UNIFIED_ASM.
8632 2015-06-26  Richard Biener  <rguenther@suse.de>
8634         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
8636 2015-06-26  Richard Biener  <rguenther@suse.de>
8638         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
8639         irrespective on whether the inner operation has a single use
8640         of both off are constant.
8642 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
8643             Segher Boessenkool  <segher@kernel.crashing.org>
8645         PR target/66412
8646         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
8647         before doing PUT_MODE or PUT_CODE on operands to avoid
8648         in-place RTX modification.
8650 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8652         * gentarget-def.c (def_target_insn): Cast return of strtol to
8653         unsigned int.
8655 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8657         * gimple.h (gimple_call_set_fn): Move inline function.
8658         * gimple.c (gimple_call_set_fn): Relocate here.
8660 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
8662         PR target/65979
8663         PR target/66611
8664         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
8665         the replacement insn will work.
8667 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8669         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
8670         by default.
8672 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8674         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
8675         * cgraph.h: Include ipa-ref.h and plugin-api.h.
8676         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
8677         (symtab_node::address_can_be_compared_p): Move function.
8678         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
8679         definition here.
8680         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
8681         * auto-profile.c: Likewise.
8682         * bb-reorder.c: Likewise.
8683         * builtins.c: Likewise.
8684         * calls.c: Likewise.
8685         * cfgexpand.c: Likewise.
8686         * cgraphbuild.c: Likewise.
8687         * cgraphclones.c: Likewise.
8688         * cgraphunit.c: Likewise.
8689         * combine.c: Likewise.
8690         * coverage.c: Likewise.
8691         * data-streamer-in.c: Likewise.
8692         * data-streamer-out.c: Likewise.
8693         * data-streamer.c: Likewise.
8694         * dbxout.c: Likewise.
8695         * dwarf2out.c: Likewise.
8696         * except.c: Likewise.
8697         * expr.c: Likewise.
8698         * final.c: Likewise.
8699         * fold-const.c: Likewise.
8700         * ggc-page.c: Likewise.
8701         * gimple-fold.c: Likewise.
8702         * gimple-iterator.c: Likewise.
8703         * gimple-pretty-print.c: Likewise.
8704         * gimple-streamer-in.c: Likewise.
8705         * gimple-streamer-out.c: Likewise.
8706         * gimple.c: Likewise.
8707         * gimplify.c: Likewise.
8708         * ipa-chkp.c: Likewise.
8709         * ipa-comdats.c: Likewise.
8710         * ipa-cp.c: Likewise.
8711         * ipa-devirt.c: Likewise.
8712         * ipa-icf-gimple.c: Likewise.
8713         * ipa-icf.c: Likewise.
8714         * ipa-inline-analysis.c: Likewise.
8715         * ipa-inline-transform.c: Likewise.
8716         * ipa-inline.c: Likewise.
8717         * ipa-polymorphic-call.c: Likewise.
8718         * ipa-profile.c: Likewise.
8719         * ipa-prop.c: Likewise.
8720         * ipa-pure-const.c: Likewise.
8721         * ipa-ref.c: Likewise.
8722         * ipa-reference.c: Likewise.
8723         * ipa-split.c: Likewise.
8724         * ipa-utils.c: Likewise.
8725         * ipa-visibility.c: Likewise.
8726         * ipa.c: Likewise.
8727         * langhooks.c: Likewise.
8728         * lto-cgraph.c: Likewise.
8729         * lto-compress.c: Likewise.
8730         * lto-opts.c: Likewise.
8731         * lto-section-in.c: Likewise.
8732         * lto-section-out.c: Likewise.
8733         * lto-streamer-in.c: Likewise.
8734         * lto-streamer-out.c: Likewise.
8735         * lto-streamer.c: Likewise.
8736         * omp-low.c: Likewise.
8737         * opts-global.c: Likewise.
8738         * passes.c: Likewise.
8739         * predict.c: Likewise.
8740         * print-tree.c: Likewise.
8741         * profile.c: Likewise.
8742         * ree.c: Likewise.
8743         * sanopt.c: Likewise.
8744         * stor-layout.c: Likewise.
8745         * symtab.c: Likewise.
8746         * toplev.c: Likewise.
8747         * trans-mem.c: Likewise.
8748         * tree-cfg.c: Likewise.
8749         * tree-chkp.c: Likewise.
8750         * tree-eh.c: Likewise.
8751         * tree-emutls.c: Likewise.
8752         * tree-inline.c: Likewise.
8753         * tree-nested.c: Likewise.
8754         * tree-parloops.c: Likewise.
8755         * tree-pretty-print.c: Likewise.
8756         * tree-profile.c: Likewise.
8757         * tree-sra.c: Likewise.
8758         * tree-ssa-alias.c: Likewise.
8759         * tree-ssa-live.c: Likewise.
8760         * tree-ssa-loop-ivcanon.c: Likewise.
8761         * tree-ssa-loop-ivopts.c: Likewise.
8762         * tree-ssa-pre.c: Likewise.
8763         * tree-ssa-sccvn.c: Likewise.
8764         * tree-ssa-strlen.c: Likewise.
8765         * tree-ssa-structalias.c: Likewise.
8766         * tree-streamer-in.c: Likewise.
8767         * tree-streamer-out.c: Likewise.
8768         * tree-streamer.c: Likewise.
8769         * tree-switch-conversion.c: Likewise.
8770         * tree-tailcall.c: Likewise.
8771         * tree-vect-data-refs.c: Likewise.
8772         * tree-vect-stmts.c: Likewise.
8773         * tree-vectorizer.c: Likewise.
8774         * tree.c: Likewise.
8775         * tsan.c: Likewise.
8776         * ubsan.c: Likewise.
8777         * value-prof.c: Likewise.
8778         * varasm.c: Likewise.
8779         * varpool.c: Likewise.
8780         * config/arm/arm.c: Likewise.
8781         * config/bfin/bfin.c: Likewise.
8782         * config/c6x/c6x.c: Likewise.
8783         * config/cris/cris.c: Likewise.
8784         * config/darwin-c.c: Likewise.
8785         * config/darwin.c: Likewise.
8786         * config/i386/i386.c: Likewise.
8787         * config/i386/winnt.c: Likewise.
8788         * config/microblaze/microblaze.c: Likewise.
8789         * config/mips/mips.c: Likewise.
8790         * config/rs6000/rs6000.c: Likewise.
8791         * config/rx/rx.c: Likewise.
8792         * config/s390/s390.c: Likewise.
8793         * config/tilegx/mul-tables.c: Likewise.
8795 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8797         * config/aarch64/aarch64.c, config/alpha/alpha.c,
8798         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
8799         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
8800         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
8801         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8802         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8803         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8804         config/microblaze/microblaze.c, config/mips/mips.c,
8805         config/mmix/mmix.c, config/mn10300/mn10300.c,
8806         config/moxie/moxie.c, config/msp430/msp430.c,
8807         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8808         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8809         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8810         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8811         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8812         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8813         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
8814         target-def.h include.
8815         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
8817 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8819         * Makefile.in (TARGET_DEF): Add target-insns.def.
8820         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
8821         (build/gentarget-def.o): New rule.
8822         (genprogrtl): Add target-def.
8823         * target-insns.def, gentarget-def.c: New files.
8824         * target.def: Add targetm.have_* and targetm.gen_* hooks,
8825         based on the contents of target-insns.def.
8826         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
8827         (HAVE_return, gen_return): Delete.
8828         * target-def.h: Include insn-target-def.h.
8829         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
8830         instead of direct calls.  Rely on them to do the appropriate assertions.
8831         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
8832         (convert_jumps_to_returns): Use targetm interface instead of
8833         direct calls.
8834         (thread_prologue_and_epilogue_insns): Likewise.
8835         * reorg.c (find_end_label, dbr_schedule): Likewise.
8836         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
8837         * shrink-wrap.c (convert_to_simple_return): Likewise.
8838         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
8840 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8842         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
8843         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8844         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
8845         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8846         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8847         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8848         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8849         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
8850         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
8851         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8852         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8853         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8854         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8855         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8856         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8857         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
8858         includes to end.
8860 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8862         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
8863         (unbounded_int_hashmap_traits::key_type): Likewise.
8864         * hash-map.h (hash_map): Get the key type from the traits.
8865         * hash-traits.h (default_hash_traits): By default, inherit from the
8866         template parameter.
8867         * alias.c (alias_set_traits): Delete.
8868         (alias_set_entry_d::children): Use alias_set_hash as the first
8869         template parameter.
8870         (record_alias_subset): Update accordingly.
8871         * except.c (tree_hash_traits): Delete.
8872         (type_to_runtime_map): Use tree_hash as the first template parameter.
8873         (init_eh): Update accordingly.
8874         * genmatch.c (capture_id_map_hasher): Delete.
8875         (cid_map_t): Use nofree_string_hash as first template parameter.
8876         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
8877         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8878         Use symbol_compare_hash as the first template parameter in
8879         subdivide_hash_map.
8880         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
8881         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
8882         template parameter.
8883         * passes.c (pass_registry_hasher): Delete.
8884         (name_to_pass_map): Use nofree_string_hash as the first template
8885         parameter.
8886         (register_pass_name): Update accordingly.
8887         * sanopt.c (sanopt_tree_map_traits): Delete.
8888         (sanopt_tree_triplet_map_traits): Delete.
8889         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
8890         template parameter.
8891         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
8892         the first template parameter.
8893         * sese.c (rename_map_hasher): Delete.
8894         (rename_map_type): Use tree_ssa_name_hash as the first template
8895         parameter.
8896         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
8897         (function_summary::m_map): Use map_hash as the first template
8898         parameter.
8899         (function_summary::release): Update accordingly.
8900         * tree-if-conv.c (phi_args_hash_traits): Delete.
8901         (predicate_scalar_phi): Use tree_operand_hash as the first template
8902         parameter to phi_arg_map.
8903         * tree-inline.h (dependence_hasher): Delete.
8904         (copy_body_data::dependence_map): Use dependence_hash as the first
8905         template parameter.
8906         * tree-inline.c (remap_dependence_clique): Update accordingly.
8907         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
8908         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
8909         parameter.
8910         (addr_stridxptr): Update accordingly.
8911         * value-prof.c (profile_id_traits): Delete.
8912         (cgraph_node_map): Use profile_id_hash as the first template
8913         parameter.
8914         (init_node_map): Update accordingly.
8915         * config/alpha/alpha.c (string_traits): Delete.
8916         (machine_function::links): Use nofree_string_hash as the first
8917         template parameter.
8918         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
8919         * config/m32c/m32c.c (pragma_traits): Delete.
8920         (pragma_htab): Use nofree_string_hash as the first template parameter.
8921         (m32c_note_pragma_address): Update accordingly.
8922         * config/mep/mep.c (pragma_traits): Delete.
8923         (pragma_htab): Use nofree_string_hash as the first template parameter.
8924         (mep_note_pragma_flag): Update accordingly.
8925         * config/mips/mips.c (mips16_flip_traits): Delete.
8926         (mflip_mips16_htab): Use nofree_string_hash as the first template
8927         parameter.
8928         (mflip_mips16_use_mips16_p): Update accordingly.
8929         (local_alias_traits): Delete.
8930         (mips16_local_aliases): Use nofree_string_hash as the first template
8931         parameter.
8932         (mips16_local_alias): Update accordingly.
8934 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8936         * hash-map-traits.h (default_hashmap_traits): Delete.
8938 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8940         * hash-map-traits.h (unbounded_hashmap_traits): New class.
8941         (unbounded_int_hashmap_traits): Likewise.
8942         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
8944 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8946         * ipa-icf.h (symbol_compare_hash): New class.
8947         (symbol_compare_hashmap_traits): Use it.
8948         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
8949         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
8950         (mem_alloc_description::reverse_mem_map_t): Remove redundant
8951         default_hashmap_traits.
8952         * sanopt.c (sanopt_tree_triplet_hash): New class.
8953         (sanopt_tree_triplet_map_traits): Use it.
8955 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8957         * gengtype-parse.c (require_template_declaration): Allow '+' in
8958         template parameters.  Consolidate cases.
8959         * hash-traits.h (int_hash): New class.
8960         * alias.c (alias_set_hash): New structure.
8961         (alias_set_traits): Use it.
8962         * symbol-summary.h (function_summary::map_hash): New class.
8963         (function_summary::summary_hashmap_traits): Use it.
8964         * tree-inline.h (dependence_hash): New class.
8965         (dependence_hasher): Use it.
8966         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
8967         * value-prof.c (profile_id_hash): New class.
8968         (profile_id_traits): Use it.
8970 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8972         * config/mips/mips.c (mips16_flip_traits): Use it.
8973         (local_alias_traits, mips16_local_aliases): Convert from a map of
8974         rtxes to a map of symbol names.
8975         (mips16_local_alias): Update accordingly.
8977 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8979         * hash-traits.h (string_hash, nofree_string_hash): New classes.
8980         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
8981         * passes.c (pass_registry_hasher): Likewise.
8982         * config/alpha/alpha.c (string_traits): Likewise.
8983         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
8984         * config/m32c/m32c.c (pragma_traits): Likewise.
8985         * config/mep/mep.c (pragma_traits): Likewise.
8987 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8989         * tree-hash-traits.h (tree_hash): New class.
8990         * except.c: Include tree-hash-traits.h.
8991         (tree_hash_traits): Use tree_hash.
8993 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8995         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
8996         * sese.c: Include tree-hash-traits.h.
8997         (rename_map_hasher): Use tree_ssa_name_hasher.
8999 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9001         * tree-hash-traits.h (tree_decl_hash): New class.
9002         * tree-ssa-strlen.c: Include tree-hash-traits.h.
9003         (stridxlist_hash_traits): Use tree_decl_hash.
9005 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9007         * tree-hash-traits.h: New file.
9008         (tree_operand_hash): New class.
9009         * sanopt.c: Include tree-hash-traits.h.
9010         (sanopt_tree_map_traits): Use tree_operand_hash.
9011         * tree-if-conv.c: Include tree-hash-traits.h.
9012         (phi_args_hash_traits): Use tree_operand_hash.
9013         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
9014         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
9016 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9018         * hash-map-traits.h: Include hash-traits.h.
9019         (simple_hashmap_traits): New class.
9020         * mem-stats.h (hash_map): Change the default traits to
9021         simple_hashmap_traits<default_hash_traits<Key> >.
9023 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9025         * hash-table.h: Update comments.
9027 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9029         * hash-traits.h (default_hash_traits): New structure.
9030         * hash-set.h (default_hashset_traits): Delete.
9031         (hash_set): Use default_hash_traits<Key> instead of
9032         default_hashset_traits.  Delete hash_entry type and use Key directly.
9033         * ipa-devirt.c (pair_traits): Delete.
9034         (default_hash_traits <type_pair>): Override.
9035         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
9036         (odr_types_equivalent_p, add_type_duplicate): Likewise.
9038 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9040         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
9042 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9044         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
9045         (has_is_empty, is_empty_helper): Delete.
9046         (has_mark_deleted, mark_deleted_helper): Delete.
9047         (has_mark_empty, mark_empty_helper): Delete.
9048         (hash_table::is_deleted): Call the Descriptor unconditionally.
9049         (hash_table::is_empty): Likewise.
9050         (hash_table::mark_deleted): Likewise.
9051         (hash_table::mark_empty): Likewise.
9053 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9055         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
9056         redundant typedefs and members.
9057         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
9058         redundant typedefs.
9059         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
9060         * ipa-devirt.c (odr_name_hasher): Likewise.
9061         (polymorphic_call_target_hasher): Likewise.
9062         * ira-costs.c (cost_classes_hasher): Likewise.
9063         * statistics.c (stats_counter_hasher): Likewise.
9064         * trans-mem.c (log_entry_hasher): Likewise.
9065         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9066         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
9067         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
9068         * var-tracking.c (variable_hasher): Likewise.
9069         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
9070         Remove redundant typedefs and members.
9072 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9074         * hash-traits.h (ggc_cache_hasher): Rename to...
9075         (ggc_cache_remove): ...this and remove typedefs.
9076         (ggc_cache_ptr_hash): New class.
9077         * hash-table.h: Update commentary.
9078         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
9079         rather than ggc_cache_hasher.
9080         (const_wide_int_hasher, reg_attr_hasher): Likewise.
9081         (const_double_hasher, const_fixed_hasher): Likewise.
9082         * function.c (insn_cache_hasher): Likewise.
9083         * trans-mem.c (tm_wrapper_hasher): Likewise.
9084         * tree.h (tree_decl_map_cache_hasher): Likewise.
9085         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
9086         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
9087         * ubsan.c (tree_type_map_cache_hasher): Likewise.
9088         * varasm.c (tm_clone_hasher): Likewise.
9089         * config/i386/i386.c (dllimport_hasher): Likewise.
9090         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
9091         (tree_hasher): Likewise.
9093 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9095         * hash-traits.h (ggc_hasher): Rename to...
9096         (ggc_remover): ...this and remove typedefs.
9097         (ggc_cache_hasher): Update accordingly.  Add typedefs.
9098         (ggc_ptr_hash): New class.
9099         * hash-table.h: Update comment.
9100         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
9101         ggc_hasher.
9102         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
9103         (tree_descriptor_hasher): Likewise.
9104         * cgraph.c (function_version_hasher): Likewise.
9105         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
9106         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
9107         (dw_loc_list_hasher, addr_hasher): Likewise.
9108         * function.h (used_type_hasher): Likewise.
9109         * function.c (temp_address_hasher): Likewise.
9110         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
9111         * libfuncs.h (libfunc_hasher): Likewise.
9112         * lto-streamer.h (decl_state_hasher): Likewise.
9113         * optabs.c (libfunc_decl_hasher): Likewise.
9114         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
9115         * varasm.c (section_hasher, object_block_hasher): Likewise.
9116         (const_rtx_desc_hasher): Likewise.
9117         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
9118         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
9120 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9122         * hash-traits.h (free_ptr_hash): New class.
9123         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
9124         rather than typed_free_remove.  Remove redudant typedefs.
9125         (external_ref_hasher): Likewise.
9126         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
9127         (ehspec_hasher): Likewise.
9128         * ggc-common.c (saving_hasher): Likewise.
9129         * gimplify.c (gimplify_hasher): Likewise.
9130         * haifa-sched.c (delay_i2_hasher): Likewise.
9131         * loop-invariant.c (invariant_expr_hasher): Likewise.
9132         * loop-iv.c (biv_entry_hasher): Likewise.
9133         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
9134         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
9135         * tree-cfg.c (locus_discrim_hasher): Likewise.
9136         * tree-eh.c (finally_tree_hasher): Likewise.
9137         * tree-into-ssa.c (var_info_hasher): Likewise.
9138         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
9139         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
9140         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
9141         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
9142         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
9143         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
9144         (shared_bitmap_hasher): Likewise.
9145         * tree-ssa-threadupdate.c (redirection_data): Likewise.
9146         * tree-vectorizer.h (peel_info_hasher): Likewise.
9147         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
9148         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
9150 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9152         * hash-table.h: Update comments.
9153         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
9154         (nofree_ptr_hash): New class.
9155         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
9156         than typed_noop_remove.  Remove redudant typedefs.
9157         * attribs.c (attribute_hasher): Likewise.
9158         * cfg.c (bb_copy_hasher): Likewise.
9159         * cselib.c (cselib_hasher): Likewise.
9160         * dse.c (invariant_group_base_hasher): Likewise.
9161         * dwarf2cfi.c (trace_info_hasher): Likewise.
9162         * dwarf2out.c (macinfo_entry_hasher): Likewise.
9163         (comdat_type_hasher, loc_list_hasher): Likewise.
9164         * gcse.c (pre_ldst_expr_hasher): Likewise.
9165         * genmatch.c (id_base): Likewise.
9166         * genrecog.c (test_pattern_hasher): Likewise.
9167         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
9168         * haifa-sched.c (delay_i1_hasher): Likewise.
9169         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
9170         * ipa-icf.h (congruence_class_group_hash): Likewise.
9171         * ipa-profile.c (histogram_hash): Likewise.
9172         * ira-color.c (allocno_hard_regs_hasher): Likewise.
9173         * lto-streamer.h (string_slot_hasher): Likewise.
9174         * lto-streamer.c (tree_entry_hasher): Likewise.
9175         * plugin.c (event_hasher): Likewise.
9176         * postreload-gcse.c (expr_hasher): Likewise.
9177         * store-motion.c (st_expr_hasher): Likewise.
9178         * tree-sra.c (uid_decl_hasher): Likewise.
9179         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
9180         (ssa_name_var_hash): Likewise.
9181         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
9182         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
9183         * tree-ssa-pre.c (pre_expr_d): Likewise.
9184         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
9185         * vtable-verify.h (registration_hasher): Likewise.
9186         * vtable-verify.c (vtbl_map_hasher): Likewise.
9187         * config/arm/arm.c (libcall_hasher): Likewise.
9188         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
9189         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
9190         * config/sol2.c (comdat_entry_hasher): Likewise.
9191         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
9192         (print_fold_checksum, fold_checksum_tree): Likewise.
9193         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
9194         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
9195         (fold_build_call_array_loc): Likewise.
9196         * tree-ssa-ccp.c (gimple_htab): Likewise.
9197         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
9198         rather than pointer_type.
9200 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9202         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
9203         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
9205 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9207         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
9208         (ggc_hasher::ggc_mx): Likewise.
9209         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
9210         that duplicate ggc_hasher ones.
9212 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9214         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
9215         (gt_cleare_cache): Check here for deleted and empty entries.
9216         Replace handle_cache_entry with a call to keep_cache_entry.
9217         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
9218         (ggc_cache_hasher::keep_cache_entry): New function.
9219         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
9220         (tm_wrapper_hasher::keep_cache_entry): New function.
9221         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
9222         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9223         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
9224         (type_cache_hasher::keep_cache_entry): New function.
9225         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
9226         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9227         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
9228         (tree_type_map_cache_hasher::keep_cache_entry): New function.
9229         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
9230         (tm_clone_hasher::keep_cache_entry): New function.
9231         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
9232         (dllimport_hasher::keep_cache_entry): New function.
9234 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9236         * hash-table.h: Include hash-traits.h.
9237         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
9238         (ggc_cache_hasher): Move to...
9239         * hash-traits.h: ...this new file.
9241 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9243         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
9244         struct cl_optimization.
9245         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
9246         * tree.c (make_node_stat): Allocate cl_optimization struct.
9247         (copy_node_stat): Allocate and copy cl_optimization struct.
9249 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9251         * function.h (struct incoming_args): Move struct.
9252         (pass_by_reference, reference_callee_copied): Remove prototypes.
9253         * emit-rtl.h (struct incoming_args): Relocate struct here.
9254         * calls.h (pass_by_reference, reference_callee_copied): Relocate
9255         prototypes here.
9256         * function.c (pass_by_reference, reference_callee_copied): Move.
9257         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
9258         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
9259         * ipa-chkp.c: Include calls.h.
9261 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
9263         * alias.h (alias_set_type): Move typedef.
9264         * coretypes.h (alias_set_type): Relocate typedef here.
9265         * rtl.h: Don't include alias.h.
9267 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9269         * cgraph.h (cgraph_rtl_info): Move to rtl.h
9270         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
9271         and instance.
9272         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
9273         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
9274         doesn't exist.
9275         * calls.c: Include hard-reg-set.h before rtl.h.
9276         * ira.c: Likewise.
9278 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9279             Vladimir Makarov  <vmakarov@redhat.com>
9281         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
9282         Add assert.
9284 2015-06-25  Richard Biener  <rguenther@suse.de>
9286         * fold-const.c (fold_binary_loc): Move simplification of
9287         (X <<>> C1) & C2 ...
9288         * match.pd: ... here.
9290 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
9292         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
9294 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9296         * match.pd: Add patterns for vec_conds between 1 and 0.
9298 2015-06-25  Richard Biener  <rguenther@suse.de>
9300         * tree-vect-stmts.c (vectorizable_conversion): Do not set
9301         STMT_VINFO_VEC_STMT for SLP.
9302         (vectorizable_store): Likewise.
9303         (vectorizable_load): Likewise.
9304         (vect_transform_stmt): Catch SLP vectorization clobbering
9305         STMT_VINFO_VEC_STMT.
9307 2015-06-25  Richard Biener  <rguenther@suse.de>
9309         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
9310         dumping.
9311         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
9312         cleanup resulting dead code and parameters.
9313         (vect_transform_slp_perm_load): Adjust.
9315 2015-06-25  Nick Clifton  <nickc@redhat.com>
9317         * config/bfin/bfin.c (bfin_expand_prologue): Set
9318         current_function_static_stack_size if flag_stack_usage_info is set.
9319         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9320         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
9321         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9322         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
9324 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9326         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
9327         comment that the generated IV is unsigned.
9329 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9331         PR target/29693
9332         * config/arm/arm.c (arm_dbx_register_number): Return
9333         DWARF_FRAME_REGISTERS by default.
9335 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9337         * dominance.c (calculate_dominance_info): Fix verify_dominators call
9338         argument.  Call verify_dominator when reusing dominator info.
9340 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9342         PR target/66563
9343         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
9344         an additional element of the unspec vector.  Modify indices
9345         of operands.
9346         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
9347         * config/sh/sh.c (prepare_move_operands): Pass incremented
9348         const_int to gen_GOTaddr2picreg.
9349         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
9351 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9353         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
9354         Condition on TARGET_FLOAT.
9356 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9358         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
9359         and (no)crypto.
9361 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9363         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
9365         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
9366         aarch64_err_no_fpadvsimd.
9368         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
9369         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
9370         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
9371         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
9372         Turn error into assert, test TARGET_FLOAT.
9373         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
9374         TARGET_FLOAT.
9376 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
9378         PR debug/66482
9379         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
9381 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
9383         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
9385 2015-06-24 Renlin Li <renlin.li@arm.com>
9387         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
9388         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
9390 2015-06-24  Richard Biener  <rguenther@suse.de>
9392         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
9393         (main): Likewise.
9394         (lower_opt_convert): Support lowering of conditional view_convert.
9395         (parser::parse_operation): Likewise.
9396         (parser::parse_for): Likewise.
9398 2015-06-24  Renlin Li  <renlin.li@arm.com>
9400         * varasm.c (emit_local): Use unsigned int for align variable.
9402 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9404         PR target/63408
9405         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
9406         for negative numbers.
9408 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9410         PR rtl-optimization/66306
9411         * reload.c (find_reloads): Swap the match_dup info for
9412         commutative operands.
9414 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9416         * config/s390/vx-builtins.md
9417         ("vec_scatter_element<mode>_<non_vec_int>")
9418         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
9419         attribute with bhfgq.
9421 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9423         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
9425 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9427         * config/s390/s390-builtin-types.def: Add flag to indicate the
9428         options under which the function type is needed.
9429         * config/s390/s390-builtins.def: Add flag to indicate the options
9430         under which the builtin is enabled.
9431         * config/s390/s390-builtins.h: Add flags parameter to macro
9432         definitions.
9433         (bflags_for_builtin): New function.
9434         (flags_for_builtin): Renamed to ...
9435         (opflags_for_builtin): ... this.
9436         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
9437         flags_for_builtin to bflags_for_builtin and
9438         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
9439         * config/s390/s390.c: Add initialization of bflags_builtin and
9440         opflags_builtin arrays.
9441         Remove code for flags_builtin.
9442         (s390_init_builtins): Only create builtin function types if one of
9443         their flags is active.
9444         Only create builtins if all of their flags are active.
9445         (s390_expand_builtin): Rename flags_for_builtin to
9446         opflags_for_builtin.
9448 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9450         * config/s390/vecintrin.h: Remove internal builtins.
9452 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9454         * config/s390/s390.c (s390_secondary_reload): Fix check for
9455         GENERAL_REGS register class.
9457 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9459         * config/s390/s390.c (s390_support_vector_misalignment): Call
9460         default implementation for !TARGET_VX.
9462 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9464         * config/s390/s390.c (s390_legitimate_constant_p): Add
9465         TARGET_VX check.
9467 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9469         * config/s390/s390.c (s390_vector_abi): New variable definition.
9470         (s390_check_type_for_vector_abi): New function.
9471         (TARGET_ASM_FILE_END): New macro definition.
9472         (s390_asm_file_end): New function.
9473         (s390_function_arg): Call s390_check_type_for_vector_abi.
9474         (s390_gimplify_va_arg): Likewise.
9475         * configure: Regenerate.
9476         * configure.ac: Check for .gnu_attribute Binutils feature.
9478 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
9480         PR target/65803
9481         * config/bfin/bfin.c (hwloop_optimize): Initialize
9482         JUMP_LABEL for newly created jump.
9484 2015-06-23  Tristan Gingold  <gingold@adacore.com>
9486         * collect-utils.c (collect_wait): Unlink the response file here
9487         instead of...
9488         (do_wait): ...here.
9489         (utils_cleanup): ...and here.
9491 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
9493         * df-scan.c: Don't include target-def.h.
9494         * targhooks.c: Likewise.
9495         * config/arm/arm-c.c: Likewise.
9496         * config/i386/i386-c.c: Likewise.
9497         * config/nds32/nds32-cost.c: Likewise.
9498         * config/nds32/nds32-fp-as-gp.c: Likewise.
9499         * config/nds32/nds32-intrinsic.c: Likewise.
9500         * config/nds32/nds32-isr.c: Likewise.
9501         * config/nds32/nds32-md-auxiliary.c: Likewise.
9502         * config/nds32/nds32-memory-manipulation.c: Likewise.
9503         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9504         * config/nds32/nds32-predicates.c: Likewise.
9506 2015-06-23  Richard Biener  <rguenther@suse.de>
9508         PR tree-optimization/66636
9509         * tree-vect-stmts.c (vectorizable_store): Properly compute the
9510         def type for further defs for strided stores.
9512 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
9514         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
9515         conditional selects.
9516         (setcc_int<mode>, setcc_float<mode>): Reformat.
9518 2015-06-23  Marek Polacek  <polacek@redhat.com>
9520         * match.pd ((x + y) - (x | y) -> x & y,
9521         (x + y) - (x & y) -> x | y): New patterns.
9523 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
9525         PR 65711
9526         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
9527         '-dynamic-linker' within %{!shared: ...}.
9529 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
9531         PR target/66560
9532         * config/i386/predicates.md (addsub_vm_operator): New predicate.
9533         (addsub_vs_operator): Ditto.
9534         (addsub_vs_parallel): Ditto.
9535         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
9536         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
9537         Put minus RTX before plus and adjust vec_merge selector.
9538         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
9539         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
9540         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
9541         (addsub vec_merge splitters): New combiner splitters.
9542         (addsub vec_select/vec_concat splitters): Ditto.
9544 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
9546         PR tree-optimization/66449
9547         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
9548         POINTER_PLUS_EXPR for pointers.
9550 2015-06-23  Alan Modra  <amodra@gmail.com>
9552         * rtlanal.c (commutative_operand_precedence): Correct comments.
9553         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
9554         declaration.  Return an int.  Distinguish REG,REG return from
9555         others.
9556         (struct simplify_plus_minus_op_data): Make local to function.
9557         (simplify_plus_minus): Don't set canonicalized if merely sorting
9558         registers.  Avoid packing ops if nothing changes.  White space fixes.
9560 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
9562         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
9563         -fdump-ada-spec is passed but not if -fsyntax-only is.
9565 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
9567         PR bootstrap/63740
9568         * lra-lives.c (process_bb_lives): Check insn copying the same
9569         reload pseudo and don't create a copy for it.
9571 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9573         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
9574         for cond_stmt.
9576 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9578         * builtins.def (DEF_GOMP_BUILTIN): Test
9579         'flag_tree_parallelize_loops > 1' instead of
9580         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
9582 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9584         * dominance.c (calculate_dominance_info): Verify dominators if
9585         early-out.
9587 2015-06-22  Marek Polacek  <polacek@redhat.com>
9589         * match.pd ((x ^ y) ^ (x | y) -> x & y,
9590         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
9591         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
9592         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
9594 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
9596         PR target/65871
9597         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
9598         cost of embedded comparison.
9600 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9602         PR target/65914
9603         * config/rs6000/predicates.md (altivec_register_operand): Permit
9604         virtual stack registers.
9605         (vsx_register_operand): Likewise.
9606         (vfloat_operand): Likewise.
9607         (vint_operand): Likewise.
9608         (vlogical_operand): Likewise.
9610 2015-06-22  Richard Biener  <rguenther@suse.de>
9612         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
9613         and single_scalar_iteration_cost members.
9614         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
9615         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
9616         (vect_get_single_scalar_iteration_cost): Remove.
9617         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9618         Use LOOP_VINFO_SCALAR_ITERATION_COST.
9619         * tree-vect-loop.c (destroy_loop_vec_info): Free
9620         scalar_cost_vec.
9621         (vect_get_single_scalar_iteration_cost): Compute result into
9622         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
9623         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
9624         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
9625         (vect_estimate_min_profitable_iters): Use them.
9627 2015-06-22  Christian Bruel  <christian.bruel@st.com>
9629         PR target/52144
9630         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
9631         (TARGET_INSERT_ATTRIBUTES): Define.
9632         (thumb_flipper): New var.
9633         * config/arm/arm.opt (-mflip-thumb): New switch.
9635 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9636             Martin Liska  <mliska@suse.cz>
9638         PR ipa/65908
9639         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
9640         construction of arg_types.
9641         (sem_function::sem_function): Likewise.
9642         (sem_function::~sem_function): Remove destruction of arg_types.
9643         (sem_function::compatible_parm_types_p): New function.
9644         (sem_function::equals_wpa): Reorg matching of return values
9645         and parameter types.
9646         (sem_function::equals_private): Reorg mathcing of argument types.
9647         (sem_function::parse_tree_args): Remove.
9648         * ipa-icf.h (init_wpa): Do not call it.
9649         (parse_tree_args): Remove.
9650         (compatible_parm_types_p): Declare.
9651         (result_type): Remove.
9652         (arg_types): Remove.
9654 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9656         PR ipa/66351
9657         * ipa-polymorphic-call.c
9658         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
9659         initializing alias oracle; fix formating; set base_alias_set if it
9660         is known.
9662 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
9664         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
9665         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
9666         (find_inc): Likewise.
9667         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
9668         swapping.
9669         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9670         * df-scan.c (df_swap_refs): Remove.
9671         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
9672         * dominance.c (link_roots): Use std::swap instead of manually swapping.
9673         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
9674         * fold-const.c (fold_relational_const): Likewise.
9675         * genattrtab.c (simplify_test_exp): Likewise.
9676         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
9677         gimple_simplify): Likewise.
9678         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
9679         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
9680         * ipa-devirt.c (add_type_duplicate): Likewise.
9681         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
9682         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
9683         * lra.c (lra_create_copy): Likewise.
9684         * lto-streamer-out.c (DFS::DFS): Likewise.
9685         * modulo-sched.c (get_sched_window): Likewise.
9686         * omega.c (omega_pretty_print_problem): Likewise.
9687         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
9688         * reload1.c (reloads_unique_chain_p): Likewise.
9689         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
9690         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
9691         use std::swap.
9692         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
9693         manually swapping.
9694         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
9695         predicate_mem_writes): Likewise.
9696         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
9697         * tree-predcom.c (combine_chains): Likewise.
9698         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
9699         refs_may_alias_p_1): Likewise.
9700         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
9701         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9702         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
9703         number_of_iterations_cond): Likewise.
9704         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9705         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
9706         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9707         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9708         * tree-vrp.c (extract_range_from_binary_expr_1,
9709         extract_range_from_unary_expr_1): Likewise.
9711 2015-06-20  Marek Polacek  <polacek@redhat.com>
9713         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
9715 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9717         PR target/66591
9718         * config/sh/sh.c (prepare_move_operands): Replace subreg
9719         index term with R0 for base and index addressing.
9721 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
9723         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
9724         op1 is an fp zero.
9725         (movsf_aarch64): Change condition from register_operand to
9726         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
9727         load1.  Change type for alternative 7 to store1.
9728         (movdf_aarch64): Likewise.
9730 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
9732         * config/vax/vax.md: Adjust sign/zero extend patterns to
9733         handle SUBREGs in operands[1].
9735 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9737         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
9738         of manually swapping.
9739         (expand_vec_perm_interleave2): Likewise.
9741 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
9743         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
9744         reuse bounds created for abnormal ssa names.
9746 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
9748         * config/nvptx/nvptx.md (allocate_stack): Rename to...
9749         (allocate_stack_<mode>): ... this, and add :P on both
9750         match_operand and unspec.
9751         (allocate_stack): New expander.
9753 2015-06-19  Christian Bruel  <christian.bruel@st.com>
9755         PR target/66541
9756         PR target/52144
9757         * config/arm/arm.c (arm_set_current_function): Handle
9758         explicit default options.
9760 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9762         * config/i386/i386.md (*movsicc_noc_zext): New insn.
9763         (zero-extended cmove with mem peephole2): New pattern.
9764         (cmove with mem peephole2): Merge patterns.
9766 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
9768         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
9770 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
9772         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
9773         * config/mips/mips.md (*madd4<mode>): Ditto.
9774         (*nmadd3<mode>) Ditto.
9775         (*nmadd4<mode>_fastmath): Ditto.
9776         (*nmadd3<mode>_fastmath): Ditto.
9777         (*nmsub4<mode>): Ditto.
9778         (*nmsub3<mode>): Ditto.
9779         (*nmsub4<mode>_fastmath): Ditto.
9780         (*nmsub3<mode>_fastmath): Ditto.
9782 2015-06-18  Michael Matz  <matz@suse.de>
9784         PR middle-end/66253
9785         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
9786         grouped strided stores.
9787         (vectorizable_load): Don't use the DR from first_stmt in
9788         the non-SLP grouped strided case.
9790 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9792         PR target/66569
9793         * function.c (assign_bounds): Add arguments assign_regs,
9794         assign_special, assign_bt.
9795         (assign_parms): For vararg functions handle bounds in BT
9796         and special slots after incoming vararg bounds.
9798 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9800         PR middle-end/66568
9801         * cfgexpand.c (expand_return): Handle missing bounds.
9802         (expand_gimple_stmt_1): Likewise.
9803         * tree-chkp.c (chkp_expand_zero_bounds): New.
9804         * tree-chkp.h (chkp_expand_zero_bounds): New.
9806 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9808         PR middle-end/66567
9809         * ipa-chkp.c (chkp_maybe_create_clone): Require
9810         functions to be instrumentable.
9811         * tree-chkp.c (chkp_replace_function_pointer): Use
9812         chkp_instrumentable_p instead of attribute check.
9814 2015-06-18  Richard Biener  <rguenther@suse.de>
9816         PR tree-optimization/66510
9817         * tree-vect-stmts.c (vectorizable_load): Properly compute the
9818         number of vector loads for SLP permuted loads.
9819         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
9820         check the stride for loop vectorization.
9821         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
9822         vectorization factor.
9823         (vect_analyze_group_access): If the group size is not a power
9824         of two require a epilogue loop.
9825         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
9826         compute and optimizing and alias test pruning after final
9827         vectorization factor computation.
9828         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
9829         vector alignment.
9830         (vect_transform_slp_perm_load): Properly compute the original
9831         number of vector load stmts.
9833 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9835         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
9836         "unlikely character , in @var" warning.
9838 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
9840         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
9841         (ix86_function_arg_advance): Ditto.
9842         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
9844 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9846         * function.h (struct rtl_data): Remove struct and accessor macros.
9847         * emit-rtl.h (struct rtl_data): Relocate to here.
9848         * Makefile.in (GTFILES): Add emit-rtl.h.
9849         * df-core.c: Include emit-rtl.h.
9850         * genattrtab.c: Likewise.
9851         * genconditions.c: Likewise.
9852         * genpreds.c: Likewise.
9853         * genrecog.c: Likewise.
9854         * regcprop.c: Likewise.
9855         * resource.c: Likewise.
9856         * sched-rgn.c: Likewise.
9857         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9858         * config/i386/winnt.c: Likewise.
9860 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
9862         PR middle-end/66429
9863         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
9864         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
9865         and has_force_vectorize_loops flags from cfun into
9866         child_cfun.
9867         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
9868         if simduid is non-NULL.
9869         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
9870         * passes.def (pass_simduid_cleanup): Add new pass after loop
9871         passes.
9872         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
9873         indirection from htab argument's type.
9874         (shrink_simd_arrays): New function.
9875         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
9876         Don't call adjust_simduid_builtins if there are no loops.
9877         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
9878         (pass_simduid_cleanup::execute): New method.
9879         (make_pass_simduid_cleanup): New function.
9881 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
9883         * tree-core.h (tree_target_option): Make opts field a pointer to a
9884         cl_target_option instead of an instance of the struct.
9885         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
9886         the structure.
9887         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
9888         TARGET_OPTION_NODE.
9889         (copy_node_stat): Allocate and copy struct cl_target_option.
9891 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9893         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
9894         Remove conditional exposure of prototypes.
9895         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
9896         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
9897         definitions in tree.h with functions.
9898         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
9899         anon_aggrname_p.
9900         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
9902 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
9904         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
9905         (*cmp<mode>_signed): ... this.
9906         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
9907         (*cmp<mode>_unsigned): ... this.  Remove %b.
9909 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9911         * coretypes.h: Include input.h and as-a.h.
9912         * rtl.h: Include input.h and as-a.h for generator files.
9913         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
9914         * vec.c: Don't include diagnostic-core.h.
9915         * alias.c: Do not include input.h, line-map.h or is-a.h.
9916         * asan.c: Likewise.
9917         * attribs.c: Likewise.
9918         * auto-inc-dec.c: Likewise.
9919         * auto-profile.c: Likewise.
9920         * bb-reorder.c: Likewise.
9921         * bt-load.c: Likewise.
9922         * builtins.c: Likewise.
9923         * caller-save.c: Likewise.
9924         * calls.c: Likewise.
9925         * ccmp.c: Likewise.
9926         * cfg.c: Likewise.
9927         * cfganal.c: Likewise.
9928         * cfgbuild.c: Likewise.
9929         * cfgcleanup.c: Likewise.
9930         * cfgexpand.c: Likewise.
9931         * cfghooks.c: Likewise.
9932         * cfgloop.c: Likewise.
9933         * cfgloop.h: Likewise.
9934         * cfgloopanal.c: Likewise.
9935         * cfgloopmanip.c: Likewise.
9936         * cfgrtl.c: Likewise.
9937         * cgraph.c: Likewise.
9938         * cgraphbuild.c: Likewise.
9939         * cgraphclones.c: Likewise.
9940         * cgraphunit.c: Likewise.
9941         * cilk-common.c: Likewise.
9942         * combine-stack-adj.c: Likewise.
9943         * combine.c: Likewise.
9944         * compare-elim.c: Likewise.
9945         * convert.c: Likewise.
9946         * coverage.c: Likewise.
9947         * cppbuiltin.c: Likewise.
9948         * cprop.c: Likewise.
9949         * cse.c: Likewise.
9950         * cselib.c: Likewise.
9951         * data-streamer-in.c: Likewise.
9952         * data-streamer-out.c: Likewise.
9953         * data-streamer.c: Likewise.
9954         * dbxout.c: Likewise.
9955         * dce.c: Likewise.
9956         * ddg.c: Likewise.
9957         * debug.c: Likewise.
9958         * df-core.c: Likewise.
9959         * df-problems.c: Likewise.
9960         * df-scan.c: Likewise.
9961         * df.h: Likewise.
9962         * dfp.c: Likewise.
9963         * diagnostic-core.h: Likewise.
9964         * diagnostic.c: Likewise.
9965         * dojump.c: Likewise.
9966         * dominance.c: Likewise.
9967         * domwalk.c: Likewise.
9968         * double-int.c: Likewise.
9969         * dse.c: Likewise.
9970         * dumpfile.c: Likewise.
9971         * dumpfile.h: Likewise.
9972         * dwarf2asm.c: Likewise.
9973         * dwarf2cfi.c: Likewise.
9974         * dwarf2out.c: Likewise.
9975         * emit-rtl.c: Likewise.
9976         * et-forest.c: Likewise.
9977         * except.c: Likewise.
9978         * explow.c: Likewise.
9979         * expmed.c: Likewise.
9980         * expr.c: Likewise.
9981         * final.c: Likewise.
9982         * fixed-value.c: Likewise.
9983         * fold-const.c: Likewise.
9984         * function.c: Likewise.
9985         * fwprop.c: Likewise.
9986         * gcc-plugin.h: Likewise.
9987         * gcse.c: Likewise.
9988         * generic-match-head.c: Likewise.
9989         * ggc-page.c: Likewise.
9990         * gimple-builder.c: Likewise.
9991         * gimple-expr.c: Likewise.
9992         * gimple-fold.c: Likewise.
9993         * gimple-iterator.c: Likewise.
9994         * gimple-low.c: Likewise.
9995         * gimple-match-head.c: Likewise.
9996         * gimple-pretty-print.c: Likewise.
9997         * gimple-ssa-isolate-paths.c: Likewise.
9998         * gimple-ssa-strength-reduction.c: Likewise.
9999         * gimple-streamer-in.c: Likewise.
10000         * gimple-streamer-out.c: Likewise.
10001         * gimple-streamer.h: Likewise.
10002         * gimple-walk.c: Likewise.
10003         * gimple.c: Likewise.
10004         * gimplify-me.c: Likewise.
10005         * gimplify.c: Likewise.
10006         * godump.c: Likewise.
10007         * graph.c: Likewise.
10008         * graphite-blocking.c: Likewise.
10009         * graphite-dependences.c: Likewise.
10010         * graphite-interchange.c: Likewise.
10011         * graphite-isl-ast-to-gimple.c: Likewise.
10012         * graphite-optimize-isl.c: Likewise.
10013         * graphite-poly.c: Likewise.
10014         * graphite-scop-detection.c: Likewise.
10015         * graphite-sese-to-poly.c: Likewise.
10016         * graphite.c: Likewise.
10017         * haifa-sched.c: Likewise.
10018         * hw-doloop.c: Likewise.
10019         * ifcvt.c: Likewise.
10020         * init-regs.c: Likewise.
10021         * input.c: Likewise.
10022         * internal-fn.c: Likewise.
10023         * ipa-chkp.c: Likewise.
10024         * ipa-comdats.c: Likewise.
10025         * ipa-cp.c: Likewise.
10026         * ipa-devirt.c: Likewise.
10027         * ipa-icf-gimple.c: Likewise.
10028         * ipa-icf.c: Likewise.
10029         * ipa-inline-analysis.c: Likewise.
10030         * ipa-inline-transform.c: Likewise.
10031         * ipa-inline.c: Likewise.
10032         * ipa-polymorphic-call.c: Likewise.
10033         * ipa-profile.c: Likewise.
10034         * ipa-prop.c: Likewise.
10035         * ipa-pure-const.c: Likewise.
10036         * ipa-ref.c: Likewise.
10037         * ipa-reference.c: Likewise.
10038         * ipa-split.c: Likewise.
10039         * ipa-utils.c: Likewise.
10040         * ipa-visibility.c: Likewise.
10041         * ipa.c: Likewise.
10042         * ira-build.c: Likewise.
10043         * ira-color.c: Likewise.
10044         * ira-conflicts.c: Likewise.
10045         * ira-costs.c: Likewise.
10046         * ira-emit.c: Likewise.
10047         * ira-lives.c: Likewise.
10048         * ira.c: Likewise.
10049         * jump.c: Likewise.
10050         * langhooks.c: Likewise.
10051         * lcm.c: Likewise.
10052         * loop-doloop.c: Likewise.
10053         * loop-init.c: Likewise.
10054         * loop-invariant.c: Likewise.
10055         * loop-iv.c: Likewise.
10056         * loop-unroll.c: Likewise.
10057         * lower-subreg.c: Likewise.
10058         * lra-assigns.c: Likewise.
10059         * lra-coalesce.c: Likewise.
10060         * lra-constraints.c: Likewise.
10061         * lra-eliminations.c: Likewise.
10062         * lra-lives.c: Likewise.
10063         * lra-remat.c: Likewise.
10064         * lra-spills.c: Likewise.
10065         * lra.c: Likewise.
10066         * lto-cgraph.c: Likewise.
10067         * lto-compress.c: Likewise.
10068         * lto-opts.c: Likewise.
10069         * lto-section-in.c: Likewise.
10070         * lto-section-out.c: Likewise.
10071         * lto-streamer-in.c: Likewise.
10072         * lto-streamer-out.c: Likewise.
10073         * lto-streamer.c: Likewise.
10074         * mcf.c: Likewise.
10075         * mode-switching.c: Likewise.
10076         * modulo-sched.c: Likewise.
10077         * omega.c: Likewise.
10078         * omp-low.c: Likewise.
10079         * optabs.c: Likewise.
10080         * opts-global.c: Likewise.
10081         * opts.h: Likewise.
10082         * passes.c: Likewise.
10083         * plugin.c: Likewise.
10084         * postreload-gcse.c: Likewise.
10085         * postreload.c: Likewise.
10086         * predict.c: Likewise.
10087         * pretty-print.h: Likewise.
10088         * print-rtl.c: Likewise.
10089         * print-tree.c: Likewise.
10090         * profile.c: Likewise.
10091         * real.c: Likewise.
10092         * realmpfr.c: Likewise.
10093         * recog.c: Likewise.
10094         * ree.c: Likewise.
10095         * reg-stack.c: Likewise.
10096         * regcprop.c: Likewise.
10097         * reginfo.c: Likewise.
10098         * regrename.c: Likewise.
10099         * regstat.c: Likewise.
10100         * reload.c: Likewise.
10101         * reload1.c: Likewise.
10102         * reorg.c: Likewise.
10103         * resource.c: Likewise.
10104         * rtl-chkp.c: Likewise.
10105         * rtl-error.c: Likewise.
10106         * rtlanal.c: Likewise.
10107         * rtlhooks.c: Likewise.
10108         * sanopt.c: Likewise.
10109         * sched-deps.c: Likewise.
10110         * sched-ebb.c: Likewise.
10111         * sched-rgn.c: Likewise.
10112         * sched-vis.c: Likewise.
10113         * sdbout.c: Likewise.
10114         * sel-sched-dump.c: Likewise.
10115         * sel-sched-ir.c: Likewise.
10116         * sel-sched.c: Likewise.
10117         * sese.c: Likewise.
10118         * shrink-wrap.c: Likewise.
10119         * simplify-rtx.c: Likewise.
10120         * stack-ptr-mod.c: Likewise.
10121         * statistics.c: Likewise.
10122         * stmt.c: Likewise.
10123         * stor-layout.c: Likewise.
10124         * store-motion.c: Likewise.
10125         * streamer-hooks.c: Likewise.
10126         * stringpool.c: Likewise.
10127         * symtab.c: Likewise.
10128         * target-globals.c: Likewise.
10129         * targhooks.c: Likewise.
10130         * toplev.c: Likewise.
10131         * tracer.c: Likewise.
10132         * trans-mem.c: Likewise.
10133         * tree-affine.c: Likewise.
10134         * tree-browser.c: Likewise.
10135         * tree-call-cdce.c: Likewise.
10136         * tree-cfg.c: Likewise.
10137         * tree-cfgcleanup.c: Likewise.
10138         * tree-chkp-opt.c: Likewise.
10139         * tree-chkp.c: Likewise.
10140         * tree-chrec.c: Likewise.
10141         * tree-complex.c: Likewise.
10142         * tree-data-ref.c: Likewise.
10143         * tree-dfa.c: Likewise.
10144         * tree-diagnostic.c: Likewise.
10145         * tree-dump.c: Likewise.
10146         * tree-eh.c: Likewise.
10147         * tree-emutls.c: Likewise.
10148         * tree-if-conv.c: Likewise.
10149         * tree-inline.c: Likewise.
10150         * tree-into-ssa.c: Likewise.
10151         * tree-iterator.c: Likewise.
10152         * tree-loop-distribution.c: Likewise.
10153         * tree-nested.c: Likewise.
10154         * tree-nrv.c: Likewise.
10155         * tree-object-size.c: Likewise.
10156         * tree-outof-ssa.c: Likewise.
10157         * tree-parloops.c: Likewise.
10158         * tree-phinodes.c: Likewise.
10159         * tree-predcom.c: Likewise.
10160         * tree-pretty-print.c: Likewise.
10161         * tree-profile.c: Likewise.
10162         * tree-scalar-evolution.c: Likewise.
10163         * tree-sra.c: Likewise.
10164         * tree-ssa-address.c: Likewise.
10165         * tree-ssa-alias.c: Likewise.
10166         * tree-ssa-ccp.c: Likewise.
10167         * tree-ssa-coalesce.c: Likewise.
10168         * tree-ssa-copy.c: Likewise.
10169         * tree-ssa-copyrename.c: Likewise.
10170         * tree-ssa-dce.c: Likewise.
10171         * tree-ssa-dom.c: Likewise.
10172         * tree-ssa-dse.c: Likewise.
10173         * tree-ssa-forwprop.c: Likewise.
10174         * tree-ssa-ifcombine.c: Likewise.
10175         * tree-ssa-live.c: Likewise.
10176         * tree-ssa-loop-ch.c: Likewise.
10177         * tree-ssa-loop-im.c: Likewise.
10178         * tree-ssa-loop-ivcanon.c: Likewise.
10179         * tree-ssa-loop-ivopts.c: Likewise.
10180         * tree-ssa-loop-manip.c: Likewise.
10181         * tree-ssa-loop-niter.c: Likewise.
10182         * tree-ssa-loop-prefetch.c: Likewise.
10183         * tree-ssa-loop-unswitch.c: Likewise.
10184         * tree-ssa-loop.c: Likewise.
10185         * tree-ssa-math-opts.c: Likewise.
10186         * tree-ssa-operands.c: Likewise.
10187         * tree-ssa-phiopt.c: Likewise.
10188         * tree-ssa-phiprop.c: Likewise.
10189         * tree-ssa-pre.c: Likewise.
10190         * tree-ssa-propagate.c: Likewise.
10191         * tree-ssa-reassoc.c: Likewise.
10192         * tree-ssa-sccvn.c: Likewise.
10193         * tree-ssa-scopedtables.c: Likewise.
10194         * tree-ssa-sink.c: Likewise.
10195         * tree-ssa-strlen.c: Likewise.
10196         * tree-ssa-structalias.c: Likewise.
10197         * tree-ssa-tail-merge.c: Likewise.
10198         * tree-ssa-ter.c: Likewise.
10199         * tree-ssa-threadedge.c: Likewise.
10200         * tree-ssa-threadupdate.c: Likewise.
10201         * tree-ssa-uncprop.c: Likewise.
10202         * tree-ssa-uninit.c: Likewise.
10203         * tree-ssa.c: Likewise.
10204         * tree-ssanames.c: Likewise.
10205         * tree-stdarg.c: Likewise.
10206         * tree-streamer-in.c: Likewise.
10207         * tree-streamer-out.c: Likewise.
10208         * tree-streamer.c: Likewise.
10209         * tree-switch-conversion.c: Likewise.
10210         * tree-tailcall.c: Likewise.
10211         * tree-vect-data-refs.c: Likewise.
10212         * tree-vect-generic.c: Likewise.
10213         * tree-vect-loop-manip.c: Likewise.
10214         * tree-vect-loop.c: Likewise.
10215         * tree-vect-patterns.c: Likewise.
10216         * tree-vect-slp.c: Likewise.
10217         * tree-vect-stmts.c: Likewise.
10218         * tree-vectorizer.c: Likewise.
10219         * tree-vrp.c: Likewise.
10220         * tree.c: Likewise.
10221         * tsan.c: Likewise.
10222         * ubsan.c: Likewise.
10223         * valtrack.c: Likewise.
10224         * value-prof.c: Likewise.
10225         * var-tracking.c: Likewise.
10226         * varasm.c: Likewise.
10227         * varpool.c: Likewise.
10228         * vmsdbgout.c: Likewise.
10229         * vtable-verify.c: Likewise.
10230         * web.c: Likewise.
10231         * wide-int.cc: Likewise.
10232         * xcoffout.c: Likewise.
10233         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
10234         * common/common-targhooks.c: Likewise.
10235         * config/aarch64/aarch64-builtins.c: Likewise.
10236         * config/aarch64/aarch64.c: Likewise.
10237         * config/alpha/alpha.c: Likewise.
10238         * config/arc/arc.c: Likewise.
10239         * config/arm/aarch-common.c: Likewise.
10240         * config/arm/arm-builtins.c: Likewise.
10241         * config/arm/arm-c.c: Likewise.
10242         * config/arm/arm.c: Likewise.
10243         * config/avr/avr-c.c: Likewise.
10244         * config/avr/avr-log.c: Likewise.
10245         * config/avr/avr.c: Likewise.
10246         * config/bfin/bfin.c: Likewise.
10247         * config/c6x/c6x.c: Likewise.
10248         * config/cr16/cr16.c: Likewise.
10249         * config/cris/cris.c: Likewise.
10250         * config/darwin-c.c: Likewise.
10251         * config/darwin.c: Likewise.
10252         * config/default-c.c: Likewise.
10253         * config/epiphany/epiphany.c: Likewise.
10254         * config/epiphany/mode-switch-use.c: Likewise.
10255         * config/epiphany/resolve-sw-modes.c: Likewise.
10256         * config/fr30/fr30.c: Likewise.
10257         * config/frv/frv.c: Likewise.
10258         * config/ft32/ft32.c: Likewise.
10259         * config/glibc-c.c: Likewise.
10260         * config/h8300/h8300.c: Likewise.
10261         * config/i386/i386-c.c: Likewise.
10262         * config/i386/i386.c: Likewise.
10263         * config/i386/msformat-c.c: Likewise.
10264         * config/i386/winnt-cxx.c: Likewise.
10265         * config/i386/winnt-stubs.c: Likewise.
10266         * config/i386/winnt.c: Likewise.
10267         * config/ia64/ia64-c.c: Likewise.
10268         * config/ia64/ia64.c: Likewise.
10269         * config/iq2000/iq2000.c: Likewise.
10270         * config/lm32/lm32.c: Likewise.
10271         * config/m32c/m32c-pragma.c: Likewise.
10272         * config/m32c/m32c.c: Likewise.
10273         * config/m32r/m32r.c: Likewise.
10274         * config/m68k/m68k.c: Likewise.
10275         * config/mcore/mcore.c: Likewise.
10276         * config/mep/mep-pragma.c: Likewise.
10277         * config/mep/mep.c: Likewise.
10278         * config/microblaze/microblaze-c.c: Likewise.
10279         * config/microblaze/microblaze.c: Likewise.
10280         * config/mips/mips.c: Likewise.
10281         * config/mmix/mmix.c: Likewise.
10282         * config/mn10300/mn10300.c: Likewise.
10283         * config/moxie/moxie.c: Likewise.
10284         * config/msp430/msp430-c.c: Likewise.
10285         * config/msp430/msp430.c: Likewise.
10286         * config/nds32/nds32-cost.c: Likewise.
10287         * config/nds32/nds32-fp-as-gp.c: Likewise.
10288         * config/nds32/nds32-intrinsic.c: Likewise.
10289         * config/nds32/nds32-isr.c: Likewise.
10290         * config/nds32/nds32-md-auxiliary.c: Likewise.
10291         * config/nds32/nds32-memory-manipulation.c: Likewise.
10292         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10293         * config/nds32/nds32-predicates.c: Likewise.
10294         * config/nds32/nds32.c: Likewise.
10295         * config/nios2/nios2.c: Likewise.
10296         * config/nvptx/nvptx.c: Likewise.
10297         * config/pa/pa.c: Likewise.
10298         * config/pdp11/pdp11.c: Likewise.
10299         * config/rl78/rl78-c.c: Likewise.
10300         * config/rl78/rl78.c: Likewise.
10301         * config/rs6000/rs6000-c.c: Likewise.
10302         * config/rs6000/rs6000.c: Likewise.
10303         * config/rx/rx.c: Likewise.
10304         * config/s390/s390-c.c: Likewise.
10305         * config/s390/s390.c: Likewise.
10306         * config/sh/sh-c.c: Likewise.
10307         * config/sh/sh-mem.cc: Likewise.
10308         * config/sh/sh.c: Likewise.
10309         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10310         * config/sh/sh_treg_combine.cc: Likewise.
10311         * config/sol2-c.c: Likewise.
10312         * config/sol2-cxx.c: Likewise.
10313         * config/sol2-stubs.c: Likewise.
10314         * config/sol2.c: Likewise.
10315         * config/sparc/sparc-c.c: Likewise.
10316         * config/sparc/sparc.c: Likewise.
10317         * config/spu/spu-c.c: Likewise.
10318         * config/spu/spu.c: Likewise.
10319         * config/stormy16/stormy16.c: Likewise.
10320         * config/tilegx/mul-tables.c: Likewise.
10321         * config/tilegx/tilegx-c.c: Likewise.
10322         * config/tilegx/tilegx.c: Likewise.
10323         * config/tilepro/mul-tables.c: Likewise.
10324         * config/tilepro/tilepro-c.c: Likewise.
10325         * config/tilepro/tilepro.c: Likewise.
10326         * config/v850/v850-c.c: Likewise.
10327         * config/v850/v850.c: Likewise.
10328         * config/vax/vax.c: Likewise.
10329         * config/visium/visium.c: Likewise.
10330         * config/vms/vms-c.c: Likewise.
10331         * config/vms/vms.c: Likewise.
10332         * config/vxworks.c: Likewise.
10333         * config/winnt-c.c: Likewise.
10334         * config/xtensa/xtensa.c: Likewise.
10336 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
10338         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
10339         function.
10340         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
10342 2015-06-17  Richard Biener  <rguenther@suse.de>
10344         PR tree-optimization/66251
10345         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
10346         stmts for SLP strided stores.
10348         Revert
10349         2015-05-22  Richard Biener  <rguenther@suse.de>
10351         PR tree-optimization/66251
10352         * tree-vect-stmts.c (vectorizable_conversion): Properly
10353         set STMT_VINFO_VEC_STMT even for the SLP case.
10355         2015-05-26  Michael Matz  <matz@suse.de>
10357         PR middle-end/66251
10358         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
10359         STMT_VINFO_VEC_STMT, also with SLP.
10361 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
10363         PR target/56766
10364         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
10365         (*avx_addsubv4df3_1s): Ditto.
10366         (*sse3_addsubv2df3_1): Ditto.
10367         (*sse3_addsubv2df3_1s): Ditto.
10368         (*avx_addsubv8sf3_1): Ditto.
10369         (*avx_addsubv8sf3_1s): Ditto.
10370         (*sse3_addsubv4sf3_1): Ditto.
10371         (*sse3_addsubv4sf3_1s): Ditto.
10373 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
10375         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
10376         (SYSROOT_SUFFIX_SPEC): Update.
10377         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
10378         (STARTFILE_PREFIX_SPEC): Update.
10379         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
10380         (MULTILIB_REQUIRED): New.
10381         (MULTILIB_OSDIRNAMES): New.
10382         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
10383         (MULTILIB_REQUIRED): New.
10384         (MULTILIB_OSDIRNAMES): New.
10386 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
10388         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
10389         * config/aarch64/aarch64-options-extensions.def: Update "fP",
10390         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
10391         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
10392         (AARCH64_FL_PAN): New.
10393         (AARCH64_FL_LOR): New.
10394         (AARCH64_FL_RDMA): New.
10395         (AARCH64_FL_FOR_ARCH8_1): New.
10396         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
10397         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
10399 2015-06-16  Martin Liska  <mliska@suse.cz>
10401         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
10402         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
10403         guard.
10405 2015-06-16  Richard Biener  <rguenther@suse.de>
10407         * tree-vect-stmts.c (vectorizable_store): Adjust.
10408         (vectorizable_load): Likewise.
10409         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10410         Simplify.
10411         (vect_create_data_ref_ptr): Likewise.
10412         (bump_vector_ptr): Adjust.
10414 2015-06-16  Richard Biener  <rguenther@suse.de>
10416         * tree-vect-stmts.c (vectorizable_load): Properly start loads
10417         with the first element if this is grouped loads.
10419 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
10421         * config/arm/arm-protos.h (struct tune_params): Rename
10422         log_op_non_sc to log_op_non_short_circuit, and rename enum
10423         values to expand SC to SHORT_CIRCUIT.
10424         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
10425         to LOG_OP_NON_SHORT_CIRCUIT.
10426         (arm_fastmul_tune):Likewise
10427         (arm_strongarm_tune): Likewise.
10428         (arm_xscale_tune): Likewise.
10429         (arm_9e_tune): Likewise.
10430         (arm_marvell_pj4_tune): Likewise.
10431         (arm_v6t2_tune): Likewise.
10432         (arm_cortex_tune): Likewise.
10433         (arm_cortex_a8_tune): Likewise.
10434         (arm_cortex_a7_tune): Likewise.
10435         (arm_cortex_a15_tune): Likewise.
10436         (arm_cortex_a53_tune): Likewise.
10437         (arm_cortex_a57_tune): Likewise.
10438         (arm_xgene1_tune): Likewise.
10439         (arm_cortex_a5_tune): Likewise.
10440         (arm_cortex_a9_tune): Likewise.
10441         (arm_cortex_a12_tune): Likewise.
10442         (arm_v7m_tune): Likewise.
10443         (arm_cortex_m7_tune): Likewise.
10444         (arm_v6m_tune): Likewise.
10445         (arm_fa726te_tune): Likewise.
10447 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
10449         * altivec.md: Delete UNSPEC_VMLADDUHM.
10450         (mulv4si3_p8): New pattern.
10451         (mulv4si3): Use it for POWER8.
10452         (mulv8hi3): Use vmladduhm with zero addend.
10453         (altivec_vmladduhm): Descriptive RTL.
10455 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
10457         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
10458         to use neon_move instead of mov_imm.
10459         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
10460         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
10462         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
10463         aarch64_float_const_zero_rtx_p check before TFmode check.
10464         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
10465         an fp zero.
10466         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
10467         code and attributes to match.  Change condition from register_operand
10468         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
10469         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
10470         to store2.
10472 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
10474         PR debug/66535
10475         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
10476         there is no parent.
10478 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
10480         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
10481         HOST_WIDE_INT parameter.
10483 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
10485         PR ipa/66181
10486         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
10487         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
10488         TYPE_NO_FORCE_BLK.
10489         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10491 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
10493         * rtl.h (classify_insn): Declare.
10494         * emit-rtl.c (classify_insn): Move to...
10495         * rtl.c: ...here and add generator support.
10496         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
10497         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
10498         * genemit.c (gen_emit_seq): New function.
10499         (gen_expand, gen_split): Use it.
10501 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
10503         * tree.c (make_vector_stat): Fix comment to state that the
10504         function returns a VECTOR_CST.
10506 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
10508         * gensupport.h (add_implicit_parallel): Declare.
10509         * genrecog.c (add_implicit_parallel): Move to...
10510         * gensupport.c (add_implicit_parallel): ...here.
10511         (process_one_cond_exec): Use it.
10512         * genemit.c (gen_insn): Likewise.
10514 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
10516         PR bootstrap/66448
10517         * passes.c (rest_of_decl_compilation): Do not register globals for
10518         early debug if they are declared in built-ins.
10520 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
10522         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
10524 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10526         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
10527         manually swapping.
10528         (noce_try_cmove_arith): Likewise.
10529         (noce_get_alt_condition): Likewise.
10531 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10533         * common/config/i386/i386-common.c
10534         (OPTION_MASK_ISA_MWAITX_SET): New.
10535         (ix86_handle_option): Handle mwaitx.
10536         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
10537         (x86_64-*-*): Likewise.
10538         * config/i386/mwaitxintrin.h: New header.
10539         * config/i386/cpuid.h (bit_MWAITX):  Define.
10540         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10541         MWAITX support.
10542         * config/i386/i386.opt (mwaitx): New.
10543         * config/i386/i386-builtin-types.def
10544         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
10545         * config/i386/i386-c.c: Define __MWAITX__ if needed.
10546         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
10547         (PTA_MWAITX): New.
10548         (ix86_option_override_internal): Handle new option.
10549         (processor_alias_table): Added PTA_MWAITX.
10550         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
10551         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
10552         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
10553         IX86_BUILTIN_MONITORX  built-ins.
10554         * config/i386/i386.h (TARGET_MWAITX): New.
10555         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
10556         UNSPEC_MONITORX.
10557         (mwaitx):  New pattern.
10558         (monitorx_<mode>): New pattern.
10559         * config/i386/x86intrin.h: Include mwaitxintrin.h.
10560         * doc/extend.texi: Document monitorx and mwaitx builtins.
10561         * doc/invoke.texi: Document -mmwaitx option.
10563 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
10565         * emit-rtl.c (need_atomic_barrier_p): Mask model with
10566         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
10568 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10570         * dbxout.c (xcoff_debug_hooks): Provide a function for
10571         register_main_translation_unit hook.
10573 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10575         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
10576         variants cases from switch.
10577         (rs6000_post_atomic_barrier): Same.
10578         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
10579         (rs6000_expand_atomic_exchange): Same.
10580         (rs6000_expand_atomic_op): Same.
10581         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
10582         SYNC variants cases from switch.
10583         (atomic_load): Same.
10584         (atomic_store): Same.
10586 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
10588         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
10589         CONST_INT for goto.
10591 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
10593         PR bootstrap/66448
10594         * dwarf2out.c (check_die): Check for common duplicate attributes.
10595         (add_location_or_const_value_attribute): Do not add duplicate
10596         attributes.
10597         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
10598         time around.
10599         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
10600         (gen_type_die_with_usage): Call check_die.
10601         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
10603 2015-06-11  Jason Merrill  <jason@redhat.com>
10605         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
10606         dies.
10608 2015-06-11  Marek Polacek  <polacek@redhat.com>
10610         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
10612 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10614         PR bootstrap/66252
10615         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
10616         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
10617         (*addx_extend_sp32): Fix pasto.
10618         (*subx_extend): Rename into...
10619         (*subx_extend_sp32): ...this.
10620         (*adddi3_extend_sp32): Add earlyclobber.
10621         (*subdi3_insn_sp32): Likewise.
10622         (*subdi3_extend_sp32): Likewise.
10623         (*and_not_di_sp32): Likewise.
10624         (*or_not_di_sp32): Likewise.
10625         (*xor_not_di_sp32): Likewise.
10626         (*negdi2_sp32): Likewise.
10627         (*one_cmpldi2_sp32): Likewise.
10629 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
10631         * debug.h (struct gcc_debug_hooks): Add a
10632         register_main_translation_unit hook.
10633         * debug.c (do_nothing_debug_hooks): Provide a function for this
10634         new hook.
10635         * dbxout.c (dbx_debug_hooks): Likewise.
10636         * sdbout.c (sdb_debug_hooks): Likewise.
10637         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10638         * dwarf2out.c (main_translation_unit): New global variable.
10639         (dwarf2out_register_main_translation_unit): New function
10640         implementing the new hook.
10641         (dwarf2_debug_hooks): Assign
10642         dwarf2out_register_main_translation_unit to this new hook.
10643         (dwarf2out_init): Associate any main translation unit to
10644         comp_unit_die ().
10646 2015-06-11  Marek Polacek  <polacek@redhat.com>
10648         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
10650 2015-06-11  Marek Polacek  <polacek@redhat.com>
10652         * match.pd: Use single_use throughout.
10654 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10656         * config/arm/arm.c (arm_option_params_internal): When optimising
10657         for speed set max_insns_skipped when arm_restrict_it.
10659 2015-06-11  Christian Bruel  <christian.bruel@st.com>
10661         PR target/52144
10662         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
10663          macros in ...
10664         (arm_cpu_builtins): New function.
10665         (arm_pragma_target_parse): Call arm_cpu_builtins.
10666         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
10667         (arm_register_target_pragmas): Likewise.
10668         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
10669          Call arm_register_target_pragmas.
10670         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
10671         (arm_pragma_target_parse): Likewise.
10673 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10675         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
10676         of the second operand.
10678 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
10680         PR target/66473
10681         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
10682         to prepare mask operand for AVX512 modes.
10684 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
10686         PR target/66474
10687         * doc/md.texi (Machine Constraints): Document that on the PowerPC
10688         if you use a constraint that targets a VSX register, you must use
10689         %x<n> in the template.
10691 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
10693         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
10694         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
10695         (define_insn "trap"): New definition.
10697 2015-06-10  Richard Biener  <rguenther@suse.de>
10699         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
10700         out from ...
10701         (vect_supported_load_permutation_p): ... here.  Handle
10702         supportable permutations in reductions.
10703         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
10704         for vectorizing strided group loads.
10706 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
10708         PR target/66470
10709         * config/i386/i386.c (ix86_split_long_move): For collisions
10710         involving direct tls segment refs, move the UNSPEC_TP possibly
10711         wrapped in ZERO_EXTEND out of the address for lea, to each of
10712         the memory loads.
10714 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10716         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
10717         dmb sy. Adjust tabs.
10719 2015-06-10  Tom de Vries  <tom@codesourcery.com>
10721         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
10723 2015-06-10  Martin Liska  <mliska@suse.cz>
10725         PR bootstrap/66471
10726         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
10727         all enum values in mem_alloc_origin.
10728         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
10729         name.
10730         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
10731         * bitmap.c (bitmap_register): Likewise.
10732         (dump_bitmap_statistics): Likewise.
10733         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
10734         (ggc_record_overhead): Likewise.
10735         * hash-map.h: Likewise.
10736         * hash-set.h: Likewise.
10737         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
10738         * hash-table.h: Likewise.
10739         * vec.c (vec_prefix::register_overhead): Likewise.
10740         (vec_prefix::release_overhead): Likewise.
10741         (dump_vec_loc_statistics): Likewise.
10743 2015-06-09  Christian Bruel  <christian.bruel@st.com>
10745         PR target/52144
10746         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
10747         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
10748         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
10749         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
10750         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
10751         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
10752         (arm_valid_target_attribute_p): Likewise.
10753         (arm_set_current_function, arm_can_inline_p): Likewise.
10754         (arm_valid_target_attribute_rec): Likewise.
10755         (arm_previous_fndecl): New variable.
10756         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10757         (TARGET_CAN_INLINE_P): Define.
10758         (arm_asm_trampoline_template): Emit mode.
10759         (arm_file_start): Don't set unified syntax.
10760         (arm_declare_function_name): Set unified syntax and mode.
10761         (arm_option_override): Init target_option_default_node.
10762         and target_option_current_node.
10763         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
10764         (*call_symbol): Likewise.
10765         * doc/extend.texi: Document ARM/Thumb target attribute.
10766         * doc/invoke.texi: Likewise.
10768 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10770         Revert:
10771         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10772         PR rtl-optimization/64164
10773         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10774         * tree-ssa-copyrename.c: Removed.
10775         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10776         -ftree-coalesce-vars.
10777         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10778         * common.opt (ftree-copyrename): Ignore.
10779         (ftree-coalesce-inlined-vars): Likewise.
10780         * doc/invoke.texi: Remove the ignored options above.
10781         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10782         * tree-ssa-coalesce.h: ... here.
10783         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10784         headers required by it.
10785         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10786         across variables when flag_tree_coalesce_vars.  Check register
10787         use and promoted modes to allow coalescing.  Moved to
10788         tree-ssa-coalesce.c.
10789         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10790         with its member functions to tree-ssa-coalesce.c.
10791         (var_map_base_init): Likewise.  Renamed to
10792         compute_samebase_partition_bases.
10793         (partition_view_normal): Drop want_bases parameter.
10794         (partition_view_bitmap): Likewise.
10795         * tree-ssa-live.h: Adjust declarations.
10796         * tree-ssa-coalesce.c: Include explow.h.
10797         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10798         default defs at the entry point.
10799         (dump_part_var_map): New.
10800         (compute_optimized_partition_bases): New, called by...
10801         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10802         of compute_samebase_partition_bases.  Adjust.
10803         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10804         * cfgexpand.c (leader_merge): New.
10805         (get_rtl_for_parm_ssa_default_def): New.
10806         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10807         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10808         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10809         redundant MEM attr setting.
10810         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10811         from...
10812         (expand_one_stack_var): ... this.  New wrapper to check and
10813         skip already expanded SSA partitions.
10814         (record_alignment_for_reg_var): New, factored out of...
10815         (expand_one_var): ... this.
10816         (expand_one_ssa_partition): New.
10817         (adjust_one_expanded_partition_var): New.
10818         (expand_one_register_var): Check and skip already expanded SSA
10819         partitions.
10820         (expand_used_vars): Don't create DECLs for anonymous SSA
10821         names.  Expand all SSA partitions, then adjust all SSA names.
10822         (pass::execute): Replace the loops that set
10823         SA.partition_to_pseudo from partition leaders and cleared
10824         DECL_RTL for multi-location variables, and that which used to
10825         rename vars and set attrs, with one that clears DECL_RTL and
10826         checks that PARMs and RESULTs default_defs match DECL_RTL.
10827         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10828         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10829         * explow.c (promote_ssa_mode): New.
10830         * explow.h (promote_ssa_mode): Declare.
10831         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10832         * function.c: Include cfgexpand.h.
10833         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10834         (use_register_for_parm_decl): Wrapper for the above to
10835         special-case the result_ptr.
10836         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10837         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10838         multiple locations.
10839         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10840         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10841         (assign_parm_setup_block): Prefer SSA-assigned location.
10842         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10843         if stack_parm is NULL.
10844         (assign_parm_setup_stack): Prefer SSA-assigned location.
10845         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10846         rtl before testing for pointer bounds.  Special-case result_ptr.
10847         (expand_function_start): Maybe reset DECL_RTL of result.
10848         Prefer SSA-assigned location for result and static chain.
10849         Factor out DECL_RESULT and SET_DECL_RTL.
10850         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10851         anonymous SSA names.  Use promote_ssa_mode.
10852         (get_temp_reg): Likewise.
10853         (remove_ssa_form): Adjust.
10854         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10855         and get its reg_usage for reg invalidation.
10856         (compute_bb_dataflow): Pass it insn.
10857         (emit_notes_in_bb): Likewise.
10858         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10859         fail assert on conversion between unsigned types.
10861 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10863         PR tree-optimization/65460
10864         * omp-low.c (expand_omp_target): Set parallelized_function on
10865         cgraph_node for child_fn.
10867 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10869         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
10870         parallelized_function before add_new_function.
10872 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
10874         * gcc-plugin.h: Move decls to plugin.h and include it.
10875         * plugin.h: Relocate decls from gcc-plugin.h
10876         * ggc-page.c: Include required header files.
10877         * passes.c: Likewise.
10878         * cgraphunit.c: Likewise.
10880 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10882         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
10884 2015-06-09  Jason Merrill  <jason@redhat.com>
10886         PR bootstrap/66448
10887         * toplev.c (check_global_declaration): Don't warn about a clone.
10889 2015-06-09  Marek Polacek  <polacek@redhat.com>
10891         PR tree-optimization/66299
10892         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
10893         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
10894         patterns.
10896 2015-06-09  Richard Biener  <rguenther@suse.de>
10898         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
10899         (vect_analyze_slp_instance): Instead do not falsely drop
10900         load permutations.
10902 2015-06-09  Richard Biener  <rguenther@suse.de>
10904         PR middle-end/66423
10905         * match.pd: Handle A % (unsigned)(1 << B).
10907 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
10909         * varasm.c (output_object_block_htab): Remove.
10910         (output_object_block_compare): New.
10911         (output_object_blocks): Sort named object_blocks before outputting
10912         them.
10914 2015-06-09  Richard Biener  <rguenther@suse.de>
10916         PR tree-optimization/66419
10917         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
10918         consider GROUP_GAP when detecting a perfect subchain.
10920 2015-06-09  Nick Clifton  <nickc@redhat.com>
10922         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
10923         place read only data in the .frodata section.
10925 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
10927         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
10928         (atomic_store<mode>): Likewise.
10930 2015-06-09  Richard Biener  <rguenther@suse.de>
10932         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
10934 2015-06-09  Richard Biener  <rguenther@suse.de>
10936         PR middle-end/66413
10937         * tree-inline.c (insert_init_debug_bind): Unshare value.
10939 2015-06-09  Richard Biener  <rguenther@suse.de>
10941         PR tree-optimization/66396
10942         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
10943         Rename virtual operands.
10945 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10947         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
10948         always return false.
10950 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10952         PR rtl-optimization/64164
10953         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10954         * tree-ssa-copyrename.c: Removed.
10955         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10956         -ftree-coalesce-vars.
10957         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10958         * common.opt (ftree-copyrename): Ignore.
10959         (ftree-coalesce-inlined-vars): Likewise.
10960         * doc/invoke.texi: Remove the ignored options above.
10961         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10962         * tree-ssa-coalesce.h: ... here.
10963         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10964         headers required by it.
10965         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10966         across variables when flag_tree_coalesce_vars.  Check register
10967         use and promoted modes to allow coalescing.  Moved to
10968         tree-ssa-coalesce.c.
10969         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10970         with its member functions to tree-ssa-coalesce.c.
10971         (var_map_base_init): Likewise.  Renamed to
10972         compute_samebase_partition_bases.
10973         (partition_view_normal): Drop want_bases parameter.
10974         (partition_view_bitmap): Likewise.
10975         * tree-ssa-live.h: Adjust declarations.
10976         * tree-ssa-coalesce.c: Include explow.h.
10977         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10978         default defs at the entry point.
10979         (dump_part_var_map): New.
10980         (compute_optimized_partition_bases): New, called by...
10981         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10982         of compute_samebase_partition_bases.  Adjust.
10983         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10984         * cfgexpand.c (leader_merge): New.
10985         (get_rtl_for_parm_ssa_default_def): New.
10986         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10987         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10988         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10989         redundant MEM attr setting.
10990         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10991         from...
10992         (expand_one_stack_var): ... this.  New wrapper to check and
10993         skip already expanded SSA partitions.
10994         (record_alignment_for_reg_var): New, factored out of...
10995         (expand_one_var): ... this.
10996         (expand_one_ssa_partition): New.
10997         (adjust_one_expanded_partition_var): New.
10998         (expand_one_register_var): Check and skip already expanded SSA
10999         partitions.
11000         (expand_used_vars): Don't create DECLs for anonymous SSA
11001         names.  Expand all SSA partitions, then adjust all SSA names.
11002         (pass::execute): Replace the loops that set
11003         SA.partition_to_pseudo from partition leaders and cleared
11004         DECL_RTL for multi-location variables, and that which used to
11005         rename vars and set attrs, with one that clears DECL_RTL and
11006         checks that PARMs and RESULTs default_defs match DECL_RTL.
11007         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11008         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11009         * explow.c (promote_ssa_mode): New.
11010         * explow.h (promote_ssa_mode): Declare.
11011         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11012         * function.c: Include cfgexpand.h.
11013         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11014         (use_register_for_parm_decl): Wrapper for the above to
11015         special-case the result_ptr.
11016         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11017         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11018         multiple locations.
11019         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11020         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11021         (assign_parm_setup_block): Prefer SSA-assigned location.
11022         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11023         if stack_parm is NULL.
11024         (assign_parm_setup_stack): Prefer SSA-assigned location.
11025         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11026         rtl before testing for pointer bounds.  Special-case result_ptr.
11027         (expand_function_start): Maybe reset DECL_RTL of result.
11028         Prefer SSA-assigned location for result and static chain.
11029         Factor out DECL_RESULT and SET_DECL_RTL.
11030         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11031         anonymous SSA names.  Use promote_ssa_mode.
11032         (get_temp_reg): Likewise.
11033         (remove_ssa_form): Adjust.
11034         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11035         and get its reg_usage for reg invalidation.
11036         (compute_bb_dataflow): Pass it insn.
11037         (emit_notes_in_bb): Likewise.
11038         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11039         fail assert on conversion between unsigned types.
11041 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
11043         PR debug/58315
11044         * tree-inline.c (reset_debug_binding): New.
11045         (reset_debug_bindings): Likewise.
11046         (expand_call_inline): Call it.
11048 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11050         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
11051         TYPE_STRING_FLAG.
11053 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11055         * lto-streamer-out.c (lto_output_location): Stream
11056         reserved locations correctly.
11057         * lto-streamer-in.c (lto_output_location): Likewise.
11059 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
11061         * coretypes.h: Include hash-table.h and hash-set.h for host files.
11062         * ggc.h: Don't include statistics.h>
11063         * hash-map.h: Remove all includes.
11064         * hash-set.h: Likewise.
11065         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
11066         the include list. Remove <new>.
11067         * inchash.h: Remove all includes.
11068         * mem-stats.h: Likewise.
11069         * vec.h: No special processing for generators or ggc.
11070         * alias.c : Adjust include files.
11071         * alloc-pool.c : Likewise.
11072         * alloc-pool.h : Likewise.
11073         * asan.c : Likewise.
11074         * attribs.c : Likewise.
11075         * auto-inc-dec.c : Likewise.
11076         * auto-profile.c : Likewise.
11077         * bb-reorder.c : Likewise.
11078         * bitmap.c : Likewise.
11079         * bitmap.h : Likewise.
11080         * bt-load.c : Likewise.
11081         * builtins.c : Likewise.
11082         * caller-save.c : Likewise.
11083         * calls.c : Likewise.
11084         * ccmp.c : Likewise.
11085         * cfg.c : Likewise.
11086         * cfganal.c : Likewise.
11087         * cfgbuild.c : Likewise.
11088         * cfgcleanup.c : Likewise.
11089         * cfgexpand.c : Likewise.
11090         * cfghooks.c : Likewise.
11091         * cfgloop.c : Likewise.
11092         * cfgloop.h : Likewise.
11093         * cfgloopanal.c : Likewise.
11094         * cfgloopmanip.c : Likewise.
11095         * cfgrtl.c : Likewise.
11096         * cgraph.c : Likewise.
11097         * cgraphbuild.c : Likewise.
11098         * cgraphclones.c : Likewise.
11099         * cgraphunit.c : Likewise.
11100         * cilk-common.c : Likewise.
11101         * combine-stack-adj.c : Likewise.
11102         * combine.c : Likewise.
11103         * compare-elim.c : Likewise.
11104         * context.c : Likewise.
11105         * convert.c : Likewise.
11106         * coverage.c : Likewise.
11107         * cppbuiltin.c : Likewise.
11108         * cprop.c : Likewise.
11109         * cse.c : Likewise.
11110         * cselib.c : Likewise.
11111         * data-streamer-in.c : Likewise.
11112         * data-streamer-out.c : Likewise.
11113         * data-streamer.c : Likewise.
11114         * data-streamer.h : Likewise.
11115         * dbxout.c : Likewise.
11116         * dce.c : Likewise.
11117         * ddg.c : Likewise.
11118         * debug.c : Likewise.
11119         * df-core.c : Likewise.
11120         * df-problems.c : Likewise.
11121         * df-scan.c : Likewise.
11122         * df.h : Likewise.
11123         * dfp.c : Likewise.
11124         * dojump.c : Likewise.
11125         * dominance.c : Likewise.
11126         * domwalk.c : Likewise.
11127         * double-int.c : Likewise.
11128         * dse.c : Likewise.
11129         * dumpfile.c : Likewise.
11130         * dwarf2asm.c : Likewise.
11131         * dwarf2cfi.c : Likewise.
11132         * dwarf2out.c : Likewise.
11133         * emit-rtl.c : Likewise.
11134         * et-forest.c : Likewise.
11135         * except.c : Likewise.
11136         * except.h : Likewise.
11137         * explow.c : Likewise.
11138         * expmed.c : Likewise.
11139         * expr.c : Likewise.
11140         * final.c : Likewise.
11141         * fixed-value.c : Likewise.
11142         * fold-const.c : Likewise.
11143         * function.c : Likewise.
11144         * fwprop.c : Likewise.
11145         * gcc-plugin.h : Likewise.
11146         * gcc.c : Likewise.
11147         * gcse-common.c : Likewise.
11148         * gcse.c : Likewise.
11149         * genattrtab.c : Likewise.
11150         * genautomata.c : Likewise.
11151         * genconditions.c : Likewise.
11152         * genemit.c : Likewise.
11153         * generic-match-head.c : Likewise.
11154         * genextract.c : Likewise.
11155         * gengtype-state.c : Likewise.
11156         * gengtype.c : Likewise.
11157         * genhooks.c : Likewise.
11158         * genmatch.c : Likewise.
11159         * genmodes.c : Likewise.
11160         * genrecog.c : Likewise.
11161         * gensupport.c : Likewise.
11162         * ggc-common.c : Likewise.
11163         * ggc-internal.h : Likewise.
11164         * ggc-none.c : Likewise.
11165         * ggc-page.c : Likewise.
11166         * gimple-builder.c : Likewise.
11167         * gimple-expr.c : Likewise.
11168         * gimple-fold.c : Likewise.
11169         * gimple-iterator.c : Likewise.
11170         * gimple-low.c : Likewise.
11171         * gimple-match-head.c : Likewise.
11172         * gimple-pretty-print.c : Likewise.
11173         * gimple-ssa-isolate-paths.c : Likewise.
11174         * gimple-ssa-strength-reduction.c : Likewise.
11175         * gimple-ssa.h : Likewise.
11176         * gimple-streamer-in.c : Likewise.
11177         * gimple-streamer-out.c : Likewise.
11178         * gimple-streamer.h : Likewise.
11179         * gimple-walk.c : Likewise.
11180         * gimple.c : Likewise.
11181         * gimplify-me.c : Likewise.
11182         * gimplify.c : Likewise.
11183         * godump.c : Likewise.
11184         * graph.c : Likewise.
11185         * graphds.c : Likewise.
11186         * graphite-blocking.c : Likewise.
11187         * graphite-dependences.c : Likewise.
11188         * graphite-interchange.c : Likewise.
11189         * graphite-isl-ast-to-gimple.c : Likewise.
11190         * graphite-optimize-isl.c : Likewise.
11191         * graphite-poly.c : Likewise.
11192         * graphite-scop-detection.c : Likewise.
11193         * graphite-sese-to-poly.c : Likewise.
11194         * graphite.c : Likewise.
11195         * haifa-sched.c : Likewise.
11196         * hard-reg-set.h : Likewise.
11197         * hw-doloop.c : Likewise.
11198         * ifcvt.c : Likewise.
11199         * inchash.c : Likewise.
11200         * incpath.c : Likewise.
11201         * init-regs.c : Likewise.
11202         * input.c : Likewise.
11203         * internal-fn.c : Likewise.
11204         * ipa-chkp.c : Likewise.
11205         * ipa-comdats.c : Likewise.
11206         * ipa-cp.c : Likewise.
11207         * ipa-devirt.c : Likewise.
11208         * ipa-icf-gimple.c : Likewise.
11209         * ipa-icf.c : Likewise.
11210         * ipa-inline-analysis.c : Likewise.
11211         * ipa-inline-transform.c : Likewise.
11212         * ipa-inline.c : Likewise.
11213         * ipa-polymorphic-call.c : Likewise.
11214         * ipa-profile.c : Likewise.
11215         * ipa-prop.c : Likewise.
11216         * ipa-pure-const.c : Likewise.
11217         * ipa-ref.c : Likewise.
11218         * ipa-reference.c : Likewise.
11219         * ipa-split.c : Likewise.
11220         * ipa-utils.c : Likewise.
11221         * ipa-visibility.c : Likewise.
11222         * ipa.c : Likewise.
11223         * ira-build.c : Likewise.
11224         * ira-color.c : Likewise.
11225         * ira-conflicts.c : Likewise.
11226         * ira-costs.c : Likewise.
11227         * ira-emit.c : Likewise.
11228         * ira-lives.c : Likewise.
11229         * ira.c : Likewise.
11230         * jump.c : Likewise.
11231         * langhooks.c : Likewise.
11232         * lcm.c : Likewise.
11233         * libfuncs.h : Likewise.
11234         * lists.c : Likewise.
11235         * loop-doloop.c : Likewise.
11236         * loop-init.c : Likewise.
11237         * loop-invariant.c : Likewise.
11238         * loop-iv.c : Likewise.
11239         * loop-unroll.c : Likewise.
11240         * lower-subreg.c : Likewise.
11241         * lra-assigns.c : Likewise.
11242         * lra-coalesce.c : Likewise.
11243         * lra-constraints.c : Likewise.
11244         * lra-eliminations.c : Likewise.
11245         * lra-lives.c : Likewise.
11246         * lra-remat.c : Likewise.
11247         * lra-spills.c : Likewise.
11248         * lra.c : Likewise.
11249         * lto-cgraph.c : Likewise.
11250         * lto-compress.c : Likewise.
11251         * lto-opts.c : Likewise.
11252         * lto-section-in.c : Likewise.
11253         * lto-section-out.c : Likewise.
11254         * lto-streamer-in.c : Likewise.
11255         * lto-streamer-out.c : Likewise.
11256         * lto-streamer.c : Likewise.
11257         * lto-streamer.h : Likewise.
11258         * mcf.c : Likewise.
11259         * mode-switching.c : Likewise.
11260         * modulo-sched.c : Likewise.
11261         * omega.c : Likewise.
11262         * omp-low.c : Likewise.
11263         * optabs.c : Likewise.
11264         * opts-global.c : Likewise.
11265         * opts.h : Likewise.
11266         * passes.c : Likewise.
11267         * plugin.c : Likewise.
11268         * postreload-gcse.c : Likewise.
11269         * postreload.c : Likewise.
11270         * predict.c : Likewise.
11271         * print-rtl.c : Likewise.
11272         * print-tree.c : Likewise.
11273         * profile.c : Likewise.
11274         * read-md.c : Likewise.
11275         * read-md.h : Likewise.
11276         * read-rtl.c : Likewise.
11277         * real.c : Likewise.
11278         * realmpfr.c : Likewise.
11279         * recog.c : Likewise.
11280         * ree.c : Likewise.
11281         * reg-stack.c : Likewise.
11282         * regcprop.c : Likewise.
11283         * reginfo.c : Likewise.
11284         * regrename.c : Likewise.
11285         * regstat.c : Likewise.
11286         * reload.c : Likewise.
11287         * reload1.c : Likewise.
11288         * reorg.c : Likewise.
11289         * resource.c : Likewise.
11290         * rtl-chkp.c : Likewise.
11291         * rtl.c : Likewise.
11292         * rtl.h : Likewise.
11293         * rtlanal.c : Likewise.
11294         * rtlhash.c : Likewise.
11295         * rtlhash.h : Likewise.
11296         * rtlhooks.c : Likewise.
11297         * sanopt.c : Likewise.
11298         * sched-deps.c : Likewise.
11299         * sched-ebb.c : Likewise.
11300         * sched-rgn.c : Likewise.
11301         * sched-vis.c : Likewise.
11302         * sdbout.c : Likewise.
11303         * sel-sched-dump.c : Likewise.
11304         * sel-sched-ir.c : Likewise.
11305         * sel-sched-ir.h : Likewise.
11306         * sel-sched.c : Likewise.
11307         * sese.c : Likewise.
11308         * shrink-wrap.c : Likewise.
11309         * shrink-wrap.h : Likewise.
11310         * simplify-rtx.c : Likewise.
11311         * stack-ptr-mod.c : Likewise.
11312         * statistics.c : Likewise.
11313         * stmt.c : Likewise.
11314         * stor-layout.c : Likewise.
11315         * store-motion.c : Likewise.
11316         * stringpool.c : Likewise.
11317         * symtab.c : Likewise.
11318         * target-globals.c : Likewise.
11319         * targhooks.c : Likewise.
11320         * tlink.c : Likewise.
11321         * toplev.c : Likewise.
11322         * tracer.c : Likewise.
11323         * trans-mem.c : Likewise.
11324         * tree-affine.c : Likewise.
11325         * tree-affine.h : Likewise.
11326         * tree-browser.c : Likewise.
11327         * tree-call-cdce.c : Likewise.
11328         * tree-cfg.c : Likewise.
11329         * tree-cfgcleanup.c : Likewise.
11330         * tree-chkp-opt.c : Likewise.
11331         * tree-chkp.c : Likewise.
11332         * tree-chrec.c : Likewise.
11333         * tree-complex.c : Likewise.
11334         * tree-data-ref.c : Likewise.
11335         * tree-dfa.c : Likewise.
11336         * tree-diagnostic.c : Likewise.
11337         * tree-dump.c : Likewise.
11338         * tree-eh.c : Likewise.
11339         * tree-eh.h : Likewise.
11340         * tree-emutls.c : Likewise.
11341         * tree-hasher.h : Likewise.
11342         * tree-if-conv.c : Likewise.
11343         * tree-inline.c : Likewise.
11344         * tree-inline.h : Likewise.
11345         * tree-into-ssa.c : Likewise.
11346         * tree-iterator.c : Likewise.
11347         * tree-loop-distribution.c : Likewise.
11348         * tree-nested.c : Likewise.
11349         * tree-nrv.c : Likewise.
11350         * tree-object-size.c : Likewise.
11351         * tree-outof-ssa.c : Likewise.
11352         * tree-parloops.c : Likewise.
11353         * tree-phinodes.c : Likewise.
11354         * tree-predcom.c : Likewise.
11355         * tree-pretty-print.c : Likewise.
11356         * tree-profile.c : Likewise.
11357         * tree-scalar-evolution.c : Likewise.
11358         * tree-sra.c : Likewise.
11359         * tree-ssa-address.c : Likewise.
11360         * tree-ssa-alias.c : Likewise.
11361         * tree-ssa-ccp.c : Likewise.
11362         * tree-ssa-coalesce.c : Likewise.
11363         * tree-ssa-copy.c : Likewise.
11364         * tree-ssa-copyrename.c : Likewise.
11365         * tree-ssa-dce.c : Likewise.
11366         * tree-ssa-dom.c : Likewise.
11367         * tree-ssa-dse.c : Likewise.
11368         * tree-ssa-forwprop.c : Likewise.
11369         * tree-ssa-ifcombine.c : Likewise.
11370         * tree-ssa-live.c : Likewise.
11371         * tree-ssa-loop-ch.c : Likewise.
11372         * tree-ssa-loop-im.c : Likewise.
11373         * tree-ssa-loop-ivcanon.c : Likewise.
11374         * tree-ssa-loop-ivopts.c : Likewise.
11375         * tree-ssa-loop-manip.c : Likewise.
11376         * tree-ssa-loop-niter.c : Likewise.
11377         * tree-ssa-loop-prefetch.c : Likewise.
11378         * tree-ssa-loop-unswitch.c : Likewise.
11379         * tree-ssa-loop.c : Likewise.
11380         * tree-ssa-math-opts.c : Likewise.
11381         * tree-ssa-operands.c : Likewise.
11382         * tree-ssa-phiopt.c : Likewise.
11383         * tree-ssa-phiprop.c : Likewise.
11384         * tree-ssa-pre.c : Likewise.
11385         * tree-ssa-propagate.c : Likewise.
11386         * tree-ssa-reassoc.c : Likewise.
11387         * tree-ssa-sccvn.c : Likewise.
11388         * tree-ssa-scopedtables.c : Likewise.
11389         * tree-ssa-sink.c : Likewise.
11390         * tree-ssa-strlen.c : Likewise.
11391         * tree-ssa-structalias.c : Likewise.
11392         * tree-ssa-tail-merge.c : Likewise.
11393         * tree-ssa-ter.c : Likewise.
11394         * tree-ssa-threadedge.c : Likewise.
11395         * tree-ssa-threadupdate.c : Likewise.
11396         * tree-ssa-uncprop.c : Likewise.
11397         * tree-ssa-uninit.c : Likewise.
11398         * tree-ssa.c : Likewise.
11399         * tree-ssanames.c : Likewise.
11400         * tree-stdarg.c : Likewise.
11401         * tree-streamer-in.c : Likewise.
11402         * tree-streamer-out.c : Likewise.
11403         * tree-streamer.c : Likewise.
11404         * tree-streamer.h : Likewise.
11405         * tree-switch-conversion.c : Likewise.
11406         * tree-tailcall.c : Likewise.
11407         * tree-vect-data-refs.c : Likewise.
11408         * tree-vect-generic.c : Likewise.
11409         * tree-vect-loop-manip.c : Likewise.
11410         * tree-vect-loop.c : Likewise.
11411         * tree-vect-patterns.c : Likewise.
11412         * tree-vect-slp.c : Likewise.
11413         * tree-vect-stmts.c : Likewise.
11414         * tree-vectorizer.c : Likewise.
11415         * tree-vectorizer.h : Likewise.
11416         * tree-vrp.c : Likewise.
11417         * tree.c : Likewise.
11418         * tsan.c : Likewise.
11419         * ubsan.c : Likewise.
11420         * valtrack.c : Likewise.
11421         * valtrack.h : Likewise.
11422         * value-prof.c : Likewise.
11423         * var-tracking.c : Likewise.
11424         * varasm.c : Likewise.
11425         * varpool.c : Likewise.
11426         * vec.c: Likewise.
11427         * vmsdbgout.c : Likewise.
11428         * vtable-verify.c : Likewise.
11429         * vtable-verify.h : Likewise.
11430         * web.c : Likewise.
11431         * wide-int.cc : Likewise.
11432         * xcoffout.c : Likewise.
11433         * config/aarch64/aarch64-builtins.c : Likewise.
11434         * config/aarch64/aarch64.c : Likewise.
11435         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
11436         * config/alpha/alpha.c : Likewise.
11437         * config/arc/arc.c : Likewise.
11438         * config/arm/aarch-common.c : Likewise.
11439         * config/arm/arm-builtins.c : Likewise.
11440         * config/arm/arm-c.c : Likewise.
11441         * config/arm/arm.c : Likewise.
11442         * config/avr/avr-c.c : Likewise.
11443         * config/avr/avr-log.c : Likewise.
11444         * config/avr/avr.c : Likewise.
11445         * config/bfin/bfin.c : Likewise.
11446         * config/c6x/c6x.c : Likewise.
11447         * config/cr16/cr16.c : Likewise.
11448         * config/cris/cris.c : Likewise.
11449         * config/darwin-c.c : Likewise.
11450         * config/darwin.c : Likewise.
11451         * config/default-c.c : Likewise.
11452         * config/epiphany/epiphany.c : Likewise.
11453         * config/epiphany/mode-switch-use.c : Likewise.
11454         * config/epiphany/resolve-sw-modes.c : Likewise.
11455         * config/fr30/fr30.c : Likewise.
11456         * config/frv/frv.c : Likewise.
11457         * config/ft32/ft32.c : Likewise.
11458         * config/glibc-c.c : Likewise.
11459         * config/h8300/h8300.c : Likewise.
11460         * config/i386/i386-c.c : Likewise.
11461         * config/i386/i386.c : Likewise.
11462         * config/i386/msformat-c.c : Likewise.
11463         * config/i386/winnt-cxx.c : Likewise.
11464         * config/i386/winnt-stubs.c : Likewise.
11465         * config/i386/winnt.c : Likewise.
11466         * config/ia64/ia64-c.c : Likewise.
11467         * config/ia64/ia64.c : Likewise.
11468         * config/iq2000/iq2000.c : Likewise.
11469         * config/lm32/lm32.c : Likewise.
11470         * config/m32c/m32c-pragma.c : Likewise.
11471         * config/m32c/m32c.c : Likewise.
11472         * config/m32r/m32r.c : Likewise.
11473         * config/m68k/m68k.c : Likewise.
11474         * config/mcore/mcore.c : Likewise.
11475         * config/mep/mep-pragma.c : Likewise.
11476         * config/mep/mep.c : Likewise.
11477         * config/microblaze/microblaze-c.c : Likewise.
11478         * config/microblaze/microblaze.c : Likewise.
11479         * config/mips/mips.c : Likewise.
11480         * config/mmix/mmix.c : Likewise.
11481         * config/mn10300/mn10300.c : Likewise.
11482         * config/moxie/moxie.c : Likewise.
11483         * config/msp430/msp430-c.c : Likewise.
11484         * config/msp430/msp430.c : Likewise.
11485         * config/nds32/nds32-cost.c : Likewise.
11486         * config/nds32/nds32-fp-as-gp.c : Likewise.
11487         * config/nds32/nds32-intrinsic.c : Likewise.
11488         * config/nds32/nds32-isr.c : Likewise.
11489         * config/nds32/nds32-md-auxiliary.c : Likewise.
11490         * config/nds32/nds32-memory-manipulation.c : Likewise.
11491         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
11492         * config/nds32/nds32-predicates.c : Likewise.
11493         * config/nds32/nds32.c : Likewise.
11494         * config/nios2/nios2.c : Likewise.
11495         * config/nvptx/nvptx.c : Likewise.
11496         * config/pa/pa.c : Likewise.
11497         * config/pdp11/pdp11.c : Likewise.
11498         * config/rl78/rl78-c.c : Likewise.
11499         * config/rl78/rl78.c : Likewise.
11500         * config/rs6000/rs6000-c.c : Likewise.
11501         * config/rs6000/rs6000.c : Likewise.
11502         * config/rx/rx.c : Likewise.
11503         * config/s390/s390-c.c : Likewise.
11504         * config/s390/s390.c : Likewise.
11505         * config/sh/sh-c.c : Likewise.
11506         * config/sh/sh-mem.cc : Likewise.
11507         * config/sh/sh.c : Likewise.
11508         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
11509         * config/sh/sh_treg_combine.cc : Likewise.
11510         * config/sol2-c.c : Likewise.
11511         * config/sol2-cxx.c : Likewise.
11512         * config/sol2-stubs.c : Likewise.
11513         * config/sol2.c : Likewise.
11514         * config/sparc/sparc-c.c : Likewise.
11515         * config/sparc/sparc.c : Likewise.
11516         * config/spu/spu-c.c : Likewise.
11517         * config/spu/spu.c : Likewise.
11518         * config/stormy16/stormy16.c : Likewise.
11519         * config/tilegx/mul-tables.c : Likewise.
11520         * config/tilegx/tilegx-c.c : Likewise.
11521         * config/tilegx/tilegx.c : Likewise.
11522         * config/tilepro/mul-tables.c : Likewise.
11523         * config/tilepro/tilepro-c.c : Likewise.
11524         * config/tilepro/tilepro.c : Likewise.
11525         * config/v850/v850-c.c : Likewise.
11526         * config/v850/v850.c : Likewise.
11527         * config/vax/vax.c : Likewise.
11528         * config/visium/visium.c : Likewise.
11529         * config/vms/vms-c.c : Likewise.
11530         * config/vms/vms.c : Likewise.
11531         * config/vxworks.c : Likewise.
11532         * config/winnt-c.c : Likewise.
11533         * config/xtensa/xtensa.c : Likewise.
11535 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11537         PR lto/65378
11538         * ipa-utils.h (warn_types_mismatch): Update prototype.
11539         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
11540         parameters.
11541         (type_mismatch_p): New function.
11542         (warn_types_mismatch): Reorg to work better on non-C++ types.
11543         (odr_types_equivalent_p): Add loc1/loc2 parameters.
11544         (add_type_duplicate): Update.
11546 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11548         PR rtl-optimization/66444
11549         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
11550         call_used_regs.
11552 2015-06-08  Richard Biener  <rguenther@suse.de>
11554         PR tree-optimization/66422
11555         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
11556         block after inserted gcc_unreachable.
11558 2015-06-08  Nick Clifton  <nickc@redhat.com>
11560         * config/rx/rx.c (rx_function_value): Do not promote vector types.
11561         (rx_promote_function_mode): Likewise.
11562         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
11564 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
11566         * genattrtab.c (insn_alternatives): Change type from int *
11567         to uint64_t *.
11568         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
11569         (get_attr_value): Change type of num_alt to uint64_t.
11570         (compute_alternative_mask): Change return type from
11571         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
11572         (make_alternative_compare, mk_attr_alt): Change argument type
11573         from int to uint64_t.
11574         (simplify_test_exp): Change type of i from int to uint64_t.
11575         Shift ((uint64_t) 1) instead of 1 up.
11576         (main): Adjust oballocvec first argument from int to uint64_t.
11577         Shift ((uint64_t) 1) instead of 1 up.
11579 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11581         PR other/65366
11582         * gdbhooks.py: Import sys.
11583         (intptr): New function.  Replace int(...) by intptr(...).
11585 2015-06-08  Richard Biener  <rguenther@suse.de>
11587         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
11588         adjustment for gaps at the end of a SLP load group properly.
11589         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
11590         all permutations we can generate.
11591         (vect_transform_slp_perm_load): Use the correct group-size.
11593 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
11595         * genmatch.c (expr::gen_transform): For conditions, guess the type
11596         from the second operand.
11598 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11600         PR tree-optimization/66442
11601         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
11602         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
11603         if the loop latch is not a singleton.  Use
11604         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
11606 2015-06-08  Marek Polacek  <polacek@redhat.com>
11608         PR sanitizer/66452
11609         * toplev.c (check_global_declaration): Don't warn about artificial
11610         decls.
11612 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11614         PR tree-optimization/66436
11615         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
11616         dump file.
11617         * gimplify.c: Add tree-dump.h include.
11618         (gimplify_function_tree): Dump function to gimple dump file.
11619         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
11620         dump file.
11622 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11624         PR tree-optimization/66435
11625         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
11626         function.
11628 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
11630         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
11631         of ptr_type_node to not be ptr_to_node.
11632         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
11633         TREE_TYPE of pointers.
11634         * gimple-expr.c (useless_type_conversion): Reorder the check for
11635         function pointers and TYPE_CANONICAL.
11637 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
11639         PR bootstrap/66319
11640         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
11641         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
11642         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
11643         later.
11644         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
11645         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
11646         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
11647         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
11648         and non iso if unix2003.
11650 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
11652         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
11654 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
11656         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
11657         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
11658         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
11659         except.c, final.c, function.c, gcse-common.c, genemit.c,
11660         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
11661         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
11662         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
11663         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
11664         more derived ones.
11666 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
11668         * combine.c (combine_split_insns): Remove cast.
11669         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
11670         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
11671         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
11672         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
11673         * genemit.c (gen_split): Change return type of generated functions to
11674         rtx_insn.
11675         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
11676         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
11677         gen_peephole2_* functions.
11678         (print_subroutine, main): Likewise.
11679         * recog.c (peephole2_optimize): Remove cast.
11680         (peep2_next_insn): Promote return type to rtx_insn.
11681         * recog.h (peep2_next_insn): Fix prototype.
11682         * rtl.h (try_split, split_insns): Likewise.
11684 2015-06-06  DJ Delorie  <dj@redhat.com>
11686         * config/msp430/msp430.c (msp430_asm_integer): Support addition
11687         and subtraction too.
11689 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11691         PR target/66410
11692         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
11693         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
11694         instead of Snd.  Disparage Sid/z alternative with '^'.
11696 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
11698         * dwarf2out.c: Remove deferred_locations*.
11699         (dwarf2_debug_hooks): Add early_finish hook.
11700         Remove global_decl hook.
11701         Add early_global_decl and late_global_decl hook.
11702         New global early_dwarf.
11703         New structure set_early_dwarf.
11704         (output_die): Indicate whether a DIE was generated early
11705         when generating assembly with -dA.
11706         (struct limbo_die_struct): Document created_for field.
11707         Remove file_table_last_lookup.
11708         (remove_AT): Return TRUE if successful.
11709         (remove_child_TAG): Clear die_parent.
11710         (reparent_child): New function abstracted from...
11711         (splice_child_die): ...here.
11712         (new_die): ICE if a DIE ends up in limbo too late.
11713         (check_die): New.
11714         (defer_location): Remove.
11715         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
11716         (fill_variable_array_bounds): New.
11717         (decl_start_label): Call fill_variable_array_bounds.
11718         (gen_formal_parameter_die): Rewrite to reuse previously generated
11719         DIEs.
11720         (gen_subprogram_die): Same.
11721         (gen_variable_die): Same.
11722         (gen_const_die): Same.
11723         (gen_label_die): Same.
11724         (gen_lexical_block_die): Same.
11725         (decl_will_get_specification_p): New.
11726         (local_function_static): New.
11727         (gen_struct_or_union_type_die): Fill in variable-length fields.
11728         (gen_typedef_die): Fill in variable-length typedefs.
11729         (gen_tagged_type_die): Gracefully return on error_mark_node.
11730         Handle re-entrancy.
11731         (gen_type_die_with_usage): Handle variable-length types.
11732         Remove duplicate code for ARRAY_TYPE case.
11733         (process_scope_var): Only process imported modules during early
11734         dwarf.
11735         (dwarf2out_early_global_decl): New.
11736         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
11737         (dwarf2out_type_decl): Set early_dwarf while calling
11738         dwarf2out_decl.
11739         (dwarf2out_decl): Verify that we did not recreate a previously
11740         generated DIE.
11741         Do not return on DECL_EXTERNALs in VAR_DECLs.
11742         Abstract some code to local_function_static.
11743         (lookup_filename): Remove use of file_table_last_lookup.
11744         Gracefully exit on missing file_name.
11745         (dwarf2out_finish): Verify limbo list.
11746         Remove deferred_locations_list use.
11747         Move deferred_asm_name and limbo flushing to...
11748         (dwarf2out_early_finish): ...here.  New.
11749         (dwarf2out_c_finalize): Remove set of deferred_location_list,
11750         deferred_asm_name, and file_table_last_lookup.
11751         * cgraph.h (referred_to_p): Add default argument.
11752         * cgraphunit.c (referred_to_p): Add and handle include_self
11753         argument.
11754         (analyze_functions): Add first_time argument.
11755         Call check_global_declaration for all symbols.
11756         Call late_global_decl for nodes for moribund nodes.
11757         (finalize_compilation_unit): Add new argument to
11758         analyze_functions.
11759         Call early_global_decl for functions.
11760         Call early_finish debug hook.
11761         * dbxout.c (dbxout_early_global_decl): New.
11762         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
11763         (dbx_debug_hooks): Add new hooks.
11764         (xcoff_debug_hooks): Same.
11765         * debug.c (do_nothing_debug_hooks): Add early_finish field.
11766         Add early and late debug hooks.
11767         Remove global_decl hook.
11768         * debug.h (struct gcc_debug_hooks): Add early_finish,
11769         early_global_decl, and late_global_decl fields.
11770         Remove global_decl field.
11771         Document gcc_debug_hooks.
11772         * gengtype.c (output_typename): Remove.
11773         * godump.c (go_early_global_decl): New.
11774         (go_late_global_decl): New.
11775         (go_global_decl): Remove.
11776         (dump_go_spec_init): Remove global_decl.  Add
11777         {early,late}_global_decl.
11778         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
11779         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
11780         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
11781         (write_global_declarations): Remove.
11782         (global_decl_processing): New.
11783         * langhooks.h (struct lang_hooks_for_decls): Remove
11784         final_write_globals field.
11785         Add post_compilation_parsing_cleanups field.
11786         * passes.c (rest_of_decl_compilation): Call early_global_decl.
11787         * sdbout.c: Add early and late_global_decl hooks.  Remove
11788         sdbout_global_decl hook.
11789         Add early_finish field for sdb_debug_hooks.
11790         (sdbout_global_decl): Remove.
11791         (sdbout_early_global_decl): New.
11792         (sdbout_late_global_decl): New.
11793         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
11794         * toplev.c (check_global_declaration): Rename from
11795         check_global_declaration_1.
11796         Adapt to use symtab infrastructure.
11797         (check_global_declarations): Remove.
11798         (emit_debug_global_declarations): Remove.
11799         (compile_file): Remove call to final_write_globals langhook.
11800         Run the actual compilation process.
11801         Perform any post compilation parser cleanups.
11802         Generate late debug info.
11803         * toplev.h (check_global_declaration): New.
11804         (check_global_declaration_1): Remove.
11805         (check_global_declarations): Remove.
11806         (write_global_declarations): Remove.
11807         (emit_debug_global_declarations): Remove.
11808         (global_decl_processing): New.
11809         * tree-core.h (struct tree_block): Add DIE field.
11810         * tree.h (BLOCK_DIE): New.
11811         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
11812         throughout.
11813         (vmsdbgout_early_global_decl): New.
11814         (vmsdbgout_late_global_decl): New.
11815         Add early_finish debug hook field to vmsdbg_debug_hooks.
11816         Remove vmsdbgout_decl to vmsdbgout_function_decl.
11817         Add early and late_global_decl debug hooks.
11819 2015-06-05  Julian Brown  <julian@codesourcery.com>
11820             Sandra Loosemore  <sandra@codesourcery.com>
11822         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
11823         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
11824         to print-sysroot-suffix.sh script.
11826 2015-06-05  Tom de Vries  <tom@codesourcery.com>
11828         merge from gomp4 branch:
11829         2015-05-28  Tom de Vries  <tom@codesourcery.com>
11831         PR tree-optimization/65443
11832         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
11833         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
11834         (try_transform_to_exit_first_loop_alt): New function.
11835         (transform_to_exit_first_loop): Use
11836         try_transform_to_exit_first_loop_alt.
11838 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
11840         * builtins.c (expand_builtin_atomic_compare_exchange): Call
11841         emit_cmp_and_jump_insns with the mode of target.
11843 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11845         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
11847 2015-06-04  DJ Delorie  <dj@redhat.com>
11849         * config/msp430/msp430.md (movsi_s): New.  Special case for
11850         storing a 20-bit symbol into a 32-bit register.
11851         * config/msp430/msp430.c (msp430_subreg): Add support for it.
11852         * config/msp430/predicates.md (msp430_symbol_operand): New.
11854 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
11856         * c-family/c-common.c (noplt): New attribute.
11857         (handle_noplt_attribute): New handler.
11858         * calls.c (prepare_call_address): Check for noplt
11859         attribute.
11860         * config/i386/i386.c (ix86_expand_call): Check
11861         for noplt attribute.
11862         (ix86_nopic_noplt_attribute_p): New function.
11863         (ix86_output_call_insn): Output indirect call for non-pic
11864         no plt calls.
11865         * doc/extend.texi (noplt): Document new attribute.
11866         * doc/invoke.texi: Document new attribute.
11868 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
11870         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
11871         real.h, and fixed-value.h when included in host source files.
11872         * double-int.h: Remove redundant #includes listed above.
11873         * fixed-value.h: Likewise.
11874         * real.h: Likewise.
11875         * wide-int.h: Likewise.
11876         * inchash.h: Likewise.
11877         * rtl.h: Add some include files When included from a generator file.
11878         * target.h: Remove wide-int.h and insn-modes.h from the include list.
11879         * internal-fn.h: Don't include coretypes.h.
11880         * alias.c: Adjust includes for restructured coretypes.h.
11881         * asan.c: Likewise.
11882         * attribs.c: Likewise.
11883         * auto-inc-dec.c: Likewise.
11884         * auto-profile.c: Likewise.
11885         * bb-reorder.c: Likewise.
11886         * bt-load.c: Likewise.
11887         * builtins.c: Likewise.
11888         * caller-save.c: Likewise.
11889         * calls.c: Likewise.
11890         * ccmp.c: Likewise.
11891         * cfg.c: Likewise.
11892         * cfganal.c: Likewise.
11893         * cfgbuild.c: Likewise.
11894         * cfgcleanup.c: Likewise.
11895         * cfgexpand.c: Likewise.
11896         * cfghooks.c: Likewise.
11897         * cfgloop.c: Likewise.
11898         * cfgloop.h: Likewise.
11899         * cfgloopanal.c: Likewise.
11900         * cfgloopmanip.c: Likewise.
11901         * cfgrtl.c: Likewise.
11902         * cgraph.c: Likewise.
11903         * cgraphbuild.c: Likewise.
11904         * cgraphclones.c: Likewise.
11905         * cgraphunit.c: Likewise.
11906         * cilk-common.c: Likewise.
11907         * combine-stack-adj.c: Likewise.
11908         * combine.c: Likewise.
11909         * compare-elim.c: Likewise.
11910         * convert.c: Likewise.
11911         * coverage.c: Likewise.
11912         * cppbuiltin.c: Likewise.
11913         * cprop.c: Likewise.
11914         * cse.c: Likewise.
11915         * cselib.c: Likewise.
11916         * data-streamer-in.c: Likewise.
11917         * data-streamer-out.c: Likewise.
11918         * data-streamer.c: Likewise.
11919         * dbxout.c: Likewise.
11920         * dce.c: Likewise.
11921         * ddg.c: Likewise.
11922         * debug.c: Likewise.
11923         * df-core.c: Likewise.
11924         * df-problems.c: Likewise.
11925         * df-scan.c: Likewise.
11926         * df.h: Likewise.
11927         * dfp.c: Likewise.
11928         * dojump.c: Likewise.
11929         * dominance.c: Likewise.
11930         * domwalk.c: Likewise.
11931         * double-int.c: Likewise.
11932         * dse.c: Likewise.
11933         * dumpfile.c: Likewise.
11934         * dwarf2asm.c: Likewise.
11935         * dwarf2cfi.c: Likewise.
11936         * dwarf2out.c: Likewise.
11937         * dwarf2out.h: Likewise.
11938         * emit-rtl.c: Likewise.
11939         * et-forest.c: Likewise.
11940         * except.c: Likewise.
11941         * explow.c: Likewise.
11942         * expmed.c: Likewise.
11943         * expr.c: Likewise.
11944         * final.c: Likewise.
11945         * fixed-value.c: Likewise.
11946         * fold-const.c: Likewise.
11947         * function.c: Likewise.
11948         * fwprop.c: Likewise.
11949         * gcc-plugin.h: Likewise.
11950         * gcse.c: Likewise.
11951         * generic-match-head.c: Likewise.
11952         * ggc-page.c: Likewise.
11953         * gimple-builder.c: Likewise.
11954         * gimple-expr.c: Likewise.
11955         * gimple-fold.c: Likewise.
11956         * gimple-iterator.c: Likewise.
11957         * gimple-low.c: Likewise.
11958         * gimple-match-head.c: Likewise.
11959         * gimple-pretty-print.c: Likewise.
11960         * gimple-ssa-isolate-paths.c: Likewise.
11961         * gimple-ssa-strength-reduction.c: Likewise.
11962         * gimple-streamer-in.c: Likewise.
11963         * gimple-streamer-out.c: Likewise.
11964         * gimple-streamer.h: Likewise.
11965         * gimple-walk.c: Likewise.
11966         * gimple.c: Likewise.
11967         * gimplify-me.c: Likewise.
11968         * gimplify.c: Likewise.
11969         * godump.c: Likewise.
11970         * graph.c: Likewise.
11971         * graphite-blocking.c: Likewise.
11972         * graphite-dependences.c: Likewise.
11973         * graphite-interchange.c: Likewise.
11974         * graphite-isl-ast-to-gimple.c: Likewise.
11975         * graphite-optimize-isl.c: Likewise.
11976         * graphite-poly.c: Likewise.
11977         * graphite-scop-detection.c: Likewise.
11978         * graphite-sese-to-poly.c: Likewise.
11979         * graphite.c: Likewise.
11980         * haifa-sched.c: Likewise.
11981         * hooks.h: Likewise.
11982         * hw-doloop.c: Likewise.
11983         * ifcvt.c: Likewise.
11984         * incpath.c: Likewise.
11985         * init-regs.c: Likewise.
11986         * internal-fn.c: Likewise.
11987         * ipa-chkp.c: Likewise.
11988         * ipa-comdats.c: Likewise.
11989         * ipa-cp.c: Likewise.
11990         * ipa-devirt.c: Likewise.
11991         * ipa-icf-gimple.c: Likewise.
11992         * ipa-icf.c: Likewise.
11993         * ipa-inline-analysis.c: Likewise.
11994         * ipa-inline-transform.c: Likewise.
11995         * ipa-inline.c: Likewise.
11996         * ipa-polymorphic-call.c: Likewise.
11997         * ipa-profile.c: Likewise.
11998         * ipa-prop.c: Likewise.
11999         * ipa-pure-const.c: Likewise.
12000         * ipa-ref.c: Likewise.
12001         * ipa-reference.c: Likewise.
12002         * ipa-split.c: Likewise.
12003         * ipa-utils.c: Likewise.
12004         * ipa-visibility.c: Likewise.
12005         * ipa.c: Likewise.
12006         * ira-build.c: Likewise.
12007         * ira-color.c: Likewise.
12008         * ira-conflicts.c: Likewise.
12009         * ira-costs.c: Likewise.
12010         * ira-emit.c: Likewise.
12011         * ira-lives.c: Likewise.
12012         * ira.c: Likewise.
12013         * jump.c: Likewise.
12014         * langhooks.c: Likewise.
12015         * lcm.c: Likewise.
12016         * loop-doloop.c: Likewise.
12017         * loop-init.c: Likewise.
12018         * loop-invariant.c: Likewise.
12019         * loop-iv.c: Likewise.
12020         * loop-unroll.c: Likewise.
12021         * lower-subreg.c: Likewise.
12022         * lra-assigns.c: Likewise.
12023         * lra-coalesce.c: Likewise.
12024         * lra-constraints.c: Likewise.
12025         * lra-eliminations.c: Likewise.
12026         * lra-lives.c: Likewise.
12027         * lra-remat.c: Likewise.
12028         * lra-spills.c: Likewise.
12029         * lra.c: Likewise.
12030         * lto-cgraph.c: Likewise.
12031         * lto-compress.c: Likewise.
12032         * lto-opts.c: Likewise.
12033         * lto-section-in.c: Likewise.
12034         * lto-section-out.c: Likewise.
12035         * lto-streamer-in.c: Likewise.
12036         * lto-streamer-out.c: Likewise.
12037         * lto-streamer.c: Likewise.
12038         * mcf.c: Likewise.
12039         * mode-switching.c: Likewise.
12040         * modulo-sched.c: Likewise.
12041         * omega.c: Likewise.
12042         * omp-low.c: Likewise.
12043         * optabs.c: Likewise.
12044         * opts-global.c: Likewise.
12045         * passes.c: Likewise.
12046         * plugin.c: Likewise.
12047         * postreload-gcse.c: Likewise.
12048         * postreload.c: Likewise.
12049         * predict.c: Likewise.
12050         * print-rtl.c: Likewise.
12051         * print-tree.c: Likewise.
12052         * profile.c: Likewise.
12053         * real.c: Likewise.
12054         * realmpfr.c: Likewise.
12055         * realmpfr.h: Likewise.
12056         * recog.c: Likewise.
12057         * ree.c: Likewise.
12058         * reg-stack.c: Likewise.
12059         * regcprop.c: Likewise.
12060         * reginfo.c: Likewise.
12061         * regrename.c: Likewise.
12062         * regs.h: Likewise.
12063         * regstat.c: Likewise.
12064         * reload.c: Likewise.
12065         * reload1.c: Likewise.
12066         * reorg.c: Likewise.
12067         * resource.c: Likewise.
12068         * rtl-chkp.c: Likewise.
12069         * rtlanal.c: Likewise.
12070         * rtlhooks.c: Likewise.
12071         * sanopt.c: Likewise.
12072         * sched-deps.c: Likewise.
12073         * sched-ebb.c: Likewise.
12074         * sched-rgn.c: Likewise.
12075         * sched-vis.c: Likewise.
12076         * sdbout.c: Likewise.
12077         * sel-sched-dump.c: Likewise.
12078         * sel-sched-ir.c: Likewise.
12079         * sel-sched.c: Likewise.
12080         * sese.c: Likewise.
12081         * shrink-wrap.c: Likewise.
12082         * shrink-wrap.h: Likewise.
12083         * simplify-rtx.c: Likewise.
12084         * stack-ptr-mod.c: Likewise.
12085         * statistics.c: Likewise.
12086         * stmt.c: Likewise.
12087         * stor-layout.c: Likewise.
12088         * store-motion.c: Likewise.
12089         * stringpool.c: Likewise.
12090         * symtab.c: Likewise.
12091         * target-globals.c: Likewise.
12092         * targhooks.c: Likewise.
12093         * toplev.c: Likewise.
12094         * tracer.c: Likewise.
12095         * trans-mem.c: Likewise.
12096         * tree-affine.c: Likewise.
12097         * tree-affine.h: Likewise.
12098         * tree-browser.c: Likewise.
12099         * tree-call-cdce.c: Likewise.
12100         * tree-cfg.c: Likewise.
12101         * tree-cfgcleanup.c: Likewise.
12102         * tree-chkp-opt.c: Likewise.
12103         * tree-chkp.c: Likewise.
12104         * tree-chrec.c: Likewise.
12105         * tree-complex.c: Likewise.
12106         * tree-data-ref.c: Likewise.
12107         * tree-dfa.c: Likewise.
12108         * tree-diagnostic.c: Likewise.
12109         * tree-dump.c: Likewise.
12110         * tree-eh.c: Likewise.
12111         * tree-emutls.c: Likewise.
12112         * tree-if-conv.c: Likewise.
12113         * tree-inline.c: Likewise.
12114         * tree-into-ssa.c: Likewise.
12115         * tree-iterator.c: Likewise.
12116         * tree-loop-distribution.c: Likewise.
12117         * tree-nested.c: Likewise.
12118         * tree-nrv.c: Likewise.
12119         * tree-object-size.c: Likewise.
12120         * tree-outof-ssa.c: Likewise.
12121         * tree-parloops.c: Likewise.
12122         * tree-phinodes.c: Likewise.
12123         * tree-predcom.c: Likewise.
12124         * tree-pretty-print.c: Likewise.
12125         * tree-pretty-print.h: Likewise.
12126         * tree-profile.c: Likewise.
12127         * tree-scalar-evolution.c: Likewise.
12128         * tree-sra.c: Likewise.
12129         * tree-ssa-address.c: Likewise.
12130         * tree-ssa-alias.c: Likewise.
12131         * tree-ssa-ccp.c: Likewise.
12132         * tree-ssa-coalesce.c: Likewise.
12133         * tree-ssa-copy.c: Likewise.
12134         * tree-ssa-copyrename.c: Likewise.
12135         * tree-ssa-dce.c: Likewise.
12136         * tree-ssa-dom.c: Likewise.
12137         * tree-ssa-dse.c: Likewise.
12138         * tree-ssa-forwprop.c: Likewise.
12139         * tree-ssa-ifcombine.c: Likewise.
12140         * tree-ssa-live.c: Likewise.
12141         * tree-ssa-loop-ch.c: Likewise.
12142         * tree-ssa-loop-im.c: Likewise.
12143         * tree-ssa-loop-ivcanon.c: Likewise.
12144         * tree-ssa-loop-ivopts.c: Likewise.
12145         * tree-ssa-loop-manip.c: Likewise.
12146         * tree-ssa-loop-niter.c: Likewise.
12147         * tree-ssa-loop-prefetch.c: Likewise.
12148         * tree-ssa-loop-unswitch.c: Likewise.
12149         * tree-ssa-loop.c: Likewise.
12150         * tree-ssa-loop.h: Likewise.
12151         * tree-ssa-math-opts.c: Likewise.
12152         * tree-ssa-operands.c: Likewise.
12153         * tree-ssa-phiopt.c: Likewise.
12154         * tree-ssa-phiprop.c: Likewise.
12155         * tree-ssa-pre.c: Likewise.
12156         * tree-ssa-propagate.c: Likewise.
12157         * tree-ssa-reassoc.c: Likewise.
12158         * tree-ssa-sccvn.c: Likewise.
12159         * tree-ssa-scopedtables.c: Likewise.
12160         * tree-ssa-sink.c: Likewise.
12161         * tree-ssa-strlen.c: Likewise.
12162         * tree-ssa-structalias.c: Likewise.
12163         * tree-ssa-tail-merge.c: Likewise.
12164         * tree-ssa-ter.c: Likewise.
12165         * tree-ssa-threadedge.c: Likewise.
12166         * tree-ssa-threadupdate.c: Likewise.
12167         * tree-ssa-uncprop.c: Likewise.
12168         * tree-ssa-uninit.c: Likewise.
12169         * tree-ssa.c: Likewise.
12170         * tree-ssanames.c: Likewise.
12171         * tree-stdarg.c: Likewise.
12172         * tree-streamer-in.c: Likewise.
12173         * tree-streamer-out.c: Likewise.
12174         * tree-streamer.c: Likewise.
12175         * tree-switch-conversion.c: Likewise.
12176         * tree-tailcall.c: Likewise.
12177         * tree-vect-data-refs.c: Likewise.
12178         * tree-vect-generic.c: Likewise.
12179         * tree-vect-loop-manip.c: Likewise.
12180         * tree-vect-loop.c: Likewise.
12181         * tree-vect-patterns.c: Likewise.
12182         * tree-vect-slp.c: Likewise.
12183         * tree-vect-stmts.c: Likewise.
12184         * tree-vectorizer.c: Likewise.
12185         * tree-vrp.c: Likewise.
12186         * tree.c: Likewise.
12187         * tsan.c: Likewise.
12188         * ubsan.c: Likewise.
12189         * valtrack.c: Likewise.
12190         * value-prof.c: Likewise.
12191         * var-tracking.c: Likewise.
12192         * varasm.c: Likewise.
12193         * varpool.c: Likewise.
12194         * vmsdbgout.c: Likewise.
12195         * vtable-verify.c: Likewise.
12196         * web.c: Likewise.
12197         * wide-int-print.cc: Likewise.
12198         * wide-int-print.h: Likewise.
12199         * wide-int.cc: Likewise.
12200         * xcoffout.c: Likewise.
12201         * config/aarch64/aarch64-builtins.c: Likewise.
12202         * config/aarch64/aarch64.c: Likewise.
12203         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12204         * config/alpha/alpha.c: Likewise.
12205         * config/arc/arc.c: Likewise.
12206         * config/arm/aarch-common.c: Likewise.
12207         * config/arm/arm-builtins.c: Likewise.
12208         * config/arm/arm-c.c: Likewise.
12209         * config/arm/arm.c: Likewise.
12210         * config/avr/avr-c.c: Likewise.
12211         * config/avr/avr-log.c: Likewise.
12212         * config/avr/avr.c: Likewise.
12213         * config/bfin/bfin.c: Likewise.
12214         * config/c6x/c6x.c: Likewise.
12215         * config/cr16/cr16.c: Likewise.
12216         * config/cris/cris.c: Likewise.
12217         * config/darwin-c.c: Likewise.
12218         * config/darwin.c: Likewise.
12219         * config/default-c.c: Likewise.
12220         * config/epiphany/epiphany.c: Likewise.
12221         * config/epiphany/mode-switch-use.c: Likewise.
12222         * config/epiphany/resolve-sw-modes.c: Likewise.
12223         * config/fr30/fr30.c: Likewise.
12224         * config/frv/frv.c: Likewise.
12225         * config/ft32/ft32.c: Likewise.
12226         * config/glibc-c.c: Likewise.
12227         * config/h8300/h8300.c: Likewise.
12228         * config/i386/i386-c.c: Likewise.
12229         * config/i386/i386.c: Likewise.
12230         * config/i386/msformat-c.c: Likewise.
12231         * config/i386/winnt-cxx.c: Likewise.
12232         * config/i386/winnt-stubs.c: Likewise.
12233         * config/i386/winnt.c: Likewise.
12234         * config/ia64/ia64-c.c: Likewise.
12235         * config/ia64/ia64.c: Likewise.
12236         * config/iq2000/iq2000.c: Likewise.
12237         * config/lm32/lm32.c: Likewise.
12238         * config/m32c/m32c-pragma.c: Likewise.
12239         * config/m32c/m32c.c: Likewise.
12240         * config/m32r/m32r.c: Likewise.
12241         * config/m68k/m68k.c: Likewise.
12242         * config/mcore/mcore.c: Likewise.
12243         * config/mep/mep-pragma.c: Likewise.
12244         * config/mep/mep.c: Likewise.
12245         * config/microblaze/microblaze-c.c: Likewise.
12246         * config/microblaze/microblaze.c: Likewise.
12247         * config/mips/mips.c: Likewise.
12248         * config/mmix/mmix.c: Likewise.
12249         * config/mn10300/mn10300.c: Likewise.
12250         * config/moxie/moxie.c: Likewise.
12251         * config/msp430/msp430-c.c: Likewise.
12252         * config/msp430/msp430.c: Likewise.
12253         * config/nds32/nds32-cost.c: Likewise.
12254         * config/nds32/nds32-fp-as-gp.c: Likewise.
12255         * config/nds32/nds32-intrinsic.c: Likewise.
12256         * config/nds32/nds32-isr.c: Likewise.
12257         * config/nds32/nds32-md-auxiliary.c: Likewise.
12258         * config/nds32/nds32-memory-manipulation.c: Likewise.
12259         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12260         * config/nds32/nds32-predicates.c: Likewise.
12261         * config/nds32/nds32.c: Likewise.
12262         * config/nios2/nios2.c: Likewise.
12263         * config/nvptx/nvptx.c: Likewise.
12264         * config/pa/pa.c: Likewise.
12265         * config/pdp11/pdp11.c: Likewise.
12266         * config/rl78/rl78-c.c: Likewise.
12267         * config/rl78/rl78.c: Likewise.
12268         * config/rs6000/rs6000-c.c: Likewise.
12269         * config/rs6000/rs6000.c: Likewise.
12270         * config/rx/rx.c: Likewise.
12271         * config/s390/s390-c.c: Likewise.
12272         * config/s390/s390.c: Likewise.
12273         * config/sh/sh-c.c: Likewise.
12274         * config/sh/sh-mem.cc: Likewise.
12275         * config/sh/sh.c: Likewise.
12276         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12277         * config/sh/sh_treg_combine.cc: Likewise.
12278         * config/sol2-c.c: Likewise.
12279         * config/sol2-cxx.c: Likewise.
12280         * config/sol2-stubs.c: Likewise.
12281         * config/sol2.c: Likewise.
12282         * config/sparc/sparc-c.c: Likewise.
12283         * config/sparc/sparc.c: Likewise.
12284         * config/spu/spu-c.c: Likewise.
12285         * config/spu/spu.c: Likewise.
12286         * config/stormy16/stormy16.c: Likewise.
12287         * config/tilegx/mul-tables.c: Likewise.
12288         * config/tilegx/tilegx-c.c: Likewise.
12289         * config/tilegx/tilegx.c: Likewise.
12290         * config/tilepro/mul-tables.c: Likewise.
12291         * config/tilepro/tilepro-c.c: Likewise.
12292         * config/tilepro/tilepro.c: Likewise.
12293         * config/v850/v850-c.c: Likewise.
12294         * config/v850/v850.c: Likewise.
12295         * config/vax/vax.c: Likewise.
12296         * config/visium/visium.c: Likewise.
12297         * config/vms/vms-c.c: Likewise.
12298         * config/vms/vms.c: Likewise.
12299         * config/vxworks.c: Likewise.
12300         * config/winnt-c.c: Likewise.
12301         * config/xtensa/xtensa.c: Likewise.
12302         * common/config/bfin/bfin-common.c: Likewise.
12304 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
12306         * tree.h (tree_code_for_canonical_type_merging): New function.
12307         * tree.c (gimple_canonical_types_compatible_p): Use
12308         tree_code_for_canonical_type_merging..
12310 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12312         PR c++/66192
12313         PR target/66200
12314         * doc/tm.texi: Regenerate.
12315         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
12316         * target.def (TARGET_RELAXED_ORDERING): Likewise.
12317         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
12318         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
12319         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
12320         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
12321         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
12322         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
12323         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
12325 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12327         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
12328         register fma steering pass.
12329         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
12330         AARCH64_TUNE_FMA_STEERING.
12332 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
12334         * tree.c (verify_type_variant): Verify that type and variant is
12335         compatible.
12336         (gimple_canonical_types_compatible_p): Look for main variants.
12338 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12340         * config.gcc (powerpc*-*-*): Add support for a new configure
12341         option --with-advance-toolchain=<xxx> which overrides using the
12342         default header files, libraries and dynamic linker.
12344         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
12345         specs to support the configure --with-advance-toolchain=<xxx>
12346         option.
12347         (INCLUDE_EXTRA_SPEC): Likewise.
12348         (LINK_OS_EXTRA_SPEC32): Likewise.
12349         (LINK_OK_EXTRA_SPEC64): Likewise.
12350         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
12351         (DYNAMIC_LINKER_PREFIX): Likewise.
12352         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
12353         toolchain support.
12354         (GLIBC_DYNAMIC_LINKER32): Likewise.
12355         (GLIBC_DYNAMIC_LINKER64): Likewise.
12356         (LINK_OS_LINUX_SPEC32): Likewise.
12357         (LINK_OS_LINUX_SPEC64): Likewise.
12359         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
12360         configuration option.
12362 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
12364         PR target/66275
12365         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
12366         to determine current function ABI.
12367         (ix86_function_value_regno_p): Ditto.
12369 2015-06-03  Martin Liska  <mliska@suse.cz>
12371         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
12372         * bitmap.h (struct bitmap_usage): Likewise.
12373         * ggc-common.c (struct ggc_usage): Likewise.
12374         * mem-stats.h (struct mem_location): Likewise.
12375         (struct mem_usage): Likewise.
12376         * vec.c (struct vec_usage): Likewise.
12378 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
12380         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
12381         -Bsymbolic.
12383 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
12385         * doc/plugins.texi (enum plugin_event): New event.
12386         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
12387         and PLUGIN_FINISH_FUNCTION.
12388         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
12389         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
12391 2015-06-03  Richard Biener  <rguenther@suse.de>
12393         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12394         compute GROUP_GAP for the first element.
12395         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
12396         on in-group gaps.
12398 2015-06-03  Nick Clifton  <nickc@redhat.com>
12400         * config/rl78/rl78-real.md: Add peepholes to avoid a register
12401         copy when calling a function.
12402         * config/rl78/rl78.c (need_to_save): Do not push the frame
12403         pointer in an interrupt handler prologue if it is never used.
12405 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12407         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
12409 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12411         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
12412         reference when cloning alias node.
12414 2015-06-03  Martin Liska  <mliska@suse.cz>
12416         * alloc-pool.h (struct pool_usage): Correct space padding.
12417         * ggc-page.c (ggc_print_statistics): Align columns in a report.
12418         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
12419         * tree.c (dump_tree_statistics): Align columns in a report.
12421 2015-06-03  Martin Liska  <mliska@suse.cz>
12423         * alloc-pool.c (allocate_pool_descriptor): Remove.
12424         (struct pool_output_info): Likewise.
12425         (print_alloc_pool_statistics): Likewise.
12426         (dump_alloc_pool_statistics): Likewise.
12427         * alloc-pool.h (struct pool_usage): New struct.
12428         (pool_allocator::initialize): Change usage of memory statistics
12429         to a new interface.
12430         (pool_allocator::release): Likewise.
12431         (pool_allocator::allocate): Likewise.
12432         (pool_allocator::remove): Likewise.
12433         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
12434         for a pool allocator.
12435         * mem-stats.h (struct mem_location): Add new ctor.
12436         (struct mem_usage): Add counter for number of
12437         instances.
12438         (mem_alloc_description::register_descriptor): New overload of
12439         * mem-stats.h (mem_location::to_string): New function.
12440         * bitmap.h (struct bitmap_usage): Use this new function.
12441         * ggc-common.c (struct ggc_usage): Likewise.
12442         the function.
12444 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12446         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
12447         of GCC_INSN_FLAGS_H block.
12449 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
12451         * explow.c (plus_constant): Update check after force_const_mem call
12452         to see if the value returned is not a NULL_RTX.
12454 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12456         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
12457         remove instumentation thunks calling reachable functions.
12458         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
12459         * lto/lto-partition.c (privatize_symbol_name_1): New.
12460         (privatize_symbol_name): Privatize both decl and orig_decl
12461         names for instrumented functions.
12462         * cgraph.c (cgraph_node::verify_node): Add transparent
12463         alias chain check for instrumented node.
12465 2015-06-03  Marek Polacek  <polacek@redhat.com>
12467         PR c/64223
12468         PR c/29358
12469         * tree.c (attribute_value_equal): Handle attribute format.
12470         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
12472 2015-06-03  Richard Biener  <rguenther@suse.de>
12474         PR tree-optimization/63916
12475         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12476         Forward-propagate non-invariant addresses by splicing their
12477         reference ops if the result isn't going to be used by PRE.
12478         (vn_reference_lookup_3): Remove pointless assert.
12480 2015-06-03  Richard Biener  <rguenther@suse.de>
12482         PR tree-optimization/66375
12483         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
12484         add to the evolution before following SSA edges.
12486 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
12488         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
12489         (dump_use, dump_cand, find_induction_variables): Pass new argument
12490         to dump_iv.
12491         (record_use): Preserve the ssa name information in IV.
12493 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12495         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
12496         NO_MODE_TEST.
12497         (add_mode_tests): Don't add mode tests if the predicate only
12498         accepts scalar constant integers.  Otherwise, allow the mode
12499         of "op" to be VOIDmode if the predicate does accept such integers.
12501 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
12503         PR target/66258
12504         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
12505         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
12506         (aarch64_secondary_reload): Likewise
12507         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
12508         to !TARGET_FLOAT.
12509         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
12510         Likewise.
12512 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
12513             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12515         PR target/65768
12516         * cprop.c (try_replace_reg): Check cost of constants before propagating.
12518 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12520         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
12521         provide access to the IBM extended double floating point mode if
12522         long double is IEEE 128-bit floating point.
12523         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
12524         point if long double is the IBM extended double type.
12526         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
12527         enable adding IEEE 128-bit floating point support.
12528         (-mfloat128-software): Likewise.
12529         (-mfloat128-sw): Likewise.
12531         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
12532         128-bit floating point types to occupy any register if
12533         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
12534         -mfloat128-software is enabled.
12535         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
12536         support.
12537         (rs6000_option_override_internal): Add -mfloat128-* support.
12538         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
12540         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
12541         and float128 type nodes.
12542         (ieee128_float_type_node): Likewise.
12543         (ibm128_float_type_node): Likewise.
12545 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12547         PR target/66136
12548         * config/aarch64/geniterators.sh: Rewrite in awk.
12550 2015-06-02  Martin Liska  <mliska@suse.cz>
12552         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
12553         values to avoid -Wmaybe-uninitialized errors.
12555 2015-06-02  Richard Biener  <rguenther@suse.de>
12557         PR debug/65549
12558         * dwarf2out.c (lookup_context_die): New function.
12559         (resolve_addr): Avoid forcing a full DIE for the
12560         target of a DW_TAG_GNU_call_site during late compilation.
12561         Instead create a stub DIE without a type if we have a
12562         context DIE present.
12564 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
12566         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
12568 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12570         PR tree-optimization/48052
12571         * cfgloop.h (struct control_iv): New.
12572         (struct loop): New field control_ivs.
12573         * tree-ssa-loop-niter.c : Include "stor-layout.h".
12574         (number_of_iterations_lt): Set no_overflow information.
12575         (number_of_iterations_exit): Init control iv in niter struct.
12576         (record_control_iv): New.
12577         (estimate_numbers_of_iterations_loop): Call record_control_iv.
12578         (loop_exits_before_overflow): New.  Interface factored out of
12579         scev_probably_wraps_p.
12580         (scev_probably_wraps_p): Factor loop niter related code into
12581         loop_exits_before_overflow.
12582         (free_numbers_of_iterations_estimates_loop): Free control ivs.
12583         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
12585 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
12587         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
12588         the target doesn't belong to the current function.
12590 2015-06-02  Marek Polacek  <polacek@redhat.com>
12592         PR middle-end/66345
12593         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
12594         get_maxval_strlen does not produce an INTEGER_CST.
12596 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
12598         * config/arc/constraints.md: Use lower-case names in match_code.
12599         * config/mmix/constraints.md: Likewise.
12601 2015-06-02  Richard Biener  <rguenther@suse.de>
12603         PR tree-optimization/65961
12604         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
12605         check and clarify dump message.
12606         (vect_build_slp_tree): If all children are built up from scalars
12607         build up the parent from scalars instead.
12608         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
12610 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12612         PR other/65366
12613         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
12614         instead of print ... .
12616 2015-06-02  Alan Modra  <amodra@gmail.com>
12618         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
12619         2014-08-11 change.
12621 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12623         PR tree-optimization/52563
12624         PR tree-optimization/62173
12625         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
12626         (alloc_iv, set_iv): New parameter.
12627         (determine_biv_step): Delete.
12628         (find_bivs): Inline original determine_biv_step.  Pass new
12629         argument to set_iv.
12630         (idx_find_step): Use no_overflow information for conversion.
12631         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
12632         resolve_mixers handle folded_casts.
12633         (instantiate_scev_name): Change bool parameter to bool pointer.
12634         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
12635         (instantiate_array_ref, instantiate_scev_not): Ditto.
12636         (instantiate_scev_3, instantiate_scev_2): Ditto.
12637         (instantiate_scev_1, instantiate_scev_r): Ditto.
12638         (instantiate_scev_convert, ): Change parameter.  Pass argument
12639         to chrec_convert_aggressive.
12640         (instantiate_scev): Change argument.
12641         (resolve_mixers): New parameter and set it.
12642         (scev_const_prop): New argument.
12643         * tree-scalar-evolution.h (resolve_mixers): New parameter.
12644         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
12645         of chrec_conert_1.
12646         (chrec_convert): New parameter.  Move definition below.
12647         (chrec_convert_aggressive): New parameter and set it.  Call
12648         convert_affine_scev.
12649         * tree-chrec.h (chrec_convert): New parameter.
12650         (chrec_convert_aggressive): Ditto.
12652 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12654         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
12655         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
12656         the LHS of a no-return call if its type has variable size.
12657         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12658         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
12660 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
12662         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
12663         * config.in: Regenerate.
12665 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
12667         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12668         consecutive accesses within outer-loop with force_vectorize
12669         for references with zero step in inner-loop.
12671 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12673         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
12674         rather than from gcc/build directory.
12676 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12678         PR target/65697
12679         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
12680         for __sync memory models, emit initial loads and final barriers as
12681         appropriate.
12683 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12685         PR target/65697
12686         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
12687         (aarch64_split_atomic_op): Check for __sync memory models, emit
12688         appropriate initial loads and final barriers.
12690 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12692         * Makefile.in: Fix gcov dependencies that should
12693         not point to a build folder.
12695 2015-06-01  Richard Biener  <rguenther@suse.de>
12697         Revert
12698         2015-05-29  Richard Biener  <rguenther@suse.de>
12700         PR tree-optimization/66314
12701         * tree-ssa-threadupdate.c (create_block_for_threading): Add
12702         parameter that says which loop the new block belongs to.
12703         (ssa_create_duplicates): Blocks duplicated for the threaded
12704         path belong to the loop of the thread destination.
12706 2015-06-01  Martin Liska  <mliska@suse.cz>
12708         * sched-deps.c: Include pool-alloc.h before
12709         cselib.h header file is included.
12711 2015-06-01  Richard Biener  <rguenther@suse.de>
12713         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
12714         functions.
12716 2015-06-01  Martin Liska  <mliska@suse.cz>
12718         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
12719         a function local variable.
12721 2015-06-01  Martin Liska  <mliska@suse.cz>
12723         * alloc-pool.c (create_alloc_pool): Remove.
12724         (empty_alloc_pool): Likewise.
12725         (free_alloc_pool): Likewise.
12726         (free_alloc_pool_if_empty): Likewise.
12727         (pool_alloc): Likewise.
12728         (pool_free): Likewise.
12729         * alloc-pool.h: Remove old declarations.
12731 2015-06-01  Martin Liska  <mliska@suse.cz>
12733         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
12734         (ira_create_object): Likewise.
12735         (ira_create_allocno): Likewise.
12736         (ira_create_live_range): Likewise.
12737         (copy_live_range): Likewise.
12738         (ira_finish_live_range): Likewise.
12739         (ira_free_allocno_costs): Likewise.
12740         (finish_allocno): Likewise.
12741         (finish_allocnos): Likewise.
12742         (initiate_prefs): Likewise.
12743         (ira_create_pref): Likewise.
12744         (finish_pref): Likewise.
12745         (finish_prefs): Likewise.
12746         (initiate_copies): Likewise.
12747         (ira_create_copy): Likewise.
12748         (finish_copy): Likewise.
12749         (finish_copies): Likewise.
12750         (finish_prefs): Likewise.
12752 2015-06-01  Martin Liska  <mliska@suse.cz>
12754         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
12755         (allocate_and_init_ipcp_value): Likewise.
12756         (ipcp_lattice::add_value): Likewise.
12757         (merge_agg_lats_step): Likewise.
12758         (ipcp_driver): Likewise.
12759         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
12760         (ipa_free_all_structures_after_iinln): Likewise.
12761         * ipa-prop.h: Likewise.
12763 2015-06-01  Martin Liska  <mliska@suse.cz>
12765         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
12766         pool allocator.
12767         (set_hint_predicate): Likewise.
12768         (inline_summary_alloc): Likewise.
12769         (reset_inline_edge_summary): Likewise.
12770         (reset_inline_summary): Likewise.
12771         (set_cond_stmt_execution_predicate): Likewise.
12772         (set_switch_stmt_execution_predicate): Likewise.
12773         (compute_bb_predicates): Likewise.
12774         (estimate_function_body_sizes): Likewise.
12775         (inline_free_summary): Likewise.
12777 2015-06-01  Martin Liska  <mliska@suse.cz>
12779         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
12780         (ipa_edge_duplication_hook): Likewise.
12781         (ipa_free_all_structures_after_ipa_cp): Likewise.
12782         (ipa_free_all_structures_after_iinln): Likewise.
12784 2015-06-01  Martin Liska  <mliska@suse.cz>
12786         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
12787         (ipa_profile_generate_summary): Likewise.
12788         (ipa_profile_read_summary): Likewise.
12789         (ipa_profile): Likewise.
12791 2015-06-01  Martin Liska  <mliska@suse.cz>
12793         * tree-ssa-structalias.c (new_var_info): Use new type-based
12794         pool allocator.
12795         (new_constraint): Likewise.
12796         (init_alias_vars): Likewise.
12797         (delete_points_to_sets): Likewise.
12799 2015-06-01  Martin Liska  <mliska@suse.cz>
12801         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
12802         (free_strinfo): Likewise.
12803         (pass_strlen::execute): Likewise.
12805 2015-06-01  Martin Liska  <mliska@suse.cz>
12807         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
12808         pool allocator.
12809         (vn_reference_insert_pieces): Likewise.
12810         (vn_phi_insert): Likewise.
12811         (visit_reference_op_call): Likewise.
12812         (copy_phi): Likewise.
12813         (copy_reference): Likewise.
12814         (process_scc): Likewise.
12815         (allocate_vn_table): Likewise.
12816         (free_vn_table): Likewise.
12818 2015-06-01  Martin Liska  <mliska@suse.cz>
12820         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
12821         pool allocator.
12822         (add_repeat_to_ops_vec): Likewise.
12823         (get_ops): Likewise.
12824         (maybe_optimize_range_tests): Likewise.
12825         (init_reassoc): Likewise.
12826         (fini_reassoc): Likewise.
12828 2015-06-01  Martin Liska  <mliska@suse.cz>
12830         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
12831         pool allocator.
12832         (bitmap_set_new): Likewise.
12833         (get_or_alloc_expr_for_constant): Likewise.
12834         (get_or_alloc_expr_for): Likewise.
12835         (phi_translate_1): Likewise.
12836         (compute_avail): Likewise.
12837         (init_pre): Likewise.
12838         (fini_pre): Likewise.
12840 2015-06-01  Martin Liska  <mliska@suse.cz>
12842         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
12843         (delete_dep_node): Likewise.
12844         (create_deps_list): Likewise.
12845         (free_deps_list): Likewise.
12846         (sched_deps_init): Likewise.
12847         (sched_deps_finish): Likewise.
12849 2015-06-01  Martin Liska  <mliska@suse.cz>
12851         * regcprop.c (free_debug_insn_changes): Use new type-based
12852         pool allocator.
12853         (replace_oldest_value_reg): Likewise.
12854         (pass_cprop_hardreg::execute): Likewise.
12856 2015-06-01  Martin Liska  <mliska@suse.cz>
12858         * ira-build.c (initiate_cost_vectors): Use new type-based
12859         pool allocator.
12860         (ira_allocate_cost_vector): Likewise.
12861         (ira_free_cost_vector): Likewise.
12862         (finish_cost_vectors): Likewise.
12864 2015-06-01  Martin Liska  <mliska@suse.cz>
12866         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
12867         pool allocator.
12868         (free_sched_pools): Likewise.
12869         * sel-sched-ir.h (_list_alloc): Likewise.
12870         (_list_remove): Likewise.
12872 2015-06-01  Martin Liska  <mliska@suse.cz>
12874         * stmt.c (add_case_node): Use new type-based pool allocator.
12875         (expand_case): Likewise.
12876         (expand_sjlj_dispatch_table): Likewise.
12878 2015-06-01  Martin Liska  <mliska@suse.cz>
12880         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
12881         (free_bb): Likewise.
12882         (pass_cse_reciprocals::execute): Likewise.
12884 2015-06-01  Martin Liska  <mliska@suse.cz>
12886         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
12887         (sra_deinitialize) Likewise.
12888         (create_access_1) Likewise.
12889         (build_accesses_from_assign) Likewise.
12890         (create_artificial_child_access) Likewise.
12892 2015-06-01  Martin Liska  <mliska@suse.cz>
12894         * dse.c (get_group_info):Use new type-based pool allocator.
12895         (dse_step0) Likewise.
12896         (free_store_info) Likewise.
12897         (delete_dead_store_insn) Likewise.
12898         (free_read_records) Likewise.
12899         (record_store) Likewise.
12900         (replace_read) Likewise.
12901         (check_mem_read_rtx) Likewise.
12902         (scan_insn) Likewise.
12903         (dse_step1) Likewise.
12904         (dse_step7) Likewise.
12906 2015-06-01  Martin Liska  <mliska@suse.cz>
12908         * df-scan.c (struct df_scan_problem_data):Use new type-based
12909         pool allocator.
12910         (df_scan_free_internal) Likewise.
12911         (df_scan_alloc) Likewise.
12912         (df_grow_reg_info) Likewise.
12913         (df_free_ref) Likewise.
12914         (df_insn_create_insn_record) Likewise.
12915         (df_mw_hardreg_chain_delete) Likewise.
12916         (df_insn_info_delete) Likewise.
12917         (df_free_collection_rec) Likewise.
12918         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
12919         (df_sort_and_compress_mws) Likewise.
12920         (df_ref_create_structure) Likewise.
12921         (df_ref_record) Likewise.
12923 2015-06-01  Martin Liska  <mliska@suse.cz>
12925         * df-problems.c (df_chain_create):Use new type-based pool allocator.
12926         (df_chain_unlink_1) Likewise.
12927         (df_chain_unlink) Likewise.
12928         (df_chain_remove_problem) Likewise.
12929         (df_chain_alloc) Likewise.
12930         (df_chain_free) Likewise.
12931         * df.h (struct dataflow) Likewise.
12933 2015-06-01  Martin Liska  <mliska@suse.cz>
12935         * cselib.c (new_elt_list):Use new type-based pool allocator.
12936         (new_elt_loc_list) Likewise.
12937         (unchain_one_elt_list) Likewise.
12938         (unchain_one_elt_loc_list) Likewise.
12939         (unchain_one_value) Likewise.
12940         (new_cselib_val) Likewise.
12941         (cselib_init) Likewise.
12942         (cselib_finish) Likewise.
12944 2015-06-01  Martin Liska  <mliska@suse.cz>
12946         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
12947         (sh_reorg) Likewise.
12949 2015-06-01  Martin Liska  <mliska@suse.cz>
12951         * cfg.c (initialize_original_copy_tables):Use new type-based
12952         pool allocator.
12953         (free_original_copy_tables) Likewise.
12954         (copy_original_table_clear) Likewise.
12955         (copy_original_table_set) Likewise.
12957 2015-06-01  Martin Liska  <mliska@suse.cz>
12959         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
12960         pool allocator.
12961         (asan_mem_ref_new) Likewise.
12962         (free_mem_ref_resources) Likewise.
12964 2015-06-01  Martin Liska  <mliska@suse.cz>
12966         * var-tracking.c (variable_htab_free):Use new type-based
12967         pool allocator.
12968         (attrs_list_clear) Likewise.
12969         (attrs_list_insert) Likewise.
12970         (attrs_list_copy) Likewise.
12971         (shared_hash_unshare) Likewise.
12972         (shared_hash_destroy) Likewise.
12973         (unshare_variable) Likewise.
12974         (var_reg_delete_and_set) Likewise.
12975         (var_reg_delete) Likewise.
12976         (var_regno_delete) Likewise.
12977         (drop_overlapping_mem_locs) Likewise.
12978         (variable_union) Likewise.
12979         (insert_into_intersection) Likewise.
12980         (canonicalize_values_star) Likewise.
12981         (variable_merge_over_cur) Likewise.
12982         (dataflow_set_merge) Likewise.
12983         (remove_duplicate_values) Likewise.
12984         (variable_post_merge_new_vals) Likewise.
12985         (dataflow_set_preserve_mem_locs) Likewise.
12986         (dataflow_set_remove_mem_locs) Likewise.
12987         (variable_from_dropped) Likewise.
12988         (variable_was_changed) Likewise.
12989         (set_slot_part) Likewise.
12990         (clobber_slot_part) Likewise.
12991         (delete_slot_part) Likewise.
12992         (loc_exp_insert_dep) Likewise.
12993         (notify_dependents_of_changed_value) Likewise.
12994         (emit_notes_for_differences_1) Likewise.
12995         (vt_emit_notes) Likewise.
12996         (vt_initialize) Likewise.
12997         (vt_finalize) Likewise.
12999 2015-06-01  Martin Liska  <mliska@suse.cz>
13001         * ira-color.c (init_update_cost_records):Use new type-based
13002         pool allocator.
13003         (get_update_cost_record) Likewise.
13004         (free_update_cost_record_list) Likewise.
13005         (finish_update_cost_records) Likewise.
13006         (initiate_cost_update) Likewise.
13008 2015-06-01  Martin Liska  <mliska@suse.cz>
13010         * lra.c (init_insn_regs): Use new type-based pool allocator.
13011         (new_insn_reg) Likewise.
13012         (free_insn_reg) Likewise.
13013         (free_insn_regs) Likewise.
13014         (finish_insn_regs) Likewise.
13015         (init_insn_recog_data) Likewise.
13016         (init_reg_info) Likewise.
13017         (finish_reg_info) Likewise.
13018         (lra_free_copies) Likewise.
13019         (lra_create_copy) Likewise.
13020         (invalidate_insn_data_regno_info) Likewise.
13022 2015-06-01  Martin Liska  <mliska@suse.cz>
13024         * lra-lives.c (free_live_range): Use new type-based pool allocator.
13025         (free_live_range_list) Likewise.
13026         (create_live_range) Likewise.
13027         (copy_live_range) Likewise.
13028         (lra_merge_live_ranges) Likewise.
13029         (remove_some_program_points_and_update_live_ranges) Likewise.
13030         (lra_live_ranges_init) Likewise.
13031         (lra_live_ranges_finish) Likewise.
13033 2015-06-01  Martin Liska  <mliska@suse.cz>
13035         * et-forest.c (et_new_occ): Use new type-based pool allocator.
13036         (et_new_tree): Likewise.
13037         (et_free_tree): Likewise.
13038         (et_free_tree_force): Likewise.
13039         (et_free_pools): Likewise.
13040         (et_split): Likewise.
13042 2015-06-01  Martin Liska  <mliska@suse.cz>
13044         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
13045         to header file.
13046         * alloc-pool.h (pool_allocator::pool_allocator): New function.
13047         (pool_allocator::release): Likewise.
13048         (inline pool_allocator::release_if_empty): Likewise.
13049         (inline pool_allocator::~pool_allocator): Likewise.
13050         (pool_allocator::allocate): Likewise.
13051         (pool_allocator::remove): Likewise.
13053 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13055         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
13056         in comment.
13058 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13060         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
13061         to fusible_ops.
13062         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
13063         (arm_macro_fusion_p): Likewise.
13064         (arm_macro_fusion_pair_p): Likewise.
13066 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13068         * config/aarch64/aarch64-protos.h (tune_params): Rename
13069         fuseable_ops to fusible_ops.
13070         * config/aarch64/aarch64.c (generic_tunings): Rename
13071         fuseable_ops to fusible_ops.
13072         (cortexa53_tunings): Likewise.
13073         (cortexa57_tunings): Likewise.
13074         (thunderx_tunings): Likewise.
13075         (xgene1_tunings): Likewise.
13076         (aarch64_macro_fusion_p): Likewise.
13077         (aarch64_macro_fusion_pair_p): Likewise.
13079 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13081         * config/s390/driver-native.c: New file.
13082         * config/s390/x-native: New file.
13083         * config.host: Add new files for s390.
13084         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
13085         and -march=native
13086         * config.gcc: Likewise.
13087         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
13088         * config/s390/s390-opts.h (enum processor_type): Ditto.
13089         * config/s390/s390.c (s390_option_override): Catch unhandled
13090         PROCESSOR_NATIVE
13092 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
13094         PR target/65527
13095         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
13096         redirection for instrumented calls.
13097         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
13098         (append_compiler_options): Append -fcheck-pointer-bounds.
13099         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
13100         (chkp_redirect_edge): New.
13101         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
13102         (chkp_redirect_edge): New.
13104 2015-06-01  Richard Biener  <rguenther@suse.de>
13106         PR tree-optimization/66280
13107         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
13108         def-use walking.
13110 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13112         * config/aarch64/aarch64.md
13113         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
13114         logic_shift_imm.
13116 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
13118         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
13119         Remove obsolete kludge.
13121 2015-06-01  Richard Biener  <rguenther@suse.de>
13123         * tree-ssa-reassoc.c (get_rank): Simplify.
13125 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13127         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
13128         * configure: Regenerated.
13130 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
13132         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
13133         issue (add space between string literal and macro).
13134         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
13136 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13138         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
13139         implict or explicit -fPIE or -fpie.
13141 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
13143         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
13145 2015-05-28  DJ Delorie  <dj@redhat.com>
13147         * expmed.c (extract_bit_field_1): Avoid clobbering a
13148         yet-to-be-used base/index register.
13150 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
13152         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
13153         (alias_stats): Add num_universal.
13154         (alias_set_subset_of): Special case pointers; be ready for NULL
13155         children.
13156         (alias_sets_conflict_p): Special case pointers; be ready for NULL
13157         children.
13158         (init_alias_set_entry): Break out from ...
13159         (record_alias_subset): ... here; propagate new fields;
13160         allocate children only when really needed.
13161         (get_alias_set): Do less generous pointer globbing.
13162         (dump_alias_stats_in_alias_c): Update statistics.
13164 2015-05-30  Alan Modra  <amodra@gmail.com>
13166         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
13167         correct block for use of r12.
13168         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
13170 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13172         PR target/66215
13173         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
13174         with -mhotpatch=.
13176 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
13178         PR tree-optimization/66142
13179         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
13180         virtual phis that feed themselves.
13182 2015-05-29  Richard Biener  <rguenther@suse.de>
13184         PR tree-optimization/66314
13185         * tree-ssa-threadupdate.c (create_block_for_threading): Add
13186         parameter that says which loop the new block belongs to.
13187         (ssa_create_duplicates): Blocks duplicated for the threaded
13188         path belong to the loop of the thread destination.
13190 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13192         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
13193         to cleanup-saved-temps.
13194         * doc/sourcebuild.texi (Clean up generated test files): Expand
13195         introduction.
13196         (dg-keep-saved-temps): Document new proc.
13197         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
13198         cleanup-saved-temps): Remove.
13200 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
13202         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
13203         gcc_AC_CHECK_DECLS.
13204         * configure: Regenerate.
13206 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13208         * config/nios2/linux.h (CPP_SPEC): Define.
13210 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13212         * config/microblaze/linux.h (CPP_SPEC): Define.
13214 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13216         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
13217         -pthread is specified.
13219 2015-05-28  Richard Biener  <rguenther@suse.de>
13221         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
13222         (vect_fixup_scalar_cycles_with_patterns): Likewise.
13223         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
13224         after pattern recog.
13225         (vect_create_epilog_for_reduction): Properly handle reductions
13226         with patterns.
13227         (vectorizable_reduction): Likewise.
13228         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
13229         reduction chains.
13230         (vect_get_constant_vectors): Create the correct number of
13231         initial values for reductions.
13232         (vect_schedule_slp_instance): Handle reduction chains that are
13233         type changing properly.
13234         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
13236 2015-05-28  Richard Biener  <rguenther@suse.de>
13238         PR tree-optimization/66142
13239         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
13240         values better in memcpy destination handling.  Handle non-aliasing
13241         we discover here.
13243 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
13245         PR target/63810
13246         * config/darwin-c.c (version_components): New global enum.
13247         (parse_version, version_as_legacy_macro)
13248         (version_as_modern_macro, macosx_version_as_macro): New functions.
13249         (version_as_macro): Remove.
13250         (darwin_cpp_builtins): Use new function.
13252 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
13254         * builtins.c (expand_builtin_acc_on_device): Mark parameters
13255         with ATTRIBUTE_UNUSED.
13257 2015-05-28  Julian Brown  <julian@codesourcery.com>
13259         PR libgomp/65742
13261         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
13262         sequence for !ACCEL_COMPILER.
13264 2015-05-28  Nick Clifton  <nickc@redhat.com>
13266         * config/rx/rx.c (push_regs): New function.  Extracts code from...
13267         (rx_expand_prologue): ... here.  Use push_regs to push even small
13268         spans of registers.
13269         (pop_regs): New function.
13270         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
13271         registers.
13273 2015-05-28  Richard Biener  <rguenther@suse.de>
13275         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
13276         member.
13277         (SLP_INSTANCE_BODY_COST_VEC): Remove.
13278         (vect_update_slp_costs_according_to_vf): Likewise.
13279         (vect_slp_analyze_operations): Update prototype.
13280         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
13281         vect_update_slp_costs_according_to_vf, adjust.
13282         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
13283         (vect_analyze_slp_cost_1): Likewise.
13284         (vect_analyze_slp_cost): Likewise.  Properly deal with
13285         widening reduction ops.  Commit body costs.
13286         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
13287         cost for loops from here.
13288         (vect_slp_analyze_operations): But do it from here when
13289         the vectorization factor is known and stmts are analyzed.
13290         (vect_bb_vectorization_profitable_p): Simplify.
13291         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
13292         (vect_update_slp_costs_according_to_vf): Remove.
13294 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
13295             H.J. Lu  <hongjiu.lu@intel.com>
13297         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
13298         (BUILD_CFLAGS): Likewise.
13299         (BUILD_CXXFLAGS): Likewise.
13300         (LINKER): Add @NO_PIE_FLAG@.
13301         (BUILD_LDFLAGS): Likewise.
13302         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
13303         --enable-default-pie.
13304         * common.opt (fPIE): Initialize to -1.
13305         (fpie): Likewise.
13306         (no-pie): New option.
13307         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
13308         * configure.ac: Add --enable-default-pie.
13309         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
13310         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
13311         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
13312         * gcc.c (NO_PIE_SPEC): New.
13313         (PIE_SPEC): Likewise.
13314         (NO_FPIE1_SPEC): Likewise.
13315         (FPIE1_SPEC): Likewise.
13316         (NO_FPIE2_SPEC): Likewise.
13317         (FPIE2_SPEC): Likewise.
13318         (NO_FPIE2_SPEC): Likewise.
13319         (FPIE_SPEC): Likewise.
13320         (NO_FPIE_SPEC): Likewise.
13321         (NO_FPIC1_SPEC): Likewise.
13322         (FPIC1_SPEC): Likewise.
13323         (NO_FPIC2_SPEC): Likewise.
13324         (FPIC2_SPEC): Likewise.
13325         (NO_FPIC2_SPEC): Likewise.
13326         (FPIC_SPEC): Likewise.
13327         (NO_FPIC_SPEC): Likewise.
13328         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
13329         (FPIE1_OR_FPIC1_SPEC): Likewise.
13330         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
13331         (FPIE2_OR_FPIC2_SPEC): Likewise.
13332         (NO_FPIE_AND_FPIC_SPEC): Likewise.
13333         (FPIE_OR_FPIC_SPEC): Likewise.
13334         (LD_PIE_SPEC): Likewise.
13335         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
13336         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
13337         * config/darwin.h (PIE_SPEC): Renamed to ...
13338         (DARWIN_PIE_SPEC): This.
13339         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
13340         * config/darwin9.h (PIE_SPEC): Renamed to ...
13341         (DARWIN_PIE_SPEC): This.
13342         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
13343         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13344         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
13345         FPIE2_OR_FPIC2_SPEC.
13346         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13347         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13348         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
13349         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13350         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13351         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13352         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
13353         * config/m32r/m32r.h (ASM_SPEC): Likewise.
13354         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
13355         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13356         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
13357         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
13358         * config/sparc/linux.h (ASM_SPEC): Likewise.
13359         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13360         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
13361         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
13362         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13363         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13364         * config/sparc/sparc.h (ASM_SPEC): Likewise.
13365         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
13366         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
13367         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
13368         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
13369         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
13370         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
13371         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
13372         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
13373         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
13374         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
13375         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
13376         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
13377         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13378         * config/vax/linux.h (ASM_SPEC): Likewise.
13379         * doc/install.texi: Document --enable-default-pie.
13380         * doc/invoke.texi: Document -no-pie.
13381         * config.in: Regenerated.
13382         * configure: Likewise.
13384 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13386         PR rtl-optimization/66168
13387         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
13388         can_move_invariant_reg.
13390 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
13392         PR target/66148
13393         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
13394         REG_EQUAL note when doing insert.
13396         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
13397         instead of "%d" for 'o' operand.
13399 2015-05-27  Nathan Sidwell  <nathan@acm.org>
13401         PR c++/66270
13402         * tree.c (build_pointer_type_for_mode): Canonical type does not
13403         inherit can_alias_all.
13404         (build_reference_type_for_mode): Likewise.
13406 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13408         * expr.h (array_at_struct_end_p): Move to...
13409         (array_ref_element_size): Likewise.
13410         (component_ref_field_offset): Likewise.
13411         * tree.h (array_ref_element_size): ...here.
13412         (array_at_struct_end_p): Likewise.
13413         (component_ref_field_offset): Likewise.
13414         * expr.c (array_ref_element_size): Move to...
13415         (array_ref_low_bound): Likewise.
13416         (array_at_struct_end_p): Likewise.
13417         (array_ref_up_bound): Likewise.
13418         (component_ref_field_offset): Likewise.
13419         * tree.c (array_ref_element_size): ...here.
13420         (array_ref_low_bound): Likewise.
13421         (array_ref_up_bound): Likewise.
13422         (array_at_struct_end_p): Likewise.
13423         (component_ref_field_offset): Likewise.
13425 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13426             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13428         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
13430 2015-05-27  Jason Merrill  <jason@redhat.com>
13432         PR bootstrap/66304
13433         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
13434         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
13435         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
13437 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
13439         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
13440         is true.
13442         * statistics.c (statistics_fini_pass): Print pass name.
13444 2015-05-27  Richard Biener  <rguenther@suse.de>
13446         PR tree-optimization/66272
13447         Revert parts of
13448         2014-08-15  Richard Biener  <rguenther@suse.de>
13450         PR tree-optimization/62031
13451         * tree-data-ref.c (dr_analyze_indices): Do not set
13452         DR_UNCONSTRAINED_BASE.
13453         (dr_may_alias_p): All indirect accesses have to go the
13454         formerly DR_UNCONSTRAINED_BASE path.
13455         * tree-data-ref.h (struct indices): Remove
13456         unconstrained_base member.
13457         (DR_UNCONSTRAINED_BASE): Remove.
13459 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
13461         * dwarf2out.c: Remove block_map.
13462         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
13463         (gen_lexical_block_die): Same.
13464         (dwarf2out_function_decl): Remove block_map use.
13465         (dwarf2out_c_finalize): Same.
13466         * tree-core.h (struct tree_block): Add die field.
13467         * tree.h (BLOCK_DIE): New.
13469 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13471         PR target/65358
13472         * expr.c (memory_load_overlap): New function.
13473         (emit_push_insn): When pushing partial args to the stack would
13474         clobber the register part load the overlapping part into a pseudo
13475         and put it into the hard reg after pushing.  Change return type
13476         to bool.  Add bool argument.
13477         * expr.h (emit_push_insn): Change return type to bool.
13478         Add bool argument.
13479         * calls.c (expand_call): Cancel sibcall optimization when encountering
13480         partial argument on targets with ARGS_GROW_DOWNWARD and
13481         !STACK_GROWS_DOWNWARD.
13482         (emit_library_call_value_1): Update callsite of emit_push_insn.
13483         (store_one_arg): Likewise.
13485 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13487         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
13489 2015-05-27  Martin Liska  <mliska@suse.cz>
13491         * Makefile.in: Add additional dependencies related to memory report
13492         enhancement.
13493         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
13494         * bitmap.c (struct bitmap_descriptor_d): Remove.
13495         (struct loc): Likewise.
13496         (struct bitmap_desc_hasher): Likewise.
13497         (bitmap_desc_hasher::hash): Likewise.
13498         (bitmap_desc_hasher::equal): Likewise.
13499         (get_bitmap_descriptor): Likewise.
13500         (bitmap_register): User new memory descriptor API.
13501         (register_overhead): Likewise.
13502         (bitmap_find_bit): Register nsearches and search_iter statistics.
13503         (struct bitmap_output_info): Remove.
13504         (print_statistics): Likewise.
13505         (dump_bitmap_statistics): Use new memory descriptor.
13506         * bitmap.h (struct bitmap_usage): New class.
13507         * genmatch.c: Extend header file inclusion.
13508         * genpreds.c: Likewise.
13509         * ggc-common.c (struct ggc_usage): New class.
13510         (struct ggc_loc_desc_hasher): Remove.
13511         (ggc_loc_desc_hasher::hash): Likewise.
13512         (ggc_loc_desc_hasher::equal): Likewise.
13513         (struct ggc_ptr_hash_entry): Likewise.
13514         (struct ptr_hash_hasher): Likewise.
13515         (ptr_hash_hasher::hash): Likewise.
13516         (ptr_hash_hasher::equal): Likewise.
13517         (make_loc_descriptor): Likewise.
13518         (ggc_prune_ptr): Likewise.
13519         (dump_ggc_loc_statistics): Use new memory descriptor.
13520         (ggc_record_overhead): Likewise.
13521         (ggc_free_overhead): Likewise.
13522         (final_cmp_statistic): Remove.
13523         (cmp_statistic): Likewise.
13524         (ggc_add_statistics): Liekwise.
13525         (ggc_prune_overhead_list): Likewise.
13526         * hash-map-traits.h: New file.
13527         * hash-map.h (struct default_hashmap_traits): Move the traits to a
13528         separate header file.
13529         * hash-set.h: Pass memory statistics info to ctor.
13530         * hash-table.c (void dump_hash_table_loc_statistics): New function.
13531         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
13532         (hash_table::~hash_table): Register memory release operation.
13533         (hash_table::alloc_entries): Handle memory allocation operation.
13534         (hash_table::expand): Likewise.
13535         * inchash.c (iterative_hash_hashval_t): Move implementation to header
13536         file.
13537         (iterative_hash_host_wide_int): Likewise.
13538         * inchash.h (class hash): Likewise.
13539         * mem-stats-traits.h: New file.
13540         * mem-stats.h: New file.
13541         (mem_location): Add new class.
13542         (mem_usage): Likewise.
13543         (mem_alloc_description): Likewise.
13544         * sese.c: Add new header file inclusision.
13545         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
13546         and hash_set.
13547         * tree-sra.c: Add new header file inclusision.
13548         * vec.c (struct vec_descriptor): Remove.
13549         (hash_descriptor): Likewise.
13550         (struct vec_usage): Likewise.
13551         (struct ptr_hash_entry): Likewise.
13552         (hash_ptr): Likewise.
13553         (eq_ptr): Likewise.
13554         (vec_prefix::register_overhead): Use new memory descriptor API.
13555         (vec_prefix::release_overhead): Likewise.
13556         (add_statistics): Remove.
13557         (dump_vec_loc_statistics): Use new memory descriptor API.
13558         * vec.h (struct vec_prefix): Likewise.
13559         (va_heap::reserve): Likewise.
13560         (va_heap::release): Likewise.
13561         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
13563 2015-05-27  Richard Biener  <rguenther@suse.de>
13565         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
13566         earlier and remove ??? comment.
13567         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
13568         and got called from loop analysis bail out.  Always pass the SLP
13569         node to the vectorizable_* functions.
13570         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
13571         the premature SLP check here.
13572         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
13573         detected SLP stmts.
13574         (vect_detect_hybrid_slp_1): Likewise.
13576 2015-05-26  Jeff Law  <law@redhat.com>
13578         * combine.c (find_split_point): Verify that the shift count is a
13579         constant when choosing (plus (ashift ...)) as a split point.
13581         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
13582         No functional changes.
13584 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
13586         * ipa-polymorphic-call.c
13587         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
13588         case when call target is already known.
13590 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
13592         PR target/65979
13593         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
13594         take into account the case that operands[1] and operands[2]
13595         are the same register.
13597 2015-05-26  Michael Matz  <matz@suse.de>
13599         PR middle-end/66251
13601         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
13602         stores.
13603         (vect_create_vectorized_demotion_stmts): Always set
13604         STMT_VINFO_VEC_STMT, also with SLP.
13605         (vectorizable_store): Handle strided group stores.
13607 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13609         PR target/66049
13610         * config/aarch64/aarch64.md
13611         (*adds_shift_imm_<mode>):  New pattern.
13612         (*subs_shift_imm_<mode>):  Likewise.
13613         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
13614         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13615         (*add_uxt<mode>_shift2): Likewise.
13616         (*add_uxtsi_shift2_uxtw): Likewise.
13617         (*sub_uxt<mode>_shift2): Likewise.
13618         (*sub_uxtsi_shift2_uxtw): Likewise.
13620 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
13622         * config/rs6000/constraints.md (Y, U): Use match_test.
13624 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13626         PR target/52144
13627         * config/arm/arm.c (arm_option_check_internal)
13628         (arm_option_params_internal): Check opts->target_flags to set macros.
13629         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13630         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
13631         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13632         (builtin_define): Replaced with def_or_undef_macro.
13633         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13634         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
13635         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13636         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
13637         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
13638         (TARGET_ARM_FEATURE_LDREX_P)
13639         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
13640         * config/arm/arm-c.c (def_or_undef_macro): New function.
13641         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
13643 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13645         * c-common.h (builtin_define_with_int_value)
13646         (builtin_define_type_sizeof): Declare.
13647         * c-cppbuiltin.c (builtin_define_with_int_value)
13648         (builtin_define_type_sizeof): Externalize.
13649         (builtin_define_std): Cleanup declaration.
13650         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
13651         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
13652         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
13653         (builtin_define, builtin_assert): New macros.
13655 2015-05-26  Richard Biener  <rguenther@suse.de>
13657         PR tree-optimization/66142
13658         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
13659         MEM_REFs for the same base address.
13661 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13663         PR ipa/66181
13664         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
13666 2015-05-26  Jason Merrill  <jason@redhat.com>
13668         * configure.ac: Set CXXFLAGS for ISL test.
13669         * configure: Regenerate.
13671         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
13672         strstr and basename.
13673         * configure: Regenerate.
13675 2015-05-26  Richard Biener  <rguenther@suse.de>
13677         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
13678         X % C -> X & (C - 1) for C being a power-of two to ...
13679         * match.pd: ... patterns.
13681 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
13683         * match.pd (swapped_tcc_comparison): New operator list.
13684         (-A CMP -B): New simplification.
13685         * fold-const.c (fold_comparison): Remove corresponding code.
13687 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13689         * caller-save.c (init_caller_save): Base temporary register numbers
13690         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
13691         * cfgloopanal.c (init_set_costs): Likewise.
13692         * dojump.c (prefer_and_bit_test): Likewise.
13693         * expr.c (init_expr_target): Likewise.
13694         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13695         * lower-subreg.c (init_lower_subreg): Likewise.
13696         * postreload.c (reload_cse_regs_1): Likewise.
13698 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13700         * gensupport.h (compute_test_codes): Declare.
13701         * gensupport.c (compute_predicate_codes): Rename to...
13702         (compute_test_codes): ...this.  Generalize error message.
13703         (process_define_predicate): Update accordingly.
13704         * genpreds.c (compute_maybe_allows): Delete.
13705         (add_constraint): Use compute_test_codes to determine whether
13706         something can accept a SUBREG, REG or MEM.
13708 2015-05-26  Torvald Riegel  <triegel@redhat.com>
13710         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
13711         'memory model' to align with C++11; fix description of memory orders;
13712         fix a few typos.
13714 2015-05-26  Richard Biener  <rguenther@suse.de>
13716         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
13717         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
13718         detect whether we apply SLP.  Remove call to
13719         vect_update_slp_costs_according_to_vf.
13720         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
13721         vect_update_slp_costs_according_to_vf from here.  Dispatch
13722         to vect_slp_analyze_operations to analyze SLP stmts.
13723         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
13724         unused bb_vec_info parameter, adjust assert.
13725         (vect_slp_analyze_operations): Pass in the slp instance tree
13726         instead of bb_vec_info.
13727         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
13728         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
13730 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13732         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
13733         Q_REGS.  Expand comment.
13734         (REG_CLASS_NAMES): Ditto.
13735         (REG_CLASS_CONTENTS): Ditto.
13737 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
13739         PR target/66274
13740         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
13741         when LEGACY_INT_REGNO_P is processed.
13743 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13745         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
13747 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13749         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
13750         register if not marked dead/unused, before return.
13752 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13754         PR lto/66180
13755         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
13756         is set; check for assembler name at LTO time.
13757         (type_in_anonymous_namespace): Remove hacks, check that all
13758         anonymous types are called "<anon>"
13759         (odr_type_p): Simplify; add check for "<anon>"
13760         (odr_subtypes_equivalent): Add odr_type_p check.
13761         * tree.c (need_assembler_name_p): Even anonymous namespace needs
13762         assembler name.
13764 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13766         * ipa-utils.h (method_class_type): Remove.
13767         * cgraphunit.c (walk_polymorphic_call_targets): Use
13768         TYPE_METHOD_BASETYPE.
13769         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
13770         on main variants only.
13771         (method_class_type): Remove.
13772         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
13773         (build_type_inheritance_graph): Likewise.
13774         * ipa-icf.c (sem_function::equals_wpa): Likewise.
13775         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
13776         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
13778 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13780         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
13781         is_typedef_decl, typedef_variant_p): Constify.
13782         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
13783         is_typedef_decl, typedef_variant_p): Constify.
13785 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13787         * defaults.h (gen_tablejump): New function.
13788         (HAVE_tablejump): Add default value.
13789         * expr.c: Adjust.
13790         * stmt.c: Likewise.
13792 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13794         * defaults.h (gen_store_multiple): New function.
13795         (HAVE_store_multiple): Add default value.
13796         * expr.c (move_block_from_reg): Adjust.
13798 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13800         * defaults.h (gen_load_multiple): New function.
13801         (HAVE_load_multiple): Add default value.
13802         * expr.c (move_block_to_reg): Adjust.
13804 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13806         * defaults.h (gen_mem_signal_fence): New function.
13807         (HAVE_mem_signal_fence): Add default value.
13808         * optabs.c: Adjust.
13810 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13812         * defaults.h (gen_memory_barrier): New function.
13813         (HAVE_memory_barrier): Add default value.
13814         * optabs.c: Adjust.
13816 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13818         * defaults.h (gen_mem_thread_fence): New function.
13819         (HAVE_mem_thread_fence): Add default definition.
13820         * optabs.c: Adjust.
13822 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13824         * combine.c (find_split_point): Check the value of HAVE_lo_sum
13825         instead of if it is defined.
13826         (combine_simplify_rtx): Likewise.
13827         * lra-constraints.c (process_address_1): Likewise.
13828         * config/darwin.c: Adjust.
13829         * genconfig.c (main): Always define HAVE_lo_sum.
13831 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13833         * genmatch.c (parser::parse_operation): Reject expanding
13834         operator-list inside 'for'.
13836 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13838         * genmatch.c (parser::parse_for): Reject iterator if used as
13839         operator-list.
13841 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13843         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
13844         after end of id-list.
13846 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13848         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
13849         we do not try to compute canonical type for type that does not need
13850         alias set.
13851         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
13852         FUNCITON_TYPE.
13853         * tree.h (type_with_alias_set_p): New.
13855 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13857         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
13858         function attributes.
13859         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
13861 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
13863         * Makefile.in (check_gcc_parallelize): Delete.
13864         (lang_checks_parallelized): Update comment.
13866 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
13868         PR rtl-optimization/66237
13869         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
13870         location of an "as_a" cast.
13872 2015-05-22  Jeff Law  <law@redhat.com>
13874         * config/pa/pa.md (non-canonical shift-add insns): Remove.
13875         (peepholes with non-canonical RTL sources): Remove.
13876         (peepholes for indexed stores of FP regs in integer modes): Match and
13877         generate canonical RTL.
13879 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13881         PR tree-optimization/63387
13882         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
13883         ((x ord x) & (y ord y) -> (x ord y),
13884         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
13885         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
13886         vectors like scalars.
13888 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13890         * convert.c (convert_to_integer, convert_to_vector): Include the
13891         types in the error message.
13893 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13895         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
13896         simplifications.
13898 2015-05-22  Jeff Law  <law@redhat.com>
13900         * config/pa/pa.md (integer_indexed_store splitters): Use
13901         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
13902         insns -- adjusting the constant 2nd operand accordingly.
13904         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
13905         (plus (ashift X log2) Y) if it is a split point.
13907         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
13908         out of hppa_legitimize_address to handle both forms of a multiply
13909         by 2, 4 or 8.
13910         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
13911         Always generate the ASHIFT variant as the result is not directly
13912         used in a MEM.  Update comments and refactor slightly to improve
13913         readability.
13915 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13917         PR target/65491
13918         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
13919         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
13920         (aarch64_composite_type_p): Return false if given type and mode are
13921         for a short vector.
13923 2015-05-22  Richard Biener  <rguenther@suse.de>
13925         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
13926         member.
13927         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
13928         patterns when determining whether SLP is pure.
13929         (vect_is_slp_reduction): Remove check for pattern stmts.
13930         (vect_is_simple_reduction_1): Remove dead code.
13931         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
13932         (vect_get_and_check_slp_defs): Pass in the stmt number.
13933         Allow the first def in a reduction to be not a pattern stmt when
13934         the rest of the stmts def are patterns.
13935         (vect_build_slp_tree_1): Allow tcc_expression codes like
13936         SAD_EXPR and DOT_PROD_EXPR.
13937         (vect_build_slp_tree): Adjust.
13938         (vect_analyze_slp): Refactor and move BB vect error message ...
13939         (vect_slp_analyze_bb_1): ... here.
13941 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
13943         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
13944         for CSWTCH temporary.
13946 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13948         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
13949         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
13950         unknown unspecs.
13952 2015-05-22  Richard Biener  <rguenther@suse.de>
13954         PR tree-optimization/66251
13955         * tree-vect-stmts.c (vectorizable_conversion): Properly
13956         set STMT_VINFO_VEC_STMT even for the SLP case.
13958 2015-05-22  Marek Polacek  <polacek@redhat.com>
13960         * doc/extend.texi: Use @pxref instead of @xref.
13962 2015-05-22  hiraditya  <hiraditya@msn.com>
13964         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
13965         redundant if.
13967 2015-05-22  Richard Biener  <rguenther@suse.de>
13969         PR tree-optimization/65701
13970         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13971         Move peeling cost models into one place.  Peel for alignment
13972         for single loads only if an aligned load is cheaper than
13973         an unaligned load.
13975 2015-05-22  Marek Polacek  <polacek@redhat.com>
13977         PR c/47043
13978         * doc/extend.texi (Enumerator Attributes): New section.
13979         Document syntax of enumerator attributes.
13981 2015-05-22  Richard Biener  <rguenther@suse.de>
13983         * tree-vect-loop.c (get_reduction_op): New function.
13984         (vect_model_reduction_cost): Use it, add reduc_index parameter.
13985         Make ready for BB reductions.
13986         (vect_create_epilog_for_reduction): Use get_reduction_op.
13987         (vectorizable_reduction): Init reduc_index to a valid value.
13988         Adjust vect_model_reduction_cost call.
13989         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
13990         operand for reduction defaults.  Add SAD_EXPR support.
13991         Assert we have a neutral op for SLP reductions.
13992         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
13993         walking pattern stmt ops only recurse to SSA names.
13995 2015-05-22  Richard Biener  <rguenther@suse.de>
13997         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
13998         assert with guard, remove check on detected reduction.
13999         (vect_recog_sad_pattern): Likewise.
14000         (vect_recog_widen_sum_pattern): Likewise.
14002 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14004         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
14005         __always_inline__ attribute.
14006         (vaesdq_u8): Likewise.
14007         (vaesmcq_u8): Likewise.
14008         (vaesimcq_u8): Likewise.
14009         (vsha1cq_u32): Likewise.
14010         (vsha1mq_u32): Likewise.
14011         (vsha1pq_u32): Likewise.
14012         (vsha1h_u32): Likewise.
14013         (vsha1su0q_u32): Likewise.
14014         (vsha1su1q_u32): Likewise.
14015         (vsha256hq_u32): Likewise.
14016         (vsha256h2q_u32): Likewise.
14017         (vsha256su0q_u32): Likewise.
14018         (vsha256su1q_u32): Likewise.
14019         (vmull_p64): Likewise.
14020         (vmull_high_p64): Likewise.
14022 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14024         * final.c (final_scan_insn): Don't check HAVE_peephole with the
14025         preprocessor.
14026         * output.h: Likewise.
14027         * genconfig.c (main): Alwways define HAVE_peephole.
14028         * genpeep.c: Don't emit checks of HAVE_peephole.
14030 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14032         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
14033         check HAVE_conditional_move with the preprocessor.
14035 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14037         * genconfig.c (main): Always define HAVE_conditional_move.
14038         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
14039         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
14040         is defined.
14042 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14044         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
14045         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
14046         and FRAME_POINTER_REGNUM with the preprocessor.
14048 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14050         * defaults.h: Add default for STACK_PUSH_CODE.
14051         * expr.c: Don't redefine STACK_PUSH_CODE.
14052         * recog.c: Likewise.
14054 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14056         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
14057         sched-deps.c: Use if instead of preprocessor checks with
14058         STACK_GROWS_DOWNWARD.
14060 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14062         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
14063         is defined.
14064         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
14065         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
14066         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
14067         * doc/tm.texi: Regenerate.
14069 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14071         PR target/66232
14072         * config/i386/constraints.md (Bg): New constraint for GOT memory
14073         operand.
14074         * config/i386/i386.md (*call_got_x32): New pattern.
14075         (*call_value_got_x32): Likewise.
14076         * config/i386/predicates.md (GOT_memory_operand): New predicate.
14078 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
14080         PR tree-optimization/66233
14081         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14082         Simplify.
14084 2015-05-21  Jeff Law  <law@redhat.com>
14086         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
14087         than MULT for shadd sequences.
14089 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
14091         * alias.c (alias_stats): New static var.
14092         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
14093         (dump_alias_stats_in_alias_c): New function.
14094         * alias.h (dump_alias_stats_in_alias_c): Declare.
14095         * tree-ssa-alias.c (dump_alias_stats): Call it.
14097 2015-05-08  Michael Matz  <matz@suse.de>
14099         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
14100         to strided_p.
14101         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
14102         (STMT_VINFO_STRIDED_P): ... this.
14103         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
14104         (vect_verify_datarefs_alignment): Likewise.
14105         (vect_enhance_data_refs_alignment): Likewise.
14106         (vect_analyze_data_ref_access): Likewise.
14107         (vect_analyze_data_refs): Accept strided stores.
14108         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
14109         (vect_model_load_cost): Adjust for macro rename.
14110         (vectorizable_mask_load_store): Likewise.
14111         (vectorizable_load): Likewise.
14112         (vectorizable_store): Open code strided stores.
14114 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14116         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
14117         Document sqrt_insn.
14119 2015-05-21  Richard Biener  <rguenther@suse.de>
14121         PR c++/66211
14122         * match.pd: Guard pattern optimzing (int)(float)int
14123         conversions to apply only on GIMPLE.
14125 2015-05-21  Jeff Law  <law@redhat.com>
14127         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
14128         multiply-accumulate/shift-add insn generation.
14130 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
14132         PR target/54236
14133         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
14134         operands[1] are the same.
14136 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
14138         PR middle-end/66221
14139         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
14140         build_distinct_type_copy to copy bounds.
14142 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14144         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
14145         Change to unsigned int.
14147 2015-05-20  Jeff Law  <law@redhat.com>
14149         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
14150         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
14151         (pa_shadd_constant_p): Allow constants for shadd insns rather
14152         than valid scaling constants for memory addresses.
14153         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
14154         * config/pa/predicates.md (mem_shadd_operand): New predicate.
14155         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
14156         (shift-add insns using ASHIFT): New patterns.
14158 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
14160         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
14161         feasible.
14162         (fix_up_fall_thru_edges): Likewise.
14163         (fix_crossing_conditional_branches): Likewise. Promote jump targets
14164         from to rtx_insn to rtx_code_label where feasible.
14165         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
14166         gen_move_insn (returned type changed to rtx_insn).
14167         * builtins.c (expand_errno_check): Fix arguments of
14168         do_compare_rtx_and_jump (now expects rtx_code_label).
14169         (expand_builtin_acc_on_device): Likewise.
14170         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
14171         invert_jump (now exprects rtx_jump_insn).
14172         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
14173         (construct_init_block): Use rtx_code_label.
14174         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
14175         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
14176         calling redirect_jump.
14177         (patch_jump_insn): Likewise.
14178         (redirect_branch_edge): Likewise.
14179         (force_nonfallthru_and_redirect): Likewise.
14180         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
14181         when suitable.
14182         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
14183         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
14184         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
14185         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
14186         to store the value retured by gen_label_rtx.
14187         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
14188         rtx_jump_insn.
14189         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
14190         (split_branches): Fix calls of redirect_jump.
14191         * dojump.c (jumpifnot): Promote argument type from rtx to
14192         rtx_code_label.
14193         (jumpifnot_1): Likewise.
14194         (jumpif): Likewise.
14195         (jumpif_1): Likewise.
14196         (do_jump_1): Likewise.
14197         (do_jump): Likewise. Use rtx_code_label when feasible.
14198         (do_jump_by_parts_greater_rtx): Likewise.
14199         (do_jump_by_parts_zero_rtx): Likewise.
14200         (do_jump_by_parts_equality_rtx): Likewise.
14201         (do_compare_rtx_and_jump): Likewise.
14202         * dojump.h: Update function prototypes.
14203         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
14204         returns rtx_insn).
14205         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
14206         rtx_jump_insn.
14207         (emit_label_before): Likewise.
14208         (emit_jump_insn_after_noloc): Likewise.
14209         (emit_jump_insn_after_setloc): Likewise.
14210         (emit_jump_insn_after): Likewise
14211         (emit_jump_insn_before_setloc): Likewise.
14212         (emit_jump_insn_before): Likewise.
14213         (emit_label_before): Promote return type to rtx_code_label.
14214         (emit_label): Likewise.
14215         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
14216         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
14217         gen_move_insn.
14218         (emit_stack_restore): Likewise.
14219         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
14220         (do_cmp_and_jump): Likewise.
14221         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
14222         from rtx to rtx_code_label.
14223         (gen_move_insn_uncast): New function.
14224         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
14225         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
14226         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
14227         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
14228         invert_jump_1 and redirect_jump_1.
14229         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
14230         do_compare_rtx_and_jump.
14231         (expand_addsub_overflow): Likewise.
14232         (expand_neg_overflow): Likewise.
14233         (expand_mul_overflow): Likewise.
14234         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
14235         return value of gen_move_insn.
14236         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
14237         * loop-doloop.c (add_test): Use rtx_code_label.
14238         (doloop_modify): Likewise.
14239         (doloop_optimize): Likewise.
14240         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
14241         * lra-constraints.c (emit_spill_move): Remove cast of value returned
14242         by gen_move_insn.
14243         (inherit_reload_reg): Add cast when calling dump_insn_slim.
14244         (split_reg): Likewise.
14245         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
14246         gen_move_insn.
14247         * optabs.c (expand_binop_directly): Remove casts of values returned by
14248         maybe_gen_insn.
14249         (expand_unop_direct): Likewise.
14250         (expand_abs): Likewise.
14251         (maybe_emit_unop_insn): Likewise.
14252         (maybe_gen_insn): Promote return type to rtx_insn.
14253         * optabs.h: Update prototype of maybe_gen_insn.
14254         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
14255         redundant cast.
14256         * recog.c (struct peep2_insn_data): Promote type of insn field to
14257         rtx_insn.
14258         (peep2_reinit_state): Use NULL instead of NULL_RTX.
14259         (peep2_attempt): Remove casts of insn in peep2_insn_data.
14260         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
14261         * recog.h (struct insn_gen_fn): Promote return types of function
14262         pointers and operator ().from rtx to rtx_insn.
14263         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
14264         (fill_eager_delay_slots): Likewise.
14265         (relax_delay_slots): Likewise.
14266         (make_return_insns): Likewise.
14267         (dbr_schedule): Likewise.
14268         (optimize_skips): Likewise.
14269         (reorg_redirect_jump): Likewise.
14270         (fill_slots_from_thread): Likewise.
14271         * reorg.h: Update prototypes.
14272         * resource.c (find_dead_or_set_registers): Use dyn_cast to
14273         rtx_jump_insn instead of check.  Use it's jump_target method.
14274         * rtl.h (rtx_jump_insn::jump_label): Define new method.
14275         (rtx_jump_insn::jump_target): Define new method.
14276         (rtx_jump_insn::set_jump_target): Define new method.
14277         * rtlanal.c (tablejump_p): Promote type of one local variable.
14278         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
14279         (sched_analyze_insn): Likewise.
14280         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
14281         (print_insn): Likewise.
14282         * stmt.c (label_rtx): Promote return type to rtx_insn.
14283         (force_label_rtx): Likewise.
14284         (jump_target_rtx): Define new function.
14285         (expand_label): Use it, get rid of one cast.
14286         (expand_naked_return): Promote rtx to rtx_code_label.
14287         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
14288         (expand_case): Use rtx_code_label instread of rtx where feasible.
14289         (expand_sjlj_dispatch_table): Likewise.
14290         (emit_case_nodes): Likewise.
14291         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
14292         * store-motion.c (insert_store): Make use of new return type of
14293         gen_move_insn and remove a cast.
14294         (replace_store_insn): Likewise.
14296 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
14298         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
14299         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
14301 2015-05-20  Jeff Law  <law@redhat.com>
14303         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
14304         dispose of the jump thread path when the jump threading
14305         opportunity is cancelled.
14307 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14309         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
14310         when printing the caret character.
14312 2015-05-20  Marek Polacek  <polacek@redhat.com>
14314         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
14316 2015-05-20  Marek Polacek  <polacek@redhat.com>
14318         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
14319         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
14320         * gimple-fold.c (canonicalize_bool): Likewise.
14321         (same_bool_result_p): Likewise.
14322         * tree-if-conv.c (parse_predicate): Likewise.
14324 2015-05-20  Marek Polacek  <polacek@redhat.com>
14326         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
14327         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
14329 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14331         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
14332         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
14333         values.
14335 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
14337         * config/mips/mips.h (micromips_globals): Declare.
14339 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
14341         * timevar.def (TV_INITIALIZE_RTL): New.
14342         * toplev.c (initialize_rtl): Use an auto_timevar to account this
14343         function's time to TV_INITIALIZE_RTL.
14345 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14347         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
14348         gimple_build_nop calls.
14349         (chkp_find_bounds_for_elem): Likewise.
14350         (chkp_get_zero_bounds): Likewise.
14351         (chkp_get_none_bounds): Likewise.
14352         (chkp_get_bounds_by_definition): Likewise.
14353         (chkp_generate_extern_var_bounds): Likewise.
14354         (chkp_get_bounds_for_decl_addr): Likewise.
14355         (chkp_get_bounds_for_string_cst): Likewise.
14357 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
14359         PR tree-optimization/65447
14360         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
14361         (dump_use, dump_uses): Support to dump sub use.
14362         (record_use): New parameters to support sub use.  Remove call to
14363         dump_use.
14364         (record_sub_use, record_group_use): New functions.
14365         (compute_max_addr_offset, split_all_small_groups): New functions.
14366         (group_address_uses, rewrite_use_address): New functions.
14367         (strip_offset): New declaration.
14368         (find_interesting_uses_address): Call record_group_use.
14369         (add_candidate): New assertion.
14370         (infinite_cost_p): Move definition forward.
14371         (add_costs): Check INFTY cost and return immediately.
14372         (get_computation_cost_at): Clear setup cost and dependent bitmap
14373         for sub uses.
14374         (determine_use_iv_cost_address): Compute cost for sub uses.
14375         (rewrite_use_address_1): Rename from old rewrite_use_address.
14376         (free_loop_data): Free sub uses.
14377         (tree_ssa_iv_optimize_loop): Call group_address_uses.
14379 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14380             Jim Wilson  <jim.wilson@linaro.org>
14382         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
14383         new  fields loadv and storev.
14384         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
14385         Initialize loadv and storev.
14386         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
14387         (cortexa53_extra_costs): Likewise.
14388         (cortexa57_extra_costs): Likewise.
14389         (xgene1_extra_costs): Likewise.
14390         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
14391         rtx_costs.
14393 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14395         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
14396          storev.
14397         (cortexa8_extra_costs): Likewise.
14398         (cortexa5_extra_costs): Likewise.
14399         (cortexa7_extra_costs): Likewise.
14400         (cortexa12_extra_costs): Likewise.
14401         (cortexa15_extra_costs): Likewise.
14402         (v7m_extra_costs): Likewise.
14404 2015-05-20  Jeff Law  <law@redhat.com>
14406         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
14407         instead of open-coded version.  Also delete the jump thread created
14408         within this function.
14410 2015-05-20  Alan Modra  <amodra@gmail.com>
14412         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
14413         stack adjusting insn.  Formatting.
14414         (rs6000_emit_prologue): Track stack adjusting insn, and use of
14415         r12.  If possible, emit first -fsplit-stack arg pointer insn
14416         before stack adjust.  Don't use r12 to save cr if split-stack.
14418 2015-05-20  Alan Modra  <amodra@gmail.com>
14420         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
14421         Define.
14422         (rs6000_supports_split_stack): New function.
14423         * gcc/config/rs6000/rs6000.c (machine_function): Add
14424         split_stack_arg_pointer.
14425         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
14426         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
14427         rather than virtual_incoming_args_rtx.
14428         (rs6000_va_start): Likewise.
14429         (split_stack_arg_pointer_used_p): New function.
14430         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
14431         (morestack_ref): New var.
14432         (gen_add3_const, rs6000_expand_split_stack_prologue,
14433         rs6000_internal_arg_pointer, rs6000_live_on_entry,
14434         rs6000_split_stack_space_check): New functions.
14435         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
14436         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
14437         (UNSPECV_SPLIT_STACK_RETURN): Define.
14438         (split_stack_prologue, load_split_stack_limit,
14439         load_split_stack_limit_di, load_split_stack_limit_si,
14440         split_stack_return, split_stack_space_check): New expands and insns.
14441         * gcc/config/rs6000/rs6000-protos.h
14442         (rs6000_expand_split_stack_prologue): Declare.
14443         (rs6000_split_stack_space_check): Declare.
14445 2015-05-20  Alan Modra  <amodra@gmail.com>
14447         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
14448         (direct_return): Test vrsave_size rather than vrsave_mask.
14449         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
14450         (rs6000_emit_epilogue): Likewise.
14452 2015-05-20  Alan Modra  <amodra@gmail.com>
14454         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
14455         when not saving registers.
14456         (debug_stack_info): Adjust to omit printing unused offsets,
14457         as before.
14458         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
14459         expression.
14461 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14463         PR c++/65835
14464         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
14465         value_type to const char *.
14467 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
14469         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
14470         to build a biarch toolchain again.
14472 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14474         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
14475         or implicit declarations.
14476         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
14477         into it.
14478         (get_odr_type): Check type has linkage before adding bases.
14479         (register_odr_type): Check that type has linkage before adding it.
14480         (type_known_to_have_no_deriavations_p): Rename to ..
14481         (type_known_to_have_no_derivations_p): This one.
14482         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
14483         (type_known_to_have_no_derivations_p): This one.
14484         * ipa-polymorphic-call.c
14485         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
14486         type has linkage.
14488 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14490         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
14491         (layout_type): Use RECORD_OR_UNION_TYPE_P.
14493 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14495         * config/s390/s390.c (s390_vector_bool_type_p): New function.
14496         (s390_invalid_binary_op): New function.
14497         (TARGET_INVALID_BINARY_OP): Define macro.
14499 2015-05-19  David Sherwood  <david.sherwood@arm.com>
14501         * loop-invariant.c (create_new_invariant): Don't calculate address cost
14502         if mode is not a scalar integer.
14503         (get_inv_cost): Increase computational cost for unused invariants.
14505 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14507         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
14508         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
14509         * config/s390/s390-builtin-types.def: New file.
14510         * config/s390/s390-builtins.def: New file.
14511         * config/s390/s390-builtins.h: New file.
14512         * config/s390/s390-c.c: New file.
14513         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
14514         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
14515         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
14516         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
14517         prototypes.
14518         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
14519         Include.
14520         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
14521         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
14522         variable definitions.
14523         (s390_const_operand_ok): New function.
14524         (s390_expand_builtin): Rewrite.
14525         (s390_init_builtins): New function.
14526         (s390_handle_vectorbool_attribute): New function.
14527         (s390_attribute_table): Add s390_vector_bool attribute.
14528         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
14529         (s390_branch_condition_mask): Generate masks for new modes.
14530         (s390_expand_vec_compare_cc): New function.
14531         (s390_mangle_type): Add mangling for vector bool types.
14532         (enum s390_builtin): Remove.
14533         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
14534         efpc builtins.
14535         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
14536         s390_cpu_cpp_builtins.
14537         (REGISTER_TARGET_PRAGMAS): New macro.
14538         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
14539         (insn_cmp mode attribute): Add new CC modes.
14540         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
14541         (lcbb): New pattern definition.
14542         * config/s390/s390intrin.h: Include vecintrin.h.
14543         * config/s390/t-s390: New file.
14544         * config/s390/vecintrin.h: New file.
14545         * config/s390/vector.md: Include vx-builtins.md.
14546         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
14547         support.
14549 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14551         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
14552         CCVFHE.
14553         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
14554         (s390_select_ccmode): Likewise.
14555         (s390_canonicalize_comparison): Swap operands if necessary.
14556         (s390_expand_vec_compare_scalar): Expand DFmode compare using
14557         single element vector instructions.
14558         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
14559         (s390_branch_condition_mask): Generate CC masks for the new modes.
14560         * config/s390/s390.md (v0, vf, vd): New mode attributes.
14561         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
14562         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
14563         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
14564         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
14565         (*extend<DSF:mode><BFP:mode>2): New insn definition.
14566         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
14567         (extend<DSF:mode><BFP:mode>2): Turn into expander.
14568         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
14569         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
14570         (sqrt<mode>2): Add vector instruction.
14572 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14574         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
14575         constraints.
14576         * config/s390/predicates.md (const0_operand, constm1_operand)
14577         (constable_operand): Accept vector operands.
14578         * config/s390/s390-modes.def: Add supported vector modes.
14579         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
14580         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
14581         (s390_bytemask_vector_p, s390_expand_vec_strlen)
14582         (s390_expand_vec_compare, s390_expand_vcond)
14583         (s390_expand_vec_init): Add prototypes.
14584         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
14585         (s390_vector_mode_supported_p): New function.
14586         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
14587         (s390_contiguous_bitmask_vector_p): New function.
14588         (s390_bytemask_vector_p): New function.
14589         (s390_split_ok_p): Vector regs don't work either.
14590         (regclass_map): Add VEC_REGS.
14591         (s390_legitimate_constant_p): Handle vector constants.
14592         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
14593         (legitimate_reload_vector_constant_p): New function.
14594         (s390_preferred_reload_class): Handle CONST_VECTOR.
14595         (s390_reload_symref_address):  Likewise.
14596         (s390_secondary_reload): Vector memory instructions only support
14597         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
14598         (s390_emit_ccraw_jump): New function.
14599         (s390_expand_vec_strlen): New function.
14600         (s390_expand_vec_compare): New function.
14601         (s390_expand_vcond): New function.
14602         (s390_expand_vec_init): New function.
14603         (s390_dwarf_frame_reg_mode): New function.
14604         (print_operand): Handle addresses with 'O' and 'R' constraints.
14605         (NR_C_MODES, constant_modes): Add vector modes.
14606         (s390_output_pool_entry): Handle vector constants.
14607         (s390_hard_regno_mode_ok): Handle vector registers.
14608         (s390_class_max_nregs): Likewise.
14609         (s390_cannot_change_mode_class): New function.
14610         (s390_invalid_arg_for_unprototyped_fn): New function.
14611         (s390_function_arg_vector): New function.
14612         (s390_function_arg_float): Remove size variable.
14613         (s390_pass_by_reference): Handle vector arguments.
14614         (s390_function_arg_advance): Likewise.
14615         (s390_function_arg): Likewise.
14616         (s390_return_in_memory): Vector values are returned in a VR if
14617         possible.
14618         (s390_function_and_libcall_value): Handle vector arguments.
14619         (s390_gimplify_va_arg): Likewise.
14620         (s390_call_saved_register_used): Consider the arguments named.
14621         (s390_conditional_register_usage): Disable v16-v31 for non-vec
14622         targets.
14623         (s390_preferred_simd_mode): New function.
14624         (s390_support_vector_misalignment): New function.
14625         (s390_vector_alignment): New function.
14626         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
14627         (TARGET_VECTOR_MODE_SUPPORTED_P)
14628         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
14629         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
14630         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
14631         (TARGET_VECTOR_ALIGNMENT): Define target macro.
14632         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
14633         (FIRST_PSEUDO_REGISTER): Increase value.
14634         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
14635         (VECTOR_REG_P): Define macros.
14636         (FIXED_REGISTERS, CALL_USED_REGISTERS)
14637         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
14638         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
14639         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
14640         Add vector registers.
14641         (CANNOT_CHANGE_MODE_CLASS): Call C function.
14642         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
14643         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
14644         memory.
14645         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
14646         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
14647         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
14648         (VR*_REGNUM): New constants.
14649         (ALL): New mode iterator.
14650         (INTALL): Remove mode iterator.
14651         Include vector.md.
14652         (movti): Implement TImode moves for VRs.
14653         Disable TImode splitter for VR targets.
14654         Implement splitting TImode GPR<->VR moves.
14655         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
14656         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
14657         reload<mode>_la_in, reload<mode>_la_out.
14658         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
14659         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
14660         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
14661         (mov<mode> SF SD): Prefer lder, lde for loading.
14662         Add lrl and strl instructions.
14663         Add vector instructions.
14664         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
14665         Call s390_expand_vec_strlen on z13.
14666         (*cc_to_int): Change predicate to nonimmediate_operand.
14667         (addti3): Rename to *addti3.  New expander.
14668         (subti3): Rename to *subti3.  New expander.
14669         * config/s390/vector.md: New file.
14671 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14673         * common/config/s390/s390-common.c (processor_flags_table): Add
14674         z13.
14675         * config.gcc: Add z13.
14676         * config/s390/s390-opts.h (enum processor_type): Add
14677         PROCESSOR_2964_Z13.
14678         * config/s390/s390.c (s390_adjust_priority): Check for
14679         PROCESSOR_2964_Z13.
14680         (s390_reorg): Likewise.
14681         (s390_sched_reorder): Likewise.
14682         (s390_sched_variable_issue): Likewise.
14683         (s390_loop_unroll_adjust): Likewise.
14684         (s390_option_override): Likewise. Default to -mvx when available.
14685         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
14686         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
14687         (TARGET_VX_ABI): Define macros.
14688         macros.
14689         (TARGET_DEFAULT): Add MASK_OPT_VX.
14690         * config/s390/s390.md ("cpu" attribute): Add z13.
14691         ("cpu_facility" attribute): Add vec.
14692         * config/s390/s390.opt (processor_type): Add z13.
14693         (mvx): New options.
14694         * doc/invoke.texi: Add z13 option for -march.
14696 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14698         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
14699         mode check to make sure that only scalar integer values are
14700         accepted.
14702 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14704         * tree.c (verify_type_variant): Fix #undef.
14705         (gimple_canonical_types_compatible_p): Move here from lto.c
14706         (verify_type): Verify TYPE_CANONICAL compatibility.
14707         * tree.h (gimple_canonical_types_compatible_p): Declare.
14709 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14711         PR middle-end/66199
14712         * tree.h (OMP_TEAMS_COMBINED): Define.
14713         * gimplify.c (enum gimplify_omp_var_data): Add
14714         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
14715         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
14716         (omp_notice_variable): Accept both ORT_TEAMS
14717         and ORT_COMBINED_TEAMS.  Don't recurse if
14718         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
14719         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
14720         GOVD_FIRSTPRIVATE.
14721         (omp_no_lastprivate): New function.
14722         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
14723         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
14724         notice_outer and set appropriate bits, otherwise make
14725         sure default(none) combined constructs won't complain.
14726         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
14727         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
14728         omp_no_lastprivate either remove the clause or turn it
14729         into OMP_CLAUSE_PRIVATE.
14730         (gimplify_omp_for): Fix up handling of implicit
14731         lastprivate or linear iterators.
14732         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
14733         ORT_COMBINED_TEAMS.
14734         * omp-low.c (lower_omp_for_lastprivate): For combined
14735         for simd use fd.loop.n2 from the for rather than simd.
14737 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14739         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
14740         instead of gen_rtx_raw_REG.
14741         (cris_expand_epilogue): Likewise.
14742         * config/microblaze/microblaze.c (microblaze_classify_address):
14743         Likewise.
14744         * config/sparc/sparc.md: Likewise.
14746 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
14748         * config/alpha/alpha.c (alpha_legitimize_reload_address)
14749         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
14750         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
14751         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
14752         Use CASE_CONST_SCALAR_INT.
14753         (print_operand) <case 'M'>: Use mode_width_operand to check the
14754         value of the constant.
14755         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
14756         * config/alpha/predicates.md (input_operand): Use general_operand
14757         instead of match_code as operand check.
14758         (symbolic_operand): Use match_code with subexpression digits.
14759         * config/alpha/constraints.md (Q): Ditto.
14761 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14763         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
14765 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14767         * config/s390/s390.c (s390_secondary_reload): Fix check for
14768         load/store relative.
14770 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14772         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
14773         alternative_mask to uint64_t.
14775 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14777         PR tree-optimization/66187
14778         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
14779         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
14780         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
14782 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
14784         * diagnostic.c (diagnostic_report_current_module): Strengthen
14785         local "new_map" from const line_map * to
14786         const line_map_ordinary *.
14787         * genmatch.c (error_cb): Likewise for local "map".
14788         (output_line_directive): Likewise for local "map".
14789         * input.c (expand_location_1): Likewise for local "map".
14790         Pass NULL rather than &map to
14791         linemap_unwind_to_first_non_reserved_loc, since the value is never
14792         read from there, and the value written back not read from here.
14793         (is_location_from_builtin_token): Strengthen local "map" from
14794         const line_map * to const line_map_ordinary *.
14795         (dump_location_info): Strengthen locals "map" from
14796         line_map *, one to const line_map_ordinary *, the other
14797         to const line_map_macro *.
14798         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
14799         const line_map * to const line_map_macro *.
14800         (maybe_unwind_expanded_macro_loc): Add a call to
14801         linemap_check_macro when writing to the "map" field of the
14802         loc_map_pair.
14803         Introduce local const line_map_ordinary * "ord_map", using it in
14804         place of "map" in the part of the function where we know we have
14805         an ordinary map.  Strengthen local "m" from const line_map * to
14806         const line_map_ordinary *.
14808 2015-05-19  Nick Clifton  <nickc@redhat.com>
14810         PR target/66156
14811         * config/msp430/msp430.md (zero_extendhisi2): Add support for
14812         separate source and destination registers.
14814 2015-05-19  Richard Biener  <rguenther@suse.de>
14816         PR tree-optimization/66165
14817         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
14818         for no load permutation.
14820         PR tree-optimization/66185
14821         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
14822         when building the SLP node from scalars.
14824 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14825             Tristan Gingold  <gingold@adacore.com>
14827         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
14828         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
14829         (expand_stack_restore): Call record_new_stack_level.
14830         (expand_stack_save): Do not call do_pending_stack_adjust.
14831         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
14832         * calls.c (expand_call): Call record_new_stack_level for alloca.
14833         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
14834         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
14835         (update_sjlj_context): New global function.
14836         * except.h (update_sjlj_context): Declare.
14837         * explow.c (record_new_stack_level): New global function.
14838         (allocate_dynamic_stack_space): Call record_new_stack_level.
14839         * explow.h (record_new_stack_level): Declare.
14840         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
14841         * cfgrtl.c (duplicate_insn_chain): Likewise.
14843 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14845         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
14846         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
14847         STACK_GROWS_DOWNWARD as normal if.
14848         (expand_call): Likewise.
14850 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
14852         PR target/54236
14853         * config/sh/sh.md (*round_int_even): New insn_and_split and
14854         accompanying new unnamed split.
14856 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14858         * bitmap.c (bitmap_set_range): Handle count==1 specially.
14859         (bitmap_clear_range): Likewise.
14860         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
14861         bitmap_set_range unconditionally.
14862         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14863         * df-scan.c (df_mark_reg): Likewise.
14864         * haifa-sched.c (setup_ref_regs): Likewise.
14865         * sched-rgn.c (update_live_1): Likewise.
14867 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14869         * regs.h (END_HARD_REGNO): Delete.
14870         (END_REGNO): Move to...
14871         * rtl.h: ...here.
14872         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
14873         * caller-save.c (mark_set_regs): Likewise.
14874         * combine.c (move_deaths, distribute_notes): Likewise.
14875         * cse.c (invalidate, invalidate_for_call): Likewise.
14876         * df-scan.c (df_ref_record): Likewise.
14877         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
14878         (record_last_reg_set_info): Likewise.
14879         * reg-stack.c (convert_regs_exit): Likewise.
14880         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
14881         * resource.c (update_live_status): Likewise.
14882         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
14884 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14886         * rtl.h (reg_info): Add an nregs field.
14887         (REG_NREGS): Use it.
14888         (SET_REGNO_RAW): Delete.
14889         (set_regno_raw): New function.
14890         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
14891         (END_REGNO): Redefine in terms of REG_NREGS.
14892         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
14893         SET_REGNO_RAW.
14894         * emit-rtl.c (set_mode_and_regno): Likewise.
14895         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
14896         instead of SET_REGNO_RAW.
14898 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14900         * rtl.h (PUT_MODE_RAW): New macro.
14901         (PUT_REG_NOTE_KIND): Use it.
14902         (set_mode_and_regno): Declare.
14903         (gen_raw_REG): Change regno to "unsigned int".
14904         (gen_rtx_REG): Change "unsigned" to "unsigned int".
14905         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
14906         use set_mode_and_regno to change the mode of registers.
14907         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
14908         * emit-rtl.c (set_mode_and_regno): New function.
14909         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
14910         * caller-save.c (reg_save_code): Use set_mode_and_regno.
14911         * expr.c (init_expr_target): Likewise.
14912         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14913         * postreload.c (reload_cse_simplify_operands): Likewise.
14915 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14917         * caller-save.c (init_caller_save): Use word_mode and
14918         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
14919         * expr.c (init_expr_target): Likewise.
14920         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14921         * postreload.c (reload_cse_regs_1): Likewise.
14923 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14925         * rtl.def (REG): Change format to "r".
14926         * rtl.h (rtunion): Remove rt_reg.
14927         (reg_info): New structure.
14928         (rtx_def): Add reg field to main union.
14929         (X0REGATTR): Delete.
14930         (REG_CHECK): New macro.
14931         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
14932         * rtl.c (rtx_format): Document "r".
14933         (rtx_code_size): Handle REG specially.
14934         * gengenrtl.c (special_format): Return true for formats
14935         that include 'r'.
14936         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
14937         Deal with REG_ATTRS after the field loop.
14938         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
14939         * expmed.c (init_expmed): Call gen_raw_REG instead of
14940         gen_rtx_raw_REG.
14941         * expr.c (init_expr_target): Likewise.
14942         * regcprop.c (maybe_mode_change): Likewise.
14943         * varasm.c (make_decl_rtl): Likewise.
14944         * final.c (leaf_renumber_regs_insn): Return early after
14945         handling REGs.
14946         * genemit.c (gen_exp): Handle 'r' fields.
14947         * genpeep.c (match_rtx): Likewise.
14948         * gensupport.c (subst_pattern_match): Likewise.
14949         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
14950         (alter_constraints, subst_dup): Likewise.
14951         * read-rtl.c (read_rtx_code): Likewise.
14952         * print-rtl.c (print_rtx): Likewise.
14953         * genrecog.c (find_operand, find_matching_operand): Likewise.
14954         (validate_pattern, match_pattern_2): Likewise.
14955         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
14956         (rtx_test::regno_field): New function.
14957         (operator ==, safe_to_hoist_p, transition_parameter_type)
14958         (parameter_type_string, print_parameter_value)
14959         (print_nonbool_test, print_test): Handle new enum values.
14960         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
14961         * lra-constraints.c (operands_match_p): Likewise.
14963 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14965         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
14966         Change type of new_regno to unsigned int.
14967         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
14968         new_regno to unsigned int.
14969         (df_ref_change_reg_with_loc): Remove old_regno parameter.
14970         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
14971         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
14972         (SET_REGNO_RAW): Add space after ",".
14974 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14976         * rtl.h (REG_NREGS): New macro
14977         * alias.c (record_set): Use it.
14978         * cfgcleanup.c (mark_effect): Likewise.
14979         * combine.c (likely_spilled_retval_1): Likewise.
14980         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
14981         (move_deaths, distribute_notes): Likewise.
14982         * cselib.c (cselib_record_set): Likewise.
14983         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14984         * df-scan.c (df_mark_reg): Likewise.
14985         * dse.c (look_for_hardregs): Likewise.
14986         * dwarf2out.c (reg_loc_descriptor): Likewise.
14987         (multiple_reg_loc_descriptor): Likewise.
14988         * expr.c (write_complex_part, read_complex_part): Likewise.
14989         (emit_move_complex): Likewise.
14990         * haifa-sched.c (setup_ref_regs): Likewise.
14991         * ira-lives.c (mark_hard_reg_live): Likewise.
14992         * lra.c (lra_set_insn_recog_data): Likewise.
14993         * mode-switching.c (create_pre_exit): Likewise.
14994         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
14995         (reload_combine_recognize_pattern): Likewise.
14996         (reload_combine_note_use, move2add_record_mode): Likewise.
14997         (reload_cse_move2add): Likewise.
14998         * reg-stack.c (subst_stack_regs_pat): Likewise.
14999         * regcprop.c (kill_value, copy_value): Likewise.
15000         (copyprop_hardreg_forward_1): Likewise.
15001         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
15002         (build_def_use): Likewise.
15003         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
15004         (deps_analyze_insn): Likewise.
15005         * sched-rgn.c (check_live_1, update_live_1): Likewise.
15006         * sel-sched.c (count_occurrences_equiv): Likewise.
15007         * valtrack.c (dead_debug_insert_temp): Likewise.
15009 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15011         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
15012         * dse.c (note_add_store): Likewise.
15013         * ira-lives.c (mark_hard_reg_dead): Likewise.
15014         * loop-invariant.c (mark_reg_store): Likewise.
15015         (mark_reg_death): Likewise.
15016         * postreload.c (reload_combine): Likewise.
15017         (reload_combine_note_store): Likewise.
15018         (reload_combine_note_use): Likewise.
15019         * recog.c (peep2_reg_dead_p): Likewise.
15021 2015-05-19  Alan Modra  <amodra@gmail.com>
15023         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
15024         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
15025         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
15026         unused predicates.
15027         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
15028         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
15029         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
15030         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
15032 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
15034         * config/mips/mips.md (JOIN_MODE): New mode iterator.
15035         (join2_load_Store<JOIN_MODE:mode>): New pattern.
15036         (join2_loadhi): Likewise.
15037         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
15038         load-load and store-stores.
15039         * config/mips/mips.opt (mload-store-pairs): New option.
15040         (TARGET_LOAD_STORE_PAIRS): New macro.
15041         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
15042         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
15043         * config/mips/mips.c (mips_load_store_bonding_p): New function.
15045 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
15047         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
15048         explicit swaps.
15049         * dojump.c (do_compare_rtx_and_jump): Likewise.
15050         * expmed.c (emit_store_flag_1): Likewise.
15051         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
15052         * final.c (sprint_ul): Use std::reverse for reversing a string.
15053         * fold-const.c (extract_muldiv_1): Use std::swap.
15054         * genmodes.c (emit_mode_int_n): Likewise.
15055         * ifcvt.c (dead_or_predicable): Likewise.
15056         * ira-build.c (ira_merge_live_ranges): Likewise.
15057         (swap_allocno_copy_ends_if_necessary): Likewise.
15058         * ira.c (ira_setup_alts): Likewise.
15059         * loop-iv.c (iv_analyze_expr): Likewise.
15060         (implies_p): Likewise.
15061         (canon_condition): Likewise.
15062         * lra-constraints.c (swap_operands): Likewise.
15063         * lra-lives.c (lra_merge_live_ranges): Likewise.
15064         * omega.c (swap): Remove.
15065         (bswap): Remove.
15066         (omega_unprotect_1): Use std::swap.
15067         (omega_solve_geq): Likewise.
15068         * optabs.c (expand_binop_directly): Likewise.
15069         (expand_binop): Likewise.
15070         (emit_conditional_move): Likewise.
15071         (emit_conditional_add): Likewise.
15072         * postreload.c (reload_cse_simplify_operands): Likewise.
15073         * reg-stack.c (emit_swap_insn): Likewise.
15074         (swap_to_top): Likewise.
15075         (compare_for_stack_reg): Likewise.
15076         (subst_asm_stack_regs): Likewise.
15077         * reload.c (find_reloads): Likewise.
15078         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
15079         * sel-sched.c (invoke_reorder_hooks): Likewise.
15080         (create_block_for_bookkeeping): Likewise.
15081         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
15082         (lambda_matrix_right_hermite): Use std::swap.
15083         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
15084         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15085         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
15086         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
15087         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
15088         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
15089         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15090         * tree-vrp.c (compare_ranges): Likewise.
15091         * var-tracking.c (add_with_sets): Likewise.
15092         (vt_find_locations): Likewise.
15094 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
15096         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
15097         pie executables.
15098         (FBSD_ENDFILE_SPEC): Likewise.
15099         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
15100         config/freebsd-spec.h.
15101         (ENDFILE_SPEC): Likewise.
15103 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
15104             Richard Henderson  <rth@redhat.com>
15106         PR target/57032
15107         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
15108         Check for a memory location that is not a reference (using an AND)
15109         to an unaligned location here.
15110         * config/alpha/predicates.md (normal_memory_operand): Remove.
15112 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
15114         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
15115         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
15117 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15119         * config/mips/mips.c (micromips_globals): New variable.
15120         (mips_set_compression_mode): Save and reinitialize target-dependent
15121         state for microMIPS.
15123 2015-05-18  Martin Liska  <mliska@suse.cz>
15125         * dbgcnt.def: Add new counter.
15126         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
15128 2015-05-18  Martin Liska  <mliska@suse.cz>
15130         * dbgcnt.def: Sort counters.
15131         * opts.c (common_handle_option): Do not compile if
15132         -fdbg-cnt-list is enabled.
15134 2015-05-18  Tom de Vries  <tom@codesourcery.com>
15136         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
15137         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
15138         address operator to va_list operand.
15139         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
15140         unconditionally.
15141         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
15142         operand.
15143         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
15144         * config/s390/s390.c (s390_gimplify_va_arg): Same.
15145         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
15147 2015-05-18  Tom de Vries  <tom@codesourcery.com>
15149         * tree-ssa-tail-merge.c: Fix whitespace.
15151 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
15153         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
15154         cortex-a17, and cortex-a17.cortex-a7.
15156 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
15158         PR target/54236
15159         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
15161 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
15163         PR target/66174
15164         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
15165         QImode inner modes for TARGET_AVX512BW.  Force mask operand
15166         to a register for AVX512F modes.
15168 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15170         * toplev.c (emit_debug_global_declarations): Do not output debug info
15171         when doing slim LTO objects.
15173 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15175         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
15176         odr_types_equivalent_p): Declare.
15177         (odr_type_p): Use gcc_checking_assert.
15178         (type_in_anonymous_namespace_p) Declare.
15179         (type_with_linkage_p): Declare.
15180         * common.opt (Wlto-type-mismatch): New warning.
15181         * ipa-devirt.c (compound_type_base): New function.
15182         (odr_or_derived_type_p): New function.
15183         (odr_types_equivalent_p): New function.
15184         (add_type_duplicate): Simplify.
15185         (type_with_linkage_p): Add hack to prevent false positives on C types
15186         (type_in_anonymous_namespace_p): Likewise.
15187         * tree.c (need_assembler_name_p): Use type_with_linkage.
15188         * tree.h (type_in_anonymous_namespace_p): Remove.
15189         * doc/invoke.texi (-Wlto-type-mismatch): Document
15191 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15193         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
15194         (verify_type): Verify STRING_FLAG.
15196 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15198         PR fortran/44054
15199         * tree-pretty-print.c (percent_K_format): Replace locus pointer
15200         with accessor function.
15201         * tree-diagnostic.c (diagnostic_report_current_function): Use
15202         diagnostic_location function.
15203         (maybe_unwind_expanded_macro_loc): Likewise.
15204         (virt_loc_aware_diagnostic_finalizer): Likewise.
15205         (default_tree_printer): Replace locus pointer with accessor function.
15206         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
15207         (diagnostic_set_info_translated): Initialize second location.
15208         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
15209         (diagnostic_show_locus): Handle two locations. Call
15210         diagnostic_print_caret_line.
15211         (diagnostic_print_caret_line): New.
15212         (default_diagnostic_starter): Use diagnostic_location function.
15213         (diagnostic_report_diagnostic): Use diagnostic_location function.
15214         (verbatim): Do not set text.locus.
15215         * diagnostic.h (struct diagnostic_info): Remove location field.
15216         (struct diagnostic_context): Make caret_chars an array of two.
15217         (diagnostic_location): New inline.
15218         (diagnostic_expand_location): Handle two locations.
15219         (diagnostic_same_line): New inline.
15220         (diagnostic_print_caret_line): Declare.
15221         (CARET_LINE_MARGIN): New constant.
15222         * pretty-print.c (pp_printf): Do not set text.locus.
15223         (pp_verbatim): Do not set text.locus.
15224         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
15225         (struct text_info): Replace locus pointer with locations
15226         array. Add accessor functions.
15228 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
15229             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15231         PR target/65768
15232         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
15233         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
15234          large constants in register instead of splitting them.
15236 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
15238         PR target/66140
15239         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
15240         replacements in memory addresses.
15241         (get_unaligned_address): Ditto.
15243 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
15245         * config/ft32/*: New files for FT32 port.
15246         * doc/install.texi: Add FT32 information.
15247         * doc/invoke.texi: Add FT32 information.
15248         * doc/md.texi: Add FT32 information.
15249         * doc/contrib.texi: Self added.
15251 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
15253         PR tree-optimization/64454
15254         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
15255         (-1 - A -> ~A): Remove unnecessary condition.
15257 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
15259         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
15260         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
15261         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
15263 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
15265         * ipa-chkp.h (chkp_wrap_function): New.
15266         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
15267         (chkp_wrap_function_name): New.
15268         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
15269         to get wrapper name.
15270         * lto-cgraph.c: Include ipa-chkp.h.
15271         (input_cgraph_1): Avoid alias chain for wrappers.
15273 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15275         PR middle-end/66134
15276         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
15277         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
15279 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15281         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
15282         (AARCH64_FL_SLOWMUL): Delete.
15283         (AARCH64_FL_CRC): Redefine to 1<<3.
15284         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
15286 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15288         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
15289         casting.
15291 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
15293         * config/alpha/alpha.md (extendqidi2): Use general_operand
15294         instead of some_operand for operand[1] predicate.
15295         (extendhidi2): Ditto.
15296         (cbranchdi4): Use general_operand instead of some_operand
15297         for operand[1] and operands[2] predicates.
15298         (cstoredi4): Ditto.
15299         * config/alpha/predicates.md (some_operand): Remove unused predicate.
15300         (some_ni_operand): Ditto.
15302 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
15304         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
15305         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
15306         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
15307         low part of the constant using alpha_emit_set_const_1.
15308         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
15310 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
15312         * varasm.c (output_constant_pool_1): Pass down alignment from
15313         constant pool entry's descriptor to output_constant_pool_2.
15314         (output_object_block): Add comment prior to call to
15315         output_constant_pool_1.
15317 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
15319         PR rtl-optimization/65862
15320         * target.def (ira_change_pseudo_allocno_class): New hook.
15321         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
15322         value of the hook.
15323         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
15324         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
15325         hook.
15326         * ira-costs.c (find_costs_and_classes): Call the hook and change
15327         classes when it is necessary.
15328         * doc/tm.texi: Update.
15330 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
15332         * config/i386/i386.md (sibcall_memory): Check that register with
15333         callee address is not also used as one of the arguments, instead
15334         of checking that it is not live after the sibcall.
15335         (sibcall_pop_memory): Ditto.
15336         (sibcall_value_memory): Ditto.
15337         (sibcall_value_pop_memory): Ditto.
15339 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
15341         * generic-match-head.c (types_match): Handle non-types.
15342         * gimple-match-head.c (types_match): Likewise.
15343         * match.pd: Remove unnecessary TREE_TYPE for types_match.
15345 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
15347         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
15348         (csneg3<mode>_insn): Enable expansion of pattern.
15350 2015-05-14  Nick Clifton  <nickc@redhat.com>
15352         * config/rl78/rl78.c (rl78_select_section): Select the correct
15353         default section based upon the category of the decl.
15355 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15357         PR rtl-optimization/30967
15358         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
15359         destination mode for the cost of scc patterns.
15361 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15363         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
15364         using SWIM248 mode iterator.
15365         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
15366         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
15367         for operand[2] constraint.
15368         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
15370 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15372         PR middle-end/66133
15373         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
15374         make sure it is never noreturn, even when the task body does not
15375         return.
15376         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
15377         right before GIMPLE_OMP_RETURN.
15378         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
15379         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
15380         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
15382 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15384         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
15385         * tree-ssa-math-opts.c: Include params.h
15386         (pow_synth_sqrt_info): New struct.
15387         (representable_as_half_series_p): New function.
15388         (get_fn_chain): Likewise.
15389         (print_nested_fn): Likewise.
15390         (dump_fractional_sqrt_sequence): Likewise.
15391         (dump_integer_part): Likewise.
15392         (expand_pow_as_sqrts): Likewise.
15393         (gimple_expand_builtin_pow): Use above to attempt to expand
15394         pow as series of square roots.  Removed now unused variables.
15396 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15398         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
15399         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
15400         Remove *p0 and *p1 arguments.  Rewrite function.
15401         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
15402         (alpha_split_const_mov): Update calls to alpha_extract_integer and
15403         alpha_emit_set_long_const.
15404         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
15405         (alpha_output_mi_thunk_osf): Ditto.
15406         * config/alpha/alpha.md (movti): Do not check operands[1]
15407         for CONST_DOUBLE.
15409 2015-05-13  Richard Biener  <rguenther@suse.de>
15411         PR tree-optimization/66129
15412         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
15413         commutative.
15414         (vect_schedule_slp_instance): Fix typo.
15416 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
15418         * common.opt (fdump-internal-locations): New option.
15419         * input.c: Include diagnostic-core.h.
15420         (get_end_location): New function.
15421         (write_digit): New function.
15422         (write_digit_row): New function.
15423         (dump_location_range): New function.
15424         (dump_labelled_location_range): New function.
15425         (dump_location_info): New function.
15426         * input.h (dump_location_info): New prototype.
15427         * toplev.c (compile_file): Handle flag_dump_locations.
15429 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15431         * gimple-expr.h (is_gimple_constant): Reorder.
15432         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
15434 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15436         * combine.c (simplify_set): When generating a CC set, if the
15437         source already is in the correct mode, do not wrap it in a
15438         compare.  Simplify the rest of that code.
15440 2015-05-13  Richard Biener  <rguenther@suse.de>
15442         PR tree-optimization/66123
15443         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
15444         a taken edge.
15446 2015-05-13  Richard Biener  <rguenther@suse.de>
15448         PR middle-end/66110
15449         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
15450         specially.
15451         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
15453 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15455         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
15456         * aclocal.m4: Regenerated with automake-1.11.6.
15458 2015-05-13  Tom de Vries  <tom@codesourcery.com>
15460         PR tree-optimization/66010
15461         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
15462         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
15463         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
15464         and rval based on do_deref.
15466 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15468         PR target/65103
15469         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
15470         link time constants into adress expressions and therefore set
15471         their cost to 0.
15473 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15475         PR target/66112
15476         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
15477         Use SWI248 iterator instead of SWI.
15478         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
15479         Use eq_attr "alternative" "0" instead of match_test in
15480         length_immediate attribute computation.
15481         (*mulvhi4, *mulvhi4_1): New define_insns.
15483         PR target/66112
15484         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
15485         SIGNED to get precision of non-negative value.
15487 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15489         PR target/66048
15490         * function.c (diddle_return_value_1): Process bounds first.
15491         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
15492         register.
15494 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15496         PR rtl-optimization/64616
15497         * loop-invariant.c (can_move_invariant_reg): New.
15498         (move_invariant_reg): Call above new function to decide whether
15499         instruction can just be moved, skipping creation of temporary
15500         register.
15502 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15504         PR target/pr66047.c
15505         * i386.c (ix86_function_sseregparm): Only return -1 if local function
15506         with implied regparm is called from -mno-sse function.
15507         (init_cumulative_args): Output error if ix86_function_sseregparm
15508         return -1 and SSE register would be needed.
15509         (function_arg_advance_32): Likewise.
15510         (function_arg_32): Likewise.
15511         * i386.h (ix86_args): Add decl field.
15513 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15515         PR ipa/65873
15516         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
15517         inlines across optimization boundary.
15519 2015-05-12  Jason Merrill  <jason@redhat.com>
15521         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
15522         string literal and macro name.
15524 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
15526         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
15527         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
15528         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
15530 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15532         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
15533         (-Wmisleading-indentation): New option.
15534         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
15536 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
15538         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
15539         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
15540         (alpha_extract_integer): Ditto.
15541         (alpha_legitimate_constant_p): Ditto.
15542         (alpha_split_tmode_pair): Ditto.
15543         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
15544         (alpha_expand_mov): Ditto.
15545         (print_operand): Remove handling of 'H' modifier.
15546         <case 'm'>: Remove CONST_DOUBLE handling.
15547         (summarize_insn): Handle CONST_WIDE_INT.
15548         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
15549         (anddi3): Ditto.
15550         (movti): Handle CONST_WIDE_INT.
15551         * config/alpha/constraints.md ('H'): Remove constraint definition.
15552         ('G'): Do not match MODE_FLOAT class.
15553         * config/alpha/predicates.md (const0_operand): Also match
15554         const_wide_int.
15555         (non_add_const_operand): Ditto.
15556         (non_zero_const_operand): Ditto.
15557         (some_operand): Ditto.
15558         (input_operand): Ditto.  Handle CONST_WIDE_INT.
15559         (and_operand): Do not match const_double.
15560         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
15562 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
15564         PR target/65697
15565         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
15566         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
15567         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
15568         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
15569         is_mm_seq_cst, is_mm_sync): New accessor functions.
15570         * builtins.c (expand_builtin_sync_operation,
15571         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
15572         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
15573         (get_memmodel,  expand_builtin_atomic_compare_exchange,
15574         expand_builtin_atomic_load, expand_builtin_atomic_store,
15575         expand_builtin_atomic_clear): Use new accessor routines.
15576         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
15577         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
15578         (maybe_emit_sync_lock_test_and_set): Use new accessors and
15579         MEMMODEL_SYNC_ACQUIRE.
15580         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
15581         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
15582         expand_atomic_store): Use new accessors.
15583         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
15584         * tsan.c (instrument_builtin_call): Update check for memory model beyond
15585         final enum to use MEMMODEL_LAST.
15586         * c-family/c-common.c: Use new accessor for memmodel_base.
15587         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
15588         accessors.
15589         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
15590         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
15591         mem_thread_fence, *dmb): Likewise.
15592         * config/alpha/alpha.c (alpha_split_compare_and_swap,
15593         alpha_split_compare_and_swap_12): Likewise.
15594         * config/arm/arm.c (arm_expand_compare_and_swap,
15595         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
15596         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
15597         atomic_loaddi): Likewise.
15598         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
15599         Likewise.
15600         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
15601         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
15602         use new accessors.
15603         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
15604         atomic_store<mode>, atomic_compare_and_swap<mode>,
15605         atomic_exchange<mode>): Use new accessors.
15606         * config/mips/mips.c (mips_process_sync_loop): Likewise.
15607         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
15608         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
15609         rs6000_post_atomic_barrier): Add new cases.
15610         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
15611         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
15612         (atomic_load<mode>): Add new cases and use new accessors.
15613         (store_quadpti): Add new cases.
15614         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
15615         accessors.
15616         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
15617         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
15618         model, not 8.
15620 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15622         * ipa-devirt.c (type_with_linkage_p): New function.
15623         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
15624         type has linkage.
15625         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
15626         (can_be_name_hashed_p): Simplify.
15627         (hash_odr_name): Check that type has linkage before checking if it is
15628         anonymous.
15629         (types_same_for_odr): Likewise.
15630         (odr_name_hasher::equal): Likewise.
15631         (odr_subtypes_equivalent_p): Likewise.
15632         (warn_types_mismatch): Likewise.
15633         (get_odr_type): Likewise.
15634         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
15635         * ipa-utils.h (odr_type_p): Move offline.
15636         * tree.c (need_assembler_name_p): Fix handling of types
15637         without linkages.
15638         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
15640 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15642         * timevar.c (timevar_enable): Delete in favor of...
15643         (g_timer): New global.
15644         (struct timevar_def): Move to timevar.h inside class timer.
15645         (struct timevar_stack_def): Likewise.
15646         (timevars): Delete global in favor of field "m_timevars" within
15647         class timer in timevar.h
15648         (stack): Likewise, in favor of field "m_stack".
15649         (unused_stack_instances): Likewise, in favor of field
15650         "m_unused_stack_instances".
15651         (start_time): Likewise, in favor of field "m_start_time".
15652         (get_time): Eliminate check for timevar_enable.
15653         (timer::timer): New function, built from part of timevar_init.
15654         (timevar_init): Rewrite idempotency test from using
15655         "timevar_enable" bool to using dynamic allocation of "g_timer".
15656         Move rest of implementation into timer's constructor.
15657         (timevar_push_1): Rename to...
15658         (timer::push): ...this, adding "m_" prefixes to variables that
15659         are now fields of timer.
15660         (timevar_pop_1): Likewise, rename to...
15661         (timer::pop): ...this, and add "m_" prefixes.
15662         (timevar_start): Replace test for "timevar_enable" with one for
15663         "g_timer", and move bulk of implementation to...
15664         (timer::start): ...here, adding "m_" prefixes.
15665         (timevar_stop): Likewise, from here...
15666         (timer::stop): ...to here.
15667         (timevar_cond_start): Likewise, from here...
15668         (timer::cond_start): ...to here.
15669         (timevar_cond_stop): Likewise, from here...
15670         (timer::cond_stop): ...to here.
15671         (validate_phases): Rename to...
15672         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
15673         locals "total" and "tv" const.
15674         (timevar_print): Rename to...
15675         (timer::print): ...this, and add "m_" prefixes.  Make locals
15676         "total" and "tv" const.  Eliminate test for timevar_enable.
15677         * timevar.h (timevar_enable): Eliminate.
15678         (g_timer): New declaration.
15679         (timevar_push_1): Eliminate.
15680         (timevar_pop_1): Eliminate.
15681         (timevar_print): Eliminate.
15682         (class timer): New class.
15683         (timevar_push): Rewrite to use g_timer.
15684         (timevar_pop): Likewise.
15685         * toplev.c (toplev::~toplev): Likewise.
15687 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
15689         * arm-protos.h (arm_sched_autopref): Delete.
15690         (tune_params): Re-organize, use enums for flag values.
15691         (FUSE_OPS): New macro.
15692         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
15693         (ARM_PREFETCH_BENEFICIAL): Likewise.
15694         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
15695         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
15696         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
15697         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
15698         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
15699         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
15700         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
15701         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
15702         format.
15703         (arm_option_override, thumb2_reorg, arm_print_tune_info)
15704         (aarch_macro_fusion_pair_p): Update uses of current_tune.
15705         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
15707 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
15709         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
15710         "break".
15712 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
15713             Sandra Loosemore <sandra@codesourcery.com>
15715         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
15716         value.
15717         (REG_CLASS_NAMES): Add "IJMP_REGS".
15718         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
15719         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
15720         use new "c" register constraint.
15721         * config/nios2/constraint.md (c): New register constraint
15722         corresponding to IJMP_REGS.
15724 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15726         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
15727         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
15728         define_splits): Delete, revamp, transmogrify into ...
15729         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15730         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15731         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15732         New.
15734 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15736         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
15737         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
15739 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15741         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
15742         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
15743         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
15744         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
15745         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
15746         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
15747         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
15748         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
15749         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
15750         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15751         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
15752         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
15753         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
15754         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
15755         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
15756         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
15757         and 30 corresponding splitters): Delete.
15759 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15761         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
15762         zero_extract.
15764 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15766         * combine.c (recog_for_combine_1): New function, factored out
15767         from recog_for_combine.
15768         (change_zero_ext): New function.
15769         (recog_for_combine): If recog fails, try again with the pattern
15770         modified by change_zero_ext; if that still fails, restore the
15771         pattern.
15773 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15775         * combine.c (get_undo_marker): New function.
15776         (undo_to_marker): New function, largely factored out from ...
15777         (undo_all): ... this.  Adjust.
15779 2015-05-12  Richard Biener  <rguenther@suse.de>
15781         PR tree-optimization/66101
15782         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
15783         fixup if we turn a loop exit edge to a fallthru edge.
15785 2015-05-12  Richard Biener  <rguenther@suse.de>
15787         PR tree-optimization/37021
15788         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
15789         (SLP_TREE_TWO_OPERATORS): New define.
15790         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15791         SLP_TREE_TWO_OPERATORS.
15792         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
15793         SLP node.
15794         (vect_build_slp_tree): Adjust.
15795         (vect_analyze_slp_cost_1): Likewise.
15796         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
15797         emitting two vector stmts and mixing the results.
15799 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15801         * call.c (print_z_candidates): Remove dead code.
15803 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15805         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
15806         and zEC12_simple_fp.
15807         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
15808         to 1.
15810 2015-05-12  Tom de Vries  <tom@codesourcery.com>
15812         PR tree-optimization/66010
15813         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
15814         ifn_va_arg.
15815         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
15816         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
15817         va_lists are passed, and remove corresponding handling.
15818         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
15819         do_deref argument to ifn_va_arg.
15820         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
15821         ifn_va_arg.
15823 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15825         PR target/65955
15826         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
15827         REG before taking its REGNO.
15829 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15831         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
15832         rsp->sign_bit_copies and rsp->nonzero_bits into ...
15833         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
15834         present to get more accurate information about the number of sign bit
15835         copies and non zero bits.
15837 2015-05-12  Richard Biener  <rguenther@suse.de>
15839         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
15840         do not allow unrolling.
15842 2015-05-11  Richard Henderson  <rth@redhat.com>
15844         * config/i386/i386-modes.def (CCP): New.
15845         * config/i386/i386.c (put_condition_code): Handle it.
15846         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
15848 2015-05-11  Richard Henderson  <rth@redhat.com>
15850         * target.def (md_asm_clobbers): Replace with...
15851         (md_asm_adjust): this.
15852         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
15853         (TARGET_MD_ASM_ADJUST): New.
15854         * tm.texi: Rebuild.
15855         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
15856         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
15857         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
15859         * cfgexpand.c (check_operand_nalternatives): Accept vector of
15860         constraints instead of lists of outputs and inputs.
15861         (expand_asm_stmt): Save and restore input_location around the
15862         body of the function.  Move asm data into vectors instead of
15863         building tree lists.  Generate cleanup sequences as needed,
15864         rather than waiting til the end.  Use new md_asm_adjust hook.
15866         * config/vxworks.c: Include vec.h before target.h.
15867         * gimple.c: Likewise.
15868         * incpath.c: Likewise.
15869         * mode-switching.c: Likewise.
15871         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
15872         (cris_md_asm_adjust): this.
15873         (TARGET_MD_ASM_CLOBBERS): Remove.
15874         (TARGET_MD_ASM_ADJUST): New.
15875         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
15876         (ix86_md_asm_adjust): this.
15877         (TARGET_MD_ASM_CLOBBERS): Remove.
15878         (TARGET_MD_ASM_ADJUST): New.
15879         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
15880         (mn10300_md_asm_adjust): this.
15881         (TARGET_MD_ASM_CLOBBERS): Remove.
15882         (TARGET_MD_ASM_ADJUST): New.
15883         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
15884         (rs6000_md_asm_adjust): this.
15885         (TARGET_MD_ASM_CLOBBERS): Remove.
15886         (TARGET_MD_ASM_ADJUST): New.
15887         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
15888         (visium_md_asm_adjust): this.
15889         (TARGET_MD_ASM_CLOBBERS): Remove.
15890         (TARGET_MD_ASM_ADJUST): New.
15892 2015-05-11  Richard Henderson  <rth@redhat.com>
15894         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
15895         if noutputs is zero.
15896         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
15898         * cfgexpand.c (expand_asm_operands): Merge into...
15899         (expand_asm_stmt): ... here.
15901         * cfgexpand.c (expand_asm_operands): Don't call
15902         resolve_asm_operand_names.
15903         * stmt.c (resolve_asm_operand_names): Clarify block comment.
15905 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
15907         * dwarf2out.c (gen_member_die): Sanity check that we access
15908         TYPE_MAIN_VARIANT for TYPE_METHODS.
15909         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
15910         checking TYPE_METHODS.
15911         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
15912         if non-null.
15913         (build_distinct_type_copy): Clear TYPE_METHODS.
15914         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
15915         (verify_type): Allow TYPE_METHODS to be error_mark_node.
15916         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
15918 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15920         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
15921         (emit_pattern_before_setloc): Likewise.
15923 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
15925         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
15926         for define_peephole2s.
15927         (get_peephole2_pattern): New function.
15928         (main): Use it.  Call validate_pattern.
15930 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15932         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
15933         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
15934         (Last callee saved reg is different for AVR_TINY architecture)
15936 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
15938         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
15939         when looking for memory references.
15941 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
15943         PR target/65753
15944         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
15945         via function pointers.
15947 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
15949         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
15950         indirect call by forcing address into a pseudo with -fno-plt.
15951         * common.opt (flag_plt): New option.
15952         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
15953         ([-fno-plt]): Document.
15955 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
15957         PR bootstrap/66105
15958         * config/rs6000/option-defaults.h: Add space between string literal
15959         and macro name.
15961 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15963         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
15964         accross ARM targets.
15966 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15968         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
15969         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
15971 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
15973         PR rtl-optimization/66076
15974         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
15975         Don't grow the heap array if it is already big enough from a
15976         previous iteration.
15978 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15980         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
15981         (is_called_in_ARM_mode): Remove.
15982         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
15983         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
15984         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
15985          arm_declare_function_name.
15987 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15989         * config/arm/arm.c (arm_option_override): Reoganized and split into :
15990         (arm_option_params_internal); New function.
15991         (arm_option_check_internal): New function.
15992         (arm_option_override_internal): New function.
15993         (thumb_code, thumb1_code): Remove.
15994         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
15995         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
15996         (thumb_code, thumb1_code): Remove.
15997         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
15999 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
16001         * config/alpha/alpha.c (alpha_emit_set_const_1)
16002         (alpha_emit_set_long_const, alpha_extract_integer)
16003         (alpha_legitimate_constant_p, alpha_split_const_mov)
16004         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
16005         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16006         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
16007         HOST_WIDE_INT_1U.
16008         * config/alpha/predicates.md (mode_mask_operand): Do not match
16009         const_double RTX.
16010         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16011         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
16012         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
16013         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16014         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
16016 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
16018         PR target/65780
16019         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
16020         default_binds_local_p_2.
16021         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
16022         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
16024 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16026         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
16028 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16030         Patch by Richard Biener
16031         * coverage.c (coverage_obj_init): Delay building of type variant
16032         until the type is finished.
16034 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16036         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
16037         mismatch between C and C++ type; compoare correctly ARG_TYPES
16038         for non-prototypes and output correctly parameter index for METHOD_TYPE.
16039         (odr_types_equivalent_p): Fix wording of warning about attributes;
16040         it is OK to match prototype and non-prototype.
16042 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16044         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
16045         TYPE_ARG_TYPES list.
16046         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
16047         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
16049 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16051         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
16052         * tree.h (is_lang_specific): Constify.
16054 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
16056         PR tree-optimization/64454
16057         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
16058         Rewrite.
16060 2015-05-08  Jason Merrill  <jason@redhat.com>
16062         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
16063         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
16064         config/darwin.h, config/darwin9.h, config/elfos.h,
16065         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
16066         config/microblaze/microblaze.h, config/mips/mips.h,
16067         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
16068         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
16069         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
16070         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
16071         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
16072         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
16073         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
16074         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
16075         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
16076         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
16077         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
16078         between string literal and macro name.
16080 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16082         * jump.c: Change argument types to rtx_insn *.
16083         * rtl.h: Adjust.
16085 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16087         * lra-constraints.c: Change argument type to rtx_insn *.
16089 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16091         * df-problems.c: Change argument type to rtx_insn *.
16093 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16095         * combine.c: Change argument type to rtx_insn *.
16097 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16099         * rtl.h: Adjust.
16100         * rtlanal.c: Change argument type to rtx_insn *.
16102 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16104         * sched-deps.c: Change argument types to rtx_insn *.
16105         * sched-int.h: Adjust.
16107 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16109         * dwarf2cfi.c: Change argument type to rtx_insn *.
16111 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16113         * ira.c (decrease_live_ranges_number): Changetype of local
16114         variable to rtx_insn *.
16115         * recog.c: Change argument types to rtx_insn *.
16116         * recog.h: Adjust.
16118 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16120         * reorg.c: Change argument types to rtx_insn *.
16122 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16124         * ira-color.c: Change argument types to rtx_insn *.
16125         * lra-eliminations.c: Likewise.
16126         * ira.h: Adjust.
16128 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16130         * gcse.c: Change argument types to rtx_insn *.
16132 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16134         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
16136 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16138         * emit-rtl.c (emit_debug_insn_before): Change argument type to
16139         rtx_insn *.
16140         * rtl.h: Adjust.
16142 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16144         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
16145         * rtl.h: Adjust.
16147 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16149         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
16150         * rtl.h: Adjust.
16152 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16154         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
16155         * rtl.h: Adjust.
16157 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16159         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
16160         * rtl.h: Adjust.
16162 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16164         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
16165         to rtx_insn *.
16166         * rtl.h: Adjust.
16168 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16170         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
16171         to rtx_insn *.
16172         * rtl.h: Likewise.
16174 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16176         * except.c (can_nonlocal_goto): Change type of argument to
16177         rtx_insn *.
16178         * rtl.h: Adjust.
16180 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16182         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
16183         * rtl.h: Adjust.
16185 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16187         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
16188         * cfgrtl.c (can_delete_label_p): Adjust.
16189         * rtl.h: likewise.
16191 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16193         * reorg.c (stop_search_p): Change argument to rtx_insn *.
16195 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16197         * except.c (make_reg_eh_region_note): Change argument to
16198         rtx_insn *.
16199         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
16200         * except.h: Adjust.
16202 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16204         * mode-switching.c (commit_mode_sets): Change type of local
16205         variable from rtx to rtx_insn *.
16207 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
16209         * doc/install.texi (--enable-languages): Add missing jit and lto info.
16210         Add ^ to grep command.
16211         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
16212         arg to last gimple_simplify declaration.  Add missing gimple_build
16213         declaration for built-in function case with four tree args.
16215 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
16216             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16218         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
16219         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
16220         (GNU_USER_DYNAMIC_LINKERN32): Update.
16222 2015-05-08  Richard Biener  <rguenther@suse.de>
16224         PR tree-optimization/66036
16225         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16226         Handle strided group loads.
16227         (vect_verify_datarefs_alignment): Likewise.
16228         (vect_enhance_data_refs_alignment): Likewise.
16229         (vect_analyze_group_access): Likewise.
16230         (vect_analyze_data_ref_access): Likewise.
16231         (vect_analyze_data_ref_accesses): Likewise.
16232         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
16233         (vectorizable_load): Likewise.
16235 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
16237         * config/rs6000/rs6000.md: Require operand inequality in one
16238         of the peepholes.
16240 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
16241             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16243         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
16244         from (set ...).
16245         * config/rx/rx.md (movdi, movdf): Likewise.
16246         Likewise for define_peephole2s.
16248 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16250         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
16251         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
16252         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
16253         vtst_u64): Rewrite using gcc vector extensions.
16255 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16257         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
16258         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
16260 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16262         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
16264 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16266         * config/glibc-stdint.h (OPTION_MUSL): Define.
16267         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
16268         Change the definition based on OPTION_MUSL for 64 bit targets.
16269         * config/linux.h (OPTION_MUSL): Redefine.
16270         * config/alpha/linux.h (OPTION_MUSL): Redefine.
16271         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
16272         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
16274 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
16275             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16277         * config.gcc (LIBC_MUSL): New tm_defines macro.
16278         * config/linux.h (OPTION_MUSL): Define.
16279         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
16280         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
16281         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16282         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16283         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16284         * config/linux.opt (mmusl): New option.
16285         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
16286         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16287         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16288         * configure: Regenerate.
16290 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16291             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16293         PR target/48904
16294         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
16295         * config/i386/knetbsd-gnu64.h: New file.
16297 2015-05-08  Marek Polacek  <polacek@redhat.com>
16299         PR c/64918
16300         * doc/invoke.texi: Document -Woverride-init-side-effects.
16302 2015-05-07  Marek Polacek  <polacek@redhat.com>
16304         PR c/65179
16305         * doc/invoke.texi: Document -Wshift-negative-value.
16307 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
16309         * gcov-tool.c (do_merge): Refactore to remove int ret.
16310         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
16311         !type == FUNC to type != FUNC.
16312         * reload.h (struct target_reload): Changee to type of
16313         x_spill_indirect_levels from bool to unsigned char.
16315 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
16317         * rtl.h (always_void_p): New function.
16318         * gengenrtl.c (always_void_p): Likewise.
16319         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
16320         with code foo are always VOIDmode.
16321         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
16322         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
16323         compare-elim.c, config/aarch64/aarch64.c,
16324         config/aarch64/aarch64.md, config/alpha/alpha.c,
16325         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
16326         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
16327         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
16328         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16329         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
16330         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
16331         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
16332         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
16333         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
16334         config/ia64/vect.md, config/iq2000/iq2000.c,
16335         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
16336         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
16337         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
16338         config/mep/mep.c, config/microblaze/microblaze.c,
16339         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
16340         config/mn10300/mn10300.c, config/msp430/msp430.c,
16341         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
16342         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
16343         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
16344         config/rs6000/altivec.md, config/rs6000/rs6000.c,
16345         config/rs6000/rs6000.md, config/rs6000/vector.md,
16346         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
16347         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
16348         config/sh/sh.md, config/sh/sh_treg_combine.cc,
16349         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
16350         config/spu/spu.md, config/stormy16/stormy16.c,
16351         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
16352         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
16353         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
16354         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
16355         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
16356         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
16357         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
16358         var-tracking.c: Update calls accordingly.
16360 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
16362         PR middle-end/192
16363         PR middle-end/54303
16364         * varasm.c (function_mergeable_rodata_prefix): New function.
16365         (mergeable_string_section): Use it.
16366         (mergeable_constant_section): Use it.
16368 2015-05-07  Jeff Law  <law@redhat.com>
16370         PR target/39726
16371         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16372         simplifier to narrow arithmetic.
16373         * generic-match-head.c: (types_match, single_use): New functions.
16374         * gimple-match-head.c: (types_match, single_use): New functions.
16376 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16378         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
16379         rtx type.
16381 2015-05-07  Richard Biener  <rguenther@suse.de>
16383         PR tree-optimization/66002
16384         * passes.def: Schedule another pass_merge_phi after ifcombine, right
16385         before phiopt.
16387 2015-05-07  Marek Polacek  <polacek@redhat.com>
16388             Martin Uecker  <uecker@eecs.berkeley.edu>
16390         * doc/invoke.texi: Document -fsanitize=bounds-strict.
16391         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
16392         into SANITIZE_NONDEFAULT.
16393         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
16395 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
16397         PR target/66015
16398         * config/alpha/alpha.c (alpha_override_options_after_change): New.
16399         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
16400         (alpha_override_options): Move align_loops, align_jumps and
16401         align_functions handling into alpha_override_options_after_change.
16403 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
16404             Chris Jones  <chrisj@nvidia.com>
16405             Joshua Conner  <jconner@nvidia.com>
16407         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
16408         linking of crtfastmath.o.
16409         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
16411 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
16413         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
16414         (cstore<mode>4_unsigned_imm): New expander.
16415         (cstore<mode>4): Remove empty constraint strings.  Use the new
16416         expanders.
16418 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
16420         PR target/64208
16421         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
16422         alternatives.
16424 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16426         * config/aarch64/geniterators.sh: Use standard BRE in sed.
16428 2015-05-06  Alan Modra  <amodra@gmail.com>
16430         PR target/66033
16431         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
16432         (UNSPEC_NOP): Define.
16433         (reload_vsx_from_gpr<mode>): Add missing DONE.
16434         (reload_gpr_from_vsx<mode>): Likewise.
16435         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
16436         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
16438 2015-05-06  Christian Bruel  <christian.bruel@st.com>
16440         PR target/66015
16441         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
16442         align_jumps, align_functions into aarch64_override_options_after_change.
16444 2015-05-06  Richard Biener  <rguenther@suse.de>
16446         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
16447         vect_transform_slp_perm_load to check if we support a permutation
16448         for basic-block vectorization.
16450 2015-05-06  Nick Clifton  <nickc@redhat.com>
16452         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
16453         used, even if it is not being used as a frame pointer.
16455 2015-05-05  Jason Merrill  <jason@redhat.com>
16457         * dwarf2out.c (gen_member_die): Don't emit anything for an
16458         anonymous class constructor.
16460 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
16462         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
16463         that it reflects the block structure.
16464         (afdo_propagate_edge): Likewise.
16465         (afdo_calculate_branch_prob): Likewise.
16466         (afdo_annotate_cfg): Likewise.
16467         * cfgcleanup.c (equal_different_set_p): Likewise.
16468         (try_crossjump_to_edge): Likewise.
16469         * cgraph.c (cgraph_node::verify_node): Likewise.
16470         * cgraphunit.c (expand_all_functions): Likewise.
16471         * config/i386/i386.c (ix86_expand_copysign): Likewise.
16472         (exact_dependency_1): Likewise.
16473         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
16474         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
16475         * gensupport.c (process_define_subst): Likewise.
16476         * lto-wrapper.c (merge_and_complain): Likewise.
16477         * tree-if-conv.c (if_convertible_bb_p): Likewise.
16478         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
16479         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
16480         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16481         * tree-vect-loop.c (vectorizable_reduction): Likewise.
16482         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16483         * tree-vect-stmts.c (vectorizable_shift): Likewise.
16484         * tree-vrp.c (vrp_finalize): Likewise.
16485         * tree.c (variably_modified_type_p): Likewise.
16487 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
16489         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
16490         on darwin12 and later.
16491         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
16492         file to pass -rdynamic on darwin12 and later.
16493         * config/darwin.opt (rdynamic): Add.
16495 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16497         * doc/extend.texi (C Extensions): Update menu for moved Variable
16498         Attributes and Type Attributes sections.
16500 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16502         PR target/65990
16503         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
16504         if rep_8byte stringop strategy was specified for 32-bit target.
16506 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
16508         PR target/65915
16509         * config/i386/i386.md (vector convert to float spltiter): Check for
16510         xmm16+, when splitting scalar float conversion.
16511         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
16513 2015-05-05  Nick Clifton  <nickc@redhat.com>
16515         * config/msp430/msp430-opts.h (enum msp430_regions): New.
16516         * config/msp430/msp430.c (msp430_override_options): Complain if
16517         -mcode-region or -mdata-region is used on a non MSP430X.
16518         (msp430_section_attr): New function.  Checks lower, upper and
16519         either attributes.
16520         (msp430_attribute_table): Add lower, upper and either.
16521         (gen_prefix): New function.  Generates a prefix for a section
16522         name.
16523         (msp430_select_section): New function - handles the choice of
16524         section for an object.  Takes into account memory region
16525         attributes and options.
16526         (msp430_function_section): Use gen_prefix.
16527         (TARGET_SECTION_TYPE_FLAGS): Define.
16528         (msp430_section_type_flags): New function.
16529         (TARGET_ASM_UNIQUE_SECTION): Define.
16530         (msp430_unique_section): New function.
16531         (msp430_output_aligned_decl_common): New function.
16532         (msp430_do_not_relax_short_jumps): New function.
16533         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
16534         Define.
16535         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16536         * config/msp430/msp430-protos.h
16537         (msp430_do_not_relax_short_jumps): New prototype.
16538         (msp430_output_aligned_decl_common): New prototype.
16539         * config/msp430/msp430.md (length): New attribute.
16540         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
16541         then use a long code sequence for short jumps.
16542         * config/msp430/msp430.opt (mcode-region): New.
16543         (mdata-region): New.
16544         * doc/invoke.texi: Document new options.
16545         * doc/extend.texi: Document new attributes.
16547 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16549         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
16550         (tune_params): Add field branch_costs.
16551         (aarch64_branch_cost): Declare.
16552         * gcc/config/aarch64.c (generic_branch_cost): New.
16553         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
16554         (cortexa53_tunings): Likewise.
16555         (cortexa57_tunings): Likewise.
16556         (thunderx_tunings): Likewise.
16557         (xgene1_tunings): Likewise.
16558         (aarch64_branch_cost): Define.
16559         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
16561 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16563         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
16564         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
16565         * config/i386/i386.md: Ditto.
16566         * config/i386/winnt.c: Ditto.
16568 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16570         * doc/extend.texi (__atomic Builtins): Move implementation details
16571         to the end of the description, rewrite opening paragraphs, state
16572         difference with __sync builtins, state C11/C++11 assumptions,
16573         weaken itemized descriptions, add explanation of memory model
16574         behaviour, expand description of compare-exchange, simplify text.
16576 2015-05-05  Renlin Li  <renlin.li@arm.com>
16578         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
16580 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
16582         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
16583         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16584         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
16585         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16586         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
16587         * configure: Regenerate.
16588         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
16589         * doc/install.texi (aarch64*-*-*): Document new
16590         --enable-fix-cortex-a53-843419 option.
16591         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
16592         and -mno-fix-cortex-a53-843419 options.
16594 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16596         PR target/65871
16597         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
16599 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
16601         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
16602         fix overactive TYPE_MIN_VALUE check and add FIXME for type
16603         compatibility problems.
16605 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16607         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
16608         constraints.
16609         (cbranchsi4_reg): New.
16610         * config/microblaze/microblaze.c
16611         (microblaze_expand_conditional_branch_reg): New.
16612         * config/microblaze/microblaze-protos.h
16613         (microblaze_expand_conditional_branch_reg): New prototype.
16615 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16617         * config/microblaze/microblaze.md (peephole2): New.
16619 2015-05-04  Jeff Law  <law@redhat.com>
16621         Revert:
16622         2015-05-04  Jeff Law  <law@redhat.com>
16624         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16625         simplifier to narrow arithmetic.
16626         * generic-match-head.c: (types_match, single_use): New functions.
16627         * gimple-match-head.c: (types_match, single_use): New functions.
16629 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16631         PR target/65987
16632         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
16633         (split_branches): Likewise.
16635 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
16637         * common.opt (fdelete-null-pointer-checks): Init to -1.
16638         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
16639         override flag_delete_null_pointer_checks default.
16640         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
16641         behavior re address zero.  Better document target-specific behavior.
16642         (-fisolate-errneous-paths-dereference): Mention relationship to
16643         -fdelete-null-pointer-checks.
16645 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16647         PR tree-optimization/65984
16648         * ubsan.c: Include tree-cfg.h.
16649         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
16650         stmt_could_throw_p test, rename can_throw variable to ends_bb.
16652 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16654         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
16655         to CONST_DOUBLE_P predicate.
16656         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
16657         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
16658         allow only operands that satisfy standard_sse_constant_p predicate.
16659         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
16660         to CONST_DOUBLE_P predicate.
16662 2015-05-04  Jeff Law  <law@redhat.com>
16664         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16665         simplifier to narrow arithmetic.
16666         * generic-match-head.c: (types_match, single_use): New functions.
16667         * gimple-match-head.c: (types_match, single_use): New functions.
16669 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
16671         * config/arm/arm.c: Restore bootstrap.
16673 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16675         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
16676         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
16677         as CONST_WIDE_INT, not CONST_DOUBLE.
16678         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
16679         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
16680         (ix86_find_base_term): Do not check for CONST_DOUBLE.
16681         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
16682         (ix86_build_signbit_mask): Rewrite using wide ints.
16683         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
16684         (ix86_rtx_costs): Handle CONST_WIDE_INT.
16685         (find_constant): Ditto.
16686         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
16687         using gen_int_mode.
16688         * config/i386/predicates.md (x86_64_immediate_operand)
16689         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16690         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
16691         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16692         (const0_operand): Also match const_wide_int.
16693         (constm1_operand): Ditto.
16694         (const1_operand): Ditto.
16696 2015-05-04  Richard Biener  <rguenther@suse.de>
16698         PR tree-optimization/65965
16699         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
16700         store groups at gaps.
16702 2015-05-04  Richard Biener  <rguenther@suse.de>
16704         PR tree-optimization/65935
16705         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
16706         then make sure to apply that swapping to the IL.
16708 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16710         * Makefile.in (PATCHLEVEL_c): New variable.
16711         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
16712         expand the same way as if DEVPHASE_c was non-empty.
16714 2015-05-04  Kai Tietz  <ktietz@redhat.com>
16716         PR target/65559
16717         * lto-wrapper.c (run_gcc): Open filename
16718         in binary-mode.
16720 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
16722         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
16723         sections up in file, to immediately after the Function Attributes
16724         section.
16726 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
16728         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
16730 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16732         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
16733         (insert_partition_copy_on_edge): Adjust.
16734         (insert_rtx_to_part_on_edge): Likewise.
16735         (insert_part_to_rtx_on_edge): Likewise.
16737 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16739         * function.c (set_return_jump_label): Change type of argument to
16740         rtx_insn *.
16741         * function.h (set_return_jump_label): Adjust.
16743 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16745         * reload.h (struct reg_equivs_t): Change type of init to
16746         rtx_insn *.
16747         * ira.c (fix_reg_equiv_init): Adjust.
16748         * reload1.c (eliminate_regs_1): Likewise.
16749         (init_eliminable_invariants): Likewise.
16751 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16753         * cselib.c (fp_setter_insn): Take a rtx_insn *.
16754         * cselib.h (fp_setter_insn): Adjust.
16756 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16758         * recog.c (struct validate_replace_src_data): Change type of
16759         insn field to rtx_insn *.
16760         (validate_replace_src_group): Change type of argument to rtx_insn *.
16761         * recog.h (validate_replace_src_group): Adjust.
16763 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16765         * haifa-sched.c: Change the type of some variables to rtx_insn *.
16766         * sched-deps.c: Likewise.
16767         * sched-int.h: Likewise.
16768         * sched-rgn.c: Likewise.
16769         * sel-sched.c: Likewise.
16771 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16773         to rtx_insn *.
16774         * config/i386/i386.c: Change the type of some arguments to
16775         rtx_insn *.
16776         * config/arm/arm.c: Likewise.
16778 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16780         * lra-constraints.c: Change type of some arguments to rtx_insn *.
16782 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16784         * regcprop.c (kill_autoinc_value): Change type of argument to
16785         rtx_insn *.
16787 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16789         * genrecog.c (print_subroutine): Adjust.
16790         * recog.c (get_bool_attr_mask_uncached): Likewise.
16791         * recog.h (struct recog_data_d): Change the type of insn to
16792         rtx_insn *.
16794 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16796         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
16798 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16800         * df-problems.c (df_set_note): Change type of argument to
16801         rtx_insn *.
16803 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16805         * builtins.c (expand_builtin_trap): Change type of local
16806         variable to rtx_insn *.
16807         (add_sched_insns_for_speculation): Likewise.
16808         (ix86_emit_save_regs): Likewise.
16809         (get_scratch_register_on_entry): Likewise.
16810         (ix86_emit_restore_reg_using_pop): Likewise.
16811         (ix86_emit_leave): Likewise.
16812         (ix86_emit_restore_regs_using_mov): Likewise.
16813         (ix86_expand_epilogue): Likewise.
16814         Likewise.
16815         (rl78_alloc_physical_registers_umul): Likewise.
16816         * cselib.c (discard_useless_locs): Likewise.
16817         (cselib_invalidate_regno): Likewise.
16818         (cselib_invalidate_mem): Likewise.
16819         * function.c (expand_function_start): Likewise.
16820         (emit_use_return_register_into_block): Likewise.
16821         * gcse.c: Likewise.
16822         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
16823         * ifcvt.c (noce_get_alt_condition): Likewise.
16824         * loop-doloop.c (doloop_condition_get): Likewise.
16825         * lra-constraints.c (inherit_in_ebb): Likewise.
16826         * modulo-sched.c (sms_schedule_by_order): Likewise.
16827         * recog.c (next_insn_tests_no_inequality): Likewise.
16828         * reorg.c (emit_delay_sequence): Likewise.
16829         (update_reg_dead_notes): Likewise.
16830         (fix_reg_dead_note): Likewise.
16831         (fill_slots_from_thread): Likewise.
16832         (delete_computation): Likewise.
16834 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
16836         * doc/extend.texi (Variable Attributes): Add menu and proper
16837         @nodes to subsections.  Move Microsoft Windows attributes to
16838         their own subsection.
16839         (Type Attributes): Reorganize introduction to remove duplicate
16840         list of attributes.  Add menu and proper @nodes to subsections.
16841         Alphabetize the main table of common attributes.
16843 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
16845         * match.pd: New simplification patterns.
16846         (x + (x & 1))  -> ((x + 1) & ~1)
16847         (x & ~(x & y)) -> ((x & ~y))
16848         (x | ~(x | y)) -> ((x | ~y))
16850 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16852         * target.def (attribute_table): Mention that struct attribute_spec
16853         is defined in tree-core.h rather than tree.h
16854         * doc/tm.texi: Regenerate.
16856 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
16858         * genrecog.c (test): Rename to rtx_test.  Update rest of file
16859         accordingly.
16861 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16863         PR translation/65959
16864         * params.h (DEFPARAM): Rename msgid to nocmsgid.
16866 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16868         * gcc/config/aarch64/aarch64-protos.h (tune_params):
16869         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
16870         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
16871         Return value depending on target.
16872         (generic_tunings): Initialize new target settings.
16873         (cortexa53_tunings): Likewise.
16874         (cortexa57_tunings): Likewise.
16875         (thunderx_tunings): Likewise.
16876         (xgene1_tunings): Likewise.
16878 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16880         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
16881         Make Cortex-A53 shift costs more accurate.
16883 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16885         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
16886         UNSIGNED_FLOAT.
16888 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16890         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
16891         Calculate cost of op0 and op1 in PLUS and MINUS cases.
16893 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16895         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16896         Add cost of op0 in the compare-with-fpzero case.
16898 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
16900         * builtins.c (fold_builtin_1): Remove spurious second
16901         semicolon.
16902         * cgraph.h (symtab_node::get_availability): Likewise.
16903         * opts.c (common_handle_option): Remove spurious second semicolon.
16904         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16905         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16907 2015-04-30  Caroline Tice  <cmtice@google.com>
16909         PR gcov-profile/65929
16910         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
16911         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
16912         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
16913         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
16914         * doc/tm.texi: Regenerate.
16915         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
16916         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
16917         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
16918         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
16920 2015-04-30  Marek Polacek  <polacek@redhat.com>
16922         * varasm.c (handle_cache_entry): Fix logic.
16924 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16926         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
16927         (*extrsi5_insn_uxtw_alt): Likewise.
16928         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
16929         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
16930         operations.
16932 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16934         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
16935         fabd in ABS case.
16937 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16939         * config/aarch64/aarch64.md
16940         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
16941         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
16942         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
16943         appropriately.  Handle alternative EON form.
16945 2015-04-30  Renlin Li  <renlin.li@arm.com>
16947         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
16948         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
16950 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
16952         PR ipa/65873
16953         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
16954         -fstrict-aliasing boundaries.
16956 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16958         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
16959         and [SU]MNEGL patterns.
16961 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16963         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
16964         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
16965         combined arithmetic-shift ops.  Properly handle all shift and extend
16966         operations that can occur in combination with PLUS/MINUS.
16967         Rename maybe_fma to compound_p.
16968         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
16969         arithmetic and shift operations.
16971 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16973         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
16974         rather than arith_shift cost when costing ADD/MINUS of an
16975         extended value.
16977 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
16979         PR lto/65948
16980         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
16981         to itself.
16983 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
16985         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
16986         are for the same position.
16988 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
16990         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
16991         vectorize_loops.
16992         (vectorize_loops): Use it.
16994 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
16996         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
16997         for aggregate types.
16998         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
16999         type to be non_ODR.
17000         * tree.c (need_assembler_name_p): Compute mangled name for
17001         non-fundamental types and integer types.
17003 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
17005         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
17006         manual swaps.
17007         * expr.c (expand_expr_real_2): Likewise.
17009 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17011         * tree.c (build_common_builtin_nodes): Do not build
17012         __builtin_alloca_with_align as equivalent of library alloca.
17014 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17016         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
17017         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
17018         bugus variants.
17019         * tree.c: Include print-tree.h and ipa-utils.h
17020         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
17021         (free_lang_data_in_cgraph): Call verify_type.
17022         (verify_type_variant): New function.
17023         (verify_type): New function.
17024         * tree.h (verify_type): Declare.
17026 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
17028         * config/mips/mips-cpus.def: (mips4): Change default processor
17029         from PROCESSOR_R8000 to PROCESSOR_R10000.
17031 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
17033         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
17034         la/jalr instead of jal.
17036 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
17038         PR target/65871
17039         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
17040         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
17041         (setcc+movzbl peephole2): Check also clobbered reg.
17042         (setcc+andl peephole2): Ditto.
17044 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17046         PR libgomp/65099
17047         * config/nvptx/mkoffload.c (target_ilp32): New variable.
17048         (main): Set it depending on "-foffload-abi=[...]".
17049         (compile_native, main): Use it to pass "-m32" or "-m64" to the
17050         compiler.
17052 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17054         PR target/65770
17055         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
17056         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
17057         Flip lane index back at assembly time for bigendian.
17059 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17061         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
17062         * gimplify.c (gimplify_omp_workshare): Use it.
17064 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17066         * Makefile.in (build/genrecog.o): Depend on inchash.h.
17067         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
17068         build/inchash.o
17069         * genrecog.c: Rewrite most of the code except for the third page.
17071 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17073         * inchash.h, inchash.c: Include bconfig.h for build objects.
17074         * Makefile.in (build/inchash.o): New rule.
17076 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
17078         PR target/65924
17079         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
17080         number in type attribute expression.
17082 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17084         * loop-iv.c (canon_condition): Generalize to all types of integer
17085         constant.
17087 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
17089         * gimple-walk.c: Prune duplicate or unneeded includes.
17090         (walk_gimple_asm): Only call parse_input_constraint or
17091         parse_output_constraint if their findings are used.
17092         Honour parse_input_constraint and parse_output_constraint
17093         result.
17095 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17097         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
17099 2015-04-29  Tom de Vries  <tom@codesourcery.com>
17101         PR tree-optimization/65893
17102         * passes.def (pass_all_optimizations): Move pass_stdarg to after
17103         pass_dce.
17105 2015-04-29  Richard Biener  <rguenther@suse.de>
17107         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17108         compute GROUP_SIZE for basic-block SLP.
17109         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
17110         take into account gaps.
17111         (vect_get_mask_element): Properly reject references to previous
17112         vectors.
17113         (vect_transform_slp_perm_load): Likewise.
17115 2015-04-29  Christian Bruel  <christian.bruel@st.com>
17117         PR target/64835
17118         * config/i386/i386.c (ix86_default_align): New function.
17119         (ix86_override_options_after_change): Call ix86_default_align.
17120         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
17121         (ix86_override_options_after_change): New function.
17123 2015-04-28  Jeff Law  <law@redhat.com>
17125         * tree-ssa-dom.c (record_equality); Fix comment typos.
17127 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17129         PR tree-optimization/65887
17130         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
17132 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
17134         * doc/extend.texi (Declaring Attributes of Functions): Split into
17135         subsections by target.  Alphabetize the table of common attributes.
17136         Rewrite some of the introductory text to reflect the new structure.
17137         Update some cross-references to point to the new subsections.
17138         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
17139         duplicate copies in the discussion of function, label, and type
17140         attributes.
17142 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
17144         PR bootstrap/65910
17145         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
17147 2015-04-28  Jason Merrill  <jason@redhat.com>
17149         PR c++/65734
17150         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
17151         (finalize_type_size): Respect TYPE_USER_ALIGN.
17152         (layout_type) [ARRAY_TYPE]: Likewise.
17154 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
17156         * config/arm/arm.md (*arm_movt): Fix type attribute.
17157         (*cmpsi_shiftsi): Likewise.
17158         (*cmpsi_shiftsi_swp): Likewise.
17159         (*movsicc_insn): Likewise.
17160         (*cond_move): Likewise.
17161         (*if_plus_move): Likewise.
17162         (*if_move_plus): Likewise.
17163         (*if_arith_move): Likewise.
17164         (*if_move_arith): Likewise.
17165         (*if_shift_move): Likewise.
17166         (*if_move_shift): Likewise.
17167         (*arm_movtas_ze): Likewise.
17168         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
17169         redundancy and type attribute.
17170         (*thumb2_movsi_insn): Fix type attribute.
17171         (*thumb2_addsi_short): Likewise.
17172         (thumb2_addsi3_compare0): Likewise.
17173         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
17174         attributes accordingly.
17176 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
17178         PR other/65911
17179         * function.c (pad_to_arg_alignment): Add parentheses.
17181 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
17183         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
17184         libgcc/config/frv/elf-lib.h.
17186 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17188         * tree-call-cdce.c: Fix example in header comment.
17190 2015-04-28  Richard Biener  <rguenther@suse.de>
17192         PR tree-optimization/62283
17193         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
17194         fails fatally and we are vectorizing a basic-block simply
17195         cause the child to be constructed piecewise.
17196         (vect_analyze_slp_cost_1): Adjust.
17197         (vect_detect_hybrid_slp_stmts): Likewise.
17198         (vect_bb_slp_scalar_cost): Likewise.
17199         (vect_get_constant_vectors): For piecewise constructed
17200         constants place them after the last def.
17201         (vect_get_slp_defs): Adjust.
17202         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
17203         externals for basic-block vectorization.
17205 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17207         PR target/63503
17208         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
17209         aarch64-*-*.
17210         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
17211         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
17212         (AARCH64_TUNE_FMA_STEERING): Likewise.
17213         * config/aarch64/aarch64-cores.def: Set
17214         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
17215         FMUL/FMADD instructions.
17216         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
17217         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
17218         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
17219         * config/aarch64/cortex-a57-fma-steering.h: New file.
17220         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17222 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
17224         * gensupport.c (std_preds): Add missing codes to address_operand entry.
17226 2015-04-28  Richard Biener  <rguenther@suse.de>
17228         PR tree-optimization/65851
17229         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
17230         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
17231         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
17232         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
17233         (ccp_visit_phi_node): Adjust.
17234         (evaluate_stmt): For simplifications to SSA names return its
17235         lattice value if that isn't VARYING.  Return immediately when
17236         simplified to a constant.
17237         (visit_assignment): Adjust.
17238         (ccp_visit_stmt): Likewise.
17240 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17242         PR tree-optimization/65818
17243         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
17244         evaluated.
17246 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17248         * calls.c (save_fixed_argument_area): Don't check
17249         ARGS_GROW_DOWNWARD with the preprocessor.
17250         (restore_fixed_argument_area): Likewise.
17251         (mem_overlaps_already_clobbered_arg_p): Likewise.
17252         (check_sibcall_argument_overlap): Likewise.
17253         (expand_call): Likewise.
17254         (emit_library_call_value_1): Likewise.
17255         (store_one_arg): Likewise.
17256         * function.c (assign_parms): Likewise.
17257         (locate_and_pad_parm): Likewise.
17258         (pad_to_arg_alignment): Likewise.
17259         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17261 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17263         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
17264         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
17265         * calls.c (save_fixed_argument_area): Don't chekc if
17266         ARGS_GROW_DOWNWARD is defined.
17267         (restore_fixed_argument_area): Likewise.
17268         (mem_overlaps_already_clobbered_arg_p): Likewise.
17269         (check_sibcall_argument_overlap): Likewise.
17270         (expand_call): Likewise.
17271         (emit_library_call_value_1): Likewise.
17272         (store_one_arg): Likewise.
17273         * function.c (assign_parms): Likewise.
17274         (locate_and_pad_parm): Likewise.
17275         (pad_to_arg_alignment): Likewise.
17276         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17278 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17280         * defaults.h (gen_epilogue): New function.
17281         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
17282         defined.
17283         * cfgrtl.c (cfg_layout_finalize): Likewise.
17284         * df-scan.c: Likewise.
17285         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17286         (reposition_prologue_and_epilogue_notes): Likewise.
17287         * reorg.c (find_end_label): Likewise.
17288         * toplev.c: Likewise.
17290 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17292         * bb-reorder.c (HAVE_return): Don't check if its undefined.
17293         * defaults.h (gen_simple_return): New function.
17294         (gen_simple_return): Likewise.
17295         (HAVE_return): Add default definition to false.
17296         (HAVE_simple_return): Likewise.
17297         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
17298         HAVE_return and HAVE_simple_return are defined.
17299         * function.c (gen_return_pattern): Likewise.
17300         (convert_jumps_to_returns): Likewise.
17301         (thread_prologue_and_epilogue_insns): Likewise.
17302         * reorg.c (find_end_label): Likewise.
17303         (dbr_schedule): Likewise.
17304         * shrink-wrap.c: Likewise.
17305         * shrink-wrap.h: Likewise.
17307 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17309         * defaults.h (EPILOGUE_USES): Add default definition of false.
17310         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
17311         * resource.c (init_resource_info): Likewise.
17313 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17315         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
17316         to false.
17317         * dwarf2out.c (field_byte_offset): REmove check if
17318         PCC_BITFIELD_TYPE_MATTERS is defined.
17319         * stor-layout.c (layout_decl): Likewise.
17320         (update_alignment_for_field): Likewise.
17321         (place_field): Likewise.
17323 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17325         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
17326         true.
17327         * regrename.c (check_new_reg_p): Remove check if
17328         HARD_REGNO_RENAME_OK is defined.
17329         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
17331 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17333         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
17334         * cse.c (fold_rtx): Likewise.
17335         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
17336         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
17337         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
17338         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
17339         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
17340         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
17341         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
17342         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
17343         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
17344         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
17345         * Likewise.
17346         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
17347         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
17348         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
17349         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
17350         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
17351         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
17352         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
17353         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
17354         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
17355         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
17356         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
17357         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
17358         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
17359         * doc/tm.texi: Regenerate.
17360         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
17361         either true or false.
17363 2015-04-27  Jeff Law  <law@redhat.com>
17365         PR tree-optimization/65217
17366         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
17367         of them has a single use, make sure it is the LHS of the implied
17368         copy.
17370 2015-04-28  Alan Modra  <amodra@gmail.com>
17372         PR target/65810
17373         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
17374         (offsettable_ok_by_alignment): Use minimum of decl and toc
17375         pointer alignment.  Replace dead code with assertion.
17376         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
17377         case if size exceeds toc pointer alignment.
17378         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
17379         (rs6000_emit_move): Likewise.
17380         * configure.ac: Add linker toc pointer alignment check.
17381         * configure: Regenerate.
17382         * config.in: Regenerate.
17384 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
17386         * config.gcc: Add h8300-*-linux.
17387         * config/h8300/linux.h: New.
17388         * config/h8300/t-linux: New.
17389         * config/h8300/h8300.c (h8300_option_override): Normal mode
17390         is not supported for h8300-*-linux.
17391         (h8300_file_start): Target priority change.
17392         (get_shift_alg): Likewise.
17393         (h8300_shift_need_scratch_p): Likewise.
17394         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17395         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
17397 2015-04-27  Caroline Tice  <cmtice@google.com>
17399         * final.c (final_scan_insn):  Output cold_function_name as function
17400         type.
17401         * varasm.c (cold_function_name):  Make global.
17402         (assemble_start_function):  Re-set cold_function_name.
17403         (assemble_end_function): Output cold partition size.
17404         * varasm.h (cold_function_name):  Declare global.
17406 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
17408         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
17409         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
17410         constraint.
17411         (*movxi_internal_avx512f): Ditto.
17412         (define_split): Check for xmm16+, when splitting scalar float_extend.
17413         (*extendsfdf2_mixed): Use "v" constraint.
17414         (define_split): Check for xmm16+, when splitting scalar float_truncate.
17415         (*truncdfsf_fast_sse): Use "v" constraint.
17416         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
17417         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
17418         (define_peephole2): Check for xmm16+, when converting scalar
17419         float_truncate.
17420         (define_peephole2): Check for xmm16+, when converting scalar
17421         float_extend.
17422         (*fop_<mode>_comm_mixed): Use "v" constraint.
17423         (*fop_<mode>_comm_sse): Ditto.
17424         (*fop_<mode>_1_mixed): Ditto.
17425         (*sqrt<mode>2_sse): Ditto.
17426         (*ieee_s<ieee_maxmin><mode>3): Ditto.
17428 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17430         * combine.c (simplify_if_then_else): Use std::swap instead
17431         of manually swapping.
17432         (known_cond): Likewise.
17433         (simplify_comparison): Likewise.
17435 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
17437         PR target/64579
17438         * config/rs6000/htm.md: Remove all define_expands.
17439         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
17440         UNSPECV_HTM_TABORTWCI): Remove.
17441         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
17442         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
17443         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
17444         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
17445         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
17446         tabortwci_internal): Remove define_insns.
17447         (tabort<wd>c, tabort<wd>ci): New define_insns.
17448         (tabort): Use gpc_reg_operand.
17449         (tcheck): Remove operand.
17450         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
17451         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
17452         expected value.
17453         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
17454         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
17455         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
17456         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
17457         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
17458         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
17459         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
17460         (tcheck): Remove builtin argument.
17461         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
17462         not TARGET_64BIT.
17463         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
17464         tabortdc and tabortdci builtins when not in 64-bit mode.
17465         Modify code to handle the loss of the HTM define_expands.
17466         Emit code to copy the CR register to TARGET.
17467         (htm_init_builtins): Modify code to handle the loss of the HTM
17468         define_expands.
17469         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
17470         (RS6000_BTC_64BIT): Likewise.
17471         (RS6000_BTC_CR): New macro.
17472         * doc/extend.texi: Update documentation for htm builtins.
17474 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17476         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
17477         of manually swapping.
17478         (simplify_associative_operation): Likewise.
17479         (simplify_binary_operation): Likewise.
17480         (simplify_plus_minus): Likewise.
17481         (simplify_relational_operation): Likewise.
17482         (simplify_ternary_operation): Likewise.
17484 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17486         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
17487         (xs_hi_nonmemory_operand): Remove error.
17488         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
17489         general_operand rather than xs_hi_general_operand.
17491 2015-04-27  Richard Biener  <rguenther@suse.de>
17493         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
17494         (record_equivalences_from_stmt): Valueize rhs.
17495         (record_equality): Canonicalize x and y order via
17496         tree_swap_operands_p.  Do not swap operands for same loop depth.
17498 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
17500         PR target/65296
17501         PR target/65895
17502         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
17503         Add hint how to use own spec file.
17505 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
17507         PR tree-optimization/65875
17508         * tree-vrp.c (update_value_range): If in is_new case setting
17509         old_vr to VR_VARYING, also set new_vr to it.  Remove
17510         old_vr->type == VR_VARYING test.
17511         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
17512         SSA_PROP_INTERESTING if update_value_range returned true,
17513         but new range is VR_VARYING.
17515 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17517         * combine.c (sign_extend_short_imm): New.
17518         (set_nonzero_bits_and_sign_copies): Use above new function for sign
17519         extension of src short immediate.
17520         (reg_nonzero_bits_for_combine): Likewise for tem.
17522 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17524         * stor-layout.c (self_referential_component_ref_p): New predicate.
17525         (copy_self_referential_tree_r): Use it.
17526         (self_referential_size): Punt for simple operations directly involving
17527         self-referential component references.
17528         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
17530 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17532         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
17534 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17536         * vec.h (vec): Make splice arguments const.  Update definitions
17537         accordingly.
17539 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
17541         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
17542         alternatives.
17544 2015-04-26  Tom de Vries  <tom@codesourcery.com>
17546         PR tree-optimization/65826
17547         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
17549 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
17551         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
17552         (*madd3<mode>): Ditto.
17553         (*msub4<mode>): Ditto.
17554         (*msub3<mode>): Ditto.
17555         (*nmadd4<mode>): Ditto.
17556         (*nmadd3<mode>): Ditto.
17557         (*nmadd4<mode>_fastmath): Ditto.
17558         (*nmadd3<mode>_fastmath): Ditto.
17559         (*nmsub4<mode>): Ditto.
17560         (*nmsub3<mode>): Ditto.
17561         (*nmsub4<mode>_fastmath): Ditto.
17562         (*nmsub3<mode>_fastmath): Ditto.
17564 2015-04-24  Jason Merrill  <jason@redhat.com>
17566         PR c++/50800
17567         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
17568         down when building TYPE_CANONICAL.
17569         (build_pointer_type_for_mode): Likewise.
17571 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
17573         * genrecog.c (validate_pattern): Check matching constraint refers
17574         to a lower numbered operand.
17576 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17578         PR target/65849
17579         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
17580         save to independent variables use the Save attribute.  This will
17581         allow these options to be modified with the #pragma/attribute
17582         target support.
17583         (-mallow-movmisalign): Likewise.
17584         (-mallow-df-permute): Likewise.
17585         (-msched-groups): Likewise.
17586         (-malways-hint): Likewise.
17587         (-malign-branch-targets): Likewise.
17588         (-mvectorize-builtins): Likewise.
17589         (-msave-toc-indirect): Likewise.
17591         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
17592         can be set via the #pragma/attribute target support.
17593         (rs6000_opt_vars): Likewise.
17594         (rs6000_inner_target_options): If VSX was set, also set
17595         -mno-avoid-indexed-addresses.
17597 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17599         * config/arm/iterators.md (shiftable_ops): Rename to...
17600         (SHIFTABLE_OPS): ... This.  Update use in comments.
17601         (ior_xor): Rename to...
17602         (IOR_XOR): ... This.
17603         (vqh_ops): Rename to...
17604         (VQH_OPS): ... This.
17605         (vqhs_ops): Rename to...
17606         (VQHS_OPS): ... This.
17607         (rshifts): Rename to...
17608         (RSHIFTS): ... This.
17609         (returns): Rename to...
17610         (RETURNS): ... This.
17611         * config/arm/arm.md: Update uses of the above.
17612         * config/arm/neon.md: Likewise.
17614 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17616         * config.host (case ${host}): Add aarch64*-*-linux case.
17617         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
17618         fields to all the cores.
17619         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
17620         Add MCPU_MTUNE_NATIVE_SPECS.
17621         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
17622         field to all extensions.
17623         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
17624         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
17625         Adjust definition of AARCH64_OPT_EXTENSION.
17626         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
17627         (MCPU_MTUNE_NATIVE_SPECS): Define.
17628         * config/aarch64/driver-aarch64.c: New file.
17629         * config/aarch64/x-arch64: New file.
17630         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
17631         -mtune and -march.
17633 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17634             Wei Mi  <wmi@google.com>
17636         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
17637         * config/i386/i386.c (extract_base_offset_in_addr): New function.
17638         (ix86_operands_ok_for_move_multiple): Ditto.
17639         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
17640         (movlpd/movhpd to movupd peephole2): Ditto.
17642 2015-04-24  Marek Polacek  <polacek@redhat.com>
17644         PR c/61534
17645         * input.h (from_macro_expansion_at): Define.
17647         PR c/63357
17648         * doc/invoke.texi: Update description of -Wlogical-op.
17650 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17652         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
17653         ternary operator in fprintf and harmonize spacing.
17655 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17657         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
17658         Mark operand1 commutative.
17660 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17662         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
17663         input operands in memory.
17664         (*vec_concatv2si_sse4_1): Ditto.
17665         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
17666         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
17667         register_operand.
17668         (vec_extract_hi_v32hi): Ditto.
17669         (vec_extract_hi_v64hi): Ditto.
17670         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
17672 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17673             Steven Bosscher <steven@gcc.gnu.org>
17675         PR rtl-optimization/34503
17676         * cprop.c (cprop_reg_p): New.
17677         (hash_scan_set): Use above function to check if register can be
17678         propagated.
17679         (find_avail_set): Return up to two sets, one whose source is a
17680         register and one whose source is a constant.  Sets are returned in an
17681         array passed as parameter rather than as a return value.
17682         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
17683         sets returned by find_avail_set, starting with the one whose source is
17684         a constant. Use cprop_reg_p to check if register can be propagated.
17685         (do_local_cprop): Use cprop_reg_p to check if register can be
17686         propagated.
17687         (implicit_set_cond_p): Likewise.
17689 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17691         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
17692         (sem_function::equals): IGNORED_NODES parameter is now unused;
17693         update call of equals_private.
17694         (sem_function::equals_private): Do not call equals_wpa; skip
17695         gimple body matching if there is no body.
17696         (sem_function::init): Add logic to hash tthunk info.
17697         (sem_function::parse): Also parse thunks.
17698         * ipa-icf.h (equals_private): Update declaration.
17700 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17702         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
17703         asterisk from name so this can be generated directly.
17704         (*altivec_stvx_<mode>_internal): Likewise.
17705         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
17706         that this is never called during or after reload/lra.
17707         (rs6000_frame_related): Remove split_reg
17708         argument and logic that references it.
17709         (emit_frame_save): Remove last parameter from call to
17710         rs6000_frame_related.
17711         (rs6000_emit_prologue): Remove last parameter from eight calls to
17712         rs6000_frame_related.  Force generation of stvx instruction for
17713         Altivec register saves.  Remove split_reg handling, which is no
17714         longer needed.
17715         (rs6000_emit_epilogue):  Force generation of lvx instruction for
17716         Altivec register restores.
17718 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17720         * config/rs6000/rs6000.opt (mcrypto): Change option description to
17721         match category changes in ISA 2.07B.
17723 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17725         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
17726         iterators.
17727         (cmp_op, cmp_type): New code attributes.
17728         (NEON_VCMP, NEON_VACMP): New int iterators.
17729         (cmp_op_unsp): New int attribute.
17730         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
17731         (neon_vceq<mode>): Delete.
17732         (neon_vc<cmp_op><mode>_insn): New pattern.
17733         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
17734         (neon_vcgeu<mode>): Delete.
17735         (neon_vcle<mode>): Likewise.
17736         (neon_vclt<mode>: Likewise.
17737         (neon_vcage<mode>): Likewise.
17738         (neon_vcagt<mode>): Likewise.
17739         (neon_vca<cmp_op><mode>): New define_expand.
17740         (neon_vca<cmp_op><mode>_insn): New pattern.
17741         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
17743 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17745         * tree.h (attribute_value_equal): Declare.
17746         * tree.c (attribute_value_equal): Export.
17748 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17750         * ipa-icf.c (sem_item::compare_attributes): New function.
17751         (sem_item::compare_referenced_symbol_properties): Compare variable
17752         attributes.
17753         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
17754         (sem_function::param_used_p): New function.
17755         (sem_function::equals_wpa): Fix attribute comparsion; match
17756         parameter type codes; do not compare paremter flags when
17757         they are not used; compare edge flags; compare indirect calls.
17758         (sem_item::update_hash_by_addr_refs): Hash reference type.
17759         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
17760         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
17761         reference use type.
17762         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
17763         * ipa-icf.h (compare_attributes, param_used_p): Declare.
17765 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17767         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
17768         cleanup.
17769         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
17770         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
17771         (sem_item::compare_referenced_symbol_properties): New.
17772         (sem_item::hash_referenced_symbol_properties): New.
17773         (sem_item::compare_cgraph_references): Rename to ...
17774         (sem_item::compare_symbol_references): ... this one; use
17775         compare_referenced_symbol_properties.
17776         (sem_function::equals_wpa): Do not compare
17777         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
17778         DECL_IS_OPERATOR_NEW; compare pointer sizes.
17779         (sem_item::update_hash_by_addr_refs): Call
17780         hash_referenced_symbol_properties.
17781         (sem_item::update_hash_by_local_refs): Cleanup.
17782         (sem_function::merge): Do not mix up symbol properties.
17783         (sem_variable::equals_wpa): Use compare_symbol_references.
17784         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
17785         (sem_item::hash_referenced_symbol_properties): New.
17786         (sem_item::compare_symbol_references): New.
17787         (sem_item::compare_cgraph_references): Remove.
17789 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
17791         PR target/26702
17792         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
17793         Emit size of local.
17795 2015-04-23  Nick Clifton  <nickc@redhat.com>
17797         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
17798         ATTRIBUTE_UNUSED to x parameter.
17799         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
17801 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17803         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
17804         TARGET_CRYPTO to TARGET_P8_VECTOR>
17805         (crypto_vpermxor_<mode>): Likewise.
17806         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
17807         (BU_CRYPTO_3A): Likewise.
17808         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
17809         (BU_CRYPTO_OVERLOAD_3A): New #define.
17810         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
17811         (VPMSUMH): Likewise.
17812         (VPMSUMW): Likewise.
17813         (VPMSUMD): Likewise.
17814         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
17815         (VPERMXOR_V4SI): Likewise.
17816         (VPERMXOR_V8HI): Likewise.
17817         (VPERMXOR_V16QI): Likewise.
17818         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
17819         BU_CRYPTO_OVERLOAD_2A.
17820         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
17821         BU_CRYPTO_OVERLOAD_3A.
17822         * config/rs6000/rs6000.opt (mcrypto): Change description of
17823         option.
17825 2015-04-23  Richard Biener  <rguenther@suse.de>
17827         * passes.def: Remove copy propagation passes run directly after CCP.
17828         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
17829         SSA names.
17830         (ccp_visit_phi_node): Rework to handle first executable edge
17831         specially.
17833 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
17835         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17836         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17837         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17838         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
17839         (thumb_legimitimize_reload_address): Remove.
17840         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
17841         Remove.
17842         (thumb_legimitimize_reload_address): Remove.
17844 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17846         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
17848 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17850         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
17851         MAX_LDM_STM_OPS.
17852         (store_multiple): Likewise.
17854 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17856         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
17857         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
17858         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
17859         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
17860         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
17861         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
17862         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
17863         Specify issue_rate value.
17864         (arm_issue_rate): Look up issue rate from tuning structs. Remove
17865         large switch statement.
17866         (arm_marvell_pj4_tune): New struct.
17867         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
17868         struct.
17870 2015-04-23  Richard Biener  <rguenther@suse.de>
17872         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
17873         (vect_find_last_store_in_slp_instance): Rename to ...
17874         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
17875         (vect_analyze_slp_cost_1): Use vector_load for constant defs
17876         and vec_construct for external defs when estimating prologue cost.
17877         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
17878         Compute costs here only when vectorizing loops.
17879         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
17880         have been determined.
17881         (vect_schedule_slp_instance): Simplify vectorized code placement
17882         and prepare for in-BB external defs.
17883         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
17884         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
17885         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
17886         guard.
17887         (vect_model_load_cost): Likewise.
17888         (vectorizable_store): Instead add it here.
17889         (vectorizable_load): Likewise.
17890         (vect_is_simple_use): Dump def type textually.
17892 2015-04-23  Richard Biener  <rguenther@suse.de>
17894         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
17895         * cfgloop.c (verify_loop_structure): Verify the root loop node.
17896         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
17897         instead of get_eh_region_from_lp_number.
17898         * loop-init.c (fix_loop_structure): If we removed a loop, reset
17899         the SCEV cache.
17901 2015-04-23  Anton Blanchard  <anton@samba.org>
17903         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
17904         need for -mprofile-kernel to save LR to stack.
17906 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17908         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
17909         adjustments.
17910         (insn_is_swappable_p): Return 1 for a convert from double to
17911         single precision when all of its uses are splats of BE element
17912         zero.
17914 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17916         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
17918 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17920         PR target/65456
17921         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
17922         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
17923         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
17924         option.
17925         (rs6000_builtin_mask_for_load): Return 0 for targets with
17926         efficient unaligned VSX accesses so that the vectorizer will use
17927         direct unaligned loads.
17928         (rs6000_builtin_support_vector_misalignment): Always return true
17929         for targets with efficient unaligned VSX accesses.
17930         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
17931         stores on targets with efficient unaligned VSX accesses is almost
17932         always the same as the cost of an aligned load or store, so model
17933         it that way.
17934         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
17935         unaligned vectors if we have efficient unaligned VSX accesses.
17936         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
17937         undocumented option.
17939 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17941         Revert:
17942         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
17944         * config.gcc (LIBC_MUSL): New tm_defines macro.
17945         * config/linux.h (OPTION_MUSL): Define.
17946         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17947         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17948         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17950         * config/linux.opt (mmusl): New option.
17951         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17952         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17954         * configure: Regenerate.
17956 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
17958         * config.gcc (LIBC_MUSL): New tm_defines macro.
17959         * config/linux.h (OPTION_MUSL): Define.
17960         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17961         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17962         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17964         * config/linux.opt (mmusl): New option.
17965         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17966         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17968         * configure: Regenerate.
17970 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
17972         * doc/invoke.texi (-fsanitize-sections): Update description.
17973         * asan.c (set_sanitized_sections): Parse incoming arg.
17974         (section_sanitized_p): Support wildcards.
17976 2015-04-22  Tom de Vries  <tom@codesourcery.com>
17978         PR tree-optimization/65823
17979         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
17980         equality between ap_copy and ap.
17982 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17984         PR target/47098
17985         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
17987 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17989         PR target/47122
17990         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
17992 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17994         PR target/55144
17995         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
17996         remove already contained t-files.
17998 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18000         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
18001         Remove unneeded forward declarations.
18002         (suitable_for_tail_call_opt_p): Commentary typo fix.
18004 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18006         * varasm.c (emit_bss): Remove redundant guard.
18008 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18010         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
18012 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18014         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
18016 2015-04-22  Hale Wang  <hale.wang@arm.com>
18017             Terry Guo  <terry.guo@arm.com>
18019         PR rtl-optimization/64818
18020         * combine.c (can_combine_p): Don't combine user-specified
18021         register if it is in an asm input.
18023 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
18025         PR ipa/65076
18026         * passes.def (early_optimizations): Add pass_dse.
18028 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18030         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
18031         * reorg.c (redundant_insn): Remove ifdef
18032         INSN_REFERENCES_ARE_DELAYED.
18033         * resource.c (mark_referenced_resources): Likewise.
18035 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18037         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
18038         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
18039         * resource.c (mark_set_resources): Likewise.
18041 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18043         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
18044         * cfgcleanup.c (flow_find_cross_jump): Likewise.
18045         (flow_find_head_matching_sequence): Likewise.
18046         (try_head_merge_bb): Likewise.
18047         * combine.c (can_combine_p): Likewise.
18048         (try_combine): Likewise.
18049         (distribute_notes): Likewise.
18050         * df-problems.c (can_move_insns_across): Likewise.
18051         * final.c (final): Likewise.
18052         * gcse.c (insert_insn_end_basic_block): Likewise.
18053         * ira.c (find_moveable_pseudos): Likewise.
18054         * reorg.c (try_merge_delay_insns): Likewise.
18055         (fill_simple_delay_slots): Likewise.
18056         (fill_slots_from_thread): Likewise.
18057         * sched-deps.c (sched_analyze_2): Likewise.
18059 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18061         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
18062         PIC_OFFSET_TABLE_REGNUM.
18064 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18066         * alias.c (init_alias_target): Remove ifdef
18067         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
18068         * df-scan.c (df_insn_refs_collect): Likewise.
18069         (df_get_regular_block_artificial_uses): Likewise.
18070         (df_get_eh_block_artificial_uses): Likewise.
18071         (df_get_entry_block_def_set): Likewise.
18072         (df_get_exit_block_use_set): Likewise.
18073         * emit-rtl.c (gen_rtx_REG): Likewise.
18074         * ira.c (ira_setup_eliminable_regset): Likewise.
18075         * reginfo.c (init_reg_sets_1): Likewise.
18076         * regrename.c (rename_chains): Likewise.
18077         * reload1.c (reload): Likewise.
18078         (eliminate_regs_in_insn): Likewise.
18079         * resource.c (mark_referenced_resources): Likewise.
18080         (init_resource_info): Likewise.
18082 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18084         * defaults.h (MASK_RETURN_ADDR): New definition.
18085         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18086         MASK_RETURN_ADDR.
18088 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18090         * defaults.h (RETURN_ADDR_OFFSET): New definition.
18091         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18092         RETURN_ADDR_OFFSET.
18093         (expand_builtin_frob_return_addr): Likewise.
18095 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18097         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
18098         (try_redirect_by_replacing_jump): Likewise.
18099         (rtl_tidy_fallthru_edge): Likewise.
18100         * combine.c (insn_a_feeds_b): Likewise.
18101         (find_split_point): Likewise.
18102         (simplify_set): Likewise.
18103         * cprop.c (cprop_jump): Likewise.
18104         * cse.c (cse_extended_basic_block): Likewise.
18105         * df-problems.c (can_move_insns_across): Likewise.
18106         * function.c (emit_use_return_register_into_block): Likewise.
18107         * haifa-sched.c (sched_init): Likewise.
18108         * ira.c (find_moveable_pseudos): Likewise.
18109         * loop-invariant.c (find_invariant_insn): Likewise.
18110         * lra-constraints.c (curr_insn_transform): Likewise.
18111         * postreload.c (reload_combine_recognize_const_pattern):
18112         * Likewise.
18113         * reload.c (find_reloads): Likewise.
18114         * reorg.c (delete_scheduled_jump): Likewise.
18115         (steal_delay_list_from_target): Likewise.
18116         (steal_delay_list_from_fallthrough): Likewise.
18117         (redundant_insn): Likewise.
18118         (fill_simple_delay_slots): Likewise.
18119         (fill_slots_from_thread): Likewise.
18120         (delete_computation): Likewise.
18121         * sched-rgn.c (add_branch_dependences): Likewise.
18123 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18125         * genconfig.c (main): Always define HAVE_cc0.
18126         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
18127         HAVE_cc0.
18128         * cfgcleanup.c (flow_find_cross_jump): Likewise.
18129         (flow_find_head_matching_sequence): Likewise.
18130         (try_head_merge_bb): Likewise.
18131         * cfgrtl.c (rtl_merge_blocks): Likewise.
18132         (try_redirect_by_replacing_jump): Likewise.
18133         (rtl_tidy_fallthru_edge): Likewise.
18134         * combine.c (do_SUBST_MODE): Likewise.
18135         (insn_a_feeds_b): Likewise.
18136         (combine_instructions): Likewise.
18137         (can_combine_p): Likewise.
18138         (try_combine): Likewise.
18139         (find_split_point): Likewise.
18140         (subst): Likewise.
18141         (simplify_set): Likewise.
18142         (distribute_notes): Likewise.
18143         * cprop.c (cprop_jump): Likewise.
18144         * cse.c (cse_extended_basic_block): Likewise.
18145         * df-problems.c (can_move_insns_across): Likewise.
18146         * final.c (final): Likewise.
18147         (final_scan_insn): Likewise.
18148         * function.c (emit_use_return_register_into_block): Likewise.
18149         * gcse.c (insert_insn_end_basic_block): Likewise.
18150         * haifa-sched.c (sched_init): Likewise.
18151         * ira.c (find_moveable_pseudos): Likewise.
18152         * loop-invariant.c (find_invariant_insn): Likewise.
18153         * lra-constraints.c (curr_insn_transform): Likewise.
18154         * optabs.c (prepare_cmp_insn): Likewise.
18155         * postreload.c (reload_combine_recognize_const_pattern):
18156         * Likewise.
18157         * reload.c (find_reloads): Likewise.
18158         (find_reloads_address_1): Likewise.
18159         * reorg.c (delete_scheduled_jump): Likewise.
18160         (steal_delay_list_from_target): Likewise.
18161         (steal_delay_list_from_fallthrough): Likewise.
18162         (try_merge_delay_insns): Likewise.
18163         (redundant_insn): Likewise.
18164         (fill_simple_delay_slots): Likewise.
18165         (fill_slots_from_thread): Likewise.
18166         (delete_computation): Likewise.
18167         (relax_delay_slots): Likewise.
18168         * sched-deps.c (sched_analyze_2): Likewise.
18169         * sched-rgn.c (add_branch_dependences): Likewise.
18171 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18173         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
18174         that is trivially ded on non cc0 targets.
18175         (simplify_set): Likewise.
18176         (mark_used_regs_combine): Likewise.
18177         * cse.c (new_basic_block): Likewise.
18178         (fold_rtx): Likewise.
18179         (cse_insn): Likewise.
18180         (cse_extended_basic_block): Likewise.
18181         (set_live_p): Likewise.
18182         * rtlanal.c (canonicalize_condition): Likewise.
18183         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18185 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18187         * conditions.h: Define macros even if HAVE_cc0 is undefined.
18188         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
18189         * final.c: Likewise.
18190         * jump.c: Likewise.
18191         * recog.c: Likewise.
18192         * recog.h: Declare functions even when HAVE_cc0 is undefined.
18193         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
18195 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18197         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
18198         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
18199         * builtins.c (expand_builtin): Remove check if
18200         EH_RETURN_DATA_REGNO is defined.
18201         * df-scan.c (df_bb_refs_collect): Likewise.
18202         (df_get_exit_block_use_set): Likewise.
18203         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18204         * ira-lives.c (process_bb_node_lives): Likewise.
18205         * lra-lives.c (process_bb_lives): Likewise.
18207 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18209         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
18210         FIRST_PSEUDO_REG): New.
18211         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
18212         (ARG_POINTER_REGNUM): Define to ARGP_REG.
18213         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
18214         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
18215         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
18216         (FIRST_INT_REG): New.
18217         (LAST_INT_REG): New.
18218         (FIRST_*_REG): Define using *_REG.
18219         (LAST_*_REG): Ditto.
18220         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
18221         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
18222         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
18224 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18226         * expmed.c: (synth_mult): Only assume overlapping
18227         shift with previous steps in alg_sub_t_m2 case.
18229 2015-04-21  Richard Biener  <rguenther@suse.de>
18231         PR tree-optimization/65650
18232         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
18233         transitions involving copies.
18234         (set_lattice_value): Adjust for copy lattice state.
18235         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
18236         if that doesn't dominate the merge point.
18237         (bit_value_unop): Adjust what we treat as varying mask.
18238         (bit_value_binop): Likewise.
18239         (bit_value_assume_aligned): Likewise.
18240         (evaluate_stmt): When we simplified to a SSA name record a copy
18241         instead of dropping to varying.
18242         (visit_assignment): Simplify.
18244         * gimple-match.h (gimple_simplify): Add another callback.
18245         * gimple-fold.c (fold_stmt_1): Adjust caller.
18246         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
18247         for the 2nd callback.
18248         * gimple-match-head.c (gimple_simplify): Add a callback that is
18249         used to valueize the stmt operands and use it that way.
18251 2015-04-21  Richard Biener  <rguenther@suse.de>
18253         PR tree-optimization/65788
18254         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
18256 2015-04-21  Richard Biener  <rguenther@suse.de>
18258         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
18259         vec_construct cost by vec_stmt_cost.
18261 2015-04-21  Richard Biener  <rguenther@suse.de>
18263         * cfghooks.h (create_basic_block): Replace with two overloads
18264         for RTL and GIMPLE.
18265         (split_block): Likewise.
18266         * cfghooks.c (split_block): Rename to ...
18267         (split_block_1): ... this.
18268         (split_block): Add two type-safe overloads for RTL and GIMPLE.
18269         (split_block_after_labels): Call split_block_1.
18270         (create_basic_block): Rename to ...
18271         (create_basic_block_1): ... this.
18272         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
18273         (create_empty_bb): Call create_basic_block_1.
18274         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
18275         split_block_after_labels.
18276         * omp-low.c (expand_parallel_call): Likewise.
18277         (expand_omp_target): Likewise.
18278         (simd_clone_adjust): Likewise.
18279         * tree-chkp.c (chkp_get_entry_block): Likewise.
18280         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
18281         create_basic_block overload.
18282         (cgraph_node::expand_thunk): Likewise.
18283         * tree-cfg.c (make_blocks): Likewise.
18284         (handle_abnormal_edges): Likewise.
18285         * tree-inline.c (copy_bb): Likewise.
18287 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18289         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
18290         New pattern.
18291         (*xor_one_cmplsidi3_ze): Likewise.
18293 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18295         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
18296         use df_remove_problem rather than manually removing problems, leaving
18297         holes in df->problems_in_order[].
18299 2015-04-21  Tom de Vries  <tom@codesourcery.com>
18301         PR tree-optimization/65802
18302         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
18304 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18306         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
18307         Increase to 128.
18308         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
18309         at '.'.  Assert that there's enough space for everything.
18311 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18313         PR tree-optimization/64950
18314         Revert:
18315         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
18317         PR target/41089
18318         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18319         as volatile.
18321 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
18323         PR rtl-optimization/64916
18324         * cfgcleanup.c (values_equal_p): New function.
18325         (can_replace_by): Use it.
18327 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
18329         PR c++/65801
18330         * doc/invoke.texi ([-Wnarrowing]): Update.
18332 2015-04-20  Jeff Law  <law@redhat.com>
18334         PR tree-optimization/65658
18335         * tree-ssa-threadupdate.c (redirection_block_p): Remove
18336         redundant test for GIMPLE_ASSIGN in last change.
18338 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
18340         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
18341         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
18342         (legitimize_tls_address): Ditto.
18343         (ix86_expand_move): Ditto.
18344         (ix86_expand_binary_operator): Remove reload_in_progress checks.
18345         (ix86_expand_unary_operator): Ditto.
18346         * config/i386/predicates.md (index_register_operand): Ditto.
18348 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
18350         * reorg.c (try_merge_delay_insns): Improve correctness checking
18351         for targets with multiple delay slots.
18353 2015-04-20  Jeff Law  <law@redhat.com>
18355         PR tree-optimization/65658
18356         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
18357         statements too.
18359 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18361         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
18362         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
18363         Delete.
18365 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
18367         PR debug/65807
18368         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
18370 2015-04-20  Richard Biener  <rguenther@suse.de>
18372         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
18373         * gimple-fold.c (gimple_build_valueize): New function.
18374         (gimple_build): Always use gimple_build_valueize as valueize hook.
18376 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18378         PR target/64134
18379         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
18380         and overwrite variable parts if <= 1/2 the elements are variable.
18382 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
18384         PR rtl-optimization/65805
18385         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
18386         Don't use difference of offset and previous offset if
18387         update_sp_offset is non-zero.
18388         (eliminate_regs_in_insn): Ditto.
18389         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
18390         lra_eliminate_regs_1 call.
18391         * lra-constraints.c (get_equiv_with_elimination): Ditto.
18393 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
18395         * hash-table.h: Remove version of hash_table that stored value_type *.
18396         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
18397         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
18398         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
18399         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
18400         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
18401         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
18402         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18403         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
18404         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
18405         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
18406         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
18407         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
18408         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
18409         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18410         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
18411         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
18413 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18414             Jakub Jelinek  <jakub@redhat.com>
18416         PR target/65787
18417         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
18418         subsequent SH_NONE operand does not overwrite an existing *special
18419         value.
18420         (adjust_extract): Handle case where a vec_extract operation is
18421         wrapped in a PARALLEL.
18423 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18425         PR target/65780
18426         * config/i386/i386.c (ix86_binds_local_p): Define only if
18427         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
18429 2015-04-17  Jeff Law  <law@redhat.com>
18431         PR tree-optimization/47679
18432         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
18433         * tree-ssa-scopedtables.c: New file.
18434         * tree-ssa-scopedtables.h: New file.
18435         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
18436         (const_and_copies): Change name/type.
18437         (record_const_or_copy): Move into tree-ssa-scopedtables.c
18438         (record_const_or_copy_1): Similarly.
18439         (restore_vars_to_original_value): Similarly.
18440         (pass_dominator::execute): Create and destroy const_and_copies table.
18441         (thread_across_edge): Update passing of const_and_copies.
18442         (record_temporary_equivalence): Use method calls rather than
18443         manipulating const_and_copies directly.
18444         (record_equality, cprop_into_successor_phis): Similarly.
18445         (dom_opt_dom_walker::before_dom_children): Similarly.
18446         (dom_opt_dom_walker::after_dom_children): Similarly.
18447         (eliminate_redundant_computations): Similarly.
18448         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
18449         (record_temporary_equivalence): Likewise.
18450         (invalidate_equivalences): Likewise.
18451         (record_temporary_equivalences_from_phis): Update due to type
18452         change of const_and_copies.  Use method calls rather than
18453         manipulating the stack directly.
18454         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
18455         (thread_through_normal_block, thread_across_edge): Likewise.
18456         (thread_across_edge): Likewise.
18457         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
18458         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
18459         of equiv_stack.
18460         (identify_jump_threads): Update due to type change of equiv_stack.
18461         (finalize_jump_threads): Delete the equiv_stack when complete.
18463 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
18465         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18466         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
18467         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
18469 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
18471         PR target/65535
18472         * config.gcc: Exit with a comment when we do not have a major version
18473         number for the FreeBSD target.
18475 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18477         PR target/65689
18478         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
18479         maybe_allows_mem bitfields.
18480         (maybe_allows_none_start, maybe_allows_none_end,
18481         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
18482         maybe_allows_mem_end): New variables.
18483         (compute_maybe_allows): New function.
18484         (add_constraint): Use it to initialize maybe_allows_reg and
18485         maybe_allows_mem fields.
18486         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
18487         is_address constraints such that those that allow neither mem nor
18488         reg come first, then those that only allow reg but not mem, then
18489         those that only allow mem but not reg, then the rest.
18490         (write_allows_reg_mem_function): New function.
18491         (write_tm_preds_h): Call it.
18492         * stmt.c (parse_output_constraint, parse_input_constraint): Use
18493         the generated insn_extra_constraint_allows_reg_mem function
18494         instead of always setting *allows_reg = true; *allows_mem = true;
18495         for unknown extra constraints.
18497 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18499         PR target/65780
18500         * output.h (default_binds_local_p_3): New.
18501         * varasm.c (default_binds_local_p_3): Make it public.  Take an
18502         argument to indicate if common symbol may be local.  If common
18503         symbol may be local, treat non-external variable as defined
18504         locally.
18505         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
18506         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
18507         * config/i386/i386.c (ix86_binds_local_p): New.
18508         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
18509         ix86_binds_local_p.
18511 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18513         PR debug/65771
18514         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
18515         trying mem_loc_descriptor on XEXP (rtl, 0).
18517 2015-04-17  Martin Liska  <mliska@suse.cz>
18519         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18520         Release symbol_compare_collection.
18521         * ipa-reference.c: Add TODO that a vector should be released.
18523 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
18525         PR target/65296
18526         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
18527         to new AVR-LibC file layout (bug #44574).
18528         (*avrlibc_devicelib): Same.
18529         * config/avr/avr-mcus.def: Adjust comments.
18530         * config/avr/avr.opt (nodevicelib): Adjust help.
18532 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
18534         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
18536 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
18538         PR c++/64527
18539         * gimplify.c (gimplify_init_constructor): Always emit a
18540         side-effecting constructor.
18542 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18544         PR tree-optimization/64950
18545         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
18546         in cfun->curr_properties.
18547         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
18548         if we generate an IFN_VA_ARG.
18549         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
18550         function if PROP_gimple_lva is not set in src function.
18552 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18553             Michael Matz  <matz@suse.de>
18555         PR tree-optimization/64950
18556         * gimple-iterator.c (update_modified_stmts): Remove static.
18557         * gimple-iterator.h (update_modified_stmts): Declare.
18558         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
18559         (gimplify_va_arg_internal): New function.
18560         (gimplify_va_arg_expr): Use IFN_VA_ARG.
18561         * gimplify.h (gimplify_va_arg_internal): Declare.
18562         * internal-fn.c (expand_VA_ARG): New unreachable function.
18563         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
18564         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
18565         (expand_ifn_va_arg): New function.
18566         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
18567         (pass_stdarg::execute): Call expand_ifn_va_arg.
18568         (pass_data_lower_vaarg): New pass_data.
18569         (pass_lower_vaarg): New gimple_opt_pass.
18570         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
18571         (make_pass_lower_vaarg): New function.
18572         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
18573         properties_required field.
18574         * passes.def (all_passes): Add pass_lower_vaarg.
18575         * tree-pass.h (PROP_gimple_lva): Add define.
18576         (make_pass_lower_vaarg): Declare.
18578 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18580         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
18581         * calls.c (call_expr_flags): Same.
18583 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18585         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
18586         (pass_stdarg::execute): ... here.
18588 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18589             Michael Matz  <matz@suse.de>
18591         * tree-cfg.c (make_blocks_1): Factor out of ...
18592         (make_blocks): ... here.
18593         (make_edges_bb): Factor out of ...
18594         (make_edges): ... here.
18595         (gimple_find_sub_bbs): New function.
18596         * tree-cfg.h (gimple_find_sub_bbs): Declare.
18598 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18600         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
18602 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
18604         * asan.c (set_sanitized_sections): New function.
18605         (section_sanitized_p): Ditto.
18606         (asan_protect_global): Optionally sanitize user-defined
18607         sections.
18608         * asan.h (set_sanitized_sections): Declare new function.
18609         * common.opt (fsanitize-sections): New option.
18610         * doc/invoke.texi (-fsanitize-sections): Document new option.
18611         * opts-global.c (handle_common_deferred_options): Handle new
18612         option.
18614 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18616         PR debug/65771
18617         * dwarf2out.c (loc_list_from_tree): Return NULL
18618         for DEBUG_EXPR_DECL.
18620 2015-04-17  Christian Bruel  <christian.bruel@st.com>
18622         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
18623         same attributes.
18625 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18627         * ira-color.c (setup_left_conflict_sizes_p): Do not process
18628         node itself when computing left conflict subnode size.
18630 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18632         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
18633         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
18634         *fop_<mode>_1_sse using enabled attribute.  Use
18635         register_mixssei387nonimm_operand operand 1 predicate. Change
18636         alternative 3 constraints from "x" to "v".
18638 2015-04-16  Richard Biener  <rguenther@suse.de>
18640         PR tree-optimization/65774
18641         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
18642         bit-value tracking on.
18644 2015-04-16  Richard Biener  <rguenther@suse.de>
18646         PR tree-optimization/64277
18647         * tree-vrp.c (check_array_ref): Fix anti-range handling,
18648         simplify upper bound handling.
18649         (search_for_addr_array): Simplify.
18650         (check_array_bounds): Handle ADDR_EXPRs here.
18651         (check_all_array_refs): Simplify.
18653 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18655         * config/i386/i386.c (print_reg): Rewrite function.
18657 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18659         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
18660         Invert the condition.
18662 2015-04-16  Renlin Li  <renlin.li@arm.com>
18664         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
18665         simplifications for UNSIGNED_FLOAT.
18667 2015-04-16  Nick Clifton  <nickc@redhat.com>
18669         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
18670         MUL_UNINIT.
18671         (enum rl78_cpu_type): New.
18672         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
18673         (umulhi3_shift_virt): Remove m constraint from operand 1.
18674         (umulqihi3_virt): Likewise.
18675         * config/rl78/rl78.c (rl78_option_override): Add code to process
18676         -mcpu and -mmul options.
18677         (rl78_alloc_physical_registers): Add code to handle divhi and
18678         divsi valloc attributes.
18679         (set_origin): Likewise.
18680         * config/rl78/rl78.h (RL78_MUL_G14): Define.
18681         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
18682         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
18683         __RL78_Gxx__.
18684         (ASM_SPEC): Pass -mcpu on to assembler.
18685         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
18686         (mulqi3_rl78): Likewise.
18687         (mulhi3_g13): Likewise.
18688         (mulhi3): Generate the G13 or G14 versions of the insn directly.
18689         (mulsi3): Likewise.
18690         (mulhi3_g14): Add clobbers of AX and BC.
18691         (mulsi3_g14): Likewise.
18692         (mulsi3_g13): Likewise.
18693         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
18694         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
18695         * config/rl78/rl78.opt (mmul): Initialise value to
18696         RL78_MUL_UNINIT.
18697         (mcpu): New option.
18698         (m13, m14, mrl78): New option aliases.
18699         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
18700         (MULTILIB_DIRNAMES): Add g13 and g14.
18701         * doc/invoke.texi: Document -mcpu and -mmul options.
18703 2015-04-16  Richard Biener  <rguenther@suse.de>
18705         * tree-ssa-ccp.c (likely_value): See if we have operands that
18706         are marked as never simulate again and return CONSTANT in this
18707         case.
18708         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
18709         not have any operands that will be simulated again as
18710         not being simulated again.
18712 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
18714         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
18715         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
18716         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
18717         attribute.
18718         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
18719         enabled attribute.
18720         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
18721         *float<SWI48:mode><MODEF:mode>2_sse.
18722         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
18723         enabled attribute.
18724         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
18725         enabled attribute.
18727 2015-04-15  Tom de Vries  <tom@codesourcery.com>
18729         PR other/65487
18730         * function.c (push_dummy_function): New function.
18731         (init_dummy_function_start): Use push_dummy_function.
18732         (pop_dummy_function): New function.  Factored out of ...
18733         (expand_dummy_function_end): ... here.
18734         * function.h (push_dummy_function, pop_dummy_function): Declare.
18735         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
18736         pop_dummy_function.
18737         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
18739 2015-04-15  Jeff Law  <law@redhat.com>
18741         PR tree-optimization/47679
18742         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
18743         need for forward declaration in upcoming changes.
18744         (record_conditions, record_edge_info): Likewise.
18746         PR rtl-optimization/42522
18747         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
18748         SIGN_EXTRACT as a whole object rather than simplifying
18749         its operand.
18751 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
18753         PR ipa/65765
18754         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
18755         and GIMPLE_PREDICT use break instead of return true. For
18756         GIMPLE_EH_DISPATCH, compare dispatch region.
18758 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
18760         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
18761         details about the implementation.  Make clear preference for
18762         __atomic builtins.  Reduce possibility of future change.
18764 2015-04-15  Nick Clifton  <nickc@redhat.com>
18766         * config/rx/rx.opt (mallow-string-insns): New option.
18767         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
18768         builtin if string instructions are denied.
18769         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
18770         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
18771         appropriate.
18772         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
18773         * config/rx/rx.md (movstr): Enable pattern only if string
18774         instructions are allowed.
18775         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
18776         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
18777         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
18778         (MULTILIB_DIRNAMES): Add no-strings.
18779         * doc/invoke.texi: Document -mno-allow-string-insns.
18781 2015-04-15  Alan Modra  <amodra@gmail.com>
18783         PR target/65408
18784         PR target/58744
18785         PR middle-end/36043
18786         * calls.c (load_register_parameters): Don't load past end of
18787         mem unless suitably aligned.
18789 2015-04-15  Nick Clifton  <nickc@redhat.com>
18791         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
18792         decrement instruction as being frame related.
18793         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
18794         based addresses.
18795         If zero extending a function address enclose the operation in
18796         %code(...).
18797         (rl78_preferred_reload_class): New function.
18798         (TARGET_PREFERRED_RELOAD_CLASS): Define.
18799         * config/rl78/rl78.md: Remove useless constraints in expanders.
18800         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
18801         (mulhi3_rl78): Likewise.
18802         (mulhi3_g13): Likewise.
18803         (mulsi3_rl78): Likewise.
18804         (es_addr): Move to before the multiply patterns.
18806 2015-04-15  Alan Modra  <amodra@gmail.com>
18808         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
18809         and sequence_stack.  Add seq.
18810         (seq_stack): Delete.
18811         * function.c (prepare_function_start): Don't access x_last_insn.
18812         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
18813         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
18814         * emit_rtl.c (start_sequence, push_topmost_sequence,
18815         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
18816         sequence accessors.
18817         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
18818         remove_insn): Likewise.  Simplify.
18819         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
18820         and pop_topmost_sequence.
18821         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
18822         debug insns.
18823         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
18825 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
18827         PR target/65729
18828         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
18829         the assertiion.
18831 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18833         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
18834         (LEGACY_INT_REGNO_P): Ditto.
18835         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
18836         (ANY_MASK_REG_P): Remove.
18837         (BND_REG_P): Rename from ANY_BND_REG_P.
18838         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
18839         legacy integer registers.  Do not handle MMX_REG_P in a special way.
18840         Merge 64byte and 32byte SSE handling.
18842 2015-04-14  Nick Clifton  <nickc@redhat.com>
18844         * expr.c (expand_assignment): Force an address offset computation
18845         into a register before changing its mode.
18846         (expand_expr_real_1): Likewise.
18848 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
18850         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
18851         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
18852         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
18853         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
18854         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
18855         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
18856         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
18857         and __aarch64_vget_lane_any.
18859 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
18861         PR rtl-optimization/65761
18862         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
18863         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
18865 2015-04-14  Richard Biener  <rguenther@suse.de>
18867         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
18868         (graphite_can_represent_scev): Use POINTER_TYPE_P.
18870 2015-04-14  Richard Biener  <rguenther@suse.de>
18872         PR tree-optimization/65758
18873         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
18874         against -1.
18875         (ccp_lattice_meet): Likewise.
18876         (bit_value_unop): Likewise.
18877         (bit_value_binop): Likewise.
18878         (bit_value_assume_aligned): Likewise.
18880 2015-04-14  Christian Bruel  <christian.bruel@st.com>
18882         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
18883         function.
18885 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
18887         PR tree-optimization/63387
18888         * match.pd ((x unord x) | (y unord y) -> (x unord y),
18889         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
18891 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18893         * config/i386/predicates.md (any_QIreg_operand): Rename from
18894         q_regs_operand.  Do not process subregs.
18895         (QIreg_operand): Use QI_REGNO_P predicate.
18896         (ext_QIreg_operand): Ditto.
18897         (ext_register_operand): Ditto.
18898         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
18899         (AND splitters): Ditto.
18900         (AND with -65536 splitter): Add SWI48 mode for operand 0.
18901         (AND with -256 splitter): Use any_QIreg_operand predicate and
18902         SWI248 mode for operand 0.
18903         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
18904         mode for operand 0.
18905         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
18907 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
18909         * doc/plugins.texi: Rewrite first introductory paragraph.
18911 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18913         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
18914         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
18916 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18918         * ipa-profie.c (ipa_profile): Check number of parameters
18919         and possible polymorphic call targets before
18920         devirtualizing.
18922 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
18924         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
18925         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
18927 2015-04-13  Richard Biener  <rguenther@suse.de>
18929         PR tree-optimization/65204
18930         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
18931         takens for bit-CCP.
18933 2015-04-13  Richard Biener  <rguenther@suse.de>
18935         PR target/65660
18936         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
18937         and cond_not_taken_branch_cost to 4 and 2.
18938         (bdver2_cost): Likewise.
18939         (bdver3_cost): Likewise.
18940         (bdver4_cost): Likewise.
18942 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18944         * hash-table.h (hash_table constructor): Add mem stats.
18945         (alloc_entries): Likewise.
18947 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18949         * ipa-cp.c (ipcp_driver): Relase prev_edge.
18950         * passes.c (execute_one_pass): Only add transform if pass has one.
18952 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
18954         * config/i386/i386.c (ix86_option_override_internal): Don't set
18955         -fprefetch-loop-arrays if optimizing for size.
18957 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18958             Gerald Pfeifer  <gerald@pfeifer.com>
18960         * doc/contrib.texi (Contributors): Add Martin Jambor and
18961         Michael Matz.
18963 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
18965         * BASE-VER: Set to 6.0.0.
18967         PR tree-optimization/65747
18968         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
18969         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
18971 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
18973         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
18974         sentence.  Improve grammar.
18976 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
18978         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
18980 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
18982         PR ipa/65743
18983         * ipa-inline-transform.c (speculation_removed): Remove static var.
18984         (check_speculations): New function.
18985         (clone_inlined_nodes): Do not check spculations.
18986         (inline_call): Call check_speculations.
18987         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
18988         consider non-invariants.
18990 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
18991             Martin Liska  <mliska@suse.cz>
18993         PR ipa/65722
18994         * ipa-icf.c (sem_item::compare_cgraph_references): function and
18995         variable can not match.
18996         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
18997         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
18999 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
19001         PR tree-optimization/65735
19002         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
19003         Remove visited_phis argument, add visited_bbs, avoid recursing into the
19004         same bb rather than just into the same phi node.
19005         (thread_through_normal_block): Adjust caller.
19007 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
19009         * doc/contrib.texi (Contributors): Add Ira Rosen.
19011 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
19013         * gcov.c (find_source): Fix miswording in error message.
19014         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
19015         (ix86_expand_sse_comi_round): Fix typo in error message.
19017 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
19019         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
19021 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
19023         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
19025 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
19027         PR target/65710
19028         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
19029         Print bad_spills_num and insn_pseudos_num.
19031 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19033         PR target/65694
19034         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
19035         when creating +1 values for SImode.
19037 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
19039         PR target/65729
19040         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
19041         assert.
19043 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
19044             Iain Sandoe  <iain@codesourcery.com>
19046         PR target/65351
19047         * configure: Regenerate.
19049 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19051         PR target/65671
19052         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
19054 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
19056         * doc/contrib.texi (Contributors): Add John Marino.
19058 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19060         PR tree-optimization/65709
19061         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
19062         TREE_TYPE (TREE_TYPE (t)).
19064 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
19066         PR target/65710
19067         * lra-int.h (lra_bad_spill_regno_start): New.
19068         * lra.c (lra_bad_spill_regno_start): New.
19069         (lra): Set up lra_bad_spill_regno_start.  Set up
19070         lra_constraint_new_regno_start unconditionally.
19071         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
19072         spill preferences.
19074 2015-04-09  Marek Polacek  <polacek@redhat.com>
19075             Jakub Jelinek  <jakub@redhat.com>
19077         PR middle-end/65554
19078         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
19079         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
19080         of STRIP_NOPS.
19082 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
19084         PR rtl-optimization/65693
19085         * combine.c (is_parallel_of_n_reg_sets): Move outside of
19086         #ifndef HAVE_cc0.
19088 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
19090         PR target/65296
19091         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
19092         device specs file if "device-specs%s" didn't resolve to a path.
19094 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19096         PR target/65676
19097         * config/i386/i386.c (fixup_modeless_constant): New.
19098         (ix86_expand_args_builtin): Fixup modeless constant operand.
19099         (ix86_expand_round_builtin): Ditto.
19100         (ix86_expand_special_args_builtin): Ditto.
19101         (ix86_expand_builtin): Ditto.
19103 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19105         PR target/65693
19106         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
19107         any pow2 integer in between 2 and 0x80000000U inclusive.
19109 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
19111         PR rtl-optimization/65693
19112         * combine.c (is_parallel_of_n_reg_sets): Change first argument
19113         from an rtx_insn * to an rtx.
19114         (try_combine): Adjust both callers.  Use it once more.
19116 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19118         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
19119         (chkp_make_static_const_bounds): Search existing
19120         symbol by assembler name.  Use make_decl_one_only.
19121         (chkp_get_zero_bounds_var): Remove node search which
19122         is now performed in chkp_make_static_const_bounds.
19123         (chkp_get_none_bounds_var): Likewise.
19125 2015-04-08  Michael Witten  <mfwitten@gmail.com>
19127         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
19128         to an example.
19130 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19132         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
19134 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
19136         * doc/extend.texi (__sync Builtins): Fix grammar.
19138 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19140         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
19142 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19144         * varasm.c (emit_local): Move definition of align.
19146 2015-04-08  Julian Brown  <julian@codesourcery.com>
19148         * config/nvptx/mkoffload.c (process): Support variable mapping.
19150 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
19152         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
19153         alpha_links **.
19154         (alpha_write_one_linkage): Correct typo.
19156 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19158         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
19160 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
19162         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
19164 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19166         * tree-chkp.h (chkp_insert_retbnd_call): New.
19167         * tree-chkp.c (chkp_insert_retbnd_call): New.
19168         * ipa-split.c (insert_bndret_call_after): Remove.
19169         (split_function): Use chkp_insert_retbnd_call.
19170         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
19171         bounds for instrumented functions.
19173 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
19175         PR ipa/65540
19176         * calls.c (initialize_argument_information): When producing tail
19177         call also turn SSA_NAMES passed by references to original PARM_DECLs
19179 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
19181         PR target/65648
19182         * lra-remat.c (do_remat): Process input and non-input insn
19183         registers separately.
19185 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
19187         PR debug/65678
19188         * valtrack.c (debug_lowpart_subreg): New function.
19189         (dead_debug_insert_temp): Use it.
19191         PR middle-end/65680
19192         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
19193         into signed HOST_WIDE_INT the same as negative bit_offset.
19195 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
19197         * ipa-comdats.c (ipa_comdats): Visit all thunks
19198         to set proper comdat group.
19200 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19202         PR target/65489
19203         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
19204         on constants for NEON VSTRUCT modes.
19206 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
19207             Iain Sandoe  <iain@codesourcery.com>
19209         PR target/65351
19210         * configure: Regenerate.
19212 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19214         PR target/65614
19215         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
19216         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
19217         that LFD is used to load double constants instead of LFS.  Add
19218         defaults for all costs structures.  Add comments for missing
19219         initialization fields.
19220         (size32_cost): Likewise.
19221         (size64_cost): Likewise.
19222         (rs64a_cost): Likewise.
19223         (mpccore_cost): Likewise.
19224         (ppc403_cost): Likewise.
19225         (ppc405_cost): Likewise.
19226         (ppc440_cost): Likewise.
19227         (ppc476_cost): Likewise.
19228         (ppc601_cost): Likewise.
19229         (ppc603_cost): Likewise.
19230         (ppc604_cost): Likewise.
19231         (ppc604e_cost): Likewise.
19232         (ppc620_cost): Likewise.
19233         (ppc630_cost): Likewise.
19234         (ppccell_cost): Likewise.
19235         (ppc750_cost): Likewise.
19236         (ppc7450_cost): Likewise.
19237         (ppc8540_cost): Likewise.
19238         (ppce300c2c3_cost): Likewise.
19239         (ppce500mc_cost): Likewise.
19240         (ppce500mc64_cost): Likewise.
19241         (ppce5500_cost): Likewise.
19242         (ppce6500_cost): Likewise.
19243         (titan_cost): Likewise.
19244         (power4_cost): Likewise.
19245         (power6_cost): Likewise.
19246         (power7_cost): Likewise.
19247         (power8_cost): Likewise.
19248         (ppca2_cost): Likewise.
19249         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
19251         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
19252         instead of XXLOR to copy SFmode to clear out dirty bits created
19253         when SFmode denormals are generated.
19254         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
19255         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
19257 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
19259         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
19260         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
19261         * config/aarch64/aarch64-tune.md: Regenerate.
19263 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
19265         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
19266         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
19267         * config/arm/arm-cores.def (exynos-m1): New core.
19268         * config/arm/arm-tune.md: Regenerate.
19269         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
19270         * config/arm/bpabi.h: Likewise.
19272 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
19274         * ipa-cp (set_single_call_flag): Remove too
19275         restrictive assert.
19277 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
19279         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
19280         GOMP_offload_unregister from the destructor.
19282 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
19284         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
19285         flags for instrumentation thunk.
19286         (chkp_produce_thunks): Likewise.
19288 2015-04-05  Martin Liska  <mliska@suse.cz>
19290         PR ipa/65665
19291         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
19292         has computed data structure.
19293         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19295 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
19297         * invoke.texi (inline-unit-growth): Increase growth to 20%
19298         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
19300 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19302         PR target/65647
19303         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
19304         value checking.
19305         (lra_rematerialization_iter): New.
19306         * lra.c (lra): Initialize lra_rematerialization_iter.
19307         Stop updating lra_constraint_new_regno_start after switching of
19308         inheritance and rematerialization.
19309         * lra-remat.c (lra_rematerialization_iter): New.
19310         (lra_remat): Add printing pass iteration.  Do rematerialization
19311         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
19313 2015-04-04  Richard Biener  <rguenther@suse.de>
19315         PR tree-optimization/64909
19316         PR tree-optimization/65660
19317         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
19318         to take a cost vector for scalar iteration cost.
19319         (vect_get_single_scalar_iteration_cost): Likewise.
19320         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
19321         Compute the scalar iteration cost into a cost vector.
19322         (vect_get_known_peeling_cost): Use the scalar cost vector to
19323         account for the cost of the peeled iterations.
19324         (vect_estimate_min_profitable_iters): Likewise.
19325         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19326         Likewise.
19328 2015-04-04  Alan Modra  <amodra@gmail.com>
19330         PR target/65576
19331         PR target/65240
19332         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
19333         0.0 constant unless TARGET_VSX.
19334         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
19335         alternative.
19337 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19339         PR ipa/65654
19340         * ipa-inline-transform.c (inline_call): Skip sanity check to work
19341         around the ICE
19343 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19345         PR ipa/65655
19346         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
19347         speculative indirect edges to avoid ordering issue.
19349 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19351         PR ipa/65076
19352         * ipa-inline.c (edge_badness): Add combined size to the denominator.
19354 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
19356         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
19357         TYPE_ARTIFICIAL on the .omp_data* types.
19359 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19361         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
19362         instrumentation thunks.
19364 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19366         * config/i386/i386.c (ix86_expand_call): Avoid nested
19367         PARALLEL in returned call value.
19369 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19371         * lto-cgraph.c (input_cgraph_1): Always link instrumented
19372         assembler name with original one.
19374 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19376         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
19378 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19380         Revert parts of r216820.
19381         * config/i386/i386.md (movqi_internal): Correct type calculation
19382         for alternatives 3 and 5.
19384 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
19386         PR preprocessor/61977
19387         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
19388         predefine __vector/__bool/__pixel macros nor context sensitive
19389         macros for CLK_ASM.
19390         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
19392 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
19394         * config/pa/pa.c (pa_output_move_double): Directly handle register
19395         indexed memory operand.  Simplify handling of scaled register indexed
19396         memory operands.
19398 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19400         PR driver/65444
19401         * config/i386/linux-common.h (MPX_SPEC): New.
19402         (CHKP_SPEC): Add MPX_SPEC.
19403         * doc/invoke.texi (-fcheck-pointer-boudns): Document
19404         possible issues with '-z bndplt' support in linker.
19406 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19408         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
19409         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
19410         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
19411         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
19412         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
19414 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
19416         * config/i386/sync.md (UNSPEC_MOVA): Remove.
19417         (atomic_load<mode>): Change operand 0 predicate to
19418         nonimmediate_operand and fix up the destination when needed.
19419         Use UNSPEC_LDA.
19420         (atomic_loaddi_fpu): Use UNSPEC_LDA.
19421         (atomic_store<mode>): Change operand 1 predicate to
19422         nonimmendate_operand and move the source to register when needed.
19423         Use UNSPEC_STA.
19424         (atomic_store<mode>_1): Use UNSPEC_STA.
19425         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
19426         Fix moves from memory operand.  Use UNSPEC_STA.
19428 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19430         * expmed.c (strict_volatile_bitfield_p): Check that the access will
19431         not cross a MODESIZE boundary.
19432         (store_bit_field, extract_bit_field): Added assertions in the
19433         strict volatile bitfields code path.
19435 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19437         PR target/65624
19438         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19439         Increase args array size by one to avoid buffer overflow.
19441 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19443         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19444         split_part.
19445         * ipa-inline.c (edge_badness): Add wrapper penalty.
19446         (sum_callers): Move up.
19447         (inline_small_functions): Set single_caller.
19448         * ipa-inline.h (inline_summary): Add single_caller.
19449         * ipa-split.c (split_function): Set split_part.
19450         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
19451         * cgraph.h (cgraph_node): Add split_part.
19453 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
19455         PR target/58945
19456         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
19457         Do not split operands 0 and operands 2 to halfmode.
19458         (atomic_compare_and_swap<mode>): Update for
19459         atomic_compare_and_swap<dwi>_doubleword changes.
19461 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19463         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
19464         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
19465         no caching is done.
19467 2015-03-31  Martin Liska  <mliska@suse.cz>
19469         PR ipa/65557
19470         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
19471         has already filled up function summary.
19472         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19474 2015-03-31  Richard Biener  <rguenther@suse.de>
19476         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
19477         of types.
19479 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19481         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
19482         nested functions.
19483         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
19484         (s390_asm_output_function_label): Adapt to new signature of
19485         s390_function_num_hotpatch_hw
19486         Optimise the code generating assembler output.
19487         Add comments to assembler file.
19489 2015-03-31  Richard Biener  <rguenther@suse.de>
19491         PR middle-end/65626
19492         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
19493         of the noreturn call so it is last and cleanup_control_flow_bb
19494         can do the CFG part.
19496 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
19498         PR target/65531
19499         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
19500         same_comdat_group for external symbols.
19501         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
19502         infinite same_comdat_group traversal loop.
19504 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
19506         PR plugins/61176
19507         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
19508         automatically to $headers.
19510 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
19512         PR ipa/65610
19513         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
19514         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
19515         function.
19516         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
19517         Use it.
19518         * ipa-prop.c (param_type_may_change_p): Likewise.
19519         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
19520         (remove_unused_scope_block_p): Add in_ctor_dtor_block
19521         argument.  Before inlining, preserve
19522         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
19523         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
19524         recursive calls.
19525         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
19527 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19529         PR ipa/65076
19530         * ipa-inline.c (edge_badness): Base denominator on callee's
19531         grwoth squared.
19533 2015-03-27  Martin Jambor  <mjambor@suse.cz>
19535         PR ipa/65478
19536         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
19537         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
19538         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
19539         node_calling_single_call.
19540         * ipa-cp.c (count_callers): New function.
19541         (set_single_call_flag): Likewise.
19542         (initialize_node_lattices): Count callers and set single_flag_call if
19543         necessary.
19544         (incorporate_penalties): New function.
19545         (good_cloning_opportunity_p): Use it, dump new flags.
19546         (propagate_constants_topo): Set node_within_scc flag if appropriate.
19547         * doc/invoke.texi (ipa-cp-recursion-penalty,
19548         ipa-cp-single-call-pentalty): Document.
19550 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19552         PR ipa/65588
19553         * symtab.c (symtab_node::get_partitioning_class): Register vars
19554         are duplicated.
19555         * varpool.c (symbol_table::output_variables) Do not assemble unefined
19556         decls for non-symbols.
19558 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19560         PR target/65248
19561         * output.h (default_binds_local_p_2): New.
19562         * varasm.c (default_binds_local_p_2): Renamed to ...
19563         (default_binds_local_p_3): This.  Don't return true on protected
19564         data symbol if protected data may be external.
19565         (default_binds_local_p): Use default_binds_local_p_3.
19566         (default_binds_local_p_1): Likewise.
19567         (default_binds_local_p_2): New.
19568         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
19569         default_binds_local_p_2 if TARGET_MACHO is undefined.
19571 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
19573         PR target/65593
19574         * config/i386/i386.c (legitimize_pic_address): If base
19575         is SYMBOL_REF or LABEL_REF using %rip addressing, force
19576         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
19578 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19580         PR target/65531
19581         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
19582         comdat groups.
19584 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19586         PR ipa/65600
19587         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
19588         of optimized out indirect call.
19589         (redirect_to_unreachable): Always build symbol table node for
19590         BUILT_IN_UNREACHABLE
19592 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
19594         PR target/65407
19595         * ira-costs.c (record_reg_classes): Process all constraint string
19596         containing 0-9.
19598 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
19600         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
19601         memory_operand.
19603         PR target/65052
19604         * config/c6x/constraints.md (S3): New constraint.
19605         * config/c6x/c6x.md (real_jump): Use it.
19607 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19609         PR middle-end/65595
19610         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
19611         do redirection if the call is not optimized out.
19613 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19615         PR target/65495
19616         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
19617         (fchkp-check-incomplete-type): Add LTO.
19618         (fchkp-zero-input-bounds-for-main): Likewise.
19619         (fchkp-first-field-has-own-bounds): Likewise.
19620         (fchkp-narrow-bounds): Likewise.
19621         (fchkp-narrow-to-innermost-array): Likewise.
19622         (fchkp-use-static-bounds): Likewise.
19623         (fchkp-use-static-const-bounds): Likewise.
19624         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19626 2015-03-27  Marek Polacek  <polacek@redhat.com>
19628         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
19630 2015-03-27  Marek Polacek  <polacek@redhat.com>
19632         PR sanitizer/65583
19633         * ubsan.c (ubsan_create_edge): New function.
19634         (instrument_bool_enum_load): Call it.
19635         (instrument_nonnull_arg): Likewise.
19636         (instrument_nonnull_return): Likewise.
19637         (instrument_object_size): Likewise.
19639 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19641         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
19642         auto_vec.
19644 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19646         PR lto/65536
19647         * lto-streamer.h (class lto_location_cache): New.
19648         (struct data_in): Add location_cache.
19649         (lto_input_location): Update prototype.
19650         (stream_input_location_now): New.
19651         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
19652         pointer to location.
19653         (stream_input_location): Update.
19654         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
19655         (warn_odr): Apply location cache before warning.
19656         (lto_input_location): Update prototype.
19657         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
19658         Use stream_input_location_now.
19659         * lto-streamer-in.c (lto_location_cache::current_cache): New static
19660         variable.
19661         (lto_location_cache::cmp_loc): New function.
19662         (lto_location_cache::apply_location_cache): New function.
19663         (lto_location_cache::accept_location_cache): New function.
19664         (lto_location_cache::revert_location_cache): New function.
19665         (lto_location_cache::input_location): New function.
19666         (lto_input_location): Do location caching.
19667         (stream_input_location_now): New function.
19668         (input_eh_region, input_struct_function_base): Use
19669         stream_input_location_now.
19670         (lto_data_in_create): use new.
19671         (lto_data_in_delete): Use delete.
19672         * tree-streamer-in.c (unpack_ts_block_value_fields,
19673         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
19674         lto_input_ts_exp_tree_pointers): Update for cached location api.
19676 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19678         PR ipa/65076
19679         * passes.def: Add pass_nothrow.
19680         * ipa-pure-const.c: (pass_data_nothrow): New.
19681         (pass_nothrow): New.
19682         (pass_nothrow::execute): New.
19683         (make_pass_nothrow): New.
19684         * tree-pass.h (make_pass_nothrow): Declare.
19686 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19688         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
19689         edge to change by speculation resolution or redirection.
19690         (edge_set_predicate): Likewise.
19691         (inline_summary_t::duplicate): Likewise.
19692         (remap_edge_summaries): Likewise.
19694 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19696         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
19697         New macros.
19698         (can_inline_edge_p): Relax option matching for always inline functions.
19700 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
19702         PR target/65561
19703         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
19704         Check operand 4 and operand 0 for equality.
19705         (avx512f_vextract<shuffletype>32x4_1_maskm):
19706         Check operand 6 and operand 0 for equality.
19707         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
19708         for equality.
19709         (vec_extract_hi_<mode>_maskm): Ditto.
19711 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19713         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
19714         dead calls back to live.
19715         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
19716         cross check to ...
19717         (cgraph_node::verify_node): ... here; verify only callee edges,
19718         not caller.
19719         * cif-code.def (CILK_SPAWN): New code.
19721 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19723         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
19724         (edge_set_predicate): Use it to mark unreachable edges.
19725         (inline_summary_t::duplicate): Remove unnecesary code.
19726         (remap_edge_summaries): Likewise.
19727         (dump_inline_summary): Report contains_cilk_spawn.
19728         (compute_inline_parameters): Compute contains_cilk_spawn.
19729         (inline_read_section, inline_write_summary): Stream
19730         contains_cilk_spawn.
19731         * ipa-inline.c (can_inline_edge_p): Do not touch
19732         DECL_STRUCT_FUNCTION that may not be available;
19733         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
19734         remove check for callee_fun->can_throw_non_call_exceptions and
19735         replace it by optimization attribute check; check for flag_exceptions.
19736         * ipa-inline-transform.c (inline_call): Maintain
19737         DECL_FUNCTION_PERSONALITY
19738         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
19740 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19742         PR tree-optimization/65551
19743         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
19744         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
19746 2015-03-26  Richard Biener  <rguenther@suse.de>
19748         PR middle-end/65555
19749         * tree-cfg.c (verify_gimple_call): Do not require a call to
19750         have no LHS if it wasn't recognized as control altering yet.
19752 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19754         PR tree-optimization/64715
19755         * passes.def: Add another instance of pass_object_sizes before ccp1.
19756         * tree-object-size.c (pass_object_sizes::execute): In
19757         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
19758         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
19759         __bos result and the computed constant.  Remove redundant
19760         checks, obsoleted by gimple_call_builtin_p test.
19762         * var-tracking.c (variable_tracking_main_1): Don't track
19763         variables for targetm.no_register_allocation targets.
19765 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
19767         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
19768         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
19770 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19772         PR target/65569
19773         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
19774         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
19775         0.0 is correctly setup.
19776         (extenddftf2_internal): Likewise.
19778 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
19780         PR tree-optimization/65177
19781         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
19782         (bb_in_bbs): New.
19783         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
19784         edges not adjacent on the path to the original code.
19786 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
19788         PR bootstrap/65537
19789         * doc/install.texi (Building a native compiler): Document new
19790         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
19791         configuration assumes that the host supports the linker plugin.
19793 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
19795         PR target/65508
19796         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
19797         chain for generated call.
19799 2015-03-25  Richard Biener  <rguenther@suse.de>
19801         * passes.c (pass_manager::execute_early_local_passes): Guard
19802         execution of pass_chkp_instrumentation_passes with
19803         flag_check_pointer_bounds.
19804         (pass_chkp_instrumentation_passes::gate): Likewise.
19806 2015-03-25  Martin Liska  <mliska@suse.cz>
19808         PR tree-optimization/65538
19809         * symbol-summary.h (function_summary::~function_summary):
19810         Relese memory for allocated summaries.
19811         (function_summary::release): New function.
19813 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
19815         PR lto/65515
19816         * lto-streamer-out.c (DFS::worklist): New struct.
19817         (DFS::worklist_vec): New data member.
19818         (DFS::next_dfs_num): Remove.
19819         (DFS::DFS): Rewritten using worklist instead of recursion,
19820         using most of code from DFS::DFS_write_tree.
19821         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
19822         pass it to DFS_write_tree calls.
19823         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
19824         quick initial checks push it into worklist_vec and return.
19826 2015-03-25  Richard Biener  <rguenther@suse.de>
19828         PR middle-end/65519
19829         * genmatch.c (expr::gen_transform): Re-write to avoid
19830         using gimple_build.
19832 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19834         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
19836 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19838         * config/arm/arm.opt (print_tune_info): New option.
19839         * config/arm/arm.c (arm_print_tune_info): New function.
19840         (arm_file_start): Call arm_print_tune_info.
19841         * config/arm/arm-protos.h (struct tune_params): Add comment.
19842         * doc/invoke.texi (@item -mprint-tune-info): New item.
19843         (-mtune): mention it in ARM Option Summary.
19845 2015-03-25  DJ Delorie  <dj@redhat.com>
19847         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
19848         correct clause.
19850 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
19851             Martin Liska  <mliska@suse.cz>
19853         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
19854         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
19855         (sem_item::add_type): New function.
19856         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
19857         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
19858         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
19859         (sem_function::equals_wpa): Fix typo.
19860         * ipa-icf.h (sem_item::add_type): New function.
19861         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
19862         order.
19864 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
19866         PR tree-optimization/65533
19867         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
19868         with swapped operands, call vect_free_slp_tree on
19869         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
19870         vector.
19872 2015-03-24  Richard Biener  <rguenther@suse.de>
19874         PR middle-end/65517
19875         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
19876         for fixup if necessary.
19878 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
19880         * doc/extend.texi (Function Attributes): Add @cindex entries
19881         for all attributes and regularize their format.  Delete text
19882         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
19883         information about "eightbit_data", "tiny_data", and "model"
19884         variable attributes to the Variable Attributes section.  Fix
19885         some obvious typos and copy-editing issues.
19886         (Variable Attributes, Type Attributes): Likewise add/fix
19887         @cindex entries for all attributes.
19889 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
19891         PR target/65523
19892         * tree-chkp.c (chkp_build_returned_bound): Ignore
19893         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
19895 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
19897         PR target/65505
19898         * config/sh/predicates.md (simple_mem_operand,
19899         displacement_mem_operand): Add test for reg.
19900         (short_displacement_mem_operand): Test for displacement_mem_operand
19901         before invoking sh_disp_addr_displacement.
19902         * config/sh/constraints.md (Sdd, Sra): Simplify.
19903         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
19904         Remove redundant displacement_mem_operand tests.
19906 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
19908         PR target/65296
19909         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
19910         the same -mmcu=MCU more than once.
19912 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
19914         PR bootstrap/65522
19915         * ipa-devirt.c: Remove duplicate demangle.h include.
19917         PR target/65504
19918         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
19919         on the pseudo.
19920         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
19921         REG_POINTER on *destptr after adjusting it for prologue size.
19923         PR ipa/65521
19924         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
19925         ultimate_alias_target ()->order ints instead of
19926         ultimate_alias_target () pointers.
19928 2015-03-23  Richard Biener  <rguenther@suse.de>
19930         PR tree-optimization/65518
19931         * tree-vect-stmts.c (vectorizable_load): Reject single-element
19932         interleaving cases we generate absymal code for.
19934 2015-03-23  Richard Biener  <rguenther@suse.de>
19936         PR tree-optimization/65494
19937         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
19938         matches here.
19939         (vect_analyze_slp_instance): But do that here, always and once.
19941 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19943         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
19944         adding T or multiplying by T+1 and subracting T.
19946 2015-03-22  Jeff Law  <law@redhat.com>
19948         PR rtl-optimization/64317
19949         * Makefile.in (OBJS): Add gcse-common.c
19950         * gcse.c: Include gcse-common.h
19951         (struct modify_pair_s): Move structure definition to gcse-common.h
19952         (compute_transp): Move function to gcse-common.c.
19953         (canon_list_insert): Similarly.
19954         (record_last_mem_set_info): Break out some code and put it into
19955         gcse-common.c.  Call into the new common code.
19956         (compute_local_properties): Pass additional arguments to compute_transp.
19957         * postreload-gcse.c: Include gcse-common.h and df.h
19958         (modify_mem_list_set, blocks_with_calls): New variables.
19959         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
19960         (get_bb_avail_insn): Pass in the expression index too.
19961         (alloc_mem): Allocate memory for the new bitmaps and lists.
19962         (free_mem): Free memory for the new bitmaps and lists.
19963         (insert_expr_in_table): Record a bitmap index for each entry we
19964         add to the table.
19965         (record_last_mem_set_info): Call into common code in gcse-common.c.
19966         (get_bb_avail_insn): If no available insn was found in the requested
19967         BB.  If BB has a single predecessor, see if the expression is
19968         transparent in BB and available in that single predecessor.
19969         (compute_expr_transp): New wrapper for compute_transp.
19970         (eliminate_partially_redundant_load): Pass expression's bitmap_index
19971         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
19972         (gcse_after_reload_main): If there are elements in the hash table,
19973         then compute transparency for all the elements in the hash table.
19974         * gcse-common.h: New file.
19975         * gcse-common.c: New file.
19977 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
19979         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
19980         as an adjective.
19981         (System Headers): Likewise.
19982         (Ifdef): Likewise.
19983         (Traditional macros): Likewise.
19984         (Invocation): Likewise.
19985         (Option Index): Likewise.
19986         * doc/cppopts.texi (-M): Likewise.
19987         (-finput-charset): Likewise.
19988         (--help): Likewise.
19989         * doc.invoke.texi (AVR Options): Likewise.
19990         (V850 Options): Likewise.
19992 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
19994         PR ipa/65475
19995         * ipa-devirt.c: Include demangle.h
19996         (odr_type_d): Add field rtti_broken.
19997         (odr_subtypes_equivalent_p): Do not require name to match.
19998         (compare_virtual_tables): Fix typo; if type already has ODR violation,
19999         bypass the tests; be ready for function referneces in vtables that are
20000         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
20001         (warn_odr): Give up for nameless types.
20002         (warn_types_mismatch): Report mismatch in mangled names;
20003         report mismatch in anonymous namespaces; look into component types to
20004         give useful error; report when mismatch is dragged in from other ODR
20005         type.
20006         (odr_types_equivalent_p): Match types for being polymorphic; avoid
20007         duplicated diagnostics.
20008         (add_type_duplicate): Reorder checks so more informative ones come
20009         first; fix typo; do not output "the extra base is defined here" when
20010         we did not warn.
20011         (BINFO_N_BASE_BINFOS): Relax sanity check.
20013 2015-03-22  Martin Liska  <mliska@suse.cz>
20014             Jakub Jelinek  <jakub@redhat.com>
20016         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
20017         masks that can potentially include a builtin.
20018         (ix86_add_new_builtins): Introduce fast filter for isa values
20019         that cannot trigger builtin inclusion.
20021 2015-03-22  Martin Liska  <mliska@suse.cz>
20023         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
20024         (sem_item::update_hash_by_local_refs): Likewise.
20025         (sem_variable::get_hash): Empty line is fixed.
20026         (sem_item_optimizer::execute): Include adding of hash references.
20027         (sem_item_optimizer::update_hash_by_addr_refs): New function.
20028         (sem_item_optimizer::build_hash_based_classes): Use local hash.
20029         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
20030         (sem_item::update_hash_by_local_refs): Likewise.
20032 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20034         PR ipa/65502
20035         * ipa-comdats.c (enqueue_references): Walk through thunks.
20036         (ipa_comdats): Likewise.
20037         (set_comdat_group_1): New function.
20039 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20041         PR ipa/65475
20042         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
20043         non-polymorphic
20045 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20046             Gerald Pfeifer  <gerald@pfeifer.com>
20048         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
20050 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
20051             Sandra Loosemore  <sandra@codesourcery.com>
20053         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
20054         function parameter declaration.
20055         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
20056         Update arguments to nios2_adjust_call_address().
20057         (sibcall_internal): Rename from *sibcall.
20058         (sibcall_value_internal): Rename from *sibcall_value.
20059         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
20060         (nios2_large_got_address): Add target temp reg parameter.
20061         (nios2_got_address): Adjust call to nios2_large_got_address, add
20062         force_reg around it.
20063         (nios2_load_pic_address): Add target temp reg parameter, replace call
20064         to nios2_got_address with corresponding code.
20065         (nios2_legitimize_constant_address): Update call to
20066         nios2_load_pic_address.
20067         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
20068         to use temp reg for PIC loading purposes.
20069         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
20070         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20071         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
20073 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20075         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
20076         usage of "the @option{...}".
20077         (-Wopenmp-simd): Likewise.
20078         (-fsanitize-recover): Likewise.
20079         (-fsanitize-undefined-trap-on-error): Likewise.
20080         (-flto): Likewise.
20081         (tracer-dynamic-coverage-feedback): Likewise.
20082         (reorder-block-duplicate-feedback): Likewise.
20083         (loop-unroll-jam-size): Likewise.
20084         (-B): Likewise.
20085         (-I-): Likewise.
20086         (-mabs=legacy): Likewise.
20087         (-mupper-regs-df): Likewise.
20088         (-mupper-regs-sf): Likewise.
20089         (-mpointers-to-nested-functions): Likewise.
20091 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20093         * doc/extend.texi (Cilk Plus Builtins): Add markup.
20095 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20097         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
20098         additional index entries and cross-references.
20099         (-fchkp-check-incomplete-type): Likewise.
20100         (-fchkp-first-field-has-own-bounds): Likewise.
20101         (-fchkp-narrow-to-innermost-array): Likewise.
20102         (-fchkp-use-fast-string-functions): Likewise.
20103         (-fchkp-use-nochk-string-functions): Likewise.
20104         (-fchkp-use-static-const-bounds): Likewise.
20105         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20106         (-fchkp-instrument-marked-only): Likewise.
20107         (-fchkp-use-wrappers): Likewise.
20108         (-static-libmpx): Likewise.
20109         (-static-libmpxwrappers): Likewise.
20110         * doc/extend.texi (bnd_legacy): Likewise.
20111         (bnd_instrument): Likewise.
20112         (bnd_variable_size): Likewise.
20113         (Pointer Bounds Checker builtins): Likewise.
20115 2015-03-21  Tom de Vries  <tom@codesourcery.com>
20117         PR tree-optimization/65458
20118         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
20119         * cgraph.h (cgraph_node): Add parallelized_function field.
20120         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
20121         (input_overwrite_node): Read parallelized_function field.
20122         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
20123         parallelized_function on cgraph_node for child_fn.
20124         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
20125         Remove include of gt-tree-parloops.h.
20126         (parallelized_functions): Remove static variable.
20127         (parallelized_function_p): Rewrite using parallelized_function field of
20128         cgraph_node.
20129         (create_loop_fn): Remove adding to parallelized_functions.
20130         * Makefile.in (GTFILES): Remove tree-parloops.c
20132 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
20134         PR rtl-optimization/64366
20135         * lra.c (lra_update_insn_regno_info): Consider regs in
20136         CALL_INSN_FUNCTION_USAGE memory.
20138 2015-03-20  Richard Biener  <rguenther@suse.de>
20140         PR middle-end/64715
20141         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
20142         for type comparison and gcc_checking_assert.
20143         (chrec_fold_plus_poly_poly): Likewise.
20144         (chrec_fold_multiply_poly_poly): Likewise.
20145         (chrec_convert_1): Likewise.
20146         * gimplify.c (gimplify_expr): Remove premature folding of
20147         &X + CST to &MEM[&X, CST].
20149 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20151         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
20152         already is final.
20153         (ipa_inline): Recompute inline_failed codes.
20154         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20155         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
20156         CIF_FINAL_ERROR.
20158 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
20160         PR rtl-optimization/60851
20161         * recog.c (constrain_operands): Accept a pseudo register before reload
20162         for LRA enabled targets.
20164 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20166         PR target/65240
20167         * config/rs6000/predicates.md (easy_fp_constant): Remove special
20168         -ffast-math handling that kept non-0 constants live in the RTL
20169         until reload.  Remove logic testing the number of instructions it
20170         took to create a constant in a GPR that was never used, due to a
20171         test for soft-float earlier.
20172         (memory_fp_constant): Delete, no longer used.
20174         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
20175         alternatives for loading non-0 constants into GPRs for hard
20176         floating point that is no longer needed due to changes in
20177         easy_fp_constant.  Add support for loading 0.0 into GPRs.
20178         (mov<mode>_hardfloat32): Likewise.
20179         (mov<mode>_hardfloat64): Likewise.
20180         (mov<mode>_64bit_dm): Likewise.
20181         (movtd_64bit_nodm): Likewise.
20182         (pre-reload move FP constant define_split): Delete define_split,
20183         since it is no longer used.
20184         (extenddftf2_internal): Remove GHF constraints that are not valid
20185         for extenddftf2.
20187 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
20189         PR rtl-optimization/63491
20190         * lra-constraints.c (check_and_process_move): Use src instead of
20191         sreg.  Remove some dead code.
20193 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
20195         PR ipa/65380
20196         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
20197         (sem_variable::merge): Likewise.
20199 2015-03-19  Martin Liska  <mliska@suse.cz>
20201         PR ipa/65465
20202         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
20203         all fields of cgraph_thunk_info.
20205 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20207         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
20208         clone instrumented thunks.
20210 2015-03-19  Richard Biener  <rguenther@suse.de>
20212         Revert
20213         2015-03-10  Richard Biener  <rguenther@suse.de>
20215         PR middle-end/63155
20216         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20217         * tree-ssa-coalesce.c: Include timevar.h.
20218         (attempt_coalesce): Handle graph being NULL.
20219         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20220         Split out abnormal coalescing to ...
20221         (perform_abnormal_coalescing): ... this function.
20222         (coalesce_ssa_name): Perform abnormal coalescing without computing
20223         live/conflict.
20224         (verify_ssa_coalescing_worker): New function.
20225         (verify_ssa_coalescing): Likewise.
20227 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20228             Jakub Jelinek  <jakub@redhat.com>
20230         PR sanitizer/65400
20231         * tsan.c (instrument_gimple): Clear tail call flag on
20232         calls.
20234 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
20236         PR sanitizer/65400
20237         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
20238         call in the return bb.
20239         (find_split_points): Add RETURN_BB argument, don't call
20240         find_return_bb.
20241         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
20242         if true append TSAN_FUNC_EXIT internal call after the call to
20243         the split off function.
20244         (execute_split_functions): Call find_return_bb here.
20245         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
20246         Adjust find_split_points and split_function calls.
20248 2015-03-18  DJ Delorie  <dj@redhat.com>
20250         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
20251         (iorqi3_virt): Likewise.
20253 2015-03-18  Tom de Vries  <tom@codesourcery.com>
20255         * tree-parloops.c (parallelize_loops): Make static.
20256         * tree-parloops.h (parallelize_loops): Remove extern declaration.
20258 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
20260         PR middle-end/64491
20261         Revert:
20262         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
20264         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
20265         condition would be removed due to undefined behaviour.
20267 2015-03-18  Martin Liska  <mliska@suse.cz>
20269         PR ipa/65432
20270         * cgraph.c (cgraph_node::get_create): Remove unnecessary
20271         xstrdup_for_dump wrapper.
20272         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
20273         sem_item::name.
20274         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
20275         with xstrdup_for_dump.
20276         (sem_variable::equals): Likewise.
20277         (sem_item_optimizer::read_section): Use symtab_node::name instead of
20278         sem_item::name.
20279         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
20280         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
20281         symtab_node::asm_name with xstrdup_for_dump.
20282         (congruence_class::dump): Use symtab_node::name instead of
20283         sem_item::name.
20284         * ipa-icf.h (symtab_node::name): Remove.
20285         (symtab_node::asm_name): Likewise.
20287 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20289         PR tree-optimization/65450
20290         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
20291         function.
20292         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
20293         it instead of duplicate_ssa_name_ptr_info.
20295         PR target/65222
20296         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
20298 2015-03-18  Richard Biener  <rguenther@suse.de>
20300         * tree-data-ref.h (struct access_matrix): Remove.
20301         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
20302         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
20303         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
20304         (am_vector_index_for_loop): Likewise.
20305         (struct data_reference): Remove access_matrix member.
20306         (DR_ACCESS_MATRIX): Remove.
20307         (lambda_vector_new): Add comment.
20308         (lambda_matrix_new): Use XOBNEWVEC.
20310 2015-03-18  Richard Biener  <rguenther@suse.de>
20312         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
20313         (pass_ch::execute): Cleanup the CFG only if we did sth.
20314         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
20316 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20318         * expmed.c (synth_mult): Use std::swap instead of manually
20319         swapping algorithms.
20321 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20323         PR target/65078
20324         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
20326 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
20328         PR target/65296
20329         * config/avr/avr.opt (-nodevicelib): New option.
20330         * doc/invoke.texi (AVR Options): Document it.
20331         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
20332         libgcc.a, libc.a, libm.a.
20333         * config/avr/specs.h: Same.
20334         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
20335         which don't (directly) depend on the device.  Print more help.
20336         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
20337         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
20338         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
20339         case of an error.
20340         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
20341         for specs file name.
20342         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
20343         * config/avr/avr-mcus.def: Adjust initializers and comments.
20345 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
20347         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
20348         DECL_ONE_ONLY to check if decl is one only.
20349         * ipa-split.c (consider_split): Limit splitt of one only functions.
20351 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20353         PR tree-optimization/65427
20354         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
20355         functions.
20356         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
20358 2015-03-16  Marek Polacek  <polacek@redhat.com>
20360         * cgraph.h (add_new_static_var): Remove declaration.
20361         * varpool.c (add_new_static_var): Remove function.
20363 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20365         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
20366         instead of vec<tree> * with vec_alloc and release for args.
20367         Adjust all users.
20369         PR middle-end/65431
20370         * omp-low.c (delete_omp_context): Only splay_tree_delete
20371         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
20372         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
20374 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20376         PR sanitizer/64820
20377         * cfgexpand.c (align_base): New function.
20378         (alloc_stack_frame_space): Call it.
20379         (expand_stack_vars): Align prev_frame to be sure
20380         data->asan_vec elements aligned properly.
20382 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
20384         PR middle-end/65409
20385         * expr.c (store_field): Do not do a direct block copy if the source is
20386         a PARALLEL with BLKmode.
20388 2015-03-16  Tom de Vries  <tom@codesourcery.com>
20390         PR middle-end/65414
20391         Revert:
20392         2015-03-12  Tom de Vries  <tom@codesourcery.com>
20394         PR rtl-optimization/64895
20395         * lra-lives.c (check_pseudos_live_through_calls): Use
20396         actual_call_used_reg_set instead of call_used_reg_set, if available.
20398 2015-03-16  Alan Modra  <amodra@gmail.com>
20400         PR target/63150
20401         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
20402         Modify Z->r bswapdi splitter to use dest in place of scratch.
20403         In r->Z and Z->r bswapdi splitter rename word_high, word_low
20404         to word1, word2 and rearrange logic to suit.
20405         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
20406         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
20407         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
20408         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
20409         early clobber.
20411 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
20413         PR tree-optimization/65369
20414         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
20415         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
20416         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
20418         PR tree-optimization/65418
20419         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
20420         are casts in the first PLUS_EXPR operand, ensure tbias and
20421         *totallowp are in the inner type.
20423         PR rtl-optimization/65401
20424         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
20425         argument.  If true, adjust_address_nv of x with big-endian
20426         correction for the mode widening to GET_MODE (y).
20427         (make_field_assignment): Don't do MEM mode widening here.
20428         Use MEM_P instead of GET_CODE == MEM.
20430 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
20432         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
20433         the external decls.
20435 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20437         PR target/64600
20438         * config/arm/arm.c (arm_gen_constant, AND case): Use
20439         ARM_SIGN_EXTEND when constructing AND mask.
20441 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20443         * graph.c (print_graph_cfg): Make function names visible and append
20444         parenthesis to it.  Also make groups of basic blocks belonging to the
20445         same function visible.
20447 2015-03-12  Richard Biener  <rguenther@suse.de>
20449         PR middle-end/44563
20450         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
20451         to avoid quadratic behavior with inline expansion splitting blocks.
20452         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
20453         with the successor if the predecessor will be merged with it.
20454         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
20455         entry block with its successor.
20457 2015-03-13  Richard Biener  <rguenther@suse.de>
20459         PR middle-end/44563
20460         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
20461         (cleanup_tree_cfg_1): Do not call it.
20462         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
20463         (fixup_noreturn_call): Mark the stmt as control altering.
20464         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
20465         here.
20466         (pass_data_fixup_cfg): Produce a dump file.
20467         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
20468         (need_noreturn_fixup): New global.
20469         (pass_dominator::execute): Fixup queued noreturn calls.
20470         (optimize_stmt): Queue calls that became noreturn for fixup.
20471         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
20472         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
20473         (el_to_fixup): New global.
20474         (eliminate_dom_walker::before_dom_childre): Queue calls that
20475         became noreturn for fixup.
20476         (eliminate): Fixup queued noreturn calls.
20477         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
20478         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
20479         (substitute_and_fold_dom_walker::before_dom_children): Queue
20480         alls that became noreturn for fixup.
20481         (substitute_and_fold): Fixup queued noreturn calls.
20483 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
20485         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
20486         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
20487         are building; for methods check ODR type of class they belong to if
20488         they may lead to a polymorphic call.
20489         (sem_function::compare_polymorphic_p): Be bit smarter about testing
20490         when function may lead to a polymorphic call.
20491         (sem_function::compare_type_list): Remove.
20492         (sem_variable::equals): Update use of compatible_types_p.
20493         (sem_variable::parse_tree_refs): Remove.
20494         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
20495         cdtor.
20496         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
20497         matching here.
20498         (func_checker::compatible_polymorphic_types_p): Break out from ...
20499         (unc_checker::compatible_types_p): ... here.
20500         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
20501         Declare.
20502         (unc_checker::compatible_types_p): Update.
20503         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
20504         Remove.
20506 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20508         PR rtl-optimization/65235
20509         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
20510         When first element of vec_concat is const_int, calculate its size
20511         using second element.
20513 2015-03-12  Richard Biener  <rguenther@suse.de>
20515         PR middle-end/65270
20516         * fold-const.c (operand_equal_p): Fix ordering of resetting
20517         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
20519 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20521         * config/s390/s390.c (s390_reorg): Move code to output nops after label
20522         to s390_reorg ().
20523         (s390_asm_output_function_label): Likewise.
20524         * config/s390/s390.c (s390_asm_output_function_label):
20525         Fix function label alignment with -mhtopatch.
20526         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
20527         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
20528         ("nop_2_byte"): New define_insn.
20529         ("nop_4_byte"): Likewise.
20530         ("nop_6_byte"): Likewise.
20531         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
20532         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
20534 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20536         PR target/65103
20537         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
20538         register.
20540 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20542         PR target/65044
20543         * toplev.c (process_options): Restrict Pointer Bounds Checker
20544         usage with Address Sanitizer.
20546 2015-03-12  Richard Biener  <rguenther@suse.de>
20548         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
20549         to split on.
20550         * omp-low.c (expand_omp_taskreg): Split block before removing
20551         the stmt.
20552         (expand_omp_target): Likewise.
20553         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
20554         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
20555         stmt to split_block.
20557 2015-03-12  Tom de Vries  <tom@codesourcery.com>
20559         PR rtl-optimization/64895
20560         * lra-lives.c (check_pseudos_live_through_calls): Use
20561         actual_call_used_reg_set instead of call_used_reg_set, if available.
20563 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20565         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
20566         (cgraph_node::remove): Likewise.
20567         (cgraph_node::get_untransformed_body): Likewise.
20568         * varpool.c (varpool_node::remove): Likewise.
20569         (varpool_node::get_constructor): Add sanity check.
20571 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
20573         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
20574         old GCC versions.
20575         (-fabi-compat-version): Likewise.
20576         (-ffriend-injection): Likewise.
20577         (-Wdeclaration-after-statement): Likewise.
20578         (-fomit-frame-pointer): Likewise.
20579         (-ftree-coalesce-inlined-vars): Likewise.
20580         (-fvisibility=): Likewise.
20581         * doc/extend.texi (Typeof): Likewise.
20582         (Zero Length): Likewise.
20583         (Escaped Newlines): Likewise.
20584         (Compound Literals): Likewise.
20585         (Function Attributes): Likewise.
20586         (Label Attributes): Likewise.
20587         (Type Attributes): Likewise.
20588         (Function Names): Likewise.
20589         (Other Builtins): Likewise.
20590         (Function Specific Option Pragmas): Likewise.
20591         (C++ Interface): Likewise.
20593 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
20595         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
20597 2015-03-11  Marek Polacek  <polacek@redhat.com>
20599         PR tree-optimization/65388
20600         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
20602 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20604         PR target/65296
20605         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
20606         * configure: Regenerate.
20607         * config.in: Regenerate.
20608         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
20609         [-mn-flash]: Document it.
20610         [__AVR_ARCH__]: Document avrtiny.
20612         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
20613         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
20614         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
20616 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20618         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
20620 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20622         PR target/65242
20623         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
20624         allow reloads of PLUS in floating point/VSX registers.
20626 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
20628         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
20629         crypto_sha256_fast.
20630         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
20632 2015-03-11  Richard Biener  <rguenther@suse.de>
20634         PR tree-optimization/65310
20635         * tree-sra.c (build_ref_for_offset): Also preserve larger
20636         alignment.
20638 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
20640         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
20642 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20644         PR target/65368
20645         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
20646         new define_expand.
20647         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
20649 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20651         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
20652         (sem_function::equals_wpa): ... here.
20654 2015-03-10  Marek Polacek  <polacek@redhat.com>
20655             Jakub Jelinek  <jakub@redhat.com>
20657         PR sanitizer/65367
20658         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
20659         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
20660         separately.
20662 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20664         PR target/65286
20665         * config/rs6000/t-linux: For powerpc64* target set
20666         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
20668 2015-03-10  Richard Biener  <rguenther@suse.de>
20670         PR middle-end/44563
20671         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
20672         for redirect_all_calls.
20674 2015-03-10  Marek Polacek  <polacek@redhat.com>
20676         * gdbinit.in (pcfun): Define and document.
20678 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
20680         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
20681         of libgomp-plugin.h.
20682         (find_target_compiler): Support a case when the path to gcc is
20683         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
20684         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
20685         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
20686         libgomp-plugin.h.
20687         (main): Use GCC_INSTALL_NAME as target_driver_name.
20688         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
20689         define.
20690         (mkoffload.o): Remove obsolete include path and defines.
20691         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
20693 2015-03-10  Richard Biener  <rguenther@suse.de>
20695         PR middle-end/63155
20696         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20697         * tree-ssa-coalesce.c: Include timevar.h.
20698         (attempt_coalesce): Handle graph being NULL.
20699         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20700         Split out abnormal coalescing to ...
20701         (perform_abnormal_coalescing): ... this function.
20702         (coalesce_ssa_name): Perform abnormal coalescing without computing
20703         live/conflict.
20704         (verify_ssa_coalescing_worker): New function.
20705         (verify_ssa_coalescing): Likewise.
20707 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20709         PR target/65296
20710         * config.gcc (extra_options) [avr]: Remove.
20711         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
20712         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
20713         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
20715         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
20716         (-mmcu=): Add Var and MissingArgError properties.
20717         (-march=): Remove.
20718         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
20719         * config/avr/t-multilib: Regenerate.
20720         * config/avr/specs.h: New file.
20721         * config/avr/driver-avr.c: New file.
20722         * config/avr/genopt.sh: Remove file.
20723         * config/avr/avr-tables.opt: Remove file.
20724         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
20725         * config/avr/avr-c.c: Same.
20726         * avr-arch.h: Same.
20727         (avr_current_device): Remove proto.
20728         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
20729         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
20730         (EXTRA_SPEC_FUNCTIONS): Define.
20731         (avr_devicespecs_file): New specs function proto.
20732         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
20733         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
20734         (avr_current_device): Remove definition and usage.
20735         (avr_set_core_architecture): New static function.
20736         (avr_option_override): Use it.
20737         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
20738         (mcu_name): New static array.
20739         (comparator, avr_archs_str, avr_mcus_str): New static functions.
20740         (avr_inform_devices, avr_inform_core_architectures): New functions.
20741         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
20742         (avrlibc.h) [WITH_AVRLIBC]: Include.
20743         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
20744         (print_mcu): Rewrite from scratch.
20745         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
20746         Forward to avr-specific specs defined in device-specs file.
20747         * config/avr/t-avr (driver-avr.o): New rule.
20748         (avr-devices.o): Depend on avr-arch.h.
20749         (avr-mcus): No more depend on avr-tables.opt.
20750         (avr-tables.opt): Remove rule.
20751         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
20753 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20755         * c-family/c.opt (fchkp-use-wrappers): New.
20756         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
20757         (chkp_wrap_function): New.
20758         (chkp_build_instrumented_fndecl): Support wrapped
20759         functions.
20760         * doc/invoke.texi (-fcheck-pointer-bounds): New.
20761         (-fchkp-check-incomplete-type): New.
20762         (-fchkp-first-field-has-own-bounds): New.
20763         (-fchkp-narrow-bounds): New.
20764         (-fchkp-narrow-to-innermost-array): New.
20765         (-fchkp-optimize): New.
20766         (-fchkp-use-fast-string-functions): New.
20767         (-fchkp-use-nochk-string-functions): New.
20768         (-fchkp-use-static-bounds): New.
20769         (-fchkp-use-static-const-bounds): New.
20770         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
20771         (-fchkp-check-read): New.
20772         (-fchkp-check-write): New.
20773         (-fchkp-store-bounds): New.
20774         (-fchkp-instrument-calls): New.
20775         (-fchkp-instrument-marked-only): New.
20776         (-fchkp-use-wrappers): New.
20777         (-static-libmpx): New.
20778         (-static-libmpxwrappers): New.
20780 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20782         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
20783         (CHKP_SPEC): Add wrappers library.
20784         * c-family/c.opt (static-libmpxwrappers): New.
20786 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20788         * config/i386/linux-common.h (LIBMPX_LIBS): New.
20789         (LIBMPX_SPEC): New.
20790         (CHKP_SPEC): New.
20791         * gcc.c (CHKP_SPEC): New.
20792         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
20793         * c-family/c.opt (static-libmpx): New.
20795 2015-03-10  Richard Biener  <rguenther@suse.de>
20797         PR middle-end/44563
20798         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
20799         for compare_type.
20800         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
20801         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
20802         (cgraph_add_edge_to_call_site_hash): Likewise.
20803         (cgraph_node::get_edge): Likewise.
20804         (cgraph_edge::set_call_stmt): Likewise.
20805         (cgraph_edge::remove_caller): Likewise.
20807 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
20809         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
20810         (callee_saved_gpr_regs_size): ... this.
20811         (callee_saved_regs_first_regno): Rename to ...
20812         (callee_saved_first_gpr_regno): ... this.
20813         (callee_saved_regs_last_regno) Rename to ...
20814         (callee_saved_last_gpr_regno): ... this.
20815         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
20816         variables.
20817         (nds32_initial_elimination_offset): Likewise.
20818         (nds32_expand_prologue): Likewise.
20819         (nds32_expand_epilogue): Likewise.
20820         (nds32_expand_prologue_v3push): Likewise.
20821         (nds32_expand_epilogue_v3pop): Likewise.
20822         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20823         Adjust renamed variables.
20824         (nds32_output_stack_pop): Likewise.
20826 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20828         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
20829         code in comment.
20831 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20833         PR rtl-optimization/65321
20834         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
20835         than shift mode.
20836         * var-tracking.c (use_narrower_mode): Likewise.
20838 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20840         PR tree-optimization/65355
20841         * varasm.c (notice_global_symbol): Do not produce RTL.
20842         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
20843         anchor.
20844         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
20845         check for section anchors.
20847 2015-03-10  Alan Modra  <amodra@gmail.com>
20849         PR target/65286
20850         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
20851         to be single-arch by default.  Set cpu_is_64bit for powerpc64
20852         given --with-cpu=native.
20853         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
20854         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
20855         and powerpc64le.
20856         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
20857         rs6000_isa_flags rather than TARGET_64BIT.
20859 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
20860             Kaz Kojima  <kkojima@gcc.gnu.org>
20862         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
20864 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
20866         PR lto/65361
20867         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
20868         on a TREE_BINFO, instead use BINFO_TYPE.
20870 2015-03-09  Richard Biener  <rguenther@suse.de>
20872         PR middle-end/65270
20873         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
20874         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
20875         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
20876         of that.  When comparing dereferences compare alignment.
20877         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
20879 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20881         * ipa-inline-analysis.c (check_callers): Check
20882         node->can_remove_if_no_direct_calls_and_refs_p.
20883         (growth_likely_positive): Reorganize to call
20884         can_remove_if_no_direct_calls_p later.
20885         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
20886         will_be_removed_from_program_if_no_direct_calls_p): Add
20887         will_inline parameter.
20888         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
20889         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20890         Handle inliner case correctly.
20892 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20894         PR tree-optimization/63743
20895         * cfgexpand.c (reorder_operands): Also reorder if only second operand
20896         had its definition forwarded by TER.
20898 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20900         PR lto/65316
20901         * ipa-utils.h (types_odr_comparable): Add strict argument.
20902         * ipa-devirt.c: Fix whitespace;
20903         (odr_hasher): Remove.
20904         (odr_name_hasher, odr_vtable_hasher): New hashers.
20905         (can_be_name_hashed_p): New predicate.
20906         (hash_type_name): remove.
20907         (hash_odr_name): New.
20908         (odr_name_hasher::hash): new.
20909         (can_be_vtable_hashed_p): New.
20910         (hash_odr_vtable): New.
20911         (odr_vtable_hasher::hash): New.
20912         (types_same_for_odr): Add strict parameter.
20913         (types_odr_comparable): Likewise.
20914         (odr_name_hasher::equal): New.
20915         (odr_vtable_hasher::equal): New.
20916         (odr_name_hasher::remove): New.
20917         (odr_hash_type): Change to hash_table<odr_name_hasher>.
20918         (odr_vtable_hash_type): New.
20919         (odr_vtable_hash): New.
20920         (odr_subtypes_equivalent_p): Do strict comparsion.
20921         (add_type_duplicate): Merge type names; cleanup; avoid type
20922         duplicates.
20923         (register_odr_type): Initialize vtable hash.
20924         (build_type_inheritance_graph): Likewise
20925         (get_odr_type): Reorg to use two hashes.
20926         (dump_possible_polymorphic_call_targets): Move sanity check after debug
20927         output.
20928         (ipa_devirt): Dump type_inheritance_graph.
20929         (types_same_for_odr): Add strict mode.
20931 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20933         PR ipa/65334
20934         * cgraph.h (symtab_node): Add definition_alignment,
20935         can_increase_alignment_p and increase_alignment.
20936         * symtab.c (symtab_node::can_increase_alignment_p,
20937         increase_alignment_1, symtab_node::increase_alignment,
20938         symtab_node::definition_alignment): New.
20939         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
20940         can_increase_alignment_p.
20941         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
20942         * tree-vect-stmts.c (ensure_base_align): Likewise.
20943         * varasm.c (function_section_1): Use definition_alignment.
20944         (assemble_start_function): Likewise.
20945         (emit_local): likewise.
20946         (build_constant_desc): Likewsie.
20947         (output_constant_def_contents): Likewise.
20948         (place_block_symbol): Likewise.
20949         (output_object_block): Likewise.
20951 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20953         PR ipa/65316
20954         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
20955         when outputting debug.
20957 2015-03-07  Marek Polacek  <polacek@redhat.com>
20958             Martin Uecker  <uecker@eecs.berkeley.edu>
20960         PR sanitizer/65280
20961         * doc/invoke.texi: Update description of -fsanitize=bounds.
20963 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
20965         * tree-ssa-phiopt.c (neg_replacement): Remove.
20966         (tree_ssa_phiopt_worker): Remove negate optimization.
20968 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20970         PR ipa/65302
20971         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
20973 2015-03-06  Richard Biener  <rguenther@suse.de>
20975         PR middle-end/64928
20976         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
20977         and liveout_obstack members.
20978         (calculate_live_on_exit): Remove.
20979         (calculate_live_ranges): Change declaration.
20980         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
20981         (new_tree_live_info): Adjust.
20982         (calculate_live_ranges): Delete livein when not wanted.
20983         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
20984         Deal with partly deleted live info.
20985         (loe_visit_block): Remove temporary bitmap by using
20986         bitmap_ior_and_compl_into.
20987         (live_worklist): Adjust accordingly.
20988         (calculate_live_on_exit): Make static.
20989         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
20990         we do not need livein.
20992 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
20994         * real.c (real_from_string): Fix typo in assertion.
20996 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
20998         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
20999         the patch.
21001 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21003         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
21005 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
21007         PR target/64342
21008         * lra-assigns.c (find_hard_regno_for): Rename to
21009         find_hard_regno_for_1.  Add a new parameter.
21010         (find_hard_regno_for): New function using find_hard_regno_for_1.
21012 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21014         PR rtl-optimization/65067
21015         * expmed.c (store_bit_field, extract_bit_field): Reworked the
21016         strict volatile bitfield handling.
21018 2015-03-05  Martin Liska  <mliska@suse.cz>
21020         PR ipa/65318
21021         * ipa-icf.c (sem_variable::equals): Compare variables types.
21023 2015-03-05  Richard Henderson  <rth@redhat.com>
21025         PR target/65121
21026         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
21027         correctly check weak symbol binding.
21029 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
21031         PR middle-end/65315
21032         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
21033         needed alignment.
21035 2015-03-05  Martin Liska  <mliska@suse.cz>
21037         * ipa-inline.c (inline_small_functions): Set default value to
21038         prevent warning during bootstrap.
21039         * tree.h: Add pragma guard that ignores false positives during
21040         bootstrap.
21042 2015-03-05  Richard Biener  <rguenther@suse.de>
21044         PR tree-optimization/65310
21045         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21046         Properly preserve alignment of the base of the access.
21048 2015-03-05  Richard Biener  <rguenther@suse.de>
21050         PR ipa/65270
21051         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
21052         Compare dependence info.
21054 2015-03-05  Richard Biener  <rguenther@suse.de>
21056         PR middle-end/65233
21057         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
21058         tree-into-ssa.h.
21059         (walk_ssa_copies): Revert last chage.  Instead do not walk
21060         SSA names registered for SSA update.
21062 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21064         PR ipa/65270
21065         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
21066         vtable references for their containing type.
21067         (sem_function::equals_wpa): Compare TYPE_RESTRICT
21068         and type attributes.
21070 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
21072         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
21073         before negating it.
21074         * stor-layout.c (finalize_record_size): Revert latest change.
21076 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
21078         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
21080 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21082         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
21083         for correct comdat handling.
21084         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21085         Likewise.
21086         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
21087         (used_from_object_file_p_worker): Remove.
21088         (cgraph_node::only_called_directly_or_alised): Add
21089         used_from_object_file_p.
21090         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
21091         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
21092         can_remove_if_no_direct_calls_and_refs_p.
21094 2015-03-04  Nick Clifton  <nickc@redhat.com>
21096         * config/rl78/rl78.h (enum reg_class): Remove real registers from
21097         General register class.
21098         * config/rl78/rl78-real.md: Replace general register constraints
21099         with real+virtual register constraints.
21101 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21103         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
21104         from checking for -mhtm option.
21106 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21108         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
21109         (struct ipa_sra_check_caller_data): Add has_thunk field.
21110         (ipa_sra_check_caller): Check for thunk.
21111         (ipa_sra_preliminary_function_checks): Give up on function with
21112         thunks.
21113         (ipa_early_sra): Use call_for_symbol_and_aliases.
21115 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
21117         PR target/65249
21118         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
21119         called for __stack_chk_guard symbol.
21121 2015-03-03  DJ Delorie  <dj@redhat.com>
21123         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
21124         inc/dec.
21125         (*addhi3_real): Likewise.
21126         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
21127         pattern to match incrementing memory.
21128         * config/rl78/predicates.md (rl78_1_2_operand): New.
21129         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
21130         it's the same and only mem.
21131         (rl78_alloc_physical_registers_op2): If there's effectively only
21132         one MEM, transcode it into HL.
21133         (rl78_far_p): Reject addresses that aren't legitimate.
21135 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21137         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
21138         negating it.
21140         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
21142 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
21144         Implement call0 ABI for xtensa
21145         * config/xtensa/constraints.md ("a" constraint): Include stack
21146         pointer in case of call0 ABI.
21147         ("q" constraint): Make empty in case of call0 ABI.
21148         ("D" constraint): Include stack pointer in case of call0 ABI.
21149         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
21150         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
21151         prototypes.
21152         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
21153         variable.
21154         (xtensa_regno_to_class): Make it a local variable in the
21155         function xtensa_regno_to_class.
21156         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
21157         macro, function prototype and implementation.
21158         (reg_nonleaf_alloc_order): Make it a local variable in the
21159         function order_regs_for_local_alloc.
21160         (xtensa_conditional_register_usage): New function.
21161         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
21162         (xtensa_valid_move): Allow direct moves to stack pointer
21163         register in call0 ABI.
21164         (xtensa_setup_frame_addresses): Only spill register windows in
21165         windowed ABI.
21166         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
21167         call0 ABI respectively.
21168         (xtensa_function_arg_1): Only mark a7 register for copying in
21169         windowed ABI.
21170         (xtensa_call_save_reg): New function.
21171         (compute_frame_size): Add space for callee saved register
21172         storage to the frame size in call0 ABI.
21173         (xtensa_expand_prologue): Generate code to set up stack frame
21174         and save callee-saved registers in call0 ABI.
21175         (xtensa_expand_epilogue): New function.
21176         (xtensa_set_return_address): New function.
21177         (xtensa_return_addr): Calculate return address in call0 ABI.
21178         (xtensa_builtin_saveregs): Only mark a7 register for copying and
21179         emit copying code in windowed ABI.
21180         (order_regs_for_local_alloc): Add preferred register allocation
21181         order for non-leaf function in call0 ABI.
21182         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
21183         (xtensa_asm_trampoline_template): Add trampoline generation for
21184         call0 ABI.
21185         (xtensa_trampoline_init): Add trampoline initialization for
21186         call0 ABI.
21187         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
21188         functions.
21189         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
21190         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
21191         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
21192         ABI call-used registers.
21193         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
21194         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
21195         call0 ABI.
21196         (REG_CLASS_CONTENTS): Include all registers into the preferred
21197         reload registers set, adjust the set in the
21198         xtensa_conditional_register_usage.
21199         (xtensa_regno_to_class): Drop variable declaration.
21200         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
21201         function.
21202         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
21203         respectively.
21204         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
21205         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
21206         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
21207         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
21208         location in call0 ABI.
21209         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
21210         stack adjustment size when handling exception.
21211         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
21212         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
21213         definitions.
21214         ("return" pattern): Generate ret.n/ret in call0 ABI.
21215         ("epilogue" pattern): Expand epilogue.
21216         ("nonlocal_goto" pattern): Use default in call0 ABI.
21217         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
21218         emit eh_set_a0_* depending on ABI.
21219         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
21220         ("eh_set_a0_call0", "blockage"): New patterns.
21222 2015-03-03  Martin Liska  <mliska@suse.cz>
21224         PR ipa/65287
21225         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
21227 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21229         PR 65138/target
21230         * config/rs6000/rs6000-tables.opt: Regenerate table.
21232 2015-03-03  Renlin Li  <renlin.li@arm.com>
21234         * doc/md.texi (@item ^): Change ? into ^.
21236 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
21238         * doc/tm.texi: Regenerated.
21240 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
21242         * builtins.c (expand_builtin_return_addr): Add
21243         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
21244         surrounding #ifdef.
21245         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
21246         definition to 1.
21247         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
21248         Likewise.
21249         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
21250         undefined.
21251         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
21252         paragraph.
21254 2015-03-03  Martin Jambor  <mjambor@suse.cz>
21255             Eric Botcazou  <ebotcazou@adacore.com>
21257         * tree-sra.c (ipa_sra_check_caller_data): New type.
21258         (has_caller_p): Removed.
21259         (ipa_sra_check_caller): New function.
21260         (ipa_sra_preliminary_function_checks): Use it.
21262 2015-03-03  Martin Liska  <mliska@suse.cz>
21264         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
21265         instead of if branch.
21267 2015-03-03  Martin Liska  <mliska@suse.cz>
21269         PR ipa/65282
21270         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
21272 2015-03-23  Jeff Law  <law@redhat.com>
21274         PR tree-optimization/65241
21275         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
21276         hash table if INSERT is true.
21278 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21280         PR target/65296
21281         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
21283 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21285         PR target/64331
21286         * config/avr/avr.c (context.h, tree-pass.h): Include them.
21287         (avr_pass_data_recompute_notes): New static variable.
21288         (avr_pass_recompute_notes): New class.
21289         (avr_register_passes): New static function.
21290         (avr_option_override): Call it.
21292 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21294         Fix various problems with specs file generation.
21296         PR target/65296
21297         * config.gcc (extra_gcc_objs) [avr]: Remove.
21298         * config/avr/driver-avr.c: Remove file.
21299         * config/avr/t-avr (driver-avr.o): Remove rule.
21300         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
21301         INCLUDES to build.  Depend on TM_H.
21302         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
21303         build warnings.  Fix non-matching types and non-existing %-codes.
21304         (tm.h): Include.
21305         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
21306         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
21307         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
21308         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
21309         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
21310         (LIBGCC_SPEC): Remove definitions.
21312 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21314         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
21315         to create a register in testing mode.
21317 2015-03-03  Martin Liska  <mliska@suse.cz>
21318             Jan Hubicka  <hubicka@ucw.cz>
21320         PR ipa/65263
21321         * cgraph.c (cgraph_node::has_thunk_p): New function.
21322         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
21323         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
21324         (sem_function::merge): Assert is changed.
21326 2015-03-03  Martin Liska  <mliska@suse.cz>
21327             Martin Jambor  <mjambor@suse.cz>
21329         PR ipa/65087
21330         * ipa-icf.c (sem_item_optimizer::execute): Change function
21331         return value to boolean.
21332         (sem_item_optimizer::merge_classes): Likewise.
21333         (ipa_icf_driver): Return TODO_remove_functions in case there's
21334         a merge operation processed.
21335         * ipa-icf.h: Change function return value to boolean.
21337 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21339         PR 65138/target
21340         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
21341         processor type for 64-bit little endian PowerPC.
21343         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21344         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
21345         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
21346         printing built-in mask so it does not pass NULL pointers.
21348         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
21349         -mcpu=powerpc64le.
21351 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
21353         PR target/58158
21354         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
21355         !ISA_HAS_FP_CONDMOVE.
21357 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
21359         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
21360         reload_completed.
21362 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
21364         * doc/invoke.texi (Options for Code Generation Conventions):
21365         Fix URL of DSO paper.
21367 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21369         PR ipa/65130
21370         * ipa-inline.c (check_callers): Looks for recursion.
21371         (inline_to_all_callers): Give up on uninlinable or recursive edges.
21372         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
21373         summary of inline clones.
21374         (do_estimate_growth_1): Fix recursion check.
21376 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21378         PR ipa/64988
21379         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
21380         comdat groups.
21382 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21383             Aldy Hernandez  <aldyh@redhat.com>
21385         PR lto/65276
21386         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
21387         when checking TYPE_BINFO.
21389 2015-03-02  Richard Biener  <rguenther@suse.de>
21391         PR ipa/65270
21392         * ipa-icf-gimple.c: Include builtins.h.
21393         (func_checker::compare_memory_operand): Compare base alignment.
21395 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21397         PR target/65184
21398         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
21399         are never passed by reference.
21401 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21403         PR target/65183
21404         * tree-chkp.c (chkp_check_lower): Don't check against
21405         zero bounds for already instrumented functions.
21406         (chkp_check_upper): Likewise.
21407         (chkp_fini): Clean pass local data to avoid wrong reusage.
21409 2015-02-28  Martin Liska  <mliska@suse.cz>
21410             Jan Hubicka  <hubicka@ucw.cz>
21412         * ipa-icf.c (sem_variable::equals): Improve debug output;
21413         get variable constructor.
21414         (sem_variable::parse): Do not filter out too early; give up on
21415         volatile and register vars.
21416         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
21417         variables.
21418         * ipa-icf.h (sem_variable::init): Do not set ctor.
21419         (sem_variable::ctor): Remove.
21421 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
21423         PR middle-end/65233
21424         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
21426 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21428         * ipa-icf.c: Include stor-layout.h
21429         (sem_function::compare_cgraph_references): Rename to ...
21430         (sem_item::compare_cgraph_references): ... this one.
21431         (sem_variable::equals_wpa): New function
21432         (sem_variable::equals): Do not check stuff already verified by
21433         equals_wpa.
21434         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
21435         * ipa-icf.h (sem_item): Add compare_cgraph_references.
21436         (sem_function): Remove compare_cgraph_references.
21437         (sem_variable): Turns equals_wpa into non-inline.
21439 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21441         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
21442         (sem_item::add_expr): New function.
21443         (sem_function::hash_stmt): Handle operands of most statements.
21444         (sem_variable::get_hash): Hash the actual constructor.
21445         * ipa-icf.h (sem_item): Add add_expr.
21446         (sem_function): Update prototype of hash_stmt
21448 2015-02-28  Martin Liska  <mliska@suse.cz>
21449             Jan Hubicka  <hubicka@ucw.cz>
21451         PR ipa/65245
21452         * ipa-icf-gimple.c (func_checker::compare_function_decl):
21453         Remove.
21454         (func_checker::compare_variable_decl): Skip symtab vars.
21455         (func_checker::compare_cst_or_decl): Update.
21456         * ipa-icf.c (sem_function::parse): Do not consider aliases.
21457         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
21458         use correct symtab predicates.
21459         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
21460         (sem_variable::parse):  Update comment.
21461         (sem_item_optimizer::build_graph): Consider ultimate aliases
21462         for references.
21464 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21466         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
21467         of OBJ_TYPE_REF.
21469 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21471         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
21472         (sem_variable::merge) Likewise.
21474 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21476         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
21477         target; also match flag_ipa_devirt.
21479 2015-03-01  Martin Liska  <mliska@suse.cz>
21480             Jan Hubicka  <hubicka@ucw.cz>
21482         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
21483         Validate variable alignment.
21484         * ipa-icf.c (sem_function::equals_private): Be more precise
21485         about non-common function attributes.
21486         (sem_variable::equals): Likewise.
21488 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21490         PR ipa/65237
21491         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
21492         across COMDAT group boundary.
21494 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21496         PR ipa/65232
21497         * ipa-icf.c (clear_decl_rtl): New function.
21498         (sem_function::merge): Clear RTL before forming alias.
21499         (sem_variable::merge): Clear RTL before forming alias.
21501 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21503         PR ipa/65236
21504         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
21506 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
21508         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
21509         to neon_to_gp<q>.
21511 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21513         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
21514         a typo in the description.
21516 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21518         PR target/64317
21519         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21520         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21521         * lra-constraints.c: Include "params.h".
21522         (EBB_PROBABILITY_CUTOFF): Use
21523         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
21524         (lra_inheritance): Use '<' instead of '<=' for
21525         EBB_PROBABILITY_CUTOFF.
21526         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
21527         Document change.
21529 2015-02-27  Martin Liska  <mliska@suse.cz>
21531         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
21532         vector length condition.
21534 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
21536         * doc/extend.texi (x86 transactional memory intrinsics):
21537         Reorganize discussion of _xbegin.  Clarify that the return
21538         value is a bit mask.  Expand example and move to end of section.
21540 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21541             Aldy Hernandez  <aldyh@redhat.com>
21543         PR rtl-optimization/65220
21544         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
21546 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21548         PR target/65032
21549         * lra-remat.c (update_scratch_ops): New.
21550         (do_remat): Call it.
21551         * lra.c (lra_register_new_scratch_op): New. Take code from ...
21552         (remove_scratches): ... here.
21553         * lra-int.h (lra_register_new_scratch_op): New prototype.
21555 2015-02-27  Marek Polacek  <polacek@redhat.com>
21557         PR c/65040
21558         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
21559         -Wformat-signedness anymore.
21561 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21563         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
21564         function.
21565         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
21567 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21569         * config/s390/s390.c (enum s390_builtin):
21570         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
21571         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
21572         (s390_init_builtins): Generate new builtin functions.
21573         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
21574         (s390_sfpc, s390_efpc): New pattern definitions.
21576 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21578         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
21579         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
21580         (s390_builtin_decls): New array.
21581         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
21582         (s390_builtin_decl): New function.
21583         (TARGET_BUILTIN_DECL): Define macro.
21585 2015-02-27  Richard Biener  <rguenther@suse.de>
21587         PR middle-end/63175
21588         * builtins.c (get_object_alignment_2): Make sure to re-apply
21589         the ANDed mask after recursing to its operand gets us a new
21590         misalignment bit position.
21592 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
21593             Martin Liska  <mliska@suse.cz>
21595         PR bootstrap/65150
21596         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
21597         Use address_matters_p.
21598         (redirect_all_callers, set_addressable): New functions.
21599         (sem_function::merge): Reorganize and fix merging issues.
21600         (sem_variable::merge): Likewise.
21601         (sem_variable::compare_sections): Remove.
21602         * common.opt (fmerge-all-constants, fmerge-constants): Remove
21603         Optimization flag.
21604         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
21605         redirect them.
21606         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
21607         decl is used.
21608         (address_matters_1): New function.
21609         (symtab_node::address_matters_p): New function.
21610         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
21611         check for merged flag.
21612         * cgraph.h (address_matters_p): Declare.
21613         (symtab_node::address_taken_from_non_vtable_p): Remove.
21614         (symtab_node::address_can_be_compared_p): New method.
21615         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
21616         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
21617         Remove.
21618         (comdat_can_be_unshared_p_1) Use address_matters_p.
21619         (update_vtable_references): Fix formating.
21620         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
21621         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
21622         * cgraphclones.c: Preserve merged and icf_merged flags.
21624 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
21626         * doc/extend.texi (Function Attributes): Fix spelling and typos.
21627         (Label Attributes): Likewise.
21628         (Cilk Plus Builtins): Likewise.
21629         (ARC SIMD Built-in Functions): Likewise.
21630         (ARM C Language Extensions (ACLE)): Likewise.
21631         (PowerPC Built-in Functions): Likewise.
21632         (PowerPC Hardware Transactional Memory Built-in Functions):
21633         Likewise.
21635 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21637         PR tree-optimization/65216
21638         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
21639         new stmt and new SSA_NAME for lhs whenever the arguments have
21640         changed and weren't just swapped.  Fix comment typo.
21642         PR tree-optimization/65215
21643         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
21644         for PDP endian targets.
21645         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
21646         Fix up formatting issues.
21647         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
21648         size is smaller than the original, adjust MEM_REF offset by the
21649         difference of sizes.  Use is_gimple_mem_ref_addr instead of
21650         is_gimple_min_invariant test to avoid adding address temporaries.
21652 2015-02-26  Martin Liska  <mliska@suse.cz>
21653             Jan Hubicka  <hubicka@ucw.cz>
21655         PR ipa/64693
21656         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
21657         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
21658         (sem_item_optimizer::process_cong_reduction): Include division by
21659         sensitive references.
21660         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
21661         * ipa-ref.c (ipa_ref::address_matters_p): New function.
21662         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
21664 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
21666         PR target/65192
21667         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
21668         Remove.
21669         * config/avr/avr.c: Same.
21670         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
21671         Refuse any constant address not in 0..0xbf.
21672         * config/avr/avr.md (*mov<mode>, *movsf): Remove
21673         tiny_valid_direct_memory_access_range from insn conditions.
21674         (mov<mode>): Don't special-case expansion of avrtiny addresses.
21676 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
21678         PR target/61142
21679         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
21680         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
21681         * config/sh/predicates.md (const_logical_operand): New predicate.
21682         * config/sh/sh.md: Add new peephole2 patterns.
21684 2015-02-26  Marek Polacek  <polacek@redhat.com>
21686         PR ipa/65008
21687         * ipa-inline.c (early_inliner): Recompute inline parameters.
21689 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21691         PR target/65171
21692         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
21693         instructions with TImode operands are included in the analysis.
21695 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21697         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
21698         of an EDGE_FSM_THREAD.
21700 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21702         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
21704 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
21706         PR debug/46102
21707         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
21709 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21711         PR tree-optimization/65048
21712         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
21713         (thread_through_all_blocks): Call valid_jump_thread_path.
21714         Remove invalid FSM jump-thread paths.
21716 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21718         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
21719         (ipa_write_optimization_summaries): Likewise.
21720         * tree-streamer.h: Include data-streamer.h.
21721         (streamer_mode_table): Declare extern variable.
21722         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
21723         * lto-streamer-out.c (lto_output_init_mode_table,
21724         lto_write_mode_table): New functions.
21725         (produce_asm_for_decls): Call lto_write_mode_table when streaming
21726         offloading LTO.
21727         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
21728         (lto_create_simple_input_block): Add mode_table argument to the
21729         lto_input_block constructors.
21730         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
21731         Likewise.
21732         * data-streamer-in.c (string_for_index): Likewise.
21733         * ipa-inline-analysis.c (inline_read_section): Likewise.
21734         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
21735         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21736         * lto-streamer-in.c (lto_read_body_or_constructor,
21737         lto_input_toplevel_asms): Likewise.
21738         (lto_input_mode_table): New function.
21739         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
21740         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
21741         Use bp_pack_machine_mode.
21742         * real.h (struct real_format): Add name field.
21743         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
21744         (class lto_input_block): Add mode_table member.
21745         (lto_input_block::lto_input_block): Add mode_table_ argument,
21746         initialize mode_table.
21747         (struct lto_file_decl_data): Add mode_table field.
21748         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
21749         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
21750         unpack_ts_decl_common_value_fields,
21751         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
21752         * tree-streamer.c (streamer_mode_table): New variable.
21753         * real.c (ieee_single_format, mips_single_format,
21754         motorola_single_format, spu_single_format, ieee_double_format,
21755         mips_double_format, motorola_double_format,
21756         ieee_extended_motorola_format, ieee_extended_intel_96_format,
21757         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
21758         ibm_extended_format, mips_extended_format, ieee_quad_format,
21759         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
21760         decimal_single_format, decimal_double_format, decimal_quad_format,
21761         ieee_half_format, arm_half_format, real_internal_format): Add name
21762         field.
21763         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
21765 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
21767         PR target/65161
21768         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
21769         reordering for selective scheduling.
21771 2015-02-26  Terry Guo  <terry.guo@arm.com>
21773         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
21774         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
21775         (arm_arch_no_volatile_ce): Declare new global variable.
21776         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
21777         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
21778         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
21779         (TARGET_NO_VOLATILE_CE): New macro.
21780         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
21781         volatile memory access in IT block
21783 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21785         PR tree-optimization/61917
21786         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
21787         that reduc_def_stmt is null.
21789 2015-02-25  Martin Liska  <mliska@suse.cz>
21791         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
21792         hard register variables.
21794 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21796         PR target/64212
21797         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
21798         (symtab::noninterposable_alias): Likewise.
21800 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
21802         PR target/65167
21803         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
21804         bounds registers.
21805         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
21807 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
21809         PR target/64997
21810         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
21811         as split condition; force split via '#' in output pattern.
21813 2015-02-25  Richard Biener  <rguenther@suse.de>
21814             Kai Tietz  <ktietz@redhat.com>
21816         PR tree-optimization/61917
21817         * tree-vect-loop.c (vectorizable_reduction): Allow
21818         vect_internal_def without reduction to exit graceful.
21820 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21822         PR target/65196
21823         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
21824         only with NONDEBUG_INSN_P.
21826 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21828         Use variadic macros with avr-log.c.
21830         * config/avr/avr-protos.h (avr_vdump): New prototype.
21831         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
21832         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
21833         * config/avr/avr-log.c: Adjust comments.
21834         (avr_vdump): New function.
21835         (avr_vadump): Pass caller as 2nd argument instead of format string.
21836         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
21837         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
21839 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
21841         PR lto/64374
21842         * target.def (target_option_stream_in): New target hook.
21843         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
21844         targetm.target_option.post_stream_in if non-NULL.
21845         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
21846         * doc/tm.texi: Updated.
21847         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
21848         function.
21849         (TARGET_OPTION_POST_STREAM_IN): Redefine.
21851 2015-02-24  Jeff Law  <law@redhat.com>
21853         PR target/65117
21854         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
21855         of operand 0 and operand 2.
21856         (zero_cost_loop_end, loop_end): Similarly.
21858 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
21860         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
21861         CXX_MEM_STAT_INFO.
21863 2015-02-24  DJ Delorie  <dj@redhat.com>
21865         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
21866         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
21867         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
21868         instead of hardcoding SImode.
21870 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
21872         * omp-low.c (create_omp_child_function): Tag entrypoint
21873         functions with a special attribute.
21875 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21877         PR target/65058
21878         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
21880 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
21882         PR rtl-optimization/65123
21883         * lra-remat.c (operand_to_remat): Check hard regs in insn
21884         definition too.
21886 2015-02-24  Nick Clifton  <nickc@redhat.com>
21888         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
21889         to the assembler.
21891 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
21893         PR libgomp/64625
21894         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
21895         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
21896         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
21897         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
21898         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
21899         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
21900         (BUILT_IN_GOACC_PARALLEL): Specify as
21901         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
21902         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
21903         * builtin-types.def
21904         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21905         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21906         Remove function types.
21907         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
21908         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21909         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21910         New function types.
21912 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
21914         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
21916 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
21918         PR tree-optimization/65170
21919         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
21920         if val[1] < 0, clear also val[2] and return 3.
21922 2015-02-24  Alan Modra  <amodra@gmail.com>
21924         PR target/65172
21925         * config/rs6000/rs6000.c (get_memref_parts): Only return true
21926         when *base is a reg.  Handle nested plus addresses.  Simplify
21927         pre_modify test.
21929 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
21931         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
21932         use natural alignment when optimizing for size.
21934 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
21936         PR target/65153
21937         * config/sh/sh.md (movsicc_true+3): Remove peephole.
21938         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
21939         * config/sh/sh.c (replace_n_hard_rtx): Remove.
21941 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
21943         PR fortran/63427
21944         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
21945         too big for a wide_int.  Implement missing wrapping operation.
21947 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
21949         PR target/65163
21950         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
21951         instead of const_int 4294901760.
21953 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
21955         * config/avr/t-avr: Fix typo in comment.
21957 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
21959         * doc/rtl.texi (fma): Clarify documentation.
21961 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
21963         PR debug/58123
21964         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
21965         over input_location.
21967 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
21969         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
21970         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
21971         restrict alignments to absolute_biggest_alignment.
21972         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
21973         Define.
21974         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
21975         * doc/tm.texi: Regenerate.
21976         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
21978 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
21980         PR target/64172
21981         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
21983 2015-02-20  Richard Biener  <rguenther@suse.de>
21985         PR tree-optimization/65136
21986         * tree-ssa-propagate.c: Include cfgloop.h.
21987         (replace_phi_args_in): Avoid replacing loop latch edge PHI
21988         arguments with constants.
21990 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
21991             Martin Liska  <mliska@suse.cz>
21993         PR target/63892
21994         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
21995         don't try to create_thunk if stdarg_p.  If
21996         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
21997         redirect_callers if possible.
21998         (sem_item_optimizer::execute): Call unregister_hooks here...
21999         (ipa_icf_driver): ... instead of here.
22001 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22003         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
22004         Mark operand 0 as earlyclobber in 2nd alternative.
22005         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
22006         Write negated shift amount into QI lowpart operand 0 and use it
22007         in the shift step.
22008         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22010 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22012         * cgraph.h (clone_function_name_1): Declare.
22013         * cgraphclones.c (clone_function_name_1): New function.
22014         (clone_function_name): Use it.
22015         * lto-partition.c: Include "stringpool.h".
22016         (must_not_rename, maybe_rewrite_identifier)
22017         (validize_symbol_for_target): New static functions.
22018         (privatize_symbol_name): Use must_not_rename.
22019         (promote_symbol): Call validize_symbol_for_target.
22020         (lto_promote_cross_file_statics): Likewise.
22021         (lto_promote_statics_nonwpa): Likewise.
22023 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
22025         PR target/64452
22026         * config/avr/avr.md (pushhi_insn): New insn.
22027         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
22029 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22030             Jakub Jelinek  <jakub@redhat.com>
22032         * tree-streamer.c (preload_common_nodes): Don't preload
22033         TI_VA_LIST* for offloading.
22034         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
22035         in_lto_p.
22037 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
22039         * config/pa/pa.c (pa_emit_move_sequence): Always force
22040         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
22041         note on insn.
22043         * config/pa/pa.c (pa_reloc_rw_mask): New function.
22044         (TARGET_ASM_RELOC_RW_MASK): Define.
22045         (pa_cannot_force_const_mem): Revert previous change.
22047 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
22048             Jan Hubicka  <hubicka@ucw.cz>
22050         PR ipa/65028
22051         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
22052         across jump functions.
22054 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
22056         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
22058 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
22060         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
22062 2015-02-19  Richard Henderson  <rth@redhat.com>
22064         PR middle-end/65074
22065         * varasm.c (default_binds_local_p_2): Don't test node->definition;
22066         test DECL_EXTERNAL independent of symtab_node.
22068 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
22070         PR lto/65012
22071         * varpool.c (varpool_node::get_constructor): Return early
22072         if this->lto_file_data is NULL.
22074 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22076         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
22077         (rank_for_schedule_debug): Update.
22078         (ready_sort): Make static.  Move sorting logic to ...
22079         (ready_sort_debug, ready_sort_real): New static functions.
22080         (schedule_block): Sort both debug insns and real insns in preparation
22081         for ready list trimming.  Improve debug output.
22082         * sched-int.h (ready_sort): Remove global declaration.
22084 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
22086         * ipa-icf.c (sem_function::equals_private): Adjust.
22087         (sem_function::bb_dict_test): Take a vec<int> * instead of
22088         auto_vec<int>.
22089         * ipa-icf.h (bb_dict_test): Likewise.
22091 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22093         PR gcov-profile/64634
22094         * tree-eh.c (frob_into_branch_around): Fix up typos
22095         in function comment.
22096         (lower_catch): Put eh_seq resulting from EH lowering of
22097         the cleanup sequence after the cleanup rather than before it.
22099 2015-02-18  Tom de Vries  <tom@codesourcery.com>
22101         * common.opt (fstdarg-opt): New option.
22102         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
22103         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22104         (@item -fstdarg-opt): New item.
22106 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22108         PR target/65064
22109         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
22110         for common symbols.
22112 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22114         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
22115         insn-modes.h.
22116         (ALL_HOST_OBJS): Add mkoffload.o.
22117         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
22119 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
22121         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
22122         (compare_virtual_tables): Be smarter about skipping typeinfos;
22123         do sane output on virtual table table mismatch.
22124         (warn_odr): Be ready for forward declarations of enums;
22125         output sane info on base mismatch and virtual table mismatch.
22126         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
22127         when only one type is polymorphic.
22128         (get_odr_type): Fix hashtable corruption.
22129         (dump_odr_type): Dump mangled names.
22131 2015-02-18  Richard Biener  <rguenther@suse.de>
22133         PR tree-optimization/65063
22134         * tree-predcom.c (determine_unroll_factor): Return 1 if we
22135         have replaced looparound PHIs.
22137 2015-02-18  Martin Liska  <mliska@suse.cz>
22139         * lto-streamer.c (lto_streamer_init): Encapsulate
22140         streamer_check_handled_ts_structures with checking macro.
22142 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22144         PR ipa/65087
22145         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
22146         section if !implicit_section.
22147         (cgraph_node::create_version_clone_with_body): Likewise.
22148         * trans-mem.c (ipa_tm_create_version): Likewise.
22150 2015-02-18  Richard Biener  <rguenther@suse.de>
22152         PR tree-optimization/62217
22153         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
22154         into BIVs.
22156 2015-02-18  Marek Polacek  <polacek@redhat.com>
22158         PR sanitizer/65081
22159         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
22160         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
22161         is in range [-16K, -1].  Don't issue run-time error if
22162         (ptr > ptr + offset).
22164 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
22166         * doc/install.texi (nvptx-*-none): New section.
22167         * doc/invoke.texi (Nvidia PTX Options): Likewise.
22168         * config/nvptx/nvptx.opt: Update.
22170         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
22171         (access_check): New functions, copied from
22172         config/i386/intelmic-mkoffload.c.
22173         (main): For non-installed testing, look in all COMPILER_PATHs for
22174         GCC_INSTALL_NAME.
22176         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
22178 2015-02-18  Andrew Pinski  <apinski@cavium.com>
22179             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22181         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
22182         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
22184 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
22186         * ipa-visibility.c (function_and_variable_visibility): Only
22187         check locality if node is not already local.
22188         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22189         call_for_symbol_and_aliases instead of
22190         call_for_symbol_thunks_and_aliases.
22191         (ipa_inline): Likewise.
22192         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22193         first walk aliases.
22194         * ipa.c (symbol_table::remove_unreachable_nodes): Use
22195         call_for_symbol_and_aliases.
22196         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22197         (ipa_propagate_frequency_1): Use it; use opt_for_fn
22198         (ipa_propagate_frequency): Update.
22199         (ipa_profile): Add opt_for_fn gueards.
22201 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
22203         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
22204         * doc/invoke.texi (SH options): Document it.
22205         * config/sh/sh.c (sh_insn_length_adjustment): Check
22206         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
22208 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
22210         * common.opt (fipa-cp-alignment): New.
22211         * ipa-cp.c (ipcp_store_alignment_results): Check
22212         flag_ipa_cp_alignment.
22213         * opts.c (default_options_table): Enable -fipa-cp-alignment for
22214         -O2.
22215         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
22216         * doc/invoke.texi: Document -fipa-cp-alignment.
22218 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
22220         PR target/64793
22221         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
22222         to nil.  Adjust comments.
22224 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
22226         * ipa-visibility.c (function_and_variable_visibility): Only
22227         check locality if node is not already local.
22228         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22229         call_for_symbol_and_aliases instead of
22230         call_for_symbol_thunks_and_aliases.
22231         (ipa_inline): Likewise.
22232         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22233         first walk aliases.
22234         * ipa.c (symbol_table::remove_unreachable_nodes): Use
22235         call_for_symbol_and_aliases.
22236         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22237         (ipa_propagate_frequency_1): Use it; use opt_for_fn
22238         (ipa_propagate_frequency): Update.
22239         (ipa_profile): Add opt_for_fn guards.
22241 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
22243         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
22244         skipping of "strange" tokens.
22246 2015-02-17  Jeff Law  <law@redhat.com>
22248         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
22249         obsolete comment.
22251 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
22253         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
22254         as forcing a HARD_DEP between instructions, thereby
22255         disallowing rewriting to break dependencies.
22257 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22259         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
22260         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
22261         variables in boundary that have no inlitalizer encoded and are
22262         not aliases.
22263         * varasm.c (default_binds_local_p_2): External definitions do not
22264         count as definitions here.
22266 2015-02-16  Jeff Law  <law@redhat.com>
22268         PR tree-optimization/64823
22269         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
22270         statements.
22271         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22272         threading through blocks with PHIs, but no statements.
22273         (thread_through_normal_block): Distinguish between blocks where
22274         we did not process all the statements and blocks with no statements.
22276 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
22277             James Greenhalgh  <james.greenhalgh@arm.com>
22279         PR ipa/64963
22280         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
22281         section if not linkonce.  Fix up formatting.
22282         (cgraph_node::create_version_clone_with_body): Copy section.
22283         * trans-mem.c (ipa_tm_create_version): Likewise.
22285 2015-02-16  Richard Biener  <rguenther@suse.de>
22287         PR tree-optimization/65077
22288         * tree-ssa-structalias.c (get_constraint_for_1): Handle
22289         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
22290         (find_func_aliases): Allow float values to carry pointers again.
22292 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22294         * doc/install.texi (Specific): Reorder targets list to put
22295         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
22296         from the top menu.
22298 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22299             David Edelsohn  <dje.gcc@gmail.com>
22301         PR target/65058
22302         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
22303         mapping class to external variable or function reference.
22304         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
22305         mapping class.
22307 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
22309         PR target/53348
22310         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
22311         ASM_WEAKEN_DECL if defined.
22313 2015-02-16  Richard Biener  <rguenther@suse.de>
22315         PR lto/65015
22316         * varasm.c (default_file_start): For LTO produced units
22317         emit <artificial> as file directive.
22319 2015-02-16  Richard Biener  <rguenther@suse.de>
22321         PR tree-optimization/63593
22322         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
22323         stmts and releasing SSA names until...
22324         (execute_pred_commoning): ... after processing all chains.
22326 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22328         PR ipa/65059
22329         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
22330         external functions.
22332 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
22334         * doc/bugreport.texi: Adjust section titles throughout the file
22335         to use "Title Case".
22336         * doc/extend.texi: Likewise.
22337         * doc/gcov.texi: Likewise.
22338         * doc/implement-c.texi: Likewise.
22339         * doc/implement-cxx.texi: Likewise.
22340         * doc/invoke.texi: Likewise.
22341         * doc/objc.texi: Likewise.
22342         * doc/standards.texi: Likewise.
22343         * doc/trouble.texi: Likewise.
22345 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
22347         * cgraph.h (symtab_node::has_aliases_p): Simplify.
22348         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
22349         * tree.c (lookup_binfo_at_offset): Make static.
22350         (get_binfo_at_offset): Do not shadow offset; add explanatory
22351         comment.
22353 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
22355         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
22356         for all floading point loads and stores except those using a register
22357         index address.
22358         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
22359         to a register.
22361 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22363         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
22364         (do_estimate_growth_1): Record if any uninlinable edge was seen.
22365         (estimate_growth): Handle uninlinable edges correctly.
22366         (check_callers): New.
22367         (growth_likely_positive): Handle aliases correctly.
22369 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22371         * ipa-chkp.c: Use iterate_direct_aliases.
22372         * symtab.c (resolution_used_from_other_file_p): Move inline.
22373         (symtab_node::create_reference): Fix formating.
22374         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22375         (symtab_node::iterate_reference): Move inline.
22376         (symtab_node::iterate_referring): Move inline.
22377         (symtab_node::iterate_direct_aliases): Move inline.
22378         (symtab_node::used_from_object_file_p_worker): Inline into ...
22379         (symtab_node::used_from_object_file_p): ... this one; move inline.
22380         (symtab_node::call_for_symbol_and_aliases): Move inline;
22381         use iterate_direct_aliases.
22382         (symtab_node::call_for_symbol_and_aliases_1): New method.
22383         (cgraph_node::call_for_symbol_and_aliases): Move inline;
22384         use iterate_direct_aliases.
22385         (cgraph_node::call_for_symbol_and_aliases_1): New method.
22386         (varpool_node::call_for_node_and_aliases): Rename to ...
22387         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
22388         use iterate_direct_aliases.
22389         (varpool_node::call_for_symbol_and_aliases_1): New method.
22390         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
22391         (ipa_discover_readonly_nonaddressable_var): Update.
22392         * ipa-devirt.c: Fix formating.
22393         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
22394         Move inline.
22395         (cgraph_node::call_for_symbol_and_aliases): Move inline.
22396         (cgraph_node::call_for_symbol_and_aliases_1): New function..
22397         * cgraph.h (used_from_object_file_p_worker): Remove.
22398         (resolution_used_from_other_file_p): Move inline.
22399         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22400         (symtab_node::iterate_reference): Move inline.
22401         (symtab_node::iterate_referring): Move inline.
22402         (symtab_node::iterate_direct_aliases): Move inline.
22403         (symtab_node::used_from_object_file_p_worker): Inline into ...
22404         (symtab_node::used_from_object_file_p): Move inline.
22405         * tree-emutls.c (ipa_lower_emutls): Update.
22406         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
22407         (varpool_node::call_for_node_and_aliases): Remove.
22409 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
22411         PR tree-optimization/62209
22412         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
22413         op == range->exp, insert seq and gimplified code after labels
22414         instead of after the phi.
22416 2015-02-13  Jeff Law  <law@redhat.com>
22418         PR bootstrap/65060
22419         Revert my change for tree-optimization/64823.
22421 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22423         PR tree-optimization/65053
22424         * tree-ssa-phiopt.c (value_replacement): When moving assign before
22425         cond, either reset VR on lhs or set it to phi result VR.
22427 2015-02-13  Jeff Law  <law@redhat.com>
22429         PR tree-optimization/64823
22430         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
22431         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22432         threading through blocks with PHIs, but no statements.
22433         (thread_through_normal_block): Distinguish between blocks where
22434         we did not process all the statements and blocks with no statements.
22436         PR rtl-optimization/47477
22437         * match.pd (convert (plus/minus (convert @0) (convert @1): New
22438         simplifier to narrow arithmetic.
22440 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
22442         PR ipa/65028
22443         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
22444         polymorphic call info when type is not known to be preserved.
22446 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
22448         PR ipa/65028
22449         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
22450         (inline_call): Use it.
22452 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
22454         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
22455         GOMP_DEVICE_NVIDIA_PTX.
22457 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22459         PR ipa/65034
22460         * stmt.c (emit_case_nodes): Use void_type_node instead of
22461         NULL_TREE as LABEL_DECL type.
22463 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
22465         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22466         constraints.
22467         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
22468         symbolic references to data to be forced to constant memory on the
22469         SOM target.
22471 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22473         PR tree-optimization/65002
22474         * tree-cfg.c (pass_data_fixup_cfg): Don't update
22475         SSA on start.
22476         * tree-sra.c (some_callers_have_no_vuse_p): New.
22477         (ipa_early_sra): Reject functions whose callers
22478         assume function is read only.
22480 2015-02-13  Richard Biener  <rguenther@suse.de>
22482         PR lto/65015
22483         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
22484         for LTO produced CUs.
22486 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
22488         PR tree-optimization/64705
22489         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
22490         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
22491         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
22492         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
22493         expand_simple_operations.
22495 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22496             Richard Henderson  <rth@redhat.com>
22498         PR rtl/32219
22499         * cgraphunit.c (cgraph_node::finalize_function): Set definition
22500         before notice_global_symbol.
22501         (varpool_node::finalize_decl): Likewise.
22502         * varasm.c (default_binds_local_p_2): Rename from
22503         default_binds_local_p_1, add weak_dominate argument.  Use direct
22504         returns instead of assigning to local variable.  Unify varpool and
22505         cgraph paths via symtab_node.  Reject undef weak variables before
22506         testing visibility.  Reorder tests for simplicity.
22507         (default_binds_local_p): Use default_binds_local_p_2.
22508         (default_binds_local_p_1): Likewise.
22509         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
22510         via symtab_node.
22511         (default_elf_asm_output_external): Emit visibility when specified.
22513 2015-02-13  Alan Modra  <amodra@gmail.com>
22515         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
22516         code setting up r11 for out-of-line fp restore.
22518 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
22520         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
22521         (muser-mode): Likewise.
22523 2015-02-13  Alan Modra  <amodra@gmail.com>
22525         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
22526         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
22528 2015-02-12  David Howells  <dhowells@redhat.com>
22530         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
22531         warning.
22532         * tree-ssa-uninit.c (dump_predicates): Likewise.
22533         * opts.c (print_filtered_help): Likewise.
22535 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22537         * dwarf2out.c (output_die): Use "%s", name instead of name to
22538         avoid -Wformat-security warning.
22540         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
22541         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22542         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
22543         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22545 2015-02-12  Jason Merrill  <jason@redhat.com>
22547         * common.opt (-flifetime-dse): New.
22549 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22551         PR sanitizer/65019
22552         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
22554         PR tree-optimization/65014
22555         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
22556         use original second operand of arg0 or arg1 instead of
22557         that adjusted by STRIP_NOPS.
22559 2015-02-11  Jeff Law  <law@redhat.com>
22561         PR target/63347
22562         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
22563         that needs to be queued, just queue it for a single cycle.
22565 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
22567         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
22568         bodies of thunks; comment on why.
22569         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
22570         symbols are extern.
22572 2015-02-11  Richard Henderson  <rth@redhat.com>
22574         PR sanitize/65000
22575         * tree-eh.c (mark_reachable_handlers): Mark source and destination
22576         regions of __builtin_eh_copy_values.
22578 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22580         PR middle-end/65003
22581         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
22582         ultimate alias is MEM with SYMBOL_REF satisfying
22583         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
22584         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
22586 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
22588         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
22589         "diagnostic-core.h".
22590         (main): Initialize progname, and call diagnostic_initialize.
22592         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
22593         instead of __OPENMP_TARGET__.
22595         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
22596         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
22597         hard-coding PTX_ID.
22599 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
22601         * doc/sourcebuild.texi (pie_enabled): Document.
22603 2015-02-11  Martin Liska  <mliska@suse.cz>
22605         PR ipa/64813
22606         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
22607         a return value for call to a function that is noreturn.
22609 2015-02-11  Richard Biener  <rguenther@suse.de>
22611         PR lto/65015
22612         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
22613         and -fresolution.
22615 2015-02-11  Andrew Pinski  <apinski@cavium.com>
22617         PR target/64893
22618         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
22619         Change the first argument type to size_type_node and add another
22620         size_type_node.
22621         (aarch64_simd_expand_builtin): Handle the new argument to
22622         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
22623         print an out when the first two arguments are not
22624         nonzero integer constants.
22625         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
22626         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
22628 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22630         PR target/61925
22631         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
22632         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
22633         (ix86_set_current_function): Rewritten.
22634         (ix86_add_new_builtins): Temporarily clear current_target_pragma
22635         when creating builtin fndecls.
22637 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22639         PR ipa/65005
22640         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
22641         function.
22642         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
22643         have no comdat group.
22644         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
22645         (lto_output_varpool_node): Always output alias info.
22646         (output_refs): Output refs of boundary aliases, too.
22647         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
22648         (output_symtab): Output call eges in thunks in boundary.
22649         (get_alias_symbol): Remove.
22650         (input_node, input_varpool_node): Do not special case weakrefs.
22651         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
22652         alias and thunks targets in the boundary; do not take removed symbols
22653         from their comdat groups.
22654         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
22655         (cgraph_node::global_info): Remove.
22656         (cgraph_node::rtl_info): Look through aliases and thunks.
22657         * cgrpah.h (global_info): Remove.
22658         (non_local_p): Remove.
22660 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22661             Sandra Loosemore  <sandra@codesourcery.com>
22663         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
22664         to inline asm.  List dialects in proper order.
22666 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22667             Sandra Loosemore  <sandra@codesourcery.com>
22669         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
22671 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22673         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
22674         modified) reference to Solaris.
22676 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
22678         * doc/extend.texi (Extended Asm): Fix typos.
22680 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
22682         PR sanitizer/65004
22683         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
22685 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
22687         PR target/64661
22688         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
22689         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
22690         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
22691         * config/sh/constraints.md (Ara, Add): New constraints.
22692         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
22693         predicates.
22694         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
22695         atomic_mem_operand_0.  Don't use force_reg on the memory address.
22696         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
22697         Sra constraint.  Convert to insn_and_split.  Add workaround for
22698         PR 64974.
22699         (atomic_compare_and_swap<mode>_hard): Copy to
22700         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
22701         Use atomic_mem_operand_0 predicate.
22702         (atomic_compare_and_swap<mode>_soft_gusa,
22703         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
22704         AraAdd constraints.
22705         (atomic_compare_and_swap<mode>_soft_tcb,
22706         atomic_compare_and_swap<mode>_soft_imask,
22707         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
22708         atomic_mem_operand_0 predicate and SraSdd constraints.
22709         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
22710         constraint.
22711         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
22712         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
22713         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
22714         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
22715         force_reg on the memory address.
22716         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
22717         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
22718         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
22719         atomic_mem_operand_1 predicate and Sra constraint.
22720         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
22721         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22722         Use atomic_mem_operand_1 predicate.
22723         (atomic_<fetchop_name><mode>_hard): Copy to
22724         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22725         Use atomic_mem_operand_1 predicate.
22726         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
22727         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22728         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
22729         insn_and_split.  Use atomic_mem_operand_1 predicate.
22730         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
22731         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
22732         Use atomic_mem_operand_1 predicate.
22733         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
22734         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22735         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
22736         in generated insn with original mem operand before emitting the insn.
22737         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
22738         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
22739         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
22740         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
22741         Use atomic_mem_operand_1 predicate and AraAdd constraints.
22742         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
22743         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
22744         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
22745         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
22746         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
22747         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
22748         atomic_not_fetch<mode>_soft_tcb,
22749         atomic_<fetchop_name>_fetch<mode>_soft_imask,
22750         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
22751         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
22752         Use atomic_mem_operand_1 predicate and SraSdd constraints.
22754 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
22756         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
22757         and 3 earlyclobber operands.
22759 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22761         * common.opt (fstack-reuse): Mark as optimization.
22763 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22765         PR ipa/64982
22766         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
22768 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
22770         PR tree-optimization/64326
22771         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
22773 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
22775         PR gcov-profile/61889
22776         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
22778 2015-02-10  Richard Biener  <rguenther@suse.de>
22780         PR tree-optimization/64995
22781         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
22782         value we use is final.
22783         (visit_reference_op_store): Always valueize op.
22784         (visit_use): Properly valueize vuses.
22786 2015-02-10  Richard Biener  <rguenther@suse.de>
22788         PR tree-optimization/64909
22789         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
22790         pass a scalar-stmt count estimate to the cost model.
22791         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
22793 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
22795         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
22796         enabled by default together with var-tracking.
22798 2015-02-10  Nick Clifton  <nickc@redhat.com>
22800         * config/rl78/rl78.c: Remove DIV attribute code accidentally
22801         included in previous rl78 commit.
22803 2015-02-10  Richard Biener  <rguenther@suse.de>
22805         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
22806         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
22807         return the bitpack.
22809 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22811         PR gcov-profile/61889
22812         * config.in: regenerate.
22813         * configure.in: Likewise.
22814         * configure.ac: Check for ftw.h.
22815         * gcov-tool.c: Check for ftw.h before using nftw.
22817 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22819         PR lto/64076
22820         * ipa-visibility.c (update_visibility_by_resolution_info): Only
22821         assert when not in lto mode.
22823 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22825         * ira-color.c (setup_left_conflict_sizes_p): Simplify
22826         initialization/assignment of conflict_size.
22828 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
22830         PR ipa/64978
22831         * ipa-cp.c (gather_caller_stats): Skip thunks.
22832         (propagate_constants_topo): Skip aliases.
22834 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
22836         PR target/64761
22837         * config/sh/sh.c (sh_option_override): Don't change
22838         -freorder-blocks-and-partition to -freorder-blocks even when
22839         unwinding is enabled.
22840         (sh_can_follow_jump): Return false if the followee jump is
22841         a crossing jump when -freorder-blocks-and-partition is specified.
22842         * config/sh/sh.md (*jump_compact_crossing): New insn.
22844 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
22845             Kaz Kojima  <kkojima@gcc.gnu.org>
22847         PR target/64761
22848         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
22849         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
22850         (sh_can_redirect_branch): Rename to ...
22851         (sh_can_follow_jump): ... this.  Constify argument types.
22852         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
22853         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
22854         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
22855         * doc/tm.texi: Regenerate.
22857 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22859         PR sanitizer/64981
22860         * builtins.c (expand_builtin): Call targetm.expand_builtin
22861         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
22863 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22865         PR ipa/61548
22866         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
22868 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22870         PR ipa/63566
22871         * ipa-icf.c (set_local): New function.
22872         (sem_function::merge): Use it.
22874 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22876         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
22877         (add_type_duplicate): Fix comparison of BINFOs.
22879 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22881         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
22882         on getting VOID pointer.
22884 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22886         PR target/64979
22887         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
22888         va_list escapes.
22890 2015-02-09  Richard Biener  <rguenther@suse.de>
22892         * genmatch.c (replace_id): Copy expr_type.
22894 2015-02-09  Richard Biener  <rguenther@suse.de>
22896         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
22897         (streamer_write_tree_bitfields): Declare.
22898         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
22899         properly unpack padding.
22900         (unpack_value_fields): Inline ...
22901         (streamer_read_tree_bitfields): ... here.
22902         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
22903         and properly add padding bits.
22904         (streamer_pack_tree_bitfields): Fold into ...
22905         (streamer_write_tree_bitfields): ... this new function,
22906         exposing the bitpack object.
22907         * lto-streamer-out.c (lto_write_tree_1): Call
22908         streamer_write_tree_bitfields.
22910 2015-02-09  Richard Biener  <rguenther@suse.de>
22912         PR tree-optimization/54000
22913         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
22914         (struct ivopts_data): Add loop_loc member.
22915         (tree_ssa_iv_optimize_loop): Dump loop location.
22916         (create_new_ivs): Likewise, also dump number of IVs generated.
22918 2015-02-09  Martin Liska  <mliska@suse.cz>
22920         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
22921         just if not yet registered.
22922         (ipa_icf_generate_summary): Register callgraph hooks.
22924 2015-02-08  Andrew Pinski  <apinski@cavium.com>
22926         * config/aarch64/aarch64.c (gty_dummy): Delete.
22928 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22930         PR ipa/63566
22931         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
22932         (cgraph_node::local_p): Remove thunk related FIXME.
22934 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22936         PR ipa/63566
22937         * i386.c (ix86_function_regparm): Look through aliases to see if callee
22938         is local and optimized.
22939         (ix86_function_sseregparm): Likewise; also use target's SSE math
22940         settings; error out instead of silently generating wrong code
22941         on mismatches.
22942         (init_cumulative_args): Look through aliases.
22944 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22946         PR ipa/63566
22947         * ipa-split.c (execute_split_functions): Split if function has aliases.
22949 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22951         PR ipa/63566
22952         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
22953         aliases before trying to expand it.
22954         (cgraph_node::expand_thunk): Fix formating.
22956 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
22958         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
22959         (Using Assembly Language with C): Expand introduction.
22960         (Basic Asm): Copy-edit.  Add more information about uses of
22961         basic asm.
22962         (Extended Asm): Copy-edit.  Document new escape syntax and
22963         %l[label] syntax.
22964         (Global Reg Vars): Copy-edit.
22965         (Local Reg Vars): Likewise.
22967 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
22969         PR debug/2714
22970         PR bootstrap/64256
22971         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
22972         (DBX_CONTIN_CHAR): Define.
22974 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
22975             Brian Rzycki  <b.rzycki@samsung.com>
22977         PR tree-optimization/64878
22978         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
22979         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
22980         Stop recursion at loop phi nodes after having visited a loop phi node.
22982 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
22984         * toplev.c (process_options): Change flag_ipa_ra before creating
22985         optimization_{default,current}_node.
22987         PR ipa/64896
22988         * cgraphunit.c (cgraph_node::expand_thunk): If
22989         restype is not is_gimple_reg_type nor the thunk_fndecl
22990         returns aggregate_value_p, set restmp to a temporary variable
22991         instead of resdecl.
22993 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
22995         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
22997 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22999         PR target/64205
23000         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
23001         add a general secondary reload handler for SDmode, unless we have
23002         both read/write support for SDmode.
23004 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23006         PR middle-end/64937
23007         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
23008         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
23009         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
23010         1 before, push it to abstract_vec.
23011         (dwarf2out_abstract_function): Adjust caller.  Don't call
23012         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
23013         DECL_ABSTRACT_P flags for all abstract_vec elts.
23015 2015-02-06  Renlin Li  <renlin.li@arm.com>
23017         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
23018         complex gimple.
23019         * tree-ssa.c (execute_update_addresses_taken): Likewise.
23021 2015-02-06  Jeff Law  <law@redhat.com>
23023         PR target/64889
23024         * config/h8300/h8300.c (push): New argument "in_prologue".
23025         Pass "in_prologue" along to "F".
23026         (h8300_push_pop): Corresponding changes.
23027         (h8300_expand_prologue): Likewise.
23028         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
23030 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23032         PR rtl-optimization/64957
23033         PR debug/64817
23034         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
23035         IOR rather than for AND.
23037 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
23039         PR target/62631
23040         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
23041         of shift-add and (add + shift) operations.  Rename local variable.
23043 2015-02-05  Jeff Law  <law@redhat.com>
23045         PR target/17306
23046         * config/h8300/constraints.md (U): Correctly dectect
23047         "eightbit_data" memory addresses.
23048         * config/h8300/h8300.c (eightbit_constant_address_p): Also
23049         handle (const (plus (symbol_ref (x)))) where x is declared
23050         as an 8-bit data memory address.
23051         * config/h8300/h8300.md (call, call_value): Correctly detect
23052         "funcvec" functions.
23054         PR target/43264
23055         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
23056         24 to 28 bits for the H8/300.
23058 2015-02-06  Alan Modra  <amodra@gmail.com>
23060         PR target/64876
23061         * config/rs6000/rs6000.c (chain_already_loaded): New function.
23062         (rs6000_call_aix): Use it.
23064 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
23066         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
23067         check.
23069 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
23071         * config/h8300/constraints.md ("U" constraint): Use strict
23072         variant of REG_OK_FOR_BASE_P after reload has started.
23074 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
23076         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
23077         define to zero if !TARGET_NEON.
23078         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
23080 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23081             Trevor Saunders  <tsaunders@mozilla.com>
23083         PR ipa/61548
23084         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
23086 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23088         PR ipa/61548
23089         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
23090         when removing varpool nodes.
23092 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23094         PR ipa/61548
23095         * varpool.c (varpool_node::remove): Fix order of variables.
23097 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23099         PR ipa/64686
23100         * ipa-inline.c (inline_small_functions): Fix ordering issue between
23101         speculation resolution and key updates.
23103 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23105         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
23106         about not letting any speculative edges unupdated.
23108 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23110         PR gcov/64123
23111         * gcov-io.c (gcov_var): Export.
23113 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23115         PR middle-end/64922
23116         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
23117         edges that become speculative.
23119 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
23121         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
23122         or DW_LANG_Fortran08.
23123         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
23124         DW_LANG_Fortran08.
23125         (gen_compile_unit_die): Handle "GNU Fortran2003" and
23126         "GNU Fortran2008" language strings.
23127         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
23128         * langhooks.h (lang_GNU_Fortran): New prototype.
23129         * langhooks.c (lang_GNU_Fortran): New function.
23130         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
23131         lang_GNU_Fortran.
23133 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23135         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
23136         (RTX_OK_FOR_OLO10_P): Likewise.
23138 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23140         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
23142 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23144         PR middle-end/64922
23145         * gimple.c: Include gimple-ssa.h.
23146         (maybe_remove_unused_call_args): New function.
23147         * gimple.h (maybe_remove_unused_call_args): Declare.
23148         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
23149         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
23150         * gimple-fold.c (gimple_fold_call): Likewise.
23152 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
23154         PR rtl-optimization/64905
23155         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
23156         pointer alignment if it isn't needed.
23158 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
23160         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
23161         cortex-a72.cortex-a53.
23162         * config/aarch64/aarch64-tune.md: Regenerate.
23163         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
23165 2015-02-04  Nick Clifton  <nickc@redhat.com>
23167         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
23168         inside a MEM.
23170 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
23172         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
23173         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
23174         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
23175         of DEF_BUILTIN.
23176         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
23177         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
23178         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
23179         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
23180         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
23181         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
23182         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
23183         * tree-core.h (enum built_in_function): In between
23184         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
23185         for builtins that use DEF_BUILTIN_CHKP macro.
23187 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
23189         PR debug/64817
23190         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
23191         operands for tcc_comparison exprs.  Fix typos.
23193         PR debug/64817
23194         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
23195         of two XORs that have an intervening AND or IOR.
23197         PR debug/64817
23198         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
23199         simplification of XOR of AND to not allocate new rtx before
23200         committing to a simplification.
23202 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23204         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
23205         manual swaps in all peepholes.
23207 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23209         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
23210         of manual swapping implementation.
23211         (aarch64_expand_vec_perm_const_1): Likewise.
23213 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
23215         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
23216         (generic_addrcost_table): Remove NAMED_PARAM.
23217         (cortexa57_addrcost_table): Likewise.
23218         (xgene1_addrcost_table): Likewise.
23219         (generic_regmove_table): Likewise.
23220         (cortexa53_regmove_table): Likewise.
23221         (xgene1_regmove_table): Likewise.
23222         (generic_vector_table): Likewise.
23223         (cortexa57_vector_table): Likewise.
23224         (xgene1_vector_table): Likewise.
23225         (generic_tunings): Likewise.
23226         (cortexa53_tunings): Likewise.
23227         (cortexa57_tunings): Likewise.
23228         (xgene1_tunings): Likewise.
23230 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
23232         * config/arm/arm-cores.def: Add cortex-a72 and
23233         cortex-a72.cortex-a53.
23234         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
23235         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
23236         * config/arm/arm-tune.md: Regenerate.
23237         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
23238         "cortex-a72.cortex-a53".
23239         * doc/invoke.texi (ARM Options/-mtune): Likewise.
23241 2015-02-04  Nick Clifton  <nickc@redhat.com>
23243         PR target/64408
23244         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
23245         of accepted codes.
23246         (nonimmediate_di_operand): Likewise.
23248         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
23249         prefixes of known F5 using MSP430 MCUs.
23251 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23253         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
23254         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
23255         instead of __builtin_sqrt.
23257 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
23259         * varasm.c (do_assemble_alias): Follow transparent alias
23260         chain for target.
23261         (default_assemble_visibility): Follow transparent alias
23262         chain for decl name.
23264 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23266         PR middle-end/62103
23267         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
23268         to compute size of referenced value in the constant case.
23270 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23272         PR rtl-optimization/64756
23273         * cse.c (invalidate_dest): New function.
23274         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
23275         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
23276         invalidate and do not record it.
23278 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
23280         PR target/64660
23281         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
23282         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
23283         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
23284         atomic_nand<mode>_soft_tcb): New insns.
23285         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
23286         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
23287         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
23288         Split into atomic_not_fetchsi_hard if operands[0] is unused.
23289         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
23290         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23291         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
23292         atomic_not<mode>_hard if operands[0] is unused.
23293         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
23294         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
23295         if operands[0] is unused.
23296         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
23297         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
23298         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
23299         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23300         unused.
23301         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
23302         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23303         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
23304         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
23305         if operands[0] is unused.
23306         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
23307         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
23308         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
23309         atomic_nand_fetchsi_hard if operands[0] is unused.
23310         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
23311         atomic_nand<mode>_hard if operands[0] is unused.
23312         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
23313         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
23314         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
23315         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23316         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
23317         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
23318         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
23319         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23320         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
23321         atomic_not<mode>_hard if operands[0] is unused.
23322         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
23323         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23324         unused.
23325         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23326         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23327         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
23328         atomic_nand<mode>_hard if operands[0] is unused.
23329         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23330         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23332 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
23334         PR jit/64810
23335         * Makefile.in (GCC_OBJS): Add gcc-main.o.
23336         * gcc-main.c: New file, containing "main" taken from gcc.c.
23337         * gcc.c (do_self_spec): Free decoded_options.
23338         (class driver): Move declaration to gcc.h.
23339         (main): Move declaration and implementation to new file
23340         gcc-main.c.
23341         (driver_get_configure_time_options): New function.
23342         * gcc.h (class driver): Move this declaration here, from
23343         gcc.c.
23344         (driver_get_configure_time_options): New declaration.
23346 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
23348         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
23349         cross-module inlining.
23350         * cgraph.h (cgraph_node): Add flag merged.
23351         * ipa-icf.c (sem_function::merge): Maintain it.
23353 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
23355         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
23356         instead of OBJECT_P.
23358 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
23360         PR target/62631
23361         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
23362         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
23363         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
23364         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
23366 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23368         PR other/63504
23369         * combine.c (reg_n_sets_max): New variable.
23370         (can_change_dest_mode, reg_nonzero_bits_for_combine,
23371         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
23372         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
23373         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
23374         (rest_of_handle_combine): Initialize reg_n_sets_max.
23376 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
23378         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
23379         if some always_inline was inlined, apply changes before inlining
23380         heuristically.
23382 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
23384         PR jit/64810
23385         * config/arm/arm.c (arm_option_override): Set
23386         arm_selected_arch/cpu/tune to NULL on entry.
23388 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
23389             Andrew Pinski  <pinskia@gcc.gnu.org>
23390             Jakub Jelinek  <jakub@gcc.gnu.org>
23392         PR target/64231
23393         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
23394         integer typing for small model. Use IN_RANGE.
23396 2015-02-02  Richard Biener  <rguenther@suse.de>
23398         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
23399         * tree-vrp.c (vrp_valueize_1): Likewise.
23401 2015-02-02  Alan Modra  <amodra@gmail.com>
23403         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23404         than mem for toc_restore.
23405         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
23406         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
23407         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
23409 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
23411         PR target/64047
23412         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
23413         explicit default options.
23415 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
23417         PR ipa/64872
23418         * ipa-utils.c (ipa_merge_profiles): Add release argument.
23419         * ipa-icf.c (sem_function::merge): Do not release body when merging.
23420         * ipa-utils.h (ipa_merge_profiles): Update prototype.
23422 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
23424         PR debug/64817
23425         * cfgexpand.c (deep_ter_debug_map): New variable.
23426         (avoid_deep_ter_for_debug): New function.
23427         (expand_debug_expr): If TERed SSA_NAME is in
23428         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
23429         instead of trying to expand SSA_NAME's def stmt.
23430         (expand_debug_locations): When expanding debug bind
23431         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
23432         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
23433         value.
23434         (pass_expand::execute): Call avoid_deep_ter_for_debug on
23435         all debug bind stmts.  Delete deep_ter_debug_map after
23436         expand_debug_location if non-NULL and clear it.
23438 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
23440         PR target/64851
23441         * config/sh/sync.md (atomic_fetch_notsi_hard,
23442         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
23443         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
23444         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
23445         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
23446         atomic_not_fetch<mode>_soft_imask): New insns.
23448 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23450         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
23451         (rank_for_schedule_debug): Split from ...
23452         (rank_for_schedule): ... this.
23453         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
23454         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
23456 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23458         * doc/md.texi (Machine Constraints): Alphabetize table by target.
23459         * doc/extend.texi (x86 Variable Attributes): Move section to
23460         correct alphabetization after renaming.
23461         (x86 Type Attributes): Likewise.
23462         (Target Builtins): Re-alphabetize menu.
23463         (x86 Built-in Functions): Move section to correct alphabetization
23464         after renaming.
23465         (x86 transactional memory intrinsics): Likewise.
23466         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
23467         and x86 Windows Options in table and menu.
23468         (x86 Options): Move section to correct alphabetization after
23469         renaming.
23470         (x86 Windows Options): Likewise.
23472 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23474         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
23475         preferred names of the architecture and its 32- and 64-bit
23476         variants.
23477         * doc/invoke.texi: Likewise.
23478         * doc/md.texi: Likewise.
23480 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23482         PR target/64882
23483         * config/i386/predicates.md (address_no_seg_operand): Reject
23484         non-CONST_INT_P operands in invalid mode.
23486 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23488         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
23489         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
23490         * config/i386/predicates.md (address_no_seg_operand): Call
23491         address_operand with VOIDmode.
23492         (vsib_address_operand): Ditto.
23493         (address_mpx_no_base_operand): Ditto.
23494         (address_mpx_no_index_operand): Ditto.
23496 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23498         PR target/64688
23499         * lra-constraints.c (original_subreg_reg_mode): New.
23500         (simplify_operand_subreg): Try to simplify subreg of const.  Use
23501         original_subreg_reg_mode for it.
23502         (swap_operands): Update original_subreg_reg_mode.
23503         (curr_insn_transform): Set up original_subreg_reg_mode.
23505 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23507         PR target/64617
23508         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
23509         function.
23510         (process_alt_operands): Use it.
23511         (curr_insn_transform): Check the optional reload pseudo class is
23512         ok for the mode.
23514 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
23516         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
23517         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
23518         prototype.
23519         * toplev.h (init_asm_output): Update comment on use of
23520         UNKNOWN_LOCATION with fatal_error.
23521         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
23522         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
23523         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
23524         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
23525         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
23526         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
23527         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
23528         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
23529         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
23530         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
23531         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
23532         fatal_error changed to pass input_location as first argument.
23534 2015-01-30  Martin Liska  <mliska@suse.cz>
23536         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
23537         in #pragma GCC diagnostic guards.
23539 2015-01-30  Richard Biener  <rguenther@suse.de>
23541         PR tree-optimization/64829
23542         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
23543         not add a widening conversion pattern but hand off extra
23544         widenings to callers.
23545         (vect_recog_widen_mult_pattern): Handle extra widening produced
23546         by vect_handle_widen_op_by_const.
23547         (vect_recog_widen_shift_pattern): Likewise.
23548         (vect_pattern_recog_1): Remove excess vertical space in dumping.
23549         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23550         (vect_init_vector_1): Likewise.
23551         (vect_get_vec_def_for_operand): Likewise.
23552         (vect_finish_stmt_generation): Likewise.
23553         (vectorizable_load): Likewise.
23554         (vect_analyze_stmt): Likewise.
23555         (vect_is_simple_use): Likewise.
23557 2015-01-29  Jeff Law  <law@redhat.com>
23559         * combine.c (try_combine): Fix typo in comment.
23561 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
23563         PR target/64580
23564         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
23565         (rs6000_stack_info): Add assert.
23566         (rs6000_output_savres_externs): New function, split off from...
23567         (rs6000_output_function_prologue): ... here.  Do not call it for
23568         thunks.
23570 2015-01-29  Jeff Law  <law@redhat.com>
23572         PR target/15184
23573         * combine.c (try_combine): If I0 is a memory load and I3 a store
23574         to a related address, increase the "goodness" of doing a 4-insn
23575         combination with I0-I3.
23576         (make_field_assignment): Handle SUBREGs in the ior+and case.
23578 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
23580         PR tree-optimization/64746
23581         * tree-if-conv.c (mask_exists): New function.
23582         (predicate_mem_writes): Save created mask with given size for further
23583         use.
23584         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
23585         (ifcvt_repair_bool_pattern): Collect all statements that are root
23586         of bool pattern and use iterative algorithm to remove multiple uses
23587         of predicates, display number of required iterations.
23589 2015-01-29  Richard Biener  <rguenther@suse.de>
23591         PR tree-optimization/64853
23592         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
23593         stmt will get simulated again.
23594         * tree-ssa-ccp.c (valueize_op_1): Likewise.
23596 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23598         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
23599         return_in_pc.  Remove redundant assignments.
23600         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
23601         (arm_expand_epilogue): Don't compare boolean with true in if condition.
23603 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
23605         * config/i386/i386.c (ix86_mode_after): Make static.
23607 2015-01-29  Richard Biener  <rguenther@suse.de>
23609         PR tree-optimization/64844
23610         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
23611         dump cost model analysis.
23612         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23613         Do not register adjusted load/store costs here.
23615 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23616             Uros Bizjak  <ubizjak@gmail.com>
23618         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
23619         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
23620         using x86_use_pseudo_pic_reg.
23621         * config/i386/i386.c (ix86_conditional_register_usage): Remove
23622         support for fixed PIC register.
23623         (ix86_use_pseudo_pic_reg): Not static any more.
23625 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23627         PR middle-end/64805
23628         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
23629         to avoid error in cgraph node verification.
23631 2015-01-29  Marek Polacek  <polacek@redhat.com>
23633         * doc/standards.texi: Reflect that the default for C is gnu11.
23635 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23637         PR target/64761
23638         * reorg.c (switch_text_sections_between_p): New function.
23639         (relax_delay_slots): Call it when testing if the jump insn
23640         is removable.  Use targetm.can_follow_jump when testing if
23641         the conditional branch can follow an unconditional jump.
23643 2015-01-27  Caroline Tice  <cmtice@google.com>
23645         Committing VTV Cywin/Ming patch for Patrick Wollgast
23646         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
23647         if -fvtable-verify=preinit/std is used.
23648         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
23649         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
23650         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
23651         if -fvtable-verify=preinit/std is used.
23652         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23653         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
23654         if -fvtable-verify=preinit/std is used.
23655         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
23656         * config/i386/mingw32.h (LIB_SPEC): Likewise.
23657         * varasm.c (assemble_variable): Add code to properly set the comdat
23658         section and name for the .vtable_map_vars section in case the
23659         target is PE or COFF.
23661 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23663         PR ipa/64801
23664         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
23665         make sane BB profile.
23666         (cgraph_node::expand_thunk): Make sane BB profile.
23667         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
23668         * cgraph.h (init_lowered_empty_function): Update prototype.
23669         * config/i386/i386.c (make_resolver_func): Update call.
23670         * predict.c (gate): Disable branch prediction pass if
23671         profile is already there.
23673 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23675         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
23676         * opth-gen.awk: Likewise.
23677         * common.opt: Mark flag_fp_contract_mode as Optimization.
23679 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23681         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
23682         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
23684 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
23686         PR target/64659
23687         * config/sh/predicates.md (atomic_arith_operand,
23688         atomic_logical_operand): Remove.
23689         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
23690         (atomic_arith_operand_0): New predicate.
23691         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
23692         Use atomic_arith_operand_0 for input values.
23693         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23694         atomic_compare_and_swap<mode>_soft_gusa,
23695         atomic_compare_and_swap<mode>_soft_tcb,
23696         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
23697         arith_reg_operand instead of register_operand.
23698         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
23699         atomic_arith_operand_0 for newval input.
23700         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23701         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
23702         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
23703         arith_reg_operand instead of register_operand.
23704         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
23705         fetchop_predicate_1, fetchop_constraint_1_llcs,
23706         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
23707         fetchop_constraint_1_imask): New code iterator attributes.
23708         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
23709         register_operand.  Use fetchop_predicate_1.
23710         (atomic_fetch_<fetchop_name>si_hard,
23711         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
23712         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
23713         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
23714         and arith_reg_operand instead of register_operand.  Use
23715         fetchop_predicate_1, fetchop_constraint_1_gusa.
23716         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
23717         and arith_reg_operand instead of register_operand.  Use
23718         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
23719         to allow R0 usage.
23720         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
23721         and arith_reg_operand instead of register_operand.  Use
23722         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
23723         to allow R0 usage.
23724         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
23725         register_operand.  Use atomic_logical_operand_1.
23726         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23727         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
23728         arith_reg_operand instead of register_operand.
23729         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
23730         Use arith_reg_dest and arith_reg_operand instead of register_operand.
23731         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
23732         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
23733         register_operand.  Use fetchop_predicate_1.
23734         (atomic_<fetchop_name>_fetchsi_hard,
23735         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
23736         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23737         fetchop_constraint_1_llcs.
23738         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
23739         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23740         fetchop_constraint_1_gusa.
23741         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
23742         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23743         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
23744         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
23745         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23746         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
23747         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
23748         register_operand.  Use atomic_logical_operand_1.
23749         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23750         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
23751         arith_reg_operand instead of register_operand.
23752         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
23753         arith_reg_operand instead of register_operand.  Use logical_operand
23754         and K08.  Adjust asm sequence to allow R0 usage.
23755         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
23756         arith_reg_operand instead of register_operand.  Use logical_operand
23757         and K08.
23759 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23761         PR other/63504
23762         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
23763         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
23764         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
23765         only get_full_len HOST_WIDE_INTs from get_val () array rather than
23766         all bits in *val_wide.
23768 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
23770         * varpool.c (tls_model_names): Fix names.
23771         (varpool_node::dump): Dump tls- prefix for tls models.
23773 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
23774             Bernd Schmidt  <bernds@codesourcery.com>
23775             Nathan Sidwell  <nathan@codesourcery.com>
23777         * config/nvptx/mkoffload.c: New file.
23778         * config/nvptx/t-nvptx: Add build rules for it.
23779         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
23780         (extra_programs): Add mkoffload.
23781         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
23782         function.
23783         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
23785 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
23787         PR middle-end/64809
23788         * cfgexpand.c (reorder_operands): Skip debug gimples.
23790 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
23792         PR tree-optimization/64277
23793         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
23794         range info when possible to refine estimation.
23796 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23798         PR tree-optimization/64718
23799         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
23800         be a 16bit unsigned integer when n->range is 16.
23801         (bswap_replace): Convert src to that type if necessary for all bswap
23802         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
23803         set in pass_optimize_bswap::execute ().
23805 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
23807         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
23808         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
23809         integer and floating point variants.
23810         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
23812 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
23814         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
23815         for all vector modes.
23817 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23819         PR bootstrap/64612
23820         * doc/sourcebuild.texi (comdat_group): Document.
23822 2015-01-28  Terry Guo  <terry.guo@arm.com>
23824         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
23826 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
23828         * toplev.c (print_version): Add param "show_global_state", and
23829         only print GGC and plugin information if it is true.
23830         (init_asm_output): Pass in "true" for the new param when calling
23831         print_version.
23832         (process_options): Likewise.
23833         (toplev::main): Likewise.
23834         * toplev.h (print_version): Add new param to decl.
23836 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23838         PR ipa/60871
23839         PR ipa/64139
23840         * tree.c (lookup_binfo_at_offset): New function.
23841         (get_binfo_at_offset): Use it.
23843 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23845         PR ipa/64282
23846         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
23847         on vtable being vtable.
23849 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23851         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
23852         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
23853         -mhotpatch= option.
23854         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
23855         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
23856         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
23857         Renamed.
23858         (s390_hotpatch_trampoline_halfwords_max): Renamed.
23859         (s390_hotpatch_hw_max): New name.
23860         (s390_hotpatch_trampoline_halfwords): Renamed.
23861         (s390_hotpatch_hw_before_label): New name.
23862         (get_hotpatch_attribute): Removed.
23863         (s390_hotpatch_hw_after_label): New name.
23864         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
23865         attribute.
23866         (s390_attribute_table): Ditto.
23867         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
23868         (s390_function_num_hotpatch_hw): New name.
23869         Remove special handling of inline functions and hotpatching.
23870         Return number of nops before and after the function label.
23871         (s390_can_inline_p): Removed.
23872         (s390_asm_output_function_label): Emit a configurable number of nops
23873         after the function label.
23874         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
23875         (TARGET_CAN_INLINE_P) Removed.
23876         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
23878 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23879             Jiong Wang  <jiong.wang@arm.com>
23881         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
23882         of scratch reg.
23883         (cb<optab><mode>1): Likewise.
23884         * config/aarch64/iterators.md (bcond): New define_code_attr.
23886 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23888         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
23889         memory accesses.
23891 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23893         * config/s390/s390.c (s390_register_move_cost): Increase costs for
23894         FPR->GPR moves.
23896 2015-01-27  Richard Biener  <rguenther@suse.de>
23898         * tree-vrp.c (update_value_range): Intersect the range with
23899         old recorded SSA name range information.
23901 2015-01-27  Nick Clifton  <nickc@redhat.com>
23903         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
23904         BC, DE and HL registers directly, not via AX.
23905         When decrementing the stack pointer by a large amount, transfer SP
23906         into AX and perform the subtraction there.
23907         (rl78_expand_epilogue): Perform the inverse of the above
23908         enhancements.
23910 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23912         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
23914 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23915             Yury Gribov  <y.gribov@samsung.com>
23917         PR ubsan/64741
23918         * ubsan.c (ubsan_source_location): Refactor code.
23919         (ubsan_type_descriptor): Update type size. Refactor code.
23921 2015-01-27  Richard Biener  <rguenther@suse.de>
23923         PR tree-optimization/56273
23924         PR tree-optimization/59124
23925         PR tree-optimization/64277
23926         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
23927         from the first VRP pass.
23929 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23931         PR ipa/64776
23932         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
23933         handle the first argument in the same loop as all the other arguments.
23935         PR rtl-optimization/61058
23936         * jump.c (cleanup_barriers): Update basic block boundaries
23937         if BLOCK_FOR_INSN is non-NULL on PREV.
23939 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
23941         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
23942         bounds narrowing, already instrumented calls and calls to
23943         not instrumentable functions.
23945 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23947         PR tree-optimization/64807
23948         * wide-int.cc (wi::divmod_internal): Clear
23949         b_dividend[dividend_blocks_needed].
23951 2015-01-26  DJ Delorie  <dj@redhat.com>
23953         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
23954         volatile memory references.
23956 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
23958         PR target/49263
23959         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
23960         remove_insn.
23961         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
23962         shifts if it already fits into K08.
23964 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
23966         PR ipa/64730
23967         * ipa-inline.c (inline_small_functions): Print "unknown" even
23968         if edge->call_stmt is non-NULL, but has builtins or unknown
23969         location.
23971         PR middle-end/64421
23972         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
23973         with asterisk, skip the first character.
23975 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
23977         PR target/64806
23978         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
23979         order change.
23981 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
23983         PR target/64795
23984         * config/i386/i386.md (*movdi_internal): Also check operand 0
23985         to determine TYPE_LEA operand.
23986         (*movsi_internal): Ditto.
23988 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
23990         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
23991         OPTION_MASK_QUAD_MEMORY_ATOMIC.
23993 2015-01-26  Renlin Li  <renlin.li@arm.com>
23995         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
23996         the comment.
23997         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
23998         for higher part.
24000 2015-01-26  Richard Biener  <rguenther@suse.de>
24002         PR middle-end/64764
24003         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
24004         combining two BIT_AND_EXPR predicates.
24006 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
24008         PR bootstrap/64754
24009         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
24011 2015-01-26  Terry Guo  <terry.guo@arm.com>
24013         * config/arm/arm.c (arm_file_start): Update the assignment of
24014         Tag_ABI_HardFP_use.
24016 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
24018         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
24019         pipeline model.
24020         config/arm/arm.md: Include the new Cortex-A57 model.
24021         (generic_sched): Don't use generic_sched when tuning for
24022         Cortex-A57.
24024 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
24025             Uros Bizjak  <ubizjak@gmail.com>
24027         * config/i386/i386.c (get_builtin_code_for_version): Add
24028         support for BMI and BMI2 multiversion functions.
24030 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24032         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
24033         (extract_bit_field): Likewise.
24034         (extract_low_bits): Likewise.
24035         (expand_mult): Likewise.
24036         (expand_mult_highpart_adjust): Likewise.
24038 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
24040         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
24041         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
24042         * config/i386/i386.c (processor_model): Add
24043         M_INTEL_COREI7_BROADWELL.
24044         (arch_names_table): Add "broadwell".
24046 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
24048         PR target/49263
24049         PR target/53987
24050         PR target/64345
24051         PR target/59533
24052         PR target/52933
24053         PR target/54236
24054         PR target/51244
24055         * config/sh/sh-protos.h
24056         (sh_extending_set_of_reg::can_use_as_unextended_reg,
24057         sh_extending_set_of_reg::use_as_unextended_reg,
24058         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
24059         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
24060         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
24061         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
24062         (sh_treg_insns): New class.
24063         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
24064         (scope_counter): New class.
24065         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
24066         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
24067         sh_extending_set_of_reg::can_use_as_unextended_reg,
24068         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
24069         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
24070         sh_split_treg_set_expr): New functions.
24071         (addsubcosts): Handle treg_set_expr.
24072         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
24073         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
24074         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
24075         (sh_insn_operands_modified_between_p): Make non-static.
24076         * config/sh/predicates.md (zero_extend_movu_operand): Allow
24077         simple_mem_operand in addition to displacement_mem_operand.
24078         (zero_extend_operand): Don't allow zero_extend_movu_operand.
24079         (treg_set_expr, treg_set_expr_not_const01,
24080         arith_reg_or_treg_set_expr): New predicates.
24081         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
24082         arith_or_int_operand instead of logical_operand.  Convert to
24083         insn_and_split.  Try to optimize constant operand in splitter.
24084         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
24085         (*tstqi_t_zero): Delete.
24086         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
24087         (tstsi_t_and_not): Delete.
24088         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
24089         Convert to insn_and_split.
24090         (unnamed split, tstsi_t_zero_extract_xor,
24091         tstsi_t_zero_extract_subreg_xor_little,
24092         tstsi_t_zero_extract_subreg_xor_big): Delete.
24093         (*tstsi_t_shift_mask): New insn_and_split.
24094         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
24095         to recombine with surrounding insns when splitting.
24096         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
24097         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
24098         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
24099         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
24100         (*cbranch_div0s: Delete.
24101         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24102         Try to recombine with surrounding insns when splitting.  Add operand
24103         order variants.
24104         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
24105         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
24106         *addc_r_r_msb, *addc_2r_msb): Delete.
24107         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
24108         order variant.
24109         (*addc_negreg_t): New insn_and_split.
24110         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24111         Try to recombine with surrounding insns when splitting.
24112         Add operand order variants.
24113         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
24114         insn_and_split patterns.
24115         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
24116         surrounding insns when splitting.
24117         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
24118         (*rotcl): Likewise.  Add zero_extract variant.
24119         (*ashrsi2_31): New insn_and_split.
24120         (*negc): Convert to insn_and_split.  Use treg_set_expr.
24121         (*zero_extend<mode>si2_disp_mem): Update comment.
24122         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
24123         condition.
24124         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
24125         with surrounding insns when splitting.
24126         (any_treg_expr_to_reg): New insn_and_split.
24127         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
24128         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
24129         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
24130         *zero_extract_2): New single bit zero extract patterns.
24131         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
24132         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
24133         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
24134         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
24135         set destination.
24136         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
24137         register_operand for set source.
24139 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
24141         * i386.opt (prefetch_sse): New targetsave.
24142         * i386.c (ix86_function_specific_save): Save prefetch_sse.
24143         (ix86_function_specific_restore): Restore prefetch_sse and initialize
24144         ix86_cost/ix86_tune_cost.
24146 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24148         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
24149         Support the JIT by using 0 as the language type.
24151 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
24153         PR target/64317
24154         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
24155         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
24156         (mark_regno_live, process_bb_lives): Pass new parameter value to
24157         make_hard_regno_born.
24159 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24161         PR rtl-optimization/63637
24162         PR rtl-optimization/60663
24163         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
24164         if elt->cost is MAX_COST for ASM_OPERANDS.
24165         (find_sets_in_insn): Fix up comment typo.
24166         (cse_insn): Don't set src_volatile for all non-volatile
24167         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
24168         or with "memory" clobber.  Set elt->cost to MAX_COST
24169         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
24170         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
24172 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
24174         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
24175         alternative 1.
24177 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
24179         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
24180         libgcc/config/i386/elf-lib.h.
24182 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24184         PR driver/64737
24185         * gcc.c (print_configuration): Don't print a blank line at the end
24186         here...
24187         (run_attempt): ... but here unstead.
24189         PR middle-end/64734
24190         * omp-low.c (scan_sharing_clauses): Don't ignore
24191         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
24192         on target data/update constructs.
24194 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24196         PR target/50928
24197         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
24198         (DEBUG_RELOAD): Removed define.
24199         (m32c_limit_reload_class): Enable traces with if DEBUG0.
24200         (m32c_function_arg): Added a type cast.
24201         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
24202         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
24203         * config/m32c/bitops.md (andqi3_16): Likewise.
24204         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
24205         (push_a01_l): Likewise.
24207 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24209         PR jit/64721
24210         * main.c (main): Construct toplev instances with init_signals=true.
24211         * toplev.c (general_init): Add param "init_signals", and use it to
24212         conditionalize the calls to signal and host_hooks.extra_signals.
24213         (toplev::toplev): Add param "init_signals".
24214         (toplev::main): When invoking general_init, pass m_init_signals
24215         to control whether signal-handlers are installed.
24216         * toplev.h (toplev::toplev): Add param "init_signals".
24217         (toplev::m_init_signals): New field.
24219 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24221         PR jit/64722
24222         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
24223         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
24224         latter may be affected by the former (e.g. on i686).
24226 2015-01-23  Martin Liska  <mliska@suse.cz>
24228         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
24229         false positive during profiledbootstrap.
24231 2015-01-23  Tom de Vries  <tom@codesourcery.com>
24233         PR libgomp/64672
24234         * lto-opts.c (lto_write_options): Output non-explicit conservative
24235         -fno-openacc.
24236         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
24237         (append_compiler_options): Pass -fopenacc through.
24239 2015-01-23  Tom de Vries  <tom@codesourcery.com>
24241         PR libgomp/64707
24242         * lto-opts.c (lto_write_options): Output non-explicit conservative
24243         -fno-openmp.
24244         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
24245         (append_compiler_options): Pass -fopenmp through.
24247 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24249         PR debug/64511
24250         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
24251         GTY markup.
24253         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
24254         * diagnostic.def (DK_ICE_NOBT): New kind.
24255         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
24256         like DK_ICE, but never print backtrace.
24257         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
24258         (internal_error_no_backtrace): New function.
24259         * gcc.c (execute): Use internal_error_no_backtrace instead of
24260         internal_error.
24262 2015-01-22  Jeff Law  <law@redhat.com>
24264         PR target/52076
24265         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
24266         improve code density for small immediate to memory case.
24267         (insv): Better handle bitfield assignments when the field is
24268         being set to all ones.
24269         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
24270         operand predicate.
24272 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24273             Jakub Jelinek  <jakub@redhat.com>
24275         PR middle-end/64729
24276         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
24277         for !TARGET_LIBC_PROVIDES_SSP version and
24278         -fstack-protector-{all,strong,explicit} otherwise.
24279         * config/freebsd.h (LINK_SSP_SPEC): Handle
24280         -fstack-protector-{strong,explicit}.
24282 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
24283             H.J. Lu  <hongjiu.lu@intel.com>
24285         PR ipa/64694
24286         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
24287         heap.
24289 2015-01-22  Wei Mi  <wmi@google.com>
24291         PR rtl-optimization/64557
24292         * dse.c (record_store): Call get_addr for mem_addr.
24293         (check_mem_read_rtx): Likewise.
24295 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24297         * fold-const.c (const_binop): Add early return for non-tcc_binary.
24299 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
24301         * toplev.c (init_local_tick): Process the failure when read
24302         fails for random_seed.
24304         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
24305         'pretty_name' to avoid memory overflow.
24307 2015-01-22  Richard Biener  <rguenther@suse.de>
24309         PR middle-end/64728
24310         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
24311         abnormal coalescing on undefined SSA names.
24313 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
24315         PR target/64688
24316         PR target/64477
24317         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
24318         for alternative 3.
24319         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
24321 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
24323         PR middle-end/63325
24324         * fold-const.c (fold_checksum_tree): Don't include value of
24325         expr->decl_with_vis.symtab_node in the checksum.
24327 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24329         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
24331 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24333         PR driver/64690
24334         * gcc.c (insert_comments): New function.
24335         (try_generate_repro): Call it.
24336         (append_text): Removed.
24338 2015-01-22  Richard Biener  <rguenther@suse.de>
24340         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
24341         with IL incompatible options.  Properly honor user optimize
24342         attributes.
24344 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
24346         PR rtl-optimization/64682
24347         * combine.c (distribute_notes): When moving a death note for
24348         a register that is set in the new I2, make sure to put it
24349         before that new I2.
24351 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
24353         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
24354         not TARGET_DEFAULT.
24356 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
24358         PR debug/64511
24359         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
24360         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
24361         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
24363         PR sanitizer/64706
24364         * doc/invoke.texi (-fsanitize=vptr): Document.
24366         PR rtl-optimization/62078
24367         * dse.c: Include cfgcleanup.h.
24368         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
24369         anything call purge_all_dead_edges and cleanup_cfg at the end
24370         of the pass.
24372 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
24374         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
24375         edges.
24377 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24379         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
24380         decl attribute.
24382 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24383             Tejas Belagod <Tejas.Belagod@arm.com>
24385         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
24386         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
24387         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
24388         Removed.
24390 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24391             Tejas Belagod <Tejas.Belagod@arm.com>
24393         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
24394         (aarch64_reverse_mask): New decls.
24395         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
24396         (insn_count): New mode_attr.
24397         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
24398         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
24399         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
24400         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
24401         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
24402         (aarch64_simd_st4): New patterns.
24403         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
24404         (aarch64_reverse_mask): New functions.
24406 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
24408         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
24409         Declare.
24410         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
24411         addressing modes for BE.
24412         (aarch64_print_operand): Add 'R' specifier.
24413         (aarch64_simd_disambiguate_copy): Delete.
24414         (aarch64_simd_emit_reg_reg_move): New function.
24415         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
24416         in define_splits for structural moves.
24417         (mov<mode>): Use less restrictive predicates.
24418         (*aarch64_mov<mode>): Simplify and only allow for LE.
24419         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
24421 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
24423         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
24425 2015-01-21  Richard Henderson  <rth@redhat.com>
24427         PR target/64669
24428         * ccmp.c (used_in_cond_stmt_p): Remove.
24429         (expand_ccmp_expr): Don't use it.
24431 2015-01-21  Nick Clifton  <nickc@redhat.com>
24433         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
24434         PARALLELs.
24436 2015-01-21  Richard Biener  <rguenther@suse.de>
24438         PR middle-end/64313
24439         * tree-core.h (builtin_info, builtin_info_type): Turn from
24440         an object with two arrays into an array of an object with
24441         decl and two flags, implicit_p and declared_p.
24442         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24443         set_builtin_decl, set_builtin_decl_implicit_p,
24444         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
24445         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
24446         * builtins.c (builtin_info): Adjust.
24447         * gimplify.c (gimplify_addr_expr): References to builtins
24448         that have been declared by the user makes them eligible for
24449         use by the compiler.  Call set_builtin_decl_implicit_p on them.
24451 2015-01-20  Jeff Law  <law@redhat.com>
24453         PR target/59946
24454         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
24455         allow pc-relative addresses in operand predicates or constraints.
24457 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
24459         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
24460         neon on aarch32 processors for stringops.
24462 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24464         PR ipa/63576
24465         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
24467 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24469         PR lto/45375
24470         * ipa-inline.c: Include lto-streamer.h
24471         (report_inline_failed_reason): Output source file differences and
24472         flags on optimization/target node mismatch.
24473         (can_inline_edge_p): Consider caller to be the outer inline function;
24474         be less restrictive about matching opimize and optimize_size attributes.
24475         (inline_account_function_p): Break out from ...
24476         (inline_small_functions): ... here.
24477         * ipa-inline-transform.c (clone_inlined_nodes): Use
24478         inline_account_function_p.
24479         (inline_call): Use optimize attribution; use inline_account_function_p.
24480         (inline_transform): Use opt_for_fn.
24481         * ipa-inline.h (inline_account_function_p): Declare.
24483 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
24485         PR debug/64663
24486         * dwarf2out.c (decl_piece_node): Don't put bitsize into
24487         mode if bitsize <= 0.
24488         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
24489         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
24490         sizes and positions.
24492 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
24494         * config/nios2/nios2.c (nios2_asm_file_end): Implement
24495         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
24496         needed.
24497         (TARGET_ASM_FILE_END): Define.
24499 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24501         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
24502         (struct tune_params): Use the enum.
24503         * arm.c (arm_*_tune): Update.
24504         (arm_option_override): Update.
24506 2015-01-20  Richard Biener  <rguenther@suse.de>
24508         PR ipa/64684
24509         * ipa-reference.c (add_static_var): Inline ...
24510         (analyze_function): ... here after splitting out from ...
24511         (is_proper_for_analysis): ... this.
24513 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
24515         PR target/64149
24516         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
24517         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
24518         replace the conditional with it's true branch.
24519         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
24520         (arm_lra_p): Remove.
24522 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
24524         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
24526 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24528         * config/tilegx/mul-tables.c: Move symtab.h include after
24529         coretypes.h include.
24530         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
24531         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
24532         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
24533         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
24534         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24536 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
24538         PR bootstrap/64676
24539         Revert:
24540         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24542         PR rtl-optimization/64081
24543         * loop-iv.c (def_pred_latch_p): New function.
24544         (latch_dominating_def): Allow specific cases with non-single
24545         definitions.
24546         (iv_get_reaching_def): Likewise.
24547         (check_complex_exit_p): New function.
24548         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24549         with exits not executing on any iteration.
24551 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24553         PR lto/45375
24554         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
24555         to set branch cost.
24557 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24559         PR lto/45375
24560         * i386.c (gate): Check flag_expensive_optimizations and
24561         optimize_size.
24562         (ix86_option_override_internal): Drop optimize_size condition
24563         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
24564         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
24565         MASK_PREFER_AVX128.
24566         (ix86_avx256_split_vector_move_misalign,
24567         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
24568         * sse.md (all uses of TARGET_PREFER_AVX128): Add
24569         optimize_insn_for_speed_p check.
24571 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
24573         * config/mips/mips.h (FP_ASM_SPEC): New define.
24574         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
24575         instead.
24577 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
24579         PR target/53988
24580         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
24581         nullptr for insn when reaching the first insn.
24582         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
24583         (sh_insn_operands_modified_between_p): Add nullptr check.
24584         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
24585         sign extending mem load if the insn contains any UNSPEC or
24586         UNSPEC_VOLATILE.
24588 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24590         * params.def (inline-unit-growth): Drop to 15%.
24591         * invoke.texi (inline-unit-growth): Document change.
24593 2015-01-19  Martin Liska  <mliska@suse.cz>
24595         PR ipa/64668
24596         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
24597         function for second argument of OBJ_TYPE_REF.
24599 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24601         PR ipa/64218
24602         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
24603         whether function is an alias.
24605 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24607         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
24608         cases.
24610 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
24612         PR rtl-optimization/64671
24613         * lra-remat.c (operand_to_remat): Don't consider jump and call
24614         insns.
24616 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
24618         PR target/59828
24619         * config/rs6000/default64.h: Include rs6000-cpus.def.
24620         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
24621         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
24622         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
24623         and POWER8.
24624         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
24625         POWER8.
24626         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
24627         pseudo-op to specify assembler dialect.
24629 2015-01-19  Martin Liska  <mliska@suse.cz>
24631         PR ipa/64664
24632         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
24633         Handle safe potentially removed nodes during filtering.
24635 2015-01-19  Martin Liska  <mliska@suse.cz>
24637         * doc/extend.texi (no_icf): Add new attribute description.
24638         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
24639         where the pass attempts to merge a function with no_icf attribute.
24641 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24643         PR target/64532
24644         * doc/md.texi (ARM Options): Document register constraints.
24646 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
24647             Andrew Pinski  <apinski@cavium.com>
24649         PR target/64304
24650         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
24651         (ashl<mode>3): Don't expand if operands[2] is not constant.
24653 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24655         PR target/64448
24656         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
24657         Match xor-and-xor RTL pattern.
24659 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24661         PR rtl-optimization/64081
24662         * loop-iv.c (def_pred_latch_p): New function.
24663         (latch_dominating_def): Allow specific cases with non-single
24664         definitions.
24665         (iv_get_reaching_def): Likewise.
24666         (check_complex_exit_p): New function.
24667         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24668         with exits not executing on any iteration.
24670 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
24672         * common.opt (fgraphite): Fix a typo.
24674 2015-01-19  Felix Yang  <felix.yang@huawei.com>
24676         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
24677         pattern.
24678         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
24679         uminp, smax_nanp, smin_nanp): New builtins.
24680         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
24681         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
24682         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
24683         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
24684         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
24685         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
24686         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
24687         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
24688         vpminnms_f32): Rewrite using builtin functions.
24690 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
24692         PR libgomp/64625
24693         * omp-low.c (offload_symbol_decl): Remove variable.
24694         (get_offload_symbol_decl): Remove function.
24695         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
24696         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
24697         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
24698         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
24699         BUILT_IN_GOACC_UPDATE don't pass it at all.
24701 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24703         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
24704         callers.
24706 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24708         * ipa-chkp.c (chkp_produce_thunks): Add early param
24709         to split thunks production into two passes.  Keep
24710         'always_inline' function bodies after the first pass.
24711         (pass_data_ipa_chkp_early_produce_thunks): New.
24712         (pass_ipa_chkp_early_produce_thunks): New.
24713         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
24714         chkp_produce_thunks signature.
24715         (make_pass_ipa_chkp_early_produce_thunks): New.
24716         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
24717         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
24718         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
24720 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24722         * cgraph.c (cgraph_node::dump): Dump profile flags.
24724 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
24726         PR target/64652
24727         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
24728         reg appear first in the parallel.
24730 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24732         * ipa-reference.c (set_reference_optimization_summary,
24733         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
24734         disabled.
24735         (ignore_module_statics): New static var.
24736         (propagate_bits): If ipa-reference is disabled, do not look into local
24737         properties.
24738         (analyze_function): Disable analysis when ipa_reference is disabled.
24739         (generate_summary): Do not dump when reference is disabled;
24740         collect vars accessed from functions with ipa-reference disabled.
24741         (get_read_write_all_from_node): When ipa-reference is disabled, use the
24742         node flags.
24743         (gate): Enable for LTO.
24744         (ignore_edge_p): New function.
24745         (propagate): Skip functions w/o ipa-reference analysis.
24746         * optc-save-gen.awk: Handle optimize_debug correctly.
24747         * opth-gen.awk: Likewise.
24748         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
24749         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
24750         fira-share-save-slots, fira-share-spill-slots,
24751         fmodulo-sched-allow-regmoves, fpartial-inlining,
24752         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
24753         ftracer, ftree-parallelize-loops, fassociative-math,
24754         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
24755         Optimization
24756         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
24757         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
24758         Optimization.
24759         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
24760         Fix for IPA.
24762 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24764         PR ipa/64378
24765         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
24766         flag correctly.
24767         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
24769 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
24771         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
24772         Remove duplicate option listings.
24774 2015-01-18  Felix Yang  <felix.yang@huawei.com>
24776         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
24777         (autofdo_source_profile::get_callsite_total_count,
24778         function_instance::get_function_instance_by_decl,
24779         string_table::get_index, string_table::get_index_by_decl,
24780         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
24781         Fix comment typos. Reformatting and minor code rearrangement.
24783 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24785         * config/rs6000/rs6000.md (probe_stack): Delete.
24786         (probe_stack_address): New.
24788 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24790         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
24791         to test for 32-bit ABIs, not !TARGET_POWERPC64.
24793 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24795         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
24796         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
24797         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
24798         snafu.
24799         (rs6000_libcall_value): Use the new function.
24801 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
24803         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
24805 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24807         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
24808         implement a more precise life analysis for it during backward scan.
24810 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
24812         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
24814 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
24816         PR rtl-optimization/52773
24817         * calls.c (emit_library_call_value): When pushing arguments use
24818         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
24819         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
24820         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
24822 2015-01-17  Jeff Law  <law@redhat.com>
24824         PR rtl-optimization/32790
24825         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
24826         not ZERO_EXTEND in SET_DESTs.
24828 2015-01-17  Alan Modra  <amodra@gmail.com>
24830         * cprop.c (do_local_cprop): Revert last change.
24832 2015-01-16  DJ Delorie  <dj@redhat.com>
24833             Nick Clifton  <nickc@redhat.com>
24835         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
24836         (addhi3_real): Likewise.  Fix [HL+0] syntax.
24837         (subqi3_real): Likewise.
24838         (subhi3_real): Likewise.
24839         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
24840         (cbranchhi4_real): Likewise.
24841         (cbranchhi4_real_inverted): Likewise.
24842         (cbranchsi4_real_lt): Likewise.
24843         (cbranchsi4_real_ge): Likewise.
24844         (cbranchsi4_real_ge): Likewise.
24845         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
24846         (sub<mode>3_virt): Likewise.
24847         (cbranchqi4_virt): Likewise.
24848         (cbranchhi4_virt): Likewise.
24849         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
24850         always use '[reg+imm]' even when imm is zero.
24851         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
24852         (rl78_general_operand): New.
24853         (rl78_nonimmediate_operand): New.
24854         (rl78_nonfar_operand): Use them.
24855         (rl78_nonfar_nonimm_operand): Likewise.
24856         (rl78_stack_based_mem): Fix.
24857         * config/rl78/constraints.md (Ibqi): New.
24858         (IBqi): New.
24859         (Wsa): New.
24860         (Wsf): New.
24861         (Cs1): Fix.
24862         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
24863         (iorqi3): Likewise.
24864         (xorqi3): Likewise.
24865         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
24867         * config/rl78/constrains (Qs8): New constraint.
24868         * config/rl78/rl78.c (rl78_flags_already_set): New function.
24869         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
24870         * config/rl78/rl78-real.md (update_Z): New attribute.
24871         Update patterns to set it.
24872         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
24873         shorter compare and branch sequence can be used.
24874         (cbranchhi4_real): Likewise.
24875         (cbranchhi4_real_inverted): Likewise.
24877         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
24878         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
24879         address space.
24880         * config/rl78/rl78.c (rl78_get_name_encoding): New.
24881         (rl78_option_override): Allow -mes0 only if C.
24882         (characterize_address): Support subregs of symbol_refs.
24883         (rl78_addr_space_address_mode): Move.  Add __near.
24884         (rl78_far_p): Likewise.
24885         (rl78_addr_space_pointer_mode): Likewise.
24886         (rl78_as_legitimate_address): Likewise.
24887         (rl78_addr_space_subset_p): Likewise.
24888         (rl78_addr_space_convert): Likewise.
24889         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
24890         symbols with -mes0.
24891         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
24892         addressing.
24893         (rl78_alloc_physical_registers_op1): Change logic to prefer
24894         symbol[BC] addressing.
24895         (frodata_section): New.
24896         (rl78_asm_init_sections): Initialize it.
24897         (rl78_select_section): Put __far readonly symbols in .frodata.
24898         (rl78_make_type_far): New.
24899         (rl78_insert_attributes): Force all readonly symbols to be
24900         __far when -mes0.
24901         (rl78_asm_out_integer): New.
24902         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
24903         * config/rl78/rl78.opt (-mes0): New.
24905         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
24906         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24907         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24908         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
24909         (rl78_saddr_p): New.
24910         (rl78_output_aligned_common): New.
24911         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
24912         (rl78_handle_saddr_attribute): New.
24913         (rl78_handle_naked_attribute): New.
24914         (rl78_attribute_table): Add saddr.
24915         (rl78_print_operand_1): Don't print '!' on saddr operands.
24916         (rl78_print_operand_1): Strip encodings.
24917         (rl78_sfr_p): New.
24918         (rl78_strip_name_encoding): New.
24919         (rl78_attrlist_to_encoding): New.
24920         (rl78_encode_section_info): New.
24921         (rl78_asm_init_sections): New.
24922         (rl78_select_section): New.
24923         (rl78_output_labelref): New.
24924         (rl78_output_aligned_common): New.
24925         (rl78_asm_out_integer): New.
24926         (rl78_asm_ctor_dtor): New.
24927         (rl78_asm_constructor): New.
24928         (rl78_asm_destructor): New.
24930         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
24931         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
24932         (transcode_memory_rtx): Update.
24933         (rl78_expand_epilogue): Use A_REG instead of 0.
24935 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24937         * config/arm/arm-protos.h (struct tune_params): New field
24938         sched_autopref_queue_depth.
24939         * config/arm/arm.c (sched-int.h): Include header.
24940         (arm_first_cycle_multipass_dfa_lookahead_guard,)
24941         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
24942         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
24943         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
24944         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
24945         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
24946         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
24947         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
24948         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
24949         * config/arm/t-arm (arm.o): Update.
24950         * haifa-sched.c (update_insn_after_change): Update.
24951         (rank_for_schedule): Use auto-prefetcher model, if requested.
24952         (autopref_multipass_init): New static function.
24953         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
24954         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
24955         variable for debug dumps.
24956         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
24957         (autopref_multipass_dfa_lookahead_guard): New global function that
24958         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
24959         (init_h_i_d): Update.
24960         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
24961         * sched-int.h (enum autopref_multipass_data_status): New const enum.
24962         (autopref_multipass_data_): Structure for auto-prefetcher data.
24963         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
24964         (struct _haifa_insn_data:autopref_multipass_data): New field.
24965         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
24966         (autopref_multipass_dfa_lookahead_guard): Declare.
24968 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24970         * rtlanal.c (get_base_term): Handle SCRATCH.
24972 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24974         * config/aarch64/aarch64.c
24975         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
24976         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24977         * config/arm/arm.c
24978         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
24979         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24981 2015-01-17  Alan Modra  <amodra@gmail.com>
24983         * cprop.c (do_local_cprop): Disallow replacement of fixed
24984         hard registers.
24986 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24988         PR target/62066
24989         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
24990         early return 0.
24992 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24994         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
24995         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
24997 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24999         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
25000         * config/arm/thumb1.md: ... Here.
25002 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25004         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
25005         TImode for TARGET_32BIT.
25007 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25009         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
25010         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
25011         as ...
25012         (rs6000_abi_word_mode): New function.
25014 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25016         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
25017         instead of UNITS_PER_WORD to describe the size of stack slots.
25019 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25021         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
25022         as rs6000_promote_function_mode.  Move comment to there.
25023         (rs6000_promote_function_mode): New function.
25025 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25027         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
25028         -mpowerpc64 is active.
25030 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25032         PR middle-end/64353
25033         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
25034         virtuals on start.
25036 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25038         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
25039         introduced in revision 219724.
25041 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25042             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25044         PR target/64263
25045         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
25046         destination is not a GP reg.
25047         (*movdi_aarch64): Likewise.
25049 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
25051         PR target/64623
25052         * config/rs6000/default64.h: Revert ISA change.
25054 2015-01-16  Richard Biener  <rguenther@suse.de>
25056         PR middle-end/64614
25057         * tree-ssa-uninit.c: Include tree-cfg.h.
25058         (MAX_SWITCH_CASES): New define.
25059         (convert_control_dep_chain_into_preds): Handle switch statements.
25060         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
25061         (normalize_one_pred_1): Do not split bit-manipulations.
25062         Record (x & CST).
25064 2015-01-16  Richard Biener  <rguenther@suse.de>
25066         PR tree-optimization/64568
25067         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
25068         complex load rewriting for TARGET_MEM_REFs.
25070 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
25072         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
25074 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
25076         PR target/64149
25077         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
25078         variable.
25079         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
25080         (aarch64_lra_p): Remove.
25082 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25084         PR target/64363
25085         * ipa-chkp.h (chkp_instrumentable_p): New.
25086         * ipa-chkp.c: Include tree-inline.h.
25087         (chkp_instrumentable_p): New.
25088         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
25089         Fix processing of not instrumentable functions.
25090         (chkp_versioning): Use chkp_instrumentable_p. Warn about
25091         not instrumentable functions.
25092         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
25093         chkp_instrumentable_p.
25094         * tree-inline.h (copy_forbidden): New.
25095         * tree-inline.c (copy_forbidden): Not static anymore.
25097 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25099         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
25100         ptr1, ptr2 unused.
25102 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25104         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
25105         type OP_OUT to OP_INOUT.
25107 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25109         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
25110         (high x) y) to y if x and y have the same base.
25112 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25114         * config/arm/cortex-a57.md: New.
25115         * config/aarch64/aarch64.md: Include it.
25116         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
25117         * config/aarch64/aarch64-tune.md: Regenerate.
25119 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
25121         PR target/64015
25122         * ccmp.c (expand_ccmp_next): New function.
25123         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
25124         and compare insn sequence.
25125         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
25126         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
25127         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
25128         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
25129         (*ccmp_ior): Changed to ccmp_ior<mode>.
25130         (cmp<mode>): New pattern.
25131         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
25132         parameters.
25133         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
25135 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
25137         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
25138         _mm256_bsrli_epi128): New.
25139         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
25141 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
25143         * expmed.c (store_bit_field_using_insv): Improve warning message.
25144         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
25146 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
25148         PR rtl-optimization/64011
25149         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
25150         there is partial overflow.
25152 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25154         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
25155         prototype.
25156         (nds32_expand_epilogue_v3pop): Likewise.
25157         * config/nds32/nds32.md (sibcall): Define this for sibling call
25158         optimization.
25159         (sibcall_register): Likewise.
25160         (sibcall_immediate): Likewise.
25161         (sibcall_value): Likewise.
25162         (sibcall_value_register): Likewise.
25163         (sibcall_value_immediate): Likewise.
25164         (sibcall_epilogue): Likewise.
25165         (epilogue): Pass false to indicate this is not a sibcall epilogue.
25166         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
25167         (nds32_expand_epilogue_v3pop): Likewise.
25169 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25171         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
25172         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
25173         (return_internal): New.
25174         (return): Define this named pattern.
25175         (simple_return): Define this named pattern.
25176         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
25177         pattern instead of unspec_volatile_func_return.
25178         (nds32_expand_epilogue_v3pop): Likewise.
25179         (nds32_can_use_return_insn): New function.
25181 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25183         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
25184         * config/nds32/nds32.md (pop25return): New.
25185         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
25186         pop25return pattern.
25188 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25190         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
25191         -mforbid-fp-as-gp, and -mex9 options.
25193 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25195         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
25196         remove -mgp-direct option.
25198 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25200         * doc/invoke.texi (--param early-inlining-insns): Update default value.
25201         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
25203 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25205         * ipa-inline.c (inline_small_functions): Work around hints
25206         cache issue.
25208 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
25210         PR target/59710
25211         * doc/invoke.texi (Option Summary): Document new Nios II
25212         -mgpopt= syntax.
25213         (Nios II Options): Likewise.
25214         * config/nios2/nios2.opt: Add -mgpopt= option support.
25215         Modify existing -mgpopt and -mno-gpopt options to be aliases.
25216         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
25217         * config/nios2/nios2.c (nios2_option_override): Adjust
25218         -mgpopt defaulting.
25219         (nios2_in_small_data_p): Return true for explicit small data
25220         sections even with -G0.
25221         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
25222         option choices.
25224 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25226         PR ipa/64612
25227         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
25228         of comdat locals.
25229         (inline_call): Fix removal of aliases.
25231 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
25233         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
25234         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
25235         * opts.c (common_handle_option): Add -fsanitize=vptr.
25236         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
25237         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
25238         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
25239         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
25240         (ubsan_expand_vptr_ifn): New prototype.
25241         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
25242         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
25243         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
25244         expand_LOOP_VECTORIZED): Make argument nameless, remove
25245         ATTRIBUTE_UNUSED.
25246         (expand_UBSAN_VPTR): New function.
25247         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
25248         in fn spec.
25249         (UBSAN_VPTR): New internal function.
25250         * sanopt.c (tree_map_traits): Renamed to ...
25251         (sanopt_tree_map_traits): ... this.
25252         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
25253         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
25254         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
25255         (maybe_optimize_ubsan_vptr_ifn): New function.
25256         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
25257         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
25258         -fsanitize=vptr.
25259         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
25260         internal calls like pure functions for aliasing, even when they
25261         have other side-effects that prevent making them ECF_PURE.
25262         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
25263         (ubsan_expand_vptr_ifn): New function.
25265 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
25267         PR rtl-optimization/64110
25268         * stmt.c (parse_output_constraint): Process '^' and '$'.
25269         (parse_input_constraint): Ditto.
25270         * lra-constraints.c (process_alt_operands): Process the new
25271         constraints.
25272         * ira-costs.c (record_reg_classes): Process the new constraint
25273         '^'.
25274         * genoutput.c (indep_constraints): Add '^' and '$'.
25275         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
25276         * doc/md.texi: Add description of the new constraints.
25278 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
25279             Bernd Schmidt  <bernds@codesourcery.com>
25280             Cesar Philippidis  <cesar@codesourcery.com>
25281             James Norris  <jnorris@codesourcery.com>
25282             Tom de Vries  <tom@codesourcery.com>
25283             Ilmir Usmanov  <i.usmanov@samsung.com>
25284             Dmitry Bocharnikov  <dmitry.b@samsung.com>
25285             Evgeny Gavrin  <e.gavrin@samsung.com>
25286             Jakub Jelinek  <jakub@redhat.com>
25288         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
25289         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25290         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25291         New function types.
25292         * builtins.c: Include "gomp-constants.h".
25293         (expand_builtin_acc_on_device): New function.
25294         (expand_builtin, is_inexpensive_builtin): Handle
25295         BUILT_IN_ACC_ON_DEVICE.
25296         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
25297         New macros.
25298         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
25299         flag_openmp.
25300         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
25301         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
25302         i386/intelmic-offload.h.
25303         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
25304         to libgomp and its dependencies.
25305         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
25306         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25307         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25308         * config/ia64/hpux.h (LIB_SPEC): Likewise.
25309         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25310         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25311         * doc/generic.texi: Update for OpenACC changes.
25312         * doc/gimple.texi: Likewise.
25313         * doc/invoke.texi: Likewise.
25314         * doc/sourcebuild.texi: Likewise.
25315         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
25316         GF_OMP_FOR_KIND_OACC_LOOP.
25317         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
25318         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
25319         GF_OMP_TARGET_KIND_OACC_UPDATE,
25320         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25321         Dump more data.
25322         * gimple.c: Update comments for OpenACC changes.
25323         * gimple.def: Likewise.
25324         * gimple.h: Likewise.
25325         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
25326         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25327         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
25328         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25329         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
25330         appropriate place.
25331         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
25332         * gimplify.c: Include "gomp-constants.h".
25333         Update comments for OpenACC changes.
25334         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
25335         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
25336         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25337         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
25338         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25339         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25340         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
25341         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25342         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
25343         OMP_CLAUSE_SEQ.
25344         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
25345         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25346         OMP_CLAUSE_SET_MAP_KIND.
25347         (gimplify_oacc_cache): New function.
25348         (gimplify_omp_for): Handle OACC_LOOP.
25349         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
25350         OACC_DATA.
25351         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
25352         OACC_EXIT_DATA, OACC_UPDATE.
25353         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
25354         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
25355         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
25356         (gimplify_body): Consider flag_openacc next to flag_openmp.
25357         * lto-streamer-out.c: Include "gomp-constants.h".
25358         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
25359         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
25360         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
25361         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
25362         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
25363         (BUILT_IN_ACC_ON_DEVICE): New builtins.
25364         * omp-low.c: Include "gomp-constants.h".
25365         Update comments for OpenACC changes.
25366         (struct omp_context): Add reduction_map, gwv_below, gwv_this
25367         members.
25368         (extract_omp_for_data, use_pointer_for_field, install_var_field)
25369         (new_omp_context, delete_omp_context, scan_sharing_clauses)
25370         (create_omp_child_function, scan_omp_for, scan_omp_target)
25371         (check_omp_nesting_restrictions, lower_reduction_clauses)
25372         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
25373         Update for OpenACC changes.
25374         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
25375         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
25376         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
25377         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25378         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
25379         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
25380         OMP_CLAUSE_MAP_*.
25381         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25382         Handle GF_OMP_FOR_KIND_OACC_LOOP.
25383         (expand_omp_target, lower_omp_target): Handle
25384         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25385         GF_OMP_TARGET_KIND_OACC_UPDATE,
25386         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
25387         GF_OMP_TARGET_KIND_OACC_DATA.
25388         (pass_expand_omp::execute, execute_lower_omp)
25389         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
25390         flag_openmp.
25391         (offload_symbol_decl): New variable.
25392         (oacc_get_reduction_array_id, oacc_max_threads)
25393         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
25394         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
25395         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
25396         (oacc_gimple_assign, oacc_initialize_reduction_data)
25397         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
25398         functions.
25399         (is_targetreg_ctx): Remove function.
25400         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
25401         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
25402         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25403         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
25404         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
25405         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
25406         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
25407         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
25408         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
25409         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
25410         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
25411         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
25412         * tree-core.h: Update comments for OpenACC changes.
25413         (enum omp_clause_map_kind): Remove.
25414         (struct tree_omp_clause): Change type of map_kind member from enum
25415         omp_clause_map_kind to unsigned char.
25416         * tree-inline.c: Update comments for OpenACC changes.
25417         * tree-nested.c: Likewise.  Include "gomp-constants.h".
25418         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
25419         (convert_tramp_reference_stmt, convert_gimple_call): Update for
25420         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25421         OMP_CLAUSE_SET_MAP_KIND.
25422         * tree-pretty-print.c: Include "gomp-constants.h".
25423         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
25424         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
25425         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
25426         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
25427         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25428         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
25429         instead of OMP_CLAUSE_MAP_*.
25430         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
25431         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
25432         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25433         * tree-streamer-in.c: Include "gomp-constants.h".
25434         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
25435         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
25436         * tree-streamer-out.c: Include "gomp-constants.h".
25437         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
25438         OMP_CLAUSE_MAP_*.
25439         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
25440         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
25441         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
25442         * tree.c (omp_clause_num_ops): Update accordingly.
25443         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
25444         Likewise.
25445         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
25446         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
25447         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
25448         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
25449         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
25450         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
25451         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
25452         (OMP_CLAUSE_SET_MAP_KIND): New macro.
25453         * varpool.c (varpool_node::get_create): Consider flag_openacc next
25454         to flag_openmp.
25455         * config/i386/intelmic-offload.h: New file.
25456         * config/nvptx/offload.h: Likewise.
25458 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25460         * explow.h: Remove duplicate contents.
25461         * dojump.h: Likewise.
25463 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
25465         * arm.c (arm_xgene_tune): Add default initializer for instruction
25466         fusion.
25468 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25470         PR ipa/64068
25471         PR ipa/64559
25472         * ipa.c (symbol_table::remove_unreachable_nodes):
25473         Do not put abstract origins into boundary.
25475 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
25477         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
25478         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
25480 2015-01-15  Steve Ellcey  <sellcey@mips.com>
25482         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
25483         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
25484         builtins.def, and chkp-builtins.def.
25486 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
25488         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
25489         ISA 2.7 (POWER8).
25491 2015-01-15  Richard Biener  <rguenther@suse.de>
25493         PR tree-optimization/61743
25494         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
25495         information on PHIs for some simple cases.
25497 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25499         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
25500         Include xgene1.md.
25501         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
25502         * config/arm/arm-cores.def (xgene1): New entry.
25503         * config/arm/arm-tables.opt: Regenerate.
25504         * config/arm/arm-tune.md: Regenerate.
25505         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
25507 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25509         * tree-if-conv.c: Include hash-map.h.
25510         (aggressive_if_conv): New variable.
25511         (fold_build_cond_expr): Add simplification of non-zero condition.
25512         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
25513         destination block is not always executed.
25514         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
25515         than two predecessors if AGGRESSIVE_IF_CONV is true.
25516         (if_convertible_stmt_p): Fix commentary.
25517         (all_preds_critical_p): New function.
25518         (has_pred_critical_p): New function.
25519         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
25520         BB can have more than two predecessors and all incoming edges can be
25521         critical.
25522         (predicate_bbs): Skip predication for loop exit block, use build2_loc
25523         to compute predicate for true edge.
25524         (find_phi_replacement_condition): Delete this function.
25525         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
25526         Allow interchange PHI arguments if EXTENDED is false.
25527         Change check that block containing reduction statement candidate
25528         is predecessor of phi-block since phi may have more than two arguments.
25529         (phi_args_hash_traits): New helper structure.
25530         (struct phi_args_hash_traits): New type.
25531         (phi_args_hash_traits::hash): New function.
25532         (phi_args_hash_traits::equal_keys): New function.
25533         (gen_phi_arg_condition): New function.
25534         (predicate_scalar_phi): Add handling of phi nodes with more than two
25535         arguments, delete COND and TRUE_BB arguments, insert body of
25536         find_phi_replacement_condition to predicate ordinary phi nodes.
25537         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
25538         delete call of find_phi_replacement_condition and invoke
25539         predicate_scalar_phi with two arguments.
25540         (insert_gimplified_predicates): Add assert that non-predicated block
25541         don't have statements to insert.
25542         (ifcvt_split_critical_edges): New function.
25543         (ifcvt_split_def_stmt): Likewise.
25544         (ifcvt_walk_pattern_tree): Likewise.
25545         (stmt_is_root_of_bool_pattern): Likewise.
25546         (ifcvt_repair_bool_pattern): Likewise.
25547         (ifcvt_local_dce): Likewise.
25548         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
25549         is copy of inner or outer loop force_vectorize field, invoke
25550         ifcvt_split_critical_edges, ifcvt_local_dce and
25551         ifcvt_repair_bool_pattern for aggressive if-conversion.
25553 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
25555         * config/aarch64/aarch64.md: Include xgene1.md.
25556         * config/aarch64/xgene1.md: New file.
25558 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25560         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
25561         xgene1 (APM XGene-1) core definition.
25562         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
25563         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
25564         * doc/invoke.texi: Document -mcpu=xgene1.
25566 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25568         * dojump.h: New header file.
25569         * explow.h: Likewise.
25570         * expr.h: Remove includes.
25571         Move expmed.c prototypes to expmed.h.
25572         Move dojump.c prototypes to dojump.h.
25573         Move alias.c prototypes to alias.h.
25574         Move explow.c prototypes to explow.h.
25575         Move calls.c prototypes to calls.h.
25576         Move emit-rtl.c prototypes to emit-rtl.h.
25577         Move varasm.c prototypes to varasm.h.
25578         Move stmt.c prototypes to stmt.h.
25579         (saved_pending_stack_adjust): Move to dojump.h.
25580         (adjust_address): Move to explow.h.
25581         (adjust_address_nv): Move to emit-rtl.h.
25582         (adjust_bitfield_address): Likewise.
25583         (adjust_bitfield_address_size): Likewise.
25584         (adjust_bitfield_address_nv): Likewise.
25585         (adjust_automodify_address_nv): Likewise.
25586         * explow.c (expr_size): Move to expr.c.
25587         (int_expr_size): Likewise.
25588         (tree_expr_size): Likewise.
25589         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25590         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25591         * genemit.c (main): Generate includes statistics.h, real.h,
25592         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
25593         stmt.h.
25594         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
25595         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
25596         explow.h, emit-rtl.h, stmt.h.
25597         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
25598         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
25599         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
25600         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
25601         emit-rtl.h, varasm.h, stmt.h.
25602         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
25603         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
25604         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
25605         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
25606         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25607         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
25608         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
25609         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
25610         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
25611         tm.h tree.h varasm.h vec.h wide-int.h.
25612         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25613         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25614         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
25615         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
25616         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
25617         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
25618         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
25619         * loop-iv.c: Likewise.
25620         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
25621         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
25622         statistics.h stmt.h tree.h varasm.h wide-int.h.
25623         * lra-constraints.c: Likewise.
25624         * lra-eliminations.c: Likewise.
25625         * lra-lives.c: Likewise.
25626         * lra-remat.c: Likewise.
25627         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25628         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
25629         statistics.h stmt.h tree.h varasm.h wide-int.h.
25630         * hw-doloop.c: Likewise.
25631         * ira-color.c: Likewise.
25632         * ira-emit.c: Likewise.
25633         * loop-doloop.c: Likewise.
25634         * loop-invariant.c: Likewise.
25635         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25636         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
25637         statistics.h stmt.h tree.h varasm.h wide-int.h.
25638         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
25639         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
25640         statistics.h stmt.h tree.h varasm.h wide-int.h.
25641         * combine-stack-adj.c: Likewise.
25642         * cse.c: Likewise.
25643         * ddg.c: Likewise.
25644         * ifcvt.c: Likewise.
25645         * ira-costs.c: Likewise.
25646         * jump.c: Likewise.
25647         * lra-coalesce.c: Likewise.
25648         * lra-spills.c: Likewise.
25649         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25650         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
25651         stmt.h varasm.h wide-int.h.
25652         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25653         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25654         varasm.h.
25655         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
25656         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
25657         statistics.h stmt.h varasm.h wide-int.h.
25658         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
25659         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
25660         varasm.h wide-int.h.
25661         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
25662         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25663         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
25664         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
25665         statistics.h stmt.h.
25666         * config/tilepro/tilepro.c: Likewise.
25667         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
25668         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
25669         * config/pdp11/pdp11.c: Likewise.
25670         * config/xtensa/xtensa.c: Likewise.
25671         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
25672         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25673         varasm.h.
25674         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25675         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25676         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
25677         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25678         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25679         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
25680         * rtl-chkp.c: Likewise.
25681         * tree-chkp-opt.c: Likewise.
25682         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
25683         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25684         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
25685         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25686         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25687         statistics.h stmt.h.
25688         * tree-vect-data-refs.c: Likewise.
25689         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
25690         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25691         rtl.h statistics.h stmt.h varasm.h.
25692         * internal-fn.c: Likewise.
25693         * ipa-icf-gimple.c: Likewise.
25694         * lto-section-out.c: Likewise.
25695         * tree-data-ref.c: Likewise.
25696         * tree-nested.c: Likewise.
25697         * tree-outof-ssa.c: Likewise.
25698         * tree-predcom.c: Likewise.
25699         * tree-pretty-print.c: Likewise.
25700         * tree-scalar-evolution.c: Likewise.
25701         * tree-ssa-strlen.c: Likewise.
25702         * tree-vect-loop.c: Likewise.
25703         * tree-vect-patterns.c: Likewise.
25704         * tree-vect-slp.c: Likewise.
25705         * tree-vect-stmts.c: Likewise.
25706         * tsan.c: Likewise.
25707         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25708         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
25709         stmt.h.
25710         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
25711         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25712         statistics.h stmt.h varasm.h.
25713         * loop-unroll.c: Likewise.
25714         * ubsan.c: Likewise.
25715         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
25716         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
25717         stmt.h varasm.h.
25718         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25719         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
25720         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
25721         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25722         statistics.h stmt.h.
25723         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
25724         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25725         statistics.h stmt.h varasm.h.
25726         * gimple-match-head.c: Likewise.
25727         * lto-cgraph.c: Likewise.
25728         * lto-section-in.c: Likewise.
25729         * lto-streamer-in.c: Likewise.
25730         * lto-streamer-out.c: Likewise.
25731         * tree-affine.c: Likewise.
25732         * tree-cfg.c: Likewise.
25733         * tree-cfgcleanup.c: Likewise.
25734         * tree-if-conv.c: Likewise.
25735         * tree-into-ssa.c: Likewise.
25736         * tree-ssa-alias.c: Likewise.
25737         * tree-ssa-copyrename.c: Likewise.
25738         * tree-ssa-dse.c: Likewise.
25739         * tree-ssa-forwprop.c: Likewise.
25740         * tree-ssa-live.c: Likewise.
25741         * tree-ssa-math-opts.c: Likewise.
25742         * tree-ssa-pre.c: Likewise.
25743         * tree-ssa-sccvn.c: Likewise.
25744         * tree-tailcall.c: Likewise.
25745         * tree-vect-generic.c: Likewise.
25746         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25747         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
25748         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25749         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
25750         * varasm.c: Likewise.
25751         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25752         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
25753         varasm.h.
25754         * init-regs.c: Likewise.
25755         * ira.c: Likewise.
25756         * omp-low.c: Likewise.
25757         * stack-ptr-mod.c: Likewise.
25758         * tree-ssa-reassoc.c: Likewise.
25759         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25760         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
25761         varasm.h.
25762         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25763         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
25764         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25765         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
25766         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25767         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
25768         * tree-ssa-phiopt.c: Likewise.
25769         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25770         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25771         * config/fr30/fr30.c: Likewise.
25772         * config/frv/frv.c: Likewise.
25773         * expr.c: Likewise.
25774         * final.c: Likewise.
25775         * optabs.c: Likewise.
25776         * passes.c: Likewise.
25777         * simplify-rtx.c: Likewise.
25778         * stmt.c: Likewise.
25779         * toplev.c: Likewise.
25780         * var-tracking.c: Likewise.
25781         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25782         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25783         * lower-subreg.c: Likewise.
25784         * postreload-gcse.c: Likewise.
25785         * ree.c: Likewise.
25786         * reginfo.c: Likewise.
25787         * store-motion.c: Likewise.
25788         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25789         fixed-value.h hashtab.h real.h stmt.h varasm.h.
25790         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25791         fixed-value.h hashtab.h statistics.h stmt.h.
25792         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25793         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25794         * except.c: Likewise.
25795         * explow.c: Likewise.
25796         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25797         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
25798         varasm.h.
25799         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25800         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
25801         * tree-ssa-structalias.c: Likewise.
25802         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25803         fixed-value.h insn-config.h real.h statistics.h.
25804         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25805         fixed-value.h insn-config.h real.h statistics.h stmt.h.
25806         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25807         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25808         * cfgbuild.c: Likewise.
25809         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25810         fixed-value.h real.h rtl.h statistics.h stmt.h.
25811         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25812         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25813         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25814         fixed-value.h real.h statistics.h stmt.h.
25815         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25816         fixed-value.h real.h statistics.h stmt.h varasm.h.
25817         * cprop.c: Likewise.
25818         * modulo-sched.c: Likewise.
25819         * postreload.c: Likewise.
25820         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25821         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
25822         statistics.h stmt.h varasm.h.
25823         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
25824         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25825         rtl.h statistics.h stmt.h varasm.h.
25826         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
25827         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
25828         varasm.h.
25829         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25830         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
25831         varasm.h.
25832         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
25833         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
25834         varasm.h.
25835         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
25836         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25837         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25838         function.h real.h statistics.h stmt.h varasm.h.
25839         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25840         insn-config.h real.h statistics.h stmt.h.
25841         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25842         statistics.h stmt.h.
25843         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
25844         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
25845         statistics.h stmt.h varasm.h.
25846         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
25847         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
25848         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25849         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
25850         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
25851         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25852         statistics.h stmt.h varasm.h.
25853         * ipa-polymorphic-call.c: Likewise.
25854         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
25855         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25856         statistics.h stmt.h.
25857         * config/c6x/c6x.c: Likewise.
25858         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
25859         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25860         statistics.h stmt.h varasm.h.
25861         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
25862         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
25863         stmt.h varasm.h.
25864         * ipa-split.c: Likewise.
25865         * tree-eh.c: Likewise.
25866         * tree-ssa-dce.c: Likewise.
25867         * tree-ssa-loop-niter.c: Likewise.
25868         * tree-vrp.c: Likewise.
25869         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
25870         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
25871         stmt.h.
25872         * config/nds32/nds32-fp-as-gp.c: Likewise.
25873         * config/nds32/nds32-intrinsic.c: Likewise.
25874         * config/nds32/nds32-isr.c: Likewise.
25875         * config/nds32/nds32-md-auxiliary.c: Likewise.
25876         * config/nds32/nds32-memory-manipulation.c: Likewise.
25877         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25878         * config/nds32/nds32-predicates.c: Likewise.
25879         * config/nds32/nds32.c: Likewise.
25880         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
25881         fixed-value.h hashtab.h real.h statistics.h.
25882         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
25883         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25884         * config/arm/arm.c: Likewise.
25885         * config/avr/avr.c: Likewise.
25886         * config/bfin/bfin.c: Likewise.
25887         * config/h8300/h8300.c: Likewise.
25888         * config/i386/i386.c: Likewise.
25889         * config/ia64/ia64.c: Likewise.
25890         * config/iq2000/iq2000.c: Likewise.
25891         * config/m32c/m32c.c: Likewise.
25892         * config/m32r/m32r.c: Likewise.
25893         * config/m68k/m68k.c: Likewise.
25894         * config/mcore/mcore.c: Likewise.
25895         * config/mep/mep.c: Likewise.
25896         * config/mips/mips.c: Likewise.
25897         * config/mn10300/mn10300.c: Likewise.
25898         * config/moxie/moxie.c: Likewise.
25899         * config/pa/pa.c: Likewise.
25900         * config/rl78/rl78.c: Likewise.
25901         * config/rx/rx.c: Likewise.
25902         * config/s390/s390.c: Likewise.
25903         * config/sh/sh.c: Likewise.
25904         * config/sparc/sparc.c: Likewise.
25905         * config/spu/spu.c: Likewise.
25906         * config/stormy16/stormy16.c: Likewise.
25907         * config/v850/v850.c: Likewise.
25908         * config/vax/vax.c: Likewise.
25909         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
25910         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25911         * config/msp430/msp430.c: Likewise.
25912         * predict.c: Likewise.
25913         * value-prof.c: Likewise.
25914         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
25915         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
25916         * config/microblaze/microblaze.c: Likewise.
25917         * config/nios2/nios2.c: Likewise.
25918         * config/rs6000/rs6000.c: Likewise.
25919         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25920         insn-config.h real.h rtl.h statistics.h stmt.h.
25921         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25922         insn-config.h real.h statistics.h stmt.h.
25923         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
25924         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25925         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
25926         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25927         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
25928         fixed-value.h real.h statistics.h stmt.h.
25929         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
25930         fixed-value.h statistics.h stmt.h.
25931         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
25932         stmt.h.
25934 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
25936         * gengtype.c (create_user_defined_type): Workaround
25937         -Wmaybe-uninitialized false positives.
25938         * cse.c (fold_rtx): Likewise.
25939         * loop-invariant.c (gain_for_invariant): Likewise.
25941 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25943         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
25944         set the memory attributes in all cases but clear MEM_EXPR if need be.
25946 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25948         PR tree-optimization/64434
25949         * cfgexpand.c (reorder_operands): New function.
25950         (expand_gimple_basic_block): Insert call of reorder_operands if
25951         optimized is true.
25953 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
25955         * config/mips/micromips.md (*swp): Remove explicit parallel.
25956         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
25957         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
25958         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
25959         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
25960         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
25961         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
25962         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
25963         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
25964         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
25965         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
25966         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
25967         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
25968         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
25969         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
25970         (mips_wrdsp): Likewise.
25971         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
25972         parallel.
25973         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
25974         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
25975         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
25976         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
25977         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
25978         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
25979         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
25980         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
25981         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
25983 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
25985         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
25986         (mips_print_operand): Support 'y' to print exact log2 in decimal
25987         of a const_int.
25988         * config/mips/mips.h (ISA_HAS_LSA): New define.
25989         (ISA_HAS_DLSA): Likewise.
25990         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
25991         * config/mips/predicates.md (const_immlsa_operand): New predicate.
25993 2015-01-15  Martin Liska  <mliska@suse.cz>
25995         PR target/64377
25996         * optc-save-gen.awk: Add support for array types.
25998 2015-01-15  Richard Biener  <rguenther@suse.de>
26000         PR middle-end/64365
26001         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
26002         for MEM_REF access functions with the same base can never partially
26003         overlap.
26005 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
26007         * common.opt: New option -fstack-protector-explicit.
26008         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
26009         (stack_protect_decl_phase): Handle stack_protect attribute for
26010         explicit stack protection requests.
26011         (expand_used_vars): Similarly.
26012         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
26013         * doc/extend.texi: Add documentation for "stack_protect" attribute.
26014         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
26016 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
26018         PR target/53988
26019         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
26020         reg-reg copies.
26021         (sh_extending_set_of_reg): New struct.
26022         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
26023         sh_remove_reg_dead_or_unused_notes): New Declarations.
26024         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
26025         sh_find_extending_set_of_reg, sh_split_tst_subregs,
26026         sh_extending_set_of_reg::use_as_extended_reg): New functions.
26027         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
26028         convert to insn_and_split and use new function sh_split_tst_subregs.
26030 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
26032         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
26033         option.
26034         (Optimization Options): Move -fuse-ld documentation to...
26035         (Link Options): ...here.
26037 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26039         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
26040         offsets.
26041         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
26042         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
26043         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
26044         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
26045         instead of ZR for the memory operand of LL/SC.
26046         (compare_and_swap_12, sync_add<mode>): Likewise.
26047         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
26048         (sync_new_<optab>_12, sync_nand_12): Likewise.
26049         (sync_old_nand_12, sync_new_nand_12): Likewise.
26050         (sync_sub<mode>, sync_old_add<mode>): Likewise.
26051         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
26052         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
26053         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
26054         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
26055         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
26056         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
26057         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
26058         * doc/md.texi (ZC): Update description.
26060 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26062         * builtins.c (expand_builtin_atomic_exchange): Remove error when
26063         memory model is CONSUME.
26064         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
26065         expand_builtin_atomic_store): Change invalid memory model errors to
26066         warnings.
26067         (expand_builtin_atomic_clear): Change invalid model errors to warnings
26068         and issue warning for CONSUME.
26070 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
26072         * lto-cgraph: Update function comments for
26073         lto_symtab_encoder_encode_*.
26075 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26077         * Makefile.in (site.exp): Do not set ENABLE_LTO.
26079 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26081         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
26082         * lto-cgraph.c (select_what_to_stream): Remove argument, use
26083         lto_stream_offload_p instead.
26084         * lto-streamer.h (select_what_to_stream): Remove argument.
26085         * passes.c (ipa_write_summaries): Likewise.
26086         * tree-pass.h (ipa_write_summaries): Likewise.
26088 2015-01-14  Richard Biener  <rguenther@suse.de>
26090         PR tree-optimization/59354
26091         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
26092         groups larger than the slp group size as having gaps.
26094 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26096         PR middle-end/59448
26097         * builtins.c (get_memmodel): Promote consume to acquire always.
26099 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26101         PR target/64386
26102         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
26103         V32HImode.
26105 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26107         PR target/64393
26108         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
26109         Enable AVX512BW.
26110         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
26111         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
26112         AVX512VBMI, as it implies AVX512BW.
26114 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26116         PR target/64387
26117         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
26118         (vec_unpacks_hi_v16sf): Ditto.
26120 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26122         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
26123         is not available.
26125 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26127         * doc/invoke.texi (mapcs): Mention deprecation.
26128         (mapcs-frame): Likewise.
26130 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26132         PR target/64453
26133         * config/arm/arm.c (callee_saved_reg_p): Define.
26134         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
26135         register is callee saved instead of !call_used_regs[reg].
26136         (thumb1_compute_save_reg_mask): Likewise.
26138 2015-01-14  Hale Wang  <hale.wang@arm.com>
26140         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
26141         Cortex-M7.
26143 2015-01-14  Richard Biener  <rguenther@suse.de>
26145         PR lto/64415
26146         * tree-inline.c (insert_debug_decl_map): Check destination
26147         function MAY_HAVE_DEBUG_STMTS.
26148         (insert_init_debug_bind): Likewise.
26149         (insert_init_stmt): Remove redundant check.
26150         (remap_gimple_stmt): Drop debug stmts if the destination
26151         function has var-tracking assignments disabled.
26153 2015-01-14  Martin Liska  <mliska@suse.cz>
26155         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
26156         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
26158 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26160         PR target/64460
26161         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
26162         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
26164 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26166         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
26167         level from an ARCH; do not inject the default.
26168         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
26169         MIPS_ISA_LEVEL_SPEC.
26170         (MIPS_ISA_NAN2008_SPEC): Update comment.
26171         (BASE_DRIVER_SELF_SPECS): Likewise.
26172         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
26173         MIPS_DEFAULT_ISA_LEVEL_SPEC.
26174         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
26175         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
26176         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
26178 2015-01-14  Richard Biener  <rguenther@suse.de>
26180         PR tree-optimization/64493
26181         PR tree-optimization/64495
26182         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
26183         assign the proper vectorized PHI to the inner loop exit PHIs.
26185 2015-01-14  Joey Ye  <joey.ye@arm.com>
26187         * config/arm/arm.c (arm_compute_save_reg_mask):
26188         Do not save lr in case of tail call.
26189         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
26191 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
26193         * tree-vrp.c (check_array_ref): Emit more warnings
26194         for warn_array_bounds >= 2.
26195         * common.opt: New option -Warray-bounds=.
26196         * doc/invoke.texi: Document -Warray-bounds=.
26198 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
26200         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
26201         (mforbid-fp-as-gp): Remove.
26202         (mex9): Remove.
26203         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
26204         (nds32_symbol_load_store_p): Remove.
26205         (nds32_fp_as_gp_check_available): Clean up implementation.
26206         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
26207         cases.
26208         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
26209         fp-as-gp and ex9 cases.
26211 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26213         * tree-profile.c (init_ic_make_global_vars): Drop workaround
26214         for bintuils bug 14342.
26215         (init_ic_make_global_vars): Likewise.
26216         (gimple_init_edge_profiler): Likewise.
26217         (gimple_gen_ic_func_profiler): Likewise.
26219 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26221         * ipa-inline.c (inline_small_functions): Swap the operands in
26222         enum.
26224 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26226         PR ipa/64481
26227         * ipa-inline-analysis.c (node_growth_cache): Remove.
26228         (initialize_growth_caches): Do not initialize it.
26229         (free_growth_caches): Do not free it.
26230         (do_estimate_growth): Rename to ...
26231         (estimate_growth): ... this one; drop growth cache code.
26232         (growth_likely_positive): Always go the heuristics way.
26233         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
26234         (reset_edge_caches): Do not reset node growth.
26235         (heap_edge_removal_hook): Do not maintain cache.
26236         (inline_small_functions): Likewise; strenghten sanity check.
26237         (ipa_inline): Do not maintain caches.
26238         * ipa-inline.h (node_growth_cache): Remove.
26239         (do_estimate_growth): Remove to ...
26240         (estimate_growth): this one; remove inline version.
26241         (reset_node_growth_cache): Remove.
26243 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26245         PR ipa/64565
26246         * ipa-inline.c (inline_small_functions): Update callee keys after
26247         resolving speculation
26248         (inline_small_functions): Always check monotonicity of the queue.
26250 2015-01-13  Marek Polacek  <polacek@redhat.com>
26252         PR middle-end/64391
26253         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
26255 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
26257         PR rtl-optimization/64286
26258         * ree.c (combine_reaching_defs): Move part of comment earlier,
26259         remove !SCALAR_INT_MODE_P check.
26260         (add_removable_extension): Don't add vector mode
26261         extensions if all uses of the source register aren't the same
26262         vector extensions.
26264 2015-01-13  Renlin Li  <renlin.li@arm.com>
26266         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
26267         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
26269 2015-01-13  Martin Liska  <mliska@suse.cz>
26271         * ipa-icf.c (sem_function::equals_private): Call new functions
26272         cl_target_option_print_diff and cl_optimization_print_diff.
26273         * optc-save-gen.awk (cl_target_option_print_diff): New function.
26274         (cl_optimization_print_diff): Likewise.
26275         * opth-gen.awk: Likewise.
26277 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
26279         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
26280         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
26281         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
26282         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
26283         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
26284         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
26286 2015-01-13  Andrew Pinski  <apinski@cavium.com>
26288         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
26289         instead of src mode.
26291 2015-01-13  Richard Biener  <rguenther@suse.de>
26293         PR lto/64373
26294         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
26295         DECL_CONTEXT.
26297 2015-01-13  Andrew Pinski  <apinski@cavium.com>
26299         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
26300         volatile mems.
26301         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
26303 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
26305         PR middle-end/63974
26306         * cfgexpand.c (expand_computed_goto): Don't call
26307         convert_memory_address here.
26309 2015-01-13  Richard Biener  <rguenther@suse.de>
26311         PR tree-optimization/64406
26312         * tree-loop-distibution.c (pass_loop_distribution::execute):
26313         Reset the SCEV hashtable if we distributed anything.
26315 2015-01-13  Richard Biener  <rguenther@suse.de>
26317         PR tree-optimization/64404
26318         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
26319         SLP types for CSEd loads.
26321 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26323         PR tree-optimization/64436
26324         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
26325         merge of two symbolic numbers for a bitwise OR to ...
26326         (perform_symbolic_merge): This. Also fix computation of the range and
26327         end of the symbolic number corresponding to the result of a bitwise OR.
26329 2015-01-13  Richard Biener  <rguenther@suse.de>
26331         PR tree-optimization/64568
26332         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
26333         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
26335 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26337         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
26338         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
26340 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26342         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
26343         target-specific symbol_ref flag.
26344         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
26345         resides in rodata section.
26346         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
26347         (nds32_encode_section_info): New function.
26349 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26351         * config/nds32/nds32.md (call): Use pseudo instruction bal which
26352         clobbers TA_REGNUM if large code model is specified.
26353         (call_register): Likewise.
26354         (call_immediate): Likewise.
26355         (call_value): Likewise.
26356         (call_value_register): Likewise.
26357         (call_value_immediate): Likewise.
26359 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26361         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
26362         (TARGET_CMODEL_MEDIUM): New macro.
26363         (TARGET_CMODEL_LARGE): New macro.
26364         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
26365         code model setting in assembly code.
26367 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26369         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26370         Remove MASK_GP_DIRECT flag.
26371         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
26372         one of the multilib default options.
26373         * config/nds32/nds32.opt (mgp-direct): Remove.
26374         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
26375         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
26377 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26379         * config/nds32/nds32.opt (mcmodel): Add new option.
26380         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
26381         to describe code model.
26383 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
26385         PR target/64479
26386         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
26388 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
26390         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
26391         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26392         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
26393         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
26394         __builtin_sh_set_fpscr.
26396 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26398         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
26399         after a funtion name just to indicate it is a function.
26400         ([-fsanitize-undefined-trap-on-error]): Likewise.
26401         ([-fdbg-cnt=]): Likewise.
26402         ([-mmemcpy]): Likewise.
26403         ([-mflush-func]): Likewise.
26404         ([-msynci]): Likewise.
26406 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26408         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
26409         example.
26411 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
26413         PR tree-optimization/64563
26414         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
26415         instead of != VR_VARYING.
26417         PR target/64513
26418         * config/i386/i386.c (ix86_expand_prologue): Add
26419         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
26421         PR tree-optimization/64454
26422         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
26423         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
26424         for signed or [0, op1 - 1] for unsigned modulo.
26425         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
26426         even if op1 does not satisfy integer_pow2p.
26428         PR other/64370
26429         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
26431 2015-01-12  Jeff Law  <law@redhat.com>
26433         PR target/64461
26434         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
26435         (trunchiqi2, truncsihi2): Similarly.
26437         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
26438         rather than calling F.
26440 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26442         * tsan.c (instrument_expr): Use force_gimple_operand.
26443         Use may_be_nonaddressable_p instead of is_gimple_addressable.
26445 2015-01-12  Richard Biener  <rguenther@suse.de>
26447         PR tree-optimization/64530
26448         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
26449         back dr1.
26451 2015-01-12  Richard Biener  <rguenther@suse.de>
26453         PR middle-end/64357
26454         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
26455         latches properly.
26457 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26459         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
26460         Cortex-A17 tuning parameters.
26461         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
26463 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26465         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
26466         * config/arm/arm.c (arm_macro_fusion_p): New function.
26467         (arm_macro_fusion_pair_p): Likewise.
26468         (TARGET_SCHED_MACRO_FUSION_P): Define.
26469         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
26470         (ARM_FUSE_NOTHING): Likewise.
26471         (ARM_FUSE_MOVW_MOVT): Likewise.
26472         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
26473         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
26474         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
26475         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
26476         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
26477         arm_cortex_a5_tune): Specify fuseable_ops value.
26479 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
26481         PR bootstrap/64561
26482         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
26483         test for PIE with copy reloc.
26484         * configure: Regenerated.
26486 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26488         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
26489         in gen_rtx_REG.
26490         (arm_tls_descseq_addr): Likewise.
26491         (arm_gen_movmemqi): Likewise.
26492         (arm_expand_epilogue_apcs_frame): Likewise.
26493         (arm_expand_epilogue): Likewise.
26494         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
26495         in gen_rtx_REG.
26497 2015-01-12  Martin Liska  <mliska@suse.cz>
26499         PR ipa/64550
26500         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
26501         volatility for correct operands.
26503 2015-01-12  Martin Liska  <mliska@suse.cz>
26505         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
26506         indication that a function is not leaf.
26507         (sem_function::compare_polymorphic_p): Likewise.
26509 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26511         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
26512         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
26513         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
26514         fold-const.h, tree-check.h.
26516 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26518         PR ipa/63967
26519         PR ipa/64425
26520         * ipa-inline.c (compute_uninlined_call_time,
26521         compute_inlined_call_time): Use counts for extra precision when
26522         needed possible.
26523         (big_speedup_p): Fix formating.
26524         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
26525         (relative_time_benefit): Remove.
26526         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
26527         merge guessed and read profile paths.
26528         (inline_small_functions): Count only !optimize_size functions into
26529         initial size; be more lax about sanity check when profile is used;
26530         be sure to update inlined function profile when profile is read.
26532 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26534         PR ipa/63470
26535         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
26536         cost when edge becomes direct.
26537         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
26538         is resolved or when introducing new speculation.
26540 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
26542         PR ipa/64551
26543         PR ipa/64552
26544         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
26545         '||' to fix typo issue.
26547         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
26548         accept and return NULL.
26550 2015-01-12  Martin Liska  <mliska@suse.cz>
26552         * cgraph.c (cgraph_edge::remove_callee): Move function to header
26553         file for being inlined.
26554         (cgraph_set_edge_callee): Delete.
26555         (cgraph_edge::redirect_callee): Move function to header file
26556         for being inlined.
26557         (cgraph_edge::make_direct): Use new function.
26558         (cgraph_edge::dump_edge_flags): New function created from
26559         static dump_edge_flags function.
26560         (cgraph_node::dump): Use new function.
26561         (cgraph_edge::verify_count_and_frequency): New function created
26562         from verify_edge_count_and_frequency.
26563         (cgraph_edge::verify_corresponds_to_fndecl): New function created
26564         from verify_edge_corresponds_to_fndecl.
26565         (verify_edge_corresponds_to_fndecl): Delete.
26566         (cgraph_node::verify_node): Use new function.
26567         * cgraph.h (cgraph_edge::set_callee): New function.
26568         (cgraph_edge::dump_edge_flags): Likewise.
26569         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
26571 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
26573         * ipa-utils.c (estimate_function_body_sizes): Do not
26574         free node params when called late with early=true.
26576 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
26578         * doc/md.texi (Instruction Patterns): Rewrite text for
26579         clarity.
26580         (Example): Likewise.
26582 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
26584         * doc/invoke.texi (Option Summary): Break long lines.
26585         [(-fdiagnostics-color)]: Put long literal in @smallexample
26586         instead of inline.
26587         [(-fsanitize-recover)]: Likewise.
26588         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
26589         [(-ffast-math)]: Likewise.
26590         [(--param max-inline-insns-recursive)]: Likewise.
26591         [(--param max-inline-recursive-depth)]: Likewise.
26592         [(-mno-text-section-literals)]: Likewise.
26594 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
26596         * doc/install.texi: Update for libgomp being renamed from "GNU
26597         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
26598         Runtime Library".
26599         * doc/sourcebuild.texi: Likewise.
26601 2015-01-10  Anthony Green  <green@moxielogic.com>
26603         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
26604         mul.x availability for moxiebox configuration.
26606 2015-01-09  Anthony Green  <green@moxielogic.com>
26608         * config/moxie/moxie.md: Tabify assembly output.
26610 2015-01-09  Anthony Green  <green@moxielogic.com>
26612         * config/moxie/moxie.md (CC_REG): Correct register definition.
26614 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
26616         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
26617         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
26618         of log files.
26620 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26622         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
26624 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
26625             Jakub Jelinek  <jakub@redhat.com>
26627         PR middle-end/64412
26628         * lto-streamer.h (lto_stream_offload_p): New declaration.
26629         * lto-streamer.c (lto_stream_offload_p): New variable.
26630         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
26631         at the same time as section_name_prefix.
26632         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
26633         if lto_stream_offload_p.
26634         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
26635         stream TREE_TARGET_OPTION if lto_stream_offload_p.
26636         (write_ts_function_decl_tree_pointers): Don't
26637         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
26638         * tree-streamer-in.c (unpack_value_fields): Don't stream
26639         TREE_TARGET_OPTION in if ACCEL_COMPILER.
26640         (lto_input_ts_function_decl_tree_pointers): Don't stream
26641         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
26642         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
26643         instead of section_name_prefix string comparisons.
26645 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
26647         PR rtl-optimization/64536
26648         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
26649         tablejumps.
26651 2015-01-09  Michael Collison  <michael.collison@linaro.org>
26653         PR tree-optimization/64322
26654         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
26655         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
26657 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26659         PR rtl-optimization/64539
26660         * regcprop.c (kill_clobbered_values): Factor out of ...
26661         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
26662         instead of note_stores with kill_clobbered_value.
26664 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26666          * ginclude/unwind-arm-common.h: Revert previous commit.
26668 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26670         * config.gcc (arm*-*-freebsd*): New configuration.
26671         * config/arm/freebsd.h: New file.
26672         * config.host: Add extra components for arm*-*-freebsd*.
26673         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
26674         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
26676 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26678         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
26679         for -mcpu=e6500.
26680         * config/rs6000/t-rtems: Add e6500 multilibs.
26682 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26684         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
26685         MPC8540.
26687 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26689         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
26690         MULTILIB_EXCEPTIONS.
26692 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26694         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
26695         MULTILIB_EXCEPTIONS.
26697 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26699         * config/arm/t-rtems-eabi: Rename to...
26700         * config/arm/t-rtems: ...this.
26701         * config/arm/rtems-eabi.h: Rename to...
26702         * config/arm/rtems.h: ...this.
26703         * config.gcc (arm*-*-rtems*): Reflect changes above.
26705 2015-01-09  Richard Biener  <rguenther@suse.de>
26707         PR tree-optimization/64410
26708         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
26709         on the LHS.
26710         (execute_update_addresses_taken): Deal with that.
26711         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
26712         loads/stores for complex variables.
26714 2015-01-09  Martin Liska  <mliska@suse.cz>
26716         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
26717         name comparison.
26718         (func_checker::compare_memory_operand): New function.
26719         (func_checker::compare_operand): Split case to newly
26720         added functions.
26721         (func_checker::compare_cst_or_decl): New function.
26722         (func_checker::compare_gimple_call): Identify
26723         memory operands.
26724         (func_checker::compare_gimple_assign): Likewise.
26725         * ipa-icf-gimple.h: New function.
26727 2015-01-09  Martin Liska  <mliska@suse.cz>
26729         PR ipa/64503
26730         * sreal.c (sreal::dump): Change unsigned format to signed for
26731         m_exp value.
26732         (sreal::to_double): Replace exp2 with scalbln.
26734 2015-01-09  Martin Liska  <mliska@suse.cz>
26736         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
26737         * ipa-icf.c (sem_function::equals_private): Add support for target and
26738         (sem_item_optimizer::merge_classes): Remove redundant function
26739         optimization flags comparison.
26740         * tree.h (target_opts_for_fn): New function.
26742 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26744         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
26746 2015-01-09  Kito Cheng  <kito@0xlab.org>
26748         PR rtl-optimization/64348
26749         * lra-constraints.c (split_reg): Fix caller-save store/restore
26750         instruction generation.
26752 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
26754         PR gcov-profile/61790
26755         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
26756         long long.  Fallback to int64_t if host doesn't have long long and
26757         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
26759 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26761         PR tree-optimization/63989
26762         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
26763         from 1000 to 10000.
26764         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
26765         (get_stridx): If we don't have a record for certain SSA_NAME,
26766         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
26767         constant offset, call get_stridx_plus_constant.
26768         (get_stridx_plus_constant): New function.
26769         (zero_length_string): Don't use get_stridx here.
26771         PR target/55023
26772         PR middle-end/64388
26773         * dse.c (struct insn_info): Mention frame_read set also
26774         before reload for tail calls on some targets.
26775         (scan_insn): Revert 2014-12-22 change.  Set frame_read
26776         also before reload for tail calls if
26777         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
26778         instead of add_non_frame_wild_read for non-const/memset
26779         tail calls after reload.
26781 2015-01-08  Jason Merrill  <jason@redhat.com>
26783         * ubsan.c (do_ubsan_in_current_function): New.
26784         (pass_ubsan::gate): Use it.
26785         * ubsan.h: Declare it.
26786         * convert.c (convert_to_integer): Use it.
26788 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26790         PR target/64338
26791         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
26792         compare_code when it is unconditionally overwritten afterwards.
26793         Use ix86_reverse_condition instead of reverse_condition.  Don't
26794         change code if *reverse_condition* returned UNKNOWN and don't
26795         swap ct/cf and negate diff in that case.
26797 2015-01-08  Mike Stump  <mikestump@comcast.net>
26799         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
26800         (pass_tsan_O0::gate): Likewise.
26801         * extend.texi (Function Attributes): Add no_sanitize_thread
26802         documentation.
26804 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
26806         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
26807         for registering builtins.
26808         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
26809         add -fopenmp to the argv_obstack used when invoking
26810         compile_for_target.
26812         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
26813         add "-m32" or "-m64" to argv_obstack.
26814         (generate_host_descr_file): Likewise, when invoking host_compiler.
26815         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
26816         ld.
26818 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26820         * config/sh/sh-mem.cc: Use constant as second operand when emitting
26821         tstsi_t insns.
26823 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26825         PR target/55212
26826         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
26827         constant load if constant operand fits into I08.
26829 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26831         PR sanitizer/64336
26832         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
26833         and TREE_THIS_VOLATILE for MEM_REFs.
26834         (build5_stat): Fix up initialization of TREE_READONLY and
26835         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
26837 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
26839         PR target/64533
26840         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
26841         of r for the second alternative of the destination operand.
26843 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
26845         PR target/36557
26846         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
26848 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26850         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
26851         keywords.
26852         ([-fivar-visibility], [-fvisibility]): Likewise.
26854 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26856         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
26857         the file where @code, @command, etc is more appropriate.
26859 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
26861         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
26862         of -mrecip= documentation.
26864 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26866         PR target/64505
26867         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
26868         correct reload handler if -m32 -mpowerpc64 is used.
26870 2015-01-06  Tom de Vries  <tom@codesourcery.com>
26872         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
26874 2015-01-08  Christian Bruel  <christian.bruel@st.com>
26876         PR target/64507
26877         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
26879 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26881         PR tree-optimization/63259
26882         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
26883         if optab exists for 16bit byteswap.
26885 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
26887         * opts.c (common_handle_option): Add support for
26888         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
26889         * doc/invoke.texi: Document -fno-sanitize=all,
26890         -f{,no-}sanitize-recover=all.  Document that
26891         -fsanitize=float-cast-overflow is not enabled
26892         by -fsanitize=undefined.  Fix up documentation
26893         of -f{,no-}sanitize-recover.
26895 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
26897         * config.gcc: Add Visium support.
26898         * configure.ac: Likewise.
26899         * configure: Regenerate.
26900         * doc/extend.texi (interrupt attribute): Add Visium.
26901         * doc/invoke.texi: Document Visium options.
26902         * doc/install.texi: Document Visium target.
26903         * doc/md.texi: Document Visium constraints.
26904         * common/config/visium: New directory.
26905         * config/visium: Likewise.
26907 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
26909         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
26910         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
26912 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
26914         * combine.c (combine_validate_cost): Do not count the cost of a
26915         split I2 twice.  Do not display it twice in the dump, either.
26917 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26919         Revert parts of r219199.
26920         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
26921         <inttypes.h>.
26922         ([-Wtraditional]): Restore markup on <limits.h>.
26924 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
26926         PR c++/31397
26927         * doc/invoke.texi: Document -Wsuggest-override.
26929 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
26931         PR rtl-optimization/64287
26932         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
26933         (process_options): Disable flag_ipa_ra if profiling.
26935 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
26937         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
26939 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
26941         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
26942         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
26943         put under #if TARGET_LOOPS guard.
26945 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
26947         * config/i386/i386.c (output_387_binary_op): Use std::swap.
26949 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
26951         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
26952         * rtl.h (refers_to_regno_p): Add overload.
26953         * cse.c: Use it.
26954         * bt-load.c: Likewise.
26955         * combine.c: Likewise.
26956         * df-scan.c: Likewise.
26957         * sched-deps.c: Likewise.
26958         * config/s390/s390.c: Likewise.
26959         * config/m32r/m32r.c: Likewise.
26960         * config/rs6000/spe.md: Likewise.
26961         * config/rs6000/rs6000.c: Likewise.
26962         * config/pa/pa.c: Likewise.
26963         * config/stormy16/stormy16.c: Likewise.
26964         * config/cris/cris.c: Likewise.
26965         * config/arc/arc.md: Likewise.
26966         * config/arc/arc.c: Likewise.
26967         * config/sh/sh.md: Likewise.
26968         * config/sh/sh.c: Likewise.
26969         * config/frv/frv.c: Likewise.
26971 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
26973         PR sanitizer/64265
26974         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
26975         call as cleanup of the whole body.
26976         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
26977         * tsan.c (replace_func_exit): New function.
26978         (instrument_func_exit): Moved earlier.
26979         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
26980         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
26981         been found.
26982         (tsan_pass): Don't call instrument_func_exit.
26983         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
26984         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
26985         inlining.
26987         PR sanitizer/64344
26988         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
26989         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
26990         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
26991         if the result is integer_zerop, return NULL_TREE.
26992         * convert.c (convert_to_integer): Pass expr as ARG.
26994         PR tree-optimization/64465
26995         * tree-inline.c (redirect_all_calls): During inlining
26996         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
26997         changed the stmt to a non-throwing call.
26999 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
27001         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
27002         etc markup throughout the file.
27004 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27006         Enable experimental TSAN support for Ada.
27007         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
27009 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27011         PR tree-optimization/64494
27012         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
27013         clear SSA_NAME_ANTI_RANGE_P flag.
27015 2015-01-05  Marek Polacek  <polacek@redhat.com>
27017         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
27019 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27021         Update copyright years.
27023         * gcc.c (process_command): Update copyright notice dates.
27024         * gcov-dump.c: Ditto.
27025         * gcov.c: Ditto.
27026         * doc/cpp.texi: Bump @copying's copyright year.
27027         * doc/cppinternals.texi: Ditto.
27028         * doc/gcc.texi: Ditto.
27029         * doc/gccint.texi: Ditto.
27030         * doc/gcov.texi: Ditto.
27031         * doc/install.texi: Ditto.
27032         * doc/invoke.texi: Ditto.
27034         * auto-profile.c, auto-profile.h: Fix up Copyright line.
27036 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
27038         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
27039         verb tense, etc.
27040         ([-fvtable-verify], [-fvtv-debug]): Likewise.
27041         ([-Wabi]): Likewise.
27042         ([-fmessage-length]): Likewise.
27043         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
27044         ([-Wno-discarded-qualifiers]): Likewise.
27045         ([-Wnodiscarded-array-qualifiers]): Likewise.
27046         ([-Wno-virtual-move-assign]): Likewise.
27047         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
27048         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
27049         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
27050         ([-fsanitize-undefined-trap-on-error]): Likewise.
27051         ([-floop-interchange]): Likewise.
27052         ([-ftree-coalesce-inlined-vars]): Likewise.
27053         ([-fvect-cost-model]): Likewise.
27054         ([-flto]): Likewise.
27055         ([--param]): Likewise.
27056         (Spec Files): Likewise.
27057         ([-mstrict-align]): Likewise.
27058         ([-mfix-cortex-a53-835769]): Likewise.
27059         ([-march], [-mtune]): Likewise.
27060         ([-mpic-register]): Likewise.
27061         ([-munaligned-access]): Likewise.
27062         ([-msp8]): Likewise.
27063         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
27064         (AVR Built-in Macros): Likewise.
27065         ([-mpreferred-stack-boundary]): Likewise.
27066         ([-mtune-crtl]): Likewise.
27067         ([-mashf]): Likewise.
27068         ([-mmcu=]): Likewise.
27069         ([-minrt]): Likewise.
27070         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
27071         ([-mupper-regs]): Likewise.
27072         ([-matomic-model]): Likewise.
27073         ([-mdiv]): Likewise.
27074         ([-mzdcbranch]): Likewise.
27075         ([-mdisable-callt]): Likewise.
27076         ([-msoft-float]): Likewise.
27077         ([-m8byte-align]): Likewise.
27078         ([-fstack-reuse]): Likewise.
27080 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27082         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
27083         Fix markup, light copy-editing.
27084         ([-fauto-profile]): Rewrite to fix formatting and content
27085         problems.
27087 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27089         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
27090         Copy-edit description.
27091         ([-fisolate-erroneous-paths-attribute]): Likewise.
27092         * common.opt (fisolate-erroneous-paths-dereference):
27093         Copy-edit description.
27094         (fisolate-erroneous-paths-attribute): Likewise.
27096 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27098         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
27099         tidy grammar.
27101 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27103         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
27104         ([-fvtv-debug]): Likewise.
27105         ([-Wc++-compat]): Likewise.
27106         ([-Wc++11-compat]): Likewise.
27107         ([-Wc++14-compat]): Likewise.
27108         ([-Wno-sized-deallocation]): Likewise.
27109         ([-femit-class-debug-always]): Likewise.
27110         ([-femit-struct-debug-detailed]): Likewise.
27111         ([-fno-keep-inline-dllexport]): Likewise.
27112         ([-fira-algorithm]): Likewise.
27113         ([-fira-region]): Likewise.
27114         ([-flra-remat]): Likewise.
27115         ([-fipa-ra]): Likewise.
27116         ([-fhoist-adjacent-loads]): Likewise.
27117         ([-fisolate-erroneous-paths-dereference]): Likewise.
27118         ([-fisolate-erroneous-paths-attribute]): Likewise.
27119         ([-ftree-switch-conversion]): Likewise.
27120         ([-ftree-tail-merge]): Likewise.
27121         ([-ftree-loop-if-convert]): Likewise.
27122         ([-ftree-loop-if-convert-stores]): Likewise.
27123         ([-ftree-loop-distribution]): Likewise.
27124         ([-ftree-loop-distribute-patterns]): Likewise.
27125         ([-flto-compression-level]): Likewise.
27126         ([-flto-report]): Likewise.
27127         ([-flto-report-wpa]): Likewise.
27128         ([-fuse-linker-plugin]): Likewise.
27129         ([-mfix-cortex-a53-835769]): Likewise.
27130         ([-mno-fix-cortex-a53-835769]): Likewise.
27131         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
27132         explicit listing; add a note to the discussion indicating they
27133         exist.  Reorder table to group similar options.  Add missing
27134         @opindex entries.  Add @need commands throughout the table to
27135         allow it to be split across multiple pages.
27136         ([-m8bit-idiv]): Fix @opindex.
27137         ([-mavx256-split-unaligned-load]): Likewise.
27138         ([-mavx256-split-unaligned-store]): Likewise.
27139         ([-mstack-protector-guard]): Likewise.
27140         ([-mcpu=]): Likewise.
27141         ([-mcpu]): Likewise.
27142         ([-mpointer-size=]): Likewise.
27144 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
27146         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
27147         instead of `m' constraint.  Likewise for unnamed movb comparison
27148         patterns using reg_before_reload_operand predicate.
27149         * config/pa/predicates.md (reg_before_reload_operand): Tighten
27150         predicate to reject register index and LO_SUM DLT memory forms
27151         after reload.
27153 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
27155         * doc/invoke.texi (Option Summary): Fix spelling of
27156         -fdevirtualize-at-ltrans.
27157         ([-fdevirtualize]): Fix markup.
27158         ([-fdevirtualize-speculatively]): Fix typo.
27159         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
27160         implementor-speaky.
27161         * common.opt (fdevirtualize-at-ltrans): Likewise.
27162         * ipa-devirt.c: Fix typos in comments throughout the file.
27163         (ipa_devirt): Fix typos in format strings for dump output.
27165 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
27167         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
27168         discussion of defaults, light copy-editing.
27170 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27172         * tsan.c (instrument_expr): corrected previous checkin.
27174 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27176         Instrument bit field and unaligned accesses for TSAN.
27177         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
27178         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
27179         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
27180         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
27181         unaligned memory regions.
27183 2015-01-01  Anthony Green  <green@moxielogic.com>
27185         * config/moxie/predicates.md (moxie_general_movsrc_operand):
27186         Restrict move source register offsets to 16 bits.
27188 Copyright (C) 2015 Free Software Foundation, Inc.
27190 Copying and distribution of this file, with or without modification,
27191 are permitted in any medium without royalty provided the copyright
27192 notice and this notice are preserved.