gcc/
[official-gcc.git] / gcc / ChangeLog
blob3b783cccbc1b92448b3d50e02d80987f1af05c6c
1 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
2             Petr Murzin  <petr.murzin@intel.com>
3             Kirill Yukhin <kirill.yukhin@intel.com>
5         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6         * doc/tm.texi: Regenerate.
7         * target.def: Add scatter builtin.
8         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
9         for loads/stores in case of gather/scatter accordingly.
10         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
11         (vect_check_gather): Rename to ...
12         (vect_check_gather_scatter): this.
13         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
17         and new checkings for it accordingly.
18         * tree-vect-stmts.c
19         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
20         (vect_check_gather_scatter): Use it instead of vect_check_gather.
21         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
23 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
25         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
26         define_insn.
27         (mulv16qi3): New define_expand.
29 2015-09-03  Martin Sebor  <msebor@redhat.com>
31         PR c/66516
32         * doc/extend.texi (Other Builtins): Document when the address
33         of a built-in function can be taken.
35 2015-09-03  Richard Biener  <rguenther@suse.de>
37         * dwarf2out.c (flush_limbo_die_list): Split out from ...
38         (dwarf2out_early_finish): ... here.
39         (dwarf2out_finish): Do not call dwarf2out_early_finish but
40         flush_limbo_die_list.  Assert we have no deferred asm names.
42 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
44         * optabs.c (expand_binop): Don't create a broadcast vector with a
45         source element wider than the inner mode.
47 2015-09-03  Richard Biener  <rguenther@suse.de>
49         * varasm.c (output_constant): Use fold_convert instead of
50         wide_int_to_tree.
52 2015-09-03  Tom de Vries  <tom@codesourcery.com>
54         PR tree-optimization/65637
55         * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
56         predecessors.
58 2015-09-03  Tom de Vries  <tom@codesourcery.com>
60         PR tree-optimization/65637
61         * omp-low.c (find_phi_with_arg_on_edge): New function.
62         (expand_omp_for_static_chunk): Fix inner loop phi.
64 2015-09-03  Tom de Vries  <tom@codesourcery.com>
66         PR tree-optimization/65637
67         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
68         that head is NULL.
70 2015-09-03  Tom de Vries  <tom@codesourcery.com>
72         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
74 2015-09-03  Tom de Vries  <tom@codesourcery.com>
76         * doc/invoke.texi (parloops-chunk-size): Add item.
77         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
78         * tree-parloops.c: Include params.h.
79         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
80         param parloops-chunk-size is used.
82 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
84         PR middle-end/67351
85         * fold-const.c (fold_binary_loc) : Move 
86         Transform (x >> c) << c into x & (-1<<c) or
87         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
88         types using simplify and match.
89         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
90         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
92 2015-09-03  Richard Biener  <rguenther@suse.de>
94         PR ipa/66705
95         * tree-ssa-structalias.c (ctor_for_analysis): New function.
96         (create_variable_info_for_1): Use ctor_for_analysis instead
97         of get_constructor.
98         (create_variable_info_for): Likewise.
100 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
102         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
103         in new callgraph edge.
105 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
107         PR target/59810
108         PR target/63652
109         PR target/63653
110         * config/aarch64/aarch64-simd.md
111         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
112         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
113         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
114         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
116 2015-09-02  Alan Modra  <amodra@gmail.com>
118         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
119         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
120         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
122 2015-09-02  Alan Modra  <amodra@gmail.com>
124         PR target/67417
125         * config/rs6000/predicates.md (current_file_function_operand): Don't
126         return true for weak symbols.
127         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
129 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
130             Andrew Bennett  <andrew.bennett@imgtec.com>
132         * config/mips/mips-opts.h (mips_cb_setting): New enum.
133         * config/mips/mips-protos.h: Add definitions for
134         mips_output_jump and mips_output_equal_conditional_branch
135         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
136         JIC instruction.
137         (mips_emit_compare): Add support for the MIPS R6 conditional
138         compact branches.
139         (mips_process_sync_loop): Likewise.
140         (mips_output_order_conditional_branch): Likewise.
141         (mips16_build_call_stub): Change MIPS_CALL to
142         mips_output_jump.
143         (mips_print_operand_punctuation): Update 's' case to only
144         apply to micromips r2.
145         (mips_adjust_insn_length): Add support for forbidden slot
146         hazards.
147         (mips_avoid_hazard): Likewise.
148         (mips_reorg_process_insns): Likewise.
149         (mips_output_jump): New function.
150         (mips_output_equal_conditional_branch): Likewise.
151         (mips_output_conditional_branch): Use jrc/bc if compact
152         branch support is enabled.  Ensure the forbidden slots
153         between the two branch instructions is filled with a nop.
154         (mips_option_override): Add support to process the compact
155         branch option and set the correct defaults.  Prevent
156         non-explict relocs being using for MIPS R6.
157         (mips_trampoline_init): Add compact branch support.
158         (mips_mult_zero_zero_cost): Allow zero initialisation of
159         accumulators with TARGET_DSP.
160         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
161         (TARGET_CB_MAYBE): New define.
162         (TARGET_CB_ALWAYS): New define.
163         (ISA_HAS_DELAY_SLOTS): New define.
164         (ISA_HAS_COMPACT_BRANCHES): New define.
165         (ISA_HAS_JRC): New define.
166         (MIPS_BRANCH_C): New define.
167         (MIPS_CALL): Removed.
168         (MICROMIPS_J): Removed.
169         * config/mips/mips.md (compact_form): New attr.
170         (hazard): Add support for forbidden slots.
171         (define_delay): Add support for compact branches.
172         (*branch_order<mode>): Likewise.
173         (*branch_order<mode>_inverted): Likewise.
174         (*branch_equality<mode>): Likewise.
175         (*branch_equality<mode>_inverted): Likewise.
176         (*jump_absolute): Likewise.
177         (*jump_pic): Likewise.
178         (indirect_jump): Use mips_output_jump to produce assembly output.
179         (tablejump_<mode>"): Likewise.
180         (*<optab>"): Likewise.
181         (<optab>_internal): Likewise.
182         (sibcall_internal): Likewise.
183         (sibcall_value_internal): Likewise.
184         (sibcall_value_multiple_internal): Likewise.
185         (call_internal): Likewise.
186         (call_split): Likewise.
187         (call_internal_direct): Likewise.
188         (call_direct_split): Likewise.
189         (call_value_internal): Likewise.
190         (call_value_split): Likewise.
191         (call_value_internal_direct): Likewise.
192         (call_value_direct_split): Likewise.
193         (call_value_multiple_internal): Likewise.
194         (call_value_multiple_split): Likewise.
195         (mips_get_fcsr_mips16_<mode>): Likewise.
196         (mips_set_fcsr_mips16_<mode>): Likewise.
197         (tls_get_tp_mips16_<mode>): Likewise.
198         * config/mips/mips.opt: Add -mcompact-branches option.
199         * config/mips/predicates.md (order_operator): Ensure the
200         conditional compact branches are only used if the ISA them.
201         * doc/invoke.texi: Document -mcompact-branches option.
203 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
205         PR target/61578
206         * lra-lives.c (process_bb_lives): Process move pseudos with the
207         same value for copies and preferences
208         * lra-constraints.c (match_reload): Create match reload pseudo
209         with the same value from single dying input pseudo.
211 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
213         PR target/67405
214         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
216 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
218         * trans-mem.c: Add contributed-by.
219         * trans-mem.h: Same.
221 2015-09-01  Richard Biener  <rguenther@suse.de>
223         * expr.c (expand_expr_real_1): For expanding TERed defs
224         set the current location to that of the def if not UNKNOWN.
226 2015-09-01  David Sherwood  <david.sherwood@arm.com>
228         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
230 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
232         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
233         then_cost, else_cost fields.  Change branch_cost field to unsigned
234         int.
235         (end_ifcvt_sequence): Call set_used_flags on each insn in the
236         sequence.
237         Include rtl-iter.h.
238         (noce_simple_bbs): New function.
239         (noce_try_move): Bail if basic blocks are not simple.
240         (noce_try_store_flag): Likewise.
241         (noce_try_store_flag_constants): Likewise.
242         (noce_try_addcc): Likewise.
243         (noce_try_store_flag_mask): Likewise.
244         (noce_try_cmove): Likewise.
245         (noce_try_minmax): Likewise.
246         (noce_try_abs): Likewise.
247         (noce_try_sign_mask): Likewise.
248         (noce_try_bitop): Likewise.
249         (bbs_ok_for_cmove_arith): New function.
250         (noce_emit_all_but_last): Likewise.
251         (noce_emit_insn): Likewise.
252         (noce_emit_bb): Likewise.
253         (noce_try_cmove_arith): Handle non-simple basic blocks.
254         (insn_valid_noce_process_p): New function.
255         (contains_mem_rtx_p): Likewise.
256         (bb_valid_for_noce_process_p): Likewise.
257         (noce_process_if_block): Allow non-simple basic blocks
258         where appropriate.
260 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
262         * tree-ssa-dom.c (record_equivalences_from_phis,
263         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
264         (lookup_avail_expr): Likewise, and remove comment and unused temp.
266 2015-09-01  Nick Clifton  <nickc@redhat.com>
268         * config/msp430/msp430.opt (mcpu): Fix typo.
270 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
272         * config/aarch64/aarch64.c (aarch64_set_current_function):
273         Re-layout any vector parameters have non-simd layout.
274         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
275         Delete.
276         (aarch64_simd_expand_args): Delete call to the above.
278 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
280         * doc/invoke.texi (asan-stack): Add space before option.
282 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
284         * tree.h (zerop): New function.
285         * tree.c (zerop): Likewise.
286         (element_precision): Handle expressions.
287         * match.pd (define_predicates): Add zerop.
288         (x <= +Inf): Fix comment.
289         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
290         * fold-const.c (fold_binary_loc): ... here. Remove.
292 2015-08-31  Richard Biener  <rguenther@suse.de>
294         PR middle-end/67381
295         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
297 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
299         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
300         (CEXPI): New operator list.
301         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
302         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
303         Converted from ...
304         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
306 2015-08-31  Tom de Vries  <tom@codesourcery.com>
308         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
309         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
310         parameter.
311         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
312         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
313         (rewrite_into_loop_closed_ssa): ... here.
314         (replace_uses_in_dominated_bbs): Remove function.
315         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
316         rewrite_into_loop_closed_ssa_1.
318 2015-08-31  Michael Matz  <matz@suse.de>
320         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
321         enter entry and exit blocks for reverse post order.
323 2015-08-31  Richard Biener  <rguenther@suse.de>
325         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
326         (lto_location_cache::current_sysp): Likewise.
327         (output_block::current_sysp): Likewise.
328         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
329         (lto_location_cache::apply_location_cache): Properly record
330         system header locations.
331         (lto_location_cache::input_location): Input whether a file
332         is a system header.
333         * lto-streamer-out.c (lto_output_location): Stream whether a file
334         is a system header.
336 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
338         PR bootstrap/67363
339         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
341 2015-08-31  Tom de Vries  <tom@codesourcery.com>
343         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
344         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
345         Improve function header comments.
347 2015-08-30  Michael Collison  <michael.collison@linaro.org>
349         PR other/67320
350         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
351         standard names
353 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
355         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
356         special_handling bitfield.
357         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
358         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
359         that represents a general xxpermdi.
360         (insn_is_swappable_p): Add handling for vec_concat of two
361         doublewords, which maps to a specific xxpermdi.
362         (adjust_xxpermdi): New function.
363         (adjust_concat): Likewise.
364         (handle_special_swappables): Call adjust_xxpermdi and
365         adjust_concat.
366         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
368 2015-08-30  Rich Felker <dalias@libc.org>
370         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
371         case instead of sh[123456ble]-*-*.
373 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
375         * ira.c (print_unform_and_important_classes,
376         print_translated_classes): Remove reg_class_names static array.
377         (print_unform_and_important_classes): Rename to ...
378         (print_uniform_and_important_classes): ... this.
379         (ira_debug_allocno_classes): Update accordingly.
381 2015-08-29  Tom de Vries  <tom@codesourcery.com>
383         PR tree-optimization/46193
384         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
385         clause.
387 2015-08-28  Jeff Law  <law@redhat.com>
389         PR lto/66752
390         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
391         unable to find X NE 0 in the tables, return X as the simplified
392         condition.
393         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
394         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
395         to VISISTED_BBS.
396         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
397         after removing the control flow statement and unnecessary edges.
399 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
401         Revert:
402         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
403                 PR tree-optimization/67283
404                 * tree-sra.c (type_consists_of_records_p): Rename to...
405                 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
407                 (completely_scalarize_record): Rename to...
408                 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
409                  code to:
410                 (scalarize_elem): New.
412 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
414         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
415         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
416         (aarch64_symbol_type): Likewise.
417         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
418         Likewise.
419         (aarch64_expand_mov_immediate): Likewise.
420         (aarch64_print_operand): Likewise.
421         (aarch64_classify_tls_symbol): Likewise.
423 2015-08-28  Richard Biener  <rguenther@suse.de>
425         * cgraphunit.c (symbol_table::compile): Move early debug generation
426         and finish...
427         (symbol_table::finalize_compilation_unit): ... back here and
428         add a !seen_error () guard.
430 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
432         * toplev.c (process_options): Do not use flag_loop_block,
433         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
434         flag_loop_optimize_isl.
436 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
438         * Makefile.in (OBJS): Remove graphite-blocking.o and
439         graphite-interchange.o.
440         * common.opt (floop-strip-mine, floop-interchange, floop-block):
441         Alias of floop-nest-optimize.
442         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
443         Document as alias of -floop-nest-optimize.
444         * graphite-blocking.c: Remove.
445         * graphite-interchange.c: Remove.
446         * graphite-optimize-isl.c: Include dumpfile.h.
447         (getScheduleForBand): Add dump for tiled loops.  Use
448         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
449         * graphite-poly.c (scop_max_loop_depth): Remove.
450         (print_scattering_function_1): Remove.
451         (print_scattering_function): Remove.
452         (print_scattering_functions): Remove.
453         (debug_scattering_function): Remove.
454         (debug_scattering_functions): Remove.
455         (apply_poly_transforms): Remove use of flag_loop_block,
456         flag_loop_strip_mine, and flag_loop_interchange.
457         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
458         PBB_ORIGINAL.
459         (print_pdr_access_layout): Remove.
460         (print_pdr): Print ISL representation.
461         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
462         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
463         (free_scop): Same.
464         (openscop_print_pbb_domain): Remove.
465         (print_pbb): Remove call to print_scattering_function.
466         (openscop_print_scop_context): Remove.
467         (print_scop_context): Do not print matrices anymore.
468         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
469         SCOP_TRANSFORMED_SCHEDULE.
470         (print_isl_set): Add printing of a new line.
471         (print_isl_map): Same.
472         (print_isl_aff): Same.
473         (print_isl_constraint): Same.
474         (loop_to_lst): Remove.
475         (scop_to_lst): Remove.
476         (lst_indent_to): Remove.
477         (print_lst): Remove.
478         (debug_lst): Remove.
479         (dot_lst_1): Remove.
480         (dot_lst): Remove.
481         (reverse_loop_at_level): Remove.
482         (reverse_loop_for_pbbs): Remove.
483         * graphite-poly.h (pdr_dim_iter_domain): Remove.
484         (pdr_nb_params): Remove.
485         (pdr_alias_set_dim): Remove.
486         (pdr_subscript_dim): Remove.
487         (pdr_iterator_dim): Remove.
488         (pdr_parameter_dim): Remove.
489         (same_pdr_p): Remove.
490         (struct poly_scattering): Remove.
491         (struct poly_bb): Remove _original, _transformed, _saved.
492         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
493         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
494         (PBB_NB_LOCAL_VARIABLES): Remove.
495         (PBB_NB_SCATTERING_TRANSFORM): Remove.
496         (schedule_to_scattering): Remove.
497         (number_of_write_pdrs): Remove.
498         (pbb_dim_iter_domain): Remove.
499         (pbb_nb_params): Remove.
500         (pbb_nb_scattering_orig): Remove.
501         (pbb_nb_scattering_transform): Remove.
502         (pbb_nb_dynamic_scattering_transform): Remove.
503         (pbb_nb_local_vars): Remove.
504         (pbb_iterator_dim): Remove.
505         (pbb_parameter_dim): Remove.
506         (psco_scattering_dim): Remove.
507         (psct_scattering_dim): Remove.
508         (psct_local_var_dim): Remove.
509         (psco_iterator_dim): Remove.
510         (psct_iterator_dim): Remove.
511         (psco_parameter_dim): Remove.
512         (psct_parameter_dim): Remove.
513         (psct_dynamic_dim): Remove.
514         (psct_static_dim): Remove.
515         (psct_add_local_variable): Remove.
516         (new_lst_loop): Remove.
517         (new_lst_stmt): Remove.
518         (free_lst): Remove.
519         (copy_lst): Remove.
520         (lst_add_loop_under_loop): Remove.
521         (lst_depth): Remove.
522         (lst_dewey_number): Remove.
523         (lst_dewey_number_at_depth): Remove.
524         (lst_pred): Remove.
525         (lst_succ): Remove.
526         (lst_find_pbb): Remove.
527         (find_lst_loop): Remove.
528         (lst_find_first_pbb): Remove.
529         (lst_empty_p): Remove.
530         (lst_find_last_pbb): Remove.
531         (lst_contains_p): Remove.
532         (lst_contains_pbb): Remove.
533         (lst_create_nest): Remove.
534         (lst_remove_from_sequence): Remove.
535         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
536         (lst_niter_for_loop): Remove.
537         (pbb_update_scattering): Remove.
538         (lst_update_scattering_under): Remove.
539         (lst_update_scattering): Remove.
540         (lst_insert_in_sequence): Remove.
541         (lst_replace): Remove.
542         (lst_substitute_3): Remove.
543         (lst_distribute_lst): Remove.
544         (lst_remove_all_before_including_pbb): Remove.
545         (lst_remove_all_before_excluding_pbb): Remove.
546         (struct scop): Remove original_schedule, transformed_schedule, and
547         saved_schedule.
548         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
549         (SCOP_SAVED_SCHEDULE): Remove.
550         (poly_scattering_new): Remove.
551         (poly_scattering_free): Remove.
552         (poly_scattering_copy): Remove.
553         (store_scattering_pbb): Remove.
554         (store_lst_schedule): Remove.
555         (restore_lst_schedule): Remove.
556         (store_scattering): Remove.
557         (restore_scattering_pbb): Remove.
558         (restore_scattering): Remove.
559         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
560         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
561         compute the scattering polyhedron dimension from the dimension of
562         pbb->domain.
563         (build_scop_scattering): Update call to
564         build_pbb_scattering_polyhedrons.
565         (build_poly_scop): Remove call to scop_to_lst.
566         * graphite.c (graphite_transform_loops): Add call to print_scop.
567         (gate_graphite_transforms): Remove use of flag_loop_block,
568         flag_loop_interchange, and flag_loop_strip_mine.
570 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
572         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
573         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
574         -floop-nest-optimize.
575         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
576         (generate_luj_sepclass): Remove.
577         (generate_luj_options): Remove.
578         (set_options): Remove opt_luj.
579         (scop_to_isl_ast): Remove opt_luj.
580         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
581         flag_loop_unroll_jam.
582         (getPrevectorMap_full): Remove.
583         (getScheduleForBandList): Remove map_sepcl.
584         (getScheduleMap): Same.
585         (apply_schedule_map_to_scop): Remove sepcl.
586         (optimize_isl): Same.
587         * graphite-poly.c (apply_poly_transforms): Remove check for
588         flag_loop_unroll_jam.
589         (new_poly_bb): Remove map_sepclass.
590         * graphite-poly.h (struct poly_bb): Same.
591         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
592         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
593         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
594         * toplev.c (process_options): Remove flag_loop_unroll_jam.
596 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
598         PR target/67317
599         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
600         (addqi3_cc): Ditto.
601         (UNSPEC_ADD_CARRY): Remove.
602         (addqi3_cconly_overflow): New expander.
603         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
604         Adjust for changed add<mode>3_carry.
605         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
606         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
607         (<plusminus_insn><mode>3_carry): Remove expander.
608         (*<plusminus_insn><mode>3_carry): Split insn pattern to
609         add<mode>3_carry and sub<mode>3_carry.
610         (plusminus_carry_mnemonic): Remove code attribute.
611         (add<mode>3_carry): Canonicalize insn pattern.
612         (*addsi3_carry_zext): Ditto.
613         (sub<mode>3_carry): Ditto.
614         (*subsi3_carry_zext): Ditto.
615         (adcx<mode>3): Remove insn pattern.
616         (addcarry<mode>): New insn pattern.
617         (subborrow<mode>): Ditto.
618         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
619         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
620         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
621         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
622         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
623         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
624         Rewrite expander to not clobber carry flag chains.
626 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
628         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
629         instead of a rotate.
631 2015-08-27  Marek Polacek  <polacek@redhat.com>
633         PR middle-end/67005
634         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
635         an entry into an irreducible region.
637 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
639         * configure: Regenerate.
641 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
643         PR tree-optimization/67283
644         * tree-sra.c (type_consists_of_records_p): Rename to...
645         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
647         (completely_scalarize_record): Rename to...
648         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
649         (scalarize_elem): New.
651 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
653         * tree-sra.c (completely_scalarize_var): Rename to...
654         (create_total_scalarization_access): ... Here. Drop call to
655         completely_scalarize_record.
657         (analyze_all_variable_accesses): Replace completely_scalarize_var
658         with create_total_scalarization_access and completely_scalarize_record.
660 2015-08-27  Alan Modra  <amodra@gmail.com>
662         PR target/67356
663         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
664         for operand 1.
666 2015-08-27  Richard Biener  <rguenther@suse.de>
668         * passes.c (rest_of_decl_compilation): Guard early_global_decl
669         call with !seen_error ().
670         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
671         early debug generation and finish...
672         (symbol_table::compile): ... here to put it after a !seen_error ()
673         guard.
675 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
677         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
678         Solaris 12+.
680 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
681             Andre Vieira  <andre.simoesdiasvieira@arm.com>
683         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
684         (*cb<optab><mode>1): Likewise.
685         (*tb<optab><mode>1): Likewise.
686         (*cb<optab><mode>1): Likewise.
687         * config/aarch64/iterators.md (inv_cb): New code attribute.
688         (inv_tb): Likewise.
689         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
690         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
692 2015-08-27  Richard Biener  <rguenther@suse.de>
694         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
696 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
698         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
699         trap to fix ICE.
701 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
703         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
704         Add declaration.
706         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
707         comment.
708         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
709         floating point in VSX registers.
710         (rs6000_output_move_128bit): Always print out the set insn if we
711         can't generate an appropriate 128-bit move.
712         (rs6000_generate_compare): Add support for IEEE 128-bit floating
713         point in VSX registers comparisons.
714         (rs6000_expand_float128_convert): Likewise.
716         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
717         predicate for only GPR hard registers.
719         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
720         modes to iterators. Add new iterators for moving 128-bit values in
721         scalar FPR registers and VSX registers.
722         (FMOVE128): Likewise.
723         (FMOVE128_FPR): Likewise.
724         (FMOVE128_GPR): Likewise.
725         (FMOVE128_VSX): Likewise.
726         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
727         in VSX registers.
728         (IFKF): Likewise.
729         (IBM128): Likewise.
730         (TFIFKF): Likewise.
731         (RELOAD): Add IEEE 128-bit floating point modes.
732         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
733         floating point in VSX registers modes.
734         (signbit<mode>2, IBM128 iterator): Likewise.
735         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
736         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
737         (negtf2): Likewise.
738         (neg<mode>2, TFIFKF iterator): Likewise.
739         (negtf2_internal): Likewise.
740         (abstf2): Likewise.
741         (abs<mode>2, TFIFKF iterator): Likewise.
742         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
743         VSX insn support for negate, absolute value, and negative absolute
744         value.
745         (ieee_128bit_vsx_neg<mode>2): Likewise.
746         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
747         (ieee_128bit_vsx_abs<mode>2): Likewise.
748         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
749         (ieee_128bit_vsx_nabs<mode>2): Likewise.
750         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
751         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
752         floating point in VSX registers.
753         (unpack<mode>_dm): Likewise.
754         (unpack<mode>_nodm): Likewise.
755         (pack<mode>): Likewise.
756         (unpackv1ti): Likewise.
757         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
758         (packv1ti): Likewise.
759         (pack<mode>, FMOVE128_VSX iterator): Likewise.
760         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
761         registers.
762         (extenddftf2_internal): Likewise.
763         (trunctfdf2): Likewise.
764         (trunctfdf2_internal2): Likewise.
765         (fix_trunc_helper): Likewise.
766         (fix_trunctfdi2"): Likewise.
767         (floatditf2): Likewise.
768         (floatuns<mode>tf2): Likewise.
769         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
770         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
771         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
772         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
773         (float<SDI:mode><IFKF:mode>2): Likewise.
774         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
776 2015-08-26  Renlin Li  <renlin.li@arm.com>
778         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
780 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
781             Jiong Wang  <jiong.wang@arm.com>
783         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
784         (tlsie_tiny_<mode>): New define_insn.
785         (tlsie_tiny_sidi): Likewise.
786         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
787         SYMBOL_TINY_TLSIE.
788         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
789         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
790         SYMBOL_TINY_TLSIE.
791         (aarch64_expand_mov_immediate): Likewise.
792         (aarch64_print_operand): Likewise.
793         (arch64_classify_tls_symbol): Likewise.
795 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
797         * config/arm/arm-arches.def: Replace single value flags with
798         an initializer built from ARM_FSET_MAKE_CPU1.
799         * config/arm/arm-cores.def: Likewise.
800         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
801         derivation from the ARM_CORE macro definition, use the given value
802         instead.
803         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
804         ARM_ARCH macro definition, use the given value instead.
806 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
808         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
809         feature set.
810         (struct builtin_description): Replace field mask with field
811         features.
812         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
813         (IWMMXT2_BUILTIN): Likewise.
814         (IWMMXT2_BUILTIN2): Likewise.
815         (FP_BUILTIN): Likewise.
816         (CRC32_BUILTIN): Likewise.
817         (CRYPTO_BUILTIN): Likewise.
818         (iwmmx_mbuiltin): Likewise.
819         (iwmmx2_mbuiltin): Likewise.
820         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
821         struct builtin_description.
823 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
825         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
826         (struct builtin_description): Change type of mask to unsigned
827         long.
828         * config/arm/arm-protos.h (insn_flags): Declare as type
829         arm_feature_set.
830         (tune_flags): Likewise.
831         * config/arm/arm.c (feature_count): New.
832         (insn_flags): Define as type arm_feature_set.
833         (tune_flags): Likewise.
834         (struct processors): Define field flags as type arm_feature_set.
835         (all_cores): Update for change to struct processors.
836         (all_architectures): Likewise.
837         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
838         macros.
839         (arm_option_override_internal): Likewise.
840         (arm_option_override): Likewise.
842 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
843             Jiong Wang  <jiong.wang@arm.com>
845         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
846         tls size for tiny, small, large memory model.
847         (aarch64_load_symref_appropriately): Support new symbol types.
848         (aarch64_expand_mov_immediate): Likewise.
849         (aarch64_print_operand): Likewise.
850         (aarch64_classify_tls_symbol): Likewise.
851         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
852         (aarch64_symbol_type): Likewise.
853         * config/aarch64/aarch64.md (tlsle): Deleted.
854         (tlsle12_<mode>): New define_insn.
855         (tlsle24_<mode>): Likewise.
856         (tlsle32_<mode>): Likewise.
857         (tlsle48_<mode>): Likewise.
858         * doc/sourcebuild.texi (AArch64-specific attributes): Document
859         "aarch64_tlsle32".
861 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
863         * config/arm/arm-protos.h (FL_NONE): New.
864         (FL_ANY): New.
865         (arm_feature_set): New.
866         (ARM_FSET_MAKE): New.
867         (ARM_FSET_MAKE_CPU1): New.
868         (ARM_FSET_MAKE_CPU2): New.
869         (ARM_FSET_CPU1): New.
870         (ARM_FSET_CPU2): New.
871         (ARM_FSET_EMPTY): New.
872         (ARM_FSET_ANY): New.
873         (ARM_FSET_HAS_CPU1): New.
874         (ARM_FSET_HAS_CPU2): New.
875         (ARM_FSET_HAS_CPU): New.
876         (ARM_FSET_ADD_CPU1): New.
877         (ARM_FSET_ADD_CPU2): New.
878         (ARM_FSET_DEL_CPU1): New.
879         (ARM_FSET_DEL_CPU2): New.
880         (ARM_FSET_UNION): New.
881         (ARM_FSET_INTER): New.
882         (ARM_FSET_XOR): New.
883         (ARM_FSET_EXCLUDE): New.
884         (AFM_FSET_IS_EMPTY): New.
885         (ARM_FSET_CPU_SUBSET): New.
887 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
889         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
890         SYMBOL_TLSLE to SYMBOL_TLSLE24.
891         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
892         Likewise.
893         (aarch64_expand_mov_immediate): Likewise.
894         (aarch64_print_operand): Likewise.
895         (aarch64_classify_symbol): Likewise.
897 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
899         * config/aarch64/aarch64.opt (mtls-size): New entry.
900         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
901         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
902         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
904 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
906         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
907         ARM_CORE entry.  Fix some white-space.
908         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
909         ARM_CORE definition.
911 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
913         * fold-const.c (fold_binary_loc) : Move Optimize 
914         root(x)*root(y) as root(x*y) to match.pd.
915         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
916         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
917         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
918         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
919         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
920         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
921         (mult (exps:s @0) (exps:s @1)) : New simplifier.
922         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
923         (rdiv @0 (exps:s @1)) : New simplifier.
925 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
927         * gcc.c (driver::finalize): Only assign to extra_specs if
928         [EXTRA_SPECS].
930 2015-08-25  Marek Polacek  <polacek@redhat.com>
932         PR middle-end/67330
933         * varasm.c (declare_weak): Return after giving an error.
935 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
937         * gcc-main.c (main): Add params to driver ctor.
938         * gcc.c (class env_manager): New.
939         (env): New global.
940         (env_manager::init): New.
941         (env_manager::get): New.
942         (env_manager::xput): New.
943         (env_manager::restore): New.
944         Poison getenv and putenv.
945         (DEFAULT_TARGET_SYSTEM_ROOT): New.
946         (target_system_root): Update initialization to use
947         DEFAULT_TARGET_SYSTEM_ROOT.
948         (struct spec_list): Add field "default_ptr".
949         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
950         (init_spec): Likewise.
951         (set_spec): Clear field "default_ptr".
952         (read_specs): Free "spec" and "buffer".
953         (xputenv): Reimplement in terms of env_manager.
954         (process_command): Replace ::getenv calls with calls to the
955         env_manager singleton.
956         (process_brace_body): Free string in three places.
957         (driver::driver): New.
958         (driver::~driver): New.
959         (used_arg): Convert from a function to...
960         (class used_arg_t): ...this class, and...
961         (used_arg): ...this new global instance.
962         (used_arg_t::finalize): New function.
963         (getenv_spec_function): Add "const" to local "value".  Replace
964         ::getenv call with call to the env_manager singleton.
965         (path_prefix_reset): New function.
966         (driver::finalize): New function.
967         * gcc.h (driver::driver): New.
968         (driver::~driver): New.
969         (driver::finalize): New.
971 2015-08-25  Nathan Sidwell  <nathan@acm.org>
973         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
974         target doesn't have one.
976 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
978         PR target/67346
979         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
981 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
983         PR target/67344
984         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
985         a define_insn, remove second alternative.
987 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
988             Joseph Myers  <joseph@codesourcery.com>
990         * gcc.c (struct switchstr): Expand comment.
992 2015-08-25  Nathan Sidwell  <nathan@acm.org>
994         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
995         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
997 2015-08-25  Richard Biener  <rguenther@suse.de>
999         PR middle-end/67306
1000         * genmatch.c (expr::gen_transform): Verify the result of
1001         builtin_decl_implicit.
1002         (dt_simplify::gen_1): Likewise.
1004 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1006         * config/arm/constraints.md: Also list Cs and US ARM-specific
1007         constraints as used.
1009 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1011         PR target/66609
1012         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
1013         UNSPEC_PCREL.
1014         (nonpic_symbol_mentioned_p): Likewise.
1015         (sh_delegitimize_address): Likewise.
1016         (sh_function_ok_for_sibcall): Take into account weak symbols.
1017         (sh_expand_sym_label2reg): New.
1018         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
1019         * config/sh/sh.md (UNSPEC_PCREL): New enum.
1020         (call_pcrel): Use sh_expand_sym_label2reg.
1021         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1022         (symPCREL_label2reg) New expand.
1024 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
1026         * graphite-poly.c: Change type of region from void* to sese.
1027         * graphite-poly.h (struct scop): Changing the type of scop::region
1028         from void* to sese. Change accessor macro accordingly.
1029         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
1031 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
1033         * graphite-scop-detection.c (stmt_simple_for_scop_p):
1034         Constrain only on INTEGER_TYPE.
1036 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1038         PR target/67211
1039         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
1040         -mefficient-unaligned-vsx on ISA 2.7.
1042         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
1043         option to a masked option.
1045         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
1046         logic for -mefficient-unaligned-vsx so that it is set via an arch
1047         ISA option, instead of being set if -mtune=power8 is set. Move
1048         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
1049         near other default option handling.
1051 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1053         * genflags.c (gen_macro): Delete.
1054         (gen_proto): Don't create GEN.*CALL.* macros.
1055         * gensupport.h (get_file_location): Declare.
1056         * gensupport.c (rtx_locs): New variable.
1057         (read_md_rtx): Record rtx locations.
1058         (get_file_location): New function.
1059         * target-insns.def (call, call_pop, call_value, call_value_pop)
1060         (sibcall, sibcall_value): New patterns.
1061         * gentarget-def.c (parse_argument): New function.
1062         (def_target_insn): Use it.  Handle optional operands.  Raise an
1063         error if an .md pattern has the wrong number of operands for the
1064         pattern name.  Remove the names of unused operands from the prototype.
1065         * builtins.c (expand_builtin_apply): Use targetm functions
1066         instead of HAVE_call_value and GEN_CALL_VALUE.
1067         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
1068         and sibcall_value_pop.
1069         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
1070         of GEN_CALL.
1071         * config/alpha/alpha.md (untyped_call): Likewise.
1072         * config/iq2000/iq2000.md (untyped_call): Likewise.
1073         * config/m68k/m68k.md (untyped_call): Likewise.
1074         * config/mips/mips.md (untyped_call): Likewise.
1075         * config/pa/pa.md (untyped_call): Likewise.
1076         * config/rs6000/rs6000.md (untyped_call): Likewise.
1077         * config/sparc/sparc.md (untyped_call): Likewise.
1078         * config/tilegx/tilegx.md (untyped_call): Likewise.
1079         * config/tilepro/tilepro.md (untyped_call): Likewise.
1080         * config/visium/visium.md (untyped_call): Likewise.
1081         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
1082         gen_call_value instead of GEN_CALL_VALUE.
1083         * config/arm/arm.md (untyped_call): Likewise.
1084         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
1085         GEN_CALL.
1087 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1089         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
1090         (have_cbranchcc4): New variable.
1091         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
1092         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
1093         (if_convert): Initialize have_cbranchcc4.
1095 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1097         * builtins.c (expand_cmpstrn): Rename to...
1098         (expand_cmpstrn_or_cmpmem): ...this.
1099         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
1100         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
1101         Remove mode argument.
1102         (expand_builtin): Update accordingly.
1104 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1106         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
1107         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
1108         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
1109         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
1110         Add predicates for operands 0 and 3.
1111         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
1112         operand.
1113         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
1114         immediate_operand to nonmemory_operand.
1116 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1118         * df-scan.c (df_insn_info_init_fields): New function, split out
1119         from...
1120         (df_insn_create_insn_record): ...here.
1121         (df_insn_info_free_fields): New function, split out from...
1122         (df_insn_info_delete): ...here.
1123         (df_insn_rescan): Use the new functions instead of freeing and
1124         reallocating the df_insn_info.
1126 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1128         * doc/install.texi (Binaries): Remove links no longer valid.
1130 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
1132         * config/nvptx/mkoffload.c (process): Replace
1133         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
1135 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1137         PR target/67329
1138         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
1140 2015-08-24  Renlin Li  <renlin.li@arm.com>
1142         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1143         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1144         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1145         * config/arm/constraints.md ("j"): Add check for high code.
1147 2015-08-24  Tom de Vries  <tom@codesourcery.com>
1149         PR tree-optimization/65468
1150         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
1151         chunk_size is one.
1153 2015-08-24  Nathan Sidwell  <nathan@acm.org>
1155         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
1156         change to nvptx_type_from_mode call. Use arg_promotion for both
1157         split and non-split args.
1159 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1161         * target-insns.def (movstr): New pattern.
1162         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
1163         (expand_movstr): Use targetm rather than HAVE_movstr/
1164         CODE_FOR_movstr.
1166 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1168         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
1169         cast syntax.
1171 2015-08-24  Andrew Pinski  <apinski@cavium.com>
1173         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
1174         AARCH64_EXTRA_TUNING_OPTION.
1175         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
1176         (aarch64_extra_tuning_flags): Base the shifted value on the index instead
1177         of the argument to AARCH64_EXTRA_TUNING_OPTION.
1178         * config/aarch64/aarch64.c: Remove the last argument to
1179         AARCH64_EXTRA_TUNING_OPTION.
1181 2015-08-23  Nathan Sidwell  <nathan@acm.org>
1183         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
1184         decls.
1185         (nvptx_declare_function_name): Insert formatting tabs for
1186         consistency.
1188 2015-08-23  Tom de Vries  <tom@codesourcery.com>
1190         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
1191         parm_decl, rather than generating a dummy default def in cfun.
1192         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
1193         ssa_name from cfun and child_fn do not share a stmt as def stmt.
1194         (move_stmt_op): Handle PARM_DECl.
1195         (gather_ssa_name_hash_map_from): New function.
1196         (move_sese_region_to_fn): Add default defs for function params, and add
1197         them to vars_map.  Release copied ssa names.
1198         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
1200 2015-08-23  Tom de Vries  <tom@codesourcery.com>
1202         * doc/sourcebuild.texi: Rename vect_no_int_max with
1203         vect_no_int_min_max.  Update description.
1205 2015-08-22  Andrew Pinski  <apinski@cavium.com>
1207          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
1208         * config/aarch64/aarch64-protos.h
1209         (aarch64_fusion_pairs_index): New enum.
1210         (aarch64_fusion_pairs): Base the shifted value on the index instead
1211         Rewrite AARCH64_FUSE_ALL to be based on the end index.
1212         of the argument to AARCH64_FUSION_PAIR.
1213         * config/aarch64/aarch64.c: Remove the last argument to
1214         AARCH64_FUSION_PAIR.
1216 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
1218         * dominance.c (new_zero_array): Define.
1219         (dom_info): Redefine as class with proper encapsulation.
1220         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
1221         Add new members.
1222         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
1223         allocations/deallocations.  Pass function as parameter (instead of
1224         using cfun).
1225         (dom_info::get_idom): Define accessor method.
1226         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
1227         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
1228         (calculate_dominance_info): Adjust to use dom_info class.
1229         (verify_dominators): Likewise.
1231 2015-08-21  Alexandre Oliva <aoliva@redhat.com>
1233         * print-rtl.c (print_rtx): Check the correct range for
1234         flag_dump_unnumbered_links to behave as documented.
1236         PR rtl-optimization/67227
1237         PR rtl-optimization/64164
1238         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
1239         (nonoverlapping_memrefs_p): Test offsets and sizes when given
1240         identical gimple_reg exprs.
1242 2015-08-21  Nathan Sidwell  <nathan@acm.org>
1244         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
1245         expansion.
1246         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
1247         crtl->stack_alignment_needed to determine alignment.
1248         (nvptx_get_drap_rtx): New.
1249         (TARGET_GET_DRAP_RTX): Override.
1250         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
1252 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1254         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
1256 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1258         * configure.ac: Remove uwin* cases.
1259         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
1260         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
1261         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
1262         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
1263         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
1264         i[34567]86-*-uwin*, powerpc-*-beos*.
1266 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
1268         * gencodes.c (gencodes): Print the comma for the preceding
1269         enum value rather than the current one.  Use aliased enum values
1270         rather than #defines for compiled-out patterns.
1271         (main): Update accordingly.  Replace LAST_INSN_CODE with
1272         NUM_INSN_CODES.
1273         * lra.c (insn_code_data): Update accordingly.
1274         (finish_insn_code_data_once, get_static_insn_data): Likewise.
1275         * recog.h (target_recog): Likewise.
1276         (preprocess_insn_constraints): Change parameter to unsigned int.
1277         * recog.c (preprocess_insn_constraints): Likewise.
1278         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
1279         * tree-vect-stmts.c (vectorizable_operation): Simplify.
1281 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1283         PR rtl-optimization/61657
1284         * loop-iv.c (iv_number_of_iterations): Declare up and down as
1285         unsigned.  Remove superflous uint64_t cast.
1287 2014-08-21  Felix Yang  <felix.yang@huawei.com>
1288             Jiji Jiang  <jiangjiji@huawei.com>
1290         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
1291         and get builtin function code directly from CALL.
1292         (gimple_stringop_fixed_value): Modified accordingly.
1293         (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
1294         accordingly and only accept BUILT_IN_NORMAL string operations.
1296 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1298         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
1300 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1302         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
1303         to match.pd.
1304         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
1305         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
1306         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
1307         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
1308         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
1309         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
1310         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
1311         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
1312         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
1313         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
1315         * match.pd (SIN ) : New Operator.
1316         (TAN) : New Operator.
1317         (mult (SQRT@1 @0) @1) : New simplifier.
1318         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
1319         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1320         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1321         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
1322         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
1323         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
1324         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
1325         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
1326         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
1327         (rdiv @0 (POW:s @1 @2)) : New simplifier.
1329 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
1331         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
1332         loop if EXPR is simplified to const value.
1334 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
1336         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1337         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
1339 2015-08-21  Richard Biener  <rguenther@suse.de>
1341         PR middle-end/67285
1342         * gimple-fold.c (replace_stmt_with_simplification): Assert
1343         seq is empty when replacing a call with itself but different
1344         arguments.
1345         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
1346         a call require that it is const.
1348 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1350         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
1351         * builtins.c (get_object_alignment_2): Adjust.
1352         * varasm.c (align_variable): Likewise.
1353         (get_variable_align): Likewise.
1354         (build_constant_desc): Likewise.
1355         (force_const_mem): Likewise.
1356         * doc/tm.texi.in: Likewise.
1357         * doc/tm.texi: Regenerate.
1359 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1361         * genconfig.c (main): Always define HAVE_cc0.
1362         * recog.c (rest_of_handle_peephole2): Adjust.
1364 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1366         * reorg.c (relax_delay_slots): Don't use #if to check value of
1367         HAVE_cc0.
1369 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1371         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
1372         * targhooks.c (default_have_conditional_execution): Adjust.
1374 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1376         * rtl.h (rtvec_all_equal_p): Declare.
1377         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
1378         * rtl.c (rtvec_all_equal_p): New function.
1379         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
1380         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
1381         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
1382         * config/arm/arm.c (neon_vdup_constant): Likewise.
1383         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
1384         * config/tilegx/constraints.md (W, Y): Likewise.
1385         * config/tilepro/constraints.md (W, Y): Likewise.
1386         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
1387         (classify_immediate): Use unwrap_const_vec_duplicate.
1388         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
1389         (reg_or_v2s8bit_operand): Likewise.
1390         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
1391         (reg_or_v4s8bit_operand): Likewise.
1393 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1395         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
1396         (vec_shasigma_be): New #define.
1397         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
1398         (VPMSUMH): Likewise.
1399         (VPMSUMW): Likewise.
1400         (VPMSUMD): Likewise.
1401         (VPMSUM): New BU_P8V_OVERLOAD_2.
1402         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
1403         entries for VEC_MADD and VEC_VPMSUM.
1405 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
1407         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
1408         Multiply argument avr_n_flash by 64 to match unit of "KiB".
1409         (avr_pgm_check_var_decl): Same.
1411 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
1413         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
1414         initialization of HFmode scalar type (float16_t) to...
1415         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
1416         code.
1418         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
1420         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
1421         having an -mfp16-format.
1423 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1425         * config/i386/predicates.md (vector_all_ones_operand): Use
1426         CONSTM1_RTX to simplify definition.
1428 2015-08-20  Richard Biener  <rguenther@suse.de>
1430         * toplev.c (compile_file): Remove loop calling late_global_decl
1431         on all symbols.
1432         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
1433         on decls we assembled.
1435 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
1437         * common/config/aarch64/aarch64-common.c
1438         (AARCH64_CPU_NAME_LENGTH): Delete.
1439         (aarch64_option_extension): New.
1440         (all_extensions): Likewise.
1441         (processor_name_to_arch): Likewise.
1442         (arch_to_arch_name): Likewise.
1443         (all_cores): New.
1444         (all_architectures): Likewise.
1445         (aarch64_get_extension_string_for_isa_flags): Likewise.
1446         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
1447         architecture names.
1448         * config/aarch64/aarch64-protos.h
1449         (aarch64_get_extension_string_for_isa_flags): New.
1450         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
1451         (aarch64_option_print): Get the string to print from
1452         aarch64_get_extension_string_for_isa_flags.
1453         (aarch64_declare_function_name): Likewise.
1454         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
1455         (MCPU_TO_MARCH_SPEC): This.
1456         (ASM_CPU_SPEC): Use it.
1457         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
1458         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
1459         (EXTRA_SPEC_FUNCTIONS): Use it.
1461 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
1463         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
1464         expansion when !ISA_HAS_LWL_LWR.
1465         (mips_block_move_straight): Update the size of elements copied to
1466         account for alignment when !ISA_HAS_LWL_LWR.
1467         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
1469 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1471         * expr.c (expand_expr_real_2): Check gimple statement during
1472         LSHIFT_EXPR expand.
1474 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
1476         * common.opt (fstack-protector): Initialize to -1.
1477         (fstack-protector-all): Likewise.
1478         (fstack-protector-strong): Likewise.
1479         (fstack-protector-explicit): Likewise.
1480         * configure.ac: Add --enable-default-ssp.
1481         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
1482         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
1483         -1.
1484         * doc/install.texi: Document --enable-default-ssp.
1485         * config.in: Regenerated.
1486         * configure: Likewise.
1488 2015-08-19  Alexandre Oliva <aoliva@redhat.com>
1490         PR rtl-optimization/64164
1491         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
1492         (parm_in_stack_slot_p): ... this.  Disregard mode, what
1493         matters is whether the parm will live in a pseudo or a stack
1494         slot.
1495         (expand_one_ssa_partition): Deal with params without a default
1496         def.  Disregard mode.
1497         * cfgexpand.h: Renamed function declaration.
1498         * tree-ssa-coalesce.c: Adjust.
1499         * function.c (split_complex_args): Allocate stack slot for
1500         unassigned parms before splitting.
1501         (parm_in_unassigned_mem_p): New.  Use it instead of
1502         parm_maybe_byref_p throughout this file.
1503         (assign_parm_setup_block): Use it.  Accept pseudos in the
1504         expand-assigned rtl.
1505         (assign_parm_setup_reg): Drop BLKmode requirement.
1506         (assign_parm_setup_stack): Allocate and fill in the address of
1507         unassigned MEM parms.
1509 2015-08-19  David Sherwood  <david.sherwood@arm.com>
1511         * genmodes.c (emit_mode_unit_size_inline): New function.
1512         (emit_mode_unit_precision_inline): New function.
1513         (emit_insn_modes_h): Emit new #define.  Emit new functions.
1514         (emit_mode_unit_size): New function.
1515         (emit_mode_unit_precision): New function.
1516         (emit_mode_adjustments): Add mode_unit_size adjustments.
1517         (emit_insn_modes_c): Emit new arrays.
1518         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
1519         use new inline methods.
1521 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1523         * config/aarch64/aarch64.c (bit_count): Delete prototype
1524         and definition.
1525         (aarch64_print_operand): Use popcount_hwi instead of the above.
1527 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1529         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
1530         comment.
1532 2015-08-19  Marek Polacek  <polacek@redhat.com>
1534         PR middle-end/67133
1535         * gimple-ssa-isolate-paths.c
1536         (insert_trap_and_remove_trailing_statements): Rename to ...
1537         (insert_trap): ... this.  Don't remove trailing statements; split
1538         block instead.
1539         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
1541 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
1543         PR other/67042
1544         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
1545         conditionalize the whole on __GNUC__.  Add fallback code
1546         depending neither on undefined nor implementation-defined behaviour.
1548 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1550         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
1551         whitespaces with tab.
1553 2015-08-19  Florian Weimer  <fweimer@redhat.com>
1555         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
1556         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
1557         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
1558         Move Name_Ids instantiation to the Prj.Proc package, to avoid
1559         trampolines.
1561 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1563         * config/arm/arm.c (bounds_check): Use %wd print format
1564         for HOST_WIDE_INT arguments.
1566 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
1568         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
1569         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
1570         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
1571         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
1572         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
1573         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
1574         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
1575         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
1576         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
1577         typedefs.
1579 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
1581         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
1582         function.c, graphite-scop-detection.c, haifa-sched.c,
1583         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
1584         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
1585         varasm.c: Remove typedefs of structs.
1587 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
1589         * config/rs6000/altivec.h (vec_adde): New define.
1590         (vec_addec): Likewise.
1591         (vec_double): Likewise.
1592         (vec_bperm): Likewise.
1593         (vec_gb): Likewise.
1594         * config/rs6000/rs6000-builtin.def (ADDE): New
1595         BU_ALTIVEC_OVERLOAD_3.
1596         (ADDEC): Likewise.
1597         (DOUBLE): New BU_VSX_OVERLOAD_1.
1598         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
1599         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
1600         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
1601         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
1602         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
1603         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
1604         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
1605         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
1606         and P8V_BUILTIN_VEC_VBPERMQ.
1608 2015-08-18  Jason Merrill  <jason@redhat.com>
1610         * print-tree.c (print_node): Handle TREE_BINFO.
1612 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1614         PR middle-end/36757
1615         * builtins.c (expand_builtin_signbit): Add asserts to make sure
1616         we can expand BUILT_IN_SIGNBIT inline.
1617         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
1618         * doc/extend.texi: Document the type-generic __builtin_signbit.
1620 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
1622         PR rtl-optimization/67218
1623         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
1624         (simplify_unary_operation_1): Use it.
1626 2015-08-18  Marek Polacek  <polacek@redhat.com>
1628         PR middle-end/67222
1629         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1630         if the call isn't valid.
1631         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1632         gimple_call_builtin_p.
1633         (call_may_clobber_ref_p_1): Likewise.
1634         (stmt_kills_ref_p): Likewise.
1636 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
1638         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
1639         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
1640         (mips_hard_regno_scratch_ok): Likewise.
1641         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
1642         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
1644 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
1646         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
1647         (determine_value_range): Call refine_value_range_using_guard for
1648         each loop initial condition to improve value range.
1650 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
1652         * config/i386/i386.c: Remove include of fibheap.h.
1654 2015-08-17  Richard Biener  <rguenther@suse.de>
1656         PR tree-optimization/67221
1657         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
1658         (sccvn_dom_walker::before_dom_children): Mark backedges of
1659         non-executable blocks as not executable.
1661 2015-08-17  David Sherwood  <david.sherwood@arm.com>
1663         * config/arm/arm.c (neon_element_bits): Replace call to
1664         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
1665         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
1666         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
1667         (neon_vdup_lane<mode>): Likewise.
1668         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
1669         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
1670         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
1671         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
1672         * config/spu/spu.c (arith_immediate_p): Likewise.
1673         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1674         * expr.c (expand_expr_real_2): Likewise.
1675         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
1676         * simplify-rtx.c (simplify_immed_subreg): Likewise.
1677         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1678         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
1679         New variable.
1680         * fold-const.c (fold_binary_loc): Replace call to
1681         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
1682         GET_MODE_UNIT_PRECISION (m).
1684 2015-08-17  Mike Stump  <mikestump@comcast.net>
1686         * config/arm/arm.c (arm_block_move_unaligned_straight):
1687         Emit normal move instead of unaligned load when source or destination
1688         are appropriately aligned.
1690 2015-08-17  Richard Biener  <rguenther@suse.de>
1691             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1693         PR middle-end/16107
1694         * match.pd (div (coss (op @0) : New simplifier.
1696 2015-08-14  Alexandre Oliva <aoliva@redhat.com>
1698         PR rtl-optimization/64164
1699         PR bootstrap/66978
1700         PR middle-end/66983
1701         PR rtl-optimization/67000
1702         PR middle-end/67034
1703         PR middle-end/67035
1704         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1705         * tree-ssa-copyrename.c: Removed.
1706         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1707         -ftree-coalesce-vars.
1708         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1709         * common.opt (ftree-copyrename): Ignore.
1710         (ftree-coalesce-inlined-vars): Likewise.
1711         * doc/invoke.texi: Remove the ignored options above.
1712         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1713         * tree-ssa-coalesce.h: ... here.
1714         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1715         headers required by it.
1716         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1717         across variables when flag_tree_coalesce_vars.  Check register
1718         use and promoted modes to allow coalescing.  Do not coalesce
1719         maybe-byref parms with SSA_NAMEs of other variables, or
1720         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
1721         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1722         with its member functions to tree-ssa-coalesce.c.
1723         (var_map_base_init): Likewise.  Renamed to
1724         compute_samebase_partition_bases.
1725         (partition_view_normal): Drop want_bases parameter.
1726         (partition_view_bitmap): Likewise.
1727         * tree-ssa-live.h: Adjust declarations.
1728         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
1729         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1730         default defs at the entry point.
1731         (dump_part_var_map): New.
1732         (compute_optimized_partition_bases): New, called by...
1733         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1734         of compute_samebase_partition_bases.  Adjust.
1735         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1736         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
1737         (ssa_default_def_partition): New.
1738         (get_rtl_for_parm_ssa_default_def): New.
1739         (align_local_variable, add_stack_var): Support anonymous SSA
1740         names.
1741         (defer_stack_allocation): Likewise.  Declare earlier.
1742         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1743         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1744         Do no record deferred-allocation marker in
1745         SA.partition_to_pseudo.
1746         (expand_stack_vars): Adjust check for the marker in it.
1747         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1748         redundant MEM attr setting.
1749         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1750         from...
1751         (expand_one_stack_var): ... this.  New wrapper to check and
1752         skip already expanded SSA partitions.
1753         (record_alignment_for_reg_var): New, factored out of...
1754         (expand_one_var): ... this.
1755         (expand_one_ssa_partition): New.
1756         (adjust_one_expanded_partition_var): New.
1757         (expand_one_register_var): Check and skip already expanded SSA
1758         partitions.
1759         (expand_used_vars): Don't create DECLs for anonymous SSA
1760         names.  Expand all SSA partitions, then adjust all SSA names.
1761         (pass::execute): Replace the loops that set
1762         SA.partition_to_pseudo from partition leaders and cleared
1763         DECL_RTL for multi-location variables, and that which used to
1764         rename vars and set attrs, with one that clears DECL_RTL and
1765         checks that PARMs and RESULTs default_defs match DECL_RTL.
1766         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1767         * emit-rtl.c: Include stor-layout.h.
1768         (set_reg_attrs_for_parm): Handle NULL decl.
1769         (set_reg_attrs_for_decl_rtl): Take mode from expression if
1770         it's not a DECL.
1771         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
1772         rather than its possibly-NULL DECL.
1773         * explow.c (promote_ssa_mode): New.
1774         * explow.h (promote_ssa_mode): Declare.
1775         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1776         (read_complex_part): Export.
1777         * expr.h (read_complex_part): Declare.
1778         * cfgexpand.h (parm_maybe_byref_p): Declare.
1779         * function.c: Include cfgexpand.h.
1780         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1781         (use_register_for_parm_decl): Wrapper for the above to
1782         special-case the result_ptr.
1783         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1784         (split_complex_args): Take assign_parm_data_all argument.
1785         Pass it to rtl_for_parm.  Set up rtl and context for split
1786         args.  Reset complex parm before fetching its default decl
1787         rtl.
1788         (assign_parms_unsplit_complex): Use the default-def complex
1789         parm rtl if it matches the components.
1790         (assign_parms_augmented_arg_list): Adjust.
1791         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1792         multiple locations.  Recognize split complex args.
1793         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1794         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1795         (assign_parm_setup_block): Prefer SSA-assigned location, and
1796         fill in its address if the memory location of a maybe-byref
1797         parm was not assigned by cfgexpand.
1798         (assign_parm_setup_reg): Likewise.  Adjust its mode as
1799         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
1800         sure passed_pointer parms don't need conversion.  Copy address
1801         or value as needed.
1802         (assign_parm_setup_stack): Prefer SSA-assigned location.
1803         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1804         rtl before testing for pointer bounds.  Special-case result_ptr.
1805         (expand_function_start): Maybe reset DECL_RTL of result.
1806         Prefer SSA-assigned location for result and static chain.
1807         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
1808         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
1809         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1810         anonymous SSA names.  Use promote_ssa_mode.
1811         (get_temp_reg): Likewise.
1812         (remove_ssa_form): Adjust.
1813         * stor-layout.c (layout_decl): Don't set mem attributes of
1814         non-MEMs.
1815         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1816         and get its reg_usage for reg invalidation.
1817         (compute_bb_dataflow): Pass it insn.
1818         (emit_notes_in_bb): Likewise.
1820 2015-08-14  Marek Polacek  <polacek@redhat.com>
1822         * tree-core.h (tree_base): Fix typo.
1824 2015-08-14  Marek Polacek  <polacek@redhat.com>
1826         PR middle-end/67133
1827         * gimple.c (infer_nonnull_range_by_attribute): Check that the
1828         nonnull argument position is not outside function arguments.
1830 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
1832         PR target/67143
1833         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
1834         'lconst_atomic' with 'const_atomic'.
1835         (atomic_fetch_<optab><mode>): Likewise.
1836         (atomic_<optab>_fetch<mode>): Likewise.
1837         * config/aarch64/iterators.md (lconst-atomic): Move below
1838         'const_atomic'.
1839         (const_atomic): New.
1841 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
1842             Bernd Schmidt  <bernds@codesourcery.com>
1844         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
1845         debug options.
1846         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
1847         (DWARF2_DEBUGGING_INFO): Don't define.
1848         * debug.h (dwarf2_lineno_debug_hooks): Declare.
1849         * toplev.c (process_options): Add a case for it.
1850         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
1851         (dwarf2out_init): Skip most initializations if
1852         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
1853         case.
1854         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
1855         DWARF2_LINENO_DEBUGGING_INFO.
1856         * opts.c (set_debug_level): Likewise.
1858 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
1860         * config/arm/types.md (is_neon_type): Add missing types.
1862 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
1864         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
1865         for skylake.
1866         * config/i386/i386.c (PTA_SKYLAKE): New macros.
1867         (processor_alias_table): Add skylake description.
1868         (enum processor_model): Add skylake processor.
1869         (arch_names_table): Add skylake record.
1870         * doc/invoke.texi: Add skylake item.
1872 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
1874         * ira-int.h: Include recog.h.
1875         * ira-build.c: Don't include recog.h.
1876         * ira-color.c: Likewise.
1877         * ira-conflicts.c: Likewise.
1878         * ira-costs.c: Likewise.
1879         * ira-emit.c: Likewise.
1880         * ira-lives.c: Likewise.
1881         * ira.c: Likewise.
1882         * sched-deps.c: Likewise.
1883         * sel-sched.c: Likewise.
1884         * target-globals.c: Likewise.
1886 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
1888         PR bootstrap/55035
1889         * reload1.c (elimination_costs_in_insn): Make it obvious to the
1890         compiler that the n_dups and n_operands loop bounds are invariant.
1892 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1894         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
1895         expressions in A and B.
1897 2015-08-13  Richard Biener  <rguenther@suse.de>
1899         * tree.c (nonnull_arg_p): Move from ...
1900         * tree-vrp.c (nonnull_arg_p): ... here.
1901         * tree.h (nonnull_arg_p): Declare.
1902         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
1903         here, register ptr != 0 for nonnull_arg_p pointer arguments.
1904         Properly initialize static chain and by-reference result pointer.
1905         (run_scc_vn): Adjust.
1907 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1909         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
1910         TUNE_I6400.
1912 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1914         * config/aarch64/aarch64-protos.h
1915         (aarch64_gen_atomic_cas): Declare.
1916         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
1917         Choose appropriate instruction pattern for the target.
1918         (aarch64_gen_atomic_cas): New.
1919         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
1920         (atomic_compare_and_swap<mode>_1): Rename to
1921         aarch64_compare_and_swap<mode>.  Fix some indentation.
1922         (aarch64_compare_and_swap<mode>_lse): New.
1923         (aarch64_atomic_cas<mode>): New.
1925 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1927         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
1928         (TARGET_LSE): New.
1930 2015-08-13  Richard Biener  <rguenther@suse.de>
1932         PR tree-optimization/67191
1933         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
1934         assert we value-numbered last stmts operand because it can validly
1935         trigger for unreachable code.
1937 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1939         PR rtl-optimization/67103
1940         * ifcvt.c (noce_try_store_flag_constants): Move
1941         x = (-(test != 0) & (b - a)) + a transformation to...
1942         (noce_try_cmove): ... Here.  Try it if normal conditional
1943         move fails.
1945 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1947         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
1948         pseudo-processors.
1949         * config/mips/mips.md (processor): Remove w32 and w64.
1951 2015-08-13  Richard Biener  <rguenther@suse.de>
1953         PR tree-optimization/66502
1954         PR tree-optimization/67167
1955         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
1956         backedge arguments.
1957         (vn_phi_lookup): Adjust.
1958         (vn_phi_insert): Likewise.
1959         (visit_phi): Prefer to value-number to another PHI node
1960         over value-numbering to a PHI argument.
1961         (init_scc_vn): Mark DFS back edges.
1963 2015-08-13  Richard Biener  <rguenther@suse.de>
1965         * gimple.h (gcall::code_): New constant static member.
1966         (gcond::code_): Likewise.
1967         * gimple.c (gcall::code_): Define.
1968         (gcond::code_): Likewise.
1969         (is_a_helper <const gcond *>): Add.
1970         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
1971         and forward to a new gcall overload with less checking and a
1972         cheaper way to access the operand.
1973         (gimple_call_lhs_ptr): Likewise.
1974         (gimple_call_set_lhs): Likewise.
1975         (gimple_call_internal_p): Likewise.
1976         (gimple_call_with_bounds_p): Likewise.
1977         (gimple_call_set_with_bounds): Likewise.
1978         (gimple_call_internal_fn): Likewise.
1979         (gimple_call_set_ctrl_altering): Likewise.
1980         (gimple_call_ctrl_altering_p): Likewise.
1981         (gimple_call_fntype): Likewise.
1982         (gimple_call_fn): Likewise.
1983         (gimple_call_fn_ptr): Likewise.
1984         (gimple_call_set_fndecl): Likewise.
1985         (gimple_call_fndecl): Likewise.
1986         (gimple_call_chain): Likewise.
1987         (gimple_call_num_args): Likewise.
1988         (gimple_call_arg): Likewise.
1989         (gimple_call_arg_ptr): Likewise.
1990         (gimple_call_set_arg): Likewise.
1991         (gimple_call_noreturn_p): Likewise.
1992         (gimple_cond_code): Likewise.
1993         (gimple_cond_lhs): Likewise.
1994         (gimple_cond_rhs): Likewise.
1995         (gimple_has_lhs): Reduce checking.
1997 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1999         PR middle-end/25529
2000         * match.pd (div (mult @0 @1) @1) : New simplifier.
2002 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2004         PR target/67071
2005         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
2006         predicate to allow construction of vector constants using the
2007         VSLDOI vector shift instruction.
2009         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
2010         declaration.
2012         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
2013         the number of bytes to be shifted left and filled in with either
2014         all zero or all one bits.
2015         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
2016         methods exist.
2017         (output_vec_const_move): On power8, generate XXLORC to generate
2018         a vector constant with all 1's. Do a split if we need to use a
2019         VSLDOI instruction.
2021         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
2022         properly test for the MSB.
2024         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
2025         vector constants that can be created with VSLDOI.
2027 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
2029         revert:
2030         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2031         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2032         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2033         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2034         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2035         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2036         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2037         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2038         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2040 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
2042         * config/xtensa/constraints.md (define_constraint "Y"): New
2043         constraint.
2044         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
2045         * config/xtensa/linux.h (ASM_SPEC): Likewise.
2046         * config/xtensa/predicates.md (move_operand): Match constants
2047         and symbols in the presence of TARGET_AUTO_LITPOOLS.
2048         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
2049         immediate references to TLS data.
2050         (xtensa_emit_move_sequence): Don't force constants to memory in
2051         the presence of TARGET_AUTO_LITPOOLS.
2052         (print_operand): Add 'y' format, same as default, but capable of
2053         printing SF mode constants as well.
2054         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
2055         (movsf_internal): Add movi pattern that loads literal.
2056         (movsf, movdf): Don't force constants to memory in the presence
2057         of TARGET_AUTO_LITPOOLS.
2058         (movdf_internal): Add 'Y' constraint.
2059         * config/xtensa/xtensa.opt (mauto-litpools): New option.
2060         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
2062 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
2064         * config/arm/arm-fpus.def: Replace booleans with feature flags.
2065         Update comment.
2066         * config/arm/arm.c (ARM_FPU): Update macro.
2067         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
2068         (TARGET_FP16): Likewise.
2069         (TARGET_CRYPTO): Likewise.
2070         (TARGET_NEON): Likewise.
2071         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
2072         field features.
2074 2015-08-12  Tom de Vries  <tom@codesourcery.com>
2076         PR other/67092
2077         PR other/67098
2078         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
2079         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
2080         accordingly.  Mention default for --with-stage1-ldflags.
2082 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
2084         * config/arm/arm.h (arm_fpu_feature_set): New.
2085         (ARM_FPU_FSET_HAS): New.
2086         (FPU_FL_NONE): New.
2087         (FPU_FL_NEON): New.
2088         (FPU_FL_FP16): New.
2089         (FPU_FL_CRYPTO): New.
2091 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2093         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
2094         after -mcmodel=large -fPIC sorry.
2096 2015-08-12  Richard Biener  <rguenther@suse.de>
2098         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
2099         comparison operand order and commutative ternary op operand order.
2100         (sccvn_dom_walker::cond_stack): New state to track temporary
2101         expressions.
2102         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
2103         no longer valid.
2104         (sccvn_dom_walker::record_cond): Add a single temporary conditional
2105         expression.
2106         (sccvn_dom_walker::record_conds): Add a temporary conditional
2107         expressions and all related expressions also true/false.
2108         (sccvn_dom_walker::before_dom_children): Record temporary
2109         expressions based on the controlling condition of a single
2110         predecessor.  When trying to simplify a conditional statement
2111         lookup expressions we might have inserted earlier.
2113 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
2115         PR target/67127
2116         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
2117         to ARM core registers.
2119 2015-08-12  Nathan Sidwell  <nathan@acm.org>
2121         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
2122         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
2124 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
2126         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
2127         line with comments.
2128         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
2130 2015-08-12  Richard Biener  <rguenther@suse.de>
2132         * gimple.h (remove_pointer): New trait.
2133         (GIMPLE_CHECK2): New inline template function.
2134         (gassign::code_): New constant static member.
2135         (is_a_helper<const gassign *>): Add.
2136         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
2137         and forward to a new gassign overload with less checking and a
2138         cheaper way to access the operand.
2139         (gimple_assign_lhs_ptr): Likewise.
2140         (gimple_assign_set_lhs): Likewise.
2141         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
2142         Likewise.
2143         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
2144         Likewise.
2145         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
2146         Likewise.
2147         (gimple_assign_rhs_code): Likewise.
2148         * gimple.c (gassign::code_): Define.
2150 2015-08-12  Richard Biener  <rguenther@suse.de>
2152         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2153         Eliminate edges marked as not executable by SCCVN.
2154         * tree-ssa-sccvn.c: Include gimple-iterator.h.
2155         (cond_dom_walker): Rename to sccvn_dom_walker.
2156         (sccvn_dom_walker::before_dom_children): Value-number defs
2157         of all stmts.
2158         (run_scc_vn): Remove loop value-numbering all SSA names.
2159         Drop not visited SSA names to varying.
2161 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
2163         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2164         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2165         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2166         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2167         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2168         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2169         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2170         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2171         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2173 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
2175         PR target/66954
2176         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
2177         to enum feature_priority and feature_list.
2178         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
2179         and isa_names_table.
2181 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
2183         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
2184         vect_induction_def.
2186 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2188         PR c/66098
2189         PR c/66711
2190         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
2191         account when deciding what was the command-line status.
2193 2015-08-11  Nathan Sidwell  <nathan@acm.org>
2195         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
2197         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
2198         we're not the only contributor to target phi.
2200 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
2202         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
2203         FIXED_REG0.
2205 2015-08-11  Tom de Vries  <tom@codesourcery.com>
2207         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
2209 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
2211         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
2212         with CPU_SLM.
2213         * config/i386/i386.md (cpu): Remove knl.
2215 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
2217         PR libgomp/65742
2218         PR middle-end/66332
2219         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
2220         open-coded sequence.
2221         * omp-low.c (oacc_process_reduction_data): Remove handline of
2222         GOMP_DEVICE_HOST_NONSHM.
2224         * lto-streamer-in.c (lto_input_mode_table): Adjust to
2225         GET_MODE_INNER changes.
2227 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
2228             Ilya Verbin  <ilya.verbin@intel.com>
2230         * lto-streamer-in.c (lto_input_mode_table): Correctly advance
2231         iterator.
2233 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2235         * doc/options.texi (EnabledBy): Document that the argument must be
2236         a Common option.
2237         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
2238         Not enabled by -Wall.
2239         * optc-gen.awk: Give nicer error messages. Detect if the argument
2240         of EnabledBy is not a Common option.
2241         * common.opt (Wnull-dereference): Not enabled by -Wall.
2242         * opt-functions.awk (lang_enabled_by): Nicer error messages.
2244 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2246         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
2247         model == 0x4f as Broadwell.
2249 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
2251         PR rtl-optimization/67028
2252         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
2253         Add test to see if a const_int fits in the new mode.
2255 2015-08-07  DJ Delorie  <dj@redhat.com>
2257         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
2258         
2259 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2261         PR rtl-optimization/67029
2262         * ira-color.c: Include "recog.h" before including "ira-int.h".
2263         * target-globals.c: Likewise.
2264         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
2265         adds an alternative_mask argument and use it instead of
2266         preferred_alternatives.
2267         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
2268         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
2269         * sched-deps.c: Include "ira-int.h" after including "ira.h".
2270         (sched_analyze_insn): Update call to
2271         ira_implicitly_set_insn_hard_regs.
2272         * sel-sched.c: Include "ira-int.h" after including "ira.h".
2273         (implicit_clobber_conflict_p): Update call to
2274         ira_implicitly_set_insn_hard_regs.
2276 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
2278         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
2280 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2282         PR target/67002
2283         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
2284         currently_expanding_to_rtl is set.
2286 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
2288         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
2289         * configure: Regenerate.
2291 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2292             Jiong Wang  <jiong.wang@arm.com>
2294         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2295         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2296         (REG_CLASS_NAMES): Likewise.
2297         (REG_CLASS_CONTENTS): Likewise.
2298         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2299         (aarch64_register_move_cost): Likewise.
2300         (aarch64_load_symref_appropriately): Invoke the new added pattern if
2301         possible.
2302         * config/aarch64/constraints.md (Uc0): New constraint.
2304 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
2306         * config/aarch64/constraints.md (Usf): Add the test of
2307         aarch64_is_noplt_call_p.
2309 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
2311         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
2312         declaration.
2313         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
2314         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
2315         (call_symbol): Likewise.
2317 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2319         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
2320         for vectorizing multiplication patterns.
2321         * tree-vectorizer.h: Adjust the number of patterns.
2323 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
2325         * config/i386/sse.md (*vec_concatv2df): Declare added
2326         alternatives as sselog type.
2328 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2330         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
2331         all GPRs.
2333 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2335         * config/s390/s390.c (s390_expand_tbegin): Expand either
2336         tbegin_1_z13 or tbegin_1 depending on VX flag.
2337         * config/s390/s390.md ("tbegin_1_z13"): New expander.
2339 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2341         * config/s390/s390.opt: Clarify description for -mzvector
2342         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
2343         -mzvector.
2345 2015-08-06  Richard Biener  <rguenther@suse.de>
2347         * gimple.h (gimple_call_set_fn): Access op member directly.
2348         (gimple_call_chain_ptr): Likewise.
2349         (gimple_call_set_chain): Likewise.
2350         (gimple_cond_lhs_ptr): Likewise.
2351         (gimple_cond_set_lhs): Likewise.
2352         (gimple_cond_rhs_ptr): Likewise.
2353         (gimple_cond_set_rhs): Likewise.
2354         (gimple_cond_true_label): Likewise.
2355         (gimple_cond_set_true_label): Likewise.
2356         (gimple_cond_set_false_label): Likewise.
2357         (gimple_cond_false_label): Likewise.
2358         (gimple_label_label): Likewise.
2359         (gimple_label_set_label): Likewise.
2360         (gimple_goto_set_dest): Likewise.
2361         (gimple_asm_input_op): Likewise.
2362         (gimple_asm_input_op_ptr): Likewise.
2363         (gimple_asm_set_input_op): Likewise.
2364         (gimple_asm_output_op): Likewise.
2365         (gimple_asm_output_op_ptr): Likewise.
2366         (gimple_asm_set_output_op): Likewise.
2367         (gimple_asm_clobber_op): Likewise.
2368         (gimple_asm_set_clobber_op): Likewise.
2369         (gimple_asm_label_op): Likewise.
2370         (gimple_asm_set_label_op): Likewise.
2371         (gimple_switch_index): Likewise.
2372         (gimple_switch_index_ptr): Likewise.
2373         (gimple_return_retval_ptr): Likewise.
2374         (gimple_return_retval): Likewise.
2375         (gimple_return_set_retval): Likewise.
2376         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
2377         (gimple_switch_label): Likewise.
2378         (gimple_switch_set_label): Likewise.
2380 2015-08-06  Richard Biener  <rguenther@suse.de>
2382         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
2383         bool comparison canonicalization and restrict to integers.
2385 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
2387         * coretypes.h (enum symbol_visibility): Relocate here.
2388         * flag-types.h (enum symbol_visibility): Remove.
2389         * tree-core.h (enum symbol_visibility): Remove.
2391 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
2393         PR target/66870
2394         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
2395         for no_split_stack function attribute along with
2396         flag_split_stack.
2397         (rs6000_expand_split_stack_prologue): Likewise.
2399 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2400             Jeff Law  <law@redhat.com>
2402         PR c/16351
2403         * doc/invoke.texi (Wnull-dereference): New.
2404         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
2405         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
2406         Warn for potential NULL dereferences.
2407         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
2408         * ubsan.c (instrument_nonnull_arg): Call
2409         infer_nonnull_range_by_attribute.
2410         (instrument_nonnull_return): Likewise.
2411         * common.opt (Wnull-dereference); New.
2412         * gimple.c (infer_nonnull_range): Remove bool arguments.
2413         (infer_nonnull_range_by_dereference): New.
2414         (infer_nonnull_range_by_attribute): New.
2415         * gimple.h: Update declarations.
2417 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2419         * gensupport.c (sequence_num): Replace with...
2420         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
2421         ...these new variables.
2422         (init_rtx_reader_args_cb): Update accordingly.
2423         (get_num_code_insns): Likewise.
2424         (read_md_rtx): Rework to use a while loop and get_c_test.
2425         Use the new counters.  Remove redundant DEFINE_SUBST case.
2426         * genoutput.c (gen_split): Delete.
2427         (main): Don't call it.
2429 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2431         * gensupport.h (get_c_test): Declare.
2432         * gensupport.c (get_c_test): New function.
2433         * genconditions.c (main): Use it.
2434         * genrecog.c (validate_pattern): Likewise.
2435         (match_pattern_1): Likewise.  Remove c_test argument.
2436         (match_pattern): Update accordingly and remove c_test argument.
2437         (main): Update accordingly.
2439 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2441         * gensupport.h (get_num_insn_codes): Declare.
2442         * gensupport.c (get_num_insn_codes): New function.
2443         * genattrtab.c (optimize_attrs): Rename max_insn_code to
2444         num_insn_codes.
2445         (main): Likewise.  Use get_num_insn_codes.
2446         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
2448 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2450         PR middle-end/66311
2451         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
2452         is zero- rather than sign-extended.
2454 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2456         * target-insns.def (can_extend): Delete.
2458 2015-08-05  Richard Biener  <rguenther@suse.de>
2460         PR tree-optimization/67121
2461         * tree-if-conv.c (combine_blocks): Clear range-info produced
2462         by stmts no longer executed conditionally.
2464 2015-08-05  Nick Clifton  <nickc@redhat.com>
2466         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
2467         to allow identical far pointers to remain.
2469 2015-08-05  Richard Biener  <rguenther@suse.de>
2471         PR middle-end/67120
2472         * match.pd: Compare address bases with == if they are decls
2473         or SSA names, not operand_equal_p.  Otherwise fail.
2475 2015-08-05  Richard Biener  <rguenther@suse.de>
2477         PR tree-optimization/67055
2478         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
2479         NULL gimple_block.
2481         * g++.dg/torture/pr67055.C: New testcase.
2483 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2485         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
2486         noavx512vl.
2487         (define_attr "enabled"): Handle avx521vl and noavx512vl.
2488         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
2489         AVX-512 alternative out of SSE.
2490         (define_insn "*vec_concatv2df"): Ditto.
2492 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2494         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
2495         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
2496         CODE_FOR_avx_ptestv4di.
2497         * config/i386/sse.md (define_mode_iterator V_AVX): New.
2498         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
2499         (define_insn "avx_ptest256"): Merge this ...
2500         (define_insn "sse4_1_ptest"): And this ...
2501         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
2503 2015-08-05  Richard Biener  <rguenther@suse.de>
2505         PR tree-optimization/67109
2506         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
2507         against too big groups.  Print whether this is a load or store
2508         group.  Rename from ...
2509         (vect_analyze_group_access): ... this which is now a wrapper
2510         dissolving an invalid group.
2511         (vect_analyze_data_ref_accesses): Print whether this is a load
2512         or store group.
2514 2015-08-05  Richard Biener  <rguenther@suse.de>
2516         PR middle-end/67107
2517         * match.pd: Guard const_binop result checking against NULL_TREE
2518         result.
2520 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
2522         * cse.c (cse_insn): Restoring old behaviour for src_eqv
2523          when dest and value in the REG_EQUAL are same and dest
2524          is STRICT_LOW_PART.
2526 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
2528         * config/moxie/moxie.h (PRINT_OPERAND,
2529           PRINT_OPERAND_ADDRESS): Remove macros.
2530         * config/moxie/moxie-protos.h (moxie_print_operand,
2531           moxie_print_operand_address): Remove declaration.
2532         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
2533           TARGET_PRINT_OPERAND_ADDRESS): Define.
2534           (moxie_print_operand, moxie_print_operand_address): Make static.
2536 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2538         PR target/66731
2539         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
2540         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
2542 2015-08-04  Richard Biener  <rguenther@suse.de>
2544         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
2545         generated code.
2546         (dt_operand::gen_gimple_expr): Adjust.
2548 2015-08-04  Richard Biener  <rguenther@suse.de>
2550         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
2551         bool compares on RHS.
2552         * match.pd: Add X ==/!= !X is false/true pattern.
2554 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
2556         * config/aarch64/aarch64.c: Change inner loop statement cost
2557         to be consistent with other targets.
2559 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
2561         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
2562         targets.
2564 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
2566         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
2567         (machine_function): Remove pseudos field.
2569 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2571         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2572         Exit early and use target_option_current_node if processing current
2573         pragma.
2575 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2577         * doc/extend.texi (AArch64 Function Attributes): New node.
2578         (AArch64 Pragmas): Likewise.
2580 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2582         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2583         Initialize simd builtins if TARGET_SIMD.
2584         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2585         Make sure that the builtins are initialized only once no matter how
2586         many times the function is called.
2587         (aarch64_init_builtins): Unconditionally initialize crc builtins.
2588         (aarch64_relayout_simd_param): New function.
2589         (aarch64_simd_expand_args): Use above during argument expansion.
2590         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
2591         simd builtins if TARGET_SIMD.
2592         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
2593         prototype.
2594         (aarch64_relayout_simd_types): Likewise.
2596 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2598         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
2599         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
2600         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
2601         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2602         static keyword.
2603         (aarch64_reset_previous_fndecl): New function.
2604         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
2605         the string.
2606         * config/aarch64/aarch64-c.c: New file.
2607         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
2608         Push and pop options at beginning and end.  Remove ifdef
2609         __ARM_FEATURE_CRC32.
2610         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
2611         Add pragma +nothing+simd and +nothing+crypto where appropriate.
2612         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
2613         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
2614         Define prototype.
2615         (aarch64_register_pragmas): Likewise.
2616         (aarch64_reset_previous_fndecl): Likewise.
2617         (aarch64_process_target_attr): Likewise.
2618         (aarch64_override_options_internal): Likewise.
2620 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2622         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
2623         New function.
2624         (aarch64_can_inline_p): Likewise.
2625         (TARGET_CAN_INLINE_P): Define.
2627 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2629         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2630         Remove static.  Handle OPT_mgeneral_regs_only,
2631         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
2632         OPT_momit_leaf_frame_pointer.
2633         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
2634         (aarch64_attr_opt_type): New enum.
2635         (aarch64_attribute_info): New struct.
2636         (aarch64_handle_attr_arch): New function.
2637         (aarch64_handle_attr_cpu): Likewise.
2638         (aarch64_handle_attr_tune): Likewise.
2639         (aarch64_handle_attr_isa_flags): Likewise.
2640         (aarch64_attributes): New table.
2641         (aarch64_process_one_target_attr): New function.
2642         (num_occurences_in_str): Likewise.
2643         (aarch64_process_target_attr): Likewise.
2644         (aarch64_option_valid_attribute_p): Likewise.
2645         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2646         * config/aarch64/aarch64-protos.h: Include input.h
2647         (aarch64_handle_option): Declare prototype.
2649 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2651         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
2652         * config/aarch64/aarch64.c: Include target-globals.h
2653         (aarch64_previous_fndecl): New variable.
2654         (aarch64_set_current_function): New function.
2655         (TARGET_SET_CURRENT_FUNCTION): Define.
2657 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2659         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
2660         (explicit_arch): Likewise.
2661         (x_aarch64_isa_flags): Likewise.
2662         (mgeneral-regs-only): Mark as Save.
2663         (mfix-cortex-a53-835769): Likewise.
2664         (mcmodel=): Likewise.
2665         (mstrict-align): Likewise.
2666         (momit-leaf-frame-pointer): Likewise.
2667         (mtls-dialect): Likewise.
2668         (master=): Likewise.
2669         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
2670         (aarch64_isa_flags): Remove extern declaration.
2671         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
2672         to indicate success or failure.
2673         (aarch64_validate_march): Likewise.
2674         (aarch64_validate_mtune): Likewise.
2675         (aarch64_isa_flags): Delete.
2676         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
2677         instead of aarch64_isa_flags.
2678         (aarch64_get_tune_cpu): New function.
2679         (aarch64_get_arch): Likewise.
2680         (aarch64_override_options): Use above and set up explicit_tune_core
2681         and explicit_arch.
2682         (aarch64_print_extension): Move earlier in file.  Add isa_flags
2683         argument and use that instead of the global aarch64_isa_flags.
2684         (aarch64_option_save): New function.
2685         (aarch64_option_restore): Likewise.
2686         (aarch64_option_print): Likewise.
2687         (aarch64_declare_function_name): Likewise.
2688         (aarch64_start_file): Delete.
2689         (TARGET_ASM_FILE_START): Do not define.
2690         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
2691         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
2692         Declare prototype.
2694 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2696         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
2697         flag_omit_leaf_frame_pointer to 2.
2699 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2701         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
2702         define to 0 or 1.
2703         (TARGET_FIX_ERR_A53_835769): New macro.
2704         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2705         handling of opts->x_aarch64_fix_a53_err835769.
2706         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
2707         than aarch64_fix_a53_err835769.
2708         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
2709         * config/aarch64/aarch64-linux.h: Likewise.
2711 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
2713         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
2714         ix86_expand_int_movcc as boolean.
2716 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2718         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
2719         (aarch64_cpu_string): Likewise.
2720         (aarch64_tune_string): Likewise.
2721         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
2722         (aarch64_parse_extension): Return aarch64_parse_opt_result.
2723         Add extra argument to put result into.
2724         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
2725         (aarch64_parse_cpu): Add arguments to put results into. Return
2726         aarch64_parse_opt_result.
2727         (aarch64_parse_tune): Likewise.
2728         (aarch64_override_options_after_change_1): New function.
2729         (aarch64_override_options_internal): New function.
2730         (aarch64_validate_mcpu): Likewise.
2731         (aarch64_validate_march): Likewise.
2732         (aarch64_validate_mtune): Likewise.
2733         (aarch64_override_options): Update to reflect above changes.
2734         Move some logic into aarch64_override_options_internal.
2735         Initialize target_option_default_node and target_option_current_node.
2736         (aarch64_override_options_after_change): Move logic into
2737         aarch64_override_options_after_change_1 and call it with global_options.
2738         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
2739         flag values from that.
2741 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2743         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2744         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
2745         * config/aarch64/aarch64.c (struct processor): Add arch field.
2746         (all_architectures): Handle above, move above all_cores.
2747         (all_cores): Handle above.
2748         (aarch64_parse_arch): Handle above changes.
2749         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
2750         above.  Update comments.
2751         (armv8.1-a): Likewise.
2752         * config/aarch64/aarch64-cores.def: Update according to above.
2753         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
2754         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
2755         aarch64_arch_driver_info.
2757 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2759         * config/aarch64/aarch64.c (struct processor): Add ident field.
2760         Rename core sched_core.
2761         (all_cores): Handle above changes.
2762         (all_architectures): Likewise.
2763         (aarch64_parse_arch): Likewise.
2764         (aarch64_override_options): Likewise.
2766 2015-08-04  Richard Biener  <rguenther@suse.de>
2768         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
2769         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
2770         comparisons embedded in [VEC_]COND_EXPRs.
2772 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
2774         * tree-if-conv.c: Fix various typos in comments.
2775         * tree-vect-stmts.c: Likewise.
2777 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2779         PR tree-optimization/67043
2780         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
2781         preheader after hoisting invariant in it.
2782         (find_defs): Force recomputation of all luids.
2784 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
2786         * config/rs6000/htm.md (tabort.): Restrict the source operand to
2787         using a base register.
2789 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
2791         * main.c (main): Pass in NULL for toplev's external_timer.
2792         * timevar.c: Include coretypes.h.
2793         (class timer::named_items): New.
2794         (timer::named_items::named_items): New.
2795         (timer::named_items::~named_items): New.
2796         (timer::named_items::push): New.
2797         (timer::named_items::pop): New.
2798         (timer::named_items::print): New.
2799         (timer::timer): Initialize field "m_jit_client_items".
2800         (timer::~timer): New.
2801         (timer::push): Move bulk of implementation to...
2802         (timer::push_internal): ...here.  New function.
2803         (timer::pop): Move bulk of implementation to...
2804         (timer::pop_internal): ...here.  New function.
2805         (timer::push_client_item): New.
2806         (timer::pop_client_item): New.
2807         (timer::print_row): New function, taken from timer::print.
2808         (timer::print): Print "GCC items" header if we also have client
2809         items.  Move row-printing to timer::print_row.  Print any client
2810         items.
2811         (timer::get_topmost_item_name): New method.
2812         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
2813         (TV_JIT_CLIENT_CODE): New.
2814         * timevar.h (timer::push_client_item): New declaration.
2815         (timer::pop_client_item): New declaration.
2816         (timer::get_topmost_item_name): New method.
2817         (timer::push_internal): New declaration.
2818         (timer::pop_internal): New declaration.
2819         (timer::print_row): New declaration.
2820         (timer::named_items): New declaration.
2821         (timer::m_jit_client_items): New field.
2822         (timer): Add friend class named_items.
2823         (auto_timevar::auto_timevar): Add timer param.
2824         (auto_timevar::~auto_timevar): Use field "m_timer".
2825         (auto_timevar::m_timer): New field.
2826         * toplev.c (initialize_rtl): Add g_timer as param when
2827         constructing auto_timevar instance.
2828         (toplev::toplev): Add "external_timer" param, and use it to
2829         initialize the "g_timer" global if non-NULL.
2830         (toplev::~toplev): If this created "g_timer", delete it.
2831         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
2832         with "external_timer" timer *.
2834 2015-08-03  Alexander Basov <coohpt@gmail.com>
2836         PR middle-end/64744
2837         PR middle-end/48470
2838         PR middle-end/43404
2839         * cfgexpand.c (expand_one_var): Add check if stack is going to
2840         be used in naked function.
2841         * expr.c (expand_expr_addr_expr_1): Remove excess checking
2842         whether expression should not reside in MEM.
2843         * function.c (use_register_for_decl): Do not use registers for
2844         non-register things (volatile, float, BLKMode) in naked functions.
2846 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
2848         PR target/67060
2849         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
2850         Adjust splits to match new pattern.
2852 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2854         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
2855         (VEC_M): Likewise.
2856         (VEC_N): Likewise.
2857         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
2858         point in VSX registers.
2860         * config/rs6000/constraints.md (wb constraint): Document unused
2861         w<x> constraint.
2862         (we constraint): Likewise.
2863         (wo constraint): Likewise.
2864         (wp constraint): New constraint for IEEE 128-bit floating point in
2865         VSX registers.
2866         (wq constraint): Likewise.
2868         * config/rs6000/predicates.md (easy_fp_constant): Add support for
2869         IEEE 128-bit floating point in VSX registers.
2870         (easy_scalar_constant): Likewise.
2872         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
2873         constraints (wp, wq) for IEEE 128-bit floating point in VSX
2874         registers.
2875         (rs6000_init_hard_regno_mode_ok): Likewise.
2877         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
2878         floating point in VSX registers.
2879         (VSX_L): Likewise.
2880         (VSX_M): Likewise.
2881         (VSX_M2): Likewise.
2882         (VSm): Likewise.
2883         (VSs): Likewise.
2884         (VSr): Likewise.
2885         (VSa): Likewise.
2886         (VSv): Likewise.
2887         (vsx_le_permute_<mode>): Add support to properly swap bytes for
2888         IEEE 128-bit floating point in VSX registers on little endian.
2889         (vsx_le_undo_permute_<mode>): Likewise.
2890         (vsx_le_perm_load_<mode>): Likewise.
2891         (vsx_le_perm_store_<mode>): Likewise.
2892         (splitters for IEEE 128-bit fp moves): Likewise.
2894         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
2895         wq constraints.
2897         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
2898         floating point in VSX registers.
2899         (VM2): Likewise.
2901         * doc/md.text (Machine Constraints): Document wp and wq
2902         constraints on PowerPC.
2904 2015-08-03  Jeff Law  <law@redhat.com>
2906         PR middle-end/66314
2907         PR gcov-profile/66899
2908         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
2909         iterate over the jump threading paths when an element in the
2910         jump threading paths array is eliminated.
2912 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
2914         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
2916 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
2918         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
2919         is_use_properly_guarded the variable def_preds.  Free its
2920         contents before returning.
2921         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
2922         (is_use_properly_guarded): Replace local variable def_preds with
2923         a parameter.  Adjust accordingly.  Only update *def_preds if it's
2924         the empty vector.
2926 2015-08-03  Richard Biener  <rguenther@suse.de>
2928         * genmatch.c (simplify::for_subst_vec): New member.
2929         (binary_ok): New helper for for lowering.
2930         (lower_for): Delay substituting operators into result expressions
2931         if we can merge the results eventually again.
2932         (capture_info::walk_result): Adjust for user_id appearing as
2933         result expression operator.
2934         (expr::gen_transform): Likewise.
2935         (dt_simplify::gen_1): Likewise.
2936         (dt_simplify::gen): Pass not substituted operators to tail
2937         functions or initialize local variable with it.
2938         (decision_tree::gen): Adjust function signature.
2939         * match.pd: Fix tests against global code and add default
2940         cases to switch stmts.
2942 2015-08-03  Richard Biener  <rguenther@suse.de>
2944         * genmatch.c (dt_simplify::gen): Create captures array
2945         with an initializer.
2947 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2949         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
2950         the host compiler is affected by placement new aliasing bug.
2951         * configure: Regenerate.
2952         * Makefile.in (ALIASING_FLAGS): New variable.
2953         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
2955 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2957         PR target/66731
2958         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
2959         (negmulsf3_vfp): Likewise.
2960         (muldf3negdf_vfp): Disable for -frounding-math.
2961         (mulsf3negsf_vfp): Likewise.
2962         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
2963         fix MULT cost with -frounding-math.
2965 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2967         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
2968         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
2969         explicit.  Prefer to add the flag whenever possible.
2970         (noce_process_if_block): Try noce_try_store_flag_constants before
2971         noce_try_cmove.
2973 2015-08-03  Richard Biener  <rguenther@suse.de>
2975         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
2976         New hash-map to record equivalent transforms.
2977         (dt_node::analyze): Populate the equivalent transforms hash-map.
2978         (dt_simplify::info): Add reference to hash-map entry.
2979         (dt_simplify::gen): If we have split out a function for the
2980         transform, generate a call to it.
2981         (sinfo_hashmap_traits::hash): New function.
2982         (compare_op): New helper function for ...
2983         (sinfo_hashmap_traits::equal_keys): ... this new function.
2984         (decision_tree::gen): Split out common equivalent transforms
2985         into functions.
2987 2015-08-03  Richard Biener  <rguenther@suse.de>
2989         * gimple-fold.c (fold_gimple_assign): Remove folding of
2990         the comparison in COND_EXPRs.
2992 2015-08-03  Richard Biener  <rguenther@suse.de>
2994         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
2995         on the rhs of assignments first simplify the embedded
2996         GENERIC condition.
2998 2015-08-03  Richard Biener  <rguenther@suse.de>
3000         PR tree-optimization/66917
3001         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
3002         field.
3003         (DR_VECT_AUX): New macro.
3004         (set_dr_misalignment): Adjust.
3005         (dr_misalignment): Likewise.
3006         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3007         Compute whether the base is at least element aligned.
3008         * tree-vect-stmts.c (ensure_base_align): Adjust.
3009         (vectorizable_store): If the base is not element aligned
3010         preserve alignment of the original access if misalignment is unknown.
3011         (vectorizable_load): Likewise.
3013 2015-08-02  Martin Sebor  <msebor@redhat.com>
3015         * c-family/c.opt (-Wframe-address): New warning option.
3016         * doc/invoke.texi (Wframe-address): Document it.
3017         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
3018         Clarify possible effects of calling the functions with non-zero
3019         arguments and mention -Wframe-address.
3020         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
3022 2015-08-01  Michael Collison  <michael.collison@linaro.org
3023             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3025         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
3026         (*arm_umin_cmp): Likewise.
3028 2015-08-01  Caroline Tice  <cmtice@google.com>
3030         PR 66521
3031         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
3032         global variables.
3033         (vtbl_find_mangled_name):  New function.
3034         (vtbl_register_mangled_name):  New function.
3035         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
3036         mangled name in mangled name vectors.
3037         (find_or_create_vtbl_map_node):  Ditto.
3038         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
3039         update recursion_depth on function entry; pass it to every recursive
3040         call; automatically exit if depth > 25 (give up looking at that point).
3041         (verify_bb_vtables):  Initialize recursion_depth and pass it to
3042         var_is_used_for_virtual_call_p.
3043         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
3044         global variable decls.
3045         (vtbl_register_mangled_name): New extern function decl.
3047 2015-08-01  Tom de Vries  <tom@codesourcery.com>
3049         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
3050         function.
3051         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
3052         Declare.
3053         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
3054         operation_no_trapping_overflow.  Allow non-overflow operations.
3055         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
3056         operations.
3058 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3060         PR target/67049
3061         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
3063 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3065         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
3066         Enable for TARGET_32BIT.
3067         (*if_move_neg): Likewise.
3069 2015-07-31  Nick Clifton  <nickc@redhat.com>
3071         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
3072         Returns true for __model__.
3073         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3075 2015-07-31  Alan Modra  <amodra@gmail.com>
3077         PR target/66870
3078         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
3079         (rs6000_emit_prologue): Set it.
3080         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
3082 2015-07-31  Richard Biener  <rguenther@suse.de>
3084         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
3085         -> X == (C1 ^ C2) which is already implemented in match.pd.
3086         Remove redundant dispatching to fold_relational_const.
3087         Move unordered self and NaN compares ...
3088         * match.pd: ... as patterns here.  Remove some stray captures
3089         and add a comment.
3091 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
3093         * config/i386/i386.c
3094         (bdesc_special_args): Convert mask type from signed to unsigned for
3095         masked builtins.
3096         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
3097         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
3098         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
3099         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
3100         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
3101         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
3102         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
3103         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
3104         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
3105         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
3106         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
3107         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
3108         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
3109         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
3110         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
3111         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
3112         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
3113         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
3114         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
3115         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
3116         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
3117         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
3118         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
3119         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
3120         * config/i386/i386-builtin-types.def
3121         (V16QI_FTYPE_V16SI): Remove.
3122         (V8DF_FTYPE_V8SI): Ditto.
3123         (V8HI_FTYPE_V8DI): Ditto.
3124         (V8SI_FTYPE_V8DI): Ditto.
3125         (V8SF_FTYPE_V8DF): Ditto.
3126         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
3127         (V16HI_FTYPE_V16SI): Ditto.
3128         (V16SF_FTYPE_V16HI): Ditto.
3129         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3130         (V16SF_FTYPE_V16SI): Ditto.
3131         (V4DI_FTYPE_V4DI): Ditto.
3132         (V16SI_FTYPE_V16SF): Ditto.
3133         (V16SF_FTYPE_FLOAT): Ditto.
3134         (V8DF_FTYPE_DOUBLE): Ditto.
3135         (V8DI_FTYPE_INT64): Ditto.
3136         (V8DI_FTYPE_V4DI): Ditto.
3137         (V16QI_FTYPE_V8DI): Ditto.
3138         (UINT_FTYPE_V4SF): Ditto.
3139         (UINT64_FTYPE_V4SF): Ditto.
3140         (UINT_FTYPE_V2DF): Ditto.
3141         (UINT64_FTYPE_V2DF): Ditto.
3142         (V16SI_FTYPE_V16SI): Ditto.
3143         (V8DI_FTYPE_V8DI): Ditto.
3144         (V16SI_FTYPE_PV4SI): Ditto.
3145         (V16SF_FTYPE_PV4SF): Ditto.
3146         (V8DI_FTYPE_PV2DI): Ditto.
3147         (V8DF_FTYPE_PV2DF): Ditto.
3148         (V4DI_FTYPE_PV2DI): Ditto.
3149         (V4DF_FTYPE_PV2DF): Ditto.
3150         (V16SI_FTYPE_PV2SI): Ditto.
3151         (V16SF_FTYPE_PV2SF): Ditto.
3152         (V8DI_FTYPE_PV4DI): Ditto.
3153         (V8DF_FTYPE_PV4DF): Ditto.
3154         (V8SF_FTYPE_FLOAT): Ditto.
3155         (V4SF_FTYPE_FLOAT): Ditto.
3156         (V4DF_FTYPE_DOUBLE): Ditto.
3157         (V8SF_FTYPE_PV4SF): Ditto.
3158         (V8SI_FTYPE_PV4SI): Ditto.
3159         (V4SI_FTYPE_PV2SI): Ditto.
3160         (V8SF_FTYPE_PV2SF): Ditto.
3161         (V8SI_FTYPE_PV2SI): Ditto.
3162         (V16SF_FTYPE_PV8SF): Ditto.
3163         (V16SI_FTYPE_PV8SI): Ditto.
3164         (V8DI_FTYPE_V8SF): Ditto.
3165         (V4DI_FTYPE_V4SF): Ditto.
3166         (V2DI_FTYPE_V4SF): Ditto.
3167         (V64QI_FTYPE_QI): Ditto.
3168         (V32HI_FTYPE_HI): Ditto.
3169         (V8UHI_FTYPE_V8UHI): Ditto.
3170         (V16UHI_FTYPE_V16UHI): Ditto.
3171         (V32UHI_FTYPE_V32UHI): Ditto.
3172         (V2UDI_FTYPE_V2UDI): Ditto.
3173         (V4UDI_FTYPE_V4UDI): Ditto.
3174         (V8UDI_FTYPE_V8UDI): Ditto.
3175         (V4USI_FTYPE_V4USI): Ditto.
3176         (V8USI_FTYPE_V8USI): Ditto.
3177         (V16USI_FTYPE_V16USI): Ditto.
3178         (V2DF_FTYPE_V2DF_UINT64): Ditto.
3179         (V2DI_FTYPE_V2DF_V2DF): Ditto.
3180         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
3181         (V8DF_FTYPE_V8DF_V8DI): Ditto.
3182         (V4SF_FTYPE_V4SF_UINT64): Ditto.
3183         (V4SI_FTYPE_V4SF_V4SF): Ditto.
3184         (V16SF_FTYPE_V16SF_V16SI): Ditto.
3185         (V64QI_FTYPE_V32HI_V32HI): Ditto.
3186         (V32HI_FTYPE_V16SI_V16SI): Ditto.
3187         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
3188         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
3189         (V32HI_FTYPE_V64QI_V64QI): Ditto.
3190         (V32HI_FTYPE_V32HI_V32HI): Ditto.
3191         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
3192         (V16SI_FTYPE_V16SI_V4SI): Ditto.
3193         (V16SI_FTYPE_V16SI_V16SI): Ditto.
3194         (V16SI_FTYPE_V32HI_V32HI): Ditto.
3195         (V16SI_FTYPE_V16SI_SI): Ditto.
3196         (V8DI_FTYPE_V8DI_V8DI): Ditto.
3197         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
3198         (V8DI_FTYPE_V16SI_V16SI): Ditto.
3199         (V8DI_FTYPE_V8DI_V2DI): Ditto.
3200         (QI_FTYPE_QI): Ditto.
3201         (SI_FTYPE_SI): Ditto.
3202         (DI_FTYPE_DI): Ditto.
3203         (QI_FTYPE_QI_QI): Ditto.
3204         (QI_FTYPE_QI_INT): Ditto.
3205         (HI_FTYPE_HI_INT): Ditto.
3206         (SI_FTYPE_SI_INT): Ditto.
3207         (DI_FTYPE_DI_INT): Ditto.
3208         (HI_FTYPE_V16QI_V16QI): Ditto.
3209         (SI_FTYPE_V32QI_V32QI): Ditto.
3210         (DI_FTYPE_V64QI_V64QI): Ditto.
3211         (QI_FTYPE_V8HI_V8HI): Ditto.
3212         (HI_FTYPE_V16HI_V16HI): Ditto.
3213         (SI_FTYPE_V32HI_V32HI): Ditto.
3214         (QI_FTYPE_V4SI_V4SI): Ditto.
3215         (QI_FTYPE_V8SI_V8SI): Ditto.
3216         (QI_FTYPE_V2DI_V2DI): Ditto.
3217         (QI_FTYPE_V4DI_V4DI): Ditto.
3218         (QI_FTYPE_V8DI_V8DI): Ditto.
3219         (HI_FTYPE_V16SI_V16SI): Ditto.
3220         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
3221         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
3222         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
3223         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
3224         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
3225         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
3226         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
3227         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
3228         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
3229         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
3230         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
3231         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
3232         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
3233         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
3234         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
3235         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
3236         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
3237         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
3238         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
3239         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
3240         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
3241         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
3242         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
3243         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
3244         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
3245         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
3246         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
3247         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
3248         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
3249         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
3250         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
3251         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
3252         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
3253         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
3254         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
3255         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
3256         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
3257         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
3258         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
3259         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
3260         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
3261         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
3262         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
3263         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
3264         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
3265         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
3266         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
3267         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
3268         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
3269         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
3270         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
3271         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
3272         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
3273         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
3274         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
3275         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
3276         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
3277         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
3278         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
3279         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
3280         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
3281         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
3282         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
3283         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
3284         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
3285         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
3286         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
3287         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
3288         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
3289         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
3290         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
3291         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
3292         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
3293         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
3294         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
3295         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
3296         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
3297         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
3298         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
3299         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
3300         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
3301         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
3302         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
3303         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
3304         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
3305         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
3306         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
3307         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
3308         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
3309         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
3310         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
3311         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
3312         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
3313         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
3314         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
3315         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
3316         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
3317         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
3318         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
3319         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
3320         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
3321         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3322         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3323         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3324         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
3325         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
3326         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
3327         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
3328         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
3329         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
3330         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
3331         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
3332         (HI_FTYPE_HI): Ditto.
3333         (HI_FTYPE_V16QI): Ditto.
3334         (SI_FTYPE_V32QI): Ditto.
3335         (DI_FTYPE_V64QI): Ditto.
3336         (QI_FTYPE_V8HI): Ditto.
3337         (HI_FTYPE_V16HI): Ditto.
3338         (SI_FTYPE_V32HI): Ditto.
3339         (QI_FTYPE_V4SI): Ditto.
3340         (QI_FTYPE_V8SI): Ditto.
3341         (HI_FTYPE_V16SI): Ditto.
3342         (QI_FTYPE_V2DI): Ditto.
3343         (QI_FTYPE_V4DI): Ditto.
3344         (QI_FTYPE_V8DI): Ditto.
3345         (V16QI_FTYPE_HI): Ditto.
3346         (V32QI_FTYPE_SI): Ditto.
3347         (V64QI_FTYPE_DI): Ditto.
3348         (V8HI_FTYPE_QI): Ditto.
3349         (V16HI_FTYPE_HI): Ditto.
3350         (V32HI_FTYPE_SI): Ditto.
3351         (V4SI_FTYPE_QI): Ditto.
3352         (V4SI_FTYPE_HI): Ditto.
3353         (V8SI_FTYPE_QI): Ditto.
3354         (V8SI_FTYPE_HI): Ditto.
3355         (V2DI_FTYPE_QI): Ditto.
3356         (V4DI_FTYPE_QI): Ditto.
3357         (HI_FTYPE_HI_HI): Ditto.
3358         (SI_FTYPE_SI_SI): Ditto.
3359         (DI_FTYPE_DI_DI): Ditto.
3360         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3361         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3362         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3363         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3364         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3365         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3366         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3367         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3368         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3369         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3370         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3371         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3372         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3373         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3374         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3375         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3376         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3377         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3378         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3379         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3380         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
3381         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
3382         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
3383         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
3384         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
3385         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
3386         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
3387         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
3388         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
3389         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
3390         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
3391         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
3392         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
3393         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
3394         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
3395         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
3396         (V16SI_FTYPE_HI): Ditto.
3397         (V8DI_FTYPE_QI): Ditto.
3398         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3399         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3400         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3401         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3402         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3403         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3404         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3405         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3406         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3407         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3408         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3409         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3410         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3411         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3412         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3413         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
3414         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
3415         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3416         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3417         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3418         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3419         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3420         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3421         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3422         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3423         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
3424         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
3425         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
3426         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3427         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3428         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3429         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3430         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3431         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
3432         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
3433         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
3434         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3435         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3436         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3437         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
3438         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3439         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3440         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
3441         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
3442         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3443         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3444         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3445         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3446         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3447         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3448         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3449         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3450         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
3451         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3452         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3453         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3454         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3455         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3456         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3457         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3458         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3459         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3460         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3461         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3462         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3463         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
3464         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
3465         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
3466         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3467         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
3468         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
3469         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
3470         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3471         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
3472         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
3473         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
3474         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
3475         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
3476         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3477         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
3478         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
3479         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3480         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3481         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3482         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3483         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3484         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3485         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3486         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3487         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3488         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3489         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3490         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3491         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3492         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3493         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3494         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3495         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3496         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3497         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3498         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3499         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3500         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3501         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3502         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3503         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3504         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3505         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3506         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3507         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3508         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3509         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3510         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3511         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3512         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3513         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
3514         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
3515         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
3516         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3517         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3518         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3519         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
3520         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3521         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3522         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3523         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3524         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3525         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3526         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3527         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3528         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
3529         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
3530         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
3531         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3532         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3533         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3534         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3535         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3536         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3537         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3538         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3539         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3540         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3541         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3542         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3543         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3544         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3545         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3546         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3547         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3548         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3549         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3550         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3551         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3552         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
3553         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
3554         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
3555         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3556         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3557         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3558         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3559         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3560         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3561         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3562         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3563         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
3564         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3565         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3566         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
3567         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3568         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3569         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
3570         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
3571         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
3572         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3573         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3574         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
3575         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3576         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3577         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3578         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3579         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3580         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3581         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3582         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3583         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3584         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3585         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
3586         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3587         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3588         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3589         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3590         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3591         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3592         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3593         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3594         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3595         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3596         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3597         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3598         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3599         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3600         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3601         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3602         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3603         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3604         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3605         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3606         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3607         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3608         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3609         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3610         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3611         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
3612         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3613         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3614         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3615         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3616         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3617         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3618         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3619         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3620         (QI_FTYPE_V8DF_INT_QI): Ditto.
3621         (QI_FTYPE_V4DF_INT_QI): Ditto.
3622         (QI_FTYPE_V2DF_INT_QI): Ditto.
3623         (HI_FTYPE_V16SF_INT_HI): Ditto.
3624         (QI_FTYPE_V8SF_INT_QI): Ditto.
3625         (QI_FTYPE_V4SF_INT_QI): Ditto.
3626         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
3628 2015-07-31  Richard Biener  <rguenther@suse.de>
3630         * gimple-fold.c (fold_gimple_assign): Remove folding of
3631         GIMPLE_BINARY_RHS.
3633 2015-07-31  Tom de Vries  <tom@codesourcery.com>
3635         PR tree-optimization/66846
3636         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
3637         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
3638         (expand_omp_target) [ENABLE_CHECKING]: Same.
3639         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
3640         cfun if !LOOPS_NEED_FIXUP.
3641         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
3642         that omp_for already has its own loop struct.
3643         * tree-parloops.c (create_phi_for_local_result)
3644         (create_call_for_reduction): Handle simple latch bb.
3645         (create_parallel_loop): Add simple latch bb to preserve
3646         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
3647         (gen_parallel_loop): Remove call to cancel_loop_tree.
3648         (parallelize_loops): Skip loops that are inner loops of parallelized
3649         loops.
3650         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
3651         verify_loop_structure.
3653 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3655         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
3656         * config/v850/v850.md (RV_REGNUM): New constants.
3657         * config/v850/v850.c (v850_libcall_value): New functions.
3658         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
3659         (TARGET_LIBCALL_VALUE): Define.
3661 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3663         * rtl.h (lowpart_subreg): Move in file.
3664         * loop-iv.c (lowpart_subreg): Move to...
3665         * simplify-rtx.c (lowpart_subreg): ...here.
3666           (simplify_binary_operation_1): Use lowpart_subreg instead of
3667           simplify_gen_subreg.
3668         * expr.c (expand_expr_real_2): Ditto.
3669         * emit-rtl.c (gen_lowpart_common): Ditto.
3670         * combine.c (gen_lowpart_for_combine): Ditto.
3671         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
3672           expand_debug_source_expr): Ditto.
3674 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
3676         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
3677         (expand_builtin_atomic_clear): Remove support for atomic_clear
3678         pattern.
3680 2015-07-30  Richard Biener  <rguenther@suse.de>
3682         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
3683         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
3684         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
3685         redundant operand canonicalization.
3687 2015-07-30  David Sherwood  <david.sherwood@arm.com>
3689         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
3690         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
3691         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
3692         * config/arm/arm.c (neon_valid_immediate): Likewise.
3693         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
3694         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
3695         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
3696         (expand_vec_perm_vpshufb2_vpermq): Likewise.
3697         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
3698         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3699         * config/i386/sse.md
3700         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
3701         (*ssse3_palignr<mode>_perm): Likewise.
3702         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
3703         * config/spu/spu.c (arith_immediate_p): Likewise.
3704         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3705         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
3707 2015-07-30  Richard Biener  <rguenther@suse.de>
3709         * genmatch.c (decision_tree::gen_gimple): Merge with ...
3710         (decision_tree::gen_generic): ... this into ...
3711         (decision_tree::gen): ... this.
3712         (main): Adjust callers.
3714 2015-07-30  Richard Biener  <rguenther@suse.de>
3716         * genmatch.c (verbose): New global.
3717         (warning_at): Add overload with source_location.
3718         (capture_info::capture_info): Add bool whether generating gimple
3719         or generic.  Add gimple member.
3720         (capture_info::cinfo): Add capture member.
3721         (capture_info::walk_match): Record capture.  Warn on
3722         non-captured leafs.
3723         (capture_info::walk_c_expr): Add more fragments captures cannot
3724         escape through.  Warn on escaped captures.
3725         (dt_simplify::gen_1): Warn on operands we force to have no
3726         side-effects.
3727         (main): Initialize verbose.
3728         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
3730 2015-07-30  Richard Biener  <rguenther@suse.de>
3732         PR middle-end/67053
3733         * match.pd: Allow both operands to independently have conversion
3734         when simplifying compares of addresses.
3736 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
3738         PR target/66217
3739         PR target/67045
3740         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
3741         around those cases that need one.
3743 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
3745         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
3747 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
3749         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3750         New.  Copied from config/i386/gnu-user.h.
3751         (ASM_COMMENT_START): Likewise.
3752         (DBX_REGISTER_NUMBER): Likewise.
3754 2015-07-29  Richard Biener  <rguenther@suse.de>
3756         * gimple-fold.c (fold_gimple_cond): Remove.
3757         (fold_stmt_1): Do not call it.
3759 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
3761         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
3762         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
3764         * config/aarch64/aarch64-modes.def: Add HFmode.
3766         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3767         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
3769         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
3770         aarch64_promoted_type): New.
3772         (aarch64_float_const_representable_p): Disable HFmode.
3773         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
3774         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
3775         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
3777         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
3778         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
3780         * config/aarch64/iterators.md (GPF_F16): New.
3782 2015-07-29  Richard Biener  <rguenther@suse.de>
3784         * match.pd: Merge address comparison patterns and make them
3785         handle some more cases.
3787 2015-07-29  Richard Biener  <rguenther@suse.de>
3789         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
3790         (parser::parse_capture): Add bool argument on whether to reject
3791         unknown captures.
3792         (parser::parse_expr): Adjust.
3793         (parser::parse_op): Likewise.
3794         (parser::parse_pattern): Likewise.
3796 2015-07-29  Richard Biener  <rguenther@suse.de>
3798         * gimple-fold.c (has_use_on_stmt): New function.
3799         (replace_stmt_with_simplification): Use it to allow
3800         abnormals originally referenced in the stmt.
3801         (fold_stmt_1): Canonicalize operand order.
3803 2015-07-28  David Sherwood  <david.sherwood@arm.com>
3805         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
3806         GET_MODE_INNER unconditionally.
3807         * config/spu/spu.c (arith_immediate_p): Likewise.
3808         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
3809         * expmed.c (synth_mult): Remove check for VOIDmode result from
3810         GET_MODE_INNER.
3811         (expand_mult_const): Likewise.
3812         * fold-const.c (fold_binary_loc): Replace call to element_precision
3813         with call to GET_MODE_PRECISION.
3814         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
3815         m->name.
3816         (emit_mode_inner): Likewise.
3817         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
3818         result check.
3819         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
3820         (GET_MODE_UNIT_PRECISION): Likewise.
3821         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
3822         * simplify-rtx.c (simplify_immed_subreg): Likewise.
3823         * stor-layout.c (bitwise_type_for_mode): Update assert.
3824         (element_precision): Remove.
3826 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3828         * target-insns.def (reload_load_address): New targetm instruction
3829         pattern.
3830         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
3832 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3834         * target-insns.def (atomic_test_and_set): New targetm instruction
3835         pattern.
3836         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
3837         HAVE_*/gen_* interface.
3839 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3841         * target-insns.def (can_extend, ptr_extend): New targetm instruction
3842         patterns.
3843         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
3844         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3845         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3846         * rtlanal.c (nonzero_bits1): Likewise.
3847         (num_sign_bit_copies1): Likewise.
3849 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3851         * target-insns.def (eh_return): New targetm instruction pattern.
3852         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
3853         interface.
3854         * function.c (thread_prologue_and_epilogue_insns): Remove
3855         preprocessor condition.
3857 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3859         * target-insns.def (indirect_jump): New targetm instruction pattern.
3860         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
3861         interface.
3863 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3865         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
3866         instead of nonimmediate_operand.  Remove C condiition.
3868 2015-07-28  Richard Biener  <rguenther@suse.de>
3870         * match.pd: Add more simplification of address comparisons.
3872 2015-07-28  Richard Biener  <rguenther@suse.de>
3874         * match.pd: Re-order two cases in comparison with max/min
3875         value simplification to make it apply for bools.
3877 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3879         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
3880         Handle simple SIGN_EXTEND or ZERO_EXTEND.
3881         (aarch64_rtx_costs): Properly strip extend or extract before
3882         passing down to rtx costs again.
3884 2015-07-28  Nick Clifton  <nickc@redhat.com>
3886         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
3887         Optimizes the case where -mes0 is active and a constant symbolic
3888         address is used.
3889         * config/rl78/rl78-protos.h: Prototype the new function.
3890         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
3892 2015-07-28  Tom de Vries  <tom@codesourcery.com>
3894         * tree-parloops.c (reduc_stmt_res): New function.
3895         (initialize_reductions, add_field_for_reduction)
3896         (create_phi_for_local_result, create_loads_for_reductions)
3897         (create_stores_for_reduction, build_new_reduction): Handle case that
3898         reduc_stmt is a phi.
3899         (gather_scalar_reductions): Allow double_reduc reductions.
3901 2015-07-28  Richard Biener  <rguenther@suse.de>
3903         * fold-const.c (fold_comparison): Remove equality folding
3904         of decl addresses ...
3905         * match.pd: ... here and merge with existing pattern.
3907 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3909         PR tree-optimization/66828
3910         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
3911         from int64_t to uint64_t.
3913 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3915         * opts-common.c (read_cmdline_option): List DriverOnly enum values
3916         as valid only in the error message of the driver, not in the
3917         messages of the language compilers.
3919 2015-07-27  Tom de Vries  <tom@codesourcery.com>
3921         * tree-parloops.c (gather_scalar_reductions): Simplify function
3922         structure.
3924 2015-07-27  Marek Polacek  <polacek@redhat.com>
3926         * ipa-devirt.c (types_same_for_odr): Fix typo.
3928 2015-07-27  Jason Merrill  <jason@redhat.com>
3930         PR debug/66468
3931         * dwarf2out.c (gen_inlined_subroutine_die): Check
3932         cgraph_function_possibly_inlined_p.
3934 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
3936         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
3937         Place integer variant first.
3938         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3940 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
3942         PR/63870
3943         * config/arm/arm-builtins.c (enum arm_builtins):
3944         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
3945         (ARM_BUILTIN_NEON_BASE): Rename macro to....
3946         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
3947         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
3948         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
3950 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
3952         PR/63870
3953         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
3954         Add qualifier_lane_index.
3955         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
3956         (arm_getlane_qualifiers): Use qualifier_lane_index.
3957         (arm_lanemac_qualifiers): Rename to...
3958         (arm_mac_n_qualifiers): ...this.
3959         (LANEMAC_QUALIFIERS): Rename to...
3960         (MAC_N_QUALIFIERS): ...this.
3961         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
3962         (arm_setlane_qualifiers): Use qualifier_lane_index.
3963         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
3964         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
3965         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
3966         (arm_expand_neon_builtin): Handle qualifier_lane_index.
3968         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
3969         * config/arm/arm.c (bounds_check): Likewise, improve error message.
3970         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
3971         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
3972         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
3973         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
3974         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
3975         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
3976         qualifiers to TERNOP_IMM.
3977         (vdup_lane): Change qualifiers to GETLANE.
3978         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
3979         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
3980         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
3981         vqdmlsl_n): Change qualifiers to MAC_N.
3983         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
3984         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
3985         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
3986         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
3987         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
3988         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
3989         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
3990         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
3991         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
3992         Remove call to neon_lane_bounds.
3994 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
3996         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
3997         Place integer variant first.
3999 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
4001         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
4002         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
4003         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
4004         for armv6kz targets.
4005         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
4006         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
4007         (FL_FOR_ARCH6ZK): Remove.
4008         (FL_FOR_ARCH6KZ): New.
4009         (arm_arch6zk): New declaration.
4010         * config/arm/arm-tables.opt: Regenerate.
4011         * config/arm/arm.c (arm_arch6kz): New.
4012         (arm_option_override): Set arm_arch6kz.
4013         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
4014         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
4015         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
4017 2015-07-27  Marek Polacek  <polacek@redhat.com>
4019         PR c++/66555
4020         PR c/54979
4021         * doc/invoke.texi: Document -Wtautological-compare.
4023 2015-07-27  Richard Biener  <rguenther@suse.de>
4025         * genmatch.c (decision_tree::gen_gimple): Split out large
4026         subtrees into separate functions.
4027         (decision_tree::gen_generic): Likewise.
4029 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
4031         * config/alpha/alpha.c: Use SUBREG_P predicate.
4032         * config/alpha/predicates.md: Ditto.
4034 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4036         * config.host (s390*-*-*): Include driver-native.c only when
4037         building with s390* as host *and* target.
4039 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
4041         PR target/66930
4042         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
4043         T bit register modified_between_p check.
4045 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4047         * config/i386/i386.c: Use SUBREG_P predicate.
4048         * config/i386/i386.md: Ditto.
4049         * config/i386/sse.md: Ditto.
4050         * config/i386/predicates.md: Ditto.
4052 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4054         PR target/67004
4055         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
4056         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
4058 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4060         * Makefile.in: Remove use of TREEBROWSER.
4061         * config.in: Regenerated.
4062         * configure: Regenerated.
4063         * configure.ac: Remove definition of TREEBROWSER.
4064         * tree-browser.c: Removed.
4065         * tree-browser.def: Removed.
4067 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4069         * graphite-scop-detection.c: Include gimple-pretty-print.h.
4070         (stmt_simple_for_scop_p): Print when a stmt is not handled in
4071         Graphite.
4072         (scopdet_basic_block_info): Print when a loop or bb cannot be
4073         represented in Graphite.
4075 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4077         PR target/66648
4078         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
4079         execution guard when min_size is less than size_needed.
4081 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4083         * doc/install.texi: Document supported versions of ISL.
4085 2015-07-25  Jeff Law  <law@redhat.com>
4087         Revert:
4088         PR lto/66752
4089         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4090         unable to find X NE 0 in the tables, return X as the simplified
4091         condition.
4092         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4093         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4094         to VISISTED_BBS.  */
4095         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4096         after removing the control flow statement and unnecessary edges.
4098 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
4100         Revert:
4101         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4103         PR rtl-optimization/64164
4104         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4105         * tree-ssa-copyrename.c: Removed.
4106         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4107         -ftree-coalesce-vars.
4108         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4109         * common.opt (ftree-copyrename): Ignore.
4110         (ftree-coalesce-inlined-vars): Likewise.
4111         * doc/invoke.texi: Remove the ignored options above.
4112         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4113         * tree-ssa-coalesce.h: ... here.
4114         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4115         headers required by it.
4116         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4117         across variables when flag_tree_coalesce_vars.  Check register
4118         use and promoted modes to allow coalescing.  Moved to
4119         tree-ssa-coalesce.c.
4120         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4121         with its member functions to tree-ssa-coalesce.c.
4122         (var_map_base_init): Likewise.  Renamed to
4123         compute_samebase_partition_bases.
4124         (partition_view_normal): Drop want_bases parameter.
4125         (partition_view_bitmap): Likewise.
4126         * tree-ssa-live.h: Adjust declarations.
4127         * tree-ssa-coalesce.c: Include explow.h.
4128         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4129         default defs at the entry point.
4130         (dump_part_var_map): New.
4131         (compute_optimized_partition_bases): New, called by...
4132         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4133         of compute_samebase_partition_bases.  Adjust.
4134         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4135         * cfgexpand.c (leader_merge): New.
4136         (get_rtl_for_parm_ssa_default_def): New.
4137         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4138         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4139         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4140         redundant MEM attr setting.
4141         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4142         from...
4143         (expand_one_stack_var): ... this.  New wrapper to check and
4144         skip already expanded SSA partitions.
4145         (record_alignment_for_reg_var): New, factored out of...
4146         (expand_one_var): ... this.
4147         (expand_one_ssa_partition): New.
4148         (adjust_one_expanded_partition_var): New.
4149         (expand_one_register_var): Check and skip already expanded SSA
4150         partitions.
4151         (expand_used_vars): Don't create DECLs for anonymous SSA
4152         names.  Expand all SSA partitions, then adjust all SSA names.
4153         (pass::execute): Replace the loops that set
4154         SA.partition_to_pseudo from partition leaders and cleared
4155         DECL_RTL for multi-location variables, and that which used to
4156         rename vars and set attrs, with one that clears DECL_RTL and
4157         checks that PARMs and RESULTs default_defs match DECL_RTL.
4158         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4159         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4160         * explow.c (promote_ssa_mode): New.
4161         * explow.h (promote_ssa_mode): Declare.
4162         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4163         * function.c: Include cfgexpand.h.
4164         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4165         (use_register_for_parm_decl): Wrapper for the above to
4166         special-case the result_ptr.
4167         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4168         (split_complex_args): Take assign_parm_data_all argument.
4169         Pass it to rtl_for_parm.  Set up rtl and context for split
4170         args.
4171         (assign_parms_augmented_arg_list): Adjust.
4172         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4173         multiple locations.  Recognize split complex args.
4174         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4175         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4176         (assign_parm_setup_block): Prefer SSA-assigned location.
4177         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4178         if stack_parm is NULL.
4179         (assign_parm_setup_stack): Prefer SSA-assigned location.
4180         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4181         rtl before testing for pointer bounds.  Special-case result_ptr.
4182         (expand_function_start): Maybe reset DECL_RTL of result.
4183         Prefer SSA-assigned location for result and static chain.
4184         Factor out DECL_RESULT and SET_DECL_RTL.
4185         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4186         anonymous SSA names.  Use promote_ssa_mode.
4187         (get_temp_reg): Likewise.
4188         (remove_ssa_form): Adjust.
4189         * stor-layout.c (layout_decl): Don't set mem attributes of
4190         non-MEMs.
4191         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4192         and get its reg_usage for reg invalidation.
4193         (compute_bb_dataflow): Pass it insn.
4194         (emit_notes_in_bb): Likewise.
4196 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4198         * config/i386/i386.c (ix86_va_start): Remove
4199         unneeded !TARGET_64BIT check.
4200         (ix86_gimplify_va_arg): Ditto.
4202 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4204         * graphite-sese-to-poly.c (build_poly_scop): Always call
4205         rewrite_commutative_reductions_out_of_ssa.
4207 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4209         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
4210         flag_associative_math to FLOAT_TYPE_P.  Honour
4211         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
4213 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4215         PR c++/64079
4216         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
4217         and "%qD" in warning_at instead of "%q+D" in warning.
4219 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
4221         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
4222         (ix86_function_abi): Cleanup.
4224 2015-07-24  Michael Darling  <darlingm@gmail.com>
4226         PR other/66259
4227         * acinclude.m4: Reflects renaming of configure.in to configure.ac
4228         * configure: Likewise
4229         * configure.ac: Likewise
4230         * doc/install.texi: Likewise
4231         * doc/tm.texi: Likewise
4232         * doc/tm.texi.in: Likewise
4234 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4236         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
4237         manually swapping values.
4238         * cse.c (fold_rtx): Likewise.
4239         * lra-eliminations.c (form_sum): Likewise.
4241 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
4243         PR target/64003
4244         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
4245         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
4246         (*jcc_1, *jcc_2, jump, simple_return_internal)
4247         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
4248         Set length_nobnd attribute instead of length attribute.
4249         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
4250         (length_nobnd): Remove attribute.
4251         (length): Remove length_nobnd processing.
4253 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
4255         * gimplify.c (omp_default_clause): New function.  Reorganize flow
4256         for clarity. Broken out of ...
4257         (omp_notice_variable): ... here.
4259 2015-07-24  Gary Funck  <gary@intrepid.com>
4261         PR middle-end/66984
4262         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
4263         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
4265 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4267         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
4268         exit-first loop transform.
4270 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
4272         PR 66714
4273         * tree-cfg.c (struct replace_decls_d): New struct.
4274         (replace_block_vars_by_duplicates_1): New function.
4275         (replace_block_vars_by_duplicates): Use it to replace the decls
4276         in the value exprs by duplicates.
4278 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4280         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
4281         -shared, -symbolic, -rdynamic.
4283 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4285         PR target/65711
4286         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
4287         -dynamic-linker within %{!static %{!shared, and -rdynamic within
4288         %{!static.
4290 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
4292         PR ipa/66566
4293         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
4294         edge summary is available.
4296 2015-07-24  Richard Biener  <rguenther@suse.de>
4298         * genmatch.c (struct dt_node): Add statistic fields.
4299         (dt_node::analyze): New method.
4300         (decision_tree::gen_gimple): Call analyze on the root node
4301         and print statistics to stderr.
4302         (decision_tree::gen_generic): Likewise.
4304 2015-07-24  Richard Biener  <rguenther@suse.de>
4306         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
4307         against the highest or lowest possible integer ...
4308         * match.pd: ... as patterns here.
4310 2015-07-24  Richard Biener  <rguenther@suse.de>
4312         * genmatch.c (struct capture_info): Add same_as field.
4313         (capture_info::capture_info): Initialize same_as.
4314         (capture_info::walk_match): Compute same_as.
4315         (capture_info::walk_result): Compute stuff for the leader.
4316         (capture_info::walk_c_expr): Likewise.
4317         (dt_simplify::gen_1): Only look at leaders when deciding
4318         to force no side-effects or emit side-effects of omitted operands.
4320 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4322         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
4323         reg note to the GPR -> FPR save instructions.
4325 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4327         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
4328         cheaper.
4329         (s390_expand_insv): Don't generate risbg pattern for constant zero
4330         sources.
4331         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
4332         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
4333         splitters.
4335 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4337         * config/s390/s390.c (s390_reorg): Clean up handling of processors
4338         with
4339         -mtune=
4340         (s390_issue_rate): Likewise.
4341         (s390_sched_reorder): Likewise.
4342         (s390_sched_variable_issue): Likewise.
4343         (s390_loop_unroll_adjust): Likewise.
4344         (s390_option_override):  Likewise.
4346 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4348         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
4349         processor capabilities with -march=native.
4350         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
4351         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
4352         (S390_TARGET_BITS_STRING): Macro to simplify specs.
4354 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4356         * config/s390/s390.c (s390_issue_rate): Handle
4357         PROCESSOR_2094_Z9_EC.
4358         (s390_option_override): Likewise.
4359         (s390_adjust_priority): Likewise.
4361 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4363         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
4364         when cross compiling.
4366 2015-07-24  Richard Biener  <rguenther@suse.de>
4368         * fold-const.c (maybe_canonicalize_comparison_1): Move
4369         A code CST canonicalization ...
4370         * match.pd: ... to a pattern here.
4372 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
4374         Revert:
4375         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4376         PR target/63521
4377         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4378         (HONOR_REG_ALLOC_ORDER): Define.
4380 2015-07-24  Richard Biener  <rguenther@suse.de>
4382         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
4383         * fold-const.c (fold_comparison): Move parameter does not
4384         alias &local simplification ...
4385         * match.pd: ... as a pattern here.
4387 2015-07-24  Richard Biener  <rguenther@suse.de>
4389         * gimple-fold.c (replace_stmt_with_simplification): Special-case
4390         valueizing call operands.
4391         * gimple-match-head.c (maybe_push_res_to_seq): Take
4392         number of call arguments from ops array.
4393         (do_valueize): New function.
4394         (gimple_simplify): Return true if valueization changed
4395         any operand even if the result didn't simplify further.
4397 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4399         PR middle-end/25530
4400         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
4402 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4404         PR middle-end/25529
4405         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
4407 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4409         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
4410         instruction.
4412 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4414         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
4415         clean up.
4417 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
4419         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
4420         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
4421         targets here.
4422         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
4423         ms_va_list_type_node initialization.
4425 2015-07-23  Jeff Law  <law@redhat.com>
4427         PR lto/66752
4428         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4429         unable to find X NE 0 in the tables, return X as the simplified
4430         condition.
4431         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4432         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4433         to VISISTED_BBS.  */
4434         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4435         after removing the control flow statement and unnecessary edges.
4437 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4439         * tree-pass.h (get_current_pass_name): Removed.
4441 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4443         PR rtl-optimization/64164
4444         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4445         * tree-ssa-copyrename.c: Removed.
4446         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4447         -ftree-coalesce-vars.
4448         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4449         * common.opt (ftree-copyrename): Ignore.
4450         (ftree-coalesce-inlined-vars): Likewise.
4451         * doc/invoke.texi: Remove the ignored options above.
4452         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4453         * tree-ssa-coalesce.h: ... here.
4454         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4455         headers required by it.
4456         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4457         across variables when flag_tree_coalesce_vars.  Check register
4458         use and promoted modes to allow coalescing.  Moved to
4459         tree-ssa-coalesce.c.
4460         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4461         with its member functions to tree-ssa-coalesce.c.
4462         (var_map_base_init): Likewise.  Renamed to
4463         compute_samebase_partition_bases.
4464         (partition_view_normal): Drop want_bases parameter.
4465         (partition_view_bitmap): Likewise.
4466         * tree-ssa-live.h: Adjust declarations.
4467         * tree-ssa-coalesce.c: Include explow.h.
4468         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4469         default defs at the entry point.
4470         (dump_part_var_map): New.
4471         (compute_optimized_partition_bases): New, called by...
4472         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4473         of compute_samebase_partition_bases.  Adjust.
4474         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4475         * cfgexpand.c (leader_merge): New.
4476         (get_rtl_for_parm_ssa_default_def): New.
4477         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4478         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4479         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4480         redundant MEM attr setting.
4481         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4482         from...
4483         (expand_one_stack_var): ... this.  New wrapper to check and
4484         skip already expanded SSA partitions.
4485         (record_alignment_for_reg_var): New, factored out of...
4486         (expand_one_var): ... this.
4487         (expand_one_ssa_partition): New.
4488         (adjust_one_expanded_partition_var): New.
4489         (expand_one_register_var): Check and skip already expanded SSA
4490         partitions.
4491         (expand_used_vars): Don't create DECLs for anonymous SSA
4492         names.  Expand all SSA partitions, then adjust all SSA names.
4493         (pass::execute): Replace the loops that set
4494         SA.partition_to_pseudo from partition leaders and cleared
4495         DECL_RTL for multi-location variables, and that which used to
4496         rename vars and set attrs, with one that clears DECL_RTL and
4497         checks that PARMs and RESULTs default_defs match DECL_RTL.
4498         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4499         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4500         * explow.c (promote_ssa_mode): New.
4501         * explow.h (promote_ssa_mode): Declare.
4502         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4503         * function.c: Include cfgexpand.h.
4504         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4505         (use_register_for_parm_decl): Wrapper for the above to
4506         special-case the result_ptr.
4507         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4508         (split_complex_args): Take assign_parm_data_all argument.
4509         Pass it to rtl_for_parm.  Set up rtl and context for split
4510         args.
4511         (assign_parms_augmented_arg_list): Adjust.
4512         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4513         multiple locations.  Recognize split complex args.
4514         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4515         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4516         (assign_parm_setup_block): Prefer SSA-assigned location.
4517         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4518         if stack_parm is NULL.
4519         (assign_parm_setup_stack): Prefer SSA-assigned location.
4520         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4521         rtl before testing for pointer bounds.  Special-case result_ptr.
4522         (expand_function_start): Maybe reset DECL_RTL of result.
4523         Prefer SSA-assigned location for result and static chain.
4524         Factor out DECL_RESULT and SET_DECL_RTL.
4525         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4526         anonymous SSA names.  Use promote_ssa_mode.
4527         (get_temp_reg): Likewise.
4528         (remove_ssa_form): Adjust.
4529         * stor-layout.c (layout_decl): Don't set mem attributes of
4530         non-MEMs.
4531         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4532         and get its reg_usage for reg invalidation.
4533         (compute_bb_dataflow): Pass it insn.
4534         (emit_notes_in_bb): Likewise.
4536 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
4538         PR target/66217
4539         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
4540         prototype.
4541         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
4542         (rs6000_emit_2insn_and): Handle dot forms.
4543         * config/rs6000/rs6000.md (and<mode>3): Adjust.
4544         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
4545         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
4547 2015-07-23  Richard Biener  <rguenther@suse.de>
4549         * generic-match-head.c: Include cgraph.h.
4550         * gimple-match-head.c: Likewise.
4551         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
4552         SSA names.
4553         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
4554         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
4555         pattern.
4557 2015-07-23  Richard Biener  <rguenther@suse.de>
4559         * gimple-fold.c (fold_gimple_cond): Do not require folding
4560         results to pass valid_gimple_rhs_p.
4561         * tree-cfg.h (fold_cond_expr_cond): Remove.
4562         * tree-cfg.c (fold_cond_expr_cond): Likewise.
4563         (make_edges): Do not call it.
4564         * tree-inline.c (tree_function_versioning): Likewise.
4566 2015-07-23  Tom de Vries  <tom@codesourcery.com>
4568         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
4569         vect_force_simple_reduction.
4570         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
4571         (vect_is_simple_reduction_1): Add and handle
4572         need_wrapping_integral_overflow parameter.
4573         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
4574         need_wrapping_integral_overflow parameter.
4575         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
4576         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
4577         decl.
4579 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
4581         PR tree-optimization/66926,66951
4582         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
4583         INNER_LOOP and fix up condition for renaming virtual operands.
4585 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4587         * combine.c (try_combine): Use std::swap instead of manually
4588         swapping.
4590 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
4592         * config/mips/i6400.md: New file.
4593         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
4594         (mips64r6): Likewise.
4595         (i6400): Define.
4596         * config/mips/mips-tables.opt: Regenerate.
4597         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
4598         (mips_issue_rate): Add support for i6400.
4599         (mips_multipass_dfa_lookahead): Likewise.
4600         * config/mips/mips.h (TUNE_I6400): Define.
4601         * config/mips/mips.md: Include i6400.md.
4602         (processor): Add i6400.
4603         * doc/invoke.texi (-march=@var{arch}): Add i6400.
4605 2015-07-23  Richard Biener  <rguenther@suse.de>
4607         PR middle-end/66916
4608         * match.pd: Guard widen and sign-change comparison simplification
4609         with single_use.
4611 2015-07-23  Richard Biener  <rguenther@suse.de>
4613         PR tree-optimization/66945
4614         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
4615         ::before_dom_children): Force the propagators idea of
4616         non-executable edges to materialize, not what the folder
4617         chooses.
4619 2015-07-23  Richard Biener  <rguenther@suse.de>
4621         * gimple.h (gimple_cond_make_false): Use 0 != 0.
4622         (gimple_cond_make_true): Use 1 != 0.
4624 2015-07-22  DJ Delorie  <dj@redhat.com>
4626         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
4627         slashes.
4629         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
4630         (ashrhi3): Likewise.
4631         (lshrhi3): Likewise.
4632         (movhi): Take advantage of zero-extend to load small constants.
4633         (movpsi): Likewise.
4634         (and<mode>3): Likewise.
4635         (zero_extendqihi2): Likewise.
4636         (zero_extendqisi2): New.
4637         * config/msp430/constraints.md (N,O): New.
4638         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
4640 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
4642         PR target/66954
4643         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
4644         to enum feature_priority and feature_list.
4645         (fold_builtin_cpu): Add F_AES to enum processor_features
4646         and isa_names_table.
4648 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
4650         PR driver/66737
4651         * config/i386/linux-common.h (MPX_SPEC): Use linker option
4652         for 64bit target only.
4654 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4656         * config/nvptx/nvptx.c: Expand some comments.
4658 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
4660         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
4661         (cortex_a53_advsimd): ...This.
4663 2015-07-22  Richard Biener  <rguenther@suse.de>
4665         * genmatch.c (expr::gen_transform): Clarify error message
4666         and display location.
4668 2015-07-22  Richard Biener  <rguenther@suse.de>
4670         * genmatch.c (struct operand): Add location member.
4671         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
4672         constructors.
4673         (struct simplify): Remove match_location and result_location
4674         members.
4675         (elsehwere): Adjust.
4677 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
4679         * config/mips/m5100.md: New file.
4680         * config/mips/mips-cpus.def (m5100, m5101): Define.
4681         * config/mips/mips-tables.opt: Regenerate.
4682         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
4683         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
4684         -march=m5101 to -mips32r5.
4685         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
4686         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
4687         !-msoft-float.
4688         * config/mips/mips.md: Include m5100.md.
4689         (processor): Add m5100.
4690         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
4692 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
4694         * config/mips/mips-cpus.def (interaptiv): Define.
4695         * config/mips/mips-tables.opt: Regenerate.
4696         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
4697         -mips32r2.
4698         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
4699         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
4701 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4703         PR target/63521
4704         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4705         (HONOR_REG_ALLOC_ORDER): Define.
4707 2015-07-22  Richard Biener  <rguenther@suse.de>
4709         PR tree-optimization/66952
4710         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
4711         blocks we end up executing unconditionally reset all SSA
4712         info such as range and alignment.
4713         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
4714         * tree-ssanames.c (reset_flow_sensitive_info): New function.
4716 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4718         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
4719         typo in attribute.
4721 2015-07-22  Richard Biener  <rguenther@suse.de>
4723         * genmatch.c (parser::parse_result): Properly handle
4724         match with result operands and conditions.
4726 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4728         PR target/63870
4729         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4730         Add qualifier_struct_load_store_lane_index.
4731         (aarch64_types_loadstruct_lane_qualifiers): Use
4732         qualifier_struct_load_store_lane_index for lane index argument for
4733         last argument.
4734         (aarch64_types_storestruct_lane_qualifiers): Ditto.
4735         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4736         (aarch64_simd_expand_args): Add new argument describing mode of
4737         builtin. Check lane bounds for arguments with
4738         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4739         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
4740         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4741         (aarch64_simd_expand_builtin): Handle arguments with
4742         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
4743         aarch64_simd_expand_args.
4744         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
4745         vst[234]_lane with BUILTIN_VALLDIF.
4746         * config/aarch64/aarch64-simd.md:
4747         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
4748         endianness reversal on lane index.
4749         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
4750         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
4751         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
4752         (vec_store_lanesci_lane<mode>): Ditto.
4753         (vec_store_lanesxi_lane<mode>): Ditto.
4754         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
4755         reversal of lane index.
4756         (aarch64_ld3_lane<mode>): Ditto.
4757         (aarch64_ld4_lane<mode>): Ditto.
4758         (aarch64_st2_lane<mode>): Ditto.
4759         (aarch64_st3_lane<mode>): Ditto.
4760         (aarch64_st4_lane<mode>): Ditto.
4761         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
4762         to qmode. Add new mode parameter. Update uses.
4763         (__LD3_LANE_FUNC): Ditto.
4764         (__LD4_LANE_FUNC): Ditto.
4765         (__ST2_LANE_FUNC): Ditto.
4766         (__ST3_LANE_FUNC): Ditto.
4767         (__ST4_LANE_FUNC): Ditto.
4769 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
4771         * doc/invoke.texi (Language Independent Options): Rename node to
4772         Diagnostic Message Formatting Options.
4774 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
4776         PR ipa/66424.
4777         * lra-remat.c (operand_to_remat): Prevent using insns with input
4778         subregs processed separately by IRA.
4780 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
4782         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
4783         straight loops.
4784         (single_imm_use): Check for iterator node.
4785         (num_imm_uses): Likewise.
4786         * tree-ssa-operands.c (has_zero_uses_1): Delete.
4787         (single_imm_use_1): Check for iterator node.
4789 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
4790             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4792         * configure.ac: Add check for new options in isl-0.15.
4793         * config.in, configure: Rebuilt.
4794         * graphite-blocking.c: Include <isl/constraint.h>
4795         * graphite-interchange.c,  graphite-poly.c: Likewise.
4796         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
4797         * graphite.c: Likewise.
4798         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
4799         <isl/union_set.h>.
4800         * graphite-dependences.c: Include <isl/constraint.h>.
4801         (max_number_of_out_dimensions): Returns isl_stat.
4802         (extend_schedule_1): Likewise
4803         (extend_schedule): Corresponding changes.
4804         * graphite-optimize-isl.c: Include <isl/constraint.h> and
4805         <isl/union_set.h>.
4806         (getSingleMap): Change return type of isl_stat.
4807         (optimize_isl): Conditionally use
4808         isl_options_set_schedule_serialize_sccs.
4809         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
4810         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
4812 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
4814         PR target/66956
4815         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
4816         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
4818 2015-07-21  Richard Biener  <rguenther@suse.de>
4820         PR tree-optimization/66948
4821         * genmatch.c (capture_info::walk_match): Also recurse to
4822         captures.  Properly compute expr state from captures of
4823         captures.
4824         * match.pd: Add single-use guards to
4825         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
4827 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
4829         * config/nvptx/mkoffload.c (process): Add static destructor call.
4831 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4833         PR middle-end/66915
4834         * match.pd (A - B -> A + (-B)): Don't allow folding
4835         when type if a fixed-point type.
4837 2015-07-20  DJ Delorie  <dj@redhat.com>
4839         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
4840         (iorqi3_real): Likewise for set1.
4842 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
4844         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
4845         for !TARGET_64BIT.
4847 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
4849         * graphite-isl-ast-to-gimple.c:
4850         Refactor so that each function can access 'region'. This will help
4851         maintain a parameter rename_map within a region.
4853 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4855         * config/rs6000/rs6000.md (*lt0_disi): New.
4857 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4859         PR target/66217
4860         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
4861         "available letters" comment.
4862         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
4863         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
4864         and_2rld_operand):  Delete.
4865         (and_operand): Adjust.
4866         (rotate_mask_operator): New.
4867         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
4868         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
4869         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
4870         extract_ME): Delete.
4871         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4872         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
4873         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
4874         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4875         rs6000_emit_2insn_and): New.
4876         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
4877         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
4878         includes_rldic_lshift_p, includes_rldicr_lshift_p,
4879         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
4880         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4881         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
4882         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
4883         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4884         rs6000_emit_2insn_and): New.
4885         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
4886         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
4887         handling.
4888         <NOT>: Don't fall through to next case.
4889         <AND>: Handle the various rotate-and-mask cases directly.
4890         <IOR>: Always cost as one insn.
4891         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
4892         (and<mode>3): Adjust expander for the new patterns.
4893         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
4894         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
4895         (*and<mode>3_imm_dot_shifted): New.
4896         (*and<mode>3_mask): Delete, rewrite as ...
4897         (and<mode>3_mask): ... New.
4898         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
4899         (andsi3_internal0_nomc): Delete.
4900         (*andsi3_internal6): Delete.
4901         (*and<mode>3_2insn): New.
4902         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4903         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4904         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
4905         *insvdi_internal3): Delete.
4906         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
4907         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
4908         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
4909         *ior<mode>_mask): New.
4910         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
4911         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4912         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4913         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4914         Delete.
4915         (ashr<mode>3): Delete expander.
4916         (*ashr<mode>3): Rename to ...
4917         (ashr<mode>3): ... This.
4918         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
4919         (*rotldi3_internal4, *rotldi3_internal5 and split,
4920         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
4921         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
4922         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
4923         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
4924         (splitter for loading a mask): Adjust.
4925         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
4927 2015-07-20  Marek Polacek  <polacek@redhat.com>
4929         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
4930         output_add_clobbers, output_added_clobbers_hard_reg_p,
4931         gen_rtx_scratch): Remove declarations.
4933 2015-07-20  Marek Polacek  <polacek@redhat.com>
4935         PR c++/55095
4936         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
4938 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4940         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
4941         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
4943 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4945         * combine.c (combine_simplify_rtx): Move simplification step
4946         before various transformations/substitutions.
4948 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
4950         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
4951         (struct int_traits): Likewise.
4953 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4955         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
4956         function to vmsdbgout_function_decl.
4958 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
4960         PR target/66922
4961         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
4962         from misaligned positions.
4963         (ix86_expand_pinsr): Reject insertions to misaligned positions.
4965 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
4967         PR middle-end/46851
4968         PR middle-end/60340
4969         * Makefile.in: Removed omega.o.
4970         * common.opt: Document flag fcheck-data-deps as deprecated.
4971         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
4972         its associated params: omega-max-vars, omega-max-geqs,
4973         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
4974         omega-max-keys, omega-eliminate-redundant-constraints.
4975         * doc/loop.texi: Remove all the section on Omega.
4976         * graphite-blocking.c: Include missing params.h: it used to be
4977         included through tree-data-ref.h and omega.h.
4978         * graphite-isl-ast-to-gimple.c: Same.
4979         * graphite-optimize-isl.c: Same.
4980         * graphite-sese-to-poly.c: Same.
4981         * graphite.c: Same.
4982         * omega.c: Remove.
4983         * omega.h: Remove.
4984         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
4985         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
4986         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
4987         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
4988         * passes.def: Remove pass_check_data_deps.
4989         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
4990         (dump_conflict_function): Same.
4991         (dump_subscript): Same.
4992         (print_direction_vector): Same.
4993         (print_dir_vectors): Same.
4994         (print_lambda_vector): Same.
4995         (print_dist_vectors): Same.
4996         (dump_data_dependence_relation): Same.
4997         (dump_data_dependence_relations): Same.
4998         (dump_dist_dir_vectors): Same.
4999         (dump_ddrs): Same.
5000         (init_omega_eq_with_af): Removed.
5001         (omega_extract_distance_vectors): Removed.
5002         (omega_setup_subscript): Removed.
5003         (init_omega_for_ddr_1): Removed.
5004         (init_omega_for_ddr): Removed.
5005         (ddr_consistent_p): Removed.
5006         (compute_affine_dependence): Do not use omega to check data
5007         dependences.
5008         (compute_data_dependences_for_bb): Removed.
5009         (analyze_all_data_dependences): Removed.
5010         (tree_check_data_deps): Removed.
5011         * tree-data-ref.h: Do not include omega.h.
5012         (compute_data_dependences_for_bb): Removed.
5013         (tree_check_data_deps): Removed.
5014         * tree-ssa-loop.c (pass_check_data_deps): Removed.
5015         (make_pass_check_data_deps): Removed.
5016         * tree-ssa-phiopt.c: Include params.h.
5017         * tree-vect-data-refs.c: Same.
5018         * tree-vect-slp.c: Same.
5020 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
5022         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
5023         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
5024         (mem->fpreg splitters): Ditto.
5025         (general_operand->nonimmediate_operand splitter): Use explicit modes.
5026         Disable DFmode for TARGET_64BIT.
5028 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
5030         PR target/66906
5031         * config/i386/i386.c (ix86_expand_prologue): Replicate static
5032         chain on the stack.
5034 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5036         * config/nvptx/mkoffload.c (process): Constify host data.
5037         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5038         Constify host data.
5039         (generate_host_descr_file): Likewise.
5041 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
5042             Sebastian Pop  <s.pop@samsung.com>
5044         PR middle-end/61929
5045         * graphite-dependences.c (add_pdr_constraints): Renamed
5046         pdr->extent to pdr->subscript_sizes.
5047         * graphite-interchange.c (build_linearized_memory_access): Add
5048         back all gcc_assert's that the "isl_int to isl_val conversion"
5049         patch has removed.  Refactored.
5050         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
5051         * graphite-poly.c (new_poly_dr): Same.
5052         (free_poly_dr): Same.
5053         * graphite-poly.h (struct poly_dr): Same.
5054         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
5055         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
5056         * graphite-scop-detection.h: Fix space.
5057         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
5058         back all gcc_assert's removed by a previous patch.
5059         (wrap): Remove the_isl_ctx global variable that the same patch has
5060         added.
5061         (build_loop_iteration_domains): Same.
5062         (add_param_constraints): Same.
5063         (pdr_add_data_dimensions): Same.  Refactored.
5064         (build_poly_dr): Renamed extent to subscript_sizes.
5066 2015-07-17  Marek Polacek  <polacek@redhat.com>
5068         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
5069         * match.pd: ... here.
5071 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5073         * config/nvptx/mkoffload.c (process): Constify target data.
5074         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5075         Constify target data.
5076         (generate_target_offloadend_file): Likewise.
5078 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
5080         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
5081         to allow renaming of PHI arguments on edges incoming from outer
5082         loop header, add corresponding check before start PHI iterator.
5083         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
5084         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
5085         with true force_vectorize.  Set-up dominator for outer loop too.
5086         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
5087         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
5088         was marked with force_vectorize and has restricted cfg.
5089         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
5090         inner loop.
5091         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5092         do peeling for outer loops.
5094 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
5095             Matthias Klose  <doko@ubuntu.com>
5097         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
5098         build-sysroot, sysroot from the `Miscenalleous configure options' to
5099         the `Directories' section and strip trailing `/' from with_sysroot.
5100         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
5101         * configure: Regenerated.
5103 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5105         PR target/66824
5106         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
5107         (TARGET_HARD_DF_REGS): Ditto.
5108         (TARGET_HARD_XF_REGS): Ditto.
5109         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
5110         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
5111         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
5112         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
5113         (*movsf_internal): Add alternatives 16 and 17. Enable
5114         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
5116 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5118         PR rtl-optimization/66891
5119         * calls.c (expand_call): Wrap precompute_register_parameters with
5120         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
5122 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
5124         * config/nvptx/mkoffload.c (process): Constify mapping variables.
5125         Define target data struct and initialize it.
5127 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
5129         PR rtl-optimization/66626
5130         * ira.h (emit-rtl.h): Include.
5131         (non_spilled_static_chain_regno_p): New.
5132         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
5133         unless it is non spilled static chain pseudo.
5134         (assign_hard_rego): Spill memory profitable allocno unless it is
5135         non spilled static chain pseudo.
5136         (allocno_spill_priority_compare): Put non spilled static chain
5137         pseudo at the end of sorted array.
5138         (improve_allocation): Do nothing if we have static chain and
5139         non-local goto.
5140         (allocno__priority_compare_func): Put non spilled static chain
5141         pseudo at the beginning of sorted array.
5142         (move_spill_restore): Ignore non spilled static chain pseudo.
5143         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
5144         to non spilled static chain pseudo.
5145         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
5146         pseudo at the beginning of sorted array.
5147         (spill_for): Spill non spilled static chain pseudo last.
5148         * lra-constraints.c (lra_constraints): Remove static chain pseudo
5149         check for equivalence.
5151 2015-07-16  Martin Liska  <mliska@suse.cz>
5153         PR ipa/66896.
5154         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
5155         dst_ctx if it does not exist.
5157 2015-07-16  Martin Liska  <mliska@suse.cz>
5159         * hash-set.h (remove): New function.
5160         (iterator): New iteration class for hash_set.
5162 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5164         * genattrtab.c (make_canonical): Add a file_location parameter.
5165         Use fatal_at rather than fatal.
5166         (get_attr_value): Likewise.  Update call to make_canonical.
5167         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
5168         (make_internal_attr): Update calls accordingly.
5170 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5172         * read-md.h (message_with_line, error_with_line): Delete.
5173         * read-md.c (message_with_line, error_with_line): Delete.
5174         * gensupport.h: Include read-md.h.
5175         (md_rtx_info): New structure.
5176         (read_md_rtx): Use it.  Return a bool success value.
5177         * gensupport.c (read_md_rtx): Likewise.
5178         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
5179         (main): Update after interface changes.
5180         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
5181         (main): Update after interface changes.
5182         * genattrtab.c (insn_code_number): Delete.
5183         (optimize_attrs): Add a max_insn_code parameter and use it instead
5184         of insn_code_number.
5185         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
5186         Use *_at rather than *_with_line functions.
5187         (gen_insn): Likewise.
5188         (gen_delay): Likewise.
5189         (gen_insn_reserv): Likewise.
5190         (gen_bypass): Take an md_rtx_info rather than an rtx.
5191         (main): Update after interface changes.  Use a local max_insn_code
5192         variable instead of insn_code_number.
5193         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
5194         an rtx.  Use fatal_at rather than fatal.
5195         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
5196         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
5197         (gen_absence_set, gen_final_absence_set, gen_automaton)
5198         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
5199         (main): Update after interface changes.
5200         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
5201         and code number.
5202         (main): Update after interface changes.
5203         * genconditions.c (main): Use new read_md_rtx interface.
5204         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
5205         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
5206         (main): Update after interface changes.
5207         * genemit.c (insn_code_number, insn_index_number): Delete.
5208         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5209         Use fatal_at rather than fatal.
5210         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
5211         rather than fatal.
5212         (gen_split): Likewise.
5213         (main): Update after interface changes.
5214         * genextract.c (line_no): Delete.
5215         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5216         Update call to walk_rtx.
5217         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
5218         rather than message_with_line.
5219         (walk_rtx): Add an md_rtx_info argument.  Update call to
5220         VEC_safe_set_locstr.
5221         (main): Update after interface changes.
5222         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
5223         and lineno.  Use error_at rather than separate message_with_line
5224         calls and have_error assignments.
5225         (main): Update after interface changes.
5226         * genmddump.c (main): Use new read_md_rtx interface.
5227         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
5228         (main): Update after interface changes.
5229         * genoutput.c (next_code_number): Delete.
5230         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5231         (gen_peephole, gen_expand, gen_split): Likewise.
5232         (note_constraint): Likewise.  Use *_at rather than *_with_line
5233         functions.
5234         (main): Update after interface changes.
5235         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
5236         rtx and lineno.
5237         (main): Update after interface changes.
5238         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
5239         than an rtx and lineno.
5240         (process_define_constraint): Likewise.
5241         (process_define_register_constraint): Likewise.
5242         (main): Update after interface changes.
5243         * genrecog.c (next_insn_code, pattern_lineno): Delete.
5244         (validate_pattern): Replace top-level rtx with an md_rtx_info.
5245         Use *_at rather than *_with_line functions.
5246         (match_pattern_2): Likewise.
5247         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
5248         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
5249         Use *_at rather than *_with_line functions.
5250         * gentarget-def.c (add_insn): New function.
5251         (main): Use it.  Use new read_md_rtx interface.
5253 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5255         * gensupport.h (compute_test_codes): Take a file_location rather
5256         than a line number.
5257         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
5258         rather than *_with_line functions.
5259         (process_define_predicate): Update call to compute_test_codes.
5260         * genpreds.c (validate_exp): Take a file_location rather than a
5261         line number.  Use *_at functions rather than *_with_line functions.
5262         (process_define_predicate): Update call to validate_exp.
5263         (constraint_data): Replace lineno field with a file_location.
5264         (add_constraint): Take a file_location rather than a line number.
5265         Use *_at functions rather than *_with_line functions.  Fix error
5266         message for address constraints.  Update after changes to
5267         validate_exp, constraint_data and compute_test_codes.
5268         (process_define_constraint): Update accordingly.
5269         (process_define_register_constraint): Likewise.
5271 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5273         * genoutput.c (data): Use a file_location to record the source
5274         position.
5275         (nothing): Delete.
5276         (idata, idata_end): Remove initialization.
5277         (constraint_data): Replace lineno with a file_location.
5278         (output_insn_data): Update after changes to data.
5279         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
5280         (scan_operands): Likewise, using *_at rather than *_with_line
5281         functions.
5282         (process_template): Likewise.
5283         (validate_insn_alternatives): Likewise.
5284         (validate_insn_operands): Likewise.
5285         (validate_optab_operands): Likewise.
5286         (init_insn_for_nothing): Initialize idata and idata_end.
5287         (note_constraint): Update after changes to constraint_data,
5288         using at rather than with_line functions.
5289         (mdep_constraint_len): Take a file_location rather than a
5290         line number.  Use at rather than with_line functions.
5292 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5294         * read-md.h (fatal_at): Declare.
5295         * read-md.c (fatal_at): New function.
5296         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
5297         to record the source position.
5298         (check_attr_test): Take a file_location instead of a line number.
5299         Use fatal_at instead of fatal.
5300         (check_attr_value): Update after above changes, using "at"
5301         rather than "with_line" reporting functions.
5302         (convert_set_attr_alternative): Likewise.
5303         (gen_attr): Likewise.
5304         (check_defs): Likewise.  Don't assign to read_md_filename.
5305         (gen_insn): Update initialization after above changes.
5306         (gen_delay): Likewise.
5307         (write_insn_cases): Print the filename for a define_peephole.
5308         (gen_insn_reserv): Take a line number as argument and update
5309         the call to check_attr_test.
5310         (main): Pass a line number to gen_insn_reserv.
5312 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5314         * read-md.h (file_location): New structure.
5315         (directive_handler_t): Take a file_location rather than a line number.
5316         (message_at, error_at): Declare.
5317         (read_skip_construct): Delete.
5318         * read-md.c (message_with_line_1): Replace with...
5319         (message_at_1): ...this new function.
5320         (message_at, error_at): New functions.
5321         (message_with_line, error_with_line): Update to use message_at_1.
5322         (handle_enum): Take a file_location rather than a line number
5323         and use error_at for error reporting.
5324         (handle_include): Likewise.
5325         (read_skip_construct): Likewise.  Make static.
5326         (handle_file): Update after above changes.  Pass a file_location
5327         rather than a line number to handle_directive.
5328         * gensupport.c (queue_elem): Replace separate filename and lineno
5329         with a file_location.
5330         (queue_pattern): Replace filename and lineno arguments with a
5331         file_location.  Update after change to queue_elem.
5332         (process_define_predicate): Replace lineno argument with a
5333         file_location and use error_at for error reporting.  Update
5334         after above changes.
5335         (process_rtx): Likewise.
5336         (subst_pattern_match): Likewise.
5337         (get_alternatives_number): Likewise.
5338         (alter_predicate_for_insn): Likewise.
5339         (rtx_handle_directive): Likewise.
5340         (is_predicable): Update after above changes, using error_at rather
5341         than error_with_line.
5342         (has_subst_attribute): Likewise.
5343         (identify_predicable_attribute): Likewise.
5344         (alter_attrs_for_subst_insn): Likewise.
5345         (process_one_cond_exec): Likewise.
5346         (process_substs_on_one_elem): Likewise.
5347         (process_define_subst): Likewise.
5348         (check_define_attr_duplicates): Likewise.
5349         (read_md_rtx): Update after change to queue_elem.
5351 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5353         * genoutput.c (next_index_number): Delete.
5354         (data): Remove index_number.
5355         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
5356         (main): Remove manipulation of next_index_number.
5358 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5360         * genattrtab.c (check_attr_value): Remove handling of null attrs.
5361         (make_canonical): Likewise.
5363 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
5365         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
5366         instead of adjust_address_nv.
5367         (restore_stack_nonlocal): Likewise.
5368         (nonlocal_goto): Likewise.
5370 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5372         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
5373         not have a corresponding loop header phi.
5375 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5377         * tree-parloops.c (create_loads_for_reductions): Handle case that
5378         reduction is unused.
5380 2015-07-16  Richard Biener  <rguenther@suse.de>
5382         PR tree-optimization/66894
5383         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
5384         about deriving NE_EXPR from truncated values.
5386 2015-07-16  Martin Liska  <mliska@suse.cz>
5388         * alloc-pool.h
5389         (object_allocator): Add new class.
5390         (pool_allocator::initialize): Use the underlying class.
5391         (pool_allocator::allocate): Likewise.
5392         (pool_allocator::remove): Likewise.
5393         (operator new): A new generic allocator.
5394         * asan.c (struct asan_mem_ref): Remove unused members.
5395         (asan_mem_ref_new): Replace new operator with
5396         object_allocator::allocate.
5397         (free_mem_ref_resources): Change deallocation.
5398         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
5399         with object_allocator.
5400         * config/sh/sh.c (add_constant): Replace new operator with
5401         object_allocator::allocate.
5402         (sh_reorg): Change call to a release method.
5403         * cselib.c (struct elt_list): Remove unused members.
5404         (new_elt_list): Replace new operator with
5405         object_allocator::allocate.
5406         (new_elt_loc_list): Likewise.
5407         (new_cselib_val): Likewise.
5408         (unchain_one_elt_list): Change delete operator with remove method.
5409         (unchain_one_elt_loc_list): Likewise.
5410         (unchain_one_value): Likewise.
5411         (cselib_finish): Release newly added static allocators.
5412         * cselib.h (struct cselib_val): Remove unused members.
5413         (struct elt_loc_list): Likewise.
5414         * df-problems.c (df_chain_alloc): Replace pool_allocator with
5415         object_allocator.
5416         * df-scan.c (struct df_scan_problem_data): Likewise.
5417         (df_scan_alloc): Likewise.
5418         * df.h (struct dataflow): Likewise.
5419         * dse.c (struct read_info_type): Likewise.
5420         (struct insn_info_type): Likewise.
5421         (struct dse_bb_info_type): Likewise.
5422         (struct group_info): Likewise.
5423         (struct deferred_change): Likewise.
5424         (get_group_info): Likewise.
5425         (delete_dead_store_insn): Likewise.
5426         (free_read_records): Likewise.
5427         (replace_read): Likewise.
5428         (check_mem_read_rtx): Likewise.
5429         (scan_insn): Likewise.
5430         (dse_step1): Likewise.
5431         (dse_step7): Likewise.
5432         * et-forest.c (struct et_occ): Remove unused members.
5433         (et_new_occ): Use allocate instead of new operator.
5434         (et_new_tree): Likewise.
5435         (et_free_tree): Call release method explicitly.
5436         (et_free_tree_force): Likewise.
5437         (et_free_pools): Likewise.
5438         (et_split): Use remove instead of delete operator.
5439         * et-forest.h (struct et_node): Remove unused members.
5440         * ipa-cp.c: Change pool_allocator to object_allocator.
5441         * ipa-inline-analysis.c: Likewise.
5442         * ipa-profile.c: Likewise.
5443         * ipa-prop.c: Likewise.
5444         * ipa-prop.h: Likewise.
5445         * ira-build.c (initiate_cost_vectors): Cast return value.
5446         (ira_allocate_cost_vector): Likewise.
5447         * ira-color.c (struct update_cost_record): Remove unused members.
5448         * lra-int.h (struct lra_live_range): Likewise.
5449         (struct lra_copy): Likewise.
5450         (struct lra_insn_reg): Likewise.
5451         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
5452         * lra.c (new_insn_reg): Replace new operator with allocate method.
5453         (free_insn_regs): Same for operator delete.
5454         (finish_insn_regs): Release new static allocator.
5455         (finish_insn_recog_data): Likewise.
5456         (lra_free_copies): Replace delete operator with remove method.
5457         (lra_create_copy): Replace operator new with allocate method.
5458         (invalidate_insn_data_regno_info): Same for remove method.
5459         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
5460         (free_debug_insn_changes): Replace delete operator with remove method.
5461         (replace_oldest_value_reg): Replace operator new with allocate method.
5462         (pass_cprop_hardreg::execute): Release new static variable.
5463         * sched-deps.c (sched_deps_init): Change pool_allocator to
5464         object_allocator.
5465         * sel-sched-ir.c: Likewise.
5466         * sel-sched-ir.h: Likewise.
5467         * stmt.c (expand_case): Likewise.
5468         (expand_sjlj_dispatch_table): Likewise.
5469         * tree-sra.c (struct access): Remove unused members.
5470         (struct assign_link): Likewise.
5471         (sra_deinitialize): Release newly added static pools.
5472         (create_access_1):Replace operator new with allocate method.
5473         (build_accesses_from_assign): Likewise.
5474         (create_artificial_child_access): Likewise.
5475         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
5476         pool_allocator to object_allocator.
5477         * tree-ssa-pre.c: Likewise.
5478         * tree-ssa-reassoc.c: Likewise.
5479         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5480         * tree-ssa-strlen.c: Likewise.
5481         * tree-ssa-structalias.c: Likewise.
5482         * var-tracking.c (onepart_pool_allocate): New function.
5483         (unshare_variable): Use the newly added function.
5484         (variable_merge_over_cur): Likewise.
5485         (variable_from_dropped): Likewise.
5486         (variable_was_changed): Likewise.
5487         (set_slot_part): Likewise.
5488         (emit_notes_for_differences_1): Likewise.
5489         (vt_finalize): Release newly added static pools.
5491 2015-07-16  Martin Jambor  <mjambor@suse.cz>
5493         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
5494         all uses.  Fix two typos in its general comment.
5495         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
5497 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
5499         * config/i386/linux-common.h (LINK_MPX): New.
5500         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
5501         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
5502         indicating '-z bndplt' support by linker.
5503         * configure: Regenerate.
5504         * config.in: Regenerate.
5506 2015-07-16  Richard Biener  <rguenther@suse.de>
5508         * fold-const.c (fold_widened_comparison): Remove.
5509         (fold_sign_changed_comparison): Likewise.
5510         (fold_comparison): Move widened and sign-changed comparison
5511         simplification ...
5512         * match.pd: ... to patterns here.
5513         * generic-match-head.c: Include target.h.
5514         * gimple-match-head.c: Likewise.
5516 2015-07-16  Richard Biener  <rguenther@suse.de>
5518         * tree-ssa-dom.c (dom_valueize): New function.
5519         (record_temporary_equivalences): Also record equivalences
5520         for dominating stmts that have uses of equivalences we are
5521         about to record.
5523 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
5525         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
5526         add_autoinc_candidates.
5527         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
5528         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
5529         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
5530         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
5531         Call new function.
5532         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
5533         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
5534         Remove parameter struct iv*.  Call add_autoinc_candidates here.
5535         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
5536         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
5537         Call new function.
5538         (find_iv_candidates): Call new functions.
5540 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
5542         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
5543         uninitialized-variable warning.
5545 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5547         PR target/65249
5548         * config/sh/sh.md (movdi): Split simple reg move to two movsi
5549         when the destination is R0.
5551 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
5553         PR target/66866
5554         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
5555         * config/i386/i386.c (ix86_expand_pextr): New function.
5556         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
5557         for non-lowpart subregs.
5558         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
5559         (insv<mode>): Use SWI248 mode iterator.
5560         (insv<mode>_1): Ditto.
5562 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5563             Sebastian Pop  <s.pop@samsung.com>
5565         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
5566         iterator to use_stmt.
5568 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5569             Sebastian Pop <s.pop@samsung.com>
5571         * graphite-scop-detection.c (build_scops_1): Discard scops for
5572         which entry==exit.
5574 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5575             Sebastian Pop <s.pop@samsung.com>
5577         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
5578         case of a return statement in scop.
5580 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5581             Sebastian Pop <s.pop@samsung.com>
5583         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
5584         INTEGER_TYPE parameters.
5585         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
5586         VECTOR_CST in scan_tree_for_params.
5587         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
5589 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5591         * gimple-pretty-print.h: Don't include pretty-print.h.
5592         * tree-streamer.h: Don't include lto-streamer.h.
5593         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
5594         * gimple-streamer-in.c: Remove redundant includes.
5595         * gimple-streamer-out.c: Likewise.
5596         * ipa-devirt.c: Likewise.
5597         * ipa-icf.c: Likewise.
5598         * ipa-inline-analysis.c: Likewise.
5599         * ipa-polymorphic-call.c: Likewise.
5600         * ipa-profile.c: Likewise.
5601         * ipa-prop.c: Likewise.
5602         * ipa-pure-const.c: Likewise.
5603         * lto-cgraph.c: Likewise.
5604         * lto-streamer-in.c: Likewise.
5605         * lto-streamer-out.c: Likewise.
5606         * lto-streamer.c: Likewise.
5607         * tree-streamer-in.c: Likewise.
5608         * tree-streamer-out.c: Likewise.
5609         * tree-streamer.c: Likewise.
5611 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5613         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
5614         include input.h.
5615         * opts.c: Remove multiline #include comment.
5617 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
5619         * config/nvptx/mkoffload.c (process): Add C++ protection to
5620         emitted code.
5622 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5624         PR target/66854
5625         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
5626         null before IEEE 128-bit floating point support patch.
5628 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5630         * simplify-rtx.c (simplify_ternary_operation): Add simplification
5631         for (!c) != {0,...,0} ? a : b for vector modes.
5633 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
5634             Martin Jambor  <mjambor@suse.cz>
5636         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
5637         struct func_body_info* instead of struct ipa_node_params*, expecting
5638         fbi->info to be filled in.  Replace throughout.  Adjust call to
5639         ipa_load_from_parm_agg.
5640         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
5641         instead of struct ipa_node_params*.  Adjust calls to other functions
5642         so that they pass either fbi or fbi->info.
5643         (set_switch_stmt_execution_predicate): Likewise.
5644         (will_be_nonconstant_predicate): Likewise.
5645         (compute_bb_predicates): Likewise.
5646         (estimate_function_body_sizes): Move asserts earlier.  Fill in
5647         struct func_body_info, replace parms_info with fbi.info.  Adjust
5648         calls to functions that now accept struct func_body_info.
5649         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
5650         (struct func_body_info): Likewise.
5651         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
5652         remove static.  Adjust callers.
5653         (ipa_load_from_parm_agg): Remove.
5654         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
5655         (func_body_info): Likewise.
5656         (ipa_load_from_parm_agg): Adjust prototype.
5658 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5660         * gensupport.c (rtx_handle_directive): Adjust.
5661         * read-rtl.c (apply_iterators): Take vector to add rtxs to
5662         instead of expr list rtx.
5663         (add_define_attr_for_define_subst): Likewise.
5664         (add_define_subst_attr): Likewise.
5665         (read_subst_mapping): Likewise.
5666         (read_rtx): Likewise.
5667         * rtl.h (read_rtx): Adjust.
5669 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5671         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
5673 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5675         PR target/58066
5676         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
5677         (*tls_local_dynamic_base_64_<mode>): Ditto.
5678         (*tls_local_dynamic_base_64_largepic): Ditto.
5679         (tls_global_dynamic_64_<mode>): Update expander pattern.
5680         (tls_local_dynamic_base_64_<mode>): Ditto.
5682 2015-07-15  Richard Biener  <rguenther@suse.de>
5684         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
5685         and bool_var == 1 -> bool_var simplifications ...
5686         * match.pd: ... to patterns here.  Factor out negate_expr_p
5687         cases from the A - B -> A + (-B) patterns as negate_expr_p
5688         predicate and add a -(A + B) -> (-B) - A pattern.
5690 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5692         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
5694 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
5695             Robert Suchanek  <robert.suchanek@imgtec.com>
5697         * config/mips/mips.c (mips_int_mask): New enum.
5698         (mips_shadow_set): Likewise.
5699         (int_mask): New variable.
5700         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
5701         (machine_function): Add int_mask and use_shadow_register_set.
5702         (mips_attribute_table): Add attribute handlers for interrupt and
5703         use_shadow_register_set.
5704         (mips_interrupt_mask): New static function.
5705         (mips_handle_interrupt_attr): Likewise.
5706         (mips_handle_use_shadow_register_set_attr): Likewise.
5707         (mips_use_shadow_register_set): Change return type to enum
5708         mips_shadow_set.  Add argument handling for use_shadow_register_set
5709         attribute.
5710         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
5711         compare with mips_shadow_set enum.
5712         (mips_compute_frame_info): Add interrupt mask and
5713         use_shadow_register_set to per-function information structure.
5714         Add a stack slot for EPC unconditionally.
5715         (mips_expand_prologue): Compare use_shadow_register_set value
5716         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
5717         masked interrupt register but in EIC mode use K0 and save Cause in K0.
5718         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
5719         copying the stack pointer from the shadow register set.
5720         * config/mips/mips.h (SR_IM0): New define.
5721         * config/mips/mips.md (mips_rdpgpr): Rename to...
5722         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
5723         * doc/extend.texi (Declaring Attributes of Functions): Document
5724         optional arguments for interrupt and use_shadow_register_set
5725         attributes.
5727 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5729         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
5730         interrupt attribute.
5731         (mips_expand_prologue): Disable the floating point unit in an ISR.
5732         * config/mips/mips.h (SR_COP1): New define.
5734 2015-07-15  Richard Biener  <rguenther@suse.de>
5736         * genmatch.c (parser::peek, parser::peek_ident): Add argument
5737         to tell how many tokens to peek ahead (default 1).
5738         (parser::eat_token, parser::eat_ident): Return token consumed.
5739         (parser::parse_result): Parse new switch statement.
5740         * match.pd: Use case statements where appropriate.
5742 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5744         PR rtl-optimization/58066
5745         * calls.c (expand_call): Precompute register parameters before stack
5746         alignment is performed.
5748 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5750         PR rtl-optimization/66838
5751         * postreload.c (reload_cse_move2add): Also process
5752         CALL_INSN_FUNCTION_USAGE when resetting information of
5753         call-clobbered registers.
5755 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5756             Cesar Philippidis  <cesar@codesourcery.com>
5757             Chung-Lin Tang  <cltang@codesourcery.com>
5759         * config/nios2/constraints.md (U, v): New constraints.
5760         * config/nios2/predicates.md (rdprs_dcache_operand): New.
5761         (ldstex_memory_operand): New.
5762         * config/nios2/sync.md: New file.
5763         * config/nios2/nios2.md (unspecv): Add new builtin function
5764         UNSPECV codes.
5765         (rdprs, flushd, flushda, wrpie, eni): New patterns.
5766         (top-level): Include sync.md.
5767         * config/nios2/nios2.c (N2_FTYPES): Add function types for
5768         new builtins.
5769         (N2_BUILTINS): Add arch field setting, add new builtins.
5770         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
5771         for arch field.
5772         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
5773         Also handle ldex/stex/ldsex/stsex builtins.
5774         (nios2_expand_rdprs_builtin): New function.
5775         (nios2_expand_cache_builtin): New function.
5776         (nios2_expand_wrpie_builtin): New function.
5777         (nios2_expand_eni_builtin): New function.
5778         (nios2_expand_builtin): Add arch field handling and new builtin
5779         cases.
5780         * doc/extend.texi (Altera Nios II Built-in Functions): Document
5781         new builtins.
5782         * doc/md.texi (Machine Constraints): Document U and v constraints.
5784 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5785             Cesar Philippidis  <cesar@codesourcery.com>
5786             Chung-Lin Tang  <cltang@codesourcery.com>
5788         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
5789         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
5790         callee_save_reg_size and uses_anonymous_args fields.
5791         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
5792         (nios2_create_cfa_notes): New function.
5793         (nios2_adjust_stack): New function for adjusting stack.
5794         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
5795         Use nios2_adjust_stack.
5796         (nios2_expand_epilogue): Likewise.
5797         (nios2_expand_return): New function.
5798         (nios2_can_use_return_insn): Update for CDX pop.n usage.
5799         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
5800         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
5801         * config/nios2/nios2.md (return): Use nios2_expand_return.
5803 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5804             Cesar Philippidis  <cesar@codesourcery.com>
5805             Chung-Lin Tang  <cltang@codesourcery.com>
5807         * config/nios2/predicates.md (pop_operation): New.
5808         (ldwm_operation, stwm_operation): New.
5809         (nios2_hard_register_operand): New.
5810         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
5811         (ldstwm_operation_p): Declare.
5812         (gen_ldstwm_peep): Declare.
5813         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
5814         (base_reg_adjustment_p): New.
5815         (pop_operation_p): New.
5816         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
5817         (nios2_ldstwm_regset_p): New.
5818         (ldstwm_operation_p): New.
5819         (gen_ldst): New.
5820         (nios2_ldst_parallel): New.
5821         (struct ldswm_operand): Declare.
5822         (compare_ldstwm_operands): New.
5823         (can_use_cdx_ldstw): New.
5824         (gen_ldstwm_peep): New.
5825         * config/nios2/nios2-ldstwm.sml: New.
5826         * config/nios2/nios2.md: Include ldstwm.md.
5827         * config/nios2/ldstwm.md: Generated.
5829 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5830             Cesar Philippidis  <cesar@codesourcery.com>
5831             Chung-Lin Tang  <cltang@codesourcery.com>
5833         * config/nios2/nios2.h (LABEL_ALIGN): Define.
5834         (REG_ALLOC_ORDER): Define.
5835         (ADJUST_REG_ALLOC_ORDER): Define.
5836         (HONOR_REG_ALLOC_ORDER): Define.
5837         (CDX_REG_P): Define.
5838         (ANDCLEAR_INT): Define.
5839         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
5840         (nios2_label_align): Declare.
5841         (nios2_cdx_narrow_form_p): Declare.
5842         (nios2_adjust_reg_alloc_order): Declare.
5843         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
5844         operation.
5845         (nios2_large_unspec_reloc_p): New function, split from...
5846         (nios2_legitimate_pic_operand_p): ...here.
5847         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
5848         (nios2_print_operand_punct_valid_p): New.
5849         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
5850         (split_mem_address): New.
5851         (split_alu_insn): New.
5852         (cdxreg): New.
5853         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
5854         (enum nios2_add_insn_kind): New.
5855         (nios2_add_insn_names, nios2_add_insn_narrow): New.
5856         (nios2_add_insn_classify): New.
5857         (nios2_add_insn_asm): New.
5858         (nios2_cdx_narrow_form_p): New.
5859         (label_align, min_labelno, max_labelno): New.
5860         (nios2_reorg): New.
5861         (nios2_label_align): New.
5862         (nios2_adjust_reg_alloc_order): New.
5863         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5864         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5865         * config/nios2/constraints.md (P): New constraint.
5866         * config/nios2/predicates.md (const_and_operand): New.
5867         (and_operand): New.
5868         (stack_memory_operand): New.
5869         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
5870         (length): Update to use nios2_cdx_narrow_form_p().
5871         (type): Add new insn type values.
5872         (control, alu, st, ld, shift): Update insn reservations with
5873         new insn type values.
5874         (*high, *lo_sum): Define new insn patterns for constant generation.
5875         (movqi_internal, movhi_internal, movsi_internal): Reduce
5876         alternatives, update asm template to handle CDX variants, update
5877         type attributes.
5878         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
5879         template, update type attributes.
5880         (extendhisi2, extendqi<mode>2): Likewise.
5881         (addsi3): Change to use function for asm string.
5882         (subsi3): Add CDX notation to asm template, update type attributes.
5883         (negsi3, one_cmplsi3): Likewise.
5884         (andsi3): New pattern, specialized from logical patterns.
5885         (<code>si3): Remove and case, combine alternatives, update asm
5886         template.
5887         (<shift_op>si3): Add CDX notation, update type attributes.
5888         (rotrsi3): Update type attribute.
5889         (*merge, extzv, insv): New insn patterns.
5890         (return): Change to define_expand.
5891         (simple_return): Add CDX notation, update type attributes.
5892         (indirect_jump): Add CDX notation.
5893         (jump): Update asm cases, update length attribute expression.
5894         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
5895         (nios2_cbranch): Update asm cases and length attribute expression
5896         to handle CDX variants.
5897         (nios2_cmp<code>): Update asm template.
5898         (nop): Add CDX notation, update type attributes.
5899         (trap): Add CDX notation.
5900         (ctrapsi4): Update asm cases and length attribute expression to
5901         handle CDX variant.
5902         * doc/md.texi (Machine Constraints): Document P constraint.
5904 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5905             Cesar Philippidis  <cesar@codesourcery.com>
5906             Chung-Lin Tang  <cltang@codesourcery.com>
5908         * config/nios2/nios2.h (SMALL_INT12): New macro.
5909         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
5910         (nios2_valid_addr_expr_p): Use it.
5911         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
5912         with implicit "io" instructions on R2.
5913         * config/nios2/constraints.md (w): New constraint.
5914         * config/nios2/predicates.md (ldstio_memory_operand): New.
5915         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
5916         operand predicate and constraint.
5917         (ld<bh>io_signed, st<bhw>io>): Likewise.
5918         * doc/md.texi (Machine Constraints): Document w constraint.
5920 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5921             Cesar Philippidis  <cesar@codesourcery.com>
5922             Chung-Lin Tang  <cltang@codesourcery.com>
5924         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
5925         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
5926         Nios II architecture level.
5927         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
5928         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
5929         (OPTION_DEFAULT_SPECS): Define.
5930         (ASM_SPEC): Add -march= spec strings.
5931         * config/nios2/nios2.c (nios2_option_override): Check for
5932         conflicts involving new options.
5933         * config.gcc (nios2*-*-*): Support --with-arch=.
5934         * doc/invoke.texi (Option Summary, Nios II Options): Document
5935         -march=, -mbmx, and -mcdx.
5937 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
5939         PR rtl-optimization/66626
5940         * lra-constraints.c (lra_constraints): Prevent equivalence
5941         substitution for static chain pseudo in functions with nonlocal
5942         goto.
5944 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5946         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
5947         (nios2_emit_stack_limit_check): Add size parameter.  Handle
5948         -fstack-limit-symbol as well as -fstack-limit-register.
5949         (nios2_expand_prologue): Emit only a single stack limit check,
5950         even if multiple stack adjustments are required.
5951         (nios2_option_override): Diagnose unsupported combination of -fpic
5952         and -stack-limit-symbol.
5954 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
5956         * Makefile.in (top_srcdir): New.
5957         * configure.ac: Use AM_ZLIB.
5958         * configure: Regeneated.
5960 2015-07-14  Matthias Klose  <doko@ubuntu.com>
5962         PR target/66840
5963         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
5965 2015-07-14  Richard Biener  <rguenther@suse.de>
5967         PR tree-optimization/66863
5968         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
5969         what we record for conversion use stmt lhs inequalities.
5971 2015-07-14  Richard Biener  <rguenther@suse.de>
5973         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
5974         (decision_tree::gen_gimple): Likewise.
5976 2015-07-14  Tom de Vries  <tom@codesourcery.com>
5978         * gcc.c (greater_than_spec_func): Declare forward.
5979         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
5980         -ftree-parallelize-loops={0,1}.
5981         (static_spec_functions): Add greater_than_spec_func function with name
5982         "gt".
5983         (greater_than_spec_func): New function.
5985 2015-07-14  Richard Biener  <rguenther@suse.de>
5987         * tree-ssa-dom.c (record_temporary_equivalences): Merge
5988         wideing type conversion case from record_equivalences_from_incoming_edge
5989         and use record_equality to record equivalences.
5990         (record_equivalences_from_incoming_edge): Call
5991         record_temporary_equivalences.
5993 2015-07-14  Richard Biener  <rguenther@suse.de>
5995         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
5996         (struct if_expr): New.
5997         (struct with_expr): Likewise.
5998         (is_a_helper): Add helpers for if_expr and with_expr.
5999         (struct simplify): Add simplify_kind enum and member.  Remove
6000         ifexpr_vec member.
6001         (simplify::simplify): Adjust.
6002         (lower_commutative): Adjust.
6003         (lower_opt_convert): Likewise.
6004         (lower_cond): Likewise.
6005         (replace_id): Handle with_expr and if_expr.
6006         (lower_for): Adjust.
6007         (dt_simplify::gen_1): New recursive worker, split out from ...
6008         (dt_simplify::gen): ... here.  Deal with if and with expansion
6009         recursively.
6010         (capture_info::capture_info): Take context argument
6011         (capture_info::walk_result): Only analyze specific result.
6012         (parser::parse_result): New function.
6013         (parser::parse_simplify): Adjust to parse ifs with then end
6014         else case.
6015         (parser::parse_if): Simplify.
6016         (parser::parse_pattern): Pass down simplify kind.
6017         * match.pd: Convert if structure to new syntax.
6019 2015-07-13  Marek Polacek  <polacek@redhat.com>
6021         * rtl.c (rtx_equal_p_cb): Fix typo.
6023 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
6025         * omega.h: Don't include config.h, don't include params.h again if
6026         omega.h has already been included.
6027         * graphite-poly.h: Include sese.h.
6028         * graphite.c: Don't include sese.h, remove needless includes and
6029         minimize includes outside #ifdef HAVE_isl block.
6030         * graphite-blocking.c: Don't include sese.h, remove needless includes,
6031         and wrap entire file in #ifdef HAVE_isl
6032         * graphite-dependences.c: Likewise.
6033         * graphite-interchange.c: Likewise.
6034         * graphite-isl-ast-to-gimple.c: Likewise.
6035         * graphite-optimize-isl.c: Likewise.
6036         * graphite-poly.c: Likewise.
6037         * graphite-scop-detection.c: Likewise.
6038         * graphite-sese-to-poly.c: Likewise.
6040 2015-07-13  Tom de Vries  <tom@codesourcery.com>
6042         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
6044 2015-07-13  Renlin Li  <renlin.li@arm.com>
6046         PR rtl/66556
6047         * simplify-rtx.c (simplify_const_relational_operation): Add
6048         side_effects_p checks.
6050 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
6052         * bitmap.h: Fix double word typos.
6053         * builtins.c: Same.
6054         * calls.c: Same.
6055         * cfgloopmanip.c: Same.
6056         * cgraph.c: Same.
6057         * cgraph.h: Same.
6058         * cgraphclones.c: Same.
6059         * combine.c: Same.
6060         * config/aarch64/aarch64-protos.h: Same.
6061         * config/aarch64/aarch64.c: Same.
6062         * config/aarch64/aarch64.md: Same.
6063         * config/arm/arm.md: Same.
6064         * config/arm/arm1020e.md: Same.
6065         * config/arm/arm1026ejs.md: Same.
6066         * config/arm/arm926ejs.md: Same.
6067         * config/arm/fa526.md: Same.
6068         * config/arm/fa606te.md: Same.
6069         * config/arm/fa626te.md: Same.
6070         * config/arm/fa726te.md: Same.
6071         * config/arm/fmp626.md: Same.
6072         * config/darwin.c: Same.
6073         * config/epiphany/epiphany.c: Same.
6074         * config/frv/frv.c: Same.
6075         * config/ft32/ft32.c: Same.
6076         * config/gnu-user.h: Same.
6077         * config/h8300/constraints.md: Same.
6078         * config/i386/i386.c: Same.
6079         * config/i386/i386.md: Same.
6080         * config/iq2000/iq2000.md: Same.
6081         * config/mips/mips.c: Same.
6082         * config/mmix/mmix.md: Same.
6083         * config/moxie/moxie.c: Same.
6084         * config/nds32/nds32.md: Same.
6085         * config/pa/pa.h: Same.
6086         * config/rs6000/aix.h: Same.
6087         * config/rs6000/rs6000.h: Same.
6088         * config/sh/sh.c: Same.
6089         * config/tilegx/tilegx.md: Same.
6090         * config/tilepro/gen-mul-tables.cc: Same.
6091         * cse.c: Same.
6092         * dbxout.c: Same.
6093         * doc/invoke.texi: Same.
6094         * dse.c: Same.
6095         * dwarf2out.c: Same.
6096         * final.c: Same.
6097         * gcc.c: Same.
6098         * genmatch.c: Same.
6099         * gimplify.c: Same.
6100         * hash-table.h: Same.
6101         * internal-fn.c: Same.
6102         * ipa-cp.c: Same.
6103         * ipa-devirt.c: Same.
6104         * ipa-icf.c: Same.
6105         * ipa-icf.h: Same.
6106         * ipa-profile.c: Same.
6107         * ipa-prop.c: Same.
6108         * ipa-prop.h: Same.
6109         * ira.c: Same.
6110         * omp-low.c: Same.
6111         * reg-stack.c: Same.
6112         * regcprop.c: Same.
6113         * reorg.c: Same.
6114         * rtl.h: Same.
6115         * sbitmap.h: Same.
6116         * tree-eh.c: Same.
6117         * tree-inline.c: Same.
6118         * tree-sra.c: Same.
6119         * tree-ssa-dom.c: Same.
6120         * tree-ssa-loop-ivopts.c: Same.
6121         * tree-ssa-structalias.c: Same.
6122         * tree-ssa-tail-merge.c: Same.
6123         * tree-ssa-ter.c: Same.
6124         * tree-ssa-threadupdate.c: Same.
6125         * tree-ssa-uninit.c: Same.
6126         * tree-ssanames.c: Same.
6127         * tree-vect-loop-manip.c: Same.
6128         * tree-vrp.c: Same.
6129         * tree.c: Same.
6130         * valtrack.c: Same.
6131         * vec.h: Same.
6133 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6135         PR middle-end/66726
6136         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
6137         tree_ssa_phiopt_worker): Call it.
6139 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6141         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
6142         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
6143         REG_EQUAL note.
6145 2015-07-11  Marek Polacek  <polacek@redhat.com>
6147         PR middle-end/66353
6148         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
6149         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
6150         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
6151         rather than bb_has_abnormal_call_pred.
6152         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
6153         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
6154         rather than bb_has_abnormal_call_pred.
6156 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
6158         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6159         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
6160         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6161         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
6162         v850_legitimate_address_p): New functions.
6163         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6165 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6167         PR target/66819
6168         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
6169         indirect sibcall with register arguments if register available
6170         for argument passing.
6171         (init_cumulative_args): Set cfun->machine->arg_reg_available
6172         to (cum->nregs > 0) or to true if function has a variable
6173         argument list.
6174         (function_arg_advance_32): Set cfun->machine->arg_reg_available
6175         to false if cum->nregs <= 0.
6176         * config/i386/i386.h (machine_function): Add arg_reg_available.
6178 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6180         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
6181         and gen_higpart instead of gen_rtx_SUBREG.
6182         * config/i386/i386.md
6183         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
6184         (read-modify peephole2): Use gen_lowpart instead of
6185         gen_rtx_SUBREG for operand 5.
6187 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
6189         * config/tilepro/gen-mul-tables.cc (main): Change include list for
6190         generated files.
6191         * config/tilepro/mul-tables.c: Regenerate.
6192         * config/tilegx/mul-tables.c: Regenerate.
6194 2015-07-10  Richard Biener  <rguenther@suse.de>
6196         * fold-const.c (distribute_bit_expr): Remove.
6197         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
6198         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
6199         to A & (B | C) and simplifying A << C1 << C2 to ...
6200         * match.pd: ... patterns here.
6202 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
6204         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6205         Mark mem as READONLY and NOTRAP for PIC symbol.
6207 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
6209         * gimple-predict.h: New file.
6210         (gimple_predict_predictor, gimple_predict_set_predictor,
6211         gimple_predict_outcome, gimple_predict_set_outcome,
6212         gimple_build_predict): Relocate here.
6213         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
6214         gimple_predict_outcome, gimple_predict_set_outcome): Move to
6215         gimple-predict.h.
6216         * gimple.c (gimple_build_predict): Move to gimple-predict.h
6217         * basic-block.h: Don't include cfghooks.h.
6218         * backend.h: Don't include predict.h.
6219         * cfghooks.h: Include predict.h.
6220         * gimple-pretty-print.c: Include gimple-predict.h.
6221         * gimplify.c: Likwise.
6222         * predict.c: Adjust includes.
6223         * tree-inline.c: Likewise.
6224         * asan.c: Likewise.
6225         * auto-inc-dec.c: Likewise.
6226         * auto-profile.c: Likewise.
6227         * bb-reorder.c: Likewise.
6228         * builtins.c: Likewise.
6229         * caller-save.c: Likewise.
6230         * calls.c: Likewise.
6231         * cfganal.c: Likewise.
6232         * cfgbuild.c: Likewise.
6233         * cfg.c: Likewise.
6234         * cfgcleanup.c: Likewise.
6235         * cfgexpand.c: Likewise.
6236         * cfghooks.c: Likewise.
6237         * cfgloopanal.c: Likewise.
6238         * cfgloop.c: Likewise.
6239         * cfgloopmanip.c: Likewise.
6240         * cfgrtl.c: Likewise.
6241         * cgraph.c: Likewise.
6242         * cgraphunit.c: Likewise.
6243         * combine.c: Likewise.
6244         * cprop.c: Likewise.
6245         * cse.c: Likewise.
6246         * dce.c: Likewise.
6247         * dojump.c: Likewise.
6248         * dse.c: Likewise.
6249         * except.c: Likewise.
6250         * expmed.c: Likewise.
6251         * expr.c: Likewise.
6252         * final.c: Likewise.
6253         * fold-const.c: Likewise.
6254         * function.c: Likewise.
6255         * fwprop.c: Likewise.
6256         * gcc-plugin.h: Likewise.
6257         * gcse.c: Likewise.
6258         * genattrtab.c: Likewise.
6259         * genemit.c: Likewise.
6260         * gengtype.c: Likewise.
6261         * genopinit.c: Likewise.
6262         * genoutput.c: Likewise.
6263         * genpreds.c: Likewise.
6264         * genrecog.c: Likewise.
6265         * gimple-fold.c: Likewise.
6266         * gimple-iterator.c: Likewise.
6267         * gimple-ssa-isolate-paths.c: Likewise.
6268         * gimple-ssa-strength-reduction.c: Likewise.
6269         * graph.c: Likewise.
6270         * graphite-blocking.c: Likewise.
6271         * graphite.c: Likewise.
6272         * graphite-dependences.c: Likewise.
6273         * graphite-interchange.c: Likewise.
6274         * graphite-isl-ast-to-gimple.c: Likewise.
6275         * graphite-optimize-isl.c: Likewise.
6276         * graphite-poly.c: Likewise.
6277         * graphite-scop-detection.c: Likewise.
6278         * graphite-sese-to-poly.c: Likewise.
6279         * haifa-sched.c: Likewise.
6280         * ifcvt.c: Likewise.
6281         * internal-fn.c: Likewise.
6282         * ipa-cp.c: Likewise.
6283         * ipa-profile.c: Likewise.
6284         * ipa-split.c: Likewise.
6285         * ipa-utils.c: Likewise.
6286         * ira-build.c: Likewise.
6287         * ira-color.c: Likewise.
6288         * ira-conflicts.c: Likewise.
6289         * ira-costs.c: Likewise.
6290         * ira-emit.c: Likewise.
6291         * ira-lives.c: Likewise.
6292         * jump.c: Likewise.
6293         * loop-doloop.c: Likewise.
6294         * loop-init.c: Likewise.
6295         * loop-invariant.c: Likewise.
6296         * loop-unroll.c: Likewise.
6297         * lower-subreg.c: Likewise.
6298         * lra-assigns.c: Likewise.
6299         * lra.c: Likewise.
6300         * lra-coalesce.c: Likewise.
6301         * lra-constraints.c: Likewise.
6302         * lra-lives.c: Likewise.
6303         * lto-cgraph.c: Likewise.
6304         * lto-streamer-in.c: Likewise.
6305         * mode-switching.c: Likewise.
6306         * modulo-sched.c: Likewise.
6307         * omp-low.c: Likewise.
6308         * optabs.c: Likewise.
6309         * passes.c: Likewise.
6310         * postreload.c: Likewise.
6311         * postreload-gcse.c: Likewise.
6312         * profile.c: Likewise.
6313         * recog.c: Likewise.
6314         * regstat.c: Likewise.
6315         * reload1.c: Likewise.
6316         * reorg.c: Likewise.
6317         * rtlanal.c: Likewise.
6318         * sched-ebb.c: Likewise.
6319         * sel-sched-ir.c: Likewise.
6320         * sese.c: Likewise.
6321         * shrink-wrap.c: Likewise.
6322         * simplify-rtx.c: Likewise.
6323         * stmt.c: Likewise.
6324         * store-motion.c: Likewise.
6325         * tracer.c: Likewise.
6326         * trans-mem.c: Likewise.
6327         * tree-call-cdce.c: Likewise.
6328         * tree-cfg.c: Likewise.
6329         * tree-cfgcleanup.c: Likewise.
6330         * tree-chkp.c: Likewise.
6331         * tree-complex.c: Likewise.
6332         * tree-eh.c: Likewise.
6333         * tree-if-conv.c: Likewise.
6334         * tree-loop-distribution.c: Likewise.
6335         * tree-outof-ssa.c: Likewise.
6336         * tree-parloops.c: Likewise.
6337         * tree-predcom.c: Likewise.
6338         * tree-pretty-print.c: Likewise.
6339         * tree-profile.c: Likewise.
6340         * tree-sra.c: Likewise.
6341         * tree-ssa.c: Likewise.
6342         * tree-ssa-coalesce.c: Likewise.
6343         * tree-ssa-dce.c: Likewise.
6344         * tree-ssa-dom.c: Likewise.
6345         * tree-ssa-forwprop.c: Likewise.
6346         * tree-ssa-ifcombine.c: Likewise.
6347         * tree-ssa-loop-ch.c: Likewise.
6348         * tree-ssa-loop-im.c: Likewise.
6349         * tree-ssa-loop-ivcanon.c: Likewise.
6350         * tree-ssa-loop-ivopts.c: Likewise.
6351         * tree-ssa-loop-manip.c: Likewise.
6352         * tree-ssa-loop-prefetch.c: Likewise.
6353         * tree-ssa-loop-unswitch.c: Likewise.
6354         * tree-ssa-math-opts.c: Likewise.
6355         * tree-ssa-phiopt.c: Likewise.
6356         * tree-ssa-pre.c: Likewise.
6357         * tree-ssa-reassoc.c: Likewise.
6358         * tree-ssa-sink.c: Likewise.
6359         * tree-ssa-tail-merge.c: Likewise.
6360         * tree-ssa-threadedge.c: Likewise.
6361         * tree-ssa-threadupdate.c: Likewise.
6362         * tree-switch-conversion.c: Likewise.
6363         * tree-tailcall.c: Likewise.
6364         * tree-vect-data-refs.c: Likewise.
6365         * tree-vect-loop.c: Likewise.
6366         * tree-vect-loop-manip.c: Likewise.
6367         * tree-vectorizer.c: Likewise.
6368         * tree-vrp.c: Likewise.
6369         * ubsan.c: Likewise.
6370         * value-prof.c: Likewise.
6371         * varasm.c: Likewise.
6372         * var-tracking.c: Likewise.
6373         * config/aarch64/aarch64-builtins.c: Likewise.
6374         * config/aarch64/aarch64.c: Likewise.
6375         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6376         * config/alpha/alpha.c: Likewise.
6377         * config/arc/arc.c: Likewise.
6378         * config/arm/arm.c: Likewise.
6379         * config/avr/avr.c: Likewise.
6380         * config/bfin/bfin.c: Likewise.
6381         * config/c6x/c6x.c: Likewise.
6382         * config/cr16/cr16.c: Likewise.
6383         * config/cris/cris.c: Likewise.
6384         * config/darwin.c: Likewise.
6385         * config/darwin-c.c: Likewise.
6386         * config/epiphany/epiphany.c: Likewise.
6387         * config/epiphany/mode-switch-use.c: Likewise.
6388         * config/epiphany/resolve-sw-modes.c: Likewise.
6389         * config/fr30/fr30.c: Likewise.
6390         * config/frv/frv.c: Likewise.
6391         * config/ft32/ft32.c: Likewise.
6392         * config/h8300/h8300.c: Likewise.
6393         * config/i386/i386.c: Likewise.
6394         * config/i386/winnt.c: Likewise.
6395         * config/ia64/ia64.c: Likewise.
6396         * config/iq2000/iq2000.c: Likewise.
6397         * config/lm32/lm32.c: Likewise.
6398         * config/m32c/m32c.c: Likewise.
6399         * config/m32r/m32r.c: Likewise.
6400         * config/m68k/m68k.c: Likewise.
6401         * config/mcore/mcore.c: Likewise.
6402         * config/mep/mep.c: Likewise.
6403         * config/microblaze/microblaze.c: Likewise.
6404         * config/mips/mips.c: Likewise.
6405         * config/mmix/mmix.c: Likewise.
6406         * config/mn10300/mn10300.c: Likewise.
6407         * config/moxie/moxie.c: Likewise.
6408         * config/msp430/msp430.c: Likewise.
6409         * config/nds32/nds32.c: Likewise.
6410         * config/nds32/nds32-cost.c: Likewise.
6411         * config/nds32/nds32-fp-as-gp.c: Likewise.
6412         * config/nds32/nds32-intrinsic.c: Likewise.
6413         * config/nds32/nds32-isr.c: Likewise.
6414         * config/nds32/nds32-md-auxiliary.c: Likewise.
6415         * config/nds32/nds32-memory-manipulation.c: Likewise.
6416         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6417         * config/nds32/nds32-predicates.c: Likewise.
6418         * config/nios2/nios2.c: Likewise.
6419         * config/nvptx/nvptx.c: Likewise.
6420         * config/pa/pa.c: Likewise.
6421         * config/pdp11/pdp11.c: Likewise.
6422         * config/rl78/rl78.c: Likewise.
6423         * config/rs6000/rs6000.c: Likewise.
6424         * config/rx/rx.c: Likewise.
6425         * config/s390/s390.c: Likewise.
6426         * config/sh/sh.c: Likewise.
6427         * config/sh/sh-mem.cc: Likewise.
6428         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6429         * config/sh/sh_treg_combine.cc: Likewise.
6430         * config/sparc/sparc.c: Likewise.
6431         * config/spu/spu.c: Likewise.
6432         * config/stormy16/stormy16.c: Likewise.
6433         * config/tilegx/tilegx.c: Likewise.
6434         * config/tilepro/tilepro.c: Likewise.
6435         * config/v850/v850.c: Likewise.
6436         * config/vax/vax.c: Likewise.
6437         * config/visium/visium.c: Likewise.
6438         * config/xtensa/xtensa.c: Likewise.
6440 2015-07-10  Richard Biener  <rguenther@suse.de>
6442         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
6443         (decision_tree::gen_gimple): Likewise.
6444         (decision_tree::gen_generic): Likewise.
6446 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6448         PR target/66813
6449         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
6450         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
6452 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
6454         PR middle-end/66820
6455         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
6456         or ORT_TASK contexts.
6457         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
6458         is non-zero.
6460 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6462         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6463         above function.
6465 2015-07-10  Tom de Vries  <tom@codesourcery.com>
6467         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
6468         insert nit + 1 bound.
6470 2015-07-10  Richard Biener  <rguenther@suse.de>
6472         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
6473         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
6474         (if_convertible_loop_p_1): For this always compute bb predicates.
6475         (if_convertible_loop_p): And free them.
6477 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6479         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
6480         in dump message.
6482 2015-07-10  Richard Biener  <rguenther@suse.de>
6484         PR tree-optimization/66823
6485         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
6486         inverted predicate.
6488 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
6490         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
6491         to handle mips[32|64]r3 and mips[32|64]r5.
6493 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
6495         PR middle-end/66633
6496         * tree-nested.c (get_static_chain): Or in a flag into
6497         info->static_chain_added.
6498         (get_frame_field, get_nonlocal_debug_decl): Likewise.
6499         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
6500         2015-07-01 changes.
6501         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
6502         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
6503         add it to clauses.
6505         PR tree-optimization/66718
6506         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
6507         field.
6508         (vect_simd_lane_linear): New function.
6509         (vectorizable_simd_clone_call): Support using linear arguments for
6510         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
6512 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6514         PR target/66821
6515         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
6517 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6519         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
6520         Use machine mode, not enum machine_mode in the prototype.
6522         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
6523         classify 128-bit floating point support.
6524         (FLOAT128_IBM_P): Likewise.
6525         (FLOAT128_VECTOR_P): Likewise.
6526         (FLOAT128_2REG_P): Likewise.
6527         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
6528         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
6529         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6530         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6532         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
6533         tests against TFmode/TDmode, since those modes do not use VSX
6534         addresses.
6535         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
6536         support.
6537         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
6538         tests against TFmode, etc.
6539         (invalid_e500_subreg): Add tests against IFmode/KFmode.
6540         (reg_offset_addressing_ok_p): Likewise.
6541         (rs6000_legitimate_offset_address_p): Likewise.
6542         (rs6000_legitimize_address): Likewise.
6543         (rs6000_legitimize_reload_address): Likewise.
6544         (rs6000_legitimate_address_p): Clean up tests against TFmode and
6545         TDmode to use the new helper macros, which will include IFmode and
6546         KFmode.
6547         (rs6000_emit_move): Likewise.
6548         (rs6000_darwin64_record_arg_recurse): Likewise.
6549         (print_operand): Likewise.
6550         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
6551         that uses a single vector register as a vector and not as a
6552         floating point register in terms of the calling sequence.
6553         (rs6000_discover_homogeneous_aggregate): Likewise.
6554         (rs6000_return_in_memory): Likewise.
6555         (init_cumulative_args): Likewise.
6556         (rs6000_function_arg_boundary): Likewise.
6557         (rs6000_function_arg_advance_1): Likewise.
6558         (rs6000_function_arg): Likewise.
6559         (rs6000_pass_by_reference): Likewise.
6560         (rs6000_gimplify_va_arg): Likewise.
6561         (rs6000_secondary_reload_memory): Use machine_mode not enum
6562         machine mode.
6563         (rs6000_split_multireg_move): Use new helper macros.
6564         (spe_func_has_64bit_regs_p): Likewise.
6565         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
6566         (output_toc): Use new helper macros.
6567         (rs6000_register_move_cost): Likewise.
6568         (rs6000_function_value): Add IEEE 128-bit floating point calling
6569         sequence support.
6570         (rs6000_libcall_value): Likewise.
6571         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
6572         floating point support.
6573         (rs6000_vector_mode_supported_p): Likewise.
6575 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
6577         PR rtl-optimization/66782
6578         * lra-int.h (struct lra_insn_recog_data): Add comment about
6579         clobbered hard regs for arg_hard_regs.
6580         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
6581         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
6582         Add condition for processing used hard regs.
6583         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
6584         Process clobbered hard regs.
6586 2015-07-09  Michael Matz  <matz@suse.de>
6588         * genmatch.c (fprintf_indent): New function.
6589         (operand::gen_transform): Add indent parameter.
6590         (expr::gen_transform, c_expr::gen_transform,
6591         capture::gen_transform): Ditto and use fprintf_indent.
6592         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
6593         (dt_operand::gen, dt_operand::gen_predicate,
6594         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
6595         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
6596         (decision_tree::gen_gimple): Adjust calls and indent generated
6597         code.
6598         (decision_tree::gen_generic): Ditto.
6599         (write_predicate): Ditto.
6601 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6603         PR target/66814
6604         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
6605         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
6606         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
6607         {GENERAL,SSE,MMX}_REG_P where appropriate.
6609 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6611         * lto-streamer.h: Don't include target.h and alloc-pool.h.
6612         * builtins.c: Adjust includes.
6613         * gimple.c: Likewise.
6614         * ipa-icf.c: Likewise.
6615         * lto-opts.c: Likewise.
6616         * ipa-reference.c: Likewise.
6617         * lto-section-out.c: Likewise.
6618         * lto-streamer-in.c: Likewise.
6619         * lto-streamer-out.c: Likewise.
6620         * opts-global.c: Likewise.
6621         * symtab.c: Likewise.
6622         * tree-chkp.c: Likewise.
6623         * tree-ssa-live.c: Likewise.
6624         * tree-streamer-in.c: Likewise.
6625         * tree-streamer-out.c: Likewise.
6626         * config/darwin.c: Likewise.
6627         * config/i386/winnt.c: Likewise.
6629 2015-07-09  Richard Biener  <rguenther@suse.de>
6631         * genmatch.c (struct expr): Add force_single_use flag.
6632         (expr::expr): Add copy constructor.
6633         (capture_info::walk_match): Gather force_single_use captures.
6634         (expr::gen_transform): Use possibly NULLified sequence.
6635         (dt_simplify::gen): Apply single-use restrictions by NULLifying
6636         seq if any constrained expr is not single-use.
6637         (parser::parse_expr): Refactor to allow multiple flags.  Handle
6638         's' flag to force an expression have a single-use if the pattern
6639         simplifies to more than one statement.
6640         * match.pd: Convert most single_use conditionals to :s flags.
6642 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6644         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
6645         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6646         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6648 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6650         * flags.h: Don't include flag-types.h or options.h.
6651         * opts-common.c: Adjust includes.
6652         * opts-global.c: Likewise.
6653         * common/config/epiphany/epiphany-common.c: Likewise.
6655 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6657         PR target/66818
6658         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
6659         for IA MCU.
6661 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6663         PR target/66817
6664         * config/i386/i386.c (ix86_return_in_memory): Return true
6665         if int_size_in_bytes returns negative for IA MCU.
6667 2015-07-09  Marek Polacek  <polacek@redhat.com>
6669         PR tree-optimization/66718
6670         * Makefile.in (OBJS): Add gimple-laddress.o.
6671         * passes.def: Schedule pass_laddress.
6672         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
6673         * tree-pass.h (make_pass_laddress): Declare.
6674         * gimple-laddress.c: New file.
6676 2015-07-09  Richard Biener  <rguenther@suse.de>
6678         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
6680 2015-07-09  Richard Biener  <rguenther@suse.de>
6682         PR tree-optimization/66807
6683         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
6685 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
6687         * function.c (stack_protect_epilogue): Use if rather than switch for
6688         check targetm.have_stack_protect_test.
6690 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6692         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
6693         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
6694         * config/arc/arc.h: Likewise.
6695         * config/arm/arm.h: Likewise.
6696         * config/bfin/bfin.h: Likewise.
6697         * config/epiphany/epiphany.h: Likewise.
6698         * config/frv/frv.h: Likewise.
6699         * config/ia64/ia64.h: Likewise.
6700         * config/iq2000/iq2000.h: Likewise.
6701         * config/lm32/lm32.h: Likewise.
6702         * config/m32r/m32r.h: Likewise.
6703         * config/mcore/mcore.h: Likewise.
6704         * config/mep/mep.h: Likewise.
6705         * config/microblaze/microblaze.h: Likewise.
6706         * config/mips/mips.h: Likewise.
6707         * config/mmix/mmix.h: Likewise.
6708         * config/mn10300/mn10300.h: Likewise.
6709         * config/nds32/nds32.h: Likewise.
6710         * config/nios2/nios2.h: Likewise.
6711         * config/pa/pa.h: Likewise.
6712         * config/rl78/rl78.h: Likewise.
6713         * config/sh/sh.h: Likewise.
6714         * config/sparc/sparc.h: Likewise.
6715         * config/stormy16/stormy16.h: Likewise.
6716         * config/tilegx/tilegx.h: Likewise.
6717         * config/tilepro/tilepro.h: Likewise.
6718         * config/v850/v850.h: Likewise.
6719         * config/xtensa/xtensa.h: Likewise.
6720         * doc/tm.texi: Regenerate.
6721         * doc/tm.texi.in: Adjust.
6722         * combine.c (simplify_set): Likewise.
6723         (simplify_comparison): Likewise.
6724         * expr.c (store_constructor): Likewise.
6725         * internal-fn.c (expand_arith_overflow): Likewise.
6726         * reload.c (push_reload): Likewise.
6727         (find_reloads): Likewise.
6728         (find_reloads_subreg_address): Likewise.
6729         * reload1.c (eliminate_regs_1): Likewise.
6730         * rtlanal.c (nonzero_bits1): Likewise.
6731         (num_sign_bit_copies1): Likewise.
6732         * simplify-rtx.c (simplify_truncation): Likewise.
6734 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6736         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
6737         of AUTO_INC_DEC with the preprocessor.
6738         * combine.c (combine_instructions): Likewise.
6739         (can_combine_p): Likewise.
6740         (try_combine): Likewise.
6741         * emit-rtl.c (try_split): Likewise.
6742         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6743         * lower-subreg.c (resolve_simple_move): Likewise.
6744         * lra.c (update_inc_notes): Likewise.
6745         * recog.c (asm_operand_ok): Likewise.
6746         (constrain_operands): Likewise.
6747         * regrename.c (scan_rtx_address): Likewise.
6748         * reload.c (update_auto_inc_notes): Likewise.
6749         (reg_inc_found_and_valid_p): Likewise.
6750         * reload1.c (reload): Likewise.
6751         (emit_input_reload_insns): Likewise.
6752         (delete_output_reload): Likewise.
6753         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6754         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6756 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6758         * rtl.h: Always define AUTO_INC_DEC.
6759         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
6760         * combine.c (combine_instructions): Likewise.
6761         (can_combine_p): Likewise.
6762         (try_combine): Likewise.
6763         * emit-rtl.c (try_split): Likewise.
6764         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6765         * lower-subreg.c (resolve_simple_move): Likewise.
6766         * lra.c (update_inc_notes): Likewise.
6767         * recog.c (asm_operand_ok): Likewise.
6768         (constrain_operands): Likewise.
6769         * regrename.c (scan_rtx_address): Likewise.
6770         * reload.c (update_auto_inc_notes): Likewise.
6771         (find_equiv_reg): Likewise.
6772         * reload1.c (reload): Likewise.
6773         (reload_as_needed): Likewise.
6774         (choose_reload_regs): Likewise.
6775         (emit_input_reload_insns): Likewise.
6776         (delete_output_reload): Likewise.
6777         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6778         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6780 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6782         * combine.c (can_combine_def_p): Don't check the value of
6783         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
6784         (combinable_i3pat): Likewise.
6785         (mark_used_regs_combine): Likewise.
6786         * regrename.c (rename_chains): Likewise.
6787         * reload.c (find_reloads_address): Likewise.
6788         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6790 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6792         * combine.c (update_rsp_from_reg_equal): Don't check if
6793         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
6794         (reg_nonzero_bits_for_combine): Likewise.
6795         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
6796         1.
6797         * config/frv/frv.h: Likewise.
6798         * config/lm32/lm32.h: Likewise.
6799         * config/mep/mep.h: Likewise.
6800         * config/mips/mips.h: Likewise.
6801         * config/rs6000/rs6000.h: Likewise.
6802         * config/sh/sh.h: Likewise.
6803         * config/tilegx/tilegx.h (enum reg_class): Likewise.
6804         * config/tilepro/tilepro.h: Likewise.
6805         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
6806         * doc/tm.texi: Regenerate.
6807         * doc/tm.texi.in: Adjust.
6808         * rtlanal.c (nonzero_bits1): Likewise.
6810 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6812         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
6813         with the preprocessor.
6814         (combine_instructions): Likewise.
6815         (try_combine): Likewise.
6816         (subst): Likewise.
6817         (distribute_notes): Likewise.
6819 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6821         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
6822         defined.
6823         (simplify_set): Likewise.
6824         * cse.c (cse_insn): Likewise.
6825         * fold-const.c (fold_single_bit_test): Likewise.
6826         (fold_unary_loc): Likewise.
6827         * postreload.c (reload_cse_simplify_set): Likewise.
6828         (reload_cse_simplify_operands): Likewise.
6830 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
6832         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
6833         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
6835 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6837         PR target/66746
6838         * config/i386/x86intrin.h: Include <adxintrin.h> even if
6839         __iamcu__ is defined.
6841 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6843         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
6845 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
6847         PR target/66523
6848         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
6849         names from preservation.
6851 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6853         PR target/66806
6854         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
6855         change for IAMCU.
6856         (function_arg_advance_32): Don't pass vectors in registers for
6857         IAMCU.
6858         (function_arg_32): Likewise.
6859         (ix86_return_in_memory): Don't return vectors in registers for
6860         IAMCU.
6862 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
6864         PR middle-end/66334
6865         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
6866         hard regno live at the start of BB with incoming abnormal edges.
6867         * lra-lives.c (process_bb_lives): Ditto.
6869 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
6871         PR libgomp/65099
6872         * config/nvptx/mkoffload.c (main): Create an offload image only in
6873         64-bit configurations.
6875 2015-07-08  Martin Liska  <mliska@suse.cz>
6877         PR bootstrap/66744
6878         * tree-sra.c (create_access_1): Call ctor without brackets.
6879         (create_artificial_child_access): Likewise.
6881 2015-07-08  Richard Biener  <rguenther@suse.de>
6883         PR tree-optimization/66793
6884         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
6885         Properly split the block after stmts ending it.
6887 2015-07-08  Richard Biener  <rguenther@suse.de>
6889         PR tree-optimization/66794
6890         * passes.c (execute_function_todo): Assert that post-dominators
6891         are not computed.
6892         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
6893         Free post-dominators.
6895 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6897         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
6898         with early exit.
6900 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6902         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
6903         more than or equal 8 and less than 32 when optimizing for size.
6905 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6907         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
6908         COSTS_N_INSNS (1) and increment it appropriately throughout the
6909         function.
6911 2015-07-08  Richard Biener  <rguenther@suse.de>
6913         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
6915 2015-07-08  Alan Modra  <amodra@gmail.com>
6917         * target.def (rtx_costs): Remove "code" param, add "mode".
6918         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
6919         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
6920         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
6921         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
6922         call.  Track mode when given in rtx.
6923         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
6924         (default_address_cost): Pass Pmode to rtx_cost.
6925         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
6926         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
6927         with NULL set.
6928         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
6929         (notreg_cost): Add mode param.  Use it.
6930         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
6931         mode param and pass to set_src_cost.  Update all calls.
6932         (hash_scan_set): Formatting.
6933         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
6934         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
6935         * hooks.h: Ditto.
6936         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
6937         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
6938         emit_store_flag): Update set_src_cost and rtx_cost calls.
6939         * auto-inc-dec.c (attempt_change): Likewise.
6940         * calls.c (precompute_register_parameters): Likewise.
6941         * combine.c (expand_compound_operation, make_extraction,
6942         force_to_mode, distribute_and_simplify_rtx): Likewise.
6943         * dojump.c (prefer_and_bit_test): Likewise.
6944         * dse.c (find_shift_sequence): Likewise.
6945         * expr.c (compress_float_constant): Likewise.
6946         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6947         * ifcvt.c (noce_try_sign_mask): Likewise.
6948         * loop-doloop.c (doloop_optimize): Likewise.
6949         * loop-invariant.c (create_new_invariant): Likewise.
6950         * lower-subreg.c (shift_cost, compute_costs): Likewise.
6951         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
6952         lshift_cheap_p): Likewise.
6953         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
6954         try_replace_in_use, reload_cse_move2add): Likewise.
6955         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
6956         Likewise.
6957         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6958         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6959         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
6960         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6961         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
6962         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
6963         to rtx_cost calls.
6964         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
6965         * config/arc/arc.c (arc_rtx_costs): Likewise.
6966         * config/arm/arm.c (arm_rtx_costs): Likewise.
6967         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
6968         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6969         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6970         * config/cris/cris.c (cris_rtx_costs): Likewise.
6971         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
6972         * config/frv/frv.c (frv_rtx_costs): Likewise.
6973         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6974         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6975         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6976         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6977         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6978         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6979         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6980         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6981         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6982         * config/mep/mep.c (mep_rtx_cost): Likewise.
6983         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6984         * config/mips/mips.c (mips_rtx_costs): Likewise.
6985         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6986         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
6987         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
6988         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
6989         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
6990         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
6991         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
6992         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6993         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6994         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
6995         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6996         * config/s390/s390.c (s390_rtx_costs): Likewise.
6997         * config/sh/sh.c (sh_rtx_costs): Likewise.
6998         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6999         * config/spu/spu.c (spu_rtx_costs): Likewise.
7000         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
7001         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
7002         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
7003         * config/v850/v850.c (v850_rtx_costs): Likewise.
7004         * config/vax/vax.c (vax_rtx_costs): Likewise.
7005         * config/visium/visium.c (visium_rtx_costs): Likewise.
7006         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
7007         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
7008         "code" param, and pass as outer_code to first rtx_cost call.  Pass
7009         mode to rtx_cost calls.
7010         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
7011         calls.
7012         (aarch64_rtx_costs_wrapper): Update.
7013         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
7014         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
7015         rtx_cost calls.
7016         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
7017         and rtx_cost calls.
7018         (avr_operand_rtx_cost): Similarly.
7019         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
7020         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
7021         * config/mips/mips.c (mips_stack_address_p): Comment typo.
7022         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
7023         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
7024         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
7025         rtx_cost.
7026         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
7027         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
7028         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
7029         * doc/tm.texi: Regenerate.
7031 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
7033         * tree-core.h: Include symtab.h.
7034         * rtl.h: Include hard-reg-set.h but not flags.h.
7035         (HARD_CONST): Remove condition compilation involving HARD_CONST since
7036         hard-reg-set.h is always included.
7037         * regs.h: Don't include hard-reg-set.h or rtl.h.
7038         * cfg.h: Include dominance.h.
7039         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
7040         * backend.h: New.  Aggregate commonly used backend header files.
7041         * gimple-ssa.h: Don't include tree-hasher.h.
7042         * ssa.h: New.  Aggregate commonly used SSA header files.
7043         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
7044         * sel-sched-ir.h: Flatten includes.
7045         * lra-int.h: Flatten completely.
7046         * sel-sched-dump.h: Flatten includes.
7047         * ira-int.h: Flatten includes.
7048         * gimple-streamer.h: Remove all includes.
7049         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
7050         * resource.h: Flatten hard-reg-set.h and df.h.
7051         * sched-int.h: Flatten insn-arrt.h and df.h.
7052         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
7053         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
7054         * genattrtab.c (write_header): Adjust generated includes.
7055         * genautomata.c (main): Likewise.
7056         * genconditions.c (write-header): Likewise.
7057         * genemit.c (main): Likewise.
7058         * gengtype.c (open_base_files): Likewise.
7059         * genopinit.c (main): Likewise.
7060         * genoutput.c (output_prologue): Likewise.
7061         * genpeep.c (main): Likewise.
7062         * genpreds.c (write_insn_preds_c): Likewise.
7063         * genrecog.c (write_header): Likewise.
7064         * alias.c: Adjust includes.
7065         * asan.c: Likewise.
7066         * attribs.c: Likewise.
7067         * auto-inc-dec.c: Likewise.
7068         * auto-profile.c: Likewise.
7069         * bb-reorder.c: Likewise.
7070         * bt-load.c: Likewise.
7071         * builtins.c: Likewise.
7072         * caller-save.c: Likewise.
7073         * calls.c: Likewise.
7074         * ccmp.c: Likewise.
7075         * cfg.c: Likewise.
7076         * cfganal.c: Likewise.
7077         * cfgbuild.c: Likewise.
7078         * cfgcleanup.c: Likewise.
7079         * cfgexpand.c: Likewise.
7080         * cfghooks.c: Likewise.
7081         * cfgloop.c: Likewise.
7082         * cfgloopanal.c: Likewise.
7083         * cfgloopmanip.c: Likewise.
7084         * cfgrtl.c: Likewise.
7085         * cgraph.c: Likewise.
7086         * cgraphbuild.c: Likewise.
7087         * cgraphclones.c: Likewise.
7088         * cgraphunit.c: Likewise.
7089         * cilk-common.c: Likewise.
7090         * combine-stack-adj.c: Likewise.
7091         * combine.c: Likewise.
7092         * compare-elim.c: Likewise.
7093         * convert.c: Likewise.
7094         * coverage.c: Likewise.
7095         * cppbuiltin.c: Likewise.
7096         * cprop.c: Likewise.
7097         * cse.c: Likewise.
7098         * cselib.c: Likewise.
7099         * data-streamer-in.c: Likewise.
7100         * data-streamer-out.c: Likewise.
7101         * data-streamer.c: Likewise.
7102         * dbxout.c: Likewise.
7103         * dce.c: Likewise.
7104         * ddg.c: Likewise.
7105         * debug.c: Likewise.
7106         * df-core.c: Likewise.
7107         * df-problems.c: Likewise.
7108         * df-scan.c: Likewise.
7109         * dfp.c: Likewise.
7110         * dojump.c: Likewise.
7111         * dominance.c: Likewise.
7112         * domwalk.c: Likewise.
7113         * double-int.c: Likewise.
7114         * dse.c: Likewise.
7115         * dumpfile.c: Likewise.
7116         * dwarf2asm.c: Likewise.
7117         * dwarf2cfi.c: Likewise.
7118         * dwarf2out.c: Likewise.
7119         * emit-rtl.c: Likewise.
7120         * et-forest.c: Likewise.
7121         * except.c: Likewise.
7122         * explow.c: Likewise.
7123         * expmed.c: Likewise.
7124         * expr.c: Likewise.
7125         * final.c: Likewise.
7126         * fixed-value.c: Likewise.
7127         * fold-const.c: Likewise.
7128         * function.c: Likewise.
7129         * fwprop.c: Likewise.
7130         * gcc-plugin.h: Likewise.
7131         * gcse-common.c: Likewise.
7132         * gcse.c: Likewise.
7133         * generic-match-head.c: Likewise.
7134         * ggc-page.c: Likewise.
7135         * gimple-builder.c: Likewise.
7136         * gimple-expr.c: Likewise.
7137         * gimple-fold.c: Likewise.
7138         * gimple-iterator.c: Likewise.
7139         * gimple-low.c: Likewise.
7140         * gimple-match-head.c: Likewise.
7141         * gimple-pretty-print.c: Likewise.
7142         * gimple-ssa-isolate-paths.c: Likewise.
7143         * gimple-ssa-strength-reduction.c: Likewise.
7144         * gimple-streamer-in.c: Likewise.
7145         * gimple-streamer-out.c: Likewise.
7146         * gimple-walk.c: Likewise.
7147         * gimple.c: Likewise.
7148         * gimplify-me.c: Likewise.
7149         * gimplify.c: Likewise.
7150         * godump.c: Likewise.
7151         * graph.c: Likewise.
7152         * graphite-blocking.c: Likewise.
7153         * graphite-dependences.c: Likewise.
7154         * graphite-interchange.c: Likewise.
7155         * graphite-isl-ast-to-gimple.c: Likewise.
7156         * graphite-optimize-isl.c: Likewise.
7157         * graphite-poly.c: Likewise.
7158         * graphite-scop-detection.c: Likewise.
7159         * graphite-sese-to-poly.c: Likewise.
7160         * graphite.c: Likewise.
7161         * haifa-sched.c: Likewise.
7162         * hw-doloop.c: Likewise.
7163         * ifcvt.c: Likewise.
7164         * init-regs.c: Likewise.
7165         * internal-fn.c: Likewise.
7166         * ipa-chkp.c: Likewise.
7167         * ipa-comdats.c: Likewise.
7168         * ipa-cp.c: Likewise.
7169         * ipa-devirt.c: Likewise.
7170         * ipa-icf-gimple.c: Likewise.
7171         * ipa-icf.c: Likewise.
7172         * ipa-inline-analysis.c: Likewise.
7173         * ipa-inline-transform.c: Likewise.
7174         * ipa-inline.c: Likewise.
7175         * ipa-polymorphic-call.c: Likewise.
7176         * ipa-profile.c: Likewise.
7177         * ipa-prop.c: Likewise.
7178         * ipa-pure-const.c: Likewise.
7179         * ipa-ref.c: Likewise.
7180         * ipa-reference.c: Likewise.
7181         * ipa-split.c: Likewise.
7182         * ipa-utils.c: Likewise.
7183         * ipa-visibility.c: Likewise.
7184         * ipa.c: Likewise.
7185         * ira-build.c: Likewise.
7186         * ira-color.c: Likewise.
7187         * ira-conflicts.c: Likewise.
7188         * ira-costs.c: Likewise.
7189         * ira-emit.c: Likewise.
7190         * ira-lives.c: Likewise.
7191         * ira.c: Likewise.
7192         * jump.c: Likewise.
7193         * langhooks.c: Likewise.
7194         * lcm.c: Likewise.
7195         * loop-doloop.c: Likewise.
7196         * loop-init.c: Likewise.
7197         * loop-invariant.c: Likewise.
7198         * loop-iv.c: Likewise.
7199         * loop-unroll.c: Likewise.
7200         * lower-subreg.c: Likewise.
7201         * lra-assigns.c: Likewise.
7202         * lra-coalesce.c: Likewise.
7203         * lra-constraints.c: Likewise.
7204         * lra-eliminations.c: Likewise.
7205         * lra-lives.c: Likewise.
7206         * lra-remat.c: Likewise.
7207         * lra-spills.c: Likewise.
7208         * lra.c: Likewise.
7209         * lto-cgraph.c: Likewise.
7210         * lto-compress.c: Likewise.
7211         * lto-opts.c: Likewise.
7212         * lto-section-in.c: Likewise.
7213         * lto-section-out.c: Likewise.
7214         * lto-streamer-in.c: Likewise.
7215         * lto-streamer-out.c: Likewise.
7216         * lto-streamer.c: Likewise.
7217         * mcf.c: Likewise.
7218         * mode-switching.c: Likewise.
7219         * modulo-sched.c: Likewise.
7220         * omega.c: Likewise.
7221         * omp-low.c: Likewise.
7222         * optabs.c: Likewise.
7223         * opts-global.c: Likewise.
7224         * passes.c: Likewise.
7225         * plugin.c: Likewise.
7226         * postreload-gcse.c: Likewise.
7227         * postreload.c: Likewise.
7228         * predict.c: Likewise.
7229         * print-rtl.c: Likewise.
7230         * print-tree.c: Likewise.
7231         * profile.c: Likewise.
7232         * real.c: Likewise.
7233         * realmpfr.c: Likewise.
7234         * recog.c: Likewise.
7235         * ree.c: Likewise.
7236         * reg-stack.c: Likewise.
7237         * regcprop.c: Likewise.
7238         * reginfo.c: Likewise.
7239         * regrename.c: Likewise.
7240         * regstat.c: Likewise.
7241         * reload.c: Likewise.
7242         * reload1.c: Likewise.
7243         * reorg.c: Likewise.
7244         * resource.c: Likewise.
7245         * rtl-chkp.c: Likewise.
7246         * rtlanal.c: Likewise.
7247         * rtlhooks.c: Likewise.
7248         * sanopt.c: Likewise.
7249         * sched-deps.c: Likewise.
7250         * sched-ebb.c: Likewise.
7251         * sched-rgn.c: Likewise.
7252         * sched-vis.c: Likewise.
7253         * sdbout.c: Likewise.
7254         * sel-sched-dump.c: Likewise.
7255         * sel-sched-ir.c: Likewise.
7256         * sel-sched.c: Likewise.
7257         * sese.c: Likewise.
7258         * shrink-wrap.c: Likewise.
7259         * simplify-rtx.c: Likewise.
7260         * stack-ptr-mod.c: Likewise.
7261         * stmt.c: Likewise.
7262         * stor-layout.c: Likewise.
7263         * store-motion.c: Likewise.
7264         * stringpool.c: Likewise.
7265         * symtab.c: Likewise.
7266         * target-globals.c: Likewise.
7267         * targhooks.c: Likewise.
7268         * toplev.c: Likewise.
7269         * tracer.c: Likewise.
7270         * trans-mem.c: Likewise.
7271         * tree-affine.c: Likewise.
7272         * tree-browser.c: Likewise.
7273         * tree-call-cdce.c: Likewise.
7274         * tree-cfg.c: Likewise.
7275         * tree-cfgcleanup.c: Likewise.
7276         * tree-chkp-opt.c: Likewise.
7277         * tree-chkp.c: Likewise.
7278         * tree-chrec.c: Likewise.
7279         * tree-complex.c: Likewise.
7280         * tree-data-ref.c: Likewise.
7281         * tree-dfa.c: Likewise.
7282         * tree-diagnostic.c: Likewise.
7283         * tree-dump.c: Likewise.
7284         * tree-eh.c: Likewise.
7285         * tree-emutls.c: Likewise.
7286         * tree-if-conv.c: Likewise.
7287         * tree-inline.c: Likewise.
7288         * tree-into-ssa.c: Likewise.
7289         * tree-iterator.c: Likewise.
7290         * tree-loop-distribution.c: Likewise.
7291         * tree-nested.c: Likewise.
7292         * tree-nrv.c: Likewise.
7293         * tree-object-size.c: Likewise.
7294         * tree-outof-ssa.c: Likewise.
7295         * tree-parloops.c: Likewise.
7296         * tree-phinodes.c: Likewise.
7297         * tree-predcom.c: Likewise.
7298         * tree-pretty-print.c: Likewise.
7299         * tree-profile.c: Likewise.
7300         * tree-scalar-evolution.c: Likewise.
7301         * tree-sra.c: Likewise.
7302         * tree-ssa-address.c: Likewise.
7303         * tree-ssa-alias.c: Likewise.
7304         * tree-ssa-ccp.c: Likewise.
7305         * tree-ssa-coalesce.c: Likewise.
7306         * tree-ssa-copy.c: Likewise.
7307         * tree-ssa-copyrename.c: Likewise.
7308         * tree-ssa-dce.c: Likewise.
7309         * tree-ssa-dom.c: Likewise.
7310         * tree-ssa-dse.c: Likewise.
7311         * tree-ssa-forwprop.c: Likewise.
7312         * tree-ssa-ifcombine.c: Likewise.
7313         * tree-ssa-live.c: Likewise.
7314         * tree-ssa-loop-ch.c: Likewise.
7315         * tree-ssa-loop-im.c: Likewise.
7316         * tree-ssa-loop-ivcanon.c: Likewise.
7317         * tree-ssa-loop-ivopts.c: Likewise.
7318         * tree-ssa-loop-manip.c: Likewise.
7319         * tree-ssa-loop-niter.c: Likewise.
7320         * tree-ssa-loop-prefetch.c: Likewise.
7321         * tree-ssa-loop-unswitch.c: Likewise.
7322         * tree-ssa-loop.c: Likewise.
7323         * tree-ssa-math-opts.c: Likewise.
7324         * tree-ssa-operands.c: Likewise.
7325         * tree-ssa-phiopt.c: Likewise.
7326         * tree-ssa-phiprop.c: Likewise.
7327         * tree-ssa-pre.c: Likewise.
7328         * tree-ssa-propagate.c: Likewise.
7329         * tree-ssa-reassoc.c: Likewise.
7330         * tree-ssa-sccvn.c: Likewise.
7331         * tree-ssa-scopedtables.c: Likewise.
7332         * tree-ssa-sink.c: Likewise.
7333         * tree-ssa-strlen.c: Likewise.
7334         * tree-ssa-structalias.c: Likewise.
7335         * tree-ssa-tail-merge.c: Likewise.
7336         * tree-ssa-ter.c: Likewise.
7337         * tree-ssa-threadedge.c: Likewise.
7338         * tree-ssa-threadupdate.c: Likewise.
7339         * tree-ssa-uncprop.c: Likewise.
7340         * tree-ssa-uninit.c: Likewise.
7341         * tree-ssa.c: Likewise.
7342         * tree-ssanames.c: Likewise.
7343         * tree-stdarg.c: Likewise.
7344         * tree-streamer-in.c: Likewise.
7345         * tree-streamer-out.c: Likewise.
7346         * tree-streamer.c: Likewise.
7347         * tree-switch-conversion.c: Likewise.
7348         * tree-tailcall.c: Likewise.
7349         * tree-vect-data-refs.c: Likewise.
7350         * tree-vect-generic.c: Likewise.
7351         * tree-vect-loop-manip.c: Likewise.
7352         * tree-vect-loop.c: Likewise.
7353         * tree-vect-patterns.c: Likewise.
7354         * tree-vect-slp.c: Likewise.
7355         * tree-vect-stmts.c: Likewise.
7356         * tree-vectorizer.c: Likewise.
7357         * tree-vrp.c: Likewise.
7358         * tree.c: Likewise.
7359         * tsan.c: Likewise.
7360         * ubsan.c: Likewise.
7361         * valtrack.c: Likewise.
7362         * value-prof.c: Likewise.
7363         * var-tracking.c: Likewise.
7364         * varasm.c: Likewise.
7365         * varpool.c: Likewise.
7366         * vmsdbgout.c: Likewise.
7367         * vtable-verify.c: Likewise.
7368         * web.c: Likewise.
7369         * wide-int.cc: Likewise.
7370         * xcoffout.c: Likewise.
7371         * config/aarch64/aarch64-builtins.c: Likewise.
7372         * config/aarch64/aarch64.c: Likewise.
7373         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7374         * config/alpha/alpha.c: Likewise.
7375         * config/arc/arc.c: Likewise.
7376         * config/arm/aarch-common.c: Likewise.
7377         * config/arm/arm-builtins.c: Likewise.
7378         * config/arm/arm-c.c: Likewise.
7379         * config/arm/arm.c: Likewise.
7380         * config/avr/avr-c.c: Likewise.
7381         * config/avr/avr-log.c: Likewise.
7382         * config/avr/avr.c: Likewise.
7383         * config/bfin/bfin.c: Likewise.
7384         * config/c6x/c6x.c: Likewise.
7385         * config/cr16/cr16.c: Likewise.
7386         * config/cris/cris.c: Likewise.
7387         * config/darwin-c.c: Likewise.
7388         * config/darwin.c: Likewise.
7389         * config/epiphany/epiphany.c: Likewise.
7390         * config/epiphany/mode-switch-use.c: Likewise.
7391         * config/epiphany/resolve-sw-modes.c: Likewise.
7392         * config/fr30/fr30.c: Likewise.
7393         * config/frv/frv.c: Likewise.
7394         * config/ft32/ft32.c: Likewise.
7395         * config/h8300/h8300.c: Likewise.
7396         * config/i386/i386-c.c: Likewise.
7397         * config/i386/i386.c: Likewise.
7398         * config/i386/msformat-c.c: Likewise.
7399         * config/i386/winnt-cxx.c: Likewise.
7400         * config/i386/winnt-stubs.c: Likewise.
7401         * config/i386/winnt.c: Likewise.
7402         * config/ia64/ia64-c.c: Likewise.
7403         * config/ia64/ia64.c: Likewise.
7404         * config/iq2000/iq2000.c: Likewise.
7405         * config/lm32/lm32.c: Likewise.
7406         * config/m32c/m32c-pragma.c: Likewise.
7407         * config/m32c/m32c.c: Likewise.
7408         * config/m32r/m32r.c: Likewise.
7409         * config/m68k/m68k.c: Likewise.
7410         * config/mcore/mcore.c: Likewise.
7411         * config/mep/mep-pragma.c: Likewise.
7412         * config/mep/mep.c: Likewise.
7413         * config/microblaze/microblaze-c.c: Likewise.
7414         * config/microblaze/microblaze.c: Likewise.
7415         * config/mips/mips.c: Likewise.
7416         * config/mmix/mmix.c: Likewise.
7417         * config/mn10300/mn10300.c: Likewise.
7418         * config/moxie/moxie.c: Likewise.
7419         * config/msp430/msp430-c.c: Likewise.
7420         * config/msp430/msp430.c: Likewise.
7421         * config/nds32/nds32-cost.c: Likewise.
7422         * config/nds32/nds32-fp-as-gp.c: Likewise.
7423         * config/nds32/nds32-intrinsic.c: Likewise.
7424         * config/nds32/nds32-isr.c: Likewise.
7425         * config/nds32/nds32-md-auxiliary.c: Likewise.
7426         * config/nds32/nds32-memory-manipulation.c: Likewise.
7427         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7428         * config/nds32/nds32-predicates.c: Likewise.
7429         * config/nds32/nds32.c: Likewise.
7430         * config/nios2/nios2.c: Likewise.
7431         * config/nvptx/nvptx.c: Likewise.
7432         * config/pa/pa.c: Likewise.
7433         * config/pdp11/pdp11.c: Likewise.
7434         * config/rl78/rl78-c.c: Likewise.
7435         * config/rl78/rl78.c: Likewise.
7436         * config/rs6000/rs6000-c.c: Likewise.
7437         * config/rs6000/rs6000.c: Likewise.
7438         * config/rx/rx.c: Likewise.
7439         * config/s390/s390-c.c: Likewise.
7440         * config/s390/s390.c: Likewise.
7441         * config/sh/sh-c.c: Likewise.
7442         * config/sh/sh-mem.cc: Likewise.
7443         * config/sh/sh.c: Likewise.
7444         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7445         * config/sh/sh_treg_combine.cc: Likewise.
7446         * config/sol2-c.c: Likewise.
7447         * config/sol2-cxx.c: Likewise.
7448         * config/sol2-stubs.c: Likewise.
7449         * config/sol2.c: Likewise.
7450         * config/sparc/sparc-c.c: Likewise.
7451         * config/sparc/sparc.c: Likewise.
7452         * config/spu/spu-c.c: Likewise.
7453         * config/spu/spu.c: Likewise.
7454         * config/stormy16/stormy16.c: Likewise.
7455         * config/tilegx/mul-tables.c: Likewise.
7456         * config/tilegx/tilegx-c.c: Likewise.
7457         * config/tilegx/tilegx.c: Likewise.
7458         * config/tilepro/mul-tables.c: Likewise.
7459         * config/tilepro/tilepro-c.c: Likewise.
7460         * config/tilepro/tilepro.c: Likewise.
7461         * config/v850/v850-c.c: Likewise.
7462         * config/v850/v850.c: Likewise.
7463         * config/vax/vax.c: Likewise.
7464         * config/visium/visium.c: Likewise.
7465         * config/vms/vms-c.c: Likewise.
7466         * config/vms/vms.c: Likewise.
7467         * config/vxworks.c: Likewise.
7468         * config/xtensa/xtensa.c: Likewise.
7470 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
7472         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
7473         Remove operand constraints.  Change operand 2 predicate to
7474         nonmemory operand.  Limit const_int values to mode bitsize.  Only
7475         allow const_int values less than 32 when optimizing for size.
7476         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
7477         Remove operand constraints.
7478         (*bt<mode>): Use SImode for const_int values less than 32.
7479         (regmode): Remove mode attribute.
7481 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
7483         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7484         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
7485           moxie_legitimate_address_p): New functions.
7486           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7488 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7490         PR tree-optimization/66642
7491         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
7492         header comment.  Rename split_edge variable to edge_at_split.  Split
7493         exit edge to create new loop exit bb.  Insert loop exit phis in new
7494         loop exit bb.
7496 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7498         * tree-cfg.c (get_virtual_phi): New function.
7499         * tree-cfg.h (get_virtual_phi): Declare.
7500         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
7501         (rewrite_virtuals_into_loop_closed_ssa): New function.
7502         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
7503         Declare.
7504         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
7505         (transform_to_exit_first_loop_alt): Use
7506         rewrite_virtuals_into_loop_closed_ssa.
7508 2015-07-07  Richard Biener  <rguenther@suse.de>
7510         * fold-const.c (fold_binary_loc): Move
7511         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
7512         * match.pd: ... here.
7513         Add (X * C1) % C2 -> 0 simplification pattern derived from
7514         extract_muldiv_1.
7516 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7518         PR target/66780
7519         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
7520         change for target/65249.
7522 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
7524         * symtab.c (address_matters_1): Fix typo in comment above.
7525         (can_increase_alignment_p): Likewise.
7527 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7529         * function.c (free_after_compilation): Clear PROP_cfg in
7530         f->curr_properties.
7532 2015-07-07  Richard Biener  <rguenther@suse.de>
7534         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
7535         add which use to.
7536         (add_control_edge): Remove excessive vertical space in dumping.
7537         (process_ssa_edge_worklist): Simulate at most one statement and
7538         return whether we did.  Do not simulate PHIs if they are in a
7539         BB not yet simulated.
7540         (ssa_propagate): Adjust to always drain the BB worklist whenever
7541         a BB is available there, likewise the VARYING edges list before
7542         the interesting edge list.
7544 2015-07-07  Christian Bruel  <christian.bruel@st.com>
7546         PR target/52144
7547         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
7549 2015-07-07  Richard Biener  <rguenther@suse.de>
7551         PR middle-end/66739
7552         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
7553         A - B.
7555 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7557         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
7558         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
7559         Copy operand 0 to a temporary if !ext_register_operand.  Remove
7560         ancient extract_bit_field workaround.
7561         (insv<mode>_1): Rename from mov<mode>_insv_1.
7562         (*insvqi): Rename from *movqi_insv_2.
7563         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
7564         for renamed insvsi_1.
7565         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
7567 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
7569         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
7570         call to nvptx_reorg_subreg.
7572 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
7574         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
7575         * graphite-dependencies.c, graphite-interchange.c,
7576         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
7577         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
7578         Likewise.
7580 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
7582         * match.pd: Remove element_mode inside HONOR_*.
7583         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
7584         (~X | X -> -1, ~X ^ X -> -1): Merge.
7585         * tree.c (build_each_one_cst): New function.
7586         * tree.h (build_each_one_cst): Likewise.
7588 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7590         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7591         PROCESSOR_IAMCU.
7593 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
7595         * config.gcc <mips*-*-*>: Add fused-madd.opt.
7596         * config/mips/mips.opt (mfused-madd): Remove.
7597         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
7598         * config/mips/mips.h (TARGET_MIPS8000): New.
7599         (ISA_HAS_FP_MADD4_MSUB4): Remove.
7600         (ISA_HAS_FP_MADDF_MSUBF): Remove.
7601         (ISA_HAS_FP_MADD3_MSUB3): Remove.
7602         (ISA_HAS_NMADD4_NMSUB4): Remove.
7603         (ISA_HAS_NMADD3_NMSUB3): Remove.
7604         (ISA_HAS_FUSED_MADD4): New.
7605         (ISA_HAS_UNFUSED_MADD4): New.
7606         (ISA_HAS_FUSED_MADDF): New.
7607         (ISA_HAS_FUSED_MADD3): New.
7608         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
7609         (*fma<mode>4_madd3) New.
7610         (*fma<mode>4_madd4) New.
7611         (*fma<mode>4_maddf) New.
7612         (fms<mode>4) New.
7613         (*fms<mode>4_msub3) New.
7614         (*fms<mode>4_msub4) New.
7615         (fnma<mode>4) New.
7616         (*fnma<mode>4_nmadd3) New.
7617         (*fnma<mode>4_nmadd4) New.
7618         (fnms<mode>4) New.
7619         (*fnms<mode>4_nmsub3) New.
7620         (*fnms<mode>4_nmsub4) New.
7621         (*madd4<mode>) Modify to be unfused only.
7622         (*msub4<mode>) Modify to be unfused only.
7623         (*nmadd4<mode>) Modify to be unfused only.
7624         (*nmsub4<mode>) Modify to be unfused only.
7625         (*madd3<mode>) Remove.
7626         (*msub3<mode>) Remove.
7627         (*nmadd3<mode>) Remove.
7628         (*nmsub3<mode>) Remove.
7629         (*nmadd3<mode>_fastmath) Remove.
7630         (*nmsub3<mode>_fastmath) Remove.
7631         (*nmadd4<mode>_fastmath) Update condition.
7632         (*nmsub4<mode>_fastmath) Update condition.
7634 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7636         PR target/65956
7637         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
7638         alignment attribute, exploring one level down for records and arrays.
7640 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7642         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
7643         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
7644         Copy operand 1 to a temporary if !ext_register_operand.  Remove
7645         ancient extract_bit_field workaround.
7646         (*extv<mode>): Rename from *mov<mode>_extv_1.
7647         (*extvqi): Rename from *movqi_extv_1.
7648         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
7649         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
7650         to a temporary if !ext_register_operand.  Remove ancient
7651         extract_bit_field workaround.
7652         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
7653         (*extzvqi): Rename from *movqi_extzv_2.
7654         (*testqi_ext_3): Remove modes from const_int_operand predicated
7655         operands.  Add "n" constraint.
7656         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
7657         operand.  Add "J" constraint.
7658         (*btsq, *btrq, *btcq peephole2s): Remove mode from
7659         const_0_to_63 predicated operand.
7660         (regmode): New insn attribute.
7661         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
7662         to nonmemory_operand.  Use regmode insn attribute.
7663         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
7664         (*jcc_bt<mode>_mask): Remove mode from operand 3.
7665         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
7666         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
7667         operands.  Use "N" constraint instead of "n".
7669 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7671         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
7673 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7675         PR target/66749
7676         * config/i386/i386.c (iamcu_cost): New.
7677         (m_IAMCU): Likewise.
7678         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
7679         (processor_target_table): Add an entry for "iamcu".
7680         (processor_alias_table): Likewise.
7681         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
7682         (ix86_adjust_cost): Likewise.
7683         (ia32_multipass_dfa_lookahead): Likewise.
7684         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
7685         * config/i386/x86-tune.def: Updated for m_IAMCU.
7687 2015-07-06  Richard Biener  <rguenther@suse.de>
7689         PR tree-optimization/66772
7690         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
7691         values are available in the PHI node BB when there are
7692         still unexecutable edges.
7694 2015-07-06  Richard Biener  <rguenther@suse.de>
7696         PR tree-optimization/66767
7697         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7698         Make sure to build the alignment test on a SSA name without
7699         final alignment info valid only if the alignment test
7700         evaluates to true.
7702 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7704         PR target/66620
7705         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
7706         loop start when inserting LSETUP.
7708 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7710         PR target/53383
7711         * config/i386/i386.c (ix86_option_override_internal): Allow
7712         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
7714 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7716         * read-md.c (decimal_string): Rename to ...
7717         (md_decimal_string): ... this.
7718         (handle_enum): Reflect this.
7720 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7722         PR target/66731
7723         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
7725 2015-07-06  Richard Biener  <rguenther@suse.de>
7727         PR middle-end/66759
7728         * match.pd: Add missing constraint of y to REAL_CST in
7729         REAL_CST - x CMP y to y - CST CMP x simplification.
7731 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
7733         PR tree-optimization/66757
7734         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
7736 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
7737             Sandra Loosemore <sandra@codesourcery.com>
7739         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
7740         Delete extern declaration.
7741         (gprel_constant_p): Add extern declaration.
7742         * config/nios2/constraints.md ("S"): Use gprel_constant_p
7743         instead of nios2_symbol_ref_in_small_data_p.
7744         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
7745         (nios2_symbol_ref_in_small_data_p): Make static.
7746         (gprel_constant_p): Make non-static.
7748 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
7750         * doc/fragments.texi (Target Fragment): Convert debian.org
7751         link to use https.
7752         * doc/install.texi (Configuration): Ditto.
7754 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
7756         PR tree-optimization/66718
7757         * tree-vect-stmts.c (vectorizable_call): Replace uses of
7758         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7760         PR tree-optimization/66718
7761         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
7762         vectorizable_load, vectorizable_condition): Move vectype,
7763         nunits, ncopies computation after checking what kind of statement
7764         stmt is.
7766 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7768         * target-insns.def (extv, extzv, insv): New targetm instruction
7769         patterns.
7770         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
7771         interface.
7772         * recog.c (simplify_while_replacing): Likewise.
7774 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7776         * target-insns.def (doloop_begin, doloop_end): New targetm
7777         instruction patterns.
7778         * loop-init.c: Include target.h.
7779         (pass_loop2::gate): Use the new targetm patterns instead of
7780         HAVE_*/gen_* interface.
7781         (pass_rtl_doloop::gate): Likewise.
7782         (pass_rtl_doloop::execute): Remove preprocessor condition.
7783         * hw-doloop.c: Build unconditionally.
7784         * loop-doloop.c: Likewise.
7785         (doloop_optimize): Use the new targetm patterns instead of
7786         HAVE_*/gen_* interface.
7787         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
7788         * modulo-sched.c (doloop_register_get): Likewise.
7790 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7792         * target-insns.def (clear_cache): New targetm instruction pattern.
7793         * builtins.c (expand_builtin___clear_cache): Use it instead of
7794         HAVE_*/gen_* interface.
7796 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7798         * target-insns.def (allocate_stack, check_stack, probe_stack)
7799         (probe_stack_address, split_stack_prologue, split_stack_space_check):
7800         New targetm instruction patterns.
7801         * explow.c (allocate_dynamic_stack_space): Use them instead of
7802         HAVE_*/gen_* interface.
7803         (emit_stack_probe): Likewise.
7804         (probe_stack_range): Likewise.
7805         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7807 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7809         * target-insns.def (stack_protect_set, stack_protect_test): New
7810         targetm instruction patterns.
7811         * cfgexpand.c (stack_protect_prologue): Use them instead of
7812         HAVE_*/gen_* interface.
7813         * function.c (stack_protect_epilogue): Likewise.
7815 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7817         * expr.h (gen_move_insn_uncast): Delete.
7818         * expr.c (gen_move_insn_uncast): Delete.
7820 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7822         * target-insns.def (restore_stack_block, restore_stack_function)
7823         (restore_stack_nonlocal, save_stack_block, save_stack_function)
7824         (save_stack_nonlocal): New targetm instruction patterns.
7825         * builtins.c (expand_builtin_apply): Use them instead of
7826         HAVE_*/gen_* interface.
7827         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
7829 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7831         * target-insns.def (trap): New targetm instruction pattern.
7832         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
7833         interface.
7834         * explow.c (allocate_dynamic_stack_space): Likewise.
7835         * ifcvt.c (find_if_header): Likewise.
7837 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7839         * target-insns.def (prefetch): New targetm instruction pattern.
7840         * tree-ssa-loop-prefetch.c: Include targeth.
7841         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
7842         of HAVE_*/gen_* interface.
7843         * builtins.c (expand_builtin_prefetch): Likewise.
7844         * toplev.c (process_options): Likewise.
7846 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7848         * target-insns.def (untyped_call, untyped_return): New targetm
7849         instruction patterns.
7850         * builtins.c (expand_builtin_apply): Use them instead of
7851         HAVE_*/gen_* interface.
7852         (result_vector): Define unconditionally.
7854 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7856         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
7857         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
7858         (nonlocal_goto_receiver): New targetm instruction patterns.
7859         * builtins.c (expand_builtin_setjmp_setup): Use them instead
7860         of HAVE_*/gen_* interface.
7861         (expand_builtin_setjmp_receiver): Likewise.
7862         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7863         * except.c (expand_dw2_landing_pad_for_region): Likewise.
7865 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7867         * target.def: Add code_for_* hooks.
7868         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
7869         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
7870         * target-insns.def (casesi, tablejump): New targetm instruction
7871         patterns.
7872         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
7873         (do_tablejump): Likewise.
7874         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
7875         (expand_sjlj_dispatch_table): Likewise.
7876         * targhooks.c (default_case_values_threshold): Likewise.
7878 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
7880         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
7881         Use rtx_insn * instead of rtx.
7882         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
7883         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
7884         (nios2_call_tls_get_addr): Likewise.
7885         (nios2_emit_expensive_div): Likewise.
7886         (nios2_emit_move_sequence): Change return type to bool.
7887         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
7888         Change return type to bool.
7890 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7892         PR target/66747
7893         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
7895 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
7897         PR target/66114
7898         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
7899         of register_operand.  Remove constraint.
7901 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
7903         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
7904         the first argument.
7906 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
7908         * attribs.c (decl_attributes): Guard inform with the return value
7909         of the preceding warning.
7911 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7913         * doc/invoke.texi (moverride): Move to correct section.
7915 2015-07-03  Richard Biener  <rguenther@suse.de>
7917         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
7918         Copy from tree.c
7919         (dt_operand::gen_gimple_expr): After valueizing operands
7920         re-canonicalize operand order for commutative tree codes.
7922 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
7924         PR target/66746.
7925         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
7926         is defined.
7927         (__crc32w): Likewise.
7928         (__crc32d): Likewise.
7929         (__rdpmc): Likewise.
7930         (__rdtscp): Likewise.
7931         (_rdpmc): Likewise.
7932         (_rdtscp): Likewise.
7933         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
7934         is defined.
7936 2015-07-03  Richard Biener  <rguenther@suse.de>
7938         * fold-const.c (fold_mathfn_compare): Remove.
7939         (fold_inf_compare): Likewise.
7940         (fold_comparison): Move floating point comparison simplifications...
7941         * match.pd: ... to patterns here.  Introduce simple_comparisons
7942         operator list and use it for patterns formerly in fold_comparison.
7944 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7946         PR tree-optimization/66119
7947         * toplev.c (process_options): Don't set up default values for
7948         the sra_max_scalarization_size_{speed,size} parameters.
7949         * tree-sra (analyze_all_variable_accesses): If no values
7950         have been set for the sra_max_scalarization_size_{speed,size}
7951         parameters, call get_move_ratio to get target defaults.
7953 2015-07-03  Richard Biener  <rguenther@suse.de>
7955         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
7956         * match.pd: ... here.
7958 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
7960         PR target/37072
7961         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
7962         is not actually the default on FreeBSD.
7964 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7966         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
7967         definition.
7968         (CMPGE_8HI): Likewise.
7969         (CMPGE_4SI): Likewise.
7970         (CMPGE_2DI): Likewise.
7971         (CMPGE_U16QI): Likewise.
7972         (CMPGE_U8HI): Likewise.
7973         (CMPGE_U4SI): Likewise.
7974         (CMPGE_U2DI): Likewise.
7975         (CMPLE_16QI): Likewise.
7976         (CMPLE_8HI): Likewise.
7977         (CMPLE_4SI): Likewise.
7978         (CMPLE_2DI): Likewise.
7979         (CMPLE_U16QI): Likewise.
7980         (CMPLE_U8HI): Likewise.
7981         (CMPLE_U4SI): Likewise.
7982         (CMPLE_U2DI): Likewise.
7983         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7984         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
7985         ALTIVEC_BUILTIN_VEC_CMPLE.
7986         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
7987         floating-point vector modes.
7988         (vector_nlt<mode>): New define_expand.
7989         (vector_nltu<mode>): Likewise.
7990         (vector_ngt<mode>): Likewise.
7991         (vector_ngtu<mode>): Likewise.
7993 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
7995         PR rtl-optimization/66706
7996         * combine.c (make_compound_operation): If an AND of SUBREG of
7997         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
7999 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
8001         * tree-pass.h (make_pass_ch_vect): New.
8002         * passes.def: Add pass_ch_vect just before pass_if_conversion.
8004         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
8005         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
8006         make_pass_ch_vect): New.
8007         (pass_ch): Extend ch_base.
8009         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
8010         (ch_base::copy_headers): ...here.
8012 2015-07-02  Richard Biener  <rguenther@suse.de>
8014         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
8015         * fold-const.c (get_pointer_modulus_and_residue): Remove.
8016         (fold_binary_loc): Implement (T)ptr & CST in terms of
8017         get_pointer_alignment_1.
8018         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
8019         Make sure to build the alignment test on a SSA name without
8020         final alignment info valid only after the prologue.
8022 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
8024         * config/cris/cris.md ("epilogue"): Remove condition.
8025         ("prologue"): Ditto.
8027 2015-07-02  Richard Biener  <rguenther@suse.de>
8029         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
8030         parameter to record a condition that is false.
8031         (record_conditions): When recording an extra NE_EXPR that is
8032         true also record a EQ_EXPR that is false.
8034 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
8036         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
8037         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
8038         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
8039         (set_iv, find_interesting_uses_address, add_candidate_1): New
8040         argument to alloc_iv.
8041         (find_interesting_uses_op, find_interesting_uses_cond): Don't
8042         duplicate struct iv.
8043         (free_loop_data): Don't free struct iv explicitly.
8044         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
8046 2015-07-01  DJ Delorie  <dj@redhat.com>
8048         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
8049         (LIB_SPEC): Add.
8050         (SUPPORTS_DISCRIMINATOR): Define.
8052 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8054         PR bootstrap/66685
8055         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
8056         there are no CALLs in the same pattern.
8058 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8060         PR rtl-optimization/61047
8061         * rtlanal.c (get_initial_register_offset): New function.
8062         (rtx_addr_can_trap_p_1): Check offsets of stack references.
8064 2015-07-01  Richard Biener  <rguenther@suse.de>
8066         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
8067         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
8068         ~X CMP C -> X CMP' ~C to ...
8069         * match.pd: ... patterns here.
8071 2015-07-01  Nick Clifton  <nickc@redhat.com>
8073         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
8074         a 16-bit value into a 20-bit memory slot.
8076 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8078         * doc/sourcebuild.texi (AArch64-specific attributes): Document
8079         "aarch64_tiny", "aarch64_small", "aarch64_large",
8080         "aarch64_little_endian", "aarch64_big_endian".
8082 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8084         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
8085         Document "aarch64_small_fpic".
8087 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8089         * configure.ac: Add check for aarch64 assembler -fpic relocation
8090         modifier support.
8091         * configure: Regenerate.
8092         * config.in: Regenerate.
8093         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
8094         to -fPIC if not support of -fpic relocation modifier in assembler.
8096 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8098         PR bootstrap/66685
8099         * rtl.c (classify_insn): Handle returns in PARALLELs.
8101 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8103         PR middle-end/66633
8104         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
8105         to true if the function is nested and if not optimizing.
8106         (convert_local_omp_clauses): Initialize need_frame to true if the
8107         function contains nested functions and if not optimizing.
8109 2015-07-01  Richard Biener  <rguenther@suse.de>
8111         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
8112         (X & Y) ^ Y -> ~X & Y transforms to ...
8113         * match.pd: ... here.
8115 2015-07-01  Richard Biener <rguenther@suse.de>
8117         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
8118         of converts to avoid uninteresting noise from the conversion
8119         simplifying patterns.
8121 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
8123         * config/c6x/c6x.c (try_rename_operands): Do not depend on
8124         gcc_assert evaluating its argument for side-effect.
8126 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8128         PR target/64833
8129         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
8130         flag_pic is set.
8132 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8134         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
8135         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
8136         (hash_scc): Add this_ref_p and ref_p parameters and pass them
8137         to the inner DFS walk.
8139 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8141         * target-insns.def (jump): New targetm instruction pattern.
8142         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
8143         instead of gen_jump.
8144         (fix_up_crossing_landing_pad): Likewise.
8145         (add_labels_and_missing_jumps): Likewise.
8146         (fix_crossing_conditional_branches): Likewise.
8147         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8148         (force_nonfallthru_and_redirect): Likewise.
8149         * cse.c (cse_insn): Likewise.
8150         * expmed.c (expand_divmod): Likewise.
8151         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
8152         * haifa-sched.c (init_before_recovery): Likewise.
8153         (sched_create_recovery_edges): Likewise.
8154         * ifcvt.c (find_cond_trap): Likewise.
8155         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
8156         (expand_float, expand_fix): Likewise.
8157         * stmt.c (emit_jump): Likewise.
8159 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8161         * defaults.h (HAVE_load_multiple, gen_load_multiple)
8162         (HAVE_store_multiple, gen_store_multiple): Delete.
8163         * target-insns.def (load_multiple, store_multiple): New targetm
8164         instruction patterns.
8165         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
8166         of HAVE_*/gen_* interface.
8168 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8170         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
8171         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
8172         (gen_mem_signal_fence): Delete.
8173         * target-insns.def (mem_signal_fence, mem_thread_fence)
8174         (memory_barrier): New targetm instruction patterns.
8175         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
8176         interface.
8177         (expand_mem_signal_fence): Likewise.
8179 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8181         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
8182         * target-insns.def (epilogue, prologue, sibcall_prologue): New
8183         targetm instruction patterns.
8184         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
8185         interface.
8186         * calls.c (expand_call): Likewise.
8187         * cfgrtl.c (cfg_layout_finalize): Likewise.
8188         * df-scan.c (df_get_entry_block_def_set): Likewise.
8189         (df_get_exit_block_use_set): Likewise.
8190         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
8191         * final.c (final_start_function): Likewise.
8192         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8193         (reposition_prologue_and_epilogue_notes): Likewise.
8194         * reorg.c (find_end_label): Likewise.
8195         * toplev.c (process_options): Likewise.
8197 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
8199         * typed-splay-tree.h: New file.
8201 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
8203         PR debug/66691
8204         * lra-int.h (lra_substitute_pseudo): Add a parameter.
8205         (lra_substitute_pseudo_within_insn): Ditto.
8206         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
8207         of constant.
8208         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
8209         to lra_substitute_pseudo.
8210         * lra-lives.c (process_bb_lives): Add an argument to
8211         lra_substitute_pseudo_within_insn call.
8212         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
8213         argument to lra_substitute_pseudo and
8214         lra_substitute_pseudo_within_insn calls.
8215         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
8217 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8219         * configure: Regenerated.
8221 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8223         * config.gcc: Support i[34567]86-*-elfiamcu target.
8224         * config/i386/iamcu.h: New.
8225         * config/i386/i386.opt: Add -miamcu.
8226         * doc/invoke.texi: Document -miamcu.
8227         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
8228         off x87/MMX/SSE/AVX codegen for -miamcu.
8229         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8230         __iamcu/__iamcu__ for -miamcu.
8231         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
8232         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
8233         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
8234         * config/i386/i386.c (ix86_option_override_internal): Ignore and
8235         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
8236         MCU by default.  Default long double to 64-bit for Intel MCU.
8237         Turn on -freg-struct-return for Intel MCU.  Issue an error when
8238         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
8239         AVX is turned on.
8240         (function_arg_advance_32): Pass value whose size is no larger
8241         than 8 bytes in registers for Intel MCU.
8242         (function_arg_32): Likewise.
8243         (ix86_return_in_memory): Return value whose size is no larger
8244         than 8 bytes in registers for Intel MCU.
8245         (iamcu_alignment): New function.
8246         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
8247         true.
8248         (ix86_local_alignment): Don't increase alignment for Intel MCU.
8249         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
8250         true.
8252 2015-06-30  Marek Polacek  <polacek@redhat.com>
8254         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
8255         both operands of the resulting expression.
8257         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
8258         the final expression with the operand's type and then convert
8259         it to the type of the expression.
8261 2015-06-30  Richard Biener  <rguenther@suse.de>
8263         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
8264         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
8265         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
8266         * match.pd: ... to patterns here.
8268 2015-06-30  Richard Biener  <rguenther@suse.de>
8270         PR tree-optimization/66704
8271         * tree-vect-data-refs.c (vect_setup_realignment): Use
8272         make_ssa_name for non-SSA name source.
8274 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
8276         PR middle-end/66702
8277         * omp-low.c (simd_clone_adjust): Handle addressable linear
8278         or uniform parameters or non-gimple type uniform parameters.
8280 2015-06-30  Richard Biener  <rguenther@suse.de>
8282         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
8283         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
8284         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
8285         * match.pd: ... here.
8286         Add a few cases of A - B -> A + (-B) when B "easily" negates.
8287         Move (x & y) | x -> x and friends before
8288         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
8290 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8292         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
8293         -mfix-ut699 is not specified.
8294         (leon3_load): Rename into...
8295         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
8296         is specified.
8298 2015-06-30  Marek Polacek  <polacek@redhat.com>
8300         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
8301         * match.pd: ... here.
8303 2015-06-30  Richard Biener  <rguenther@suse.de>
8305         * target-insns.def (canonicalize_funcptr_for_compare): Add.
8306         * fold-const.c (build_range_check): Replace uses of
8307         HAVE_canonicalize_funcptr_for_compare.
8308         (fold_widened_comparison): Likewise.
8309         (fold_sign_changed_comparison): Likewise.
8310         * dojump.c: Include "target.h".
8311         (do_compare_and_jump): Replace uses of
8312         HAVE_canonicalize_funcptr_for_compare and
8313         gen_canonicalize_funcptr_for_compare.
8314         * expr.c (do_store_flag): Likewise.
8316 2015-06-30  Tom de Vries  <tom@codesourcery.com>
8318         PR tree-optimization/66652
8319         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
8320         max_loop_iterations to determine if nit + 1 overflows.
8322 2015-06-30  Richard Biener  <rguenther@suse.de>
8324         * tree-vrp.c (register_edge_assert_for_2): Also register
8325         asserts for dominating conversion results.
8327 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
8329         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
8330         field in struct iv.
8332 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
8334         PR target/66509
8335         * configure.ac: Fix filds and fildq test for 64-bit.
8336         * configure: Regenerated.
8338 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8340         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
8341         (nvptx_reorg): Here.  Keep the non-subreg pieces.
8343 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
8345         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
8346         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8348 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
8350         * config/i386/i386.md (*jcc_1): Use %! in asm template.
8351         Set attribute "length_nobnd" instead of "length".
8352         (*jcc_2): Ditto.
8353         (jump): Ditto.
8354         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
8356 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
8358         * config/nios2/nios2.c (nios2_delegitimize_address): Make
8359         assert less restrictive.
8361 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8363         PR fortran/66605
8364         * cgraphunit.c (cgraph_node::finalize_function): Do not call
8365         do_warn_unused_parameter.
8366         * function.c (do_warn_unused_parameter): Move from here.
8367         * function.h (do_warn_unused_parameter): Do not declare.
8369 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8371         PR target/65697
8372         * gcc.target/arm/armv-sync-comp-swap.c: New.
8373         * gcc.target/arm/armv-sync-op-acquire.c: New.
8374         * gcc.target/arm/armv-sync-op-full.c: New.
8375         * gcc.target/arm/armv-sync-op-release.c: New.
8377 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8379         PR target/65697
8380         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
8381         initial acquire barrier with final barrier.
8383 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8385         PR target/65697
8386         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
8387         initial acquire barrier with final barrier.
8389 2015-06-29  Richard Henderson  <rth@redhat.com>
8391         * config/i386/constraints.md (Bf): New constraint.
8392         * config/i386/i386-c.c (ix86_target_macros): Define
8393         __GCC_ASM_FLAG_OUTPUTS__.
8394         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
8395         as flags outputs.
8396         * doc/extend.texi (FlagOutputOperands): Document them.
8398 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
8400         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
8401         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
8402         unspec name.
8403         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
8404         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
8405         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
8406         (aarch64_symbol_context): Ditto.
8407         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
8408         and use new pattern name.
8409         (aarch64_expand_mov_immediate): Ditto.
8410         (aarch64_print_operand): Ditto.
8411         (aarch64_classify_tls_symbol): Ditto.
8413 2015-06-29  Marek Polacek  <polacek@redhat.com>
8414             Marc Glisse  <marc.glisse@inria.fr>
8416         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
8417         * match.pd: ... pattern here.
8419 2015-06-29  Tom de Vries  <tom@codesourcery.com>
8421         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
8422         function structure.
8424 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8426         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
8427         feature description, split out the native option, add a link to
8428         the feature documentation, rearrange and slightly rewrite text.
8429         (Aarch64 options, -mcpu): Likewise.
8430         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
8431         +rdma implies Adv. SIMD.
8433 2015-06-29  Marek Polacek  <polacek@redhat.com>
8435         PR c/66322
8436         * function.c (stack_protect_epilogue): Remove a cast to int.
8437         * doc/invoke.texi: Update -Wswitch-bool description.
8439 2015-06-29  Richard Biener  <rguenther@suse.de>
8441         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
8442         * fold-const.c (fold_binary_loc): Move &A - &B simplification
8443         via ptr_difference_const ...
8444         * match.pd: ... here.
8445         When matching (X ^ Y) == Y also match with swapped operands.
8447 2015-06-29  Richard Biener  <rguenther@suse.de>
8449         * lto-streamer.h (LTO_major_version): Bump to 5.
8451 2015-06-29  Richard Biener  <rguenther@suse.de>
8453         PR tree-optimization/66677
8454         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
8455         STMT_VINFO_VEC_STMT clobbering less strict.
8457 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
8459         PR middle-end/64130
8460         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
8461         division, compute max and min when value ranges for dividend and
8462         divisor are available.
8464 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
8465             Sandra Loosemore <sandra@codesourcery.com>
8467         * regrename.h (regrename_do_replace): Change to return bool.
8468         * regrename.c (rename_chains): Check return value of
8469         regname_do_replace.
8470         (regrename_do_replace): Re-validate the modified insns and
8471         return bool status.
8472         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
8473         Update to match rename_chains changes.
8474         * config/c6x/c6x.c (try_rename_operands): Assert that
8475         regrename_do_replace returns true.
8477 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
8479         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
8480         operand 2 here.  Use copy_addr_to_reg to copy non-index
8481         register operand 2 to a temporary.
8482         (<mode>_stx): Ditto for operand 1.
8483         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
8484         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
8485         (ix86_store_bounds): Ditto.
8487 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
8489         * print-tree.c (print_node) [TREE_VEC]: Print its length.
8491 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
8493         * gimple.c (gimple_call_set_fndecl): Remove.
8494         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
8495         build1_loc directly instead of build_fold_addr_expr_loc.
8497 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8499         * hash-map.h (hash_map::traverse): Use the definition of the
8500         Key typedef rather than the typedef itself.
8502 2015-06-26  Martin Jambor  <mjambor@suse.cz>
8504         PR debug/66301
8505         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
8506         NULL instead of calling dump_enabled_p.
8508 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8510         * config/aarch64/aarch64.opt: (override): New.
8511         * doc/invoke.texi (override): Document.
8512         * config/aarch64/aarch64.c (aarch64_flag_desc): New
8513         (aarch64_fusible_pairs): Likewise.
8514         (aarch64_tuning_flags): Likewise.
8515         (aarch64_tuning_override_function): Likewise.
8516         (aarch64_tuning_override_functions): Likewise.
8517         (aarch64_parse_one_option_token): Likewise.
8518         (aarch64_parse_boolean_options): Likewise.
8519         (aarch64_parse_fuse_string): Likewise.
8520         (aarch64_parse_tune_string): Likewise.
8521         (aarch64_parse_one_override_token): Likewise.
8522         (aarch64_parse_override_string): Likewise.
8523         (aarch64_override_options): Parse the -override string if it
8524         is present.
8526 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8528         * config/aarch64/aarch64-protos.h (tune_params): Remove
8529         const from members.
8530         (aarch64_tune_params): Remove const, change to no longer be
8531         a pointer.
8532         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
8533         change to no longer be a pointer, initialize to generic_tunings.
8534         (aarch64_min_divisions_for_recip_mul): Change dereference of
8535         aarch64_tune_params to member access.
8536         (aarch64_reassociation_width): Likewise.
8537         (aarch64_rtx_mult_cost): Likewise.
8538         (aarch64_address_cost): Likewise.
8539         (aarch64_branch_cost): Likewise.
8540         (aarch64_rtx_costs): Likewise.
8541         (aarch64_register_move_cost): Likewise.
8542         (aarch64_memory_move_cost): Likewise.
8543         (aarch64_sched_issue_rate): Likewise.
8544         (aarch64_builtin_vectorization_cost): Likewise.
8545         (aarch64_override_options): Take a copy of the selected tuning
8546         struct in to aarch64_tune_params, rather than just setting
8547         a pointer, change dereferences of aarch64_tune_params to member
8548         accesses.
8549         (aarch64_override_options_after_change): Change dereferences of
8550         aarch64_tune_params to member access.
8551         (aarch64_macro_fusion_p): Likewise.
8552         (aarch_macro_fusion_pair_p): Likewise.
8553         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
8555 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8557         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
8558         (aarch64_tune_flags): Likewise.
8559         (AARCH64_TUNE_FMA_STEERING): Likewise.
8560         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
8561         to AARCH64_FL_USE_FMA_STEERING_PASS.
8562         (cortex-a57.cortex-a53): Likewise.
8563         (cortex-a72): Use cortexa72_tunings.
8564         (cortex-a72.cortex-a53): Likewise.
8565         (exynos-m1): Likewise.
8566         * config/aarch64/aarch64-protos.h (tune_params): Add
8567         a field: extra_tuning_flags.
8568         * config/aarch64/aarch64-tuning-flags.def: New.
8569         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
8570         (aarch64_extra_tuning_flags): Likewise.
8571         (aarch64_tune_params): Declare here.
8572         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
8573         (cortexa53_tunings): Likewise.
8574         (cortexa57_tunings): Likewise.
8575         (thunderx_tunings): Likewise.
8576         (xgene1_tunings): Likewise.
8577         (cortexa72_tunings): New.
8578         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
8579          (gate): Check against aarch64_tune_params.
8580         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
8581         aarch64-protos.h.
8583 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8585         * config/aarch64/aarch64-fusion-pairs.def: New.
8586         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
8587         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
8588         aarch64_fusion_pairs.
8589         (AARCH64_FUSE_MOV_MOVK): Likewise.
8590         (AARCH64_FUSE_ADRP_ADD): Likewise.
8591         (AARCH64_FUSE_MOVK_MOVK): Likewise.
8592         (AARCH64_FUSE_ADRP_LDR): Likewise.
8593         (AARCH64_FUSE_CMP_BRANCH): Likewise.
8595 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8597         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
8598         SYMBOL_SMALL_GOT_28K.
8599         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
8600         relocation modifiers.
8601         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
8602         (ldr_got_small_28k_<mode>): New.
8603         (ldr_got_small_28k_sidi): New.
8604         * config/aarch64/iterators.md (got_modifier): New mode iterator.
8605         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
8606         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8607         SYMBOL_SMALL_GOT_28K.
8608         (aarch64_rtx_costs): Add costs for new instruction sequences.
8609         (initialize_aarch64_code_model): Initialize new model.
8610         (aarch64_classify_symbol): Recognize new model and new symbol classification.
8611         (aarch64_asm_preferred_eh_data_format): Support new model.
8612         (aarch64_load_symref_appropriately): Generate new instruction
8613         sequences for -fpic.
8614         (TARGET_USE_PSEUDO_PIC_REG): New definition.
8615         (aarch64_use_pseudo_pic_reg): New function.
8617 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8619         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8620         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
8621         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
8622         (aarch64_expand_mov_immediate): Ditto.
8623         (aarch64_print_operand): Ditto.
8624         (aarch64_classify_symbol): Ditto.
8626 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
8628         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
8630 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
8632         PR bootstrap/66638
8633         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
8634         assertion failed.  Remove assertion itself.
8636 2015-06-26  Richard Biener  <rguenther@suse.de>
8638         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
8639         and -A CMP CST -> A CMP -CST which is redundant with a pattern
8640         in match.pd.
8641         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
8642         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
8643         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
8644         * match.pd: ... patterns here.
8646 2015-06-26  Marek Polacek  <polacek@redhat.com>
8648         * match.pd ((x | y) & ~(x & y) -> x ^ y,
8649         (x | y) & (~x ^ y) -> x & y): New patterns.
8651 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8653         * rtl.h (emit): Add an optional boolean parameter to control
8654         whether barriers are emitted.
8655         * emit-rtl.c (emit): Likewise.
8656         * gensupport.c (get_emit_function): Return null rather than "emit".
8657         * genemit.c (gen_emit_seq): Handle the null return value.
8658         Don't emit barriers after the final instruction in the sequence.
8659         * gentarget-def.c (main): Don't emit barriers after the instruction.
8661 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8663         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
8664         TARGET_UNIFIED_ASM.
8666 2015-06-26  Richard Biener  <rguenther@suse.de>
8668         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
8670 2015-06-26  Richard Biener  <rguenther@suse.de>
8672         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
8673         irrespective on whether the inner operation has a single use
8674         of both off are constant.
8676 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
8677             Segher Boessenkool  <segher@kernel.crashing.org>
8679         PR target/66412
8680         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
8681         before doing PUT_MODE or PUT_CODE on operands to avoid
8682         in-place RTX modification.
8684 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8686         * gentarget-def.c (def_target_insn): Cast return of strtol to
8687         unsigned int.
8689 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8691         * gimple.h (gimple_call_set_fn): Move inline function.
8692         * gimple.c (gimple_call_set_fn): Relocate here.
8694 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
8696         PR target/65979
8697         PR target/66611
8698         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
8699         the replacement insn will work.
8701 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8703         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
8704         by default.
8706 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8708         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
8709         * cgraph.h: Include ipa-ref.h and plugin-api.h.
8710         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
8711         (symtab_node::address_can_be_compared_p): Move function.
8712         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
8713         definition here.
8714         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
8715         * auto-profile.c: Likewise.
8716         * bb-reorder.c: Likewise.
8717         * builtins.c: Likewise.
8718         * calls.c: Likewise.
8719         * cfgexpand.c: Likewise.
8720         * cgraphbuild.c: Likewise.
8721         * cgraphclones.c: Likewise.
8722         * cgraphunit.c: Likewise.
8723         * combine.c: Likewise.
8724         * coverage.c: Likewise.
8725         * data-streamer-in.c: Likewise.
8726         * data-streamer-out.c: Likewise.
8727         * data-streamer.c: Likewise.
8728         * dbxout.c: Likewise.
8729         * dwarf2out.c: Likewise.
8730         * except.c: Likewise.
8731         * expr.c: Likewise.
8732         * final.c: Likewise.
8733         * fold-const.c: Likewise.
8734         * ggc-page.c: Likewise.
8735         * gimple-fold.c: Likewise.
8736         * gimple-iterator.c: Likewise.
8737         * gimple-pretty-print.c: Likewise.
8738         * gimple-streamer-in.c: Likewise.
8739         * gimple-streamer-out.c: Likewise.
8740         * gimple.c: Likewise.
8741         * gimplify.c: Likewise.
8742         * ipa-chkp.c: Likewise.
8743         * ipa-comdats.c: Likewise.
8744         * ipa-cp.c: Likewise.
8745         * ipa-devirt.c: Likewise.
8746         * ipa-icf-gimple.c: Likewise.
8747         * ipa-icf.c: Likewise.
8748         * ipa-inline-analysis.c: Likewise.
8749         * ipa-inline-transform.c: Likewise.
8750         * ipa-inline.c: Likewise.
8751         * ipa-polymorphic-call.c: Likewise.
8752         * ipa-profile.c: Likewise.
8753         * ipa-prop.c: Likewise.
8754         * ipa-pure-const.c: Likewise.
8755         * ipa-ref.c: Likewise.
8756         * ipa-reference.c: Likewise.
8757         * ipa-split.c: Likewise.
8758         * ipa-utils.c: Likewise.
8759         * ipa-visibility.c: Likewise.
8760         * ipa.c: Likewise.
8761         * langhooks.c: Likewise.
8762         * lto-cgraph.c: Likewise.
8763         * lto-compress.c: Likewise.
8764         * lto-opts.c: Likewise.
8765         * lto-section-in.c: Likewise.
8766         * lto-section-out.c: Likewise.
8767         * lto-streamer-in.c: Likewise.
8768         * lto-streamer-out.c: Likewise.
8769         * lto-streamer.c: Likewise.
8770         * omp-low.c: Likewise.
8771         * opts-global.c: Likewise.
8772         * passes.c: Likewise.
8773         * predict.c: Likewise.
8774         * print-tree.c: Likewise.
8775         * profile.c: Likewise.
8776         * ree.c: Likewise.
8777         * sanopt.c: Likewise.
8778         * stor-layout.c: Likewise.
8779         * symtab.c: Likewise.
8780         * toplev.c: Likewise.
8781         * trans-mem.c: Likewise.
8782         * tree-cfg.c: Likewise.
8783         * tree-chkp.c: Likewise.
8784         * tree-eh.c: Likewise.
8785         * tree-emutls.c: Likewise.
8786         * tree-inline.c: Likewise.
8787         * tree-nested.c: Likewise.
8788         * tree-parloops.c: Likewise.
8789         * tree-pretty-print.c: Likewise.
8790         * tree-profile.c: Likewise.
8791         * tree-sra.c: Likewise.
8792         * tree-ssa-alias.c: Likewise.
8793         * tree-ssa-live.c: Likewise.
8794         * tree-ssa-loop-ivcanon.c: Likewise.
8795         * tree-ssa-loop-ivopts.c: Likewise.
8796         * tree-ssa-pre.c: Likewise.
8797         * tree-ssa-sccvn.c: Likewise.
8798         * tree-ssa-strlen.c: Likewise.
8799         * tree-ssa-structalias.c: Likewise.
8800         * tree-streamer-in.c: Likewise.
8801         * tree-streamer-out.c: Likewise.
8802         * tree-streamer.c: Likewise.
8803         * tree-switch-conversion.c: Likewise.
8804         * tree-tailcall.c: Likewise.
8805         * tree-vect-data-refs.c: Likewise.
8806         * tree-vect-stmts.c: Likewise.
8807         * tree-vectorizer.c: Likewise.
8808         * tree.c: Likewise.
8809         * tsan.c: Likewise.
8810         * ubsan.c: Likewise.
8811         * value-prof.c: Likewise.
8812         * varasm.c: Likewise.
8813         * varpool.c: Likewise.
8814         * config/arm/arm.c: Likewise.
8815         * config/bfin/bfin.c: Likewise.
8816         * config/c6x/c6x.c: Likewise.
8817         * config/cris/cris.c: Likewise.
8818         * config/darwin-c.c: Likewise.
8819         * config/darwin.c: Likewise.
8820         * config/i386/i386.c: Likewise.
8821         * config/i386/winnt.c: Likewise.
8822         * config/microblaze/microblaze.c: Likewise.
8823         * config/mips/mips.c: Likewise.
8824         * config/rs6000/rs6000.c: Likewise.
8825         * config/rx/rx.c: Likewise.
8826         * config/s390/s390.c: Likewise.
8827         * config/tilegx/mul-tables.c: Likewise.
8829 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8831         * config/aarch64/aarch64.c, config/alpha/alpha.c,
8832         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
8833         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
8834         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
8835         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8836         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8837         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8838         config/microblaze/microblaze.c, config/mips/mips.c,
8839         config/mmix/mmix.c, config/mn10300/mn10300.c,
8840         config/moxie/moxie.c, config/msp430/msp430.c,
8841         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8842         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8843         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8844         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8845         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8846         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8847         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
8848         target-def.h include.
8849         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
8851 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8853         * Makefile.in (TARGET_DEF): Add target-insns.def.
8854         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
8855         (build/gentarget-def.o): New rule.
8856         (genprogrtl): Add target-def.
8857         * target-insns.def, gentarget-def.c: New files.
8858         * target.def: Add targetm.have_* and targetm.gen_* hooks,
8859         based on the contents of target-insns.def.
8860         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
8861         (HAVE_return, gen_return): Delete.
8862         * target-def.h: Include insn-target-def.h.
8863         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
8864         instead of direct calls.  Rely on them to do the appropriate assertions.
8865         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
8866         (convert_jumps_to_returns): Use targetm interface instead of
8867         direct calls.
8868         (thread_prologue_and_epilogue_insns): Likewise.
8869         * reorg.c (find_end_label, dbr_schedule): Likewise.
8870         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
8871         * shrink-wrap.c (convert_to_simple_return): Likewise.
8872         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
8874 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8876         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
8877         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8878         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
8879         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8880         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8881         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8882         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8883         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
8884         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
8885         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8886         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8887         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8888         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8889         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8890         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8891         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
8892         includes to end.
8894 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8896         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
8897         (unbounded_int_hashmap_traits::key_type): Likewise.
8898         * hash-map.h (hash_map): Get the key type from the traits.
8899         * hash-traits.h (default_hash_traits): By default, inherit from the
8900         template parameter.
8901         * alias.c (alias_set_traits): Delete.
8902         (alias_set_entry_d::children): Use alias_set_hash as the first
8903         template parameter.
8904         (record_alias_subset): Update accordingly.
8905         * except.c (tree_hash_traits): Delete.
8906         (type_to_runtime_map): Use tree_hash as the first template parameter.
8907         (init_eh): Update accordingly.
8908         * genmatch.c (capture_id_map_hasher): Delete.
8909         (cid_map_t): Use nofree_string_hash as first template parameter.
8910         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
8911         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8912         Use symbol_compare_hash as the first template parameter in
8913         subdivide_hash_map.
8914         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
8915         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
8916         template parameter.
8917         * passes.c (pass_registry_hasher): Delete.
8918         (name_to_pass_map): Use nofree_string_hash as the first template
8919         parameter.
8920         (register_pass_name): Update accordingly.
8921         * sanopt.c (sanopt_tree_map_traits): Delete.
8922         (sanopt_tree_triplet_map_traits): Delete.
8923         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
8924         template parameter.
8925         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
8926         the first template parameter.
8927         * sese.c (rename_map_hasher): Delete.
8928         (rename_map_type): Use tree_ssa_name_hash as the first template
8929         parameter.
8930         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
8931         (function_summary::m_map): Use map_hash as the first template
8932         parameter.
8933         (function_summary::release): Update accordingly.
8934         * tree-if-conv.c (phi_args_hash_traits): Delete.
8935         (predicate_scalar_phi): Use tree_operand_hash as the first template
8936         parameter to phi_arg_map.
8937         * tree-inline.h (dependence_hasher): Delete.
8938         (copy_body_data::dependence_map): Use dependence_hash as the first
8939         template parameter.
8940         * tree-inline.c (remap_dependence_clique): Update accordingly.
8941         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
8942         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
8943         parameter.
8944         (addr_stridxptr): Update accordingly.
8945         * value-prof.c (profile_id_traits): Delete.
8946         (cgraph_node_map): Use profile_id_hash as the first template
8947         parameter.
8948         (init_node_map): Update accordingly.
8949         * config/alpha/alpha.c (string_traits): Delete.
8950         (machine_function::links): Use nofree_string_hash as the first
8951         template parameter.
8952         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
8953         * config/m32c/m32c.c (pragma_traits): Delete.
8954         (pragma_htab): Use nofree_string_hash as the first template parameter.
8955         (m32c_note_pragma_address): Update accordingly.
8956         * config/mep/mep.c (pragma_traits): Delete.
8957         (pragma_htab): Use nofree_string_hash as the first template parameter.
8958         (mep_note_pragma_flag): Update accordingly.
8959         * config/mips/mips.c (mips16_flip_traits): Delete.
8960         (mflip_mips16_htab): Use nofree_string_hash as the first template
8961         parameter.
8962         (mflip_mips16_use_mips16_p): Update accordingly.
8963         (local_alias_traits): Delete.
8964         (mips16_local_aliases): Use nofree_string_hash as the first template
8965         parameter.
8966         (mips16_local_alias): Update accordingly.
8968 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8970         * hash-map-traits.h (default_hashmap_traits): Delete.
8972 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8974         * hash-map-traits.h (unbounded_hashmap_traits): New class.
8975         (unbounded_int_hashmap_traits): Likewise.
8976         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
8978 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8980         * ipa-icf.h (symbol_compare_hash): New class.
8981         (symbol_compare_hashmap_traits): Use it.
8982         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
8983         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
8984         (mem_alloc_description::reverse_mem_map_t): Remove redundant
8985         default_hashmap_traits.
8986         * sanopt.c (sanopt_tree_triplet_hash): New class.
8987         (sanopt_tree_triplet_map_traits): Use it.
8989 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8991         * gengtype-parse.c (require_template_declaration): Allow '+' in
8992         template parameters.  Consolidate cases.
8993         * hash-traits.h (int_hash): New class.
8994         * alias.c (alias_set_hash): New structure.
8995         (alias_set_traits): Use it.
8996         * symbol-summary.h (function_summary::map_hash): New class.
8997         (function_summary::summary_hashmap_traits): Use it.
8998         * tree-inline.h (dependence_hash): New class.
8999         (dependence_hasher): Use it.
9000         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
9001         * value-prof.c (profile_id_hash): New class.
9002         (profile_id_traits): Use it.
9004 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9006         * config/mips/mips.c (mips16_flip_traits): Use it.
9007         (local_alias_traits, mips16_local_aliases): Convert from a map of
9008         rtxes to a map of symbol names.
9009         (mips16_local_alias): Update accordingly.
9011 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9013         * hash-traits.h (string_hash, nofree_string_hash): New classes.
9014         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
9015         * passes.c (pass_registry_hasher): Likewise.
9016         * config/alpha/alpha.c (string_traits): Likewise.
9017         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
9018         * config/m32c/m32c.c (pragma_traits): Likewise.
9019         * config/mep/mep.c (pragma_traits): Likewise.
9021 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9023         * tree-hash-traits.h (tree_hash): New class.
9024         * except.c: Include tree-hash-traits.h.
9025         (tree_hash_traits): Use tree_hash.
9027 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9029         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
9030         * sese.c: Include tree-hash-traits.h.
9031         (rename_map_hasher): Use tree_ssa_name_hasher.
9033 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9035         * tree-hash-traits.h (tree_decl_hash): New class.
9036         * tree-ssa-strlen.c: Include tree-hash-traits.h.
9037         (stridxlist_hash_traits): Use tree_decl_hash.
9039 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9041         * tree-hash-traits.h: New file.
9042         (tree_operand_hash): New class.
9043         * sanopt.c: Include tree-hash-traits.h.
9044         (sanopt_tree_map_traits): Use tree_operand_hash.
9045         * tree-if-conv.c: Include tree-hash-traits.h.
9046         (phi_args_hash_traits): Use tree_operand_hash.
9047         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
9048         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
9050 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9052         * hash-map-traits.h: Include hash-traits.h.
9053         (simple_hashmap_traits): New class.
9054         * mem-stats.h (hash_map): Change the default traits to
9055         simple_hashmap_traits<default_hash_traits<Key> >.
9057 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9059         * hash-table.h: Update comments.
9061 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9063         * hash-traits.h (default_hash_traits): New structure.
9064         * hash-set.h (default_hashset_traits): Delete.
9065         (hash_set): Use default_hash_traits<Key> instead of
9066         default_hashset_traits.  Delete hash_entry type and use Key directly.
9067         * ipa-devirt.c (pair_traits): Delete.
9068         (default_hash_traits <type_pair>): Override.
9069         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
9070         (odr_types_equivalent_p, add_type_duplicate): Likewise.
9072 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9074         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
9076 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9078         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
9079         (has_is_empty, is_empty_helper): Delete.
9080         (has_mark_deleted, mark_deleted_helper): Delete.
9081         (has_mark_empty, mark_empty_helper): Delete.
9082         (hash_table::is_deleted): Call the Descriptor unconditionally.
9083         (hash_table::is_empty): Likewise.
9084         (hash_table::mark_deleted): Likewise.
9085         (hash_table::mark_empty): Likewise.
9087 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9089         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
9090         redundant typedefs and members.
9091         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
9092         redundant typedefs.
9093         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
9094         * ipa-devirt.c (odr_name_hasher): Likewise.
9095         (polymorphic_call_target_hasher): Likewise.
9096         * ira-costs.c (cost_classes_hasher): Likewise.
9097         * statistics.c (stats_counter_hasher): Likewise.
9098         * trans-mem.c (log_entry_hasher): Likewise.
9099         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9100         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
9101         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
9102         * var-tracking.c (variable_hasher): Likewise.
9103         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
9104         Remove redundant typedefs and members.
9106 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9108         * hash-traits.h (ggc_cache_hasher): Rename to...
9109         (ggc_cache_remove): ...this and remove typedefs.
9110         (ggc_cache_ptr_hash): New class.
9111         * hash-table.h: Update commentary.
9112         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
9113         rather than ggc_cache_hasher.
9114         (const_wide_int_hasher, reg_attr_hasher): Likewise.
9115         (const_double_hasher, const_fixed_hasher): Likewise.
9116         * function.c (insn_cache_hasher): Likewise.
9117         * trans-mem.c (tm_wrapper_hasher): Likewise.
9118         * tree.h (tree_decl_map_cache_hasher): Likewise.
9119         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
9120         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
9121         * ubsan.c (tree_type_map_cache_hasher): Likewise.
9122         * varasm.c (tm_clone_hasher): Likewise.
9123         * config/i386/i386.c (dllimport_hasher): Likewise.
9124         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
9125         (tree_hasher): Likewise.
9127 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9129         * hash-traits.h (ggc_hasher): Rename to...
9130         (ggc_remover): ...this and remove typedefs.
9131         (ggc_cache_hasher): Update accordingly.  Add typedefs.
9132         (ggc_ptr_hash): New class.
9133         * hash-table.h: Update comment.
9134         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
9135         ggc_hasher.
9136         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
9137         (tree_descriptor_hasher): Likewise.
9138         * cgraph.c (function_version_hasher): Likewise.
9139         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
9140         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
9141         (dw_loc_list_hasher, addr_hasher): Likewise.
9142         * function.h (used_type_hasher): Likewise.
9143         * function.c (temp_address_hasher): Likewise.
9144         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
9145         * libfuncs.h (libfunc_hasher): Likewise.
9146         * lto-streamer.h (decl_state_hasher): Likewise.
9147         * optabs.c (libfunc_decl_hasher): Likewise.
9148         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
9149         * varasm.c (section_hasher, object_block_hasher): Likewise.
9150         (const_rtx_desc_hasher): Likewise.
9151         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
9152         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
9154 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9156         * hash-traits.h (free_ptr_hash): New class.
9157         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
9158         rather than typed_free_remove.  Remove redudant typedefs.
9159         (external_ref_hasher): Likewise.
9160         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
9161         (ehspec_hasher): Likewise.
9162         * ggc-common.c (saving_hasher): Likewise.
9163         * gimplify.c (gimplify_hasher): Likewise.
9164         * haifa-sched.c (delay_i2_hasher): Likewise.
9165         * loop-invariant.c (invariant_expr_hasher): Likewise.
9166         * loop-iv.c (biv_entry_hasher): Likewise.
9167         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
9168         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
9169         * tree-cfg.c (locus_discrim_hasher): Likewise.
9170         * tree-eh.c (finally_tree_hasher): Likewise.
9171         * tree-into-ssa.c (var_info_hasher): Likewise.
9172         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
9173         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
9174         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
9175         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
9176         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
9177         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
9178         (shared_bitmap_hasher): Likewise.
9179         * tree-ssa-threadupdate.c (redirection_data): Likewise.
9180         * tree-vectorizer.h (peel_info_hasher): Likewise.
9181         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
9182         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
9184 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9186         * hash-table.h: Update comments.
9187         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
9188         (nofree_ptr_hash): New class.
9189         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
9190         than typed_noop_remove.  Remove redudant typedefs.
9191         * attribs.c (attribute_hasher): Likewise.
9192         * cfg.c (bb_copy_hasher): Likewise.
9193         * cselib.c (cselib_hasher): Likewise.
9194         * dse.c (invariant_group_base_hasher): Likewise.
9195         * dwarf2cfi.c (trace_info_hasher): Likewise.
9196         * dwarf2out.c (macinfo_entry_hasher): Likewise.
9197         (comdat_type_hasher, loc_list_hasher): Likewise.
9198         * gcse.c (pre_ldst_expr_hasher): Likewise.
9199         * genmatch.c (id_base): Likewise.
9200         * genrecog.c (test_pattern_hasher): Likewise.
9201         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
9202         * haifa-sched.c (delay_i1_hasher): Likewise.
9203         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
9204         * ipa-icf.h (congruence_class_group_hash): Likewise.
9205         * ipa-profile.c (histogram_hash): Likewise.
9206         * ira-color.c (allocno_hard_regs_hasher): Likewise.
9207         * lto-streamer.h (string_slot_hasher): Likewise.
9208         * lto-streamer.c (tree_entry_hasher): Likewise.
9209         * plugin.c (event_hasher): Likewise.
9210         * postreload-gcse.c (expr_hasher): Likewise.
9211         * store-motion.c (st_expr_hasher): Likewise.
9212         * tree-sra.c (uid_decl_hasher): Likewise.
9213         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
9214         (ssa_name_var_hash): Likewise.
9215         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
9216         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
9217         * tree-ssa-pre.c (pre_expr_d): Likewise.
9218         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
9219         * vtable-verify.h (registration_hasher): Likewise.
9220         * vtable-verify.c (vtbl_map_hasher): Likewise.
9221         * config/arm/arm.c (libcall_hasher): Likewise.
9222         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
9223         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
9224         * config/sol2.c (comdat_entry_hasher): Likewise.
9225         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
9226         (print_fold_checksum, fold_checksum_tree): Likewise.
9227         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
9228         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
9229         (fold_build_call_array_loc): Likewise.
9230         * tree-ssa-ccp.c (gimple_htab): Likewise.
9231         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
9232         rather than pointer_type.
9234 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9236         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
9237         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
9239 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9241         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
9242         (ggc_hasher::ggc_mx): Likewise.
9243         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
9244         that duplicate ggc_hasher ones.
9246 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9248         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
9249         (gt_cleare_cache): Check here for deleted and empty entries.
9250         Replace handle_cache_entry with a call to keep_cache_entry.
9251         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
9252         (ggc_cache_hasher::keep_cache_entry): New function.
9253         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
9254         (tm_wrapper_hasher::keep_cache_entry): New function.
9255         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
9256         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9257         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
9258         (type_cache_hasher::keep_cache_entry): New function.
9259         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
9260         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9261         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
9262         (tree_type_map_cache_hasher::keep_cache_entry): New function.
9263         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
9264         (tm_clone_hasher::keep_cache_entry): New function.
9265         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
9266         (dllimport_hasher::keep_cache_entry): New function.
9268 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9270         * hash-table.h: Include hash-traits.h.
9271         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
9272         (ggc_cache_hasher): Move to...
9273         * hash-traits.h: ...this new file.
9275 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9277         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
9278         struct cl_optimization.
9279         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
9280         * tree.c (make_node_stat): Allocate cl_optimization struct.
9281         (copy_node_stat): Allocate and copy cl_optimization struct.
9283 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9285         * function.h (struct incoming_args): Move struct.
9286         (pass_by_reference, reference_callee_copied): Remove prototypes.
9287         * emit-rtl.h (struct incoming_args): Relocate struct here.
9288         * calls.h (pass_by_reference, reference_callee_copied): Relocate
9289         prototypes here.
9290         * function.c (pass_by_reference, reference_callee_copied): Move.
9291         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
9292         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
9293         * ipa-chkp.c: Include calls.h.
9295 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
9297         * alias.h (alias_set_type): Move typedef.
9298         * coretypes.h (alias_set_type): Relocate typedef here.
9299         * rtl.h: Don't include alias.h.
9301 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9303         * cgraph.h (cgraph_rtl_info): Move to rtl.h
9304         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
9305         and instance.
9306         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
9307         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
9308         doesn't exist.
9309         * calls.c: Include hard-reg-set.h before rtl.h.
9310         * ira.c: Likewise.
9312 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9313             Vladimir Makarov  <vmakarov@redhat.com>
9315         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
9316         Add assert.
9318 2015-06-25  Richard Biener  <rguenther@suse.de>
9320         * fold-const.c (fold_binary_loc): Move simplification of
9321         (X <<>> C1) & C2 ...
9322         * match.pd: ... here.
9324 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
9326         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
9328 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9330         * match.pd: Add patterns for vec_conds between 1 and 0.
9332 2015-06-25  Richard Biener  <rguenther@suse.de>
9334         * tree-vect-stmts.c (vectorizable_conversion): Do not set
9335         STMT_VINFO_VEC_STMT for SLP.
9336         (vectorizable_store): Likewise.
9337         (vectorizable_load): Likewise.
9338         (vect_transform_stmt): Catch SLP vectorization clobbering
9339         STMT_VINFO_VEC_STMT.
9341 2015-06-25  Richard Biener  <rguenther@suse.de>
9343         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
9344         dumping.
9345         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
9346         cleanup resulting dead code and parameters.
9347         (vect_transform_slp_perm_load): Adjust.
9349 2015-06-25  Nick Clifton  <nickc@redhat.com>
9351         * config/bfin/bfin.c (bfin_expand_prologue): Set
9352         current_function_static_stack_size if flag_stack_usage_info is set.
9353         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9354         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
9355         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9356         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
9358 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9360         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
9361         comment that the generated IV is unsigned.
9363 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9365         PR target/29693
9366         * config/arm/arm.c (arm_dbx_register_number): Return
9367         DWARF_FRAME_REGISTERS by default.
9369 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9371         * dominance.c (calculate_dominance_info): Fix verify_dominators call
9372         argument.  Call verify_dominator when reusing dominator info.
9374 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9376         PR target/66563
9377         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
9378         an additional element of the unspec vector.  Modify indices
9379         of operands.
9380         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
9381         * config/sh/sh.c (prepare_move_operands): Pass incremented
9382         const_int to gen_GOTaddr2picreg.
9383         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
9385 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9387         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
9388         Condition on TARGET_FLOAT.
9390 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9392         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
9393         and (no)crypto.
9395 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9397         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
9399         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
9400         aarch64_err_no_fpadvsimd.
9402         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
9403         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
9404         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
9405         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
9406         Turn error into assert, test TARGET_FLOAT.
9407         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
9408         TARGET_FLOAT.
9410 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
9412         PR debug/66482
9413         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
9415 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
9417         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
9419 2015-06-24 Renlin Li <renlin.li@arm.com>
9421         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
9422         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
9424 2015-06-24  Richard Biener  <rguenther@suse.de>
9426         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
9427         (main): Likewise.
9428         (lower_opt_convert): Support lowering of conditional view_convert.
9429         (parser::parse_operation): Likewise.
9430         (parser::parse_for): Likewise.
9432 2015-06-24  Renlin Li  <renlin.li@arm.com>
9434         * varasm.c (emit_local): Use unsigned int for align variable.
9436 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9438         PR target/63408
9439         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
9440         for negative numbers.
9442 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9444         PR rtl-optimization/66306
9445         * reload.c (find_reloads): Swap the match_dup info for
9446         commutative operands.
9448 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9450         * config/s390/vx-builtins.md
9451         ("vec_scatter_element<mode>_<non_vec_int>")
9452         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
9453         attribute with bhfgq.
9455 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9457         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
9459 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9461         * config/s390/s390-builtin-types.def: Add flag to indicate the
9462         options under which the function type is needed.
9463         * config/s390/s390-builtins.def: Add flag to indicate the options
9464         under which the builtin is enabled.
9465         * config/s390/s390-builtins.h: Add flags parameter to macro
9466         definitions.
9467         (bflags_for_builtin): New function.
9468         (flags_for_builtin): Renamed to ...
9469         (opflags_for_builtin): ... this.
9470         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
9471         flags_for_builtin to bflags_for_builtin and
9472         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
9473         * config/s390/s390.c: Add initialization of bflags_builtin and
9474         opflags_builtin arrays.
9475         Remove code for flags_builtin.
9476         (s390_init_builtins): Only create builtin function types if one of
9477         their flags is active.
9478         Only create builtins if all of their flags are active.
9479         (s390_expand_builtin): Rename flags_for_builtin to
9480         opflags_for_builtin.
9482 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9484         * config/s390/vecintrin.h: Remove internal builtins.
9486 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9488         * config/s390/s390.c (s390_secondary_reload): Fix check for
9489         GENERAL_REGS register class.
9491 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9493         * config/s390/s390.c (s390_support_vector_misalignment): Call
9494         default implementation for !TARGET_VX.
9496 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9498         * config/s390/s390.c (s390_legitimate_constant_p): Add
9499         TARGET_VX check.
9501 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9503         * config/s390/s390.c (s390_vector_abi): New variable definition.
9504         (s390_check_type_for_vector_abi): New function.
9505         (TARGET_ASM_FILE_END): New macro definition.
9506         (s390_asm_file_end): New function.
9507         (s390_function_arg): Call s390_check_type_for_vector_abi.
9508         (s390_gimplify_va_arg): Likewise.
9509         * configure: Regenerate.
9510         * configure.ac: Check for .gnu_attribute Binutils feature.
9512 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
9514         PR target/65803
9515         * config/bfin/bfin.c (hwloop_optimize): Initialize
9516         JUMP_LABEL for newly created jump.
9518 2015-06-23  Tristan Gingold  <gingold@adacore.com>
9520         * collect-utils.c (collect_wait): Unlink the response file here
9521         instead of...
9522         (do_wait): ...here.
9523         (utils_cleanup): ...and here.
9525 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
9527         * df-scan.c: Don't include target-def.h.
9528         * targhooks.c: Likewise.
9529         * config/arm/arm-c.c: Likewise.
9530         * config/i386/i386-c.c: Likewise.
9531         * config/nds32/nds32-cost.c: Likewise.
9532         * config/nds32/nds32-fp-as-gp.c: Likewise.
9533         * config/nds32/nds32-intrinsic.c: Likewise.
9534         * config/nds32/nds32-isr.c: Likewise.
9535         * config/nds32/nds32-md-auxiliary.c: Likewise.
9536         * config/nds32/nds32-memory-manipulation.c: Likewise.
9537         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9538         * config/nds32/nds32-predicates.c: Likewise.
9540 2015-06-23  Richard Biener  <rguenther@suse.de>
9542         PR tree-optimization/66636
9543         * tree-vect-stmts.c (vectorizable_store): Properly compute the
9544         def type for further defs for strided stores.
9546 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
9548         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
9549         conditional selects.
9550         (setcc_int<mode>, setcc_float<mode>): Reformat.
9552 2015-06-23  Marek Polacek  <polacek@redhat.com>
9554         * match.pd ((x + y) - (x | y) -> x & y,
9555         (x + y) - (x & y) -> x | y): New patterns.
9557 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
9559         PR 65711
9560         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
9561         '-dynamic-linker' within %{!shared: ...}.
9563 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
9565         PR target/66560
9566         * config/i386/predicates.md (addsub_vm_operator): New predicate.
9567         (addsub_vs_operator): Ditto.
9568         (addsub_vs_parallel): Ditto.
9569         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
9570         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
9571         Put minus RTX before plus and adjust vec_merge selector.
9572         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
9573         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
9574         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
9575         (addsub vec_merge splitters): New combiner splitters.
9576         (addsub vec_select/vec_concat splitters): Ditto.
9578 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
9580         PR tree-optimization/66449
9581         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
9582         POINTER_PLUS_EXPR for pointers.
9584 2015-06-23  Alan Modra  <amodra@gmail.com>
9586         * rtlanal.c (commutative_operand_precedence): Correct comments.
9587         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
9588         declaration.  Return an int.  Distinguish REG,REG return from
9589         others.
9590         (struct simplify_plus_minus_op_data): Make local to function.
9591         (simplify_plus_minus): Don't set canonicalized if merely sorting
9592         registers.  Avoid packing ops if nothing changes.  White space fixes.
9594 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
9596         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
9597         -fdump-ada-spec is passed but not if -fsyntax-only is.
9599 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
9601         PR bootstrap/63740
9602         * lra-lives.c (process_bb_lives): Check insn copying the same
9603         reload pseudo and don't create a copy for it.
9605 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9607         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
9608         for cond_stmt.
9610 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9612         * builtins.def (DEF_GOMP_BUILTIN): Test
9613         'flag_tree_parallelize_loops > 1' instead of
9614         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
9616 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9618         * dominance.c (calculate_dominance_info): Verify dominators if
9619         early-out.
9621 2015-06-22  Marek Polacek  <polacek@redhat.com>
9623         * match.pd ((x ^ y) ^ (x | y) -> x & y,
9624         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
9625         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
9626         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
9628 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
9630         PR target/65871
9631         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
9632         cost of embedded comparison.
9634 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9636         PR target/65914
9637         * config/rs6000/predicates.md (altivec_register_operand): Permit
9638         virtual stack registers.
9639         (vsx_register_operand): Likewise.
9640         (vfloat_operand): Likewise.
9641         (vint_operand): Likewise.
9642         (vlogical_operand): Likewise.
9644 2015-06-22  Richard Biener  <rguenther@suse.de>
9646         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
9647         and single_scalar_iteration_cost members.
9648         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
9649         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
9650         (vect_get_single_scalar_iteration_cost): Remove.
9651         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9652         Use LOOP_VINFO_SCALAR_ITERATION_COST.
9653         * tree-vect-loop.c (destroy_loop_vec_info): Free
9654         scalar_cost_vec.
9655         (vect_get_single_scalar_iteration_cost): Compute result into
9656         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
9657         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
9658         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
9659         (vect_estimate_min_profitable_iters): Use them.
9661 2015-06-22  Christian Bruel  <christian.bruel@st.com>
9663         PR target/52144
9664         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
9665         (TARGET_INSERT_ATTRIBUTES): Define.
9666         (thumb_flipper): New var.
9667         * config/arm/arm.opt (-mflip-thumb): New switch.
9669 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9670             Martin Liska  <mliska@suse.cz>
9672         PR ipa/65908
9673         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
9674         construction of arg_types.
9675         (sem_function::sem_function): Likewise.
9676         (sem_function::~sem_function): Remove destruction of arg_types.
9677         (sem_function::compatible_parm_types_p): New function.
9678         (sem_function::equals_wpa): Reorg matching of return values
9679         and parameter types.
9680         (sem_function::equals_private): Reorg mathcing of argument types.
9681         (sem_function::parse_tree_args): Remove.
9682         * ipa-icf.h (init_wpa): Do not call it.
9683         (parse_tree_args): Remove.
9684         (compatible_parm_types_p): Declare.
9685         (result_type): Remove.
9686         (arg_types): Remove.
9688 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9690         PR ipa/66351
9691         * ipa-polymorphic-call.c
9692         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
9693         initializing alias oracle; fix formating; set base_alias_set if it
9694         is known.
9696 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
9698         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
9699         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
9700         (find_inc): Likewise.
9701         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
9702         swapping.
9703         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9704         * df-scan.c (df_swap_refs): Remove.
9705         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
9706         * dominance.c (link_roots): Use std::swap instead of manually swapping.
9707         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
9708         * fold-const.c (fold_relational_const): Likewise.
9709         * genattrtab.c (simplify_test_exp): Likewise.
9710         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
9711         gimple_simplify): Likewise.
9712         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
9713         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
9714         * ipa-devirt.c (add_type_duplicate): Likewise.
9715         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
9716         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
9717         * lra.c (lra_create_copy): Likewise.
9718         * lto-streamer-out.c (DFS::DFS): Likewise.
9719         * modulo-sched.c (get_sched_window): Likewise.
9720         * omega.c (omega_pretty_print_problem): Likewise.
9721         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
9722         * reload1.c (reloads_unique_chain_p): Likewise.
9723         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
9724         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
9725         use std::swap.
9726         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
9727         manually swapping.
9728         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
9729         predicate_mem_writes): Likewise.
9730         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
9731         * tree-predcom.c (combine_chains): Likewise.
9732         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
9733         refs_may_alias_p_1): Likewise.
9734         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
9735         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9736         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
9737         number_of_iterations_cond): Likewise.
9738         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9739         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
9740         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9741         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9742         * tree-vrp.c (extract_range_from_binary_expr_1,
9743         extract_range_from_unary_expr_1): Likewise.
9745 2015-06-20  Marek Polacek  <polacek@redhat.com>
9747         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
9749 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9751         PR target/66591
9752         * config/sh/sh.c (prepare_move_operands): Replace subreg
9753         index term with R0 for base and index addressing.
9755 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
9757         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
9758         op1 is an fp zero.
9759         (movsf_aarch64): Change condition from register_operand to
9760         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
9761         load1.  Change type for alternative 7 to store1.
9762         (movdf_aarch64): Likewise.
9764 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
9766         * config/vax/vax.md: Adjust sign/zero extend patterns to
9767         handle SUBREGs in operands[1].
9769 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9771         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
9772         of manually swapping.
9773         (expand_vec_perm_interleave2): Likewise.
9775 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
9777         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
9778         reuse bounds created for abnormal ssa names.
9780 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
9782         * config/nvptx/nvptx.md (allocate_stack): Rename to...
9783         (allocate_stack_<mode>): ... this, and add :P on both
9784         match_operand and unspec.
9785         (allocate_stack): New expander.
9787 2015-06-19  Christian Bruel  <christian.bruel@st.com>
9789         PR target/66541
9790         PR target/52144
9791         * config/arm/arm.c (arm_set_current_function): Handle
9792         explicit default options.
9794 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9796         * config/i386/i386.md (*movsicc_noc_zext): New insn.
9797         (zero-extended cmove with mem peephole2): New pattern.
9798         (cmove with mem peephole2): Merge patterns.
9800 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
9802         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
9804 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
9806         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
9807         * config/mips/mips.md (*madd4<mode>): Ditto.
9808         (*nmadd3<mode>) Ditto.
9809         (*nmadd4<mode>_fastmath): Ditto.
9810         (*nmadd3<mode>_fastmath): Ditto.
9811         (*nmsub4<mode>): Ditto.
9812         (*nmsub3<mode>): Ditto.
9813         (*nmsub4<mode>_fastmath): Ditto.
9814         (*nmsub3<mode>_fastmath): Ditto.
9816 2015-06-18  Michael Matz  <matz@suse.de>
9818         PR middle-end/66253
9819         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
9820         grouped strided stores.
9821         (vectorizable_load): Don't use the DR from first_stmt in
9822         the non-SLP grouped strided case.
9824 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9826         PR target/66569
9827         * function.c (assign_bounds): Add arguments assign_regs,
9828         assign_special, assign_bt.
9829         (assign_parms): For vararg functions handle bounds in BT
9830         and special slots after incoming vararg bounds.
9832 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9834         PR middle-end/66568
9835         * cfgexpand.c (expand_return): Handle missing bounds.
9836         (expand_gimple_stmt_1): Likewise.
9837         * tree-chkp.c (chkp_expand_zero_bounds): New.
9838         * tree-chkp.h (chkp_expand_zero_bounds): New.
9840 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9842         PR middle-end/66567
9843         * ipa-chkp.c (chkp_maybe_create_clone): Require
9844         functions to be instrumentable.
9845         * tree-chkp.c (chkp_replace_function_pointer): Use
9846         chkp_instrumentable_p instead of attribute check.
9848 2015-06-18  Richard Biener  <rguenther@suse.de>
9850         PR tree-optimization/66510
9851         * tree-vect-stmts.c (vectorizable_load): Properly compute the
9852         number of vector loads for SLP permuted loads.
9853         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
9854         check the stride for loop vectorization.
9855         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
9856         vectorization factor.
9857         (vect_analyze_group_access): If the group size is not a power
9858         of two require a epilogue loop.
9859         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
9860         compute and optimizing and alias test pruning after final
9861         vectorization factor computation.
9862         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
9863         vector alignment.
9864         (vect_transform_slp_perm_load): Properly compute the original
9865         number of vector load stmts.
9867 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9869         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
9870         "unlikely character , in @var" warning.
9872 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
9874         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
9875         (ix86_function_arg_advance): Ditto.
9876         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
9878 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9880         * function.h (struct rtl_data): Remove struct and accessor macros.
9881         * emit-rtl.h (struct rtl_data): Relocate to here.
9882         * Makefile.in (GTFILES): Add emit-rtl.h.
9883         * df-core.c: Include emit-rtl.h.
9884         * genattrtab.c: Likewise.
9885         * genconditions.c: Likewise.
9886         * genpreds.c: Likewise.
9887         * genrecog.c: Likewise.
9888         * regcprop.c: Likewise.
9889         * resource.c: Likewise.
9890         * sched-rgn.c: Likewise.
9891         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9892         * config/i386/winnt.c: Likewise.
9894 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
9896         PR middle-end/66429
9897         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
9898         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
9899         and has_force_vectorize_loops flags from cfun into
9900         child_cfun.
9901         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
9902         if simduid is non-NULL.
9903         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
9904         * passes.def (pass_simduid_cleanup): Add new pass after loop
9905         passes.
9906         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
9907         indirection from htab argument's type.
9908         (shrink_simd_arrays): New function.
9909         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
9910         Don't call adjust_simduid_builtins if there are no loops.
9911         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
9912         (pass_simduid_cleanup::execute): New method.
9913         (make_pass_simduid_cleanup): New function.
9915 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
9917         * tree-core.h (tree_target_option): Make opts field a pointer to a
9918         cl_target_option instead of an instance of the struct.
9919         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
9920         the structure.
9921         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
9922         TARGET_OPTION_NODE.
9923         (copy_node_stat): Allocate and copy struct cl_target_option.
9925 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9927         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
9928         Remove conditional exposure of prototypes.
9929         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
9930         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
9931         definitions in tree.h with functions.
9932         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
9933         anon_aggrname_p.
9934         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
9936 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
9938         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
9939         (*cmp<mode>_signed): ... this.
9940         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
9941         (*cmp<mode>_unsigned): ... this.  Remove %b.
9943 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9945         * coretypes.h: Include input.h and as-a.h.
9946         * rtl.h: Include input.h and as-a.h for generator files.
9947         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
9948         * vec.c: Don't include diagnostic-core.h.
9949         * alias.c: Do not include input.h, line-map.h or is-a.h.
9950         * asan.c: Likewise.
9951         * attribs.c: Likewise.
9952         * auto-inc-dec.c: Likewise.
9953         * auto-profile.c: Likewise.
9954         * bb-reorder.c: Likewise.
9955         * bt-load.c: Likewise.
9956         * builtins.c: Likewise.
9957         * caller-save.c: Likewise.
9958         * calls.c: Likewise.
9959         * ccmp.c: Likewise.
9960         * cfg.c: Likewise.
9961         * cfganal.c: Likewise.
9962         * cfgbuild.c: Likewise.
9963         * cfgcleanup.c: Likewise.
9964         * cfgexpand.c: Likewise.
9965         * cfghooks.c: Likewise.
9966         * cfgloop.c: Likewise.
9967         * cfgloop.h: Likewise.
9968         * cfgloopanal.c: Likewise.
9969         * cfgloopmanip.c: Likewise.
9970         * cfgrtl.c: Likewise.
9971         * cgraph.c: Likewise.
9972         * cgraphbuild.c: Likewise.
9973         * cgraphclones.c: Likewise.
9974         * cgraphunit.c: Likewise.
9975         * cilk-common.c: Likewise.
9976         * combine-stack-adj.c: Likewise.
9977         * combine.c: Likewise.
9978         * compare-elim.c: Likewise.
9979         * convert.c: Likewise.
9980         * coverage.c: Likewise.
9981         * cppbuiltin.c: Likewise.
9982         * cprop.c: Likewise.
9983         * cse.c: Likewise.
9984         * cselib.c: Likewise.
9985         * data-streamer-in.c: Likewise.
9986         * data-streamer-out.c: Likewise.
9987         * data-streamer.c: Likewise.
9988         * dbxout.c: Likewise.
9989         * dce.c: Likewise.
9990         * ddg.c: Likewise.
9991         * debug.c: Likewise.
9992         * df-core.c: Likewise.
9993         * df-problems.c: Likewise.
9994         * df-scan.c: Likewise.
9995         * df.h: Likewise.
9996         * dfp.c: Likewise.
9997         * diagnostic-core.h: Likewise.
9998         * diagnostic.c: Likewise.
9999         * dojump.c: Likewise.
10000         * dominance.c: Likewise.
10001         * domwalk.c: Likewise.
10002         * double-int.c: Likewise.
10003         * dse.c: Likewise.
10004         * dumpfile.c: Likewise.
10005         * dumpfile.h: Likewise.
10006         * dwarf2asm.c: Likewise.
10007         * dwarf2cfi.c: Likewise.
10008         * dwarf2out.c: Likewise.
10009         * emit-rtl.c: Likewise.
10010         * et-forest.c: Likewise.
10011         * except.c: Likewise.
10012         * explow.c: Likewise.
10013         * expmed.c: Likewise.
10014         * expr.c: Likewise.
10015         * final.c: Likewise.
10016         * fixed-value.c: Likewise.
10017         * fold-const.c: Likewise.
10018         * function.c: Likewise.
10019         * fwprop.c: Likewise.
10020         * gcc-plugin.h: Likewise.
10021         * gcse.c: Likewise.
10022         * generic-match-head.c: Likewise.
10023         * ggc-page.c: Likewise.
10024         * gimple-builder.c: Likewise.
10025         * gimple-expr.c: Likewise.
10026         * gimple-fold.c: Likewise.
10027         * gimple-iterator.c: Likewise.
10028         * gimple-low.c: Likewise.
10029         * gimple-match-head.c: Likewise.
10030         * gimple-pretty-print.c: Likewise.
10031         * gimple-ssa-isolate-paths.c: Likewise.
10032         * gimple-ssa-strength-reduction.c: Likewise.
10033         * gimple-streamer-in.c: Likewise.
10034         * gimple-streamer-out.c: Likewise.
10035         * gimple-streamer.h: Likewise.
10036         * gimple-walk.c: Likewise.
10037         * gimple.c: Likewise.
10038         * gimplify-me.c: Likewise.
10039         * gimplify.c: Likewise.
10040         * godump.c: Likewise.
10041         * graph.c: Likewise.
10042         * graphite-blocking.c: Likewise.
10043         * graphite-dependences.c: Likewise.
10044         * graphite-interchange.c: Likewise.
10045         * graphite-isl-ast-to-gimple.c: Likewise.
10046         * graphite-optimize-isl.c: Likewise.
10047         * graphite-poly.c: Likewise.
10048         * graphite-scop-detection.c: Likewise.
10049         * graphite-sese-to-poly.c: Likewise.
10050         * graphite.c: Likewise.
10051         * haifa-sched.c: Likewise.
10052         * hw-doloop.c: Likewise.
10053         * ifcvt.c: Likewise.
10054         * init-regs.c: Likewise.
10055         * input.c: Likewise.
10056         * internal-fn.c: Likewise.
10057         * ipa-chkp.c: Likewise.
10058         * ipa-comdats.c: Likewise.
10059         * ipa-cp.c: Likewise.
10060         * ipa-devirt.c: Likewise.
10061         * ipa-icf-gimple.c: Likewise.
10062         * ipa-icf.c: Likewise.
10063         * ipa-inline-analysis.c: Likewise.
10064         * ipa-inline-transform.c: Likewise.
10065         * ipa-inline.c: Likewise.
10066         * ipa-polymorphic-call.c: Likewise.
10067         * ipa-profile.c: Likewise.
10068         * ipa-prop.c: Likewise.
10069         * ipa-pure-const.c: Likewise.
10070         * ipa-ref.c: Likewise.
10071         * ipa-reference.c: Likewise.
10072         * ipa-split.c: Likewise.
10073         * ipa-utils.c: Likewise.
10074         * ipa-visibility.c: Likewise.
10075         * ipa.c: Likewise.
10076         * ira-build.c: Likewise.
10077         * ira-color.c: Likewise.
10078         * ira-conflicts.c: Likewise.
10079         * ira-costs.c: Likewise.
10080         * ira-emit.c: Likewise.
10081         * ira-lives.c: Likewise.
10082         * ira.c: Likewise.
10083         * jump.c: Likewise.
10084         * langhooks.c: Likewise.
10085         * lcm.c: Likewise.
10086         * loop-doloop.c: Likewise.
10087         * loop-init.c: Likewise.
10088         * loop-invariant.c: Likewise.
10089         * loop-iv.c: Likewise.
10090         * loop-unroll.c: Likewise.
10091         * lower-subreg.c: Likewise.
10092         * lra-assigns.c: Likewise.
10093         * lra-coalesce.c: Likewise.
10094         * lra-constraints.c: Likewise.
10095         * lra-eliminations.c: Likewise.
10096         * lra-lives.c: Likewise.
10097         * lra-remat.c: Likewise.
10098         * lra-spills.c: Likewise.
10099         * lra.c: Likewise.
10100         * lto-cgraph.c: Likewise.
10101         * lto-compress.c: Likewise.
10102         * lto-opts.c: Likewise.
10103         * lto-section-in.c: Likewise.
10104         * lto-section-out.c: Likewise.
10105         * lto-streamer-in.c: Likewise.
10106         * lto-streamer-out.c: Likewise.
10107         * lto-streamer.c: Likewise.
10108         * mcf.c: Likewise.
10109         * mode-switching.c: Likewise.
10110         * modulo-sched.c: Likewise.
10111         * omega.c: Likewise.
10112         * omp-low.c: Likewise.
10113         * optabs.c: Likewise.
10114         * opts-global.c: Likewise.
10115         * opts.h: Likewise.
10116         * passes.c: Likewise.
10117         * plugin.c: Likewise.
10118         * postreload-gcse.c: Likewise.
10119         * postreload.c: Likewise.
10120         * predict.c: Likewise.
10121         * pretty-print.h: Likewise.
10122         * print-rtl.c: Likewise.
10123         * print-tree.c: Likewise.
10124         * profile.c: Likewise.
10125         * real.c: Likewise.
10126         * realmpfr.c: Likewise.
10127         * recog.c: Likewise.
10128         * ree.c: Likewise.
10129         * reg-stack.c: Likewise.
10130         * regcprop.c: Likewise.
10131         * reginfo.c: Likewise.
10132         * regrename.c: Likewise.
10133         * regstat.c: Likewise.
10134         * reload.c: Likewise.
10135         * reload1.c: Likewise.
10136         * reorg.c: Likewise.
10137         * resource.c: Likewise.
10138         * rtl-chkp.c: Likewise.
10139         * rtl-error.c: Likewise.
10140         * rtlanal.c: Likewise.
10141         * rtlhooks.c: Likewise.
10142         * sanopt.c: Likewise.
10143         * sched-deps.c: Likewise.
10144         * sched-ebb.c: Likewise.
10145         * sched-rgn.c: Likewise.
10146         * sched-vis.c: Likewise.
10147         * sdbout.c: Likewise.
10148         * sel-sched-dump.c: Likewise.
10149         * sel-sched-ir.c: Likewise.
10150         * sel-sched.c: Likewise.
10151         * sese.c: Likewise.
10152         * shrink-wrap.c: Likewise.
10153         * simplify-rtx.c: Likewise.
10154         * stack-ptr-mod.c: Likewise.
10155         * statistics.c: Likewise.
10156         * stmt.c: Likewise.
10157         * stor-layout.c: Likewise.
10158         * store-motion.c: Likewise.
10159         * streamer-hooks.c: Likewise.
10160         * stringpool.c: Likewise.
10161         * symtab.c: Likewise.
10162         * target-globals.c: Likewise.
10163         * targhooks.c: Likewise.
10164         * toplev.c: Likewise.
10165         * tracer.c: Likewise.
10166         * trans-mem.c: Likewise.
10167         * tree-affine.c: Likewise.
10168         * tree-browser.c: Likewise.
10169         * tree-call-cdce.c: Likewise.
10170         * tree-cfg.c: Likewise.
10171         * tree-cfgcleanup.c: Likewise.
10172         * tree-chkp-opt.c: Likewise.
10173         * tree-chkp.c: Likewise.
10174         * tree-chrec.c: Likewise.
10175         * tree-complex.c: Likewise.
10176         * tree-data-ref.c: Likewise.
10177         * tree-dfa.c: Likewise.
10178         * tree-diagnostic.c: Likewise.
10179         * tree-dump.c: Likewise.
10180         * tree-eh.c: Likewise.
10181         * tree-emutls.c: Likewise.
10182         * tree-if-conv.c: Likewise.
10183         * tree-inline.c: Likewise.
10184         * tree-into-ssa.c: Likewise.
10185         * tree-iterator.c: Likewise.
10186         * tree-loop-distribution.c: Likewise.
10187         * tree-nested.c: Likewise.
10188         * tree-nrv.c: Likewise.
10189         * tree-object-size.c: Likewise.
10190         * tree-outof-ssa.c: Likewise.
10191         * tree-parloops.c: Likewise.
10192         * tree-phinodes.c: Likewise.
10193         * tree-predcom.c: Likewise.
10194         * tree-pretty-print.c: Likewise.
10195         * tree-profile.c: Likewise.
10196         * tree-scalar-evolution.c: Likewise.
10197         * tree-sra.c: Likewise.
10198         * tree-ssa-address.c: Likewise.
10199         * tree-ssa-alias.c: Likewise.
10200         * tree-ssa-ccp.c: Likewise.
10201         * tree-ssa-coalesce.c: Likewise.
10202         * tree-ssa-copy.c: Likewise.
10203         * tree-ssa-copyrename.c: Likewise.
10204         * tree-ssa-dce.c: Likewise.
10205         * tree-ssa-dom.c: Likewise.
10206         * tree-ssa-dse.c: Likewise.
10207         * tree-ssa-forwprop.c: Likewise.
10208         * tree-ssa-ifcombine.c: Likewise.
10209         * tree-ssa-live.c: Likewise.
10210         * tree-ssa-loop-ch.c: Likewise.
10211         * tree-ssa-loop-im.c: Likewise.
10212         * tree-ssa-loop-ivcanon.c: Likewise.
10213         * tree-ssa-loop-ivopts.c: Likewise.
10214         * tree-ssa-loop-manip.c: Likewise.
10215         * tree-ssa-loop-niter.c: Likewise.
10216         * tree-ssa-loop-prefetch.c: Likewise.
10217         * tree-ssa-loop-unswitch.c: Likewise.
10218         * tree-ssa-loop.c: Likewise.
10219         * tree-ssa-math-opts.c: Likewise.
10220         * tree-ssa-operands.c: Likewise.
10221         * tree-ssa-phiopt.c: Likewise.
10222         * tree-ssa-phiprop.c: Likewise.
10223         * tree-ssa-pre.c: Likewise.
10224         * tree-ssa-propagate.c: Likewise.
10225         * tree-ssa-reassoc.c: Likewise.
10226         * tree-ssa-sccvn.c: Likewise.
10227         * tree-ssa-scopedtables.c: Likewise.
10228         * tree-ssa-sink.c: Likewise.
10229         * tree-ssa-strlen.c: Likewise.
10230         * tree-ssa-structalias.c: Likewise.
10231         * tree-ssa-tail-merge.c: Likewise.
10232         * tree-ssa-ter.c: Likewise.
10233         * tree-ssa-threadedge.c: Likewise.
10234         * tree-ssa-threadupdate.c: Likewise.
10235         * tree-ssa-uncprop.c: Likewise.
10236         * tree-ssa-uninit.c: Likewise.
10237         * tree-ssa.c: Likewise.
10238         * tree-ssanames.c: Likewise.
10239         * tree-stdarg.c: Likewise.
10240         * tree-streamer-in.c: Likewise.
10241         * tree-streamer-out.c: Likewise.
10242         * tree-streamer.c: Likewise.
10243         * tree-switch-conversion.c: Likewise.
10244         * tree-tailcall.c: Likewise.
10245         * tree-vect-data-refs.c: Likewise.
10246         * tree-vect-generic.c: Likewise.
10247         * tree-vect-loop-manip.c: Likewise.
10248         * tree-vect-loop.c: Likewise.
10249         * tree-vect-patterns.c: Likewise.
10250         * tree-vect-slp.c: Likewise.
10251         * tree-vect-stmts.c: Likewise.
10252         * tree-vectorizer.c: Likewise.
10253         * tree-vrp.c: Likewise.
10254         * tree.c: Likewise.
10255         * tsan.c: Likewise.
10256         * ubsan.c: Likewise.
10257         * valtrack.c: Likewise.
10258         * value-prof.c: Likewise.
10259         * var-tracking.c: Likewise.
10260         * varasm.c: Likewise.
10261         * varpool.c: Likewise.
10262         * vmsdbgout.c: Likewise.
10263         * vtable-verify.c: Likewise.
10264         * web.c: Likewise.
10265         * wide-int.cc: Likewise.
10266         * xcoffout.c: Likewise.
10267         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
10268         * common/common-targhooks.c: Likewise.
10269         * config/aarch64/aarch64-builtins.c: Likewise.
10270         * config/aarch64/aarch64.c: Likewise.
10271         * config/alpha/alpha.c: Likewise.
10272         * config/arc/arc.c: Likewise.
10273         * config/arm/aarch-common.c: Likewise.
10274         * config/arm/arm-builtins.c: Likewise.
10275         * config/arm/arm-c.c: Likewise.
10276         * config/arm/arm.c: Likewise.
10277         * config/avr/avr-c.c: Likewise.
10278         * config/avr/avr-log.c: Likewise.
10279         * config/avr/avr.c: Likewise.
10280         * config/bfin/bfin.c: Likewise.
10281         * config/c6x/c6x.c: Likewise.
10282         * config/cr16/cr16.c: Likewise.
10283         * config/cris/cris.c: Likewise.
10284         * config/darwin-c.c: Likewise.
10285         * config/darwin.c: Likewise.
10286         * config/default-c.c: Likewise.
10287         * config/epiphany/epiphany.c: Likewise.
10288         * config/epiphany/mode-switch-use.c: Likewise.
10289         * config/epiphany/resolve-sw-modes.c: Likewise.
10290         * config/fr30/fr30.c: Likewise.
10291         * config/frv/frv.c: Likewise.
10292         * config/ft32/ft32.c: Likewise.
10293         * config/glibc-c.c: Likewise.
10294         * config/h8300/h8300.c: Likewise.
10295         * config/i386/i386-c.c: Likewise.
10296         * config/i386/i386.c: Likewise.
10297         * config/i386/msformat-c.c: Likewise.
10298         * config/i386/winnt-cxx.c: Likewise.
10299         * config/i386/winnt-stubs.c: Likewise.
10300         * config/i386/winnt.c: Likewise.
10301         * config/ia64/ia64-c.c: Likewise.
10302         * config/ia64/ia64.c: Likewise.
10303         * config/iq2000/iq2000.c: Likewise.
10304         * config/lm32/lm32.c: Likewise.
10305         * config/m32c/m32c-pragma.c: Likewise.
10306         * config/m32c/m32c.c: Likewise.
10307         * config/m32r/m32r.c: Likewise.
10308         * config/m68k/m68k.c: Likewise.
10309         * config/mcore/mcore.c: Likewise.
10310         * config/mep/mep-pragma.c: Likewise.
10311         * config/mep/mep.c: Likewise.
10312         * config/microblaze/microblaze-c.c: Likewise.
10313         * config/microblaze/microblaze.c: Likewise.
10314         * config/mips/mips.c: Likewise.
10315         * config/mmix/mmix.c: Likewise.
10316         * config/mn10300/mn10300.c: Likewise.
10317         * config/moxie/moxie.c: Likewise.
10318         * config/msp430/msp430-c.c: Likewise.
10319         * config/msp430/msp430.c: Likewise.
10320         * config/nds32/nds32-cost.c: Likewise.
10321         * config/nds32/nds32-fp-as-gp.c: Likewise.
10322         * config/nds32/nds32-intrinsic.c: Likewise.
10323         * config/nds32/nds32-isr.c: Likewise.
10324         * config/nds32/nds32-md-auxiliary.c: Likewise.
10325         * config/nds32/nds32-memory-manipulation.c: Likewise.
10326         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10327         * config/nds32/nds32-predicates.c: Likewise.
10328         * config/nds32/nds32.c: Likewise.
10329         * config/nios2/nios2.c: Likewise.
10330         * config/nvptx/nvptx.c: Likewise.
10331         * config/pa/pa.c: Likewise.
10332         * config/pdp11/pdp11.c: Likewise.
10333         * config/rl78/rl78-c.c: Likewise.
10334         * config/rl78/rl78.c: Likewise.
10335         * config/rs6000/rs6000-c.c: Likewise.
10336         * config/rs6000/rs6000.c: Likewise.
10337         * config/rx/rx.c: Likewise.
10338         * config/s390/s390-c.c: Likewise.
10339         * config/s390/s390.c: Likewise.
10340         * config/sh/sh-c.c: Likewise.
10341         * config/sh/sh-mem.cc: Likewise.
10342         * config/sh/sh.c: Likewise.
10343         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10344         * config/sh/sh_treg_combine.cc: Likewise.
10345         * config/sol2-c.c: Likewise.
10346         * config/sol2-cxx.c: Likewise.
10347         * config/sol2-stubs.c: Likewise.
10348         * config/sol2.c: Likewise.
10349         * config/sparc/sparc-c.c: Likewise.
10350         * config/sparc/sparc.c: Likewise.
10351         * config/spu/spu-c.c: Likewise.
10352         * config/spu/spu.c: Likewise.
10353         * config/stormy16/stormy16.c: Likewise.
10354         * config/tilegx/mul-tables.c: Likewise.
10355         * config/tilegx/tilegx-c.c: Likewise.
10356         * config/tilegx/tilegx.c: Likewise.
10357         * config/tilepro/mul-tables.c: Likewise.
10358         * config/tilepro/tilepro-c.c: Likewise.
10359         * config/tilepro/tilepro.c: Likewise.
10360         * config/v850/v850-c.c: Likewise.
10361         * config/v850/v850.c: Likewise.
10362         * config/vax/vax.c: Likewise.
10363         * config/visium/visium.c: Likewise.
10364         * config/vms/vms-c.c: Likewise.
10365         * config/vms/vms.c: Likewise.
10366         * config/vxworks.c: Likewise.
10367         * config/winnt-c.c: Likewise.
10368         * config/xtensa/xtensa.c: Likewise.
10370 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
10372         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
10373         function.
10374         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
10376 2015-06-17  Richard Biener  <rguenther@suse.de>
10378         PR tree-optimization/66251
10379         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
10380         stmts for SLP strided stores.
10382         Revert
10383         2015-05-22  Richard Biener  <rguenther@suse.de>
10385         PR tree-optimization/66251
10386         * tree-vect-stmts.c (vectorizable_conversion): Properly
10387         set STMT_VINFO_VEC_STMT even for the SLP case.
10389         2015-05-26  Michael Matz  <matz@suse.de>
10391         PR middle-end/66251
10392         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
10393         STMT_VINFO_VEC_STMT, also with SLP.
10395 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
10397         PR target/56766
10398         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
10399         (*avx_addsubv4df3_1s): Ditto.
10400         (*sse3_addsubv2df3_1): Ditto.
10401         (*sse3_addsubv2df3_1s): Ditto.
10402         (*avx_addsubv8sf3_1): Ditto.
10403         (*avx_addsubv8sf3_1s): Ditto.
10404         (*sse3_addsubv4sf3_1): Ditto.
10405         (*sse3_addsubv4sf3_1s): Ditto.
10407 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
10409         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
10410         (SYSROOT_SUFFIX_SPEC): Update.
10411         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
10412         (STARTFILE_PREFIX_SPEC): Update.
10413         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
10414         (MULTILIB_REQUIRED): New.
10415         (MULTILIB_OSDIRNAMES): New.
10416         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
10417         (MULTILIB_REQUIRED): New.
10418         (MULTILIB_OSDIRNAMES): New.
10420 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
10422         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
10423         * config/aarch64/aarch64-options-extensions.def: Update "fP",
10424         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
10425         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
10426         (AARCH64_FL_PAN): New.
10427         (AARCH64_FL_LOR): New.
10428         (AARCH64_FL_RDMA): New.
10429         (AARCH64_FL_FOR_ARCH8_1): New.
10430         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
10431         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
10433 2015-06-16  Martin Liska  <mliska@suse.cz>
10435         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
10436         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
10437         guard.
10439 2015-06-16  Richard Biener  <rguenther@suse.de>
10441         * tree-vect-stmts.c (vectorizable_store): Adjust.
10442         (vectorizable_load): Likewise.
10443         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10444         Simplify.
10445         (vect_create_data_ref_ptr): Likewise.
10446         (bump_vector_ptr): Adjust.
10448 2015-06-16  Richard Biener  <rguenther@suse.de>
10450         * tree-vect-stmts.c (vectorizable_load): Properly start loads
10451         with the first element if this is grouped loads.
10453 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
10455         * config/arm/arm-protos.h (struct tune_params): Rename
10456         log_op_non_sc to log_op_non_short_circuit, and rename enum
10457         values to expand SC to SHORT_CIRCUIT.
10458         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
10459         to LOG_OP_NON_SHORT_CIRCUIT.
10460         (arm_fastmul_tune):Likewise
10461         (arm_strongarm_tune): Likewise.
10462         (arm_xscale_tune): Likewise.
10463         (arm_9e_tune): Likewise.
10464         (arm_marvell_pj4_tune): Likewise.
10465         (arm_v6t2_tune): Likewise.
10466         (arm_cortex_tune): Likewise.
10467         (arm_cortex_a8_tune): Likewise.
10468         (arm_cortex_a7_tune): Likewise.
10469         (arm_cortex_a15_tune): Likewise.
10470         (arm_cortex_a53_tune): Likewise.
10471         (arm_cortex_a57_tune): Likewise.
10472         (arm_xgene1_tune): Likewise.
10473         (arm_cortex_a5_tune): Likewise.
10474         (arm_cortex_a9_tune): Likewise.
10475         (arm_cortex_a12_tune): Likewise.
10476         (arm_v7m_tune): Likewise.
10477         (arm_cortex_m7_tune): Likewise.
10478         (arm_v6m_tune): Likewise.
10479         (arm_fa726te_tune): Likewise.
10481 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
10483         * altivec.md: Delete UNSPEC_VMLADDUHM.
10484         (mulv4si3_p8): New pattern.
10485         (mulv4si3): Use it for POWER8.
10486         (mulv8hi3): Use vmladduhm with zero addend.
10487         (altivec_vmladduhm): Descriptive RTL.
10489 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
10491         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
10492         to use neon_move instead of mov_imm.
10493         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
10494         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
10496         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
10497         aarch64_float_const_zero_rtx_p check before TFmode check.
10498         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
10499         an fp zero.
10500         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
10501         code and attributes to match.  Change condition from register_operand
10502         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
10503         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
10504         to store2.
10506 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
10508         PR debug/66535
10509         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
10510         there is no parent.
10512 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
10514         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
10515         HOST_WIDE_INT parameter.
10517 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
10519         PR ipa/66181
10520         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
10521         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
10522         TYPE_NO_FORCE_BLK.
10523         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10525 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
10527         * rtl.h (classify_insn): Declare.
10528         * emit-rtl.c (classify_insn): Move to...
10529         * rtl.c: ...here and add generator support.
10530         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
10531         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
10532         * genemit.c (gen_emit_seq): New function.
10533         (gen_expand, gen_split): Use it.
10535 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
10537         * tree.c (make_vector_stat): Fix comment to state that the
10538         function returns a VECTOR_CST.
10540 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
10542         * gensupport.h (add_implicit_parallel): Declare.
10543         * genrecog.c (add_implicit_parallel): Move to...
10544         * gensupport.c (add_implicit_parallel): ...here.
10545         (process_one_cond_exec): Use it.
10546         * genemit.c (gen_insn): Likewise.
10548 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
10550         PR bootstrap/66448
10551         * passes.c (rest_of_decl_compilation): Do not register globals for
10552         early debug if they are declared in built-ins.
10554 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
10556         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
10558 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10560         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
10561         manually swapping.
10562         (noce_try_cmove_arith): Likewise.
10563         (noce_get_alt_condition): Likewise.
10565 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10567         * common/config/i386/i386-common.c
10568         (OPTION_MASK_ISA_MWAITX_SET): New.
10569         (ix86_handle_option): Handle mwaitx.
10570         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
10571         (x86_64-*-*): Likewise.
10572         * config/i386/mwaitxintrin.h: New header.
10573         * config/i386/cpuid.h (bit_MWAITX):  Define.
10574         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10575         MWAITX support.
10576         * config/i386/i386.opt (mwaitx): New.
10577         * config/i386/i386-builtin-types.def
10578         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
10579         * config/i386/i386-c.c: Define __MWAITX__ if needed.
10580         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
10581         (PTA_MWAITX): New.
10582         (ix86_option_override_internal): Handle new option.
10583         (processor_alias_table): Added PTA_MWAITX.
10584         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
10585         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
10586         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
10587         IX86_BUILTIN_MONITORX  built-ins.
10588         * config/i386/i386.h (TARGET_MWAITX): New.
10589         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
10590         UNSPEC_MONITORX.
10591         (mwaitx):  New pattern.
10592         (monitorx_<mode>): New pattern.
10593         * config/i386/x86intrin.h: Include mwaitxintrin.h.
10594         * doc/extend.texi: Document monitorx and mwaitx builtins.
10595         * doc/invoke.texi: Document -mmwaitx option.
10597 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
10599         * emit-rtl.c (need_atomic_barrier_p): Mask model with
10600         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
10602 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10604         * dbxout.c (xcoff_debug_hooks): Provide a function for
10605         register_main_translation_unit hook.
10607 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10609         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
10610         variants cases from switch.
10611         (rs6000_post_atomic_barrier): Same.
10612         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
10613         (rs6000_expand_atomic_exchange): Same.
10614         (rs6000_expand_atomic_op): Same.
10615         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
10616         SYNC variants cases from switch.
10617         (atomic_load): Same.
10618         (atomic_store): Same.
10620 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
10622         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
10623         CONST_INT for goto.
10625 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
10627         PR bootstrap/66448
10628         * dwarf2out.c (check_die): Check for common duplicate attributes.
10629         (add_location_or_const_value_attribute): Do not add duplicate
10630         attributes.
10631         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
10632         time around.
10633         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
10634         (gen_type_die_with_usage): Call check_die.
10635         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
10637 2015-06-11  Jason Merrill  <jason@redhat.com>
10639         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
10640         dies.
10642 2015-06-11  Marek Polacek  <polacek@redhat.com>
10644         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
10646 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10648         PR bootstrap/66252
10649         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
10650         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
10651         (*addx_extend_sp32): Fix pasto.
10652         (*subx_extend): Rename into...
10653         (*subx_extend_sp32): ...this.
10654         (*adddi3_extend_sp32): Add earlyclobber.
10655         (*subdi3_insn_sp32): Likewise.
10656         (*subdi3_extend_sp32): Likewise.
10657         (*and_not_di_sp32): Likewise.
10658         (*or_not_di_sp32): Likewise.
10659         (*xor_not_di_sp32): Likewise.
10660         (*negdi2_sp32): Likewise.
10661         (*one_cmpldi2_sp32): Likewise.
10663 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
10665         * debug.h (struct gcc_debug_hooks): Add a
10666         register_main_translation_unit hook.
10667         * debug.c (do_nothing_debug_hooks): Provide a function for this
10668         new hook.
10669         * dbxout.c (dbx_debug_hooks): Likewise.
10670         * sdbout.c (sdb_debug_hooks): Likewise.
10671         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10672         * dwarf2out.c (main_translation_unit): New global variable.
10673         (dwarf2out_register_main_translation_unit): New function
10674         implementing the new hook.
10675         (dwarf2_debug_hooks): Assign
10676         dwarf2out_register_main_translation_unit to this new hook.
10677         (dwarf2out_init): Associate any main translation unit to
10678         comp_unit_die ().
10680 2015-06-11  Marek Polacek  <polacek@redhat.com>
10682         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
10684 2015-06-11  Marek Polacek  <polacek@redhat.com>
10686         * match.pd: Use single_use throughout.
10688 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10690         * config/arm/arm.c (arm_option_params_internal): When optimising
10691         for speed set max_insns_skipped when arm_restrict_it.
10693 2015-06-11  Christian Bruel  <christian.bruel@st.com>
10695         PR target/52144
10696         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
10697          macros in ...
10698         (arm_cpu_builtins): New function.
10699         (arm_pragma_target_parse): Call arm_cpu_builtins.
10700         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
10701         (arm_register_target_pragmas): Likewise.
10702         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
10703          Call arm_register_target_pragmas.
10704         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
10705         (arm_pragma_target_parse): Likewise.
10707 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10709         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
10710         of the second operand.
10712 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
10714         PR target/66473
10715         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
10716         to prepare mask operand for AVX512 modes.
10718 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
10720         PR target/66474
10721         * doc/md.texi (Machine Constraints): Document that on the PowerPC
10722         if you use a constraint that targets a VSX register, you must use
10723         %x<n> in the template.
10725 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
10727         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
10728         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
10729         (define_insn "trap"): New definition.
10731 2015-06-10  Richard Biener  <rguenther@suse.de>
10733         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
10734         out from ...
10735         (vect_supported_load_permutation_p): ... here.  Handle
10736         supportable permutations in reductions.
10737         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
10738         for vectorizing strided group loads.
10740 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
10742         PR target/66470
10743         * config/i386/i386.c (ix86_split_long_move): For collisions
10744         involving direct tls segment refs, move the UNSPEC_TP possibly
10745         wrapped in ZERO_EXTEND out of the address for lea, to each of
10746         the memory loads.
10748 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10750         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
10751         dmb sy. Adjust tabs.
10753 2015-06-10  Tom de Vries  <tom@codesourcery.com>
10755         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
10757 2015-06-10  Martin Liska  <mliska@suse.cz>
10759         PR bootstrap/66471
10760         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
10761         all enum values in mem_alloc_origin.
10762         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
10763         name.
10764         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
10765         * bitmap.c (bitmap_register): Likewise.
10766         (dump_bitmap_statistics): Likewise.
10767         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
10768         (ggc_record_overhead): Likewise.
10769         * hash-map.h: Likewise.
10770         * hash-set.h: Likewise.
10771         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
10772         * hash-table.h: Likewise.
10773         * vec.c (vec_prefix::register_overhead): Likewise.
10774         (vec_prefix::release_overhead): Likewise.
10775         (dump_vec_loc_statistics): Likewise.
10777 2015-06-09  Christian Bruel  <christian.bruel@st.com>
10779         PR target/52144
10780         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
10781         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
10782         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
10783         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
10784         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
10785         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
10786         (arm_valid_target_attribute_p): Likewise.
10787         (arm_set_current_function, arm_can_inline_p): Likewise.
10788         (arm_valid_target_attribute_rec): Likewise.
10789         (arm_previous_fndecl): New variable.
10790         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10791         (TARGET_CAN_INLINE_P): Define.
10792         (arm_asm_trampoline_template): Emit mode.
10793         (arm_file_start): Don't set unified syntax.
10794         (arm_declare_function_name): Set unified syntax and mode.
10795         (arm_option_override): Init target_option_default_node.
10796         and target_option_current_node.
10797         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
10798         (*call_symbol): Likewise.
10799         * doc/extend.texi: Document ARM/Thumb target attribute.
10800         * doc/invoke.texi: Likewise.
10802 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10804         Revert:
10805         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10806         PR rtl-optimization/64164
10807         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10808         * tree-ssa-copyrename.c: Removed.
10809         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10810         -ftree-coalesce-vars.
10811         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10812         * common.opt (ftree-copyrename): Ignore.
10813         (ftree-coalesce-inlined-vars): Likewise.
10814         * doc/invoke.texi: Remove the ignored options above.
10815         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10816         * tree-ssa-coalesce.h: ... here.
10817         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10818         headers required by it.
10819         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10820         across variables when flag_tree_coalesce_vars.  Check register
10821         use and promoted modes to allow coalescing.  Moved to
10822         tree-ssa-coalesce.c.
10823         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10824         with its member functions to tree-ssa-coalesce.c.
10825         (var_map_base_init): Likewise.  Renamed to
10826         compute_samebase_partition_bases.
10827         (partition_view_normal): Drop want_bases parameter.
10828         (partition_view_bitmap): Likewise.
10829         * tree-ssa-live.h: Adjust declarations.
10830         * tree-ssa-coalesce.c: Include explow.h.
10831         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10832         default defs at the entry point.
10833         (dump_part_var_map): New.
10834         (compute_optimized_partition_bases): New, called by...
10835         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10836         of compute_samebase_partition_bases.  Adjust.
10837         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10838         * cfgexpand.c (leader_merge): New.
10839         (get_rtl_for_parm_ssa_default_def): New.
10840         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10841         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10842         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10843         redundant MEM attr setting.
10844         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10845         from...
10846         (expand_one_stack_var): ... this.  New wrapper to check and
10847         skip already expanded SSA partitions.
10848         (record_alignment_for_reg_var): New, factored out of...
10849         (expand_one_var): ... this.
10850         (expand_one_ssa_partition): New.
10851         (adjust_one_expanded_partition_var): New.
10852         (expand_one_register_var): Check and skip already expanded SSA
10853         partitions.
10854         (expand_used_vars): Don't create DECLs for anonymous SSA
10855         names.  Expand all SSA partitions, then adjust all SSA names.
10856         (pass::execute): Replace the loops that set
10857         SA.partition_to_pseudo from partition leaders and cleared
10858         DECL_RTL for multi-location variables, and that which used to
10859         rename vars and set attrs, with one that clears DECL_RTL and
10860         checks that PARMs and RESULTs default_defs match DECL_RTL.
10861         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10862         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10863         * explow.c (promote_ssa_mode): New.
10864         * explow.h (promote_ssa_mode): Declare.
10865         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10866         * function.c: Include cfgexpand.h.
10867         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10868         (use_register_for_parm_decl): Wrapper for the above to
10869         special-case the result_ptr.
10870         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10871         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10872         multiple locations.
10873         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10874         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10875         (assign_parm_setup_block): Prefer SSA-assigned location.
10876         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10877         if stack_parm is NULL.
10878         (assign_parm_setup_stack): Prefer SSA-assigned location.
10879         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10880         rtl before testing for pointer bounds.  Special-case result_ptr.
10881         (expand_function_start): Maybe reset DECL_RTL of result.
10882         Prefer SSA-assigned location for result and static chain.
10883         Factor out DECL_RESULT and SET_DECL_RTL.
10884         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10885         anonymous SSA names.  Use promote_ssa_mode.
10886         (get_temp_reg): Likewise.
10887         (remove_ssa_form): Adjust.
10888         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10889         and get its reg_usage for reg invalidation.
10890         (compute_bb_dataflow): Pass it insn.
10891         (emit_notes_in_bb): Likewise.
10892         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10893         fail assert on conversion between unsigned types.
10895 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10897         PR tree-optimization/65460
10898         * omp-low.c (expand_omp_target): Set parallelized_function on
10899         cgraph_node for child_fn.
10901 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10903         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
10904         parallelized_function before add_new_function.
10906 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
10908         * gcc-plugin.h: Move decls to plugin.h and include it.
10909         * plugin.h: Relocate decls from gcc-plugin.h
10910         * ggc-page.c: Include required header files.
10911         * passes.c: Likewise.
10912         * cgraphunit.c: Likewise.
10914 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10916         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
10918 2015-06-09  Jason Merrill  <jason@redhat.com>
10920         PR bootstrap/66448
10921         * toplev.c (check_global_declaration): Don't warn about a clone.
10923 2015-06-09  Marek Polacek  <polacek@redhat.com>
10925         PR tree-optimization/66299
10926         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
10927         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
10928         patterns.
10930 2015-06-09  Richard Biener  <rguenther@suse.de>
10932         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
10933         (vect_analyze_slp_instance): Instead do not falsely drop
10934         load permutations.
10936 2015-06-09  Richard Biener  <rguenther@suse.de>
10938         PR middle-end/66423
10939         * match.pd: Handle A % (unsigned)(1 << B).
10941 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
10943         * varasm.c (output_object_block_htab): Remove.
10944         (output_object_block_compare): New.
10945         (output_object_blocks): Sort named object_blocks before outputting
10946         them.
10948 2015-06-09  Richard Biener  <rguenther@suse.de>
10950         PR tree-optimization/66419
10951         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
10952         consider GROUP_GAP when detecting a perfect subchain.
10954 2015-06-09  Nick Clifton  <nickc@redhat.com>
10956         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
10957         place read only data in the .frodata section.
10959 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
10961         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
10962         (atomic_store<mode>): Likewise.
10964 2015-06-09  Richard Biener  <rguenther@suse.de>
10966         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
10968 2015-06-09  Richard Biener  <rguenther@suse.de>
10970         PR middle-end/66413
10971         * tree-inline.c (insert_init_debug_bind): Unshare value.
10973 2015-06-09  Richard Biener  <rguenther@suse.de>
10975         PR tree-optimization/66396
10976         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
10977         Rename virtual operands.
10979 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10981         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
10982         always return false.
10984 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10986         PR rtl-optimization/64164
10987         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10988         * tree-ssa-copyrename.c: Removed.
10989         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10990         -ftree-coalesce-vars.
10991         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10992         * common.opt (ftree-copyrename): Ignore.
10993         (ftree-coalesce-inlined-vars): Likewise.
10994         * doc/invoke.texi: Remove the ignored options above.
10995         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10996         * tree-ssa-coalesce.h: ... here.
10997         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10998         headers required by it.
10999         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11000         across variables when flag_tree_coalesce_vars.  Check register
11001         use and promoted modes to allow coalescing.  Moved to
11002         tree-ssa-coalesce.c.
11003         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11004         with its member functions to tree-ssa-coalesce.c.
11005         (var_map_base_init): Likewise.  Renamed to
11006         compute_samebase_partition_bases.
11007         (partition_view_normal): Drop want_bases parameter.
11008         (partition_view_bitmap): Likewise.
11009         * tree-ssa-live.h: Adjust declarations.
11010         * tree-ssa-coalesce.c: Include explow.h.
11011         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11012         default defs at the entry point.
11013         (dump_part_var_map): New.
11014         (compute_optimized_partition_bases): New, called by...
11015         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11016         of compute_samebase_partition_bases.  Adjust.
11017         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11018         * cfgexpand.c (leader_merge): New.
11019         (get_rtl_for_parm_ssa_default_def): New.
11020         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11021         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11022         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11023         redundant MEM attr setting.
11024         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11025         from...
11026         (expand_one_stack_var): ... this.  New wrapper to check and
11027         skip already expanded SSA partitions.
11028         (record_alignment_for_reg_var): New, factored out of...
11029         (expand_one_var): ... this.
11030         (expand_one_ssa_partition): New.
11031         (adjust_one_expanded_partition_var): New.
11032         (expand_one_register_var): Check and skip already expanded SSA
11033         partitions.
11034         (expand_used_vars): Don't create DECLs for anonymous SSA
11035         names.  Expand all SSA partitions, then adjust all SSA names.
11036         (pass::execute): Replace the loops that set
11037         SA.partition_to_pseudo from partition leaders and cleared
11038         DECL_RTL for multi-location variables, and that which used to
11039         rename vars and set attrs, with one that clears DECL_RTL and
11040         checks that PARMs and RESULTs default_defs match DECL_RTL.
11041         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11042         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11043         * explow.c (promote_ssa_mode): New.
11044         * explow.h (promote_ssa_mode): Declare.
11045         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11046         * function.c: Include cfgexpand.h.
11047         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11048         (use_register_for_parm_decl): Wrapper for the above to
11049         special-case the result_ptr.
11050         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11051         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11052         multiple locations.
11053         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11054         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11055         (assign_parm_setup_block): Prefer SSA-assigned location.
11056         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11057         if stack_parm is NULL.
11058         (assign_parm_setup_stack): Prefer SSA-assigned location.
11059         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11060         rtl before testing for pointer bounds.  Special-case result_ptr.
11061         (expand_function_start): Maybe reset DECL_RTL of result.
11062         Prefer SSA-assigned location for result and static chain.
11063         Factor out DECL_RESULT and SET_DECL_RTL.
11064         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11065         anonymous SSA names.  Use promote_ssa_mode.
11066         (get_temp_reg): Likewise.
11067         (remove_ssa_form): Adjust.
11068         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11069         and get its reg_usage for reg invalidation.
11070         (compute_bb_dataflow): Pass it insn.
11071         (emit_notes_in_bb): Likewise.
11072         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11073         fail assert on conversion between unsigned types.
11075 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
11077         PR debug/58315
11078         * tree-inline.c (reset_debug_binding): New.
11079         (reset_debug_bindings): Likewise.
11080         (expand_call_inline): Call it.
11082 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11084         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
11085         TYPE_STRING_FLAG.
11087 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11089         * lto-streamer-out.c (lto_output_location): Stream
11090         reserved locations correctly.
11091         * lto-streamer-in.c (lto_output_location): Likewise.
11093 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
11095         * coretypes.h: Include hash-table.h and hash-set.h for host files.
11096         * ggc.h: Don't include statistics.h>
11097         * hash-map.h: Remove all includes.
11098         * hash-set.h: Likewise.
11099         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
11100         the include list. Remove <new>.
11101         * inchash.h: Remove all includes.
11102         * mem-stats.h: Likewise.
11103         * vec.h: No special processing for generators or ggc.
11104         * alias.c : Adjust include files.
11105         * alloc-pool.c : Likewise.
11106         * alloc-pool.h : Likewise.
11107         * asan.c : Likewise.
11108         * attribs.c : Likewise.
11109         * auto-inc-dec.c : Likewise.
11110         * auto-profile.c : Likewise.
11111         * bb-reorder.c : Likewise.
11112         * bitmap.c : Likewise.
11113         * bitmap.h : Likewise.
11114         * bt-load.c : Likewise.
11115         * builtins.c : Likewise.
11116         * caller-save.c : Likewise.
11117         * calls.c : Likewise.
11118         * ccmp.c : Likewise.
11119         * cfg.c : Likewise.
11120         * cfganal.c : Likewise.
11121         * cfgbuild.c : Likewise.
11122         * cfgcleanup.c : Likewise.
11123         * cfgexpand.c : Likewise.
11124         * cfghooks.c : Likewise.
11125         * cfgloop.c : Likewise.
11126         * cfgloop.h : Likewise.
11127         * cfgloopanal.c : Likewise.
11128         * cfgloopmanip.c : Likewise.
11129         * cfgrtl.c : Likewise.
11130         * cgraph.c : Likewise.
11131         * cgraphbuild.c : Likewise.
11132         * cgraphclones.c : Likewise.
11133         * cgraphunit.c : Likewise.
11134         * cilk-common.c : Likewise.
11135         * combine-stack-adj.c : Likewise.
11136         * combine.c : Likewise.
11137         * compare-elim.c : Likewise.
11138         * context.c : Likewise.
11139         * convert.c : Likewise.
11140         * coverage.c : Likewise.
11141         * cppbuiltin.c : Likewise.
11142         * cprop.c : Likewise.
11143         * cse.c : Likewise.
11144         * cselib.c : Likewise.
11145         * data-streamer-in.c : Likewise.
11146         * data-streamer-out.c : Likewise.
11147         * data-streamer.c : Likewise.
11148         * data-streamer.h : Likewise.
11149         * dbxout.c : Likewise.
11150         * dce.c : Likewise.
11151         * ddg.c : Likewise.
11152         * debug.c : Likewise.
11153         * df-core.c : Likewise.
11154         * df-problems.c : Likewise.
11155         * df-scan.c : Likewise.
11156         * df.h : Likewise.
11157         * dfp.c : Likewise.
11158         * dojump.c : Likewise.
11159         * dominance.c : Likewise.
11160         * domwalk.c : Likewise.
11161         * double-int.c : Likewise.
11162         * dse.c : Likewise.
11163         * dumpfile.c : Likewise.
11164         * dwarf2asm.c : Likewise.
11165         * dwarf2cfi.c : Likewise.
11166         * dwarf2out.c : Likewise.
11167         * emit-rtl.c : Likewise.
11168         * et-forest.c : Likewise.
11169         * except.c : Likewise.
11170         * except.h : Likewise.
11171         * explow.c : Likewise.
11172         * expmed.c : Likewise.
11173         * expr.c : Likewise.
11174         * final.c : Likewise.
11175         * fixed-value.c : Likewise.
11176         * fold-const.c : Likewise.
11177         * function.c : Likewise.
11178         * fwprop.c : Likewise.
11179         * gcc-plugin.h : Likewise.
11180         * gcc.c : Likewise.
11181         * gcse-common.c : Likewise.
11182         * gcse.c : Likewise.
11183         * genattrtab.c : Likewise.
11184         * genautomata.c : Likewise.
11185         * genconditions.c : Likewise.
11186         * genemit.c : Likewise.
11187         * generic-match-head.c : Likewise.
11188         * genextract.c : Likewise.
11189         * gengtype-state.c : Likewise.
11190         * gengtype.c : Likewise.
11191         * genhooks.c : Likewise.
11192         * genmatch.c : Likewise.
11193         * genmodes.c : Likewise.
11194         * genrecog.c : Likewise.
11195         * gensupport.c : Likewise.
11196         * ggc-common.c : Likewise.
11197         * ggc-internal.h : Likewise.
11198         * ggc-none.c : Likewise.
11199         * ggc-page.c : Likewise.
11200         * gimple-builder.c : Likewise.
11201         * gimple-expr.c : Likewise.
11202         * gimple-fold.c : Likewise.
11203         * gimple-iterator.c : Likewise.
11204         * gimple-low.c : Likewise.
11205         * gimple-match-head.c : Likewise.
11206         * gimple-pretty-print.c : Likewise.
11207         * gimple-ssa-isolate-paths.c : Likewise.
11208         * gimple-ssa-strength-reduction.c : Likewise.
11209         * gimple-ssa.h : Likewise.
11210         * gimple-streamer-in.c : Likewise.
11211         * gimple-streamer-out.c : Likewise.
11212         * gimple-streamer.h : Likewise.
11213         * gimple-walk.c : Likewise.
11214         * gimple.c : Likewise.
11215         * gimplify-me.c : Likewise.
11216         * gimplify.c : Likewise.
11217         * godump.c : Likewise.
11218         * graph.c : Likewise.
11219         * graphds.c : Likewise.
11220         * graphite-blocking.c : Likewise.
11221         * graphite-dependences.c : Likewise.
11222         * graphite-interchange.c : Likewise.
11223         * graphite-isl-ast-to-gimple.c : Likewise.
11224         * graphite-optimize-isl.c : Likewise.
11225         * graphite-poly.c : Likewise.
11226         * graphite-scop-detection.c : Likewise.
11227         * graphite-sese-to-poly.c : Likewise.
11228         * graphite.c : Likewise.
11229         * haifa-sched.c : Likewise.
11230         * hard-reg-set.h : Likewise.
11231         * hw-doloop.c : Likewise.
11232         * ifcvt.c : Likewise.
11233         * inchash.c : Likewise.
11234         * incpath.c : Likewise.
11235         * init-regs.c : Likewise.
11236         * input.c : Likewise.
11237         * internal-fn.c : Likewise.
11238         * ipa-chkp.c : Likewise.
11239         * ipa-comdats.c : Likewise.
11240         * ipa-cp.c : Likewise.
11241         * ipa-devirt.c : Likewise.
11242         * ipa-icf-gimple.c : Likewise.
11243         * ipa-icf.c : Likewise.
11244         * ipa-inline-analysis.c : Likewise.
11245         * ipa-inline-transform.c : Likewise.
11246         * ipa-inline.c : Likewise.
11247         * ipa-polymorphic-call.c : Likewise.
11248         * ipa-profile.c : Likewise.
11249         * ipa-prop.c : Likewise.
11250         * ipa-pure-const.c : Likewise.
11251         * ipa-ref.c : Likewise.
11252         * ipa-reference.c : Likewise.
11253         * ipa-split.c : Likewise.
11254         * ipa-utils.c : Likewise.
11255         * ipa-visibility.c : Likewise.
11256         * ipa.c : Likewise.
11257         * ira-build.c : Likewise.
11258         * ira-color.c : Likewise.
11259         * ira-conflicts.c : Likewise.
11260         * ira-costs.c : Likewise.
11261         * ira-emit.c : Likewise.
11262         * ira-lives.c : Likewise.
11263         * ira.c : Likewise.
11264         * jump.c : Likewise.
11265         * langhooks.c : Likewise.
11266         * lcm.c : Likewise.
11267         * libfuncs.h : Likewise.
11268         * lists.c : Likewise.
11269         * loop-doloop.c : Likewise.
11270         * loop-init.c : Likewise.
11271         * loop-invariant.c : Likewise.
11272         * loop-iv.c : Likewise.
11273         * loop-unroll.c : Likewise.
11274         * lower-subreg.c : Likewise.
11275         * lra-assigns.c : Likewise.
11276         * lra-coalesce.c : Likewise.
11277         * lra-constraints.c : Likewise.
11278         * lra-eliminations.c : Likewise.
11279         * lra-lives.c : Likewise.
11280         * lra-remat.c : Likewise.
11281         * lra-spills.c : Likewise.
11282         * lra.c : Likewise.
11283         * lto-cgraph.c : Likewise.
11284         * lto-compress.c : Likewise.
11285         * lto-opts.c : Likewise.
11286         * lto-section-in.c : Likewise.
11287         * lto-section-out.c : Likewise.
11288         * lto-streamer-in.c : Likewise.
11289         * lto-streamer-out.c : Likewise.
11290         * lto-streamer.c : Likewise.
11291         * lto-streamer.h : Likewise.
11292         * mcf.c : Likewise.
11293         * mode-switching.c : Likewise.
11294         * modulo-sched.c : Likewise.
11295         * omega.c : Likewise.
11296         * omp-low.c : Likewise.
11297         * optabs.c : Likewise.
11298         * opts-global.c : Likewise.
11299         * opts.h : Likewise.
11300         * passes.c : Likewise.
11301         * plugin.c : Likewise.
11302         * postreload-gcse.c : Likewise.
11303         * postreload.c : Likewise.
11304         * predict.c : Likewise.
11305         * print-rtl.c : Likewise.
11306         * print-tree.c : Likewise.
11307         * profile.c : Likewise.
11308         * read-md.c : Likewise.
11309         * read-md.h : Likewise.
11310         * read-rtl.c : Likewise.
11311         * real.c : Likewise.
11312         * realmpfr.c : Likewise.
11313         * recog.c : Likewise.
11314         * ree.c : Likewise.
11315         * reg-stack.c : Likewise.
11316         * regcprop.c : Likewise.
11317         * reginfo.c : Likewise.
11318         * regrename.c : Likewise.
11319         * regstat.c : Likewise.
11320         * reload.c : Likewise.
11321         * reload1.c : Likewise.
11322         * reorg.c : Likewise.
11323         * resource.c : Likewise.
11324         * rtl-chkp.c : Likewise.
11325         * rtl.c : Likewise.
11326         * rtl.h : Likewise.
11327         * rtlanal.c : Likewise.
11328         * rtlhash.c : Likewise.
11329         * rtlhash.h : Likewise.
11330         * rtlhooks.c : Likewise.
11331         * sanopt.c : Likewise.
11332         * sched-deps.c : Likewise.
11333         * sched-ebb.c : Likewise.
11334         * sched-rgn.c : Likewise.
11335         * sched-vis.c : Likewise.
11336         * sdbout.c : Likewise.
11337         * sel-sched-dump.c : Likewise.
11338         * sel-sched-ir.c : Likewise.
11339         * sel-sched-ir.h : Likewise.
11340         * sel-sched.c : Likewise.
11341         * sese.c : Likewise.
11342         * shrink-wrap.c : Likewise.
11343         * shrink-wrap.h : Likewise.
11344         * simplify-rtx.c : Likewise.
11345         * stack-ptr-mod.c : Likewise.
11346         * statistics.c : Likewise.
11347         * stmt.c : Likewise.
11348         * stor-layout.c : Likewise.
11349         * store-motion.c : Likewise.
11350         * stringpool.c : Likewise.
11351         * symtab.c : Likewise.
11352         * target-globals.c : Likewise.
11353         * targhooks.c : Likewise.
11354         * tlink.c : Likewise.
11355         * toplev.c : Likewise.
11356         * tracer.c : Likewise.
11357         * trans-mem.c : Likewise.
11358         * tree-affine.c : Likewise.
11359         * tree-affine.h : Likewise.
11360         * tree-browser.c : Likewise.
11361         * tree-call-cdce.c : Likewise.
11362         * tree-cfg.c : Likewise.
11363         * tree-cfgcleanup.c : Likewise.
11364         * tree-chkp-opt.c : Likewise.
11365         * tree-chkp.c : Likewise.
11366         * tree-chrec.c : Likewise.
11367         * tree-complex.c : Likewise.
11368         * tree-data-ref.c : Likewise.
11369         * tree-dfa.c : Likewise.
11370         * tree-diagnostic.c : Likewise.
11371         * tree-dump.c : Likewise.
11372         * tree-eh.c : Likewise.
11373         * tree-eh.h : Likewise.
11374         * tree-emutls.c : Likewise.
11375         * tree-hasher.h : Likewise.
11376         * tree-if-conv.c : Likewise.
11377         * tree-inline.c : Likewise.
11378         * tree-inline.h : Likewise.
11379         * tree-into-ssa.c : Likewise.
11380         * tree-iterator.c : Likewise.
11381         * tree-loop-distribution.c : Likewise.
11382         * tree-nested.c : Likewise.
11383         * tree-nrv.c : Likewise.
11384         * tree-object-size.c : Likewise.
11385         * tree-outof-ssa.c : Likewise.
11386         * tree-parloops.c : Likewise.
11387         * tree-phinodes.c : Likewise.
11388         * tree-predcom.c : Likewise.
11389         * tree-pretty-print.c : Likewise.
11390         * tree-profile.c : Likewise.
11391         * tree-scalar-evolution.c : Likewise.
11392         * tree-sra.c : Likewise.
11393         * tree-ssa-address.c : Likewise.
11394         * tree-ssa-alias.c : Likewise.
11395         * tree-ssa-ccp.c : Likewise.
11396         * tree-ssa-coalesce.c : Likewise.
11397         * tree-ssa-copy.c : Likewise.
11398         * tree-ssa-copyrename.c : Likewise.
11399         * tree-ssa-dce.c : Likewise.
11400         * tree-ssa-dom.c : Likewise.
11401         * tree-ssa-dse.c : Likewise.
11402         * tree-ssa-forwprop.c : Likewise.
11403         * tree-ssa-ifcombine.c : Likewise.
11404         * tree-ssa-live.c : Likewise.
11405         * tree-ssa-loop-ch.c : Likewise.
11406         * tree-ssa-loop-im.c : Likewise.
11407         * tree-ssa-loop-ivcanon.c : Likewise.
11408         * tree-ssa-loop-ivopts.c : Likewise.
11409         * tree-ssa-loop-manip.c : Likewise.
11410         * tree-ssa-loop-niter.c : Likewise.
11411         * tree-ssa-loop-prefetch.c : Likewise.
11412         * tree-ssa-loop-unswitch.c : Likewise.
11413         * tree-ssa-loop.c : Likewise.
11414         * tree-ssa-math-opts.c : Likewise.
11415         * tree-ssa-operands.c : Likewise.
11416         * tree-ssa-phiopt.c : Likewise.
11417         * tree-ssa-phiprop.c : Likewise.
11418         * tree-ssa-pre.c : Likewise.
11419         * tree-ssa-propagate.c : Likewise.
11420         * tree-ssa-reassoc.c : Likewise.
11421         * tree-ssa-sccvn.c : Likewise.
11422         * tree-ssa-scopedtables.c : Likewise.
11423         * tree-ssa-sink.c : Likewise.
11424         * tree-ssa-strlen.c : Likewise.
11425         * tree-ssa-structalias.c : Likewise.
11426         * tree-ssa-tail-merge.c : Likewise.
11427         * tree-ssa-ter.c : Likewise.
11428         * tree-ssa-threadedge.c : Likewise.
11429         * tree-ssa-threadupdate.c : Likewise.
11430         * tree-ssa-uncprop.c : Likewise.
11431         * tree-ssa-uninit.c : Likewise.
11432         * tree-ssa.c : Likewise.
11433         * tree-ssanames.c : Likewise.
11434         * tree-stdarg.c : Likewise.
11435         * tree-streamer-in.c : Likewise.
11436         * tree-streamer-out.c : Likewise.
11437         * tree-streamer.c : Likewise.
11438         * tree-streamer.h : Likewise.
11439         * tree-switch-conversion.c : Likewise.
11440         * tree-tailcall.c : Likewise.
11441         * tree-vect-data-refs.c : Likewise.
11442         * tree-vect-generic.c : Likewise.
11443         * tree-vect-loop-manip.c : Likewise.
11444         * tree-vect-loop.c : Likewise.
11445         * tree-vect-patterns.c : Likewise.
11446         * tree-vect-slp.c : Likewise.
11447         * tree-vect-stmts.c : Likewise.
11448         * tree-vectorizer.c : Likewise.
11449         * tree-vectorizer.h : Likewise.
11450         * tree-vrp.c : Likewise.
11451         * tree.c : Likewise.
11452         * tsan.c : Likewise.
11453         * ubsan.c : Likewise.
11454         * valtrack.c : Likewise.
11455         * valtrack.h : Likewise.
11456         * value-prof.c : Likewise.
11457         * var-tracking.c : Likewise.
11458         * varasm.c : Likewise.
11459         * varpool.c : Likewise.
11460         * vec.c: Likewise.
11461         * vmsdbgout.c : Likewise.
11462         * vtable-verify.c : Likewise.
11463         * vtable-verify.h : Likewise.
11464         * web.c : Likewise.
11465         * wide-int.cc : Likewise.
11466         * xcoffout.c : Likewise.
11467         * config/aarch64/aarch64-builtins.c : Likewise.
11468         * config/aarch64/aarch64.c : Likewise.
11469         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
11470         * config/alpha/alpha.c : Likewise.
11471         * config/arc/arc.c : Likewise.
11472         * config/arm/aarch-common.c : Likewise.
11473         * config/arm/arm-builtins.c : Likewise.
11474         * config/arm/arm-c.c : Likewise.
11475         * config/arm/arm.c : Likewise.
11476         * config/avr/avr-c.c : Likewise.
11477         * config/avr/avr-log.c : Likewise.
11478         * config/avr/avr.c : Likewise.
11479         * config/bfin/bfin.c : Likewise.
11480         * config/c6x/c6x.c : Likewise.
11481         * config/cr16/cr16.c : Likewise.
11482         * config/cris/cris.c : Likewise.
11483         * config/darwin-c.c : Likewise.
11484         * config/darwin.c : Likewise.
11485         * config/default-c.c : Likewise.
11486         * config/epiphany/epiphany.c : Likewise.
11487         * config/epiphany/mode-switch-use.c : Likewise.
11488         * config/epiphany/resolve-sw-modes.c : Likewise.
11489         * config/fr30/fr30.c : Likewise.
11490         * config/frv/frv.c : Likewise.
11491         * config/ft32/ft32.c : Likewise.
11492         * config/glibc-c.c : Likewise.
11493         * config/h8300/h8300.c : Likewise.
11494         * config/i386/i386-c.c : Likewise.
11495         * config/i386/i386.c : Likewise.
11496         * config/i386/msformat-c.c : Likewise.
11497         * config/i386/winnt-cxx.c : Likewise.
11498         * config/i386/winnt-stubs.c : Likewise.
11499         * config/i386/winnt.c : Likewise.
11500         * config/ia64/ia64-c.c : Likewise.
11501         * config/ia64/ia64.c : Likewise.
11502         * config/iq2000/iq2000.c : Likewise.
11503         * config/lm32/lm32.c : Likewise.
11504         * config/m32c/m32c-pragma.c : Likewise.
11505         * config/m32c/m32c.c : Likewise.
11506         * config/m32r/m32r.c : Likewise.
11507         * config/m68k/m68k.c : Likewise.
11508         * config/mcore/mcore.c : Likewise.
11509         * config/mep/mep-pragma.c : Likewise.
11510         * config/mep/mep.c : Likewise.
11511         * config/microblaze/microblaze-c.c : Likewise.
11512         * config/microblaze/microblaze.c : Likewise.
11513         * config/mips/mips.c : Likewise.
11514         * config/mmix/mmix.c : Likewise.
11515         * config/mn10300/mn10300.c : Likewise.
11516         * config/moxie/moxie.c : Likewise.
11517         * config/msp430/msp430-c.c : Likewise.
11518         * config/msp430/msp430.c : Likewise.
11519         * config/nds32/nds32-cost.c : Likewise.
11520         * config/nds32/nds32-fp-as-gp.c : Likewise.
11521         * config/nds32/nds32-intrinsic.c : Likewise.
11522         * config/nds32/nds32-isr.c : Likewise.
11523         * config/nds32/nds32-md-auxiliary.c : Likewise.
11524         * config/nds32/nds32-memory-manipulation.c : Likewise.
11525         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
11526         * config/nds32/nds32-predicates.c : Likewise.
11527         * config/nds32/nds32.c : Likewise.
11528         * config/nios2/nios2.c : Likewise.
11529         * config/nvptx/nvptx.c : Likewise.
11530         * config/pa/pa.c : Likewise.
11531         * config/pdp11/pdp11.c : Likewise.
11532         * config/rl78/rl78-c.c : Likewise.
11533         * config/rl78/rl78.c : Likewise.
11534         * config/rs6000/rs6000-c.c : Likewise.
11535         * config/rs6000/rs6000.c : Likewise.
11536         * config/rx/rx.c : Likewise.
11537         * config/s390/s390-c.c : Likewise.
11538         * config/s390/s390.c : Likewise.
11539         * config/sh/sh-c.c : Likewise.
11540         * config/sh/sh-mem.cc : Likewise.
11541         * config/sh/sh.c : Likewise.
11542         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
11543         * config/sh/sh_treg_combine.cc : Likewise.
11544         * config/sol2-c.c : Likewise.
11545         * config/sol2-cxx.c : Likewise.
11546         * config/sol2-stubs.c : Likewise.
11547         * config/sol2.c : Likewise.
11548         * config/sparc/sparc-c.c : Likewise.
11549         * config/sparc/sparc.c : Likewise.
11550         * config/spu/spu-c.c : Likewise.
11551         * config/spu/spu.c : Likewise.
11552         * config/stormy16/stormy16.c : Likewise.
11553         * config/tilegx/mul-tables.c : Likewise.
11554         * config/tilegx/tilegx-c.c : Likewise.
11555         * config/tilegx/tilegx.c : Likewise.
11556         * config/tilepro/mul-tables.c : Likewise.
11557         * config/tilepro/tilepro-c.c : Likewise.
11558         * config/tilepro/tilepro.c : Likewise.
11559         * config/v850/v850-c.c : Likewise.
11560         * config/v850/v850.c : Likewise.
11561         * config/vax/vax.c : Likewise.
11562         * config/visium/visium.c : Likewise.
11563         * config/vms/vms-c.c : Likewise.
11564         * config/vms/vms.c : Likewise.
11565         * config/vxworks.c : Likewise.
11566         * config/winnt-c.c : Likewise.
11567         * config/xtensa/xtensa.c : Likewise.
11569 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11571         PR lto/65378
11572         * ipa-utils.h (warn_types_mismatch): Update prototype.
11573         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
11574         parameters.
11575         (type_mismatch_p): New function.
11576         (warn_types_mismatch): Reorg to work better on non-C++ types.
11577         (odr_types_equivalent_p): Add loc1/loc2 parameters.
11578         (add_type_duplicate): Update.
11580 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11582         PR rtl-optimization/66444
11583         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
11584         call_used_regs.
11586 2015-06-08  Richard Biener  <rguenther@suse.de>
11588         PR tree-optimization/66422
11589         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
11590         block after inserted gcc_unreachable.
11592 2015-06-08  Nick Clifton  <nickc@redhat.com>
11594         * config/rx/rx.c (rx_function_value): Do not promote vector types.
11595         (rx_promote_function_mode): Likewise.
11596         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
11598 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
11600         * genattrtab.c (insn_alternatives): Change type from int *
11601         to uint64_t *.
11602         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
11603         (get_attr_value): Change type of num_alt to uint64_t.
11604         (compute_alternative_mask): Change return type from
11605         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
11606         (make_alternative_compare, mk_attr_alt): Change argument type
11607         from int to uint64_t.
11608         (simplify_test_exp): Change type of i from int to uint64_t.
11609         Shift ((uint64_t) 1) instead of 1 up.
11610         (main): Adjust oballocvec first argument from int to uint64_t.
11611         Shift ((uint64_t) 1) instead of 1 up.
11613 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11615         PR other/65366
11616         * gdbhooks.py: Import sys.
11617         (intptr): New function.  Replace int(...) by intptr(...).
11619 2015-06-08  Richard Biener  <rguenther@suse.de>
11621         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
11622         adjustment for gaps at the end of a SLP load group properly.
11623         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
11624         all permutations we can generate.
11625         (vect_transform_slp_perm_load): Use the correct group-size.
11627 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
11629         * genmatch.c (expr::gen_transform): For conditions, guess the type
11630         from the second operand.
11632 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11634         PR tree-optimization/66442
11635         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
11636         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
11637         if the loop latch is not a singleton.  Use
11638         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
11640 2015-06-08  Marek Polacek  <polacek@redhat.com>
11642         PR sanitizer/66452
11643         * toplev.c (check_global_declaration): Don't warn about artificial
11644         decls.
11646 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11648         PR tree-optimization/66436
11649         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
11650         dump file.
11651         * gimplify.c: Add tree-dump.h include.
11652         (gimplify_function_tree): Dump function to gimple dump file.
11653         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
11654         dump file.
11656 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11658         PR tree-optimization/66435
11659         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
11660         function.
11662 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
11664         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
11665         of ptr_type_node to not be ptr_to_node.
11666         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
11667         TREE_TYPE of pointers.
11668         * gimple-expr.c (useless_type_conversion): Reorder the check for
11669         function pointers and TYPE_CANONICAL.
11671 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
11673         PR bootstrap/66319
11674         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
11675         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
11676         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
11677         later.
11678         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
11679         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
11680         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
11681         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
11682         and non iso if unix2003.
11684 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
11686         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
11688 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
11690         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
11691         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
11692         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
11693         except.c, final.c, function.c, gcse-common.c, genemit.c,
11694         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
11695         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
11696         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
11697         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
11698         more derived ones.
11700 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
11702         * combine.c (combine_split_insns): Remove cast.
11703         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
11704         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
11705         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
11706         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
11707         * genemit.c (gen_split): Change return type of generated functions to
11708         rtx_insn.
11709         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
11710         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
11711         gen_peephole2_* functions.
11712         (print_subroutine, main): Likewise.
11713         * recog.c (peephole2_optimize): Remove cast.
11714         (peep2_next_insn): Promote return type to rtx_insn.
11715         * recog.h (peep2_next_insn): Fix prototype.
11716         * rtl.h (try_split, split_insns): Likewise.
11718 2015-06-06  DJ Delorie  <dj@redhat.com>
11720         * config/msp430/msp430.c (msp430_asm_integer): Support addition
11721         and subtraction too.
11723 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11725         PR target/66410
11726         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
11727         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
11728         instead of Snd.  Disparage Sid/z alternative with '^'.
11730 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
11732         * dwarf2out.c: Remove deferred_locations*.
11733         (dwarf2_debug_hooks): Add early_finish hook.
11734         Remove global_decl hook.
11735         Add early_global_decl and late_global_decl hook.
11736         New global early_dwarf.
11737         New structure set_early_dwarf.
11738         (output_die): Indicate whether a DIE was generated early
11739         when generating assembly with -dA.
11740         (struct limbo_die_struct): Document created_for field.
11741         Remove file_table_last_lookup.
11742         (remove_AT): Return TRUE if successful.
11743         (remove_child_TAG): Clear die_parent.
11744         (reparent_child): New function abstracted from...
11745         (splice_child_die): ...here.
11746         (new_die): ICE if a DIE ends up in limbo too late.
11747         (check_die): New.
11748         (defer_location): Remove.
11749         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
11750         (fill_variable_array_bounds): New.
11751         (decl_start_label): Call fill_variable_array_bounds.
11752         (gen_formal_parameter_die): Rewrite to reuse previously generated
11753         DIEs.
11754         (gen_subprogram_die): Same.
11755         (gen_variable_die): Same.
11756         (gen_const_die): Same.
11757         (gen_label_die): Same.
11758         (gen_lexical_block_die): Same.
11759         (decl_will_get_specification_p): New.
11760         (local_function_static): New.
11761         (gen_struct_or_union_type_die): Fill in variable-length fields.
11762         (gen_typedef_die): Fill in variable-length typedefs.
11763         (gen_tagged_type_die): Gracefully return on error_mark_node.
11764         Handle re-entrancy.
11765         (gen_type_die_with_usage): Handle variable-length types.
11766         Remove duplicate code for ARRAY_TYPE case.
11767         (process_scope_var): Only process imported modules during early
11768         dwarf.
11769         (dwarf2out_early_global_decl): New.
11770         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
11771         (dwarf2out_type_decl): Set early_dwarf while calling
11772         dwarf2out_decl.
11773         (dwarf2out_decl): Verify that we did not recreate a previously
11774         generated DIE.
11775         Do not return on DECL_EXTERNALs in VAR_DECLs.
11776         Abstract some code to local_function_static.
11777         (lookup_filename): Remove use of file_table_last_lookup.
11778         Gracefully exit on missing file_name.
11779         (dwarf2out_finish): Verify limbo list.
11780         Remove deferred_locations_list use.
11781         Move deferred_asm_name and limbo flushing to...
11782         (dwarf2out_early_finish): ...here.  New.
11783         (dwarf2out_c_finalize): Remove set of deferred_location_list,
11784         deferred_asm_name, and file_table_last_lookup.
11785         * cgraph.h (referred_to_p): Add default argument.
11786         * cgraphunit.c (referred_to_p): Add and handle include_self
11787         argument.
11788         (analyze_functions): Add first_time argument.
11789         Call check_global_declaration for all symbols.
11790         Call late_global_decl for nodes for moribund nodes.
11791         (finalize_compilation_unit): Add new argument to
11792         analyze_functions.
11793         Call early_global_decl for functions.
11794         Call early_finish debug hook.
11795         * dbxout.c (dbxout_early_global_decl): New.
11796         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
11797         (dbx_debug_hooks): Add new hooks.
11798         (xcoff_debug_hooks): Same.
11799         * debug.c (do_nothing_debug_hooks): Add early_finish field.
11800         Add early and late debug hooks.
11801         Remove global_decl hook.
11802         * debug.h (struct gcc_debug_hooks): Add early_finish,
11803         early_global_decl, and late_global_decl fields.
11804         Remove global_decl field.
11805         Document gcc_debug_hooks.
11806         * gengtype.c (output_typename): Remove.
11807         * godump.c (go_early_global_decl): New.
11808         (go_late_global_decl): New.
11809         (go_global_decl): Remove.
11810         (dump_go_spec_init): Remove global_decl.  Add
11811         {early,late}_global_decl.
11812         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
11813         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
11814         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
11815         (write_global_declarations): Remove.
11816         (global_decl_processing): New.
11817         * langhooks.h (struct lang_hooks_for_decls): Remove
11818         final_write_globals field.
11819         Add post_compilation_parsing_cleanups field.
11820         * passes.c (rest_of_decl_compilation): Call early_global_decl.
11821         * sdbout.c: Add early and late_global_decl hooks.  Remove
11822         sdbout_global_decl hook.
11823         Add early_finish field for sdb_debug_hooks.
11824         (sdbout_global_decl): Remove.
11825         (sdbout_early_global_decl): New.
11826         (sdbout_late_global_decl): New.
11827         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
11828         * toplev.c (check_global_declaration): Rename from
11829         check_global_declaration_1.
11830         Adapt to use symtab infrastructure.
11831         (check_global_declarations): Remove.
11832         (emit_debug_global_declarations): Remove.
11833         (compile_file): Remove call to final_write_globals langhook.
11834         Run the actual compilation process.
11835         Perform any post compilation parser cleanups.
11836         Generate late debug info.
11837         * toplev.h (check_global_declaration): New.
11838         (check_global_declaration_1): Remove.
11839         (check_global_declarations): Remove.
11840         (write_global_declarations): Remove.
11841         (emit_debug_global_declarations): Remove.
11842         (global_decl_processing): New.
11843         * tree-core.h (struct tree_block): Add DIE field.
11844         * tree.h (BLOCK_DIE): New.
11845         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
11846         throughout.
11847         (vmsdbgout_early_global_decl): New.
11848         (vmsdbgout_late_global_decl): New.
11849         Add early_finish debug hook field to vmsdbg_debug_hooks.
11850         Remove vmsdbgout_decl to vmsdbgout_function_decl.
11851         Add early and late_global_decl debug hooks.
11853 2015-06-05  Julian Brown  <julian@codesourcery.com>
11854             Sandra Loosemore  <sandra@codesourcery.com>
11856         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
11857         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
11858         to print-sysroot-suffix.sh script.
11860 2015-06-05  Tom de Vries  <tom@codesourcery.com>
11862         merge from gomp4 branch:
11863         2015-05-28  Tom de Vries  <tom@codesourcery.com>
11865         PR tree-optimization/65443
11866         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
11867         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
11868         (try_transform_to_exit_first_loop_alt): New function.
11869         (transform_to_exit_first_loop): Use
11870         try_transform_to_exit_first_loop_alt.
11872 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
11874         * builtins.c (expand_builtin_atomic_compare_exchange): Call
11875         emit_cmp_and_jump_insns with the mode of target.
11877 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11879         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
11881 2015-06-04  DJ Delorie  <dj@redhat.com>
11883         * config/msp430/msp430.md (movsi_s): New.  Special case for
11884         storing a 20-bit symbol into a 32-bit register.
11885         * config/msp430/msp430.c (msp430_subreg): Add support for it.
11886         * config/msp430/predicates.md (msp430_symbol_operand): New.
11888 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
11890         * c-family/c-common.c (noplt): New attribute.
11891         (handle_noplt_attribute): New handler.
11892         * calls.c (prepare_call_address): Check for noplt
11893         attribute.
11894         * config/i386/i386.c (ix86_expand_call): Check
11895         for noplt attribute.
11896         (ix86_nopic_noplt_attribute_p): New function.
11897         (ix86_output_call_insn): Output indirect call for non-pic
11898         no plt calls.
11899         * doc/extend.texi (noplt): Document new attribute.
11900         * doc/invoke.texi: Document new attribute.
11902 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
11904         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
11905         real.h, and fixed-value.h when included in host source files.
11906         * double-int.h: Remove redundant #includes listed above.
11907         * fixed-value.h: Likewise.
11908         * real.h: Likewise.
11909         * wide-int.h: Likewise.
11910         * inchash.h: Likewise.
11911         * rtl.h: Add some include files When included from a generator file.
11912         * target.h: Remove wide-int.h and insn-modes.h from the include list.
11913         * internal-fn.h: Don't include coretypes.h.
11914         * alias.c: Adjust includes for restructured coretypes.h.
11915         * asan.c: Likewise.
11916         * attribs.c: Likewise.
11917         * auto-inc-dec.c: Likewise.
11918         * auto-profile.c: Likewise.
11919         * bb-reorder.c: Likewise.
11920         * bt-load.c: Likewise.
11921         * builtins.c: Likewise.
11922         * caller-save.c: Likewise.
11923         * calls.c: Likewise.
11924         * ccmp.c: Likewise.
11925         * cfg.c: Likewise.
11926         * cfganal.c: Likewise.
11927         * cfgbuild.c: Likewise.
11928         * cfgcleanup.c: Likewise.
11929         * cfgexpand.c: Likewise.
11930         * cfghooks.c: Likewise.
11931         * cfgloop.c: Likewise.
11932         * cfgloop.h: Likewise.
11933         * cfgloopanal.c: Likewise.
11934         * cfgloopmanip.c: Likewise.
11935         * cfgrtl.c: Likewise.
11936         * cgraph.c: Likewise.
11937         * cgraphbuild.c: Likewise.
11938         * cgraphclones.c: Likewise.
11939         * cgraphunit.c: Likewise.
11940         * cilk-common.c: Likewise.
11941         * combine-stack-adj.c: Likewise.
11942         * combine.c: Likewise.
11943         * compare-elim.c: Likewise.
11944         * convert.c: Likewise.
11945         * coverage.c: Likewise.
11946         * cppbuiltin.c: Likewise.
11947         * cprop.c: Likewise.
11948         * cse.c: Likewise.
11949         * cselib.c: Likewise.
11950         * data-streamer-in.c: Likewise.
11951         * data-streamer-out.c: Likewise.
11952         * data-streamer.c: Likewise.
11953         * dbxout.c: Likewise.
11954         * dce.c: Likewise.
11955         * ddg.c: Likewise.
11956         * debug.c: Likewise.
11957         * df-core.c: Likewise.
11958         * df-problems.c: Likewise.
11959         * df-scan.c: Likewise.
11960         * df.h: Likewise.
11961         * dfp.c: Likewise.
11962         * dojump.c: Likewise.
11963         * dominance.c: Likewise.
11964         * domwalk.c: Likewise.
11965         * double-int.c: Likewise.
11966         * dse.c: Likewise.
11967         * dumpfile.c: Likewise.
11968         * dwarf2asm.c: Likewise.
11969         * dwarf2cfi.c: Likewise.
11970         * dwarf2out.c: Likewise.
11971         * dwarf2out.h: Likewise.
11972         * emit-rtl.c: Likewise.
11973         * et-forest.c: Likewise.
11974         * except.c: Likewise.
11975         * explow.c: Likewise.
11976         * expmed.c: Likewise.
11977         * expr.c: Likewise.
11978         * final.c: Likewise.
11979         * fixed-value.c: Likewise.
11980         * fold-const.c: Likewise.
11981         * function.c: Likewise.
11982         * fwprop.c: Likewise.
11983         * gcc-plugin.h: Likewise.
11984         * gcse.c: Likewise.
11985         * generic-match-head.c: Likewise.
11986         * ggc-page.c: Likewise.
11987         * gimple-builder.c: Likewise.
11988         * gimple-expr.c: Likewise.
11989         * gimple-fold.c: Likewise.
11990         * gimple-iterator.c: Likewise.
11991         * gimple-low.c: Likewise.
11992         * gimple-match-head.c: Likewise.
11993         * gimple-pretty-print.c: Likewise.
11994         * gimple-ssa-isolate-paths.c: Likewise.
11995         * gimple-ssa-strength-reduction.c: Likewise.
11996         * gimple-streamer-in.c: Likewise.
11997         * gimple-streamer-out.c: Likewise.
11998         * gimple-streamer.h: Likewise.
11999         * gimple-walk.c: Likewise.
12000         * gimple.c: Likewise.
12001         * gimplify-me.c: Likewise.
12002         * gimplify.c: Likewise.
12003         * godump.c: Likewise.
12004         * graph.c: Likewise.
12005         * graphite-blocking.c: Likewise.
12006         * graphite-dependences.c: Likewise.
12007         * graphite-interchange.c: Likewise.
12008         * graphite-isl-ast-to-gimple.c: Likewise.
12009         * graphite-optimize-isl.c: Likewise.
12010         * graphite-poly.c: Likewise.
12011         * graphite-scop-detection.c: Likewise.
12012         * graphite-sese-to-poly.c: Likewise.
12013         * graphite.c: Likewise.
12014         * haifa-sched.c: Likewise.
12015         * hooks.h: Likewise.
12016         * hw-doloop.c: Likewise.
12017         * ifcvt.c: Likewise.
12018         * incpath.c: Likewise.
12019         * init-regs.c: Likewise.
12020         * internal-fn.c: Likewise.
12021         * ipa-chkp.c: Likewise.
12022         * ipa-comdats.c: Likewise.
12023         * ipa-cp.c: Likewise.
12024         * ipa-devirt.c: Likewise.
12025         * ipa-icf-gimple.c: Likewise.
12026         * ipa-icf.c: Likewise.
12027         * ipa-inline-analysis.c: Likewise.
12028         * ipa-inline-transform.c: Likewise.
12029         * ipa-inline.c: Likewise.
12030         * ipa-polymorphic-call.c: Likewise.
12031         * ipa-profile.c: Likewise.
12032         * ipa-prop.c: Likewise.
12033         * ipa-pure-const.c: Likewise.
12034         * ipa-ref.c: Likewise.
12035         * ipa-reference.c: Likewise.
12036         * ipa-split.c: Likewise.
12037         * ipa-utils.c: Likewise.
12038         * ipa-visibility.c: Likewise.
12039         * ipa.c: Likewise.
12040         * ira-build.c: Likewise.
12041         * ira-color.c: Likewise.
12042         * ira-conflicts.c: Likewise.
12043         * ira-costs.c: Likewise.
12044         * ira-emit.c: Likewise.
12045         * ira-lives.c: Likewise.
12046         * ira.c: Likewise.
12047         * jump.c: Likewise.
12048         * langhooks.c: Likewise.
12049         * lcm.c: Likewise.
12050         * loop-doloop.c: Likewise.
12051         * loop-init.c: Likewise.
12052         * loop-invariant.c: Likewise.
12053         * loop-iv.c: Likewise.
12054         * loop-unroll.c: Likewise.
12055         * lower-subreg.c: Likewise.
12056         * lra-assigns.c: Likewise.
12057         * lra-coalesce.c: Likewise.
12058         * lra-constraints.c: Likewise.
12059         * lra-eliminations.c: Likewise.
12060         * lra-lives.c: Likewise.
12061         * lra-remat.c: Likewise.
12062         * lra-spills.c: Likewise.
12063         * lra.c: Likewise.
12064         * lto-cgraph.c: Likewise.
12065         * lto-compress.c: Likewise.
12066         * lto-opts.c: Likewise.
12067         * lto-section-in.c: Likewise.
12068         * lto-section-out.c: Likewise.
12069         * lto-streamer-in.c: Likewise.
12070         * lto-streamer-out.c: Likewise.
12071         * lto-streamer.c: Likewise.
12072         * mcf.c: Likewise.
12073         * mode-switching.c: Likewise.
12074         * modulo-sched.c: Likewise.
12075         * omega.c: Likewise.
12076         * omp-low.c: Likewise.
12077         * optabs.c: Likewise.
12078         * opts-global.c: Likewise.
12079         * passes.c: Likewise.
12080         * plugin.c: Likewise.
12081         * postreload-gcse.c: Likewise.
12082         * postreload.c: Likewise.
12083         * predict.c: Likewise.
12084         * print-rtl.c: Likewise.
12085         * print-tree.c: Likewise.
12086         * profile.c: Likewise.
12087         * real.c: Likewise.
12088         * realmpfr.c: Likewise.
12089         * realmpfr.h: Likewise.
12090         * recog.c: Likewise.
12091         * ree.c: Likewise.
12092         * reg-stack.c: Likewise.
12093         * regcprop.c: Likewise.
12094         * reginfo.c: Likewise.
12095         * regrename.c: Likewise.
12096         * regs.h: Likewise.
12097         * regstat.c: Likewise.
12098         * reload.c: Likewise.
12099         * reload1.c: Likewise.
12100         * reorg.c: Likewise.
12101         * resource.c: Likewise.
12102         * rtl-chkp.c: Likewise.
12103         * rtlanal.c: Likewise.
12104         * rtlhooks.c: Likewise.
12105         * sanopt.c: Likewise.
12106         * sched-deps.c: Likewise.
12107         * sched-ebb.c: Likewise.
12108         * sched-rgn.c: Likewise.
12109         * sched-vis.c: Likewise.
12110         * sdbout.c: Likewise.
12111         * sel-sched-dump.c: Likewise.
12112         * sel-sched-ir.c: Likewise.
12113         * sel-sched.c: Likewise.
12114         * sese.c: Likewise.
12115         * shrink-wrap.c: Likewise.
12116         * shrink-wrap.h: Likewise.
12117         * simplify-rtx.c: Likewise.
12118         * stack-ptr-mod.c: Likewise.
12119         * statistics.c: Likewise.
12120         * stmt.c: Likewise.
12121         * stor-layout.c: Likewise.
12122         * store-motion.c: Likewise.
12123         * stringpool.c: Likewise.
12124         * symtab.c: Likewise.
12125         * target-globals.c: Likewise.
12126         * targhooks.c: Likewise.
12127         * toplev.c: Likewise.
12128         * tracer.c: Likewise.
12129         * trans-mem.c: Likewise.
12130         * tree-affine.c: Likewise.
12131         * tree-affine.h: Likewise.
12132         * tree-browser.c: Likewise.
12133         * tree-call-cdce.c: Likewise.
12134         * tree-cfg.c: Likewise.
12135         * tree-cfgcleanup.c: Likewise.
12136         * tree-chkp-opt.c: Likewise.
12137         * tree-chkp.c: Likewise.
12138         * tree-chrec.c: Likewise.
12139         * tree-complex.c: Likewise.
12140         * tree-data-ref.c: Likewise.
12141         * tree-dfa.c: Likewise.
12142         * tree-diagnostic.c: Likewise.
12143         * tree-dump.c: Likewise.
12144         * tree-eh.c: Likewise.
12145         * tree-emutls.c: Likewise.
12146         * tree-if-conv.c: Likewise.
12147         * tree-inline.c: Likewise.
12148         * tree-into-ssa.c: Likewise.
12149         * tree-iterator.c: Likewise.
12150         * tree-loop-distribution.c: Likewise.
12151         * tree-nested.c: Likewise.
12152         * tree-nrv.c: Likewise.
12153         * tree-object-size.c: Likewise.
12154         * tree-outof-ssa.c: Likewise.
12155         * tree-parloops.c: Likewise.
12156         * tree-phinodes.c: Likewise.
12157         * tree-predcom.c: Likewise.
12158         * tree-pretty-print.c: Likewise.
12159         * tree-pretty-print.h: Likewise.
12160         * tree-profile.c: Likewise.
12161         * tree-scalar-evolution.c: Likewise.
12162         * tree-sra.c: Likewise.
12163         * tree-ssa-address.c: Likewise.
12164         * tree-ssa-alias.c: Likewise.
12165         * tree-ssa-ccp.c: Likewise.
12166         * tree-ssa-coalesce.c: Likewise.
12167         * tree-ssa-copy.c: Likewise.
12168         * tree-ssa-copyrename.c: Likewise.
12169         * tree-ssa-dce.c: Likewise.
12170         * tree-ssa-dom.c: Likewise.
12171         * tree-ssa-dse.c: Likewise.
12172         * tree-ssa-forwprop.c: Likewise.
12173         * tree-ssa-ifcombine.c: Likewise.
12174         * tree-ssa-live.c: Likewise.
12175         * tree-ssa-loop-ch.c: Likewise.
12176         * tree-ssa-loop-im.c: Likewise.
12177         * tree-ssa-loop-ivcanon.c: Likewise.
12178         * tree-ssa-loop-ivopts.c: Likewise.
12179         * tree-ssa-loop-manip.c: Likewise.
12180         * tree-ssa-loop-niter.c: Likewise.
12181         * tree-ssa-loop-prefetch.c: Likewise.
12182         * tree-ssa-loop-unswitch.c: Likewise.
12183         * tree-ssa-loop.c: Likewise.
12184         * tree-ssa-loop.h: Likewise.
12185         * tree-ssa-math-opts.c: Likewise.
12186         * tree-ssa-operands.c: Likewise.
12187         * tree-ssa-phiopt.c: Likewise.
12188         * tree-ssa-phiprop.c: Likewise.
12189         * tree-ssa-pre.c: Likewise.
12190         * tree-ssa-propagate.c: Likewise.
12191         * tree-ssa-reassoc.c: Likewise.
12192         * tree-ssa-sccvn.c: Likewise.
12193         * tree-ssa-scopedtables.c: Likewise.
12194         * tree-ssa-sink.c: Likewise.
12195         * tree-ssa-strlen.c: Likewise.
12196         * tree-ssa-structalias.c: Likewise.
12197         * tree-ssa-tail-merge.c: Likewise.
12198         * tree-ssa-ter.c: Likewise.
12199         * tree-ssa-threadedge.c: Likewise.
12200         * tree-ssa-threadupdate.c: Likewise.
12201         * tree-ssa-uncprop.c: Likewise.
12202         * tree-ssa-uninit.c: Likewise.
12203         * tree-ssa.c: Likewise.
12204         * tree-ssanames.c: Likewise.
12205         * tree-stdarg.c: Likewise.
12206         * tree-streamer-in.c: Likewise.
12207         * tree-streamer-out.c: Likewise.
12208         * tree-streamer.c: Likewise.
12209         * tree-switch-conversion.c: Likewise.
12210         * tree-tailcall.c: Likewise.
12211         * tree-vect-data-refs.c: Likewise.
12212         * tree-vect-generic.c: Likewise.
12213         * tree-vect-loop-manip.c: Likewise.
12214         * tree-vect-loop.c: Likewise.
12215         * tree-vect-patterns.c: Likewise.
12216         * tree-vect-slp.c: Likewise.
12217         * tree-vect-stmts.c: Likewise.
12218         * tree-vectorizer.c: Likewise.
12219         * tree-vrp.c: Likewise.
12220         * tree.c: Likewise.
12221         * tsan.c: Likewise.
12222         * ubsan.c: Likewise.
12223         * valtrack.c: Likewise.
12224         * value-prof.c: Likewise.
12225         * var-tracking.c: Likewise.
12226         * varasm.c: Likewise.
12227         * varpool.c: Likewise.
12228         * vmsdbgout.c: Likewise.
12229         * vtable-verify.c: Likewise.
12230         * web.c: Likewise.
12231         * wide-int-print.cc: Likewise.
12232         * wide-int-print.h: Likewise.
12233         * wide-int.cc: Likewise.
12234         * xcoffout.c: Likewise.
12235         * config/aarch64/aarch64-builtins.c: Likewise.
12236         * config/aarch64/aarch64.c: Likewise.
12237         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12238         * config/alpha/alpha.c: Likewise.
12239         * config/arc/arc.c: Likewise.
12240         * config/arm/aarch-common.c: Likewise.
12241         * config/arm/arm-builtins.c: Likewise.
12242         * config/arm/arm-c.c: Likewise.
12243         * config/arm/arm.c: Likewise.
12244         * config/avr/avr-c.c: Likewise.
12245         * config/avr/avr-log.c: Likewise.
12246         * config/avr/avr.c: Likewise.
12247         * config/bfin/bfin.c: Likewise.
12248         * config/c6x/c6x.c: Likewise.
12249         * config/cr16/cr16.c: Likewise.
12250         * config/cris/cris.c: Likewise.
12251         * config/darwin-c.c: Likewise.
12252         * config/darwin.c: Likewise.
12253         * config/default-c.c: Likewise.
12254         * config/epiphany/epiphany.c: Likewise.
12255         * config/epiphany/mode-switch-use.c: Likewise.
12256         * config/epiphany/resolve-sw-modes.c: Likewise.
12257         * config/fr30/fr30.c: Likewise.
12258         * config/frv/frv.c: Likewise.
12259         * config/ft32/ft32.c: Likewise.
12260         * config/glibc-c.c: Likewise.
12261         * config/h8300/h8300.c: Likewise.
12262         * config/i386/i386-c.c: Likewise.
12263         * config/i386/i386.c: Likewise.
12264         * config/i386/msformat-c.c: Likewise.
12265         * config/i386/winnt-cxx.c: Likewise.
12266         * config/i386/winnt-stubs.c: Likewise.
12267         * config/i386/winnt.c: Likewise.
12268         * config/ia64/ia64-c.c: Likewise.
12269         * config/ia64/ia64.c: Likewise.
12270         * config/iq2000/iq2000.c: Likewise.
12271         * config/lm32/lm32.c: Likewise.
12272         * config/m32c/m32c-pragma.c: Likewise.
12273         * config/m32c/m32c.c: Likewise.
12274         * config/m32r/m32r.c: Likewise.
12275         * config/m68k/m68k.c: Likewise.
12276         * config/mcore/mcore.c: Likewise.
12277         * config/mep/mep-pragma.c: Likewise.
12278         * config/mep/mep.c: Likewise.
12279         * config/microblaze/microblaze-c.c: Likewise.
12280         * config/microblaze/microblaze.c: Likewise.
12281         * config/mips/mips.c: Likewise.
12282         * config/mmix/mmix.c: Likewise.
12283         * config/mn10300/mn10300.c: Likewise.
12284         * config/moxie/moxie.c: Likewise.
12285         * config/msp430/msp430-c.c: Likewise.
12286         * config/msp430/msp430.c: Likewise.
12287         * config/nds32/nds32-cost.c: Likewise.
12288         * config/nds32/nds32-fp-as-gp.c: Likewise.
12289         * config/nds32/nds32-intrinsic.c: Likewise.
12290         * config/nds32/nds32-isr.c: Likewise.
12291         * config/nds32/nds32-md-auxiliary.c: Likewise.
12292         * config/nds32/nds32-memory-manipulation.c: Likewise.
12293         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12294         * config/nds32/nds32-predicates.c: Likewise.
12295         * config/nds32/nds32.c: Likewise.
12296         * config/nios2/nios2.c: Likewise.
12297         * config/nvptx/nvptx.c: Likewise.
12298         * config/pa/pa.c: Likewise.
12299         * config/pdp11/pdp11.c: Likewise.
12300         * config/rl78/rl78-c.c: Likewise.
12301         * config/rl78/rl78.c: Likewise.
12302         * config/rs6000/rs6000-c.c: Likewise.
12303         * config/rs6000/rs6000.c: Likewise.
12304         * config/rx/rx.c: Likewise.
12305         * config/s390/s390-c.c: Likewise.
12306         * config/s390/s390.c: Likewise.
12307         * config/sh/sh-c.c: Likewise.
12308         * config/sh/sh-mem.cc: Likewise.
12309         * config/sh/sh.c: Likewise.
12310         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12311         * config/sh/sh_treg_combine.cc: Likewise.
12312         * config/sol2-c.c: Likewise.
12313         * config/sol2-cxx.c: Likewise.
12314         * config/sol2-stubs.c: Likewise.
12315         * config/sol2.c: Likewise.
12316         * config/sparc/sparc-c.c: Likewise.
12317         * config/sparc/sparc.c: Likewise.
12318         * config/spu/spu-c.c: Likewise.
12319         * config/spu/spu.c: Likewise.
12320         * config/stormy16/stormy16.c: Likewise.
12321         * config/tilegx/mul-tables.c: Likewise.
12322         * config/tilegx/tilegx-c.c: Likewise.
12323         * config/tilegx/tilegx.c: Likewise.
12324         * config/tilepro/mul-tables.c: Likewise.
12325         * config/tilepro/tilepro-c.c: Likewise.
12326         * config/tilepro/tilepro.c: Likewise.
12327         * config/v850/v850-c.c: Likewise.
12328         * config/v850/v850.c: Likewise.
12329         * config/vax/vax.c: Likewise.
12330         * config/visium/visium.c: Likewise.
12331         * config/vms/vms-c.c: Likewise.
12332         * config/vms/vms.c: Likewise.
12333         * config/vxworks.c: Likewise.
12334         * config/winnt-c.c: Likewise.
12335         * config/xtensa/xtensa.c: Likewise.
12336         * common/config/bfin/bfin-common.c: Likewise.
12338 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
12340         * tree.h (tree_code_for_canonical_type_merging): New function.
12341         * tree.c (gimple_canonical_types_compatible_p): Use
12342         tree_code_for_canonical_type_merging..
12344 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12346         PR c++/66192
12347         PR target/66200
12348         * doc/tm.texi: Regenerate.
12349         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
12350         * target.def (TARGET_RELAXED_ORDERING): Likewise.
12351         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
12352         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
12353         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
12354         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
12355         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
12356         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
12357         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
12359 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12361         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
12362         register fma steering pass.
12363         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
12364         AARCH64_TUNE_FMA_STEERING.
12366 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
12368         * tree.c (verify_type_variant): Verify that type and variant is
12369         compatible.
12370         (gimple_canonical_types_compatible_p): Look for main variants.
12372 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12374         * config.gcc (powerpc*-*-*): Add support for a new configure
12375         option --with-advance-toolchain=<xxx> which overrides using the
12376         default header files, libraries and dynamic linker.
12378         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
12379         specs to support the configure --with-advance-toolchain=<xxx>
12380         option.
12381         (INCLUDE_EXTRA_SPEC): Likewise.
12382         (LINK_OS_EXTRA_SPEC32): Likewise.
12383         (LINK_OK_EXTRA_SPEC64): Likewise.
12384         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
12385         (DYNAMIC_LINKER_PREFIX): Likewise.
12386         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
12387         toolchain support.
12388         (GLIBC_DYNAMIC_LINKER32): Likewise.
12389         (GLIBC_DYNAMIC_LINKER64): Likewise.
12390         (LINK_OS_LINUX_SPEC32): Likewise.
12391         (LINK_OS_LINUX_SPEC64): Likewise.
12393         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
12394         configuration option.
12396 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
12398         PR target/66275
12399         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
12400         to determine current function ABI.
12401         (ix86_function_value_regno_p): Ditto.
12403 2015-06-03  Martin Liska  <mliska@suse.cz>
12405         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
12406         * bitmap.h (struct bitmap_usage): Likewise.
12407         * ggc-common.c (struct ggc_usage): Likewise.
12408         * mem-stats.h (struct mem_location): Likewise.
12409         (struct mem_usage): Likewise.
12410         * vec.c (struct vec_usage): Likewise.
12412 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
12414         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
12415         -Bsymbolic.
12417 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
12419         * doc/plugins.texi (enum plugin_event): New event.
12420         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
12421         and PLUGIN_FINISH_FUNCTION.
12422         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
12423         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
12425 2015-06-03  Richard Biener  <rguenther@suse.de>
12427         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12428         compute GROUP_GAP for the first element.
12429         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
12430         on in-group gaps.
12432 2015-06-03  Nick Clifton  <nickc@redhat.com>
12434         * config/rl78/rl78-real.md: Add peepholes to avoid a register
12435         copy when calling a function.
12436         * config/rl78/rl78.c (need_to_save): Do not push the frame
12437         pointer in an interrupt handler prologue if it is never used.
12439 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12441         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
12443 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12445         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
12446         reference when cloning alias node.
12448 2015-06-03  Martin Liska  <mliska@suse.cz>
12450         * alloc-pool.h (struct pool_usage): Correct space padding.
12451         * ggc-page.c (ggc_print_statistics): Align columns in a report.
12452         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
12453         * tree.c (dump_tree_statistics): Align columns in a report.
12455 2015-06-03  Martin Liska  <mliska@suse.cz>
12457         * alloc-pool.c (allocate_pool_descriptor): Remove.
12458         (struct pool_output_info): Likewise.
12459         (print_alloc_pool_statistics): Likewise.
12460         (dump_alloc_pool_statistics): Likewise.
12461         * alloc-pool.h (struct pool_usage): New struct.
12462         (pool_allocator::initialize): Change usage of memory statistics
12463         to a new interface.
12464         (pool_allocator::release): Likewise.
12465         (pool_allocator::allocate): Likewise.
12466         (pool_allocator::remove): Likewise.
12467         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
12468         for a pool allocator.
12469         * mem-stats.h (struct mem_location): Add new ctor.
12470         (struct mem_usage): Add counter for number of
12471         instances.
12472         (mem_alloc_description::register_descriptor): New overload of
12473         * mem-stats.h (mem_location::to_string): New function.
12474         * bitmap.h (struct bitmap_usage): Use this new function.
12475         * ggc-common.c (struct ggc_usage): Likewise.
12476         the function.
12478 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12480         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
12481         of GCC_INSN_FLAGS_H block.
12483 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
12485         * explow.c (plus_constant): Update check after force_const_mem call
12486         to see if the value returned is not a NULL_RTX.
12488 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12490         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
12491         remove instumentation thunks calling reachable functions.
12492         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
12493         * lto/lto-partition.c (privatize_symbol_name_1): New.
12494         (privatize_symbol_name): Privatize both decl and orig_decl
12495         names for instrumented functions.
12496         * cgraph.c (cgraph_node::verify_node): Add transparent
12497         alias chain check for instrumented node.
12499 2015-06-03  Marek Polacek  <polacek@redhat.com>
12501         PR c/64223
12502         PR c/29358
12503         * tree.c (attribute_value_equal): Handle attribute format.
12504         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
12506 2015-06-03  Richard Biener  <rguenther@suse.de>
12508         PR tree-optimization/63916
12509         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12510         Forward-propagate non-invariant addresses by splicing their
12511         reference ops if the result isn't going to be used by PRE.
12512         (vn_reference_lookup_3): Remove pointless assert.
12514 2015-06-03  Richard Biener  <rguenther@suse.de>
12516         PR tree-optimization/66375
12517         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
12518         add to the evolution before following SSA edges.
12520 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
12522         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
12523         (dump_use, dump_cand, find_induction_variables): Pass new argument
12524         to dump_iv.
12525         (record_use): Preserve the ssa name information in IV.
12527 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12529         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
12530         NO_MODE_TEST.
12531         (add_mode_tests): Don't add mode tests if the predicate only
12532         accepts scalar constant integers.  Otherwise, allow the mode
12533         of "op" to be VOIDmode if the predicate does accept such integers.
12535 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
12537         PR target/66258
12538         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
12539         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
12540         (aarch64_secondary_reload): Likewise
12541         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
12542         to !TARGET_FLOAT.
12543         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
12544         Likewise.
12546 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
12547             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12549         PR target/65768
12550         * cprop.c (try_replace_reg): Check cost of constants before propagating.
12552 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12554         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
12555         provide access to the IBM extended double floating point mode if
12556         long double is IEEE 128-bit floating point.
12557         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
12558         point if long double is the IBM extended double type.
12560         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
12561         enable adding IEEE 128-bit floating point support.
12562         (-mfloat128-software): Likewise.
12563         (-mfloat128-sw): Likewise.
12565         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
12566         128-bit floating point types to occupy any register if
12567         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
12568         -mfloat128-software is enabled.
12569         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
12570         support.
12571         (rs6000_option_override_internal): Add -mfloat128-* support.
12572         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
12574         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
12575         and float128 type nodes.
12576         (ieee128_float_type_node): Likewise.
12577         (ibm128_float_type_node): Likewise.
12579 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12581         PR target/66136
12582         * config/aarch64/geniterators.sh: Rewrite in awk.
12584 2015-06-02  Martin Liska  <mliska@suse.cz>
12586         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
12587         values to avoid -Wmaybe-uninitialized errors.
12589 2015-06-02  Richard Biener  <rguenther@suse.de>
12591         PR debug/65549
12592         * dwarf2out.c (lookup_context_die): New function.
12593         (resolve_addr): Avoid forcing a full DIE for the
12594         target of a DW_TAG_GNU_call_site during late compilation.
12595         Instead create a stub DIE without a type if we have a
12596         context DIE present.
12598 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
12600         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
12602 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12604         PR tree-optimization/48052
12605         * cfgloop.h (struct control_iv): New.
12606         (struct loop): New field control_ivs.
12607         * tree-ssa-loop-niter.c : Include "stor-layout.h".
12608         (number_of_iterations_lt): Set no_overflow information.
12609         (number_of_iterations_exit): Init control iv in niter struct.
12610         (record_control_iv): New.
12611         (estimate_numbers_of_iterations_loop): Call record_control_iv.
12612         (loop_exits_before_overflow): New.  Interface factored out of
12613         scev_probably_wraps_p.
12614         (scev_probably_wraps_p): Factor loop niter related code into
12615         loop_exits_before_overflow.
12616         (free_numbers_of_iterations_estimates_loop): Free control ivs.
12617         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
12619 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
12621         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
12622         the target doesn't belong to the current function.
12624 2015-06-02  Marek Polacek  <polacek@redhat.com>
12626         PR middle-end/66345
12627         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
12628         get_maxval_strlen does not produce an INTEGER_CST.
12630 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
12632         * config/arc/constraints.md: Use lower-case names in match_code.
12633         * config/mmix/constraints.md: Likewise.
12635 2015-06-02  Richard Biener  <rguenther@suse.de>
12637         PR tree-optimization/65961
12638         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
12639         check and clarify dump message.
12640         (vect_build_slp_tree): If all children are built up from scalars
12641         build up the parent from scalars instead.
12642         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
12644 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12646         PR other/65366
12647         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
12648         instead of print ... .
12650 2015-06-02  Alan Modra  <amodra@gmail.com>
12652         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
12653         2014-08-11 change.
12655 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12657         PR tree-optimization/52563
12658         PR tree-optimization/62173
12659         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
12660         (alloc_iv, set_iv): New parameter.
12661         (determine_biv_step): Delete.
12662         (find_bivs): Inline original determine_biv_step.  Pass new
12663         argument to set_iv.
12664         (idx_find_step): Use no_overflow information for conversion.
12665         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
12666         resolve_mixers handle folded_casts.
12667         (instantiate_scev_name): Change bool parameter to bool pointer.
12668         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
12669         (instantiate_array_ref, instantiate_scev_not): Ditto.
12670         (instantiate_scev_3, instantiate_scev_2): Ditto.
12671         (instantiate_scev_1, instantiate_scev_r): Ditto.
12672         (instantiate_scev_convert, ): Change parameter.  Pass argument
12673         to chrec_convert_aggressive.
12674         (instantiate_scev): Change argument.
12675         (resolve_mixers): New parameter and set it.
12676         (scev_const_prop): New argument.
12677         * tree-scalar-evolution.h (resolve_mixers): New parameter.
12678         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
12679         of chrec_conert_1.
12680         (chrec_convert): New parameter.  Move definition below.
12681         (chrec_convert_aggressive): New parameter and set it.  Call
12682         convert_affine_scev.
12683         * tree-chrec.h (chrec_convert): New parameter.
12684         (chrec_convert_aggressive): Ditto.
12686 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12688         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
12689         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
12690         the LHS of a no-return call if its type has variable size.
12691         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12692         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
12694 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
12696         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
12697         * config.in: Regenerate.
12699 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
12701         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12702         consecutive accesses within outer-loop with force_vectorize
12703         for references with zero step in inner-loop.
12705 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12707         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
12708         rather than from gcc/build directory.
12710 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12712         PR target/65697
12713         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
12714         for __sync memory models, emit initial loads and final barriers as
12715         appropriate.
12717 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12719         PR target/65697
12720         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
12721         (aarch64_split_atomic_op): Check for __sync memory models, emit
12722         appropriate initial loads and final barriers.
12724 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12726         * Makefile.in: Fix gcov dependencies that should
12727         not point to a build folder.
12729 2015-06-01  Richard Biener  <rguenther@suse.de>
12731         Revert
12732         2015-05-29  Richard Biener  <rguenther@suse.de>
12734         PR tree-optimization/66314
12735         * tree-ssa-threadupdate.c (create_block_for_threading): Add
12736         parameter that says which loop the new block belongs to.
12737         (ssa_create_duplicates): Blocks duplicated for the threaded
12738         path belong to the loop of the thread destination.
12740 2015-06-01  Martin Liska  <mliska@suse.cz>
12742         * sched-deps.c: Include pool-alloc.h before
12743         cselib.h header file is included.
12745 2015-06-01  Richard Biener  <rguenther@suse.de>
12747         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
12748         functions.
12750 2015-06-01  Martin Liska  <mliska@suse.cz>
12752         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
12753         a function local variable.
12755 2015-06-01  Martin Liska  <mliska@suse.cz>
12757         * alloc-pool.c (create_alloc_pool): Remove.
12758         (empty_alloc_pool): Likewise.
12759         (free_alloc_pool): Likewise.
12760         (free_alloc_pool_if_empty): Likewise.
12761         (pool_alloc): Likewise.
12762         (pool_free): Likewise.
12763         * alloc-pool.h: Remove old declarations.
12765 2015-06-01  Martin Liska  <mliska@suse.cz>
12767         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
12768         (ira_create_object): Likewise.
12769         (ira_create_allocno): Likewise.
12770         (ira_create_live_range): Likewise.
12771         (copy_live_range): Likewise.
12772         (ira_finish_live_range): Likewise.
12773         (ira_free_allocno_costs): Likewise.
12774         (finish_allocno): Likewise.
12775         (finish_allocnos): Likewise.
12776         (initiate_prefs): Likewise.
12777         (ira_create_pref): Likewise.
12778         (finish_pref): Likewise.
12779         (finish_prefs): Likewise.
12780         (initiate_copies): Likewise.
12781         (ira_create_copy): Likewise.
12782         (finish_copy): Likewise.
12783         (finish_copies): Likewise.
12784         (finish_prefs): Likewise.
12786 2015-06-01  Martin Liska  <mliska@suse.cz>
12788         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
12789         (allocate_and_init_ipcp_value): Likewise.
12790         (ipcp_lattice::add_value): Likewise.
12791         (merge_agg_lats_step): Likewise.
12792         (ipcp_driver): Likewise.
12793         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
12794         (ipa_free_all_structures_after_iinln): Likewise.
12795         * ipa-prop.h: Likewise.
12797 2015-06-01  Martin Liska  <mliska@suse.cz>
12799         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
12800         pool allocator.
12801         (set_hint_predicate): Likewise.
12802         (inline_summary_alloc): Likewise.
12803         (reset_inline_edge_summary): Likewise.
12804         (reset_inline_summary): Likewise.
12805         (set_cond_stmt_execution_predicate): Likewise.
12806         (set_switch_stmt_execution_predicate): Likewise.
12807         (compute_bb_predicates): Likewise.
12808         (estimate_function_body_sizes): Likewise.
12809         (inline_free_summary): Likewise.
12811 2015-06-01  Martin Liska  <mliska@suse.cz>
12813         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
12814         (ipa_edge_duplication_hook): Likewise.
12815         (ipa_free_all_structures_after_ipa_cp): Likewise.
12816         (ipa_free_all_structures_after_iinln): Likewise.
12818 2015-06-01  Martin Liska  <mliska@suse.cz>
12820         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
12821         (ipa_profile_generate_summary): Likewise.
12822         (ipa_profile_read_summary): Likewise.
12823         (ipa_profile): Likewise.
12825 2015-06-01  Martin Liska  <mliska@suse.cz>
12827         * tree-ssa-structalias.c (new_var_info): Use new type-based
12828         pool allocator.
12829         (new_constraint): Likewise.
12830         (init_alias_vars): Likewise.
12831         (delete_points_to_sets): Likewise.
12833 2015-06-01  Martin Liska  <mliska@suse.cz>
12835         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
12836         (free_strinfo): Likewise.
12837         (pass_strlen::execute): Likewise.
12839 2015-06-01  Martin Liska  <mliska@suse.cz>
12841         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
12842         pool allocator.
12843         (vn_reference_insert_pieces): Likewise.
12844         (vn_phi_insert): Likewise.
12845         (visit_reference_op_call): Likewise.
12846         (copy_phi): Likewise.
12847         (copy_reference): Likewise.
12848         (process_scc): Likewise.
12849         (allocate_vn_table): Likewise.
12850         (free_vn_table): Likewise.
12852 2015-06-01  Martin Liska  <mliska@suse.cz>
12854         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
12855         pool allocator.
12856         (add_repeat_to_ops_vec): Likewise.
12857         (get_ops): Likewise.
12858         (maybe_optimize_range_tests): Likewise.
12859         (init_reassoc): Likewise.
12860         (fini_reassoc): Likewise.
12862 2015-06-01  Martin Liska  <mliska@suse.cz>
12864         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
12865         pool allocator.
12866         (bitmap_set_new): Likewise.
12867         (get_or_alloc_expr_for_constant): Likewise.
12868         (get_or_alloc_expr_for): Likewise.
12869         (phi_translate_1): Likewise.
12870         (compute_avail): Likewise.
12871         (init_pre): Likewise.
12872         (fini_pre): Likewise.
12874 2015-06-01  Martin Liska  <mliska@suse.cz>
12876         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
12877         (delete_dep_node): Likewise.
12878         (create_deps_list): Likewise.
12879         (free_deps_list): Likewise.
12880         (sched_deps_init): Likewise.
12881         (sched_deps_finish): Likewise.
12883 2015-06-01  Martin Liska  <mliska@suse.cz>
12885         * regcprop.c (free_debug_insn_changes): Use new type-based
12886         pool allocator.
12887         (replace_oldest_value_reg): Likewise.
12888         (pass_cprop_hardreg::execute): Likewise.
12890 2015-06-01  Martin Liska  <mliska@suse.cz>
12892         * ira-build.c (initiate_cost_vectors): Use new type-based
12893         pool allocator.
12894         (ira_allocate_cost_vector): Likewise.
12895         (ira_free_cost_vector): Likewise.
12896         (finish_cost_vectors): Likewise.
12898 2015-06-01  Martin Liska  <mliska@suse.cz>
12900         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
12901         pool allocator.
12902         (free_sched_pools): Likewise.
12903         * sel-sched-ir.h (_list_alloc): Likewise.
12904         (_list_remove): Likewise.
12906 2015-06-01  Martin Liska  <mliska@suse.cz>
12908         * stmt.c (add_case_node): Use new type-based pool allocator.
12909         (expand_case): Likewise.
12910         (expand_sjlj_dispatch_table): Likewise.
12912 2015-06-01  Martin Liska  <mliska@suse.cz>
12914         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
12915         (free_bb): Likewise.
12916         (pass_cse_reciprocals::execute): Likewise.
12918 2015-06-01  Martin Liska  <mliska@suse.cz>
12920         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
12921         (sra_deinitialize) Likewise.
12922         (create_access_1) Likewise.
12923         (build_accesses_from_assign) Likewise.
12924         (create_artificial_child_access) Likewise.
12926 2015-06-01  Martin Liska  <mliska@suse.cz>
12928         * dse.c (get_group_info):Use new type-based pool allocator.
12929         (dse_step0) Likewise.
12930         (free_store_info) Likewise.
12931         (delete_dead_store_insn) Likewise.
12932         (free_read_records) Likewise.
12933         (record_store) Likewise.
12934         (replace_read) Likewise.
12935         (check_mem_read_rtx) Likewise.
12936         (scan_insn) Likewise.
12937         (dse_step1) Likewise.
12938         (dse_step7) Likewise.
12940 2015-06-01  Martin Liska  <mliska@suse.cz>
12942         * df-scan.c (struct df_scan_problem_data):Use new type-based
12943         pool allocator.
12944         (df_scan_free_internal) Likewise.
12945         (df_scan_alloc) Likewise.
12946         (df_grow_reg_info) Likewise.
12947         (df_free_ref) Likewise.
12948         (df_insn_create_insn_record) Likewise.
12949         (df_mw_hardreg_chain_delete) Likewise.
12950         (df_insn_info_delete) Likewise.
12951         (df_free_collection_rec) Likewise.
12952         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
12953         (df_sort_and_compress_mws) Likewise.
12954         (df_ref_create_structure) Likewise.
12955         (df_ref_record) Likewise.
12957 2015-06-01  Martin Liska  <mliska@suse.cz>
12959         * df-problems.c (df_chain_create):Use new type-based pool allocator.
12960         (df_chain_unlink_1) Likewise.
12961         (df_chain_unlink) Likewise.
12962         (df_chain_remove_problem) Likewise.
12963         (df_chain_alloc) Likewise.
12964         (df_chain_free) Likewise.
12965         * df.h (struct dataflow) Likewise.
12967 2015-06-01  Martin Liska  <mliska@suse.cz>
12969         * cselib.c (new_elt_list):Use new type-based pool allocator.
12970         (new_elt_loc_list) Likewise.
12971         (unchain_one_elt_list) Likewise.
12972         (unchain_one_elt_loc_list) Likewise.
12973         (unchain_one_value) Likewise.
12974         (new_cselib_val) Likewise.
12975         (cselib_init) Likewise.
12976         (cselib_finish) Likewise.
12978 2015-06-01  Martin Liska  <mliska@suse.cz>
12980         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
12981         (sh_reorg) Likewise.
12983 2015-06-01  Martin Liska  <mliska@suse.cz>
12985         * cfg.c (initialize_original_copy_tables):Use new type-based
12986         pool allocator.
12987         (free_original_copy_tables) Likewise.
12988         (copy_original_table_clear) Likewise.
12989         (copy_original_table_set) Likewise.
12991 2015-06-01  Martin Liska  <mliska@suse.cz>
12993         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
12994         pool allocator.
12995         (asan_mem_ref_new) Likewise.
12996         (free_mem_ref_resources) Likewise.
12998 2015-06-01  Martin Liska  <mliska@suse.cz>
13000         * var-tracking.c (variable_htab_free):Use new type-based
13001         pool allocator.
13002         (attrs_list_clear) Likewise.
13003         (attrs_list_insert) Likewise.
13004         (attrs_list_copy) Likewise.
13005         (shared_hash_unshare) Likewise.
13006         (shared_hash_destroy) Likewise.
13007         (unshare_variable) Likewise.
13008         (var_reg_delete_and_set) Likewise.
13009         (var_reg_delete) Likewise.
13010         (var_regno_delete) Likewise.
13011         (drop_overlapping_mem_locs) Likewise.
13012         (variable_union) Likewise.
13013         (insert_into_intersection) Likewise.
13014         (canonicalize_values_star) Likewise.
13015         (variable_merge_over_cur) Likewise.
13016         (dataflow_set_merge) Likewise.
13017         (remove_duplicate_values) Likewise.
13018         (variable_post_merge_new_vals) Likewise.
13019         (dataflow_set_preserve_mem_locs) Likewise.
13020         (dataflow_set_remove_mem_locs) Likewise.
13021         (variable_from_dropped) Likewise.
13022         (variable_was_changed) Likewise.
13023         (set_slot_part) Likewise.
13024         (clobber_slot_part) Likewise.
13025         (delete_slot_part) Likewise.
13026         (loc_exp_insert_dep) Likewise.
13027         (notify_dependents_of_changed_value) Likewise.
13028         (emit_notes_for_differences_1) Likewise.
13029         (vt_emit_notes) Likewise.
13030         (vt_initialize) Likewise.
13031         (vt_finalize) Likewise.
13033 2015-06-01  Martin Liska  <mliska@suse.cz>
13035         * ira-color.c (init_update_cost_records):Use new type-based
13036         pool allocator.
13037         (get_update_cost_record) Likewise.
13038         (free_update_cost_record_list) Likewise.
13039         (finish_update_cost_records) Likewise.
13040         (initiate_cost_update) Likewise.
13042 2015-06-01  Martin Liska  <mliska@suse.cz>
13044         * lra.c (init_insn_regs): Use new type-based pool allocator.
13045         (new_insn_reg) Likewise.
13046         (free_insn_reg) Likewise.
13047         (free_insn_regs) Likewise.
13048         (finish_insn_regs) Likewise.
13049         (init_insn_recog_data) Likewise.
13050         (init_reg_info) Likewise.
13051         (finish_reg_info) Likewise.
13052         (lra_free_copies) Likewise.
13053         (lra_create_copy) Likewise.
13054         (invalidate_insn_data_regno_info) Likewise.
13056 2015-06-01  Martin Liska  <mliska@suse.cz>
13058         * lra-lives.c (free_live_range): Use new type-based pool allocator.
13059         (free_live_range_list) Likewise.
13060         (create_live_range) Likewise.
13061         (copy_live_range) Likewise.
13062         (lra_merge_live_ranges) Likewise.
13063         (remove_some_program_points_and_update_live_ranges) Likewise.
13064         (lra_live_ranges_init) Likewise.
13065         (lra_live_ranges_finish) Likewise.
13067 2015-06-01  Martin Liska  <mliska@suse.cz>
13069         * et-forest.c (et_new_occ): Use new type-based pool allocator.
13070         (et_new_tree): Likewise.
13071         (et_free_tree): Likewise.
13072         (et_free_tree_force): Likewise.
13073         (et_free_pools): Likewise.
13074         (et_split): Likewise.
13076 2015-06-01  Martin Liska  <mliska@suse.cz>
13078         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
13079         to header file.
13080         * alloc-pool.h (pool_allocator::pool_allocator): New function.
13081         (pool_allocator::release): Likewise.
13082         (inline pool_allocator::release_if_empty): Likewise.
13083         (inline pool_allocator::~pool_allocator): Likewise.
13084         (pool_allocator::allocate): Likewise.
13085         (pool_allocator::remove): Likewise.
13087 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13089         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
13090         in comment.
13092 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13094         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
13095         to fusible_ops.
13096         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
13097         (arm_macro_fusion_p): Likewise.
13098         (arm_macro_fusion_pair_p): Likewise.
13100 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13102         * config/aarch64/aarch64-protos.h (tune_params): Rename
13103         fuseable_ops to fusible_ops.
13104         * config/aarch64/aarch64.c (generic_tunings): Rename
13105         fuseable_ops to fusible_ops.
13106         (cortexa53_tunings): Likewise.
13107         (cortexa57_tunings): Likewise.
13108         (thunderx_tunings): Likewise.
13109         (xgene1_tunings): Likewise.
13110         (aarch64_macro_fusion_p): Likewise.
13111         (aarch64_macro_fusion_pair_p): Likewise.
13113 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13115         * config/s390/driver-native.c: New file.
13116         * config/s390/x-native: New file.
13117         * config.host: Add new files for s390.
13118         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
13119         and -march=native
13120         * config.gcc: Likewise.
13121         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
13122         * config/s390/s390-opts.h (enum processor_type): Ditto.
13123         * config/s390/s390.c (s390_option_override): Catch unhandled
13124         PROCESSOR_NATIVE
13126 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
13128         PR target/65527
13129         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
13130         redirection for instrumented calls.
13131         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
13132         (append_compiler_options): Append -fcheck-pointer-bounds.
13133         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
13134         (chkp_redirect_edge): New.
13135         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
13136         (chkp_redirect_edge): New.
13138 2015-06-01  Richard Biener  <rguenther@suse.de>
13140         PR tree-optimization/66280
13141         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
13142         def-use walking.
13144 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13146         * config/aarch64/aarch64.md
13147         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
13148         logic_shift_imm.
13150 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
13152         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
13153         Remove obsolete kludge.
13155 2015-06-01  Richard Biener  <rguenther@suse.de>
13157         * tree-ssa-reassoc.c (get_rank): Simplify.
13159 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13161         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
13162         * configure: Regenerated.
13164 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
13166         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
13167         issue (add space between string literal and macro).
13168         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
13170 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13172         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
13173         implict or explicit -fPIE or -fpie.
13175 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
13177         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
13179 2015-05-28  DJ Delorie  <dj@redhat.com>
13181         * expmed.c (extract_bit_field_1): Avoid clobbering a
13182         yet-to-be-used base/index register.
13184 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
13186         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
13187         (alias_stats): Add num_universal.
13188         (alias_set_subset_of): Special case pointers; be ready for NULL
13189         children.
13190         (alias_sets_conflict_p): Special case pointers; be ready for NULL
13191         children.
13192         (init_alias_set_entry): Break out from ...
13193         (record_alias_subset): ... here; propagate new fields;
13194         allocate children only when really needed.
13195         (get_alias_set): Do less generous pointer globbing.
13196         (dump_alias_stats_in_alias_c): Update statistics.
13198 2015-05-30  Alan Modra  <amodra@gmail.com>
13200         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
13201         correct block for use of r12.
13202         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
13204 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13206         PR target/66215
13207         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
13208         with -mhotpatch=.
13210 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
13212         PR tree-optimization/66142
13213         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
13214         virtual phis that feed themselves.
13216 2015-05-29  Richard Biener  <rguenther@suse.de>
13218         PR tree-optimization/66314
13219         * tree-ssa-threadupdate.c (create_block_for_threading): Add
13220         parameter that says which loop the new block belongs to.
13221         (ssa_create_duplicates): Blocks duplicated for the threaded
13222         path belong to the loop of the thread destination.
13224 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13226         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
13227         to cleanup-saved-temps.
13228         * doc/sourcebuild.texi (Clean up generated test files): Expand
13229         introduction.
13230         (dg-keep-saved-temps): Document new proc.
13231         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
13232         cleanup-saved-temps): Remove.
13234 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
13236         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
13237         gcc_AC_CHECK_DECLS.
13238         * configure: Regenerate.
13240 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13242         * config/nios2/linux.h (CPP_SPEC): Define.
13244 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13246         * config/microblaze/linux.h (CPP_SPEC): Define.
13248 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13250         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
13251         -pthread is specified.
13253 2015-05-28  Richard Biener  <rguenther@suse.de>
13255         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
13256         (vect_fixup_scalar_cycles_with_patterns): Likewise.
13257         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
13258         after pattern recog.
13259         (vect_create_epilog_for_reduction): Properly handle reductions
13260         with patterns.
13261         (vectorizable_reduction): Likewise.
13262         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
13263         reduction chains.
13264         (vect_get_constant_vectors): Create the correct number of
13265         initial values for reductions.
13266         (vect_schedule_slp_instance): Handle reduction chains that are
13267         type changing properly.
13268         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
13270 2015-05-28  Richard Biener  <rguenther@suse.de>
13272         PR tree-optimization/66142
13273         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
13274         values better in memcpy destination handling.  Handle non-aliasing
13275         we discover here.
13277 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
13279         PR target/63810
13280         * config/darwin-c.c (version_components): New global enum.
13281         (parse_version, version_as_legacy_macro)
13282         (version_as_modern_macro, macosx_version_as_macro): New functions.
13283         (version_as_macro): Remove.
13284         (darwin_cpp_builtins): Use new function.
13286 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
13288         * builtins.c (expand_builtin_acc_on_device): Mark parameters
13289         with ATTRIBUTE_UNUSED.
13291 2015-05-28  Julian Brown  <julian@codesourcery.com>
13293         PR libgomp/65742
13295         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
13296         sequence for !ACCEL_COMPILER.
13298 2015-05-28  Nick Clifton  <nickc@redhat.com>
13300         * config/rx/rx.c (push_regs): New function.  Extracts code from...
13301         (rx_expand_prologue): ... here.  Use push_regs to push even small
13302         spans of registers.
13303         (pop_regs): New function.
13304         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
13305         registers.
13307 2015-05-28  Richard Biener  <rguenther@suse.de>
13309         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
13310         member.
13311         (SLP_INSTANCE_BODY_COST_VEC): Remove.
13312         (vect_update_slp_costs_according_to_vf): Likewise.
13313         (vect_slp_analyze_operations): Update prototype.
13314         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
13315         vect_update_slp_costs_according_to_vf, adjust.
13316         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
13317         (vect_analyze_slp_cost_1): Likewise.
13318         (vect_analyze_slp_cost): Likewise.  Properly deal with
13319         widening reduction ops.  Commit body costs.
13320         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
13321         cost for loops from here.
13322         (vect_slp_analyze_operations): But do it from here when
13323         the vectorization factor is known and stmts are analyzed.
13324         (vect_bb_vectorization_profitable_p): Simplify.
13325         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
13326         (vect_update_slp_costs_according_to_vf): Remove.
13328 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
13329             H.J. Lu  <hongjiu.lu@intel.com>
13331         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
13332         (BUILD_CFLAGS): Likewise.
13333         (BUILD_CXXFLAGS): Likewise.
13334         (LINKER): Add @NO_PIE_FLAG@.
13335         (BUILD_LDFLAGS): Likewise.
13336         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
13337         --enable-default-pie.
13338         * common.opt (fPIE): Initialize to -1.
13339         (fpie): Likewise.
13340         (no-pie): New option.
13341         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
13342         * configure.ac: Add --enable-default-pie.
13343         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
13344         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
13345         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
13346         * gcc.c (NO_PIE_SPEC): New.
13347         (PIE_SPEC): Likewise.
13348         (NO_FPIE1_SPEC): Likewise.
13349         (FPIE1_SPEC): Likewise.
13350         (NO_FPIE2_SPEC): Likewise.
13351         (FPIE2_SPEC): Likewise.
13352         (NO_FPIE2_SPEC): Likewise.
13353         (FPIE_SPEC): Likewise.
13354         (NO_FPIE_SPEC): Likewise.
13355         (NO_FPIC1_SPEC): Likewise.
13356         (FPIC1_SPEC): Likewise.
13357         (NO_FPIC2_SPEC): Likewise.
13358         (FPIC2_SPEC): Likewise.
13359         (NO_FPIC2_SPEC): Likewise.
13360         (FPIC_SPEC): Likewise.
13361         (NO_FPIC_SPEC): Likewise.
13362         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
13363         (FPIE1_OR_FPIC1_SPEC): Likewise.
13364         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
13365         (FPIE2_OR_FPIC2_SPEC): Likewise.
13366         (NO_FPIE_AND_FPIC_SPEC): Likewise.
13367         (FPIE_OR_FPIC_SPEC): Likewise.
13368         (LD_PIE_SPEC): Likewise.
13369         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
13370         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
13371         * config/darwin.h (PIE_SPEC): Renamed to ...
13372         (DARWIN_PIE_SPEC): This.
13373         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
13374         * config/darwin9.h (PIE_SPEC): Renamed to ...
13375         (DARWIN_PIE_SPEC): This.
13376         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
13377         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13378         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
13379         FPIE2_OR_FPIC2_SPEC.
13380         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13381         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13382         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
13383         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13384         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13385         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13386         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
13387         * config/m32r/m32r.h (ASM_SPEC): Likewise.
13388         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
13389         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13390         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
13391         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
13392         * config/sparc/linux.h (ASM_SPEC): Likewise.
13393         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13394         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
13395         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
13396         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13397         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13398         * config/sparc/sparc.h (ASM_SPEC): Likewise.
13399         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
13400         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
13401         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
13402         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
13403         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
13404         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
13405         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
13406         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
13407         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
13408         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
13409         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
13410         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
13411         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13412         * config/vax/linux.h (ASM_SPEC): Likewise.
13413         * doc/install.texi: Document --enable-default-pie.
13414         * doc/invoke.texi: Document -no-pie.
13415         * config.in: Regenerated.
13416         * configure: Likewise.
13418 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13420         PR rtl-optimization/66168
13421         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
13422         can_move_invariant_reg.
13424 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
13426         PR target/66148
13427         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
13428         REG_EQUAL note when doing insert.
13430         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
13431         instead of "%d" for 'o' operand.
13433 2015-05-27  Nathan Sidwell  <nathan@acm.org>
13435         PR c++/66270
13436         * tree.c (build_pointer_type_for_mode): Canonical type does not
13437         inherit can_alias_all.
13438         (build_reference_type_for_mode): Likewise.
13440 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13442         * expr.h (array_at_struct_end_p): Move to...
13443         (array_ref_element_size): Likewise.
13444         (component_ref_field_offset): Likewise.
13445         * tree.h (array_ref_element_size): ...here.
13446         (array_at_struct_end_p): Likewise.
13447         (component_ref_field_offset): Likewise.
13448         * expr.c (array_ref_element_size): Move to...
13449         (array_ref_low_bound): Likewise.
13450         (array_at_struct_end_p): Likewise.
13451         (array_ref_up_bound): Likewise.
13452         (component_ref_field_offset): Likewise.
13453         * tree.c (array_ref_element_size): ...here.
13454         (array_ref_low_bound): Likewise.
13455         (array_ref_up_bound): Likewise.
13456         (array_at_struct_end_p): Likewise.
13457         (component_ref_field_offset): Likewise.
13459 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13460             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13462         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
13464 2015-05-27  Jason Merrill  <jason@redhat.com>
13466         PR bootstrap/66304
13467         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
13468         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
13469         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
13471 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
13473         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
13474         is true.
13476         * statistics.c (statistics_fini_pass): Print pass name.
13478 2015-05-27  Richard Biener  <rguenther@suse.de>
13480         PR tree-optimization/66272
13481         Revert parts of
13482         2014-08-15  Richard Biener  <rguenther@suse.de>
13484         PR tree-optimization/62031
13485         * tree-data-ref.c (dr_analyze_indices): Do not set
13486         DR_UNCONSTRAINED_BASE.
13487         (dr_may_alias_p): All indirect accesses have to go the
13488         formerly DR_UNCONSTRAINED_BASE path.
13489         * tree-data-ref.h (struct indices): Remove
13490         unconstrained_base member.
13491         (DR_UNCONSTRAINED_BASE): Remove.
13493 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
13495         * dwarf2out.c: Remove block_map.
13496         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
13497         (gen_lexical_block_die): Same.
13498         (dwarf2out_function_decl): Remove block_map use.
13499         (dwarf2out_c_finalize): Same.
13500         * tree-core.h (struct tree_block): Add die field.
13501         * tree.h (BLOCK_DIE): New.
13503 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13505         PR target/65358
13506         * expr.c (memory_load_overlap): New function.
13507         (emit_push_insn): When pushing partial args to the stack would
13508         clobber the register part load the overlapping part into a pseudo
13509         and put it into the hard reg after pushing.  Change return type
13510         to bool.  Add bool argument.
13511         * expr.h (emit_push_insn): Change return type to bool.
13512         Add bool argument.
13513         * calls.c (expand_call): Cancel sibcall optimization when encountering
13514         partial argument on targets with ARGS_GROW_DOWNWARD and
13515         !STACK_GROWS_DOWNWARD.
13516         (emit_library_call_value_1): Update callsite of emit_push_insn.
13517         (store_one_arg): Likewise.
13519 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13521         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
13523 2015-05-27  Martin Liska  <mliska@suse.cz>
13525         * Makefile.in: Add additional dependencies related to memory report
13526         enhancement.
13527         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
13528         * bitmap.c (struct bitmap_descriptor_d): Remove.
13529         (struct loc): Likewise.
13530         (struct bitmap_desc_hasher): Likewise.
13531         (bitmap_desc_hasher::hash): Likewise.
13532         (bitmap_desc_hasher::equal): Likewise.
13533         (get_bitmap_descriptor): Likewise.
13534         (bitmap_register): User new memory descriptor API.
13535         (register_overhead): Likewise.
13536         (bitmap_find_bit): Register nsearches and search_iter statistics.
13537         (struct bitmap_output_info): Remove.
13538         (print_statistics): Likewise.
13539         (dump_bitmap_statistics): Use new memory descriptor.
13540         * bitmap.h (struct bitmap_usage): New class.
13541         * genmatch.c: Extend header file inclusion.
13542         * genpreds.c: Likewise.
13543         * ggc-common.c (struct ggc_usage): New class.
13544         (struct ggc_loc_desc_hasher): Remove.
13545         (ggc_loc_desc_hasher::hash): Likewise.
13546         (ggc_loc_desc_hasher::equal): Likewise.
13547         (struct ggc_ptr_hash_entry): Likewise.
13548         (struct ptr_hash_hasher): Likewise.
13549         (ptr_hash_hasher::hash): Likewise.
13550         (ptr_hash_hasher::equal): Likewise.
13551         (make_loc_descriptor): Likewise.
13552         (ggc_prune_ptr): Likewise.
13553         (dump_ggc_loc_statistics): Use new memory descriptor.
13554         (ggc_record_overhead): Likewise.
13555         (ggc_free_overhead): Likewise.
13556         (final_cmp_statistic): Remove.
13557         (cmp_statistic): Likewise.
13558         (ggc_add_statistics): Liekwise.
13559         (ggc_prune_overhead_list): Likewise.
13560         * hash-map-traits.h: New file.
13561         * hash-map.h (struct default_hashmap_traits): Move the traits to a
13562         separate header file.
13563         * hash-set.h: Pass memory statistics info to ctor.
13564         * hash-table.c (void dump_hash_table_loc_statistics): New function.
13565         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
13566         (hash_table::~hash_table): Register memory release operation.
13567         (hash_table::alloc_entries): Handle memory allocation operation.
13568         (hash_table::expand): Likewise.
13569         * inchash.c (iterative_hash_hashval_t): Move implementation to header
13570         file.
13571         (iterative_hash_host_wide_int): Likewise.
13572         * inchash.h (class hash): Likewise.
13573         * mem-stats-traits.h: New file.
13574         * mem-stats.h: New file.
13575         (mem_location): Add new class.
13576         (mem_usage): Likewise.
13577         (mem_alloc_description): Likewise.
13578         * sese.c: Add new header file inclusision.
13579         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
13580         and hash_set.
13581         * tree-sra.c: Add new header file inclusision.
13582         * vec.c (struct vec_descriptor): Remove.
13583         (hash_descriptor): Likewise.
13584         (struct vec_usage): Likewise.
13585         (struct ptr_hash_entry): Likewise.
13586         (hash_ptr): Likewise.
13587         (eq_ptr): Likewise.
13588         (vec_prefix::register_overhead): Use new memory descriptor API.
13589         (vec_prefix::release_overhead): Likewise.
13590         (add_statistics): Remove.
13591         (dump_vec_loc_statistics): Use new memory descriptor API.
13592         * vec.h (struct vec_prefix): Likewise.
13593         (va_heap::reserve): Likewise.
13594         (va_heap::release): Likewise.
13595         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
13597 2015-05-27  Richard Biener  <rguenther@suse.de>
13599         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
13600         earlier and remove ??? comment.
13601         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
13602         and got called from loop analysis bail out.  Always pass the SLP
13603         node to the vectorizable_* functions.
13604         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
13605         the premature SLP check here.
13606         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
13607         detected SLP stmts.
13608         (vect_detect_hybrid_slp_1): Likewise.
13610 2015-05-26  Jeff Law  <law@redhat.com>
13612         * combine.c (find_split_point): Verify that the shift count is a
13613         constant when choosing (plus (ashift ...)) as a split point.
13615         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
13616         No functional changes.
13618 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
13620         * ipa-polymorphic-call.c
13621         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
13622         case when call target is already known.
13624 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
13626         PR target/65979
13627         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
13628         take into account the case that operands[1] and operands[2]
13629         are the same register.
13631 2015-05-26  Michael Matz  <matz@suse.de>
13633         PR middle-end/66251
13635         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
13636         stores.
13637         (vect_create_vectorized_demotion_stmts): Always set
13638         STMT_VINFO_VEC_STMT, also with SLP.
13639         (vectorizable_store): Handle strided group stores.
13641 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13643         PR target/66049
13644         * config/aarch64/aarch64.md
13645         (*adds_shift_imm_<mode>):  New pattern.
13646         (*subs_shift_imm_<mode>):  Likewise.
13647         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
13648         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13649         (*add_uxt<mode>_shift2): Likewise.
13650         (*add_uxtsi_shift2_uxtw): Likewise.
13651         (*sub_uxt<mode>_shift2): Likewise.
13652         (*sub_uxtsi_shift2_uxtw): Likewise.
13654 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
13656         * config/rs6000/constraints.md (Y, U): Use match_test.
13658 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13660         PR target/52144
13661         * config/arm/arm.c (arm_option_check_internal)
13662         (arm_option_params_internal): Check opts->target_flags to set macros.
13663         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13664         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
13665         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13666         (builtin_define): Replaced with def_or_undef_macro.
13667         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13668         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
13669         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13670         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
13671         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
13672         (TARGET_ARM_FEATURE_LDREX_P)
13673         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
13674         * config/arm/arm-c.c (def_or_undef_macro): New function.
13675         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
13677 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13679         * c-common.h (builtin_define_with_int_value)
13680         (builtin_define_type_sizeof): Declare.
13681         * c-cppbuiltin.c (builtin_define_with_int_value)
13682         (builtin_define_type_sizeof): Externalize.
13683         (builtin_define_std): Cleanup declaration.
13684         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
13685         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
13686         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
13687         (builtin_define, builtin_assert): New macros.
13689 2015-05-26  Richard Biener  <rguenther@suse.de>
13691         PR tree-optimization/66142
13692         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
13693         MEM_REFs for the same base address.
13695 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13697         PR ipa/66181
13698         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
13700 2015-05-26  Jason Merrill  <jason@redhat.com>
13702         * configure.ac: Set CXXFLAGS for ISL test.
13703         * configure: Regenerate.
13705         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
13706         strstr and basename.
13707         * configure: Regenerate.
13709 2015-05-26  Richard Biener  <rguenther@suse.de>
13711         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
13712         X % C -> X & (C - 1) for C being a power-of two to ...
13713         * match.pd: ... patterns.
13715 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
13717         * match.pd (swapped_tcc_comparison): New operator list.
13718         (-A CMP -B): New simplification.
13719         * fold-const.c (fold_comparison): Remove corresponding code.
13721 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13723         * caller-save.c (init_caller_save): Base temporary register numbers
13724         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
13725         * cfgloopanal.c (init_set_costs): Likewise.
13726         * dojump.c (prefer_and_bit_test): Likewise.
13727         * expr.c (init_expr_target): Likewise.
13728         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13729         * lower-subreg.c (init_lower_subreg): Likewise.
13730         * postreload.c (reload_cse_regs_1): Likewise.
13732 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13734         * gensupport.h (compute_test_codes): Declare.
13735         * gensupport.c (compute_predicate_codes): Rename to...
13736         (compute_test_codes): ...this.  Generalize error message.
13737         (process_define_predicate): Update accordingly.
13738         * genpreds.c (compute_maybe_allows): Delete.
13739         (add_constraint): Use compute_test_codes to determine whether
13740         something can accept a SUBREG, REG or MEM.
13742 2015-05-26  Torvald Riegel  <triegel@redhat.com>
13744         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
13745         'memory model' to align with C++11; fix description of memory orders;
13746         fix a few typos.
13748 2015-05-26  Richard Biener  <rguenther@suse.de>
13750         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
13751         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
13752         detect whether we apply SLP.  Remove call to
13753         vect_update_slp_costs_according_to_vf.
13754         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
13755         vect_update_slp_costs_according_to_vf from here.  Dispatch
13756         to vect_slp_analyze_operations to analyze SLP stmts.
13757         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
13758         unused bb_vec_info parameter, adjust assert.
13759         (vect_slp_analyze_operations): Pass in the slp instance tree
13760         instead of bb_vec_info.
13761         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
13762         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
13764 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13766         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
13767         Q_REGS.  Expand comment.
13768         (REG_CLASS_NAMES): Ditto.
13769         (REG_CLASS_CONTENTS): Ditto.
13771 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
13773         PR target/66274
13774         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
13775         when LEGACY_INT_REGNO_P is processed.
13777 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13779         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
13781 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13783         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
13784         register if not marked dead/unused, before return.
13786 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13788         PR lto/66180
13789         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
13790         is set; check for assembler name at LTO time.
13791         (type_in_anonymous_namespace): Remove hacks, check that all
13792         anonymous types are called "<anon>"
13793         (odr_type_p): Simplify; add check for "<anon>"
13794         (odr_subtypes_equivalent): Add odr_type_p check.
13795         * tree.c (need_assembler_name_p): Even anonymous namespace needs
13796         assembler name.
13798 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13800         * ipa-utils.h (method_class_type): Remove.
13801         * cgraphunit.c (walk_polymorphic_call_targets): Use
13802         TYPE_METHOD_BASETYPE.
13803         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
13804         on main variants only.
13805         (method_class_type): Remove.
13806         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
13807         (build_type_inheritance_graph): Likewise.
13808         * ipa-icf.c (sem_function::equals_wpa): Likewise.
13809         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
13810         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
13812 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13814         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
13815         is_typedef_decl, typedef_variant_p): Constify.
13816         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
13817         is_typedef_decl, typedef_variant_p): Constify.
13819 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13821         * defaults.h (gen_tablejump): New function.
13822         (HAVE_tablejump): Add default value.
13823         * expr.c: Adjust.
13824         * stmt.c: Likewise.
13826 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13828         * defaults.h (gen_store_multiple): New function.
13829         (HAVE_store_multiple): Add default value.
13830         * expr.c (move_block_from_reg): Adjust.
13832 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13834         * defaults.h (gen_load_multiple): New function.
13835         (HAVE_load_multiple): Add default value.
13836         * expr.c (move_block_to_reg): Adjust.
13838 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13840         * defaults.h (gen_mem_signal_fence): New function.
13841         (HAVE_mem_signal_fence): Add default value.
13842         * optabs.c: Adjust.
13844 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13846         * defaults.h (gen_memory_barrier): New function.
13847         (HAVE_memory_barrier): Add default value.
13848         * optabs.c: Adjust.
13850 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13852         * defaults.h (gen_mem_thread_fence): New function.
13853         (HAVE_mem_thread_fence): Add default definition.
13854         * optabs.c: Adjust.
13856 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13858         * combine.c (find_split_point): Check the value of HAVE_lo_sum
13859         instead of if it is defined.
13860         (combine_simplify_rtx): Likewise.
13861         * lra-constraints.c (process_address_1): Likewise.
13862         * config/darwin.c: Adjust.
13863         * genconfig.c (main): Always define HAVE_lo_sum.
13865 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13867         * genmatch.c (parser::parse_operation): Reject expanding
13868         operator-list inside 'for'.
13870 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13872         * genmatch.c (parser::parse_for): Reject iterator if used as
13873         operator-list.
13875 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13877         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
13878         after end of id-list.
13880 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13882         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
13883         we do not try to compute canonical type for type that does not need
13884         alias set.
13885         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
13886         FUNCITON_TYPE.
13887         * tree.h (type_with_alias_set_p): New.
13889 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13891         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
13892         function attributes.
13893         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
13895 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
13897         * Makefile.in (check_gcc_parallelize): Delete.
13898         (lang_checks_parallelized): Update comment.
13900 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
13902         PR rtl-optimization/66237
13903         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
13904         location of an "as_a" cast.
13906 2015-05-22  Jeff Law  <law@redhat.com>
13908         * config/pa/pa.md (non-canonical shift-add insns): Remove.
13909         (peepholes with non-canonical RTL sources): Remove.
13910         (peepholes for indexed stores of FP regs in integer modes): Match and
13911         generate canonical RTL.
13913 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13915         PR tree-optimization/63387
13916         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
13917         ((x ord x) & (y ord y) -> (x ord y),
13918         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
13919         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
13920         vectors like scalars.
13922 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13924         * convert.c (convert_to_integer, convert_to_vector): Include the
13925         types in the error message.
13927 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13929         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
13930         simplifications.
13932 2015-05-22  Jeff Law  <law@redhat.com>
13934         * config/pa/pa.md (integer_indexed_store splitters): Use
13935         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
13936         insns -- adjusting the constant 2nd operand accordingly.
13938         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
13939         (plus (ashift X log2) Y) if it is a split point.
13941         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
13942         out of hppa_legitimize_address to handle both forms of a multiply
13943         by 2, 4 or 8.
13944         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
13945         Always generate the ASHIFT variant as the result is not directly
13946         used in a MEM.  Update comments and refactor slightly to improve
13947         readability.
13949 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13951         PR target/65491
13952         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
13953         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
13954         (aarch64_composite_type_p): Return false if given type and mode are
13955         for a short vector.
13957 2015-05-22  Richard Biener  <rguenther@suse.de>
13959         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
13960         member.
13961         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
13962         patterns when determining whether SLP is pure.
13963         (vect_is_slp_reduction): Remove check for pattern stmts.
13964         (vect_is_simple_reduction_1): Remove dead code.
13965         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
13966         (vect_get_and_check_slp_defs): Pass in the stmt number.
13967         Allow the first def in a reduction to be not a pattern stmt when
13968         the rest of the stmts def are patterns.
13969         (vect_build_slp_tree_1): Allow tcc_expression codes like
13970         SAD_EXPR and DOT_PROD_EXPR.
13971         (vect_build_slp_tree): Adjust.
13972         (vect_analyze_slp): Refactor and move BB vect error message ...
13973         (vect_slp_analyze_bb_1): ... here.
13975 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
13977         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
13978         for CSWTCH temporary.
13980 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13982         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
13983         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
13984         unknown unspecs.
13986 2015-05-22  Richard Biener  <rguenther@suse.de>
13988         PR tree-optimization/66251
13989         * tree-vect-stmts.c (vectorizable_conversion): Properly
13990         set STMT_VINFO_VEC_STMT even for the SLP case.
13992 2015-05-22  Marek Polacek  <polacek@redhat.com>
13994         * doc/extend.texi: Use @pxref instead of @xref.
13996 2015-05-22  hiraditya  <hiraditya@msn.com>
13998         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
13999         redundant if.
14001 2015-05-22  Richard Biener  <rguenther@suse.de>
14003         PR tree-optimization/65701
14004         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14005         Move peeling cost models into one place.  Peel for alignment
14006         for single loads only if an aligned load is cheaper than
14007         an unaligned load.
14009 2015-05-22  Marek Polacek  <polacek@redhat.com>
14011         PR c/47043
14012         * doc/extend.texi (Enumerator Attributes): New section.
14013         Document syntax of enumerator attributes.
14015 2015-05-22  Richard Biener  <rguenther@suse.de>
14017         * tree-vect-loop.c (get_reduction_op): New function.
14018         (vect_model_reduction_cost): Use it, add reduc_index parameter.
14019         Make ready for BB reductions.
14020         (vect_create_epilog_for_reduction): Use get_reduction_op.
14021         (vectorizable_reduction): Init reduc_index to a valid value.
14022         Adjust vect_model_reduction_cost call.
14023         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
14024         operand for reduction defaults.  Add SAD_EXPR support.
14025         Assert we have a neutral op for SLP reductions.
14026         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
14027         walking pattern stmt ops only recurse to SSA names.
14029 2015-05-22  Richard Biener  <rguenther@suse.de>
14031         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
14032         assert with guard, remove check on detected reduction.
14033         (vect_recog_sad_pattern): Likewise.
14034         (vect_recog_widen_sum_pattern): Likewise.
14036 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14038         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
14039         __always_inline__ attribute.
14040         (vaesdq_u8): Likewise.
14041         (vaesmcq_u8): Likewise.
14042         (vaesimcq_u8): Likewise.
14043         (vsha1cq_u32): Likewise.
14044         (vsha1mq_u32): Likewise.
14045         (vsha1pq_u32): Likewise.
14046         (vsha1h_u32): Likewise.
14047         (vsha1su0q_u32): Likewise.
14048         (vsha1su1q_u32): Likewise.
14049         (vsha256hq_u32): Likewise.
14050         (vsha256h2q_u32): Likewise.
14051         (vsha256su0q_u32): Likewise.
14052         (vsha256su1q_u32): Likewise.
14053         (vmull_p64): Likewise.
14054         (vmull_high_p64): Likewise.
14056 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14058         * final.c (final_scan_insn): Don't check HAVE_peephole with the
14059         preprocessor.
14060         * output.h: Likewise.
14061         * genconfig.c (main): Alwways define HAVE_peephole.
14062         * genpeep.c: Don't emit checks of HAVE_peephole.
14064 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14066         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
14067         check HAVE_conditional_move with the preprocessor.
14069 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14071         * genconfig.c (main): Always define HAVE_conditional_move.
14072         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
14073         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
14074         is defined.
14076 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14078         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
14079         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
14080         and FRAME_POINTER_REGNUM with the preprocessor.
14082 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14084         * defaults.h: Add default for STACK_PUSH_CODE.
14085         * expr.c: Don't redefine STACK_PUSH_CODE.
14086         * recog.c: Likewise.
14088 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14090         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
14091         sched-deps.c: Use if instead of preprocessor checks with
14092         STACK_GROWS_DOWNWARD.
14094 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14096         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
14097         is defined.
14098         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
14099         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
14100         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
14101         * doc/tm.texi: Regenerate.
14103 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14105         PR target/66232
14106         * config/i386/constraints.md (Bg): New constraint for GOT memory
14107         operand.
14108         * config/i386/i386.md (*call_got_x32): New pattern.
14109         (*call_value_got_x32): Likewise.
14110         * config/i386/predicates.md (GOT_memory_operand): New predicate.
14112 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
14114         PR tree-optimization/66233
14115         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14116         Simplify.
14118 2015-05-21  Jeff Law  <law@redhat.com>
14120         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
14121         than MULT for shadd sequences.
14123 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
14125         * alias.c (alias_stats): New static var.
14126         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
14127         (dump_alias_stats_in_alias_c): New function.
14128         * alias.h (dump_alias_stats_in_alias_c): Declare.
14129         * tree-ssa-alias.c (dump_alias_stats): Call it.
14131 2015-05-08  Michael Matz  <matz@suse.de>
14133         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
14134         to strided_p.
14135         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
14136         (STMT_VINFO_STRIDED_P): ... this.
14137         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
14138         (vect_verify_datarefs_alignment): Likewise.
14139         (vect_enhance_data_refs_alignment): Likewise.
14140         (vect_analyze_data_ref_access): Likewise.
14141         (vect_analyze_data_refs): Accept strided stores.
14142         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
14143         (vect_model_load_cost): Adjust for macro rename.
14144         (vectorizable_mask_load_store): Likewise.
14145         (vectorizable_load): Likewise.
14146         (vectorizable_store): Open code strided stores.
14148 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14150         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
14151         Document sqrt_insn.
14153 2015-05-21  Richard Biener  <rguenther@suse.de>
14155         PR c++/66211
14156         * match.pd: Guard pattern optimzing (int)(float)int
14157         conversions to apply only on GIMPLE.
14159 2015-05-21  Jeff Law  <law@redhat.com>
14161         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
14162         multiply-accumulate/shift-add insn generation.
14164 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
14166         PR target/54236
14167         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
14168         operands[1] are the same.
14170 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
14172         PR middle-end/66221
14173         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
14174         build_distinct_type_copy to copy bounds.
14176 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14178         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
14179         Change to unsigned int.
14181 2015-05-20  Jeff Law  <law@redhat.com>
14183         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
14184         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
14185         (pa_shadd_constant_p): Allow constants for shadd insns rather
14186         than valid scaling constants for memory addresses.
14187         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
14188         * config/pa/predicates.md (mem_shadd_operand): New predicate.
14189         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
14190         (shift-add insns using ASHIFT): New patterns.
14192 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
14194         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
14195         feasible.
14196         (fix_up_fall_thru_edges): Likewise.
14197         (fix_crossing_conditional_branches): Likewise. Promote jump targets
14198         from to rtx_insn to rtx_code_label where feasible.
14199         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
14200         gen_move_insn (returned type changed to rtx_insn).
14201         * builtins.c (expand_errno_check): Fix arguments of
14202         do_compare_rtx_and_jump (now expects rtx_code_label).
14203         (expand_builtin_acc_on_device): Likewise.
14204         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
14205         invert_jump (now exprects rtx_jump_insn).
14206         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
14207         (construct_init_block): Use rtx_code_label.
14208         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
14209         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
14210         calling redirect_jump.
14211         (patch_jump_insn): Likewise.
14212         (redirect_branch_edge): Likewise.
14213         (force_nonfallthru_and_redirect): Likewise.
14214         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
14215         when suitable.
14216         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
14217         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
14218         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
14219         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
14220         to store the value retured by gen_label_rtx.
14221         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
14222         rtx_jump_insn.
14223         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
14224         (split_branches): Fix calls of redirect_jump.
14225         * dojump.c (jumpifnot): Promote argument type from rtx to
14226         rtx_code_label.
14227         (jumpifnot_1): Likewise.
14228         (jumpif): Likewise.
14229         (jumpif_1): Likewise.
14230         (do_jump_1): Likewise.
14231         (do_jump): Likewise. Use rtx_code_label when feasible.
14232         (do_jump_by_parts_greater_rtx): Likewise.
14233         (do_jump_by_parts_zero_rtx): Likewise.
14234         (do_jump_by_parts_equality_rtx): Likewise.
14235         (do_compare_rtx_and_jump): Likewise.
14236         * dojump.h: Update function prototypes.
14237         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
14238         returns rtx_insn).
14239         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
14240         rtx_jump_insn.
14241         (emit_label_before): Likewise.
14242         (emit_jump_insn_after_noloc): Likewise.
14243         (emit_jump_insn_after_setloc): Likewise.
14244         (emit_jump_insn_after): Likewise
14245         (emit_jump_insn_before_setloc): Likewise.
14246         (emit_jump_insn_before): Likewise.
14247         (emit_label_before): Promote return type to rtx_code_label.
14248         (emit_label): Likewise.
14249         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
14250         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
14251         gen_move_insn.
14252         (emit_stack_restore): Likewise.
14253         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
14254         (do_cmp_and_jump): Likewise.
14255         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
14256         from rtx to rtx_code_label.
14257         (gen_move_insn_uncast): New function.
14258         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
14259         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
14260         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
14261         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
14262         invert_jump_1 and redirect_jump_1.
14263         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
14264         do_compare_rtx_and_jump.
14265         (expand_addsub_overflow): Likewise.
14266         (expand_neg_overflow): Likewise.
14267         (expand_mul_overflow): Likewise.
14268         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
14269         return value of gen_move_insn.
14270         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
14271         * loop-doloop.c (add_test): Use rtx_code_label.
14272         (doloop_modify): Likewise.
14273         (doloop_optimize): Likewise.
14274         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
14275         * lra-constraints.c (emit_spill_move): Remove cast of value returned
14276         by gen_move_insn.
14277         (inherit_reload_reg): Add cast when calling dump_insn_slim.
14278         (split_reg): Likewise.
14279         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
14280         gen_move_insn.
14281         * optabs.c (expand_binop_directly): Remove casts of values returned by
14282         maybe_gen_insn.
14283         (expand_unop_direct): Likewise.
14284         (expand_abs): Likewise.
14285         (maybe_emit_unop_insn): Likewise.
14286         (maybe_gen_insn): Promote return type to rtx_insn.
14287         * optabs.h: Update prototype of maybe_gen_insn.
14288         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
14289         redundant cast.
14290         * recog.c (struct peep2_insn_data): Promote type of insn field to
14291         rtx_insn.
14292         (peep2_reinit_state): Use NULL instead of NULL_RTX.
14293         (peep2_attempt): Remove casts of insn in peep2_insn_data.
14294         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
14295         * recog.h (struct insn_gen_fn): Promote return types of function
14296         pointers and operator ().from rtx to rtx_insn.
14297         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
14298         (fill_eager_delay_slots): Likewise.
14299         (relax_delay_slots): Likewise.
14300         (make_return_insns): Likewise.
14301         (dbr_schedule): Likewise.
14302         (optimize_skips): Likewise.
14303         (reorg_redirect_jump): Likewise.
14304         (fill_slots_from_thread): Likewise.
14305         * reorg.h: Update prototypes.
14306         * resource.c (find_dead_or_set_registers): Use dyn_cast to
14307         rtx_jump_insn instead of check.  Use it's jump_target method.
14308         * rtl.h (rtx_jump_insn::jump_label): Define new method.
14309         (rtx_jump_insn::jump_target): Define new method.
14310         (rtx_jump_insn::set_jump_target): Define new method.
14311         * rtlanal.c (tablejump_p): Promote type of one local variable.
14312         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
14313         (sched_analyze_insn): Likewise.
14314         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
14315         (print_insn): Likewise.
14316         * stmt.c (label_rtx): Promote return type to rtx_insn.
14317         (force_label_rtx): Likewise.
14318         (jump_target_rtx): Define new function.
14319         (expand_label): Use it, get rid of one cast.
14320         (expand_naked_return): Promote rtx to rtx_code_label.
14321         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
14322         (expand_case): Use rtx_code_label instread of rtx where feasible.
14323         (expand_sjlj_dispatch_table): Likewise.
14324         (emit_case_nodes): Likewise.
14325         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
14326         * store-motion.c (insert_store): Make use of new return type of
14327         gen_move_insn and remove a cast.
14328         (replace_store_insn): Likewise.
14330 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
14332         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
14333         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
14335 2015-05-20  Jeff Law  <law@redhat.com>
14337         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
14338         dispose of the jump thread path when the jump threading
14339         opportunity is cancelled.
14341 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14343         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
14344         when printing the caret character.
14346 2015-05-20  Marek Polacek  <polacek@redhat.com>
14348         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
14350 2015-05-20  Marek Polacek  <polacek@redhat.com>
14352         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
14353         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
14354         * gimple-fold.c (canonicalize_bool): Likewise.
14355         (same_bool_result_p): Likewise.
14356         * tree-if-conv.c (parse_predicate): Likewise.
14358 2015-05-20  Marek Polacek  <polacek@redhat.com>
14360         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
14361         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
14363 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14365         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
14366         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
14367         values.
14369 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
14371         * config/mips/mips.h (micromips_globals): Declare.
14373 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
14375         * timevar.def (TV_INITIALIZE_RTL): New.
14376         * toplev.c (initialize_rtl): Use an auto_timevar to account this
14377         function's time to TV_INITIALIZE_RTL.
14379 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14381         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
14382         gimple_build_nop calls.
14383         (chkp_find_bounds_for_elem): Likewise.
14384         (chkp_get_zero_bounds): Likewise.
14385         (chkp_get_none_bounds): Likewise.
14386         (chkp_get_bounds_by_definition): Likewise.
14387         (chkp_generate_extern_var_bounds): Likewise.
14388         (chkp_get_bounds_for_decl_addr): Likewise.
14389         (chkp_get_bounds_for_string_cst): Likewise.
14391 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
14393         PR tree-optimization/65447
14394         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
14395         (dump_use, dump_uses): Support to dump sub use.
14396         (record_use): New parameters to support sub use.  Remove call to
14397         dump_use.
14398         (record_sub_use, record_group_use): New functions.
14399         (compute_max_addr_offset, split_all_small_groups): New functions.
14400         (group_address_uses, rewrite_use_address): New functions.
14401         (strip_offset): New declaration.
14402         (find_interesting_uses_address): Call record_group_use.
14403         (add_candidate): New assertion.
14404         (infinite_cost_p): Move definition forward.
14405         (add_costs): Check INFTY cost and return immediately.
14406         (get_computation_cost_at): Clear setup cost and dependent bitmap
14407         for sub uses.
14408         (determine_use_iv_cost_address): Compute cost for sub uses.
14409         (rewrite_use_address_1): Rename from old rewrite_use_address.
14410         (free_loop_data): Free sub uses.
14411         (tree_ssa_iv_optimize_loop): Call group_address_uses.
14413 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14414             Jim Wilson  <jim.wilson@linaro.org>
14416         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
14417         new  fields loadv and storev.
14418         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
14419         Initialize loadv and storev.
14420         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
14421         (cortexa53_extra_costs): Likewise.
14422         (cortexa57_extra_costs): Likewise.
14423         (xgene1_extra_costs): Likewise.
14424         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
14425         rtx_costs.
14427 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14429         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
14430          storev.
14431         (cortexa8_extra_costs): Likewise.
14432         (cortexa5_extra_costs): Likewise.
14433         (cortexa7_extra_costs): Likewise.
14434         (cortexa12_extra_costs): Likewise.
14435         (cortexa15_extra_costs): Likewise.
14436         (v7m_extra_costs): Likewise.
14438 2015-05-20  Jeff Law  <law@redhat.com>
14440         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
14441         instead of open-coded version.  Also delete the jump thread created
14442         within this function.
14444 2015-05-20  Alan Modra  <amodra@gmail.com>
14446         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
14447         stack adjusting insn.  Formatting.
14448         (rs6000_emit_prologue): Track stack adjusting insn, and use of
14449         r12.  If possible, emit first -fsplit-stack arg pointer insn
14450         before stack adjust.  Don't use r12 to save cr if split-stack.
14452 2015-05-20  Alan Modra  <amodra@gmail.com>
14454         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
14455         Define.
14456         (rs6000_supports_split_stack): New function.
14457         * gcc/config/rs6000/rs6000.c (machine_function): Add
14458         split_stack_arg_pointer.
14459         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
14460         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
14461         rather than virtual_incoming_args_rtx.
14462         (rs6000_va_start): Likewise.
14463         (split_stack_arg_pointer_used_p): New function.
14464         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
14465         (morestack_ref): New var.
14466         (gen_add3_const, rs6000_expand_split_stack_prologue,
14467         rs6000_internal_arg_pointer, rs6000_live_on_entry,
14468         rs6000_split_stack_space_check): New functions.
14469         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
14470         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
14471         (UNSPECV_SPLIT_STACK_RETURN): Define.
14472         (split_stack_prologue, load_split_stack_limit,
14473         load_split_stack_limit_di, load_split_stack_limit_si,
14474         split_stack_return, split_stack_space_check): New expands and insns.
14475         * gcc/config/rs6000/rs6000-protos.h
14476         (rs6000_expand_split_stack_prologue): Declare.
14477         (rs6000_split_stack_space_check): Declare.
14479 2015-05-20  Alan Modra  <amodra@gmail.com>
14481         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
14482         (direct_return): Test vrsave_size rather than vrsave_mask.
14483         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
14484         (rs6000_emit_epilogue): Likewise.
14486 2015-05-20  Alan Modra  <amodra@gmail.com>
14488         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
14489         when not saving registers.
14490         (debug_stack_info): Adjust to omit printing unused offsets,
14491         as before.
14492         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
14493         expression.
14495 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14497         PR c++/65835
14498         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
14499         value_type to const char *.
14501 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
14503         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
14504         to build a biarch toolchain again.
14506 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14508         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
14509         or implicit declarations.
14510         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
14511         into it.
14512         (get_odr_type): Check type has linkage before adding bases.
14513         (register_odr_type): Check that type has linkage before adding it.
14514         (type_known_to_have_no_deriavations_p): Rename to ..
14515         (type_known_to_have_no_derivations_p): This one.
14516         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
14517         (type_known_to_have_no_derivations_p): This one.
14518         * ipa-polymorphic-call.c
14519         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
14520         type has linkage.
14522 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14524         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
14525         (layout_type): Use RECORD_OR_UNION_TYPE_P.
14527 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14529         * config/s390/s390.c (s390_vector_bool_type_p): New function.
14530         (s390_invalid_binary_op): New function.
14531         (TARGET_INVALID_BINARY_OP): Define macro.
14533 2015-05-19  David Sherwood  <david.sherwood@arm.com>
14535         * loop-invariant.c (create_new_invariant): Don't calculate address cost
14536         if mode is not a scalar integer.
14537         (get_inv_cost): Increase computational cost for unused invariants.
14539 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14541         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
14542         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
14543         * config/s390/s390-builtin-types.def: New file.
14544         * config/s390/s390-builtins.def: New file.
14545         * config/s390/s390-builtins.h: New file.
14546         * config/s390/s390-c.c: New file.
14547         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
14548         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
14549         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
14550         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
14551         prototypes.
14552         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
14553         Include.
14554         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
14555         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
14556         variable definitions.
14557         (s390_const_operand_ok): New function.
14558         (s390_expand_builtin): Rewrite.
14559         (s390_init_builtins): New function.
14560         (s390_handle_vectorbool_attribute): New function.
14561         (s390_attribute_table): Add s390_vector_bool attribute.
14562         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
14563         (s390_branch_condition_mask): Generate masks for new modes.
14564         (s390_expand_vec_compare_cc): New function.
14565         (s390_mangle_type): Add mangling for vector bool types.
14566         (enum s390_builtin): Remove.
14567         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
14568         efpc builtins.
14569         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
14570         s390_cpu_cpp_builtins.
14571         (REGISTER_TARGET_PRAGMAS): New macro.
14572         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
14573         (insn_cmp mode attribute): Add new CC modes.
14574         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
14575         (lcbb): New pattern definition.
14576         * config/s390/s390intrin.h: Include vecintrin.h.
14577         * config/s390/t-s390: New file.
14578         * config/s390/vecintrin.h: New file.
14579         * config/s390/vector.md: Include vx-builtins.md.
14580         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
14581         support.
14583 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14585         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
14586         CCVFHE.
14587         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
14588         (s390_select_ccmode): Likewise.
14589         (s390_canonicalize_comparison): Swap operands if necessary.
14590         (s390_expand_vec_compare_scalar): Expand DFmode compare using
14591         single element vector instructions.
14592         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
14593         (s390_branch_condition_mask): Generate CC masks for the new modes.
14594         * config/s390/s390.md (v0, vf, vd): New mode attributes.
14595         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
14596         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
14597         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
14598         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
14599         (*extend<DSF:mode><BFP:mode>2): New insn definition.
14600         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
14601         (extend<DSF:mode><BFP:mode>2): Turn into expander.
14602         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
14603         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
14604         (sqrt<mode>2): Add vector instruction.
14606 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14608         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
14609         constraints.
14610         * config/s390/predicates.md (const0_operand, constm1_operand)
14611         (constable_operand): Accept vector operands.
14612         * config/s390/s390-modes.def: Add supported vector modes.
14613         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
14614         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
14615         (s390_bytemask_vector_p, s390_expand_vec_strlen)
14616         (s390_expand_vec_compare, s390_expand_vcond)
14617         (s390_expand_vec_init): Add prototypes.
14618         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
14619         (s390_vector_mode_supported_p): New function.
14620         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
14621         (s390_contiguous_bitmask_vector_p): New function.
14622         (s390_bytemask_vector_p): New function.
14623         (s390_split_ok_p): Vector regs don't work either.
14624         (regclass_map): Add VEC_REGS.
14625         (s390_legitimate_constant_p): Handle vector constants.
14626         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
14627         (legitimate_reload_vector_constant_p): New function.
14628         (s390_preferred_reload_class): Handle CONST_VECTOR.
14629         (s390_reload_symref_address):  Likewise.
14630         (s390_secondary_reload): Vector memory instructions only support
14631         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
14632         (s390_emit_ccraw_jump): New function.
14633         (s390_expand_vec_strlen): New function.
14634         (s390_expand_vec_compare): New function.
14635         (s390_expand_vcond): New function.
14636         (s390_expand_vec_init): New function.
14637         (s390_dwarf_frame_reg_mode): New function.
14638         (print_operand): Handle addresses with 'O' and 'R' constraints.
14639         (NR_C_MODES, constant_modes): Add vector modes.
14640         (s390_output_pool_entry): Handle vector constants.
14641         (s390_hard_regno_mode_ok): Handle vector registers.
14642         (s390_class_max_nregs): Likewise.
14643         (s390_cannot_change_mode_class): New function.
14644         (s390_invalid_arg_for_unprototyped_fn): New function.
14645         (s390_function_arg_vector): New function.
14646         (s390_function_arg_float): Remove size variable.
14647         (s390_pass_by_reference): Handle vector arguments.
14648         (s390_function_arg_advance): Likewise.
14649         (s390_function_arg): Likewise.
14650         (s390_return_in_memory): Vector values are returned in a VR if
14651         possible.
14652         (s390_function_and_libcall_value): Handle vector arguments.
14653         (s390_gimplify_va_arg): Likewise.
14654         (s390_call_saved_register_used): Consider the arguments named.
14655         (s390_conditional_register_usage): Disable v16-v31 for non-vec
14656         targets.
14657         (s390_preferred_simd_mode): New function.
14658         (s390_support_vector_misalignment): New function.
14659         (s390_vector_alignment): New function.
14660         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
14661         (TARGET_VECTOR_MODE_SUPPORTED_P)
14662         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
14663         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
14664         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
14665         (TARGET_VECTOR_ALIGNMENT): Define target macro.
14666         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
14667         (FIRST_PSEUDO_REGISTER): Increase value.
14668         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
14669         (VECTOR_REG_P): Define macros.
14670         (FIXED_REGISTERS, CALL_USED_REGISTERS)
14671         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
14672         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
14673         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
14674         Add vector registers.
14675         (CANNOT_CHANGE_MODE_CLASS): Call C function.
14676         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
14677         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
14678         memory.
14679         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
14680         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
14681         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
14682         (VR*_REGNUM): New constants.
14683         (ALL): New mode iterator.
14684         (INTALL): Remove mode iterator.
14685         Include vector.md.
14686         (movti): Implement TImode moves for VRs.
14687         Disable TImode splitter for VR targets.
14688         Implement splitting TImode GPR<->VR moves.
14689         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
14690         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
14691         reload<mode>_la_in, reload<mode>_la_out.
14692         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
14693         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
14694         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
14695         (mov<mode> SF SD): Prefer lder, lde for loading.
14696         Add lrl and strl instructions.
14697         Add vector instructions.
14698         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
14699         Call s390_expand_vec_strlen on z13.
14700         (*cc_to_int): Change predicate to nonimmediate_operand.
14701         (addti3): Rename to *addti3.  New expander.
14702         (subti3): Rename to *subti3.  New expander.
14703         * config/s390/vector.md: New file.
14705 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14707         * common/config/s390/s390-common.c (processor_flags_table): Add
14708         z13.
14709         * config.gcc: Add z13.
14710         * config/s390/s390-opts.h (enum processor_type): Add
14711         PROCESSOR_2964_Z13.
14712         * config/s390/s390.c (s390_adjust_priority): Check for
14713         PROCESSOR_2964_Z13.
14714         (s390_reorg): Likewise.
14715         (s390_sched_reorder): Likewise.
14716         (s390_sched_variable_issue): Likewise.
14717         (s390_loop_unroll_adjust): Likewise.
14718         (s390_option_override): Likewise. Default to -mvx when available.
14719         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
14720         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
14721         (TARGET_VX_ABI): Define macros.
14722         macros.
14723         (TARGET_DEFAULT): Add MASK_OPT_VX.
14724         * config/s390/s390.md ("cpu" attribute): Add z13.
14725         ("cpu_facility" attribute): Add vec.
14726         * config/s390/s390.opt (processor_type): Add z13.
14727         (mvx): New options.
14728         * doc/invoke.texi: Add z13 option for -march.
14730 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14732         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
14733         mode check to make sure that only scalar integer values are
14734         accepted.
14736 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14738         * tree.c (verify_type_variant): Fix #undef.
14739         (gimple_canonical_types_compatible_p): Move here from lto.c
14740         (verify_type): Verify TYPE_CANONICAL compatibility.
14741         * tree.h (gimple_canonical_types_compatible_p): Declare.
14743 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14745         PR middle-end/66199
14746         * tree.h (OMP_TEAMS_COMBINED): Define.
14747         * gimplify.c (enum gimplify_omp_var_data): Add
14748         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
14749         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
14750         (omp_notice_variable): Accept both ORT_TEAMS
14751         and ORT_COMBINED_TEAMS.  Don't recurse if
14752         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
14753         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
14754         GOVD_FIRSTPRIVATE.
14755         (omp_no_lastprivate): New function.
14756         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
14757         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
14758         notice_outer and set appropriate bits, otherwise make
14759         sure default(none) combined constructs won't complain.
14760         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
14761         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
14762         omp_no_lastprivate either remove the clause or turn it
14763         into OMP_CLAUSE_PRIVATE.
14764         (gimplify_omp_for): Fix up handling of implicit
14765         lastprivate or linear iterators.
14766         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
14767         ORT_COMBINED_TEAMS.
14768         * omp-low.c (lower_omp_for_lastprivate): For combined
14769         for simd use fd.loop.n2 from the for rather than simd.
14771 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14773         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
14774         instead of gen_rtx_raw_REG.
14775         (cris_expand_epilogue): Likewise.
14776         * config/microblaze/microblaze.c (microblaze_classify_address):
14777         Likewise.
14778         * config/sparc/sparc.md: Likewise.
14780 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
14782         * config/alpha/alpha.c (alpha_legitimize_reload_address)
14783         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
14784         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
14785         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
14786         Use CASE_CONST_SCALAR_INT.
14787         (print_operand) <case 'M'>: Use mode_width_operand to check the
14788         value of the constant.
14789         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
14790         * config/alpha/predicates.md (input_operand): Use general_operand
14791         instead of match_code as operand check.
14792         (symbolic_operand): Use match_code with subexpression digits.
14793         * config/alpha/constraints.md (Q): Ditto.
14795 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14797         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
14799 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14801         * config/s390/s390.c (s390_secondary_reload): Fix check for
14802         load/store relative.
14804 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14806         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
14807         alternative_mask to uint64_t.
14809 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14811         PR tree-optimization/66187
14812         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
14813         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
14814         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
14816 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
14818         * diagnostic.c (diagnostic_report_current_module): Strengthen
14819         local "new_map" from const line_map * to
14820         const line_map_ordinary *.
14821         * genmatch.c (error_cb): Likewise for local "map".
14822         (output_line_directive): Likewise for local "map".
14823         * input.c (expand_location_1): Likewise for local "map".
14824         Pass NULL rather than &map to
14825         linemap_unwind_to_first_non_reserved_loc, since the value is never
14826         read from there, and the value written back not read from here.
14827         (is_location_from_builtin_token): Strengthen local "map" from
14828         const line_map * to const line_map_ordinary *.
14829         (dump_location_info): Strengthen locals "map" from
14830         line_map *, one to const line_map_ordinary *, the other
14831         to const line_map_macro *.
14832         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
14833         const line_map * to const line_map_macro *.
14834         (maybe_unwind_expanded_macro_loc): Add a call to
14835         linemap_check_macro when writing to the "map" field of the
14836         loc_map_pair.
14837         Introduce local const line_map_ordinary * "ord_map", using it in
14838         place of "map" in the part of the function where we know we have
14839         an ordinary map.  Strengthen local "m" from const line_map * to
14840         const line_map_ordinary *.
14842 2015-05-19  Nick Clifton  <nickc@redhat.com>
14844         PR target/66156
14845         * config/msp430/msp430.md (zero_extendhisi2): Add support for
14846         separate source and destination registers.
14848 2015-05-19  Richard Biener  <rguenther@suse.de>
14850         PR tree-optimization/66165
14851         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
14852         for no load permutation.
14854         PR tree-optimization/66185
14855         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
14856         when building the SLP node from scalars.
14858 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14859             Tristan Gingold  <gingold@adacore.com>
14861         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
14862         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
14863         (expand_stack_restore): Call record_new_stack_level.
14864         (expand_stack_save): Do not call do_pending_stack_adjust.
14865         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
14866         * calls.c (expand_call): Call record_new_stack_level for alloca.
14867         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
14868         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
14869         (update_sjlj_context): New global function.
14870         * except.h (update_sjlj_context): Declare.
14871         * explow.c (record_new_stack_level): New global function.
14872         (allocate_dynamic_stack_space): Call record_new_stack_level.
14873         * explow.h (record_new_stack_level): Declare.
14874         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
14875         * cfgrtl.c (duplicate_insn_chain): Likewise.
14877 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14879         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
14880         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
14881         STACK_GROWS_DOWNWARD as normal if.
14882         (expand_call): Likewise.
14884 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
14886         PR target/54236
14887         * config/sh/sh.md (*round_int_even): New insn_and_split and
14888         accompanying new unnamed split.
14890 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14892         * bitmap.c (bitmap_set_range): Handle count==1 specially.
14893         (bitmap_clear_range): Likewise.
14894         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
14895         bitmap_set_range unconditionally.
14896         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14897         * df-scan.c (df_mark_reg): Likewise.
14898         * haifa-sched.c (setup_ref_regs): Likewise.
14899         * sched-rgn.c (update_live_1): Likewise.
14901 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14903         * regs.h (END_HARD_REGNO): Delete.
14904         (END_REGNO): Move to...
14905         * rtl.h: ...here.
14906         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
14907         * caller-save.c (mark_set_regs): Likewise.
14908         * combine.c (move_deaths, distribute_notes): Likewise.
14909         * cse.c (invalidate, invalidate_for_call): Likewise.
14910         * df-scan.c (df_ref_record): Likewise.
14911         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
14912         (record_last_reg_set_info): Likewise.
14913         * reg-stack.c (convert_regs_exit): Likewise.
14914         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
14915         * resource.c (update_live_status): Likewise.
14916         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
14918 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14920         * rtl.h (reg_info): Add an nregs field.
14921         (REG_NREGS): Use it.
14922         (SET_REGNO_RAW): Delete.
14923         (set_regno_raw): New function.
14924         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
14925         (END_REGNO): Redefine in terms of REG_NREGS.
14926         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
14927         SET_REGNO_RAW.
14928         * emit-rtl.c (set_mode_and_regno): Likewise.
14929         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
14930         instead of SET_REGNO_RAW.
14932 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14934         * rtl.h (PUT_MODE_RAW): New macro.
14935         (PUT_REG_NOTE_KIND): Use it.
14936         (set_mode_and_regno): Declare.
14937         (gen_raw_REG): Change regno to "unsigned int".
14938         (gen_rtx_REG): Change "unsigned" to "unsigned int".
14939         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
14940         use set_mode_and_regno to change the mode of registers.
14941         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
14942         * emit-rtl.c (set_mode_and_regno): New function.
14943         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
14944         * caller-save.c (reg_save_code): Use set_mode_and_regno.
14945         * expr.c (init_expr_target): Likewise.
14946         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14947         * postreload.c (reload_cse_simplify_operands): Likewise.
14949 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14951         * caller-save.c (init_caller_save): Use word_mode and
14952         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
14953         * expr.c (init_expr_target): Likewise.
14954         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14955         * postreload.c (reload_cse_regs_1): Likewise.
14957 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14959         * rtl.def (REG): Change format to "r".
14960         * rtl.h (rtunion): Remove rt_reg.
14961         (reg_info): New structure.
14962         (rtx_def): Add reg field to main union.
14963         (X0REGATTR): Delete.
14964         (REG_CHECK): New macro.
14965         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
14966         * rtl.c (rtx_format): Document "r".
14967         (rtx_code_size): Handle REG specially.
14968         * gengenrtl.c (special_format): Return true for formats
14969         that include 'r'.
14970         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
14971         Deal with REG_ATTRS after the field loop.
14972         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
14973         * expmed.c (init_expmed): Call gen_raw_REG instead of
14974         gen_rtx_raw_REG.
14975         * expr.c (init_expr_target): Likewise.
14976         * regcprop.c (maybe_mode_change): Likewise.
14977         * varasm.c (make_decl_rtl): Likewise.
14978         * final.c (leaf_renumber_regs_insn): Return early after
14979         handling REGs.
14980         * genemit.c (gen_exp): Handle 'r' fields.
14981         * genpeep.c (match_rtx): Likewise.
14982         * gensupport.c (subst_pattern_match): Likewise.
14983         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
14984         (alter_constraints, subst_dup): Likewise.
14985         * read-rtl.c (read_rtx_code): Likewise.
14986         * print-rtl.c (print_rtx): Likewise.
14987         * genrecog.c (find_operand, find_matching_operand): Likewise.
14988         (validate_pattern, match_pattern_2): Likewise.
14989         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
14990         (rtx_test::regno_field): New function.
14991         (operator ==, safe_to_hoist_p, transition_parameter_type)
14992         (parameter_type_string, print_parameter_value)
14993         (print_nonbool_test, print_test): Handle new enum values.
14994         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
14995         * lra-constraints.c (operands_match_p): Likewise.
14997 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14999         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
15000         Change type of new_regno to unsigned int.
15001         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
15002         new_regno to unsigned int.
15003         (df_ref_change_reg_with_loc): Remove old_regno parameter.
15004         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
15005         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
15006         (SET_REGNO_RAW): Add space after ",".
15008 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15010         * rtl.h (REG_NREGS): New macro
15011         * alias.c (record_set): Use it.
15012         * cfgcleanup.c (mark_effect): Likewise.
15013         * combine.c (likely_spilled_retval_1): Likewise.
15014         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
15015         (move_deaths, distribute_notes): Likewise.
15016         * cselib.c (cselib_record_set): Likewise.
15017         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
15018         * df-scan.c (df_mark_reg): Likewise.
15019         * dse.c (look_for_hardregs): Likewise.
15020         * dwarf2out.c (reg_loc_descriptor): Likewise.
15021         (multiple_reg_loc_descriptor): Likewise.
15022         * expr.c (write_complex_part, read_complex_part): Likewise.
15023         (emit_move_complex): Likewise.
15024         * haifa-sched.c (setup_ref_regs): Likewise.
15025         * ira-lives.c (mark_hard_reg_live): Likewise.
15026         * lra.c (lra_set_insn_recog_data): Likewise.
15027         * mode-switching.c (create_pre_exit): Likewise.
15028         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
15029         (reload_combine_recognize_pattern): Likewise.
15030         (reload_combine_note_use, move2add_record_mode): Likewise.
15031         (reload_cse_move2add): Likewise.
15032         * reg-stack.c (subst_stack_regs_pat): Likewise.
15033         * regcprop.c (kill_value, copy_value): Likewise.
15034         (copyprop_hardreg_forward_1): Likewise.
15035         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
15036         (build_def_use): Likewise.
15037         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
15038         (deps_analyze_insn): Likewise.
15039         * sched-rgn.c (check_live_1, update_live_1): Likewise.
15040         * sel-sched.c (count_occurrences_equiv): Likewise.
15041         * valtrack.c (dead_debug_insert_temp): Likewise.
15043 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15045         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
15046         * dse.c (note_add_store): Likewise.
15047         * ira-lives.c (mark_hard_reg_dead): Likewise.
15048         * loop-invariant.c (mark_reg_store): Likewise.
15049         (mark_reg_death): Likewise.
15050         * postreload.c (reload_combine): Likewise.
15051         (reload_combine_note_store): Likewise.
15052         (reload_combine_note_use): Likewise.
15053         * recog.c (peep2_reg_dead_p): Likewise.
15055 2015-05-19  Alan Modra  <amodra@gmail.com>
15057         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
15058         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
15059         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
15060         unused predicates.
15061         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
15062         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
15063         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
15064         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
15066 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
15068         * config/mips/mips.md (JOIN_MODE): New mode iterator.
15069         (join2_load_Store<JOIN_MODE:mode>): New pattern.
15070         (join2_loadhi): Likewise.
15071         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
15072         load-load and store-stores.
15073         * config/mips/mips.opt (mload-store-pairs): New option.
15074         (TARGET_LOAD_STORE_PAIRS): New macro.
15075         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
15076         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
15077         * config/mips/mips.c (mips_load_store_bonding_p): New function.
15079 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
15081         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
15082         explicit swaps.
15083         * dojump.c (do_compare_rtx_and_jump): Likewise.
15084         * expmed.c (emit_store_flag_1): Likewise.
15085         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
15086         * final.c (sprint_ul): Use std::reverse for reversing a string.
15087         * fold-const.c (extract_muldiv_1): Use std::swap.
15088         * genmodes.c (emit_mode_int_n): Likewise.
15089         * ifcvt.c (dead_or_predicable): Likewise.
15090         * ira-build.c (ira_merge_live_ranges): Likewise.
15091         (swap_allocno_copy_ends_if_necessary): Likewise.
15092         * ira.c (ira_setup_alts): Likewise.
15093         * loop-iv.c (iv_analyze_expr): Likewise.
15094         (implies_p): Likewise.
15095         (canon_condition): Likewise.
15096         * lra-constraints.c (swap_operands): Likewise.
15097         * lra-lives.c (lra_merge_live_ranges): Likewise.
15098         * omega.c (swap): Remove.
15099         (bswap): Remove.
15100         (omega_unprotect_1): Use std::swap.
15101         (omega_solve_geq): Likewise.
15102         * optabs.c (expand_binop_directly): Likewise.
15103         (expand_binop): Likewise.
15104         (emit_conditional_move): Likewise.
15105         (emit_conditional_add): Likewise.
15106         * postreload.c (reload_cse_simplify_operands): Likewise.
15107         * reg-stack.c (emit_swap_insn): Likewise.
15108         (swap_to_top): Likewise.
15109         (compare_for_stack_reg): Likewise.
15110         (subst_asm_stack_regs): Likewise.
15111         * reload.c (find_reloads): Likewise.
15112         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
15113         * sel-sched.c (invoke_reorder_hooks): Likewise.
15114         (create_block_for_bookkeeping): Likewise.
15115         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
15116         (lambda_matrix_right_hermite): Use std::swap.
15117         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
15118         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15119         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
15120         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
15121         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
15122         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
15123         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15124         * tree-vrp.c (compare_ranges): Likewise.
15125         * var-tracking.c (add_with_sets): Likewise.
15126         (vt_find_locations): Likewise.
15128 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
15130         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
15131         pie executables.
15132         (FBSD_ENDFILE_SPEC): Likewise.
15133         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
15134         config/freebsd-spec.h.
15135         (ENDFILE_SPEC): Likewise.
15137 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
15138             Richard Henderson  <rth@redhat.com>
15140         PR target/57032
15141         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
15142         Check for a memory location that is not a reference (using an AND)
15143         to an unaligned location here.
15144         * config/alpha/predicates.md (normal_memory_operand): Remove.
15146 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
15148         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
15149         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
15151 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15153         * config/mips/mips.c (micromips_globals): New variable.
15154         (mips_set_compression_mode): Save and reinitialize target-dependent
15155         state for microMIPS.
15157 2015-05-18  Martin Liska  <mliska@suse.cz>
15159         * dbgcnt.def: Add new counter.
15160         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
15162 2015-05-18  Martin Liska  <mliska@suse.cz>
15164         * dbgcnt.def: Sort counters.
15165         * opts.c (common_handle_option): Do not compile if
15166         -fdbg-cnt-list is enabled.
15168 2015-05-18  Tom de Vries  <tom@codesourcery.com>
15170         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
15171         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
15172         address operator to va_list operand.
15173         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
15174         unconditionally.
15175         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
15176         operand.
15177         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
15178         * config/s390/s390.c (s390_gimplify_va_arg): Same.
15179         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
15181 2015-05-18  Tom de Vries  <tom@codesourcery.com>
15183         * tree-ssa-tail-merge.c: Fix whitespace.
15185 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
15187         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
15188         cortex-a17, and cortex-a17.cortex-a7.
15190 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
15192         PR target/54236
15193         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
15195 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
15197         PR target/66174
15198         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
15199         QImode inner modes for TARGET_AVX512BW.  Force mask operand
15200         to a register for AVX512F modes.
15202 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15204         * toplev.c (emit_debug_global_declarations): Do not output debug info
15205         when doing slim LTO objects.
15207 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15209         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
15210         odr_types_equivalent_p): Declare.
15211         (odr_type_p): Use gcc_checking_assert.
15212         (type_in_anonymous_namespace_p) Declare.
15213         (type_with_linkage_p): Declare.
15214         * common.opt (Wlto-type-mismatch): New warning.
15215         * ipa-devirt.c (compound_type_base): New function.
15216         (odr_or_derived_type_p): New function.
15217         (odr_types_equivalent_p): New function.
15218         (add_type_duplicate): Simplify.
15219         (type_with_linkage_p): Add hack to prevent false positives on C types
15220         (type_in_anonymous_namespace_p): Likewise.
15221         * tree.c (need_assembler_name_p): Use type_with_linkage.
15222         * tree.h (type_in_anonymous_namespace_p): Remove.
15223         * doc/invoke.texi (-Wlto-type-mismatch): Document
15225 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15227         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
15228         (verify_type): Verify STRING_FLAG.
15230 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15232         PR fortran/44054
15233         * tree-pretty-print.c (percent_K_format): Replace locus pointer
15234         with accessor function.
15235         * tree-diagnostic.c (diagnostic_report_current_function): Use
15236         diagnostic_location function.
15237         (maybe_unwind_expanded_macro_loc): Likewise.
15238         (virt_loc_aware_diagnostic_finalizer): Likewise.
15239         (default_tree_printer): Replace locus pointer with accessor function.
15240         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
15241         (diagnostic_set_info_translated): Initialize second location.
15242         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
15243         (diagnostic_show_locus): Handle two locations. Call
15244         diagnostic_print_caret_line.
15245         (diagnostic_print_caret_line): New.
15246         (default_diagnostic_starter): Use diagnostic_location function.
15247         (diagnostic_report_diagnostic): Use diagnostic_location function.
15248         (verbatim): Do not set text.locus.
15249         * diagnostic.h (struct diagnostic_info): Remove location field.
15250         (struct diagnostic_context): Make caret_chars an array of two.
15251         (diagnostic_location): New inline.
15252         (diagnostic_expand_location): Handle two locations.
15253         (diagnostic_same_line): New inline.
15254         (diagnostic_print_caret_line): Declare.
15255         (CARET_LINE_MARGIN): New constant.
15256         * pretty-print.c (pp_printf): Do not set text.locus.
15257         (pp_verbatim): Do not set text.locus.
15258         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
15259         (struct text_info): Replace locus pointer with locations
15260         array. Add accessor functions.
15262 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
15263             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15265         PR target/65768
15266         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
15267         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
15268          large constants in register instead of splitting them.
15270 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
15272         PR target/66140
15273         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
15274         replacements in memory addresses.
15275         (get_unaligned_address): Ditto.
15277 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
15279         * config/ft32/*: New files for FT32 port.
15280         * doc/install.texi: Add FT32 information.
15281         * doc/invoke.texi: Add FT32 information.
15282         * doc/md.texi: Add FT32 information.
15283         * doc/contrib.texi: Self added.
15285 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
15287         PR tree-optimization/64454
15288         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
15289         (-1 - A -> ~A): Remove unnecessary condition.
15291 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
15293         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
15294         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
15295         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
15297 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
15299         * ipa-chkp.h (chkp_wrap_function): New.
15300         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
15301         (chkp_wrap_function_name): New.
15302         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
15303         to get wrapper name.
15304         * lto-cgraph.c: Include ipa-chkp.h.
15305         (input_cgraph_1): Avoid alias chain for wrappers.
15307 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15309         PR middle-end/66134
15310         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
15311         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
15313 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15315         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
15316         (AARCH64_FL_SLOWMUL): Delete.
15317         (AARCH64_FL_CRC): Redefine to 1<<3.
15318         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
15320 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15322         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
15323         casting.
15325 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
15327         * config/alpha/alpha.md (extendqidi2): Use general_operand
15328         instead of some_operand for operand[1] predicate.
15329         (extendhidi2): Ditto.
15330         (cbranchdi4): Use general_operand instead of some_operand
15331         for operand[1] and operands[2] predicates.
15332         (cstoredi4): Ditto.
15333         * config/alpha/predicates.md (some_operand): Remove unused predicate.
15334         (some_ni_operand): Ditto.
15336 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
15338         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
15339         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
15340         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
15341         low part of the constant using alpha_emit_set_const_1.
15342         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
15344 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
15346         * varasm.c (output_constant_pool_1): Pass down alignment from
15347         constant pool entry's descriptor to output_constant_pool_2.
15348         (output_object_block): Add comment prior to call to
15349         output_constant_pool_1.
15351 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
15353         PR rtl-optimization/65862
15354         * target.def (ira_change_pseudo_allocno_class): New hook.
15355         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
15356         value of the hook.
15357         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
15358         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
15359         hook.
15360         * ira-costs.c (find_costs_and_classes): Call the hook and change
15361         classes when it is necessary.
15362         * doc/tm.texi: Update.
15364 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
15366         * config/i386/i386.md (sibcall_memory): Check that register with
15367         callee address is not also used as one of the arguments, instead
15368         of checking that it is not live after the sibcall.
15369         (sibcall_pop_memory): Ditto.
15370         (sibcall_value_memory): Ditto.
15371         (sibcall_value_pop_memory): Ditto.
15373 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
15375         * generic-match-head.c (types_match): Handle non-types.
15376         * gimple-match-head.c (types_match): Likewise.
15377         * match.pd: Remove unnecessary TREE_TYPE for types_match.
15379 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
15381         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
15382         (csneg3<mode>_insn): Enable expansion of pattern.
15384 2015-05-14  Nick Clifton  <nickc@redhat.com>
15386         * config/rl78/rl78.c (rl78_select_section): Select the correct
15387         default section based upon the category of the decl.
15389 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15391         PR rtl-optimization/30967
15392         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
15393         destination mode for the cost of scc patterns.
15395 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15397         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
15398         using SWIM248 mode iterator.
15399         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
15400         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
15401         for operand[2] constraint.
15402         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
15404 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15406         PR middle-end/66133
15407         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
15408         make sure it is never noreturn, even when the task body does not
15409         return.
15410         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
15411         right before GIMPLE_OMP_RETURN.
15412         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
15413         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
15414         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
15416 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15418         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
15419         * tree-ssa-math-opts.c: Include params.h
15420         (pow_synth_sqrt_info): New struct.
15421         (representable_as_half_series_p): New function.
15422         (get_fn_chain): Likewise.
15423         (print_nested_fn): Likewise.
15424         (dump_fractional_sqrt_sequence): Likewise.
15425         (dump_integer_part): Likewise.
15426         (expand_pow_as_sqrts): Likewise.
15427         (gimple_expand_builtin_pow): Use above to attempt to expand
15428         pow as series of square roots.  Removed now unused variables.
15430 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15432         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
15433         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
15434         Remove *p0 and *p1 arguments.  Rewrite function.
15435         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
15436         (alpha_split_const_mov): Update calls to alpha_extract_integer and
15437         alpha_emit_set_long_const.
15438         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
15439         (alpha_output_mi_thunk_osf): Ditto.
15440         * config/alpha/alpha.md (movti): Do not check operands[1]
15441         for CONST_DOUBLE.
15443 2015-05-13  Richard Biener  <rguenther@suse.de>
15445         PR tree-optimization/66129
15446         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
15447         commutative.
15448         (vect_schedule_slp_instance): Fix typo.
15450 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
15452         * common.opt (fdump-internal-locations): New option.
15453         * input.c: Include diagnostic-core.h.
15454         (get_end_location): New function.
15455         (write_digit): New function.
15456         (write_digit_row): New function.
15457         (dump_location_range): New function.
15458         (dump_labelled_location_range): New function.
15459         (dump_location_info): New function.
15460         * input.h (dump_location_info): New prototype.
15461         * toplev.c (compile_file): Handle flag_dump_locations.
15463 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15465         * gimple-expr.h (is_gimple_constant): Reorder.
15466         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
15468 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15470         * combine.c (simplify_set): When generating a CC set, if the
15471         source already is in the correct mode, do not wrap it in a
15472         compare.  Simplify the rest of that code.
15474 2015-05-13  Richard Biener  <rguenther@suse.de>
15476         PR tree-optimization/66123
15477         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
15478         a taken edge.
15480 2015-05-13  Richard Biener  <rguenther@suse.de>
15482         PR middle-end/66110
15483         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
15484         specially.
15485         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
15487 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15489         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
15490         * aclocal.m4: Regenerated with automake-1.11.6.
15492 2015-05-13  Tom de Vries  <tom@codesourcery.com>
15494         PR tree-optimization/66010
15495         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
15496         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
15497         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
15498         and rval based on do_deref.
15500 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15502         PR target/65103
15503         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
15504         link time constants into adress expressions and therefore set
15505         their cost to 0.
15507 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15509         PR target/66112
15510         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
15511         Use SWI248 iterator instead of SWI.
15512         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
15513         Use eq_attr "alternative" "0" instead of match_test in
15514         length_immediate attribute computation.
15515         (*mulvhi4, *mulvhi4_1): New define_insns.
15517         PR target/66112
15518         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
15519         SIGNED to get precision of non-negative value.
15521 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15523         PR target/66048
15524         * function.c (diddle_return_value_1): Process bounds first.
15525         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
15526         register.
15528 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15530         PR rtl-optimization/64616
15531         * loop-invariant.c (can_move_invariant_reg): New.
15532         (move_invariant_reg): Call above new function to decide whether
15533         instruction can just be moved, skipping creation of temporary
15534         register.
15536 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15538         PR target/pr66047.c
15539         * i386.c (ix86_function_sseregparm): Only return -1 if local function
15540         with implied regparm is called from -mno-sse function.
15541         (init_cumulative_args): Output error if ix86_function_sseregparm
15542         return -1 and SSE register would be needed.
15543         (function_arg_advance_32): Likewise.
15544         (function_arg_32): Likewise.
15545         * i386.h (ix86_args): Add decl field.
15547 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15549         PR ipa/65873
15550         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
15551         inlines across optimization boundary.
15553 2015-05-12  Jason Merrill  <jason@redhat.com>
15555         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
15556         string literal and macro name.
15558 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
15560         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
15561         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
15562         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
15564 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15566         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
15567         (-Wmisleading-indentation): New option.
15568         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
15570 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
15572         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
15573         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
15574         (alpha_extract_integer): Ditto.
15575         (alpha_legitimate_constant_p): Ditto.
15576         (alpha_split_tmode_pair): Ditto.
15577         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
15578         (alpha_expand_mov): Ditto.
15579         (print_operand): Remove handling of 'H' modifier.
15580         <case 'm'>: Remove CONST_DOUBLE handling.
15581         (summarize_insn): Handle CONST_WIDE_INT.
15582         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
15583         (anddi3): Ditto.
15584         (movti): Handle CONST_WIDE_INT.
15585         * config/alpha/constraints.md ('H'): Remove constraint definition.
15586         ('G'): Do not match MODE_FLOAT class.
15587         * config/alpha/predicates.md (const0_operand): Also match
15588         const_wide_int.
15589         (non_add_const_operand): Ditto.
15590         (non_zero_const_operand): Ditto.
15591         (some_operand): Ditto.
15592         (input_operand): Ditto.  Handle CONST_WIDE_INT.
15593         (and_operand): Do not match const_double.
15594         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
15596 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
15598         PR target/65697
15599         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
15600         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
15601         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
15602         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
15603         is_mm_seq_cst, is_mm_sync): New accessor functions.
15604         * builtins.c (expand_builtin_sync_operation,
15605         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
15606         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
15607         (get_memmodel,  expand_builtin_atomic_compare_exchange,
15608         expand_builtin_atomic_load, expand_builtin_atomic_store,
15609         expand_builtin_atomic_clear): Use new accessor routines.
15610         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
15611         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
15612         (maybe_emit_sync_lock_test_and_set): Use new accessors and
15613         MEMMODEL_SYNC_ACQUIRE.
15614         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
15615         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
15616         expand_atomic_store): Use new accessors.
15617         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
15618         * tsan.c (instrument_builtin_call): Update check for memory model beyond
15619         final enum to use MEMMODEL_LAST.
15620         * c-family/c-common.c: Use new accessor for memmodel_base.
15621         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
15622         accessors.
15623         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
15624         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
15625         mem_thread_fence, *dmb): Likewise.
15626         * config/alpha/alpha.c (alpha_split_compare_and_swap,
15627         alpha_split_compare_and_swap_12): Likewise.
15628         * config/arm/arm.c (arm_expand_compare_and_swap,
15629         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
15630         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
15631         atomic_loaddi): Likewise.
15632         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
15633         Likewise.
15634         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
15635         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
15636         use new accessors.
15637         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
15638         atomic_store<mode>, atomic_compare_and_swap<mode>,
15639         atomic_exchange<mode>): Use new accessors.
15640         * config/mips/mips.c (mips_process_sync_loop): Likewise.
15641         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
15642         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
15643         rs6000_post_atomic_barrier): Add new cases.
15644         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
15645         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
15646         (atomic_load<mode>): Add new cases and use new accessors.
15647         (store_quadpti): Add new cases.
15648         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
15649         accessors.
15650         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
15651         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
15652         model, not 8.
15654 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15656         * ipa-devirt.c (type_with_linkage_p): New function.
15657         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
15658         type has linkage.
15659         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
15660         (can_be_name_hashed_p): Simplify.
15661         (hash_odr_name): Check that type has linkage before checking if it is
15662         anonymous.
15663         (types_same_for_odr): Likewise.
15664         (odr_name_hasher::equal): Likewise.
15665         (odr_subtypes_equivalent_p): Likewise.
15666         (warn_types_mismatch): Likewise.
15667         (get_odr_type): Likewise.
15668         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
15669         * ipa-utils.h (odr_type_p): Move offline.
15670         * tree.c (need_assembler_name_p): Fix handling of types
15671         without linkages.
15672         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
15674 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15676         * timevar.c (timevar_enable): Delete in favor of...
15677         (g_timer): New global.
15678         (struct timevar_def): Move to timevar.h inside class timer.
15679         (struct timevar_stack_def): Likewise.
15680         (timevars): Delete global in favor of field "m_timevars" within
15681         class timer in timevar.h
15682         (stack): Likewise, in favor of field "m_stack".
15683         (unused_stack_instances): Likewise, in favor of field
15684         "m_unused_stack_instances".
15685         (start_time): Likewise, in favor of field "m_start_time".
15686         (get_time): Eliminate check for timevar_enable.
15687         (timer::timer): New function, built from part of timevar_init.
15688         (timevar_init): Rewrite idempotency test from using
15689         "timevar_enable" bool to using dynamic allocation of "g_timer".
15690         Move rest of implementation into timer's constructor.
15691         (timevar_push_1): Rename to...
15692         (timer::push): ...this, adding "m_" prefixes to variables that
15693         are now fields of timer.
15694         (timevar_pop_1): Likewise, rename to...
15695         (timer::pop): ...this, and add "m_" prefixes.
15696         (timevar_start): Replace test for "timevar_enable" with one for
15697         "g_timer", and move bulk of implementation to...
15698         (timer::start): ...here, adding "m_" prefixes.
15699         (timevar_stop): Likewise, from here...
15700         (timer::stop): ...to here.
15701         (timevar_cond_start): Likewise, from here...
15702         (timer::cond_start): ...to here.
15703         (timevar_cond_stop): Likewise, from here...
15704         (timer::cond_stop): ...to here.
15705         (validate_phases): Rename to...
15706         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
15707         locals "total" and "tv" const.
15708         (timevar_print): Rename to...
15709         (timer::print): ...this, and add "m_" prefixes.  Make locals
15710         "total" and "tv" const.  Eliminate test for timevar_enable.
15711         * timevar.h (timevar_enable): Eliminate.
15712         (g_timer): New declaration.
15713         (timevar_push_1): Eliminate.
15714         (timevar_pop_1): Eliminate.
15715         (timevar_print): Eliminate.
15716         (class timer): New class.
15717         (timevar_push): Rewrite to use g_timer.
15718         (timevar_pop): Likewise.
15719         * toplev.c (toplev::~toplev): Likewise.
15721 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
15723         * arm-protos.h (arm_sched_autopref): Delete.
15724         (tune_params): Re-organize, use enums for flag values.
15725         (FUSE_OPS): New macro.
15726         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
15727         (ARM_PREFETCH_BENEFICIAL): Likewise.
15728         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
15729         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
15730         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
15731         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
15732         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
15733         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
15734         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
15735         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
15736         format.
15737         (arm_option_override, thumb2_reorg, arm_print_tune_info)
15738         (aarch_macro_fusion_pair_p): Update uses of current_tune.
15739         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
15741 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
15743         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
15744         "break".
15746 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
15747             Sandra Loosemore <sandra@codesourcery.com>
15749         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
15750         value.
15751         (REG_CLASS_NAMES): Add "IJMP_REGS".
15752         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
15753         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
15754         use new "c" register constraint.
15755         * config/nios2/constraint.md (c): New register constraint
15756         corresponding to IJMP_REGS.
15758 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15760         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
15761         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
15762         define_splits): Delete, revamp, transmogrify into ...
15763         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15764         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15765         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15766         New.
15768 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15770         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
15771         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
15773 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15775         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
15776         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
15777         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
15778         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
15779         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
15780         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
15781         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
15782         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
15783         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
15784         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15785         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
15786         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
15787         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
15788         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
15789         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
15790         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
15791         and 30 corresponding splitters): Delete.
15793 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15795         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
15796         zero_extract.
15798 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15800         * combine.c (recog_for_combine_1): New function, factored out
15801         from recog_for_combine.
15802         (change_zero_ext): New function.
15803         (recog_for_combine): If recog fails, try again with the pattern
15804         modified by change_zero_ext; if that still fails, restore the
15805         pattern.
15807 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15809         * combine.c (get_undo_marker): New function.
15810         (undo_to_marker): New function, largely factored out from ...
15811         (undo_all): ... this.  Adjust.
15813 2015-05-12  Richard Biener  <rguenther@suse.de>
15815         PR tree-optimization/66101
15816         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
15817         fixup if we turn a loop exit edge to a fallthru edge.
15819 2015-05-12  Richard Biener  <rguenther@suse.de>
15821         PR tree-optimization/37021
15822         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
15823         (SLP_TREE_TWO_OPERATORS): New define.
15824         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15825         SLP_TREE_TWO_OPERATORS.
15826         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
15827         SLP node.
15828         (vect_build_slp_tree): Adjust.
15829         (vect_analyze_slp_cost_1): Likewise.
15830         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
15831         emitting two vector stmts and mixing the results.
15833 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15835         * call.c (print_z_candidates): Remove dead code.
15837 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15839         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
15840         and zEC12_simple_fp.
15841         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
15842         to 1.
15844 2015-05-12  Tom de Vries  <tom@codesourcery.com>
15846         PR tree-optimization/66010
15847         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
15848         ifn_va_arg.
15849         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
15850         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
15851         va_lists are passed, and remove corresponding handling.
15852         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
15853         do_deref argument to ifn_va_arg.
15854         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
15855         ifn_va_arg.
15857 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15859         PR target/65955
15860         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
15861         REG before taking its REGNO.
15863 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15865         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
15866         rsp->sign_bit_copies and rsp->nonzero_bits into ...
15867         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
15868         present to get more accurate information about the number of sign bit
15869         copies and non zero bits.
15871 2015-05-12  Richard Biener  <rguenther@suse.de>
15873         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
15874         do not allow unrolling.
15876 2015-05-11  Richard Henderson  <rth@redhat.com>
15878         * config/i386/i386-modes.def (CCP): New.
15879         * config/i386/i386.c (put_condition_code): Handle it.
15880         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
15882 2015-05-11  Richard Henderson  <rth@redhat.com>
15884         * target.def (md_asm_clobbers): Replace with...
15885         (md_asm_adjust): this.
15886         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
15887         (TARGET_MD_ASM_ADJUST): New.
15888         * tm.texi: Rebuild.
15889         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
15890         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
15891         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
15893         * cfgexpand.c (check_operand_nalternatives): Accept vector of
15894         constraints instead of lists of outputs and inputs.
15895         (expand_asm_stmt): Save and restore input_location around the
15896         body of the function.  Move asm data into vectors instead of
15897         building tree lists.  Generate cleanup sequences as needed,
15898         rather than waiting til the end.  Use new md_asm_adjust hook.
15900         * config/vxworks.c: Include vec.h before target.h.
15901         * gimple.c: Likewise.
15902         * incpath.c: Likewise.
15903         * mode-switching.c: Likewise.
15905         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
15906         (cris_md_asm_adjust): this.
15907         (TARGET_MD_ASM_CLOBBERS): Remove.
15908         (TARGET_MD_ASM_ADJUST): New.
15909         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
15910         (ix86_md_asm_adjust): this.
15911         (TARGET_MD_ASM_CLOBBERS): Remove.
15912         (TARGET_MD_ASM_ADJUST): New.
15913         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
15914         (mn10300_md_asm_adjust): this.
15915         (TARGET_MD_ASM_CLOBBERS): Remove.
15916         (TARGET_MD_ASM_ADJUST): New.
15917         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
15918         (rs6000_md_asm_adjust): this.
15919         (TARGET_MD_ASM_CLOBBERS): Remove.
15920         (TARGET_MD_ASM_ADJUST): New.
15921         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
15922         (visium_md_asm_adjust): this.
15923         (TARGET_MD_ASM_CLOBBERS): Remove.
15924         (TARGET_MD_ASM_ADJUST): New.
15926 2015-05-11  Richard Henderson  <rth@redhat.com>
15928         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
15929         if noutputs is zero.
15930         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
15932         * cfgexpand.c (expand_asm_operands): Merge into...
15933         (expand_asm_stmt): ... here.
15935         * cfgexpand.c (expand_asm_operands): Don't call
15936         resolve_asm_operand_names.
15937         * stmt.c (resolve_asm_operand_names): Clarify block comment.
15939 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
15941         * dwarf2out.c (gen_member_die): Sanity check that we access
15942         TYPE_MAIN_VARIANT for TYPE_METHODS.
15943         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
15944         checking TYPE_METHODS.
15945         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
15946         if non-null.
15947         (build_distinct_type_copy): Clear TYPE_METHODS.
15948         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
15949         (verify_type): Allow TYPE_METHODS to be error_mark_node.
15950         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
15952 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15954         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
15955         (emit_pattern_before_setloc): Likewise.
15957 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
15959         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
15960         for define_peephole2s.
15961         (get_peephole2_pattern): New function.
15962         (main): Use it.  Call validate_pattern.
15964 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15966         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
15967         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
15968         (Last callee saved reg is different for AVR_TINY architecture)
15970 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
15972         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
15973         when looking for memory references.
15975 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
15977         PR target/65753
15978         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
15979         via function pointers.
15981 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
15983         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
15984         indirect call by forcing address into a pseudo with -fno-plt.
15985         * common.opt (flag_plt): New option.
15986         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
15987         ([-fno-plt]): Document.
15989 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
15991         PR bootstrap/66105
15992         * config/rs6000/option-defaults.h: Add space between string literal
15993         and macro name.
15995 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15997         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
15998         accross ARM targets.
16000 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16002         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
16003         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
16005 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
16007         PR rtl-optimization/66076
16008         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
16009         Don't grow the heap array if it is already big enough from a
16010         previous iteration.
16012 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16014         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
16015         (is_called_in_ARM_mode): Remove.
16016         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
16017         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
16018         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
16019          arm_declare_function_name.
16021 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16023         * config/arm/arm.c (arm_option_override): Reoganized and split into :
16024         (arm_option_params_internal); New function.
16025         (arm_option_check_internal): New function.
16026         (arm_option_override_internal): New function.
16027         (thumb_code, thumb1_code): Remove.
16028         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
16029         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
16030         (thumb_code, thumb1_code): Remove.
16031         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
16033 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
16035         * config/alpha/alpha.c (alpha_emit_set_const_1)
16036         (alpha_emit_set_long_const, alpha_extract_integer)
16037         (alpha_legitimate_constant_p, alpha_split_const_mov)
16038         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
16039         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16040         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
16041         HOST_WIDE_INT_1U.
16042         * config/alpha/predicates.md (mode_mask_operand): Do not match
16043         const_double RTX.
16044         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16045         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
16046         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
16047         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16048         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
16050 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
16052         PR target/65780
16053         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
16054         default_binds_local_p_2.
16055         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
16056         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
16058 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16060         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
16062 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16064         Patch by Richard Biener
16065         * coverage.c (coverage_obj_init): Delay building of type variant
16066         until the type is finished.
16068 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16070         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
16071         mismatch between C and C++ type; compoare correctly ARG_TYPES
16072         for non-prototypes and output correctly parameter index for METHOD_TYPE.
16073         (odr_types_equivalent_p): Fix wording of warning about attributes;
16074         it is OK to match prototype and non-prototype.
16076 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16078         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
16079         TYPE_ARG_TYPES list.
16080         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
16081         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
16083 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16085         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
16086         * tree.h (is_lang_specific): Constify.
16088 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
16090         PR tree-optimization/64454
16091         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
16092         Rewrite.
16094 2015-05-08  Jason Merrill  <jason@redhat.com>
16096         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
16097         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
16098         config/darwin.h, config/darwin9.h, config/elfos.h,
16099         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
16100         config/microblaze/microblaze.h, config/mips/mips.h,
16101         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
16102         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
16103         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
16104         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
16105         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
16106         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
16107         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
16108         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
16109         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
16110         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
16111         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
16112         between string literal and macro name.
16114 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16116         * jump.c: Change argument types to rtx_insn *.
16117         * rtl.h: Adjust.
16119 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16121         * lra-constraints.c: Change argument type to rtx_insn *.
16123 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16125         * df-problems.c: Change argument type to rtx_insn *.
16127 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16129         * combine.c: Change argument type to rtx_insn *.
16131 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16133         * rtl.h: Adjust.
16134         * rtlanal.c: Change argument type to rtx_insn *.
16136 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16138         * sched-deps.c: Change argument types to rtx_insn *.
16139         * sched-int.h: Adjust.
16141 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16143         * dwarf2cfi.c: Change argument type to rtx_insn *.
16145 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16147         * ira.c (decrease_live_ranges_number): Changetype of local
16148         variable to rtx_insn *.
16149         * recog.c: Change argument types to rtx_insn *.
16150         * recog.h: Adjust.
16152 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16154         * reorg.c: Change argument types to rtx_insn *.
16156 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16158         * ira-color.c: Change argument types to rtx_insn *.
16159         * lra-eliminations.c: Likewise.
16160         * ira.h: Adjust.
16162 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16164         * gcse.c: Change argument types to rtx_insn *.
16166 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16168         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
16170 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16172         * emit-rtl.c (emit_debug_insn_before): Change argument type to
16173         rtx_insn *.
16174         * rtl.h: Adjust.
16176 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16178         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
16179         * rtl.h: Adjust.
16181 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16183         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
16184         * rtl.h: Adjust.
16186 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16188         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
16189         * rtl.h: Adjust.
16191 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16193         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
16194         * rtl.h: Adjust.
16196 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16198         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
16199         to rtx_insn *.
16200         * rtl.h: Adjust.
16202 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16204         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
16205         to rtx_insn *.
16206         * rtl.h: Likewise.
16208 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16210         * except.c (can_nonlocal_goto): Change type of argument to
16211         rtx_insn *.
16212         * rtl.h: Adjust.
16214 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16216         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
16217         * rtl.h: Adjust.
16219 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16221         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
16222         * cfgrtl.c (can_delete_label_p): Adjust.
16223         * rtl.h: likewise.
16225 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16227         * reorg.c (stop_search_p): Change argument to rtx_insn *.
16229 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16231         * except.c (make_reg_eh_region_note): Change argument to
16232         rtx_insn *.
16233         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
16234         * except.h: Adjust.
16236 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16238         * mode-switching.c (commit_mode_sets): Change type of local
16239         variable from rtx to rtx_insn *.
16241 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
16243         * doc/install.texi (--enable-languages): Add missing jit and lto info.
16244         Add ^ to grep command.
16245         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
16246         arg to last gimple_simplify declaration.  Add missing gimple_build
16247         declaration for built-in function case with four tree args.
16249 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
16250             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16252         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
16253         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
16254         (GNU_USER_DYNAMIC_LINKERN32): Update.
16256 2015-05-08  Richard Biener  <rguenther@suse.de>
16258         PR tree-optimization/66036
16259         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16260         Handle strided group loads.
16261         (vect_verify_datarefs_alignment): Likewise.
16262         (vect_enhance_data_refs_alignment): Likewise.
16263         (vect_analyze_group_access): Likewise.
16264         (vect_analyze_data_ref_access): Likewise.
16265         (vect_analyze_data_ref_accesses): Likewise.
16266         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
16267         (vectorizable_load): Likewise.
16269 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
16271         * config/rs6000/rs6000.md: Require operand inequality in one
16272         of the peepholes.
16274 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
16275             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16277         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
16278         from (set ...).
16279         * config/rx/rx.md (movdi, movdf): Likewise.
16280         Likewise for define_peephole2s.
16282 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16284         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
16285         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
16286         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
16287         vtst_u64): Rewrite using gcc vector extensions.
16289 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16291         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
16292         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
16294 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16296         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
16298 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16300         * config/glibc-stdint.h (OPTION_MUSL): Define.
16301         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
16302         Change the definition based on OPTION_MUSL for 64 bit targets.
16303         * config/linux.h (OPTION_MUSL): Redefine.
16304         * config/alpha/linux.h (OPTION_MUSL): Redefine.
16305         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
16306         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
16308 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
16309             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16311         * config.gcc (LIBC_MUSL): New tm_defines macro.
16312         * config/linux.h (OPTION_MUSL): Define.
16313         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
16314         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
16315         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16316         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16317         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16318         * config/linux.opt (mmusl): New option.
16319         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
16320         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16321         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16322         * configure: Regenerate.
16324 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16325             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16327         PR target/48904
16328         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
16329         * config/i386/knetbsd-gnu64.h: New file.
16331 2015-05-08  Marek Polacek  <polacek@redhat.com>
16333         PR c/64918
16334         * doc/invoke.texi: Document -Woverride-init-side-effects.
16336 2015-05-07  Marek Polacek  <polacek@redhat.com>
16338         PR c/65179
16339         * doc/invoke.texi: Document -Wshift-negative-value.
16341 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
16343         * gcov-tool.c (do_merge): Refactore to remove int ret.
16344         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
16345         !type == FUNC to type != FUNC.
16346         * reload.h (struct target_reload): Changee to type of
16347         x_spill_indirect_levels from bool to unsigned char.
16349 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
16351         * rtl.h (always_void_p): New function.
16352         * gengenrtl.c (always_void_p): Likewise.
16353         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
16354         with code foo are always VOIDmode.
16355         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
16356         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
16357         compare-elim.c, config/aarch64/aarch64.c,
16358         config/aarch64/aarch64.md, config/alpha/alpha.c,
16359         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
16360         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
16361         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
16362         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16363         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
16364         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
16365         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
16366         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
16367         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
16368         config/ia64/vect.md, config/iq2000/iq2000.c,
16369         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
16370         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
16371         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
16372         config/mep/mep.c, config/microblaze/microblaze.c,
16373         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
16374         config/mn10300/mn10300.c, config/msp430/msp430.c,
16375         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
16376         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
16377         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
16378         config/rs6000/altivec.md, config/rs6000/rs6000.c,
16379         config/rs6000/rs6000.md, config/rs6000/vector.md,
16380         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
16381         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
16382         config/sh/sh.md, config/sh/sh_treg_combine.cc,
16383         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
16384         config/spu/spu.md, config/stormy16/stormy16.c,
16385         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
16386         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
16387         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
16388         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
16389         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
16390         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
16391         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
16392         var-tracking.c: Update calls accordingly.
16394 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
16396         PR middle-end/192
16397         PR middle-end/54303
16398         * varasm.c (function_mergeable_rodata_prefix): New function.
16399         (mergeable_string_section): Use it.
16400         (mergeable_constant_section): Use it.
16402 2015-05-07  Jeff Law  <law@redhat.com>
16404         PR target/39726
16405         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16406         simplifier to narrow arithmetic.
16407         * generic-match-head.c: (types_match, single_use): New functions.
16408         * gimple-match-head.c: (types_match, single_use): New functions.
16410 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16412         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
16413         rtx type.
16415 2015-05-07  Richard Biener  <rguenther@suse.de>
16417         PR tree-optimization/66002
16418         * passes.def: Schedule another pass_merge_phi after ifcombine, right
16419         before phiopt.
16421 2015-05-07  Marek Polacek  <polacek@redhat.com>
16422             Martin Uecker  <uecker@eecs.berkeley.edu>
16424         * doc/invoke.texi: Document -fsanitize=bounds-strict.
16425         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
16426         into SANITIZE_NONDEFAULT.
16427         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
16429 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
16431         PR target/66015
16432         * config/alpha/alpha.c (alpha_override_options_after_change): New.
16433         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
16434         (alpha_override_options): Move align_loops, align_jumps and
16435         align_functions handling into alpha_override_options_after_change.
16437 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
16438             Chris Jones  <chrisj@nvidia.com>
16439             Joshua Conner  <jconner@nvidia.com>
16441         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
16442         linking of crtfastmath.o.
16443         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
16445 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
16447         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
16448         (cstore<mode>4_unsigned_imm): New expander.
16449         (cstore<mode>4): Remove empty constraint strings.  Use the new
16450         expanders.
16452 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
16454         PR target/64208
16455         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
16456         alternatives.
16458 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16460         * config/aarch64/geniterators.sh: Use standard BRE in sed.
16462 2015-05-06  Alan Modra  <amodra@gmail.com>
16464         PR target/66033
16465         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
16466         (UNSPEC_NOP): Define.
16467         (reload_vsx_from_gpr<mode>): Add missing DONE.
16468         (reload_gpr_from_vsx<mode>): Likewise.
16469         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
16470         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
16472 2015-05-06  Christian Bruel  <christian.bruel@st.com>
16474         PR target/66015
16475         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
16476         align_jumps, align_functions into aarch64_override_options_after_change.
16478 2015-05-06  Richard Biener  <rguenther@suse.de>
16480         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
16481         vect_transform_slp_perm_load to check if we support a permutation
16482         for basic-block vectorization.
16484 2015-05-06  Nick Clifton  <nickc@redhat.com>
16486         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
16487         used, even if it is not being used as a frame pointer.
16489 2015-05-05  Jason Merrill  <jason@redhat.com>
16491         * dwarf2out.c (gen_member_die): Don't emit anything for an
16492         anonymous class constructor.
16494 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
16496         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
16497         that it reflects the block structure.
16498         (afdo_propagate_edge): Likewise.
16499         (afdo_calculate_branch_prob): Likewise.
16500         (afdo_annotate_cfg): Likewise.
16501         * cfgcleanup.c (equal_different_set_p): Likewise.
16502         (try_crossjump_to_edge): Likewise.
16503         * cgraph.c (cgraph_node::verify_node): Likewise.
16504         * cgraphunit.c (expand_all_functions): Likewise.
16505         * config/i386/i386.c (ix86_expand_copysign): Likewise.
16506         (exact_dependency_1): Likewise.
16507         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
16508         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
16509         * gensupport.c (process_define_subst): Likewise.
16510         * lto-wrapper.c (merge_and_complain): Likewise.
16511         * tree-if-conv.c (if_convertible_bb_p): Likewise.
16512         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
16513         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
16514         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16515         * tree-vect-loop.c (vectorizable_reduction): Likewise.
16516         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16517         * tree-vect-stmts.c (vectorizable_shift): Likewise.
16518         * tree-vrp.c (vrp_finalize): Likewise.
16519         * tree.c (variably_modified_type_p): Likewise.
16521 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
16523         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
16524         on darwin12 and later.
16525         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
16526         file to pass -rdynamic on darwin12 and later.
16527         * config/darwin.opt (rdynamic): Add.
16529 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16531         * doc/extend.texi (C Extensions): Update menu for moved Variable
16532         Attributes and Type Attributes sections.
16534 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16536         PR target/65990
16537         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
16538         if rep_8byte stringop strategy was specified for 32-bit target.
16540 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
16542         PR target/65915
16543         * config/i386/i386.md (vector convert to float spltiter): Check for
16544         xmm16+, when splitting scalar float conversion.
16545         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
16547 2015-05-05  Nick Clifton  <nickc@redhat.com>
16549         * config/msp430/msp430-opts.h (enum msp430_regions): New.
16550         * config/msp430/msp430.c (msp430_override_options): Complain if
16551         -mcode-region or -mdata-region is used on a non MSP430X.
16552         (msp430_section_attr): New function.  Checks lower, upper and
16553         either attributes.
16554         (msp430_attribute_table): Add lower, upper and either.
16555         (gen_prefix): New function.  Generates a prefix for a section
16556         name.
16557         (msp430_select_section): New function - handles the choice of
16558         section for an object.  Takes into account memory region
16559         attributes and options.
16560         (msp430_function_section): Use gen_prefix.
16561         (TARGET_SECTION_TYPE_FLAGS): Define.
16562         (msp430_section_type_flags): New function.
16563         (TARGET_ASM_UNIQUE_SECTION): Define.
16564         (msp430_unique_section): New function.
16565         (msp430_output_aligned_decl_common): New function.
16566         (msp430_do_not_relax_short_jumps): New function.
16567         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
16568         Define.
16569         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16570         * config/msp430/msp430-protos.h
16571         (msp430_do_not_relax_short_jumps): New prototype.
16572         (msp430_output_aligned_decl_common): New prototype.
16573         * config/msp430/msp430.md (length): New attribute.
16574         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
16575         then use a long code sequence for short jumps.
16576         * config/msp430/msp430.opt (mcode-region): New.
16577         (mdata-region): New.
16578         * doc/invoke.texi: Document new options.
16579         * doc/extend.texi: Document new attributes.
16581 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16583         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
16584         (tune_params): Add field branch_costs.
16585         (aarch64_branch_cost): Declare.
16586         * gcc/config/aarch64.c (generic_branch_cost): New.
16587         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
16588         (cortexa53_tunings): Likewise.
16589         (cortexa57_tunings): Likewise.
16590         (thunderx_tunings): Likewise.
16591         (xgene1_tunings): Likewise.
16592         (aarch64_branch_cost): Define.
16593         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
16595 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16597         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
16598         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
16599         * config/i386/i386.md: Ditto.
16600         * config/i386/winnt.c: Ditto.
16602 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16604         * doc/extend.texi (__atomic Builtins): Move implementation details
16605         to the end of the description, rewrite opening paragraphs, state
16606         difference with __sync builtins, state C11/C++11 assumptions,
16607         weaken itemized descriptions, add explanation of memory model
16608         behaviour, expand description of compare-exchange, simplify text.
16610 2015-05-05  Renlin Li  <renlin.li@arm.com>
16612         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
16614 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
16616         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
16617         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16618         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
16619         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16620         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
16621         * configure: Regenerate.
16622         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
16623         * doc/install.texi (aarch64*-*-*): Document new
16624         --enable-fix-cortex-a53-843419 option.
16625         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
16626         and -mno-fix-cortex-a53-843419 options.
16628 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16630         PR target/65871
16631         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
16633 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
16635         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
16636         fix overactive TYPE_MIN_VALUE check and add FIXME for type
16637         compatibility problems.
16639 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16641         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
16642         constraints.
16643         (cbranchsi4_reg): New.
16644         * config/microblaze/microblaze.c
16645         (microblaze_expand_conditional_branch_reg): New.
16646         * config/microblaze/microblaze-protos.h
16647         (microblaze_expand_conditional_branch_reg): New prototype.
16649 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16651         * config/microblaze/microblaze.md (peephole2): New.
16653 2015-05-04  Jeff Law  <law@redhat.com>
16655         Revert:
16656         2015-05-04  Jeff Law  <law@redhat.com>
16658         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16659         simplifier to narrow arithmetic.
16660         * generic-match-head.c: (types_match, single_use): New functions.
16661         * gimple-match-head.c: (types_match, single_use): New functions.
16663 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16665         PR target/65987
16666         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
16667         (split_branches): Likewise.
16669 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
16671         * common.opt (fdelete-null-pointer-checks): Init to -1.
16672         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
16673         override flag_delete_null_pointer_checks default.
16674         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
16675         behavior re address zero.  Better document target-specific behavior.
16676         (-fisolate-errneous-paths-dereference): Mention relationship to
16677         -fdelete-null-pointer-checks.
16679 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16681         PR tree-optimization/65984
16682         * ubsan.c: Include tree-cfg.h.
16683         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
16684         stmt_could_throw_p test, rename can_throw variable to ends_bb.
16686 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16688         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
16689         to CONST_DOUBLE_P predicate.
16690         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
16691         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
16692         allow only operands that satisfy standard_sse_constant_p predicate.
16693         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
16694         to CONST_DOUBLE_P predicate.
16696 2015-05-04  Jeff Law  <law@redhat.com>
16698         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16699         simplifier to narrow arithmetic.
16700         * generic-match-head.c: (types_match, single_use): New functions.
16701         * gimple-match-head.c: (types_match, single_use): New functions.
16703 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
16705         * config/arm/arm.c: Restore bootstrap.
16707 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16709         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
16710         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
16711         as CONST_WIDE_INT, not CONST_DOUBLE.
16712         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
16713         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
16714         (ix86_find_base_term): Do not check for CONST_DOUBLE.
16715         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
16716         (ix86_build_signbit_mask): Rewrite using wide ints.
16717         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
16718         (ix86_rtx_costs): Handle CONST_WIDE_INT.
16719         (find_constant): Ditto.
16720         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
16721         using gen_int_mode.
16722         * config/i386/predicates.md (x86_64_immediate_operand)
16723         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16724         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
16725         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16726         (const0_operand): Also match const_wide_int.
16727         (constm1_operand): Ditto.
16728         (const1_operand): Ditto.
16730 2015-05-04  Richard Biener  <rguenther@suse.de>
16732         PR tree-optimization/65965
16733         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
16734         store groups at gaps.
16736 2015-05-04  Richard Biener  <rguenther@suse.de>
16738         PR tree-optimization/65935
16739         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
16740         then make sure to apply that swapping to the IL.
16742 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16744         * Makefile.in (PATCHLEVEL_c): New variable.
16745         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
16746         expand the same way as if DEVPHASE_c was non-empty.
16748 2015-05-04  Kai Tietz  <ktietz@redhat.com>
16750         PR target/65559
16751         * lto-wrapper.c (run_gcc): Open filename
16752         in binary-mode.
16754 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
16756         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
16757         sections up in file, to immediately after the Function Attributes
16758         section.
16760 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
16762         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
16764 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16766         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
16767         (insert_partition_copy_on_edge): Adjust.
16768         (insert_rtx_to_part_on_edge): Likewise.
16769         (insert_part_to_rtx_on_edge): Likewise.
16771 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16773         * function.c (set_return_jump_label): Change type of argument to
16774         rtx_insn *.
16775         * function.h (set_return_jump_label): Adjust.
16777 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16779         * reload.h (struct reg_equivs_t): Change type of init to
16780         rtx_insn *.
16781         * ira.c (fix_reg_equiv_init): Adjust.
16782         * reload1.c (eliminate_regs_1): Likewise.
16783         (init_eliminable_invariants): Likewise.
16785 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16787         * cselib.c (fp_setter_insn): Take a rtx_insn *.
16788         * cselib.h (fp_setter_insn): Adjust.
16790 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16792         * recog.c (struct validate_replace_src_data): Change type of
16793         insn field to rtx_insn *.
16794         (validate_replace_src_group): Change type of argument to rtx_insn *.
16795         * recog.h (validate_replace_src_group): Adjust.
16797 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16799         * haifa-sched.c: Change the type of some variables to rtx_insn *.
16800         * sched-deps.c: Likewise.
16801         * sched-int.h: Likewise.
16802         * sched-rgn.c: Likewise.
16803         * sel-sched.c: Likewise.
16805 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16807         to rtx_insn *.
16808         * config/i386/i386.c: Change the type of some arguments to
16809         rtx_insn *.
16810         * config/arm/arm.c: Likewise.
16812 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16814         * lra-constraints.c: Change type of some arguments to rtx_insn *.
16816 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16818         * regcprop.c (kill_autoinc_value): Change type of argument to
16819         rtx_insn *.
16821 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16823         * genrecog.c (print_subroutine): Adjust.
16824         * recog.c (get_bool_attr_mask_uncached): Likewise.
16825         * recog.h (struct recog_data_d): Change the type of insn to
16826         rtx_insn *.
16828 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16830         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
16832 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16834         * df-problems.c (df_set_note): Change type of argument to
16835         rtx_insn *.
16837 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16839         * builtins.c (expand_builtin_trap): Change type of local
16840         variable to rtx_insn *.
16841         (add_sched_insns_for_speculation): Likewise.
16842         (ix86_emit_save_regs): Likewise.
16843         (get_scratch_register_on_entry): Likewise.
16844         (ix86_emit_restore_reg_using_pop): Likewise.
16845         (ix86_emit_leave): Likewise.
16846         (ix86_emit_restore_regs_using_mov): Likewise.
16847         (ix86_expand_epilogue): Likewise.
16848         Likewise.
16849         (rl78_alloc_physical_registers_umul): Likewise.
16850         * cselib.c (discard_useless_locs): Likewise.
16851         (cselib_invalidate_regno): Likewise.
16852         (cselib_invalidate_mem): Likewise.
16853         * function.c (expand_function_start): Likewise.
16854         (emit_use_return_register_into_block): Likewise.
16855         * gcse.c: Likewise.
16856         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
16857         * ifcvt.c (noce_get_alt_condition): Likewise.
16858         * loop-doloop.c (doloop_condition_get): Likewise.
16859         * lra-constraints.c (inherit_in_ebb): Likewise.
16860         * modulo-sched.c (sms_schedule_by_order): Likewise.
16861         * recog.c (next_insn_tests_no_inequality): Likewise.
16862         * reorg.c (emit_delay_sequence): Likewise.
16863         (update_reg_dead_notes): Likewise.
16864         (fix_reg_dead_note): Likewise.
16865         (fill_slots_from_thread): Likewise.
16866         (delete_computation): Likewise.
16868 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
16870         * doc/extend.texi (Variable Attributes): Add menu and proper
16871         @nodes to subsections.  Move Microsoft Windows attributes to
16872         their own subsection.
16873         (Type Attributes): Reorganize introduction to remove duplicate
16874         list of attributes.  Add menu and proper @nodes to subsections.
16875         Alphabetize the main table of common attributes.
16877 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
16879         * match.pd: New simplification patterns.
16880         (x + (x & 1))  -> ((x + 1) & ~1)
16881         (x & ~(x & y)) -> ((x & ~y))
16882         (x | ~(x | y)) -> ((x | ~y))
16884 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16886         * target.def (attribute_table): Mention that struct attribute_spec
16887         is defined in tree-core.h rather than tree.h
16888         * doc/tm.texi: Regenerate.
16890 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
16892         * genrecog.c (test): Rename to rtx_test.  Update rest of file
16893         accordingly.
16895 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16897         PR translation/65959
16898         * params.h (DEFPARAM): Rename msgid to nocmsgid.
16900 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16902         * gcc/config/aarch64/aarch64-protos.h (tune_params):
16903         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
16904         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
16905         Return value depending on target.
16906         (generic_tunings): Initialize new target settings.
16907         (cortexa53_tunings): Likewise.
16908         (cortexa57_tunings): Likewise.
16909         (thunderx_tunings): Likewise.
16910         (xgene1_tunings): Likewise.
16912 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16914         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
16915         Make Cortex-A53 shift costs more accurate.
16917 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16919         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
16920         UNSIGNED_FLOAT.
16922 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16924         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
16925         Calculate cost of op0 and op1 in PLUS and MINUS cases.
16927 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16929         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16930         Add cost of op0 in the compare-with-fpzero case.
16932 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
16934         * builtins.c (fold_builtin_1): Remove spurious second
16935         semicolon.
16936         * cgraph.h (symtab_node::get_availability): Likewise.
16937         * opts.c (common_handle_option): Remove spurious second semicolon.
16938         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16939         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16941 2015-04-30  Caroline Tice  <cmtice@google.com>
16943         PR gcov-profile/65929
16944         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
16945         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
16946         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
16947         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
16948         * doc/tm.texi: Regenerate.
16949         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
16950         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
16951         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
16952         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
16954 2015-04-30  Marek Polacek  <polacek@redhat.com>
16956         * varasm.c (handle_cache_entry): Fix logic.
16958 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16960         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
16961         (*extrsi5_insn_uxtw_alt): Likewise.
16962         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
16963         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
16964         operations.
16966 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16968         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
16969         fabd in ABS case.
16971 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16973         * config/aarch64/aarch64.md
16974         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
16975         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
16976         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
16977         appropriately.  Handle alternative EON form.
16979 2015-04-30  Renlin Li  <renlin.li@arm.com>
16981         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
16982         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
16984 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
16986         PR ipa/65873
16987         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
16988         -fstrict-aliasing boundaries.
16990 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16992         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
16993         and [SU]MNEGL patterns.
16995 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16997         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
16998         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
16999         combined arithmetic-shift ops.  Properly handle all shift and extend
17000         operations that can occur in combination with PLUS/MINUS.
17001         Rename maybe_fma to compound_p.
17002         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
17003         arithmetic and shift operations.
17005 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17007         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
17008         rather than arith_shift cost when costing ADD/MINUS of an
17009         extended value.
17011 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
17013         PR lto/65948
17014         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
17015         to itself.
17017 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
17019         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
17020         are for the same position.
17022 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
17024         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
17025         vectorize_loops.
17026         (vectorize_loops): Use it.
17028 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17030         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
17031         for aggregate types.
17032         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
17033         type to be non_ODR.
17034         * tree.c (need_assembler_name_p): Compute mangled name for
17035         non-fundamental types and integer types.
17037 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
17039         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
17040         manual swaps.
17041         * expr.c (expand_expr_real_2): Likewise.
17043 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17045         * tree.c (build_common_builtin_nodes): Do not build
17046         __builtin_alloca_with_align as equivalent of library alloca.
17048 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17050         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
17051         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
17052         bugus variants.
17053         * tree.c: Include print-tree.h and ipa-utils.h
17054         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
17055         (free_lang_data_in_cgraph): Call verify_type.
17056         (verify_type_variant): New function.
17057         (verify_type): New function.
17058         * tree.h (verify_type): Declare.
17060 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
17062         * config/mips/mips-cpus.def: (mips4): Change default processor
17063         from PROCESSOR_R8000 to PROCESSOR_R10000.
17065 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
17067         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
17068         la/jalr instead of jal.
17070 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
17072         PR target/65871
17073         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
17074         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
17075         (setcc+movzbl peephole2): Check also clobbered reg.
17076         (setcc+andl peephole2): Ditto.
17078 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17080         PR libgomp/65099
17081         * config/nvptx/mkoffload.c (target_ilp32): New variable.
17082         (main): Set it depending on "-foffload-abi=[...]".
17083         (compile_native, main): Use it to pass "-m32" or "-m64" to the
17084         compiler.
17086 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17088         PR target/65770
17089         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
17090         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
17091         Flip lane index back at assembly time for bigendian.
17093 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17095         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
17096         * gimplify.c (gimplify_omp_workshare): Use it.
17098 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17100         * Makefile.in (build/genrecog.o): Depend on inchash.h.
17101         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
17102         build/inchash.o
17103         * genrecog.c: Rewrite most of the code except for the third page.
17105 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17107         * inchash.h, inchash.c: Include bconfig.h for build objects.
17108         * Makefile.in (build/inchash.o): New rule.
17110 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
17112         PR target/65924
17113         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
17114         number in type attribute expression.
17116 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17118         * loop-iv.c (canon_condition): Generalize to all types of integer
17119         constant.
17121 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
17123         * gimple-walk.c: Prune duplicate or unneeded includes.
17124         (walk_gimple_asm): Only call parse_input_constraint or
17125         parse_output_constraint if their findings are used.
17126         Honour parse_input_constraint and parse_output_constraint
17127         result.
17129 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17131         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
17133 2015-04-29  Tom de Vries  <tom@codesourcery.com>
17135         PR tree-optimization/65893
17136         * passes.def (pass_all_optimizations): Move pass_stdarg to after
17137         pass_dce.
17139 2015-04-29  Richard Biener  <rguenther@suse.de>
17141         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17142         compute GROUP_SIZE for basic-block SLP.
17143         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
17144         take into account gaps.
17145         (vect_get_mask_element): Properly reject references to previous
17146         vectors.
17147         (vect_transform_slp_perm_load): Likewise.
17149 2015-04-29  Christian Bruel  <christian.bruel@st.com>
17151         PR target/64835
17152         * config/i386/i386.c (ix86_default_align): New function.
17153         (ix86_override_options_after_change): Call ix86_default_align.
17154         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
17155         (ix86_override_options_after_change): New function.
17157 2015-04-28  Jeff Law  <law@redhat.com>
17159         * tree-ssa-dom.c (record_equality); Fix comment typos.
17161 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17163         PR tree-optimization/65887
17164         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
17166 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
17168         * doc/extend.texi (Declaring Attributes of Functions): Split into
17169         subsections by target.  Alphabetize the table of common attributes.
17170         Rewrite some of the introductory text to reflect the new structure.
17171         Update some cross-references to point to the new subsections.
17172         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
17173         duplicate copies in the discussion of function, label, and type
17174         attributes.
17176 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
17178         PR bootstrap/65910
17179         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
17181 2015-04-28  Jason Merrill  <jason@redhat.com>
17183         PR c++/65734
17184         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
17185         (finalize_type_size): Respect TYPE_USER_ALIGN.
17186         (layout_type) [ARRAY_TYPE]: Likewise.
17188 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
17190         * config/arm/arm.md (*arm_movt): Fix type attribute.
17191         (*cmpsi_shiftsi): Likewise.
17192         (*cmpsi_shiftsi_swp): Likewise.
17193         (*movsicc_insn): Likewise.
17194         (*cond_move): Likewise.
17195         (*if_plus_move): Likewise.
17196         (*if_move_plus): Likewise.
17197         (*if_arith_move): Likewise.
17198         (*if_move_arith): Likewise.
17199         (*if_shift_move): Likewise.
17200         (*if_move_shift): Likewise.
17201         (*arm_movtas_ze): Likewise.
17202         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
17203         redundancy and type attribute.
17204         (*thumb2_movsi_insn): Fix type attribute.
17205         (*thumb2_addsi_short): Likewise.
17206         (thumb2_addsi3_compare0): Likewise.
17207         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
17208         attributes accordingly.
17210 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
17212         PR other/65911
17213         * function.c (pad_to_arg_alignment): Add parentheses.
17215 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
17217         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
17218         libgcc/config/frv/elf-lib.h.
17220 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17222         * tree-call-cdce.c: Fix example in header comment.
17224 2015-04-28  Richard Biener  <rguenther@suse.de>
17226         PR tree-optimization/62283
17227         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
17228         fails fatally and we are vectorizing a basic-block simply
17229         cause the child to be constructed piecewise.
17230         (vect_analyze_slp_cost_1): Adjust.
17231         (vect_detect_hybrid_slp_stmts): Likewise.
17232         (vect_bb_slp_scalar_cost): Likewise.
17233         (vect_get_constant_vectors): For piecewise constructed
17234         constants place them after the last def.
17235         (vect_get_slp_defs): Adjust.
17236         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
17237         externals for basic-block vectorization.
17239 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17241         PR target/63503
17242         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
17243         aarch64-*-*.
17244         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
17245         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
17246         (AARCH64_TUNE_FMA_STEERING): Likewise.
17247         * config/aarch64/aarch64-cores.def: Set
17248         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
17249         FMUL/FMADD instructions.
17250         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
17251         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
17252         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
17253         * config/aarch64/cortex-a57-fma-steering.h: New file.
17254         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17256 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
17258         * gensupport.c (std_preds): Add missing codes to address_operand entry.
17260 2015-04-28  Richard Biener  <rguenther@suse.de>
17262         PR tree-optimization/65851
17263         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
17264         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
17265         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
17266         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
17267         (ccp_visit_phi_node): Adjust.
17268         (evaluate_stmt): For simplifications to SSA names return its
17269         lattice value if that isn't VARYING.  Return immediately when
17270         simplified to a constant.
17271         (visit_assignment): Adjust.
17272         (ccp_visit_stmt): Likewise.
17274 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17276         PR tree-optimization/65818
17277         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
17278         evaluated.
17280 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17282         * calls.c (save_fixed_argument_area): Don't check
17283         ARGS_GROW_DOWNWARD with the preprocessor.
17284         (restore_fixed_argument_area): Likewise.
17285         (mem_overlaps_already_clobbered_arg_p): Likewise.
17286         (check_sibcall_argument_overlap): Likewise.
17287         (expand_call): Likewise.
17288         (emit_library_call_value_1): Likewise.
17289         (store_one_arg): Likewise.
17290         * function.c (assign_parms): Likewise.
17291         (locate_and_pad_parm): Likewise.
17292         (pad_to_arg_alignment): Likewise.
17293         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17295 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17297         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
17298         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
17299         * calls.c (save_fixed_argument_area): Don't chekc if
17300         ARGS_GROW_DOWNWARD is defined.
17301         (restore_fixed_argument_area): Likewise.
17302         (mem_overlaps_already_clobbered_arg_p): Likewise.
17303         (check_sibcall_argument_overlap): Likewise.
17304         (expand_call): Likewise.
17305         (emit_library_call_value_1): Likewise.
17306         (store_one_arg): Likewise.
17307         * function.c (assign_parms): Likewise.
17308         (locate_and_pad_parm): Likewise.
17309         (pad_to_arg_alignment): Likewise.
17310         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17312 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17314         * defaults.h (gen_epilogue): New function.
17315         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
17316         defined.
17317         * cfgrtl.c (cfg_layout_finalize): Likewise.
17318         * df-scan.c: Likewise.
17319         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17320         (reposition_prologue_and_epilogue_notes): Likewise.
17321         * reorg.c (find_end_label): Likewise.
17322         * toplev.c: Likewise.
17324 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17326         * bb-reorder.c (HAVE_return): Don't check if its undefined.
17327         * defaults.h (gen_simple_return): New function.
17328         (gen_simple_return): Likewise.
17329         (HAVE_return): Add default definition to false.
17330         (HAVE_simple_return): Likewise.
17331         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
17332         HAVE_return and HAVE_simple_return are defined.
17333         * function.c (gen_return_pattern): Likewise.
17334         (convert_jumps_to_returns): Likewise.
17335         (thread_prologue_and_epilogue_insns): Likewise.
17336         * reorg.c (find_end_label): Likewise.
17337         (dbr_schedule): Likewise.
17338         * shrink-wrap.c: Likewise.
17339         * shrink-wrap.h: Likewise.
17341 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17343         * defaults.h (EPILOGUE_USES): Add default definition of false.
17344         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
17345         * resource.c (init_resource_info): Likewise.
17347 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17349         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
17350         to false.
17351         * dwarf2out.c (field_byte_offset): REmove check if
17352         PCC_BITFIELD_TYPE_MATTERS is defined.
17353         * stor-layout.c (layout_decl): Likewise.
17354         (update_alignment_for_field): Likewise.
17355         (place_field): Likewise.
17357 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17359         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
17360         true.
17361         * regrename.c (check_new_reg_p): Remove check if
17362         HARD_REGNO_RENAME_OK is defined.
17363         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
17365 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17367         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
17368         * cse.c (fold_rtx): Likewise.
17369         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
17370         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
17371         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
17372         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
17373         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
17374         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
17375         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
17376         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
17377         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
17378         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
17379         * Likewise.
17380         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
17381         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
17382         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
17383         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
17384         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
17385         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
17386         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
17387         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
17388         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
17389         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
17390         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
17391         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
17392         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
17393         * doc/tm.texi: Regenerate.
17394         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
17395         either true or false.
17397 2015-04-27  Jeff Law  <law@redhat.com>
17399         PR tree-optimization/65217
17400         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
17401         of them has a single use, make sure it is the LHS of the implied
17402         copy.
17404 2015-04-28  Alan Modra  <amodra@gmail.com>
17406         PR target/65810
17407         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
17408         (offsettable_ok_by_alignment): Use minimum of decl and toc
17409         pointer alignment.  Replace dead code with assertion.
17410         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
17411         case if size exceeds toc pointer alignment.
17412         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
17413         (rs6000_emit_move): Likewise.
17414         * configure.ac: Add linker toc pointer alignment check.
17415         * configure: Regenerate.
17416         * config.in: Regenerate.
17418 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
17420         * config.gcc: Add h8300-*-linux.
17421         * config/h8300/linux.h: New.
17422         * config/h8300/t-linux: New.
17423         * config/h8300/h8300.c (h8300_option_override): Normal mode
17424         is not supported for h8300-*-linux.
17425         (h8300_file_start): Target priority change.
17426         (get_shift_alg): Likewise.
17427         (h8300_shift_need_scratch_p): Likewise.
17428         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17429         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
17431 2015-04-27  Caroline Tice  <cmtice@google.com>
17433         * final.c (final_scan_insn):  Output cold_function_name as function
17434         type.
17435         * varasm.c (cold_function_name):  Make global.
17436         (assemble_start_function):  Re-set cold_function_name.
17437         (assemble_end_function): Output cold partition size.
17438         * varasm.h (cold_function_name):  Declare global.
17440 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
17442         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
17443         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
17444         constraint.
17445         (*movxi_internal_avx512f): Ditto.
17446         (define_split): Check for xmm16+, when splitting scalar float_extend.
17447         (*extendsfdf2_mixed): Use "v" constraint.
17448         (define_split): Check for xmm16+, when splitting scalar float_truncate.
17449         (*truncdfsf_fast_sse): Use "v" constraint.
17450         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
17451         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
17452         (define_peephole2): Check for xmm16+, when converting scalar
17453         float_truncate.
17454         (define_peephole2): Check for xmm16+, when converting scalar
17455         float_extend.
17456         (*fop_<mode>_comm_mixed): Use "v" constraint.
17457         (*fop_<mode>_comm_sse): Ditto.
17458         (*fop_<mode>_1_mixed): Ditto.
17459         (*sqrt<mode>2_sse): Ditto.
17460         (*ieee_s<ieee_maxmin><mode>3): Ditto.
17462 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17464         * combine.c (simplify_if_then_else): Use std::swap instead
17465         of manually swapping.
17466         (known_cond): Likewise.
17467         (simplify_comparison): Likewise.
17469 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
17471         PR target/64579
17472         * config/rs6000/htm.md: Remove all define_expands.
17473         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
17474         UNSPECV_HTM_TABORTWCI): Remove.
17475         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
17476         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
17477         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
17478         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
17479         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
17480         tabortwci_internal): Remove define_insns.
17481         (tabort<wd>c, tabort<wd>ci): New define_insns.
17482         (tabort): Use gpc_reg_operand.
17483         (tcheck): Remove operand.
17484         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
17485         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
17486         expected value.
17487         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
17488         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
17489         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
17490         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
17491         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
17492         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
17493         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
17494         (tcheck): Remove builtin argument.
17495         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
17496         not TARGET_64BIT.
17497         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
17498         tabortdc and tabortdci builtins when not in 64-bit mode.
17499         Modify code to handle the loss of the HTM define_expands.
17500         Emit code to copy the CR register to TARGET.
17501         (htm_init_builtins): Modify code to handle the loss of the HTM
17502         define_expands.
17503         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
17504         (RS6000_BTC_64BIT): Likewise.
17505         (RS6000_BTC_CR): New macro.
17506         * doc/extend.texi: Update documentation for htm builtins.
17508 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17510         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
17511         of manually swapping.
17512         (simplify_associative_operation): Likewise.
17513         (simplify_binary_operation): Likewise.
17514         (simplify_plus_minus): Likewise.
17515         (simplify_relational_operation): Likewise.
17516         (simplify_ternary_operation): Likewise.
17518 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17520         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
17521         (xs_hi_nonmemory_operand): Remove error.
17522         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
17523         general_operand rather than xs_hi_general_operand.
17525 2015-04-27  Richard Biener  <rguenther@suse.de>
17527         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
17528         (record_equivalences_from_stmt): Valueize rhs.
17529         (record_equality): Canonicalize x and y order via
17530         tree_swap_operands_p.  Do not swap operands for same loop depth.
17532 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
17534         PR target/65296
17535         PR target/65895
17536         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
17537         Add hint how to use own spec file.
17539 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
17541         PR tree-optimization/65875
17542         * tree-vrp.c (update_value_range): If in is_new case setting
17543         old_vr to VR_VARYING, also set new_vr to it.  Remove
17544         old_vr->type == VR_VARYING test.
17545         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
17546         SSA_PROP_INTERESTING if update_value_range returned true,
17547         but new range is VR_VARYING.
17549 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17551         * combine.c (sign_extend_short_imm): New.
17552         (set_nonzero_bits_and_sign_copies): Use above new function for sign
17553         extension of src short immediate.
17554         (reg_nonzero_bits_for_combine): Likewise for tem.
17556 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17558         * stor-layout.c (self_referential_component_ref_p): New predicate.
17559         (copy_self_referential_tree_r): Use it.
17560         (self_referential_size): Punt for simple operations directly involving
17561         self-referential component references.
17562         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
17564 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17566         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
17568 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17570         * vec.h (vec): Make splice arguments const.  Update definitions
17571         accordingly.
17573 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
17575         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
17576         alternatives.
17578 2015-04-26  Tom de Vries  <tom@codesourcery.com>
17580         PR tree-optimization/65826
17581         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
17583 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
17585         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
17586         (*madd3<mode>): Ditto.
17587         (*msub4<mode>): Ditto.
17588         (*msub3<mode>): Ditto.
17589         (*nmadd4<mode>): Ditto.
17590         (*nmadd3<mode>): Ditto.
17591         (*nmadd4<mode>_fastmath): Ditto.
17592         (*nmadd3<mode>_fastmath): Ditto.
17593         (*nmsub4<mode>): Ditto.
17594         (*nmsub3<mode>): Ditto.
17595         (*nmsub4<mode>_fastmath): Ditto.
17596         (*nmsub3<mode>_fastmath): Ditto.
17598 2015-04-24  Jason Merrill  <jason@redhat.com>
17600         PR c++/50800
17601         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
17602         down when building TYPE_CANONICAL.
17603         (build_pointer_type_for_mode): Likewise.
17605 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
17607         * genrecog.c (validate_pattern): Check matching constraint refers
17608         to a lower numbered operand.
17610 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17612         PR target/65849
17613         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
17614         save to independent variables use the Save attribute.  This will
17615         allow these options to be modified with the #pragma/attribute
17616         target support.
17617         (-mallow-movmisalign): Likewise.
17618         (-mallow-df-permute): Likewise.
17619         (-msched-groups): Likewise.
17620         (-malways-hint): Likewise.
17621         (-malign-branch-targets): Likewise.
17622         (-mvectorize-builtins): Likewise.
17623         (-msave-toc-indirect): Likewise.
17625         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
17626         can be set via the #pragma/attribute target support.
17627         (rs6000_opt_vars): Likewise.
17628         (rs6000_inner_target_options): If VSX was set, also set
17629         -mno-avoid-indexed-addresses.
17631 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17633         * config/arm/iterators.md (shiftable_ops): Rename to...
17634         (SHIFTABLE_OPS): ... This.  Update use in comments.
17635         (ior_xor): Rename to...
17636         (IOR_XOR): ... This.
17637         (vqh_ops): Rename to...
17638         (VQH_OPS): ... This.
17639         (vqhs_ops): Rename to...
17640         (VQHS_OPS): ... This.
17641         (rshifts): Rename to...
17642         (RSHIFTS): ... This.
17643         (returns): Rename to...
17644         (RETURNS): ... This.
17645         * config/arm/arm.md: Update uses of the above.
17646         * config/arm/neon.md: Likewise.
17648 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17650         * config.host (case ${host}): Add aarch64*-*-linux case.
17651         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
17652         fields to all the cores.
17653         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
17654         Add MCPU_MTUNE_NATIVE_SPECS.
17655         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
17656         field to all extensions.
17657         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
17658         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
17659         Adjust definition of AARCH64_OPT_EXTENSION.
17660         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
17661         (MCPU_MTUNE_NATIVE_SPECS): Define.
17662         * config/aarch64/driver-aarch64.c: New file.
17663         * config/aarch64/x-arch64: New file.
17664         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
17665         -mtune and -march.
17667 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17668             Wei Mi  <wmi@google.com>
17670         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
17671         * config/i386/i386.c (extract_base_offset_in_addr): New function.
17672         (ix86_operands_ok_for_move_multiple): Ditto.
17673         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
17674         (movlpd/movhpd to movupd peephole2): Ditto.
17676 2015-04-24  Marek Polacek  <polacek@redhat.com>
17678         PR c/61534
17679         * input.h (from_macro_expansion_at): Define.
17681         PR c/63357
17682         * doc/invoke.texi: Update description of -Wlogical-op.
17684 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17686         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
17687         ternary operator in fprintf and harmonize spacing.
17689 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17691         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
17692         Mark operand1 commutative.
17694 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17696         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
17697         input operands in memory.
17698         (*vec_concatv2si_sse4_1): Ditto.
17699         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
17700         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
17701         register_operand.
17702         (vec_extract_hi_v32hi): Ditto.
17703         (vec_extract_hi_v64hi): Ditto.
17704         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
17706 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17707             Steven Bosscher <steven@gcc.gnu.org>
17709         PR rtl-optimization/34503
17710         * cprop.c (cprop_reg_p): New.
17711         (hash_scan_set): Use above function to check if register can be
17712         propagated.
17713         (find_avail_set): Return up to two sets, one whose source is a
17714         register and one whose source is a constant.  Sets are returned in an
17715         array passed as parameter rather than as a return value.
17716         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
17717         sets returned by find_avail_set, starting with the one whose source is
17718         a constant. Use cprop_reg_p to check if register can be propagated.
17719         (do_local_cprop): Use cprop_reg_p to check if register can be
17720         propagated.
17721         (implicit_set_cond_p): Likewise.
17723 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17725         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
17726         (sem_function::equals): IGNORED_NODES parameter is now unused;
17727         update call of equals_private.
17728         (sem_function::equals_private): Do not call equals_wpa; skip
17729         gimple body matching if there is no body.
17730         (sem_function::init): Add logic to hash tthunk info.
17731         (sem_function::parse): Also parse thunks.
17732         * ipa-icf.h (equals_private): Update declaration.
17734 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17736         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
17737         asterisk from name so this can be generated directly.
17738         (*altivec_stvx_<mode>_internal): Likewise.
17739         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
17740         that this is never called during or after reload/lra.
17741         (rs6000_frame_related): Remove split_reg
17742         argument and logic that references it.
17743         (emit_frame_save): Remove last parameter from call to
17744         rs6000_frame_related.
17745         (rs6000_emit_prologue): Remove last parameter from eight calls to
17746         rs6000_frame_related.  Force generation of stvx instruction for
17747         Altivec register saves.  Remove split_reg handling, which is no
17748         longer needed.
17749         (rs6000_emit_epilogue):  Force generation of lvx instruction for
17750         Altivec register restores.
17752 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17754         * config/rs6000/rs6000.opt (mcrypto): Change option description to
17755         match category changes in ISA 2.07B.
17757 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17759         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
17760         iterators.
17761         (cmp_op, cmp_type): New code attributes.
17762         (NEON_VCMP, NEON_VACMP): New int iterators.
17763         (cmp_op_unsp): New int attribute.
17764         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
17765         (neon_vceq<mode>): Delete.
17766         (neon_vc<cmp_op><mode>_insn): New pattern.
17767         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
17768         (neon_vcgeu<mode>): Delete.
17769         (neon_vcle<mode>): Likewise.
17770         (neon_vclt<mode>: Likewise.
17771         (neon_vcage<mode>): Likewise.
17772         (neon_vcagt<mode>): Likewise.
17773         (neon_vca<cmp_op><mode>): New define_expand.
17774         (neon_vca<cmp_op><mode>_insn): New pattern.
17775         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
17777 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17779         * tree.h (attribute_value_equal): Declare.
17780         * tree.c (attribute_value_equal): Export.
17782 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17784         * ipa-icf.c (sem_item::compare_attributes): New function.
17785         (sem_item::compare_referenced_symbol_properties): Compare variable
17786         attributes.
17787         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
17788         (sem_function::param_used_p): New function.
17789         (sem_function::equals_wpa): Fix attribute comparsion; match
17790         parameter type codes; do not compare paremter flags when
17791         they are not used; compare edge flags; compare indirect calls.
17792         (sem_item::update_hash_by_addr_refs): Hash reference type.
17793         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
17794         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
17795         reference use type.
17796         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
17797         * ipa-icf.h (compare_attributes, param_used_p): Declare.
17799 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17801         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
17802         cleanup.
17803         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
17804         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
17805         (sem_item::compare_referenced_symbol_properties): New.
17806         (sem_item::hash_referenced_symbol_properties): New.
17807         (sem_item::compare_cgraph_references): Rename to ...
17808         (sem_item::compare_symbol_references): ... this one; use
17809         compare_referenced_symbol_properties.
17810         (sem_function::equals_wpa): Do not compare
17811         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
17812         DECL_IS_OPERATOR_NEW; compare pointer sizes.
17813         (sem_item::update_hash_by_addr_refs): Call
17814         hash_referenced_symbol_properties.
17815         (sem_item::update_hash_by_local_refs): Cleanup.
17816         (sem_function::merge): Do not mix up symbol properties.
17817         (sem_variable::equals_wpa): Use compare_symbol_references.
17818         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
17819         (sem_item::hash_referenced_symbol_properties): New.
17820         (sem_item::compare_symbol_references): New.
17821         (sem_item::compare_cgraph_references): Remove.
17823 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
17825         PR target/26702
17826         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
17827         Emit size of local.
17829 2015-04-23  Nick Clifton  <nickc@redhat.com>
17831         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
17832         ATTRIBUTE_UNUSED to x parameter.
17833         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
17835 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17837         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
17838         TARGET_CRYPTO to TARGET_P8_VECTOR>
17839         (crypto_vpermxor_<mode>): Likewise.
17840         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
17841         (BU_CRYPTO_3A): Likewise.
17842         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
17843         (BU_CRYPTO_OVERLOAD_3A): New #define.
17844         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
17845         (VPMSUMH): Likewise.
17846         (VPMSUMW): Likewise.
17847         (VPMSUMD): Likewise.
17848         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
17849         (VPERMXOR_V4SI): Likewise.
17850         (VPERMXOR_V8HI): Likewise.
17851         (VPERMXOR_V16QI): Likewise.
17852         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
17853         BU_CRYPTO_OVERLOAD_2A.
17854         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
17855         BU_CRYPTO_OVERLOAD_3A.
17856         * config/rs6000/rs6000.opt (mcrypto): Change description of
17857         option.
17859 2015-04-23  Richard Biener  <rguenther@suse.de>
17861         * passes.def: Remove copy propagation passes run directly after CCP.
17862         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
17863         SSA names.
17864         (ccp_visit_phi_node): Rework to handle first executable edge
17865         specially.
17867 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
17869         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17870         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17871         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17872         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
17873         (thumb_legimitimize_reload_address): Remove.
17874         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
17875         Remove.
17876         (thumb_legimitimize_reload_address): Remove.
17878 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17880         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
17882 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17884         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
17885         MAX_LDM_STM_OPS.
17886         (store_multiple): Likewise.
17888 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17890         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
17891         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
17892         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
17893         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
17894         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
17895         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
17896         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
17897         Specify issue_rate value.
17898         (arm_issue_rate): Look up issue rate from tuning structs. Remove
17899         large switch statement.
17900         (arm_marvell_pj4_tune): New struct.
17901         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
17902         struct.
17904 2015-04-23  Richard Biener  <rguenther@suse.de>
17906         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
17907         (vect_find_last_store_in_slp_instance): Rename to ...
17908         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
17909         (vect_analyze_slp_cost_1): Use vector_load for constant defs
17910         and vec_construct for external defs when estimating prologue cost.
17911         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
17912         Compute costs here only when vectorizing loops.
17913         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
17914         have been determined.
17915         (vect_schedule_slp_instance): Simplify vectorized code placement
17916         and prepare for in-BB external defs.
17917         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
17918         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
17919         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
17920         guard.
17921         (vect_model_load_cost): Likewise.
17922         (vectorizable_store): Instead add it here.
17923         (vectorizable_load): Likewise.
17924         (vect_is_simple_use): Dump def type textually.
17926 2015-04-23  Richard Biener  <rguenther@suse.de>
17928         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
17929         * cfgloop.c (verify_loop_structure): Verify the root loop node.
17930         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
17931         instead of get_eh_region_from_lp_number.
17932         * loop-init.c (fix_loop_structure): If we removed a loop, reset
17933         the SCEV cache.
17935 2015-04-23  Anton Blanchard  <anton@samba.org>
17937         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
17938         need for -mprofile-kernel to save LR to stack.
17940 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17942         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
17943         adjustments.
17944         (insn_is_swappable_p): Return 1 for a convert from double to
17945         single precision when all of its uses are splats of BE element
17946         zero.
17948 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17950         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
17952 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17954         PR target/65456
17955         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
17956         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
17957         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
17958         option.
17959         (rs6000_builtin_mask_for_load): Return 0 for targets with
17960         efficient unaligned VSX accesses so that the vectorizer will use
17961         direct unaligned loads.
17962         (rs6000_builtin_support_vector_misalignment): Always return true
17963         for targets with efficient unaligned VSX accesses.
17964         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
17965         stores on targets with efficient unaligned VSX accesses is almost
17966         always the same as the cost of an aligned load or store, so model
17967         it that way.
17968         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
17969         unaligned vectors if we have efficient unaligned VSX accesses.
17970         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
17971         undocumented option.
17973 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17975         Revert:
17976         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
17978         * config.gcc (LIBC_MUSL): New tm_defines macro.
17979         * config/linux.h (OPTION_MUSL): Define.
17980         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17981         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17982         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17984         * config/linux.opt (mmusl): New option.
17985         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17986         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17988         * configure: Regenerate.
17990 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
17992         * config.gcc (LIBC_MUSL): New tm_defines macro.
17993         * config/linux.h (OPTION_MUSL): Define.
17994         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17995         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17996         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17998         * config/linux.opt (mmusl): New option.
17999         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18000         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18002         * configure: Regenerate.
18004 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
18006         * doc/invoke.texi (-fsanitize-sections): Update description.
18007         * asan.c (set_sanitized_sections): Parse incoming arg.
18008         (section_sanitized_p): Support wildcards.
18010 2015-04-22  Tom de Vries  <tom@codesourcery.com>
18012         PR tree-optimization/65823
18013         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
18014         equality between ap_copy and ap.
18016 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18018         PR target/47098
18019         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
18021 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18023         PR target/47122
18024         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
18026 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18028         PR target/55144
18029         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
18030         remove already contained t-files.
18032 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18034         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
18035         Remove unneeded forward declarations.
18036         (suitable_for_tail_call_opt_p): Commentary typo fix.
18038 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18040         * varasm.c (emit_bss): Remove redundant guard.
18042 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18044         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
18046 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18048         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
18050 2015-04-22  Hale Wang  <hale.wang@arm.com>
18051             Terry Guo  <terry.guo@arm.com>
18053         PR rtl-optimization/64818
18054         * combine.c (can_combine_p): Don't combine user-specified
18055         register if it is in an asm input.
18057 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
18059         PR ipa/65076
18060         * passes.def (early_optimizations): Add pass_dse.
18062 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18064         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
18065         * reorg.c (redundant_insn): Remove ifdef
18066         INSN_REFERENCES_ARE_DELAYED.
18067         * resource.c (mark_referenced_resources): Likewise.
18069 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18071         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
18072         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
18073         * resource.c (mark_set_resources): Likewise.
18075 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18077         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
18078         * cfgcleanup.c (flow_find_cross_jump): Likewise.
18079         (flow_find_head_matching_sequence): Likewise.
18080         (try_head_merge_bb): Likewise.
18081         * combine.c (can_combine_p): Likewise.
18082         (try_combine): Likewise.
18083         (distribute_notes): Likewise.
18084         * df-problems.c (can_move_insns_across): Likewise.
18085         * final.c (final): Likewise.
18086         * gcse.c (insert_insn_end_basic_block): Likewise.
18087         * ira.c (find_moveable_pseudos): Likewise.
18088         * reorg.c (try_merge_delay_insns): Likewise.
18089         (fill_simple_delay_slots): Likewise.
18090         (fill_slots_from_thread): Likewise.
18091         * sched-deps.c (sched_analyze_2): Likewise.
18093 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18095         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
18096         PIC_OFFSET_TABLE_REGNUM.
18098 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18100         * alias.c (init_alias_target): Remove ifdef
18101         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
18102         * df-scan.c (df_insn_refs_collect): Likewise.
18103         (df_get_regular_block_artificial_uses): Likewise.
18104         (df_get_eh_block_artificial_uses): Likewise.
18105         (df_get_entry_block_def_set): Likewise.
18106         (df_get_exit_block_use_set): Likewise.
18107         * emit-rtl.c (gen_rtx_REG): Likewise.
18108         * ira.c (ira_setup_eliminable_regset): Likewise.
18109         * reginfo.c (init_reg_sets_1): Likewise.
18110         * regrename.c (rename_chains): Likewise.
18111         * reload1.c (reload): Likewise.
18112         (eliminate_regs_in_insn): Likewise.
18113         * resource.c (mark_referenced_resources): Likewise.
18114         (init_resource_info): Likewise.
18116 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18118         * defaults.h (MASK_RETURN_ADDR): New definition.
18119         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18120         MASK_RETURN_ADDR.
18122 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18124         * defaults.h (RETURN_ADDR_OFFSET): New definition.
18125         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18126         RETURN_ADDR_OFFSET.
18127         (expand_builtin_frob_return_addr): Likewise.
18129 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18131         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
18132         (try_redirect_by_replacing_jump): Likewise.
18133         (rtl_tidy_fallthru_edge): Likewise.
18134         * combine.c (insn_a_feeds_b): Likewise.
18135         (find_split_point): Likewise.
18136         (simplify_set): Likewise.
18137         * cprop.c (cprop_jump): Likewise.
18138         * cse.c (cse_extended_basic_block): Likewise.
18139         * df-problems.c (can_move_insns_across): Likewise.
18140         * function.c (emit_use_return_register_into_block): Likewise.
18141         * haifa-sched.c (sched_init): Likewise.
18142         * ira.c (find_moveable_pseudos): Likewise.
18143         * loop-invariant.c (find_invariant_insn): Likewise.
18144         * lra-constraints.c (curr_insn_transform): Likewise.
18145         * postreload.c (reload_combine_recognize_const_pattern):
18146         * Likewise.
18147         * reload.c (find_reloads): Likewise.
18148         * reorg.c (delete_scheduled_jump): Likewise.
18149         (steal_delay_list_from_target): Likewise.
18150         (steal_delay_list_from_fallthrough): Likewise.
18151         (redundant_insn): Likewise.
18152         (fill_simple_delay_slots): Likewise.
18153         (fill_slots_from_thread): Likewise.
18154         (delete_computation): Likewise.
18155         * sched-rgn.c (add_branch_dependences): Likewise.
18157 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18159         * genconfig.c (main): Always define HAVE_cc0.
18160         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
18161         HAVE_cc0.
18162         * cfgcleanup.c (flow_find_cross_jump): Likewise.
18163         (flow_find_head_matching_sequence): Likewise.
18164         (try_head_merge_bb): Likewise.
18165         * cfgrtl.c (rtl_merge_blocks): Likewise.
18166         (try_redirect_by_replacing_jump): Likewise.
18167         (rtl_tidy_fallthru_edge): Likewise.
18168         * combine.c (do_SUBST_MODE): Likewise.
18169         (insn_a_feeds_b): Likewise.
18170         (combine_instructions): Likewise.
18171         (can_combine_p): Likewise.
18172         (try_combine): Likewise.
18173         (find_split_point): Likewise.
18174         (subst): Likewise.
18175         (simplify_set): Likewise.
18176         (distribute_notes): Likewise.
18177         * cprop.c (cprop_jump): Likewise.
18178         * cse.c (cse_extended_basic_block): Likewise.
18179         * df-problems.c (can_move_insns_across): Likewise.
18180         * final.c (final): Likewise.
18181         (final_scan_insn): Likewise.
18182         * function.c (emit_use_return_register_into_block): Likewise.
18183         * gcse.c (insert_insn_end_basic_block): Likewise.
18184         * haifa-sched.c (sched_init): Likewise.
18185         * ira.c (find_moveable_pseudos): Likewise.
18186         * loop-invariant.c (find_invariant_insn): Likewise.
18187         * lra-constraints.c (curr_insn_transform): Likewise.
18188         * optabs.c (prepare_cmp_insn): Likewise.
18189         * postreload.c (reload_combine_recognize_const_pattern):
18190         * Likewise.
18191         * reload.c (find_reloads): Likewise.
18192         (find_reloads_address_1): Likewise.
18193         * reorg.c (delete_scheduled_jump): Likewise.
18194         (steal_delay_list_from_target): Likewise.
18195         (steal_delay_list_from_fallthrough): Likewise.
18196         (try_merge_delay_insns): Likewise.
18197         (redundant_insn): Likewise.
18198         (fill_simple_delay_slots): Likewise.
18199         (fill_slots_from_thread): Likewise.
18200         (delete_computation): Likewise.
18201         (relax_delay_slots): Likewise.
18202         * sched-deps.c (sched_analyze_2): Likewise.
18203         * sched-rgn.c (add_branch_dependences): Likewise.
18205 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18207         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
18208         that is trivially ded on non cc0 targets.
18209         (simplify_set): Likewise.
18210         (mark_used_regs_combine): Likewise.
18211         * cse.c (new_basic_block): Likewise.
18212         (fold_rtx): Likewise.
18213         (cse_insn): Likewise.
18214         (cse_extended_basic_block): Likewise.
18215         (set_live_p): Likewise.
18216         * rtlanal.c (canonicalize_condition): Likewise.
18217         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18219 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18221         * conditions.h: Define macros even if HAVE_cc0 is undefined.
18222         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
18223         * final.c: Likewise.
18224         * jump.c: Likewise.
18225         * recog.c: Likewise.
18226         * recog.h: Declare functions even when HAVE_cc0 is undefined.
18227         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
18229 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18231         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
18232         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
18233         * builtins.c (expand_builtin): Remove check if
18234         EH_RETURN_DATA_REGNO is defined.
18235         * df-scan.c (df_bb_refs_collect): Likewise.
18236         (df_get_exit_block_use_set): Likewise.
18237         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18238         * ira-lives.c (process_bb_node_lives): Likewise.
18239         * lra-lives.c (process_bb_lives): Likewise.
18241 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18243         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
18244         FIRST_PSEUDO_REG): New.
18245         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
18246         (ARG_POINTER_REGNUM): Define to ARGP_REG.
18247         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
18248         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
18249         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
18250         (FIRST_INT_REG): New.
18251         (LAST_INT_REG): New.
18252         (FIRST_*_REG): Define using *_REG.
18253         (LAST_*_REG): Ditto.
18254         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
18255         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
18256         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
18258 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18260         * expmed.c: (synth_mult): Only assume overlapping
18261         shift with previous steps in alg_sub_t_m2 case.
18263 2015-04-21  Richard Biener  <rguenther@suse.de>
18265         PR tree-optimization/65650
18266         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
18267         transitions involving copies.
18268         (set_lattice_value): Adjust for copy lattice state.
18269         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
18270         if that doesn't dominate the merge point.
18271         (bit_value_unop): Adjust what we treat as varying mask.
18272         (bit_value_binop): Likewise.
18273         (bit_value_assume_aligned): Likewise.
18274         (evaluate_stmt): When we simplified to a SSA name record a copy
18275         instead of dropping to varying.
18276         (visit_assignment): Simplify.
18278         * gimple-match.h (gimple_simplify): Add another callback.
18279         * gimple-fold.c (fold_stmt_1): Adjust caller.
18280         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
18281         for the 2nd callback.
18282         * gimple-match-head.c (gimple_simplify): Add a callback that is
18283         used to valueize the stmt operands and use it that way.
18285 2015-04-21  Richard Biener  <rguenther@suse.de>
18287         PR tree-optimization/65788
18288         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
18290 2015-04-21  Richard Biener  <rguenther@suse.de>
18292         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
18293         vec_construct cost by vec_stmt_cost.
18295 2015-04-21  Richard Biener  <rguenther@suse.de>
18297         * cfghooks.h (create_basic_block): Replace with two overloads
18298         for RTL and GIMPLE.
18299         (split_block): Likewise.
18300         * cfghooks.c (split_block): Rename to ...
18301         (split_block_1): ... this.
18302         (split_block): Add two type-safe overloads for RTL and GIMPLE.
18303         (split_block_after_labels): Call split_block_1.
18304         (create_basic_block): Rename to ...
18305         (create_basic_block_1): ... this.
18306         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
18307         (create_empty_bb): Call create_basic_block_1.
18308         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
18309         split_block_after_labels.
18310         * omp-low.c (expand_parallel_call): Likewise.
18311         (expand_omp_target): Likewise.
18312         (simd_clone_adjust): Likewise.
18313         * tree-chkp.c (chkp_get_entry_block): Likewise.
18314         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
18315         create_basic_block overload.
18316         (cgraph_node::expand_thunk): Likewise.
18317         * tree-cfg.c (make_blocks): Likewise.
18318         (handle_abnormal_edges): Likewise.
18319         * tree-inline.c (copy_bb): Likewise.
18321 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18323         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
18324         New pattern.
18325         (*xor_one_cmplsidi3_ze): Likewise.
18327 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18329         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
18330         use df_remove_problem rather than manually removing problems, leaving
18331         holes in df->problems_in_order[].
18333 2015-04-21  Tom de Vries  <tom@codesourcery.com>
18335         PR tree-optimization/65802
18336         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
18338 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18340         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
18341         Increase to 128.
18342         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
18343         at '.'.  Assert that there's enough space for everything.
18345 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18347         PR tree-optimization/64950
18348         Revert:
18349         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
18351         PR target/41089
18352         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18353         as volatile.
18355 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
18357         PR rtl-optimization/64916
18358         * cfgcleanup.c (values_equal_p): New function.
18359         (can_replace_by): Use it.
18361 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
18363         PR c++/65801
18364         * doc/invoke.texi ([-Wnarrowing]): Update.
18366 2015-04-20  Jeff Law  <law@redhat.com>
18368         PR tree-optimization/65658
18369         * tree-ssa-threadupdate.c (redirection_block_p): Remove
18370         redundant test for GIMPLE_ASSIGN in last change.
18372 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
18374         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
18375         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
18376         (legitimize_tls_address): Ditto.
18377         (ix86_expand_move): Ditto.
18378         (ix86_expand_binary_operator): Remove reload_in_progress checks.
18379         (ix86_expand_unary_operator): Ditto.
18380         * config/i386/predicates.md (index_register_operand): Ditto.
18382 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
18384         * reorg.c (try_merge_delay_insns): Improve correctness checking
18385         for targets with multiple delay slots.
18387 2015-04-20  Jeff Law  <law@redhat.com>
18389         PR tree-optimization/65658
18390         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
18391         statements too.
18393 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18395         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
18396         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
18397         Delete.
18399 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
18401         PR debug/65807
18402         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
18404 2015-04-20  Richard Biener  <rguenther@suse.de>
18406         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
18407         * gimple-fold.c (gimple_build_valueize): New function.
18408         (gimple_build): Always use gimple_build_valueize as valueize hook.
18410 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18412         PR target/64134
18413         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
18414         and overwrite variable parts if <= 1/2 the elements are variable.
18416 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
18418         PR rtl-optimization/65805
18419         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
18420         Don't use difference of offset and previous offset if
18421         update_sp_offset is non-zero.
18422         (eliminate_regs_in_insn): Ditto.
18423         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
18424         lra_eliminate_regs_1 call.
18425         * lra-constraints.c (get_equiv_with_elimination): Ditto.
18427 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
18429         * hash-table.h: Remove version of hash_table that stored value_type *.
18430         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
18431         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
18432         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
18433         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
18434         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
18435         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
18436         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18437         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
18438         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
18439         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
18440         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
18441         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
18442         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
18443         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18444         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
18445         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
18447 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18448             Jakub Jelinek  <jakub@redhat.com>
18450         PR target/65787
18451         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
18452         subsequent SH_NONE operand does not overwrite an existing *special
18453         value.
18454         (adjust_extract): Handle case where a vec_extract operation is
18455         wrapped in a PARALLEL.
18457 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18459         PR target/65780
18460         * config/i386/i386.c (ix86_binds_local_p): Define only if
18461         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
18463 2015-04-17  Jeff Law  <law@redhat.com>
18465         PR tree-optimization/47679
18466         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
18467         * tree-ssa-scopedtables.c: New file.
18468         * tree-ssa-scopedtables.h: New file.
18469         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
18470         (const_and_copies): Change name/type.
18471         (record_const_or_copy): Move into tree-ssa-scopedtables.c
18472         (record_const_or_copy_1): Similarly.
18473         (restore_vars_to_original_value): Similarly.
18474         (pass_dominator::execute): Create and destroy const_and_copies table.
18475         (thread_across_edge): Update passing of const_and_copies.
18476         (record_temporary_equivalence): Use method calls rather than
18477         manipulating const_and_copies directly.
18478         (record_equality, cprop_into_successor_phis): Similarly.
18479         (dom_opt_dom_walker::before_dom_children): Similarly.
18480         (dom_opt_dom_walker::after_dom_children): Similarly.
18481         (eliminate_redundant_computations): Similarly.
18482         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
18483         (record_temporary_equivalence): Likewise.
18484         (invalidate_equivalences): Likewise.
18485         (record_temporary_equivalences_from_phis): Update due to type
18486         change of const_and_copies.  Use method calls rather than
18487         manipulating the stack directly.
18488         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
18489         (thread_through_normal_block, thread_across_edge): Likewise.
18490         (thread_across_edge): Likewise.
18491         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
18492         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
18493         of equiv_stack.
18494         (identify_jump_threads): Update due to type change of equiv_stack.
18495         (finalize_jump_threads): Delete the equiv_stack when complete.
18497 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
18499         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18500         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
18501         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
18503 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
18505         PR target/65535
18506         * config.gcc: Exit with a comment when we do not have a major version
18507         number for the FreeBSD target.
18509 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18511         PR target/65689
18512         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
18513         maybe_allows_mem bitfields.
18514         (maybe_allows_none_start, maybe_allows_none_end,
18515         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
18516         maybe_allows_mem_end): New variables.
18517         (compute_maybe_allows): New function.
18518         (add_constraint): Use it to initialize maybe_allows_reg and
18519         maybe_allows_mem fields.
18520         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
18521         is_address constraints such that those that allow neither mem nor
18522         reg come first, then those that only allow reg but not mem, then
18523         those that only allow mem but not reg, then the rest.
18524         (write_allows_reg_mem_function): New function.
18525         (write_tm_preds_h): Call it.
18526         * stmt.c (parse_output_constraint, parse_input_constraint): Use
18527         the generated insn_extra_constraint_allows_reg_mem function
18528         instead of always setting *allows_reg = true; *allows_mem = true;
18529         for unknown extra constraints.
18531 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18533         PR target/65780
18534         * output.h (default_binds_local_p_3): New.
18535         * varasm.c (default_binds_local_p_3): Make it public.  Take an
18536         argument to indicate if common symbol may be local.  If common
18537         symbol may be local, treat non-external variable as defined
18538         locally.
18539         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
18540         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
18541         * config/i386/i386.c (ix86_binds_local_p): New.
18542         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
18543         ix86_binds_local_p.
18545 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18547         PR debug/65771
18548         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
18549         trying mem_loc_descriptor on XEXP (rtl, 0).
18551 2015-04-17  Martin Liska  <mliska@suse.cz>
18553         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18554         Release symbol_compare_collection.
18555         * ipa-reference.c: Add TODO that a vector should be released.
18557 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
18559         PR target/65296
18560         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
18561         to new AVR-LibC file layout (bug #44574).
18562         (*avrlibc_devicelib): Same.
18563         * config/avr/avr-mcus.def: Adjust comments.
18564         * config/avr/avr.opt (nodevicelib): Adjust help.
18566 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
18568         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
18570 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
18572         PR c++/64527
18573         * gimplify.c (gimplify_init_constructor): Always emit a
18574         side-effecting constructor.
18576 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18578         PR tree-optimization/64950
18579         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
18580         in cfun->curr_properties.
18581         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
18582         if we generate an IFN_VA_ARG.
18583         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
18584         function if PROP_gimple_lva is not set in src function.
18586 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18587             Michael Matz  <matz@suse.de>
18589         PR tree-optimization/64950
18590         * gimple-iterator.c (update_modified_stmts): Remove static.
18591         * gimple-iterator.h (update_modified_stmts): Declare.
18592         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
18593         (gimplify_va_arg_internal): New function.
18594         (gimplify_va_arg_expr): Use IFN_VA_ARG.
18595         * gimplify.h (gimplify_va_arg_internal): Declare.
18596         * internal-fn.c (expand_VA_ARG): New unreachable function.
18597         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
18598         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
18599         (expand_ifn_va_arg): New function.
18600         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
18601         (pass_stdarg::execute): Call expand_ifn_va_arg.
18602         (pass_data_lower_vaarg): New pass_data.
18603         (pass_lower_vaarg): New gimple_opt_pass.
18604         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
18605         (make_pass_lower_vaarg): New function.
18606         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
18607         properties_required field.
18608         * passes.def (all_passes): Add pass_lower_vaarg.
18609         * tree-pass.h (PROP_gimple_lva): Add define.
18610         (make_pass_lower_vaarg): Declare.
18612 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18614         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
18615         * calls.c (call_expr_flags): Same.
18617 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18619         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
18620         (pass_stdarg::execute): ... here.
18622 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18623             Michael Matz  <matz@suse.de>
18625         * tree-cfg.c (make_blocks_1): Factor out of ...
18626         (make_blocks): ... here.
18627         (make_edges_bb): Factor out of ...
18628         (make_edges): ... here.
18629         (gimple_find_sub_bbs): New function.
18630         * tree-cfg.h (gimple_find_sub_bbs): Declare.
18632 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18634         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
18636 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
18638         * asan.c (set_sanitized_sections): New function.
18639         (section_sanitized_p): Ditto.
18640         (asan_protect_global): Optionally sanitize user-defined
18641         sections.
18642         * asan.h (set_sanitized_sections): Declare new function.
18643         * common.opt (fsanitize-sections): New option.
18644         * doc/invoke.texi (-fsanitize-sections): Document new option.
18645         * opts-global.c (handle_common_deferred_options): Handle new
18646         option.
18648 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18650         PR debug/65771
18651         * dwarf2out.c (loc_list_from_tree): Return NULL
18652         for DEBUG_EXPR_DECL.
18654 2015-04-17  Christian Bruel  <christian.bruel@st.com>
18656         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
18657         same attributes.
18659 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18661         * ira-color.c (setup_left_conflict_sizes_p): Do not process
18662         node itself when computing left conflict subnode size.
18664 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18666         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
18667         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
18668         *fop_<mode>_1_sse using enabled attribute.  Use
18669         register_mixssei387nonimm_operand operand 1 predicate. Change
18670         alternative 3 constraints from "x" to "v".
18672 2015-04-16  Richard Biener  <rguenther@suse.de>
18674         PR tree-optimization/65774
18675         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
18676         bit-value tracking on.
18678 2015-04-16  Richard Biener  <rguenther@suse.de>
18680         PR tree-optimization/64277
18681         * tree-vrp.c (check_array_ref): Fix anti-range handling,
18682         simplify upper bound handling.
18683         (search_for_addr_array): Simplify.
18684         (check_array_bounds): Handle ADDR_EXPRs here.
18685         (check_all_array_refs): Simplify.
18687 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18689         * config/i386/i386.c (print_reg): Rewrite function.
18691 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18693         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
18694         Invert the condition.
18696 2015-04-16  Renlin Li  <renlin.li@arm.com>
18698         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
18699         simplifications for UNSIGNED_FLOAT.
18701 2015-04-16  Nick Clifton  <nickc@redhat.com>
18703         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
18704         MUL_UNINIT.
18705         (enum rl78_cpu_type): New.
18706         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
18707         (umulhi3_shift_virt): Remove m constraint from operand 1.
18708         (umulqihi3_virt): Likewise.
18709         * config/rl78/rl78.c (rl78_option_override): Add code to process
18710         -mcpu and -mmul options.
18711         (rl78_alloc_physical_registers): Add code to handle divhi and
18712         divsi valloc attributes.
18713         (set_origin): Likewise.
18714         * config/rl78/rl78.h (RL78_MUL_G14): Define.
18715         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
18716         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
18717         __RL78_Gxx__.
18718         (ASM_SPEC): Pass -mcpu on to assembler.
18719         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
18720         (mulqi3_rl78): Likewise.
18721         (mulhi3_g13): Likewise.
18722         (mulhi3): Generate the G13 or G14 versions of the insn directly.
18723         (mulsi3): Likewise.
18724         (mulhi3_g14): Add clobbers of AX and BC.
18725         (mulsi3_g14): Likewise.
18726         (mulsi3_g13): Likewise.
18727         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
18728         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
18729         * config/rl78/rl78.opt (mmul): Initialise value to
18730         RL78_MUL_UNINIT.
18731         (mcpu): New option.
18732         (m13, m14, mrl78): New option aliases.
18733         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
18734         (MULTILIB_DIRNAMES): Add g13 and g14.
18735         * doc/invoke.texi: Document -mcpu and -mmul options.
18737 2015-04-16  Richard Biener  <rguenther@suse.de>
18739         * tree-ssa-ccp.c (likely_value): See if we have operands that
18740         are marked as never simulate again and return CONSTANT in this
18741         case.
18742         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
18743         not have any operands that will be simulated again as
18744         not being simulated again.
18746 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
18748         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
18749         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
18750         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
18751         attribute.
18752         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
18753         enabled attribute.
18754         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
18755         *float<SWI48:mode><MODEF:mode>2_sse.
18756         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
18757         enabled attribute.
18758         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
18759         enabled attribute.
18761 2015-04-15  Tom de Vries  <tom@codesourcery.com>
18763         PR other/65487
18764         * function.c (push_dummy_function): New function.
18765         (init_dummy_function_start): Use push_dummy_function.
18766         (pop_dummy_function): New function.  Factored out of ...
18767         (expand_dummy_function_end): ... here.
18768         * function.h (push_dummy_function, pop_dummy_function): Declare.
18769         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
18770         pop_dummy_function.
18771         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
18773 2015-04-15  Jeff Law  <law@redhat.com>
18775         PR tree-optimization/47679
18776         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
18777         need for forward declaration in upcoming changes.
18778         (record_conditions, record_edge_info): Likewise.
18780         PR rtl-optimization/42522
18781         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
18782         SIGN_EXTRACT as a whole object rather than simplifying
18783         its operand.
18785 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
18787         PR ipa/65765
18788         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
18789         and GIMPLE_PREDICT use break instead of return true. For
18790         GIMPLE_EH_DISPATCH, compare dispatch region.
18792 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
18794         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
18795         details about the implementation.  Make clear preference for
18796         __atomic builtins.  Reduce possibility of future change.
18798 2015-04-15  Nick Clifton  <nickc@redhat.com>
18800         * config/rx/rx.opt (mallow-string-insns): New option.
18801         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
18802         builtin if string instructions are denied.
18803         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
18804         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
18805         appropriate.
18806         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
18807         * config/rx/rx.md (movstr): Enable pattern only if string
18808         instructions are allowed.
18809         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
18810         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
18811         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
18812         (MULTILIB_DIRNAMES): Add no-strings.
18813         * doc/invoke.texi: Document -mno-allow-string-insns.
18815 2015-04-15  Alan Modra  <amodra@gmail.com>
18817         PR target/65408
18818         PR target/58744
18819         PR middle-end/36043
18820         * calls.c (load_register_parameters): Don't load past end of
18821         mem unless suitably aligned.
18823 2015-04-15  Nick Clifton  <nickc@redhat.com>
18825         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
18826         decrement instruction as being frame related.
18827         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
18828         based addresses.
18829         If zero extending a function address enclose the operation in
18830         %code(...).
18831         (rl78_preferred_reload_class): New function.
18832         (TARGET_PREFERRED_RELOAD_CLASS): Define.
18833         * config/rl78/rl78.md: Remove useless constraints in expanders.
18834         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
18835         (mulhi3_rl78): Likewise.
18836         (mulhi3_g13): Likewise.
18837         (mulsi3_rl78): Likewise.
18838         (es_addr): Move to before the multiply patterns.
18840 2015-04-15  Alan Modra  <amodra@gmail.com>
18842         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
18843         and sequence_stack.  Add seq.
18844         (seq_stack): Delete.
18845         * function.c (prepare_function_start): Don't access x_last_insn.
18846         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
18847         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
18848         * emit_rtl.c (start_sequence, push_topmost_sequence,
18849         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
18850         sequence accessors.
18851         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
18852         remove_insn): Likewise.  Simplify.
18853         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
18854         and pop_topmost_sequence.
18855         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
18856         debug insns.
18857         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
18859 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
18861         PR target/65729
18862         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
18863         the assertiion.
18865 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18867         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
18868         (LEGACY_INT_REGNO_P): Ditto.
18869         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
18870         (ANY_MASK_REG_P): Remove.
18871         (BND_REG_P): Rename from ANY_BND_REG_P.
18872         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
18873         legacy integer registers.  Do not handle MMX_REG_P in a special way.
18874         Merge 64byte and 32byte SSE handling.
18876 2015-04-14  Nick Clifton  <nickc@redhat.com>
18878         * expr.c (expand_assignment): Force an address offset computation
18879         into a register before changing its mode.
18880         (expand_expr_real_1): Likewise.
18882 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
18884         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
18885         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
18886         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
18887         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
18888         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
18889         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
18890         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
18891         and __aarch64_vget_lane_any.
18893 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
18895         PR rtl-optimization/65761
18896         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
18897         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
18899 2015-04-14  Richard Biener  <rguenther@suse.de>
18901         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
18902         (graphite_can_represent_scev): Use POINTER_TYPE_P.
18904 2015-04-14  Richard Biener  <rguenther@suse.de>
18906         PR tree-optimization/65758
18907         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
18908         against -1.
18909         (ccp_lattice_meet): Likewise.
18910         (bit_value_unop): Likewise.
18911         (bit_value_binop): Likewise.
18912         (bit_value_assume_aligned): Likewise.
18914 2015-04-14  Christian Bruel  <christian.bruel@st.com>
18916         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
18917         function.
18919 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
18921         PR tree-optimization/63387
18922         * match.pd ((x unord x) | (y unord y) -> (x unord y),
18923         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
18925 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18927         * config/i386/predicates.md (any_QIreg_operand): Rename from
18928         q_regs_operand.  Do not process subregs.
18929         (QIreg_operand): Use QI_REGNO_P predicate.
18930         (ext_QIreg_operand): Ditto.
18931         (ext_register_operand): Ditto.
18932         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
18933         (AND splitters): Ditto.
18934         (AND with -65536 splitter): Add SWI48 mode for operand 0.
18935         (AND with -256 splitter): Use any_QIreg_operand predicate and
18936         SWI248 mode for operand 0.
18937         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
18938         mode for operand 0.
18939         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
18941 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
18943         * doc/plugins.texi: Rewrite first introductory paragraph.
18945 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18947         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
18948         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
18950 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18952         * ipa-profie.c (ipa_profile): Check number of parameters
18953         and possible polymorphic call targets before
18954         devirtualizing.
18956 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
18958         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
18959         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
18961 2015-04-13  Richard Biener  <rguenther@suse.de>
18963         PR tree-optimization/65204
18964         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
18965         takens for bit-CCP.
18967 2015-04-13  Richard Biener  <rguenther@suse.de>
18969         PR target/65660
18970         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
18971         and cond_not_taken_branch_cost to 4 and 2.
18972         (bdver2_cost): Likewise.
18973         (bdver3_cost): Likewise.
18974         (bdver4_cost): Likewise.
18976 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18978         * hash-table.h (hash_table constructor): Add mem stats.
18979         (alloc_entries): Likewise.
18981 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18983         * ipa-cp.c (ipcp_driver): Relase prev_edge.
18984         * passes.c (execute_one_pass): Only add transform if pass has one.
18986 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
18988         * config/i386/i386.c (ix86_option_override_internal): Don't set
18989         -fprefetch-loop-arrays if optimizing for size.
18991 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18992             Gerald Pfeifer  <gerald@pfeifer.com>
18994         * doc/contrib.texi (Contributors): Add Martin Jambor and
18995         Michael Matz.
18997 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
18999         * BASE-VER: Set to 6.0.0.
19001         PR tree-optimization/65747
19002         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
19003         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
19005 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
19007         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
19008         sentence.  Improve grammar.
19010 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
19012         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
19014 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
19016         PR ipa/65743
19017         * ipa-inline-transform.c (speculation_removed): Remove static var.
19018         (check_speculations): New function.
19019         (clone_inlined_nodes): Do not check spculations.
19020         (inline_call): Call check_speculations.
19021         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
19022         consider non-invariants.
19024 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
19025             Martin Liska  <mliska@suse.cz>
19027         PR ipa/65722
19028         * ipa-icf.c (sem_item::compare_cgraph_references): function and
19029         variable can not match.
19030         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
19031         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
19033 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
19035         PR tree-optimization/65735
19036         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
19037         Remove visited_phis argument, add visited_bbs, avoid recursing into the
19038         same bb rather than just into the same phi node.
19039         (thread_through_normal_block): Adjust caller.
19041 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
19043         * doc/contrib.texi (Contributors): Add Ira Rosen.
19045 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
19047         * gcov.c (find_source): Fix miswording in error message.
19048         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
19049         (ix86_expand_sse_comi_round): Fix typo in error message.
19051 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
19053         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
19055 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
19057         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
19059 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
19061         PR target/65710
19062         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
19063         Print bad_spills_num and insn_pseudos_num.
19065 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19067         PR target/65694
19068         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
19069         when creating +1 values for SImode.
19071 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
19073         PR target/65729
19074         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
19075         assert.
19077 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
19078             Iain Sandoe  <iain@codesourcery.com>
19080         PR target/65351
19081         * configure: Regenerate.
19083 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19085         PR target/65671
19086         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
19088 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
19090         * doc/contrib.texi (Contributors): Add John Marino.
19092 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19094         PR tree-optimization/65709
19095         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
19096         TREE_TYPE (TREE_TYPE (t)).
19098 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
19100         PR target/65710
19101         * lra-int.h (lra_bad_spill_regno_start): New.
19102         * lra.c (lra_bad_spill_regno_start): New.
19103         (lra): Set up lra_bad_spill_regno_start.  Set up
19104         lra_constraint_new_regno_start unconditionally.
19105         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
19106         spill preferences.
19108 2015-04-09  Marek Polacek  <polacek@redhat.com>
19109             Jakub Jelinek  <jakub@redhat.com>
19111         PR middle-end/65554
19112         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
19113         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
19114         of STRIP_NOPS.
19116 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
19118         PR rtl-optimization/65693
19119         * combine.c (is_parallel_of_n_reg_sets): Move outside of
19120         #ifndef HAVE_cc0.
19122 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
19124         PR target/65296
19125         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
19126         device specs file if "device-specs%s" didn't resolve to a path.
19128 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19130         PR target/65676
19131         * config/i386/i386.c (fixup_modeless_constant): New.
19132         (ix86_expand_args_builtin): Fixup modeless constant operand.
19133         (ix86_expand_round_builtin): Ditto.
19134         (ix86_expand_special_args_builtin): Ditto.
19135         (ix86_expand_builtin): Ditto.
19137 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19139         PR target/65693
19140         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
19141         any pow2 integer in between 2 and 0x80000000U inclusive.
19143 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
19145         PR rtl-optimization/65693
19146         * combine.c (is_parallel_of_n_reg_sets): Change first argument
19147         from an rtx_insn * to an rtx.
19148         (try_combine): Adjust both callers.  Use it once more.
19150 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19152         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
19153         (chkp_make_static_const_bounds): Search existing
19154         symbol by assembler name.  Use make_decl_one_only.
19155         (chkp_get_zero_bounds_var): Remove node search which
19156         is now performed in chkp_make_static_const_bounds.
19157         (chkp_get_none_bounds_var): Likewise.
19159 2015-04-08  Michael Witten  <mfwitten@gmail.com>
19161         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
19162         to an example.
19164 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19166         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
19168 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
19170         * doc/extend.texi (__sync Builtins): Fix grammar.
19172 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19174         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
19176 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19178         * varasm.c (emit_local): Move definition of align.
19180 2015-04-08  Julian Brown  <julian@codesourcery.com>
19182         * config/nvptx/mkoffload.c (process): Support variable mapping.
19184 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
19186         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
19187         alpha_links **.
19188         (alpha_write_one_linkage): Correct typo.
19190 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19192         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
19194 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
19196         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
19198 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19200         * tree-chkp.h (chkp_insert_retbnd_call): New.
19201         * tree-chkp.c (chkp_insert_retbnd_call): New.
19202         * ipa-split.c (insert_bndret_call_after): Remove.
19203         (split_function): Use chkp_insert_retbnd_call.
19204         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
19205         bounds for instrumented functions.
19207 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
19209         PR ipa/65540
19210         * calls.c (initialize_argument_information): When producing tail
19211         call also turn SSA_NAMES passed by references to original PARM_DECLs
19213 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
19215         PR target/65648
19216         * lra-remat.c (do_remat): Process input and non-input insn
19217         registers separately.
19219 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
19221         PR debug/65678
19222         * valtrack.c (debug_lowpart_subreg): New function.
19223         (dead_debug_insert_temp): Use it.
19225         PR middle-end/65680
19226         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
19227         into signed HOST_WIDE_INT the same as negative bit_offset.
19229 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
19231         * ipa-comdats.c (ipa_comdats): Visit all thunks
19232         to set proper comdat group.
19234 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19236         PR target/65489
19237         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
19238         on constants for NEON VSTRUCT modes.
19240 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
19241             Iain Sandoe  <iain@codesourcery.com>
19243         PR target/65351
19244         * configure: Regenerate.
19246 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19248         PR target/65614
19249         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
19250         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
19251         that LFD is used to load double constants instead of LFS.  Add
19252         defaults for all costs structures.  Add comments for missing
19253         initialization fields.
19254         (size32_cost): Likewise.
19255         (size64_cost): Likewise.
19256         (rs64a_cost): Likewise.
19257         (mpccore_cost): Likewise.
19258         (ppc403_cost): Likewise.
19259         (ppc405_cost): Likewise.
19260         (ppc440_cost): Likewise.
19261         (ppc476_cost): Likewise.
19262         (ppc601_cost): Likewise.
19263         (ppc603_cost): Likewise.
19264         (ppc604_cost): Likewise.
19265         (ppc604e_cost): Likewise.
19266         (ppc620_cost): Likewise.
19267         (ppc630_cost): Likewise.
19268         (ppccell_cost): Likewise.
19269         (ppc750_cost): Likewise.
19270         (ppc7450_cost): Likewise.
19271         (ppc8540_cost): Likewise.
19272         (ppce300c2c3_cost): Likewise.
19273         (ppce500mc_cost): Likewise.
19274         (ppce500mc64_cost): Likewise.
19275         (ppce5500_cost): Likewise.
19276         (ppce6500_cost): Likewise.
19277         (titan_cost): Likewise.
19278         (power4_cost): Likewise.
19279         (power6_cost): Likewise.
19280         (power7_cost): Likewise.
19281         (power8_cost): Likewise.
19282         (ppca2_cost): Likewise.
19283         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
19285         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
19286         instead of XXLOR to copy SFmode to clear out dirty bits created
19287         when SFmode denormals are generated.
19288         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
19289         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
19291 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
19293         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
19294         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
19295         * config/aarch64/aarch64-tune.md: Regenerate.
19297 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
19299         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
19300         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
19301         * config/arm/arm-cores.def (exynos-m1): New core.
19302         * config/arm/arm-tune.md: Regenerate.
19303         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
19304         * config/arm/bpabi.h: Likewise.
19306 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
19308         * ipa-cp (set_single_call_flag): Remove too
19309         restrictive assert.
19311 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
19313         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
19314         GOMP_offload_unregister from the destructor.
19316 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
19318         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
19319         flags for instrumentation thunk.
19320         (chkp_produce_thunks): Likewise.
19322 2015-04-05  Martin Liska  <mliska@suse.cz>
19324         PR ipa/65665
19325         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
19326         has computed data structure.
19327         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19329 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
19331         * invoke.texi (inline-unit-growth): Increase growth to 20%
19332         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
19334 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19336         PR target/65647
19337         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
19338         value checking.
19339         (lra_rematerialization_iter): New.
19340         * lra.c (lra): Initialize lra_rematerialization_iter.
19341         Stop updating lra_constraint_new_regno_start after switching of
19342         inheritance and rematerialization.
19343         * lra-remat.c (lra_rematerialization_iter): New.
19344         (lra_remat): Add printing pass iteration.  Do rematerialization
19345         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
19347 2015-04-04  Richard Biener  <rguenther@suse.de>
19349         PR tree-optimization/64909
19350         PR tree-optimization/65660
19351         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
19352         to take a cost vector for scalar iteration cost.
19353         (vect_get_single_scalar_iteration_cost): Likewise.
19354         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
19355         Compute the scalar iteration cost into a cost vector.
19356         (vect_get_known_peeling_cost): Use the scalar cost vector to
19357         account for the cost of the peeled iterations.
19358         (vect_estimate_min_profitable_iters): Likewise.
19359         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19360         Likewise.
19362 2015-04-04  Alan Modra  <amodra@gmail.com>
19364         PR target/65576
19365         PR target/65240
19366         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
19367         0.0 constant unless TARGET_VSX.
19368         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
19369         alternative.
19371 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19373         PR ipa/65654
19374         * ipa-inline-transform.c (inline_call): Skip sanity check to work
19375         around the ICE
19377 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19379         PR ipa/65655
19380         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
19381         speculative indirect edges to avoid ordering issue.
19383 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19385         PR ipa/65076
19386         * ipa-inline.c (edge_badness): Add combined size to the denominator.
19388 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
19390         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
19391         TYPE_ARTIFICIAL on the .omp_data* types.
19393 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19395         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
19396         instrumentation thunks.
19398 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19400         * config/i386/i386.c (ix86_expand_call): Avoid nested
19401         PARALLEL in returned call value.
19403 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19405         * lto-cgraph.c (input_cgraph_1): Always link instrumented
19406         assembler name with original one.
19408 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19410         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
19412 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19414         Revert parts of r216820.
19415         * config/i386/i386.md (movqi_internal): Correct type calculation
19416         for alternatives 3 and 5.
19418 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
19420         PR preprocessor/61977
19421         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
19422         predefine __vector/__bool/__pixel macros nor context sensitive
19423         macros for CLK_ASM.
19424         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
19426 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
19428         * config/pa/pa.c (pa_output_move_double): Directly handle register
19429         indexed memory operand.  Simplify handling of scaled register indexed
19430         memory operands.
19432 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19434         PR driver/65444
19435         * config/i386/linux-common.h (MPX_SPEC): New.
19436         (CHKP_SPEC): Add MPX_SPEC.
19437         * doc/invoke.texi (-fcheck-pointer-boudns): Document
19438         possible issues with '-z bndplt' support in linker.
19440 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19442         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
19443         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
19444         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
19445         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
19446         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
19448 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
19450         * config/i386/sync.md (UNSPEC_MOVA): Remove.
19451         (atomic_load<mode>): Change operand 0 predicate to
19452         nonimmediate_operand and fix up the destination when needed.
19453         Use UNSPEC_LDA.
19454         (atomic_loaddi_fpu): Use UNSPEC_LDA.
19455         (atomic_store<mode>): Change operand 1 predicate to
19456         nonimmendate_operand and move the source to register when needed.
19457         Use UNSPEC_STA.
19458         (atomic_store<mode>_1): Use UNSPEC_STA.
19459         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
19460         Fix moves from memory operand.  Use UNSPEC_STA.
19462 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19464         * expmed.c (strict_volatile_bitfield_p): Check that the access will
19465         not cross a MODESIZE boundary.
19466         (store_bit_field, extract_bit_field): Added assertions in the
19467         strict volatile bitfields code path.
19469 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19471         PR target/65624
19472         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19473         Increase args array size by one to avoid buffer overflow.
19475 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19477         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19478         split_part.
19479         * ipa-inline.c (edge_badness): Add wrapper penalty.
19480         (sum_callers): Move up.
19481         (inline_small_functions): Set single_caller.
19482         * ipa-inline.h (inline_summary): Add single_caller.
19483         * ipa-split.c (split_function): Set split_part.
19484         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
19485         * cgraph.h (cgraph_node): Add split_part.
19487 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
19489         PR target/58945
19490         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
19491         Do not split operands 0 and operands 2 to halfmode.
19492         (atomic_compare_and_swap<mode>): Update for
19493         atomic_compare_and_swap<dwi>_doubleword changes.
19495 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19497         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
19498         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
19499         no caching is done.
19501 2015-03-31  Martin Liska  <mliska@suse.cz>
19503         PR ipa/65557
19504         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
19505         has already filled up function summary.
19506         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19508 2015-03-31  Richard Biener  <rguenther@suse.de>
19510         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
19511         of types.
19513 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19515         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
19516         nested functions.
19517         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
19518         (s390_asm_output_function_label): Adapt to new signature of
19519         s390_function_num_hotpatch_hw
19520         Optimise the code generating assembler output.
19521         Add comments to assembler file.
19523 2015-03-31  Richard Biener  <rguenther@suse.de>
19525         PR middle-end/65626
19526         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
19527         of the noreturn call so it is last and cleanup_control_flow_bb
19528         can do the CFG part.
19530 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
19532         PR target/65531
19533         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
19534         same_comdat_group for external symbols.
19535         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
19536         infinite same_comdat_group traversal loop.
19538 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
19540         PR plugins/61176
19541         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
19542         automatically to $headers.
19544 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
19546         PR ipa/65610
19547         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
19548         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
19549         function.
19550         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
19551         Use it.
19552         * ipa-prop.c (param_type_may_change_p): Likewise.
19553         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
19554         (remove_unused_scope_block_p): Add in_ctor_dtor_block
19555         argument.  Before inlining, preserve
19556         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
19557         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
19558         recursive calls.
19559         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
19561 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19563         PR ipa/65076
19564         * ipa-inline.c (edge_badness): Base denominator on callee's
19565         grwoth squared.
19567 2015-03-27  Martin Jambor  <mjambor@suse.cz>
19569         PR ipa/65478
19570         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
19571         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
19572         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
19573         node_calling_single_call.
19574         * ipa-cp.c (count_callers): New function.
19575         (set_single_call_flag): Likewise.
19576         (initialize_node_lattices): Count callers and set single_flag_call if
19577         necessary.
19578         (incorporate_penalties): New function.
19579         (good_cloning_opportunity_p): Use it, dump new flags.
19580         (propagate_constants_topo): Set node_within_scc flag if appropriate.
19581         * doc/invoke.texi (ipa-cp-recursion-penalty,
19582         ipa-cp-single-call-pentalty): Document.
19584 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19586         PR ipa/65588
19587         * symtab.c (symtab_node::get_partitioning_class): Register vars
19588         are duplicated.
19589         * varpool.c (symbol_table::output_variables) Do not assemble unefined
19590         decls for non-symbols.
19592 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19594         PR target/65248
19595         * output.h (default_binds_local_p_2): New.
19596         * varasm.c (default_binds_local_p_2): Renamed to ...
19597         (default_binds_local_p_3): This.  Don't return true on protected
19598         data symbol if protected data may be external.
19599         (default_binds_local_p): Use default_binds_local_p_3.
19600         (default_binds_local_p_1): Likewise.
19601         (default_binds_local_p_2): New.
19602         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
19603         default_binds_local_p_2 if TARGET_MACHO is undefined.
19605 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
19607         PR target/65593
19608         * config/i386/i386.c (legitimize_pic_address): If base
19609         is SYMBOL_REF or LABEL_REF using %rip addressing, force
19610         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
19612 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19614         PR target/65531
19615         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
19616         comdat groups.
19618 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19620         PR ipa/65600
19621         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
19622         of optimized out indirect call.
19623         (redirect_to_unreachable): Always build symbol table node for
19624         BUILT_IN_UNREACHABLE
19626 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
19628         PR target/65407
19629         * ira-costs.c (record_reg_classes): Process all constraint string
19630         containing 0-9.
19632 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
19634         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
19635         memory_operand.
19637         PR target/65052
19638         * config/c6x/constraints.md (S3): New constraint.
19639         * config/c6x/c6x.md (real_jump): Use it.
19641 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19643         PR middle-end/65595
19644         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
19645         do redirection if the call is not optimized out.
19647 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19649         PR target/65495
19650         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
19651         (fchkp-check-incomplete-type): Add LTO.
19652         (fchkp-zero-input-bounds-for-main): Likewise.
19653         (fchkp-first-field-has-own-bounds): Likewise.
19654         (fchkp-narrow-bounds): Likewise.
19655         (fchkp-narrow-to-innermost-array): Likewise.
19656         (fchkp-use-static-bounds): Likewise.
19657         (fchkp-use-static-const-bounds): Likewise.
19658         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19660 2015-03-27  Marek Polacek  <polacek@redhat.com>
19662         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
19664 2015-03-27  Marek Polacek  <polacek@redhat.com>
19666         PR sanitizer/65583
19667         * ubsan.c (ubsan_create_edge): New function.
19668         (instrument_bool_enum_load): Call it.
19669         (instrument_nonnull_arg): Likewise.
19670         (instrument_nonnull_return): Likewise.
19671         (instrument_object_size): Likewise.
19673 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19675         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
19676         auto_vec.
19678 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19680         PR lto/65536
19681         * lto-streamer.h (class lto_location_cache): New.
19682         (struct data_in): Add location_cache.
19683         (lto_input_location): Update prototype.
19684         (stream_input_location_now): New.
19685         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
19686         pointer to location.
19687         (stream_input_location): Update.
19688         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
19689         (warn_odr): Apply location cache before warning.
19690         (lto_input_location): Update prototype.
19691         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
19692         Use stream_input_location_now.
19693         * lto-streamer-in.c (lto_location_cache::current_cache): New static
19694         variable.
19695         (lto_location_cache::cmp_loc): New function.
19696         (lto_location_cache::apply_location_cache): New function.
19697         (lto_location_cache::accept_location_cache): New function.
19698         (lto_location_cache::revert_location_cache): New function.
19699         (lto_location_cache::input_location): New function.
19700         (lto_input_location): Do location caching.
19701         (stream_input_location_now): New function.
19702         (input_eh_region, input_struct_function_base): Use
19703         stream_input_location_now.
19704         (lto_data_in_create): use new.
19705         (lto_data_in_delete): Use delete.
19706         * tree-streamer-in.c (unpack_ts_block_value_fields,
19707         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
19708         lto_input_ts_exp_tree_pointers): Update for cached location api.
19710 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19712         PR ipa/65076
19713         * passes.def: Add pass_nothrow.
19714         * ipa-pure-const.c: (pass_data_nothrow): New.
19715         (pass_nothrow): New.
19716         (pass_nothrow::execute): New.
19717         (make_pass_nothrow): New.
19718         * tree-pass.h (make_pass_nothrow): Declare.
19720 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19722         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
19723         edge to change by speculation resolution or redirection.
19724         (edge_set_predicate): Likewise.
19725         (inline_summary_t::duplicate): Likewise.
19726         (remap_edge_summaries): Likewise.
19728 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19730         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
19731         New macros.
19732         (can_inline_edge_p): Relax option matching for always inline functions.
19734 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
19736         PR target/65561
19737         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
19738         Check operand 4 and operand 0 for equality.
19739         (avx512f_vextract<shuffletype>32x4_1_maskm):
19740         Check operand 6 and operand 0 for equality.
19741         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
19742         for equality.
19743         (vec_extract_hi_<mode>_maskm): Ditto.
19745 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19747         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
19748         dead calls back to live.
19749         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
19750         cross check to ...
19751         (cgraph_node::verify_node): ... here; verify only callee edges,
19752         not caller.
19753         * cif-code.def (CILK_SPAWN): New code.
19755 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19757         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
19758         (edge_set_predicate): Use it to mark unreachable edges.
19759         (inline_summary_t::duplicate): Remove unnecesary code.
19760         (remap_edge_summaries): Likewise.
19761         (dump_inline_summary): Report contains_cilk_spawn.
19762         (compute_inline_parameters): Compute contains_cilk_spawn.
19763         (inline_read_section, inline_write_summary): Stream
19764         contains_cilk_spawn.
19765         * ipa-inline.c (can_inline_edge_p): Do not touch
19766         DECL_STRUCT_FUNCTION that may not be available;
19767         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
19768         remove check for callee_fun->can_throw_non_call_exceptions and
19769         replace it by optimization attribute check; check for flag_exceptions.
19770         * ipa-inline-transform.c (inline_call): Maintain
19771         DECL_FUNCTION_PERSONALITY
19772         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
19774 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19776         PR tree-optimization/65551
19777         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
19778         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
19780 2015-03-26  Richard Biener  <rguenther@suse.de>
19782         PR middle-end/65555
19783         * tree-cfg.c (verify_gimple_call): Do not require a call to
19784         have no LHS if it wasn't recognized as control altering yet.
19786 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19788         PR tree-optimization/64715
19789         * passes.def: Add another instance of pass_object_sizes before ccp1.
19790         * tree-object-size.c (pass_object_sizes::execute): In
19791         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
19792         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
19793         __bos result and the computed constant.  Remove redundant
19794         checks, obsoleted by gimple_call_builtin_p test.
19796         * var-tracking.c (variable_tracking_main_1): Don't track
19797         variables for targetm.no_register_allocation targets.
19799 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
19801         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
19802         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
19804 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19806         PR target/65569
19807         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
19808         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
19809         0.0 is correctly setup.
19810         (extenddftf2_internal): Likewise.
19812 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
19814         PR tree-optimization/65177
19815         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
19816         (bb_in_bbs): New.
19817         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
19818         edges not adjacent on the path to the original code.
19820 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
19822         PR bootstrap/65537
19823         * doc/install.texi (Building a native compiler): Document new
19824         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
19825         configuration assumes that the host supports the linker plugin.
19827 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
19829         PR target/65508
19830         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
19831         chain for generated call.
19833 2015-03-25  Richard Biener  <rguenther@suse.de>
19835         * passes.c (pass_manager::execute_early_local_passes): Guard
19836         execution of pass_chkp_instrumentation_passes with
19837         flag_check_pointer_bounds.
19838         (pass_chkp_instrumentation_passes::gate): Likewise.
19840 2015-03-25  Martin Liska  <mliska@suse.cz>
19842         PR tree-optimization/65538
19843         * symbol-summary.h (function_summary::~function_summary):
19844         Relese memory for allocated summaries.
19845         (function_summary::release): New function.
19847 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
19849         PR lto/65515
19850         * lto-streamer-out.c (DFS::worklist): New struct.
19851         (DFS::worklist_vec): New data member.
19852         (DFS::next_dfs_num): Remove.
19853         (DFS::DFS): Rewritten using worklist instead of recursion,
19854         using most of code from DFS::DFS_write_tree.
19855         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
19856         pass it to DFS_write_tree calls.
19857         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
19858         quick initial checks push it into worklist_vec and return.
19860 2015-03-25  Richard Biener  <rguenther@suse.de>
19862         PR middle-end/65519
19863         * genmatch.c (expr::gen_transform): Re-write to avoid
19864         using gimple_build.
19866 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19868         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
19870 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19872         * config/arm/arm.opt (print_tune_info): New option.
19873         * config/arm/arm.c (arm_print_tune_info): New function.
19874         (arm_file_start): Call arm_print_tune_info.
19875         * config/arm/arm-protos.h (struct tune_params): Add comment.
19876         * doc/invoke.texi (@item -mprint-tune-info): New item.
19877         (-mtune): mention it in ARM Option Summary.
19879 2015-03-25  DJ Delorie  <dj@redhat.com>
19881         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
19882         correct clause.
19884 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
19885             Martin Liska  <mliska@suse.cz>
19887         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
19888         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
19889         (sem_item::add_type): New function.
19890         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
19891         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
19892         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
19893         (sem_function::equals_wpa): Fix typo.
19894         * ipa-icf.h (sem_item::add_type): New function.
19895         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
19896         order.
19898 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
19900         PR tree-optimization/65533
19901         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
19902         with swapped operands, call vect_free_slp_tree on
19903         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
19904         vector.
19906 2015-03-24  Richard Biener  <rguenther@suse.de>
19908         PR middle-end/65517
19909         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
19910         for fixup if necessary.
19912 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
19914         * doc/extend.texi (Function Attributes): Add @cindex entries
19915         for all attributes and regularize their format.  Delete text
19916         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
19917         information about "eightbit_data", "tiny_data", and "model"
19918         variable attributes to the Variable Attributes section.  Fix
19919         some obvious typos and copy-editing issues.
19920         (Variable Attributes, Type Attributes): Likewise add/fix
19921         @cindex entries for all attributes.
19923 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
19925         PR target/65523
19926         * tree-chkp.c (chkp_build_returned_bound): Ignore
19927         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
19929 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
19931         PR target/65505
19932         * config/sh/predicates.md (simple_mem_operand,
19933         displacement_mem_operand): Add test for reg.
19934         (short_displacement_mem_operand): Test for displacement_mem_operand
19935         before invoking sh_disp_addr_displacement.
19936         * config/sh/constraints.md (Sdd, Sra): Simplify.
19937         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
19938         Remove redundant displacement_mem_operand tests.
19940 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
19942         PR target/65296
19943         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
19944         the same -mmcu=MCU more than once.
19946 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
19948         PR bootstrap/65522
19949         * ipa-devirt.c: Remove duplicate demangle.h include.
19951         PR target/65504
19952         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
19953         on the pseudo.
19954         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
19955         REG_POINTER on *destptr after adjusting it for prologue size.
19957         PR ipa/65521
19958         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
19959         ultimate_alias_target ()->order ints instead of
19960         ultimate_alias_target () pointers.
19962 2015-03-23  Richard Biener  <rguenther@suse.de>
19964         PR tree-optimization/65518
19965         * tree-vect-stmts.c (vectorizable_load): Reject single-element
19966         interleaving cases we generate absymal code for.
19968 2015-03-23  Richard Biener  <rguenther@suse.de>
19970         PR tree-optimization/65494
19971         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
19972         matches here.
19973         (vect_analyze_slp_instance): But do that here, always and once.
19975 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19977         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
19978         adding T or multiplying by T+1 and subracting T.
19980 2015-03-22  Jeff Law  <law@redhat.com>
19982         PR rtl-optimization/64317
19983         * Makefile.in (OBJS): Add gcse-common.c
19984         * gcse.c: Include gcse-common.h
19985         (struct modify_pair_s): Move structure definition to gcse-common.h
19986         (compute_transp): Move function to gcse-common.c.
19987         (canon_list_insert): Similarly.
19988         (record_last_mem_set_info): Break out some code and put it into
19989         gcse-common.c.  Call into the new common code.
19990         (compute_local_properties): Pass additional arguments to compute_transp.
19991         * postreload-gcse.c: Include gcse-common.h and df.h
19992         (modify_mem_list_set, blocks_with_calls): New variables.
19993         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
19994         (get_bb_avail_insn): Pass in the expression index too.
19995         (alloc_mem): Allocate memory for the new bitmaps and lists.
19996         (free_mem): Free memory for the new bitmaps and lists.
19997         (insert_expr_in_table): Record a bitmap index for each entry we
19998         add to the table.
19999         (record_last_mem_set_info): Call into common code in gcse-common.c.
20000         (get_bb_avail_insn): If no available insn was found in the requested
20001         BB.  If BB has a single predecessor, see if the expression is
20002         transparent in BB and available in that single predecessor.
20003         (compute_expr_transp): New wrapper for compute_transp.
20004         (eliminate_partially_redundant_load): Pass expression's bitmap_index
20005         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
20006         (gcse_after_reload_main): If there are elements in the hash table,
20007         then compute transparency for all the elements in the hash table.
20008         * gcse-common.h: New file.
20009         * gcse-common.c: New file.
20011 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
20013         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
20014         as an adjective.
20015         (System Headers): Likewise.
20016         (Ifdef): Likewise.
20017         (Traditional macros): Likewise.
20018         (Invocation): Likewise.
20019         (Option Index): Likewise.
20020         * doc/cppopts.texi (-M): Likewise.
20021         (-finput-charset): Likewise.
20022         (--help): Likewise.
20023         * doc.invoke.texi (AVR Options): Likewise.
20024         (V850 Options): Likewise.
20026 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
20028         PR ipa/65475
20029         * ipa-devirt.c: Include demangle.h
20030         (odr_type_d): Add field rtti_broken.
20031         (odr_subtypes_equivalent_p): Do not require name to match.
20032         (compare_virtual_tables): Fix typo; if type already has ODR violation,
20033         bypass the tests; be ready for function referneces in vtables that are
20034         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
20035         (warn_odr): Give up for nameless types.
20036         (warn_types_mismatch): Report mismatch in mangled names;
20037         report mismatch in anonymous namespaces; look into component types to
20038         give useful error; report when mismatch is dragged in from other ODR
20039         type.
20040         (odr_types_equivalent_p): Match types for being polymorphic; avoid
20041         duplicated diagnostics.
20042         (add_type_duplicate): Reorder checks so more informative ones come
20043         first; fix typo; do not output "the extra base is defined here" when
20044         we did not warn.
20045         (BINFO_N_BASE_BINFOS): Relax sanity check.
20047 2015-03-22  Martin Liska  <mliska@suse.cz>
20048             Jakub Jelinek  <jakub@redhat.com>
20050         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
20051         masks that can potentially include a builtin.
20052         (ix86_add_new_builtins): Introduce fast filter for isa values
20053         that cannot trigger builtin inclusion.
20055 2015-03-22  Martin Liska  <mliska@suse.cz>
20057         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
20058         (sem_item::update_hash_by_local_refs): Likewise.
20059         (sem_variable::get_hash): Empty line is fixed.
20060         (sem_item_optimizer::execute): Include adding of hash references.
20061         (sem_item_optimizer::update_hash_by_addr_refs): New function.
20062         (sem_item_optimizer::build_hash_based_classes): Use local hash.
20063         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
20064         (sem_item::update_hash_by_local_refs): Likewise.
20066 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20068         PR ipa/65502
20069         * ipa-comdats.c (enqueue_references): Walk through thunks.
20070         (ipa_comdats): Likewise.
20071         (set_comdat_group_1): New function.
20073 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20075         PR ipa/65475
20076         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
20077         non-polymorphic
20079 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20080             Gerald Pfeifer  <gerald@pfeifer.com>
20082         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
20084 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
20085             Sandra Loosemore  <sandra@codesourcery.com>
20087         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
20088         function parameter declaration.
20089         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
20090         Update arguments to nios2_adjust_call_address().
20091         (sibcall_internal): Rename from *sibcall.
20092         (sibcall_value_internal): Rename from *sibcall_value.
20093         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
20094         (nios2_large_got_address): Add target temp reg parameter.
20095         (nios2_got_address): Adjust call to nios2_large_got_address, add
20096         force_reg around it.
20097         (nios2_load_pic_address): Add target temp reg parameter, replace call
20098         to nios2_got_address with corresponding code.
20099         (nios2_legitimize_constant_address): Update call to
20100         nios2_load_pic_address.
20101         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
20102         to use temp reg for PIC loading purposes.
20103         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
20104         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20105         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
20107 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20109         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
20110         usage of "the @option{...}".
20111         (-Wopenmp-simd): Likewise.
20112         (-fsanitize-recover): Likewise.
20113         (-fsanitize-undefined-trap-on-error): Likewise.
20114         (-flto): Likewise.
20115         (tracer-dynamic-coverage-feedback): Likewise.
20116         (reorder-block-duplicate-feedback): Likewise.
20117         (loop-unroll-jam-size): Likewise.
20118         (-B): Likewise.
20119         (-I-): Likewise.
20120         (-mabs=legacy): Likewise.
20121         (-mupper-regs-df): Likewise.
20122         (-mupper-regs-sf): Likewise.
20123         (-mpointers-to-nested-functions): Likewise.
20125 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20127         * doc/extend.texi (Cilk Plus Builtins): Add markup.
20129 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20131         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
20132         additional index entries and cross-references.
20133         (-fchkp-check-incomplete-type): Likewise.
20134         (-fchkp-first-field-has-own-bounds): Likewise.
20135         (-fchkp-narrow-to-innermost-array): Likewise.
20136         (-fchkp-use-fast-string-functions): Likewise.
20137         (-fchkp-use-nochk-string-functions): Likewise.
20138         (-fchkp-use-static-const-bounds): Likewise.
20139         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20140         (-fchkp-instrument-marked-only): Likewise.
20141         (-fchkp-use-wrappers): Likewise.
20142         (-static-libmpx): Likewise.
20143         (-static-libmpxwrappers): Likewise.
20144         * doc/extend.texi (bnd_legacy): Likewise.
20145         (bnd_instrument): Likewise.
20146         (bnd_variable_size): Likewise.
20147         (Pointer Bounds Checker builtins): Likewise.
20149 2015-03-21  Tom de Vries  <tom@codesourcery.com>
20151         PR tree-optimization/65458
20152         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
20153         * cgraph.h (cgraph_node): Add parallelized_function field.
20154         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
20155         (input_overwrite_node): Read parallelized_function field.
20156         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
20157         parallelized_function on cgraph_node for child_fn.
20158         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
20159         Remove include of gt-tree-parloops.h.
20160         (parallelized_functions): Remove static variable.
20161         (parallelized_function_p): Rewrite using parallelized_function field of
20162         cgraph_node.
20163         (create_loop_fn): Remove adding to parallelized_functions.
20164         * Makefile.in (GTFILES): Remove tree-parloops.c
20166 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
20168         PR rtl-optimization/64366
20169         * lra.c (lra_update_insn_regno_info): Consider regs in
20170         CALL_INSN_FUNCTION_USAGE memory.
20172 2015-03-20  Richard Biener  <rguenther@suse.de>
20174         PR middle-end/64715
20175         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
20176         for type comparison and gcc_checking_assert.
20177         (chrec_fold_plus_poly_poly): Likewise.
20178         (chrec_fold_multiply_poly_poly): Likewise.
20179         (chrec_convert_1): Likewise.
20180         * gimplify.c (gimplify_expr): Remove premature folding of
20181         &X + CST to &MEM[&X, CST].
20183 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20185         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
20186         already is final.
20187         (ipa_inline): Recompute inline_failed codes.
20188         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20189         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
20190         CIF_FINAL_ERROR.
20192 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
20194         PR rtl-optimization/60851
20195         * recog.c (constrain_operands): Accept a pseudo register before reload
20196         for LRA enabled targets.
20198 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20200         PR target/65240
20201         * config/rs6000/predicates.md (easy_fp_constant): Remove special
20202         -ffast-math handling that kept non-0 constants live in the RTL
20203         until reload.  Remove logic testing the number of instructions it
20204         took to create a constant in a GPR that was never used, due to a
20205         test for soft-float earlier.
20206         (memory_fp_constant): Delete, no longer used.
20208         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
20209         alternatives for loading non-0 constants into GPRs for hard
20210         floating point that is no longer needed due to changes in
20211         easy_fp_constant.  Add support for loading 0.0 into GPRs.
20212         (mov<mode>_hardfloat32): Likewise.
20213         (mov<mode>_hardfloat64): Likewise.
20214         (mov<mode>_64bit_dm): Likewise.
20215         (movtd_64bit_nodm): Likewise.
20216         (pre-reload move FP constant define_split): Delete define_split,
20217         since it is no longer used.
20218         (extenddftf2_internal): Remove GHF constraints that are not valid
20219         for extenddftf2.
20221 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
20223         PR rtl-optimization/63491
20224         * lra-constraints.c (check_and_process_move): Use src instead of
20225         sreg.  Remove some dead code.
20227 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
20229         PR ipa/65380
20230         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
20231         (sem_variable::merge): Likewise.
20233 2015-03-19  Martin Liska  <mliska@suse.cz>
20235         PR ipa/65465
20236         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
20237         all fields of cgraph_thunk_info.
20239 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20241         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
20242         clone instrumented thunks.
20244 2015-03-19  Richard Biener  <rguenther@suse.de>
20246         Revert
20247         2015-03-10  Richard Biener  <rguenther@suse.de>
20249         PR middle-end/63155
20250         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20251         * tree-ssa-coalesce.c: Include timevar.h.
20252         (attempt_coalesce): Handle graph being NULL.
20253         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20254         Split out abnormal coalescing to ...
20255         (perform_abnormal_coalescing): ... this function.
20256         (coalesce_ssa_name): Perform abnormal coalescing without computing
20257         live/conflict.
20258         (verify_ssa_coalescing_worker): New function.
20259         (verify_ssa_coalescing): Likewise.
20261 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20262             Jakub Jelinek  <jakub@redhat.com>
20264         PR sanitizer/65400
20265         * tsan.c (instrument_gimple): Clear tail call flag on
20266         calls.
20268 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
20270         PR sanitizer/65400
20271         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
20272         call in the return bb.
20273         (find_split_points): Add RETURN_BB argument, don't call
20274         find_return_bb.
20275         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
20276         if true append TSAN_FUNC_EXIT internal call after the call to
20277         the split off function.
20278         (execute_split_functions): Call find_return_bb here.
20279         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
20280         Adjust find_split_points and split_function calls.
20282 2015-03-18  DJ Delorie  <dj@redhat.com>
20284         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
20285         (iorqi3_virt): Likewise.
20287 2015-03-18  Tom de Vries  <tom@codesourcery.com>
20289         * tree-parloops.c (parallelize_loops): Make static.
20290         * tree-parloops.h (parallelize_loops): Remove extern declaration.
20292 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
20294         PR middle-end/64491
20295         Revert:
20296         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
20298         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
20299         condition would be removed due to undefined behaviour.
20301 2015-03-18  Martin Liska  <mliska@suse.cz>
20303         PR ipa/65432
20304         * cgraph.c (cgraph_node::get_create): Remove unnecessary
20305         xstrdup_for_dump wrapper.
20306         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
20307         sem_item::name.
20308         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
20309         with xstrdup_for_dump.
20310         (sem_variable::equals): Likewise.
20311         (sem_item_optimizer::read_section): Use symtab_node::name instead of
20312         sem_item::name.
20313         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
20314         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
20315         symtab_node::asm_name with xstrdup_for_dump.
20316         (congruence_class::dump): Use symtab_node::name instead of
20317         sem_item::name.
20318         * ipa-icf.h (symtab_node::name): Remove.
20319         (symtab_node::asm_name): Likewise.
20321 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20323         PR tree-optimization/65450
20324         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
20325         function.
20326         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
20327         it instead of duplicate_ssa_name_ptr_info.
20329         PR target/65222
20330         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
20332 2015-03-18  Richard Biener  <rguenther@suse.de>
20334         * tree-data-ref.h (struct access_matrix): Remove.
20335         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
20336         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
20337         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
20338         (am_vector_index_for_loop): Likewise.
20339         (struct data_reference): Remove access_matrix member.
20340         (DR_ACCESS_MATRIX): Remove.
20341         (lambda_vector_new): Add comment.
20342         (lambda_matrix_new): Use XOBNEWVEC.
20344 2015-03-18  Richard Biener  <rguenther@suse.de>
20346         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
20347         (pass_ch::execute): Cleanup the CFG only if we did sth.
20348         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
20350 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20352         * expmed.c (synth_mult): Use std::swap instead of manually
20353         swapping algorithms.
20355 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20357         PR target/65078
20358         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
20360 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
20362         PR target/65296
20363         * config/avr/avr.opt (-nodevicelib): New option.
20364         * doc/invoke.texi (AVR Options): Document it.
20365         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
20366         libgcc.a, libc.a, libm.a.
20367         * config/avr/specs.h: Same.
20368         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
20369         which don't (directly) depend on the device.  Print more help.
20370         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
20371         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
20372         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
20373         case of an error.
20374         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
20375         for specs file name.
20376         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
20377         * config/avr/avr-mcus.def: Adjust initializers and comments.
20379 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
20381         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
20382         DECL_ONE_ONLY to check if decl is one only.
20383         * ipa-split.c (consider_split): Limit splitt of one only functions.
20385 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20387         PR tree-optimization/65427
20388         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
20389         functions.
20390         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
20392 2015-03-16  Marek Polacek  <polacek@redhat.com>
20394         * cgraph.h (add_new_static_var): Remove declaration.
20395         * varpool.c (add_new_static_var): Remove function.
20397 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20399         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
20400         instead of vec<tree> * with vec_alloc and release for args.
20401         Adjust all users.
20403         PR middle-end/65431
20404         * omp-low.c (delete_omp_context): Only splay_tree_delete
20405         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
20406         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
20408 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20410         PR sanitizer/64820
20411         * cfgexpand.c (align_base): New function.
20412         (alloc_stack_frame_space): Call it.
20413         (expand_stack_vars): Align prev_frame to be sure
20414         data->asan_vec elements aligned properly.
20416 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
20418         PR middle-end/65409
20419         * expr.c (store_field): Do not do a direct block copy if the source is
20420         a PARALLEL with BLKmode.
20422 2015-03-16  Tom de Vries  <tom@codesourcery.com>
20424         PR middle-end/65414
20425         Revert:
20426         2015-03-12  Tom de Vries  <tom@codesourcery.com>
20428         PR rtl-optimization/64895
20429         * lra-lives.c (check_pseudos_live_through_calls): Use
20430         actual_call_used_reg_set instead of call_used_reg_set, if available.
20432 2015-03-16  Alan Modra  <amodra@gmail.com>
20434         PR target/63150
20435         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
20436         Modify Z->r bswapdi splitter to use dest in place of scratch.
20437         In r->Z and Z->r bswapdi splitter rename word_high, word_low
20438         to word1, word2 and rearrange logic to suit.
20439         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
20440         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
20441         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
20442         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
20443         early clobber.
20445 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
20447         PR tree-optimization/65369
20448         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
20449         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
20450         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
20452         PR tree-optimization/65418
20453         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
20454         are casts in the first PLUS_EXPR operand, ensure tbias and
20455         *totallowp are in the inner type.
20457         PR rtl-optimization/65401
20458         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
20459         argument.  If true, adjust_address_nv of x with big-endian
20460         correction for the mode widening to GET_MODE (y).
20461         (make_field_assignment): Don't do MEM mode widening here.
20462         Use MEM_P instead of GET_CODE == MEM.
20464 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
20466         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
20467         the external decls.
20469 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20471         PR target/64600
20472         * config/arm/arm.c (arm_gen_constant, AND case): Use
20473         ARM_SIGN_EXTEND when constructing AND mask.
20475 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20477         * graph.c (print_graph_cfg): Make function names visible and append
20478         parenthesis to it.  Also make groups of basic blocks belonging to the
20479         same function visible.
20481 2015-03-12  Richard Biener  <rguenther@suse.de>
20483         PR middle-end/44563
20484         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
20485         to avoid quadratic behavior with inline expansion splitting blocks.
20486         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
20487         with the successor if the predecessor will be merged with it.
20488         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
20489         entry block with its successor.
20491 2015-03-13  Richard Biener  <rguenther@suse.de>
20493         PR middle-end/44563
20494         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
20495         (cleanup_tree_cfg_1): Do not call it.
20496         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
20497         (fixup_noreturn_call): Mark the stmt as control altering.
20498         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
20499         here.
20500         (pass_data_fixup_cfg): Produce a dump file.
20501         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
20502         (need_noreturn_fixup): New global.
20503         (pass_dominator::execute): Fixup queued noreturn calls.
20504         (optimize_stmt): Queue calls that became noreturn for fixup.
20505         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
20506         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
20507         (el_to_fixup): New global.
20508         (eliminate_dom_walker::before_dom_childre): Queue calls that
20509         became noreturn for fixup.
20510         (eliminate): Fixup queued noreturn calls.
20511         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
20512         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
20513         (substitute_and_fold_dom_walker::before_dom_children): Queue
20514         alls that became noreturn for fixup.
20515         (substitute_and_fold): Fixup queued noreturn calls.
20517 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
20519         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
20520         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
20521         are building; for methods check ODR type of class they belong to if
20522         they may lead to a polymorphic call.
20523         (sem_function::compare_polymorphic_p): Be bit smarter about testing
20524         when function may lead to a polymorphic call.
20525         (sem_function::compare_type_list): Remove.
20526         (sem_variable::equals): Update use of compatible_types_p.
20527         (sem_variable::parse_tree_refs): Remove.
20528         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
20529         cdtor.
20530         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
20531         matching here.
20532         (func_checker::compatible_polymorphic_types_p): Break out from ...
20533         (unc_checker::compatible_types_p): ... here.
20534         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
20535         Declare.
20536         (unc_checker::compatible_types_p): Update.
20537         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
20538         Remove.
20540 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20542         PR rtl-optimization/65235
20543         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
20544         When first element of vec_concat is const_int, calculate its size
20545         using second element.
20547 2015-03-12  Richard Biener  <rguenther@suse.de>
20549         PR middle-end/65270
20550         * fold-const.c (operand_equal_p): Fix ordering of resetting
20551         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
20553 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20555         * config/s390/s390.c (s390_reorg): Move code to output nops after label
20556         to s390_reorg ().
20557         (s390_asm_output_function_label): Likewise.
20558         * config/s390/s390.c (s390_asm_output_function_label):
20559         Fix function label alignment with -mhtopatch.
20560         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
20561         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
20562         ("nop_2_byte"): New define_insn.
20563         ("nop_4_byte"): Likewise.
20564         ("nop_6_byte"): Likewise.
20565         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
20566         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
20568 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20570         PR target/65103
20571         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
20572         register.
20574 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20576         PR target/65044
20577         * toplev.c (process_options): Restrict Pointer Bounds Checker
20578         usage with Address Sanitizer.
20580 2015-03-12  Richard Biener  <rguenther@suse.de>
20582         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
20583         to split on.
20584         * omp-low.c (expand_omp_taskreg): Split block before removing
20585         the stmt.
20586         (expand_omp_target): Likewise.
20587         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
20588         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
20589         stmt to split_block.
20591 2015-03-12  Tom de Vries  <tom@codesourcery.com>
20593         PR rtl-optimization/64895
20594         * lra-lives.c (check_pseudos_live_through_calls): Use
20595         actual_call_used_reg_set instead of call_used_reg_set, if available.
20597 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20599         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
20600         (cgraph_node::remove): Likewise.
20601         (cgraph_node::get_untransformed_body): Likewise.
20602         * varpool.c (varpool_node::remove): Likewise.
20603         (varpool_node::get_constructor): Add sanity check.
20605 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
20607         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
20608         old GCC versions.
20609         (-fabi-compat-version): Likewise.
20610         (-ffriend-injection): Likewise.
20611         (-Wdeclaration-after-statement): Likewise.
20612         (-fomit-frame-pointer): Likewise.
20613         (-ftree-coalesce-inlined-vars): Likewise.
20614         (-fvisibility=): Likewise.
20615         * doc/extend.texi (Typeof): Likewise.
20616         (Zero Length): Likewise.
20617         (Escaped Newlines): Likewise.
20618         (Compound Literals): Likewise.
20619         (Function Attributes): Likewise.
20620         (Label Attributes): Likewise.
20621         (Type Attributes): Likewise.
20622         (Function Names): Likewise.
20623         (Other Builtins): Likewise.
20624         (Function Specific Option Pragmas): Likewise.
20625         (C++ Interface): Likewise.
20627 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
20629         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
20631 2015-03-11  Marek Polacek  <polacek@redhat.com>
20633         PR tree-optimization/65388
20634         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
20636 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20638         PR target/65296
20639         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
20640         * configure: Regenerate.
20641         * config.in: Regenerate.
20642         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
20643         [-mn-flash]: Document it.
20644         [__AVR_ARCH__]: Document avrtiny.
20646         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
20647         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
20648         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
20650 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20652         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
20654 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20656         PR target/65242
20657         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
20658         allow reloads of PLUS in floating point/VSX registers.
20660 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
20662         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
20663         crypto_sha256_fast.
20664         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
20666 2015-03-11  Richard Biener  <rguenther@suse.de>
20668         PR tree-optimization/65310
20669         * tree-sra.c (build_ref_for_offset): Also preserve larger
20670         alignment.
20672 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
20674         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
20676 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20678         PR target/65368
20679         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
20680         new define_expand.
20681         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
20683 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20685         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
20686         (sem_function::equals_wpa): ... here.
20688 2015-03-10  Marek Polacek  <polacek@redhat.com>
20689             Jakub Jelinek  <jakub@redhat.com>
20691         PR sanitizer/65367
20692         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
20693         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
20694         separately.
20696 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20698         PR target/65286
20699         * config/rs6000/t-linux: For powerpc64* target set
20700         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
20702 2015-03-10  Richard Biener  <rguenther@suse.de>
20704         PR middle-end/44563
20705         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
20706         for redirect_all_calls.
20708 2015-03-10  Marek Polacek  <polacek@redhat.com>
20710         * gdbinit.in (pcfun): Define and document.
20712 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
20714         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
20715         of libgomp-plugin.h.
20716         (find_target_compiler): Support a case when the path to gcc is
20717         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
20718         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
20719         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
20720         libgomp-plugin.h.
20721         (main): Use GCC_INSTALL_NAME as target_driver_name.
20722         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
20723         define.
20724         (mkoffload.o): Remove obsolete include path and defines.
20725         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
20727 2015-03-10  Richard Biener  <rguenther@suse.de>
20729         PR middle-end/63155
20730         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20731         * tree-ssa-coalesce.c: Include timevar.h.
20732         (attempt_coalesce): Handle graph being NULL.
20733         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20734         Split out abnormal coalescing to ...
20735         (perform_abnormal_coalescing): ... this function.
20736         (coalesce_ssa_name): Perform abnormal coalescing without computing
20737         live/conflict.
20738         (verify_ssa_coalescing_worker): New function.
20739         (verify_ssa_coalescing): Likewise.
20741 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20743         PR target/65296
20744         * config.gcc (extra_options) [avr]: Remove.
20745         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
20746         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
20747         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
20749         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
20750         (-mmcu=): Add Var and MissingArgError properties.
20751         (-march=): Remove.
20752         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
20753         * config/avr/t-multilib: Regenerate.
20754         * config/avr/specs.h: New file.
20755         * config/avr/driver-avr.c: New file.
20756         * config/avr/genopt.sh: Remove file.
20757         * config/avr/avr-tables.opt: Remove file.
20758         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
20759         * config/avr/avr-c.c: Same.
20760         * avr-arch.h: Same.
20761         (avr_current_device): Remove proto.
20762         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
20763         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
20764         (EXTRA_SPEC_FUNCTIONS): Define.
20765         (avr_devicespecs_file): New specs function proto.
20766         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
20767         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
20768         (avr_current_device): Remove definition and usage.
20769         (avr_set_core_architecture): New static function.
20770         (avr_option_override): Use it.
20771         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
20772         (mcu_name): New static array.
20773         (comparator, avr_archs_str, avr_mcus_str): New static functions.
20774         (avr_inform_devices, avr_inform_core_architectures): New functions.
20775         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
20776         (avrlibc.h) [WITH_AVRLIBC]: Include.
20777         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
20778         (print_mcu): Rewrite from scratch.
20779         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
20780         Forward to avr-specific specs defined in device-specs file.
20781         * config/avr/t-avr (driver-avr.o): New rule.
20782         (avr-devices.o): Depend on avr-arch.h.
20783         (avr-mcus): No more depend on avr-tables.opt.
20784         (avr-tables.opt): Remove rule.
20785         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
20787 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20789         * c-family/c.opt (fchkp-use-wrappers): New.
20790         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
20791         (chkp_wrap_function): New.
20792         (chkp_build_instrumented_fndecl): Support wrapped
20793         functions.
20794         * doc/invoke.texi (-fcheck-pointer-bounds): New.
20795         (-fchkp-check-incomplete-type): New.
20796         (-fchkp-first-field-has-own-bounds): New.
20797         (-fchkp-narrow-bounds): New.
20798         (-fchkp-narrow-to-innermost-array): New.
20799         (-fchkp-optimize): New.
20800         (-fchkp-use-fast-string-functions): New.
20801         (-fchkp-use-nochk-string-functions): New.
20802         (-fchkp-use-static-bounds): New.
20803         (-fchkp-use-static-const-bounds): New.
20804         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
20805         (-fchkp-check-read): New.
20806         (-fchkp-check-write): New.
20807         (-fchkp-store-bounds): New.
20808         (-fchkp-instrument-calls): New.
20809         (-fchkp-instrument-marked-only): New.
20810         (-fchkp-use-wrappers): New.
20811         (-static-libmpx): New.
20812         (-static-libmpxwrappers): New.
20814 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20816         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
20817         (CHKP_SPEC): Add wrappers library.
20818         * c-family/c.opt (static-libmpxwrappers): New.
20820 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20822         * config/i386/linux-common.h (LIBMPX_LIBS): New.
20823         (LIBMPX_SPEC): New.
20824         (CHKP_SPEC): New.
20825         * gcc.c (CHKP_SPEC): New.
20826         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
20827         * c-family/c.opt (static-libmpx): New.
20829 2015-03-10  Richard Biener  <rguenther@suse.de>
20831         PR middle-end/44563
20832         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
20833         for compare_type.
20834         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
20835         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
20836         (cgraph_add_edge_to_call_site_hash): Likewise.
20837         (cgraph_node::get_edge): Likewise.
20838         (cgraph_edge::set_call_stmt): Likewise.
20839         (cgraph_edge::remove_caller): Likewise.
20841 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
20843         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
20844         (callee_saved_gpr_regs_size): ... this.
20845         (callee_saved_regs_first_regno): Rename to ...
20846         (callee_saved_first_gpr_regno): ... this.
20847         (callee_saved_regs_last_regno) Rename to ...
20848         (callee_saved_last_gpr_regno): ... this.
20849         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
20850         variables.
20851         (nds32_initial_elimination_offset): Likewise.
20852         (nds32_expand_prologue): Likewise.
20853         (nds32_expand_epilogue): Likewise.
20854         (nds32_expand_prologue_v3push): Likewise.
20855         (nds32_expand_epilogue_v3pop): Likewise.
20856         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20857         Adjust renamed variables.
20858         (nds32_output_stack_pop): Likewise.
20860 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20862         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
20863         code in comment.
20865 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20867         PR rtl-optimization/65321
20868         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
20869         than shift mode.
20870         * var-tracking.c (use_narrower_mode): Likewise.
20872 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20874         PR tree-optimization/65355
20875         * varasm.c (notice_global_symbol): Do not produce RTL.
20876         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
20877         anchor.
20878         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
20879         check for section anchors.
20881 2015-03-10  Alan Modra  <amodra@gmail.com>
20883         PR target/65286
20884         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
20885         to be single-arch by default.  Set cpu_is_64bit for powerpc64
20886         given --with-cpu=native.
20887         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
20888         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
20889         and powerpc64le.
20890         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
20891         rs6000_isa_flags rather than TARGET_64BIT.
20893 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
20894             Kaz Kojima  <kkojima@gcc.gnu.org>
20896         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
20898 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
20900         PR lto/65361
20901         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
20902         on a TREE_BINFO, instead use BINFO_TYPE.
20904 2015-03-09  Richard Biener  <rguenther@suse.de>
20906         PR middle-end/65270
20907         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
20908         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
20909         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
20910         of that.  When comparing dereferences compare alignment.
20911         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
20913 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20915         * ipa-inline-analysis.c (check_callers): Check
20916         node->can_remove_if_no_direct_calls_and_refs_p.
20917         (growth_likely_positive): Reorganize to call
20918         can_remove_if_no_direct_calls_p later.
20919         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
20920         will_be_removed_from_program_if_no_direct_calls_p): Add
20921         will_inline parameter.
20922         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
20923         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20924         Handle inliner case correctly.
20926 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20928         PR tree-optimization/63743
20929         * cfgexpand.c (reorder_operands): Also reorder if only second operand
20930         had its definition forwarded by TER.
20932 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20934         PR lto/65316
20935         * ipa-utils.h (types_odr_comparable): Add strict argument.
20936         * ipa-devirt.c: Fix whitespace;
20937         (odr_hasher): Remove.
20938         (odr_name_hasher, odr_vtable_hasher): New hashers.
20939         (can_be_name_hashed_p): New predicate.
20940         (hash_type_name): remove.
20941         (hash_odr_name): New.
20942         (odr_name_hasher::hash): new.
20943         (can_be_vtable_hashed_p): New.
20944         (hash_odr_vtable): New.
20945         (odr_vtable_hasher::hash): New.
20946         (types_same_for_odr): Add strict parameter.
20947         (types_odr_comparable): Likewise.
20948         (odr_name_hasher::equal): New.
20949         (odr_vtable_hasher::equal): New.
20950         (odr_name_hasher::remove): New.
20951         (odr_hash_type): Change to hash_table<odr_name_hasher>.
20952         (odr_vtable_hash_type): New.
20953         (odr_vtable_hash): New.
20954         (odr_subtypes_equivalent_p): Do strict comparsion.
20955         (add_type_duplicate): Merge type names; cleanup; avoid type
20956         duplicates.
20957         (register_odr_type): Initialize vtable hash.
20958         (build_type_inheritance_graph): Likewise
20959         (get_odr_type): Reorg to use two hashes.
20960         (dump_possible_polymorphic_call_targets): Move sanity check after debug
20961         output.
20962         (ipa_devirt): Dump type_inheritance_graph.
20963         (types_same_for_odr): Add strict mode.
20965 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20967         PR ipa/65334
20968         * cgraph.h (symtab_node): Add definition_alignment,
20969         can_increase_alignment_p and increase_alignment.
20970         * symtab.c (symtab_node::can_increase_alignment_p,
20971         increase_alignment_1, symtab_node::increase_alignment,
20972         symtab_node::definition_alignment): New.
20973         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
20974         can_increase_alignment_p.
20975         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
20976         * tree-vect-stmts.c (ensure_base_align): Likewise.
20977         * varasm.c (function_section_1): Use definition_alignment.
20978         (assemble_start_function): Likewise.
20979         (emit_local): likewise.
20980         (build_constant_desc): Likewsie.
20981         (output_constant_def_contents): Likewise.
20982         (place_block_symbol): Likewise.
20983         (output_object_block): Likewise.
20985 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20987         PR ipa/65316
20988         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
20989         when outputting debug.
20991 2015-03-07  Marek Polacek  <polacek@redhat.com>
20992             Martin Uecker  <uecker@eecs.berkeley.edu>
20994         PR sanitizer/65280
20995         * doc/invoke.texi: Update description of -fsanitize=bounds.
20997 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
20999         * tree-ssa-phiopt.c (neg_replacement): Remove.
21000         (tree_ssa_phiopt_worker): Remove negate optimization.
21002 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21004         PR ipa/65302
21005         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
21007 2015-03-06  Richard Biener  <rguenther@suse.de>
21009         PR middle-end/64928
21010         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
21011         and liveout_obstack members.
21012         (calculate_live_on_exit): Remove.
21013         (calculate_live_ranges): Change declaration.
21014         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
21015         (new_tree_live_info): Adjust.
21016         (calculate_live_ranges): Delete livein when not wanted.
21017         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
21018         Deal with partly deleted live info.
21019         (loe_visit_block): Remove temporary bitmap by using
21020         bitmap_ior_and_compl_into.
21021         (live_worklist): Adjust accordingly.
21022         (calculate_live_on_exit): Make static.
21023         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
21024         we do not need livein.
21026 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
21028         * real.c (real_from_string): Fix typo in assertion.
21030 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
21032         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
21033         the patch.
21035 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21037         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
21039 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
21041         PR target/64342
21042         * lra-assigns.c (find_hard_regno_for): Rename to
21043         find_hard_regno_for_1.  Add a new parameter.
21044         (find_hard_regno_for): New function using find_hard_regno_for_1.
21046 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21048         PR rtl-optimization/65067
21049         * expmed.c (store_bit_field, extract_bit_field): Reworked the
21050         strict volatile bitfield handling.
21052 2015-03-05  Martin Liska  <mliska@suse.cz>
21054         PR ipa/65318
21055         * ipa-icf.c (sem_variable::equals): Compare variables types.
21057 2015-03-05  Richard Henderson  <rth@redhat.com>
21059         PR target/65121
21060         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
21061         correctly check weak symbol binding.
21063 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
21065         PR middle-end/65315
21066         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
21067         needed alignment.
21069 2015-03-05  Martin Liska  <mliska@suse.cz>
21071         * ipa-inline.c (inline_small_functions): Set default value to
21072         prevent warning during bootstrap.
21073         * tree.h: Add pragma guard that ignores false positives during
21074         bootstrap.
21076 2015-03-05  Richard Biener  <rguenther@suse.de>
21078         PR tree-optimization/65310
21079         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21080         Properly preserve alignment of the base of the access.
21082 2015-03-05  Richard Biener  <rguenther@suse.de>
21084         PR ipa/65270
21085         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
21086         Compare dependence info.
21088 2015-03-05  Richard Biener  <rguenther@suse.de>
21090         PR middle-end/65233
21091         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
21092         tree-into-ssa.h.
21093         (walk_ssa_copies): Revert last chage.  Instead do not walk
21094         SSA names registered for SSA update.
21096 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21098         PR ipa/65270
21099         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
21100         vtable references for their containing type.
21101         (sem_function::equals_wpa): Compare TYPE_RESTRICT
21102         and type attributes.
21104 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
21106         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
21107         before negating it.
21108         * stor-layout.c (finalize_record_size): Revert latest change.
21110 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
21112         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
21114 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21116         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
21117         for correct comdat handling.
21118         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21119         Likewise.
21120         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
21121         (used_from_object_file_p_worker): Remove.
21122         (cgraph_node::only_called_directly_or_alised): Add
21123         used_from_object_file_p.
21124         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
21125         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
21126         can_remove_if_no_direct_calls_and_refs_p.
21128 2015-03-04  Nick Clifton  <nickc@redhat.com>
21130         * config/rl78/rl78.h (enum reg_class): Remove real registers from
21131         General register class.
21132         * config/rl78/rl78-real.md: Replace general register constraints
21133         with real+virtual register constraints.
21135 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21137         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
21138         from checking for -mhtm option.
21140 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21142         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
21143         (struct ipa_sra_check_caller_data): Add has_thunk field.
21144         (ipa_sra_check_caller): Check for thunk.
21145         (ipa_sra_preliminary_function_checks): Give up on function with
21146         thunks.
21147         (ipa_early_sra): Use call_for_symbol_and_aliases.
21149 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
21151         PR target/65249
21152         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
21153         called for __stack_chk_guard symbol.
21155 2015-03-03  DJ Delorie  <dj@redhat.com>
21157         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
21158         inc/dec.
21159         (*addhi3_real): Likewise.
21160         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
21161         pattern to match incrementing memory.
21162         * config/rl78/predicates.md (rl78_1_2_operand): New.
21163         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
21164         it's the same and only mem.
21165         (rl78_alloc_physical_registers_op2): If there's effectively only
21166         one MEM, transcode it into HL.
21167         (rl78_far_p): Reject addresses that aren't legitimate.
21169 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21171         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
21172         negating it.
21174         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
21176 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
21178         Implement call0 ABI for xtensa
21179         * config/xtensa/constraints.md ("a" constraint): Include stack
21180         pointer in case of call0 ABI.
21181         ("q" constraint): Make empty in case of call0 ABI.
21182         ("D" constraint): Include stack pointer in case of call0 ABI.
21183         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
21184         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
21185         prototypes.
21186         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
21187         variable.
21188         (xtensa_regno_to_class): Make it a local variable in the
21189         function xtensa_regno_to_class.
21190         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
21191         macro, function prototype and implementation.
21192         (reg_nonleaf_alloc_order): Make it a local variable in the
21193         function order_regs_for_local_alloc.
21194         (xtensa_conditional_register_usage): New function.
21195         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
21196         (xtensa_valid_move): Allow direct moves to stack pointer
21197         register in call0 ABI.
21198         (xtensa_setup_frame_addresses): Only spill register windows in
21199         windowed ABI.
21200         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
21201         call0 ABI respectively.
21202         (xtensa_function_arg_1): Only mark a7 register for copying in
21203         windowed ABI.
21204         (xtensa_call_save_reg): New function.
21205         (compute_frame_size): Add space for callee saved register
21206         storage to the frame size in call0 ABI.
21207         (xtensa_expand_prologue): Generate code to set up stack frame
21208         and save callee-saved registers in call0 ABI.
21209         (xtensa_expand_epilogue): New function.
21210         (xtensa_set_return_address): New function.
21211         (xtensa_return_addr): Calculate return address in call0 ABI.
21212         (xtensa_builtin_saveregs): Only mark a7 register for copying and
21213         emit copying code in windowed ABI.
21214         (order_regs_for_local_alloc): Add preferred register allocation
21215         order for non-leaf function in call0 ABI.
21216         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
21217         (xtensa_asm_trampoline_template): Add trampoline generation for
21218         call0 ABI.
21219         (xtensa_trampoline_init): Add trampoline initialization for
21220         call0 ABI.
21221         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
21222         functions.
21223         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
21224         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
21225         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
21226         ABI call-used registers.
21227         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
21228         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
21229         call0 ABI.
21230         (REG_CLASS_CONTENTS): Include all registers into the preferred
21231         reload registers set, adjust the set in the
21232         xtensa_conditional_register_usage.
21233         (xtensa_regno_to_class): Drop variable declaration.
21234         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
21235         function.
21236         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
21237         respectively.
21238         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
21239         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
21240         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
21241         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
21242         location in call0 ABI.
21243         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
21244         stack adjustment size when handling exception.
21245         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
21246         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
21247         definitions.
21248         ("return" pattern): Generate ret.n/ret in call0 ABI.
21249         ("epilogue" pattern): Expand epilogue.
21250         ("nonlocal_goto" pattern): Use default in call0 ABI.
21251         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
21252         emit eh_set_a0_* depending on ABI.
21253         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
21254         ("eh_set_a0_call0", "blockage"): New patterns.
21256 2015-03-03  Martin Liska  <mliska@suse.cz>
21258         PR ipa/65287
21259         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
21261 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21263         PR 65138/target
21264         * config/rs6000/rs6000-tables.opt: Regenerate table.
21266 2015-03-03  Renlin Li  <renlin.li@arm.com>
21268         * doc/md.texi (@item ^): Change ? into ^.
21270 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
21272         * doc/tm.texi: Regenerated.
21274 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
21276         * builtins.c (expand_builtin_return_addr): Add
21277         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
21278         surrounding #ifdef.
21279         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
21280         definition to 1.
21281         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
21282         Likewise.
21283         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
21284         undefined.
21285         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
21286         paragraph.
21288 2015-03-03  Martin Jambor  <mjambor@suse.cz>
21289             Eric Botcazou  <ebotcazou@adacore.com>
21291         * tree-sra.c (ipa_sra_check_caller_data): New type.
21292         (has_caller_p): Removed.
21293         (ipa_sra_check_caller): New function.
21294         (ipa_sra_preliminary_function_checks): Use it.
21296 2015-03-03  Martin Liska  <mliska@suse.cz>
21298         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
21299         instead of if branch.
21301 2015-03-03  Martin Liska  <mliska@suse.cz>
21303         PR ipa/65282
21304         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
21306 2015-03-23  Jeff Law  <law@redhat.com>
21308         PR tree-optimization/65241
21309         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
21310         hash table if INSERT is true.
21312 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21314         PR target/65296
21315         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
21317 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21319         PR target/64331
21320         * config/avr/avr.c (context.h, tree-pass.h): Include them.
21321         (avr_pass_data_recompute_notes): New static variable.
21322         (avr_pass_recompute_notes): New class.
21323         (avr_register_passes): New static function.
21324         (avr_option_override): Call it.
21326 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21328         Fix various problems with specs file generation.
21330         PR target/65296
21331         * config.gcc (extra_gcc_objs) [avr]: Remove.
21332         * config/avr/driver-avr.c: Remove file.
21333         * config/avr/t-avr (driver-avr.o): Remove rule.
21334         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
21335         INCLUDES to build.  Depend on TM_H.
21336         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
21337         build warnings.  Fix non-matching types and non-existing %-codes.
21338         (tm.h): Include.
21339         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
21340         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
21341         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
21342         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
21343         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
21344         (LIBGCC_SPEC): Remove definitions.
21346 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21348         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
21349         to create a register in testing mode.
21351 2015-03-03  Martin Liska  <mliska@suse.cz>
21352             Jan Hubicka  <hubicka@ucw.cz>
21354         PR ipa/65263
21355         * cgraph.c (cgraph_node::has_thunk_p): New function.
21356         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
21357         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
21358         (sem_function::merge): Assert is changed.
21360 2015-03-03  Martin Liska  <mliska@suse.cz>
21361             Martin Jambor  <mjambor@suse.cz>
21363         PR ipa/65087
21364         * ipa-icf.c (sem_item_optimizer::execute): Change function
21365         return value to boolean.
21366         (sem_item_optimizer::merge_classes): Likewise.
21367         (ipa_icf_driver): Return TODO_remove_functions in case there's
21368         a merge operation processed.
21369         * ipa-icf.h: Change function return value to boolean.
21371 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21373         PR 65138/target
21374         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
21375         processor type for 64-bit little endian PowerPC.
21377         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21378         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
21379         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
21380         printing built-in mask so it does not pass NULL pointers.
21382         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
21383         -mcpu=powerpc64le.
21385 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
21387         PR target/58158
21388         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
21389         !ISA_HAS_FP_CONDMOVE.
21391 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
21393         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
21394         reload_completed.
21396 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
21398         * doc/invoke.texi (Options for Code Generation Conventions):
21399         Fix URL of DSO paper.
21401 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21403         PR ipa/65130
21404         * ipa-inline.c (check_callers): Looks for recursion.
21405         (inline_to_all_callers): Give up on uninlinable or recursive edges.
21406         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
21407         summary of inline clones.
21408         (do_estimate_growth_1): Fix recursion check.
21410 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21412         PR ipa/64988
21413         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
21414         comdat groups.
21416 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21417             Aldy Hernandez  <aldyh@redhat.com>
21419         PR lto/65276
21420         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
21421         when checking TYPE_BINFO.
21423 2015-03-02  Richard Biener  <rguenther@suse.de>
21425         PR ipa/65270
21426         * ipa-icf-gimple.c: Include builtins.h.
21427         (func_checker::compare_memory_operand): Compare base alignment.
21429 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21431         PR target/65184
21432         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
21433         are never passed by reference.
21435 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21437         PR target/65183
21438         * tree-chkp.c (chkp_check_lower): Don't check against
21439         zero bounds for already instrumented functions.
21440         (chkp_check_upper): Likewise.
21441         (chkp_fini): Clean pass local data to avoid wrong reusage.
21443 2015-02-28  Martin Liska  <mliska@suse.cz>
21444             Jan Hubicka  <hubicka@ucw.cz>
21446         * ipa-icf.c (sem_variable::equals): Improve debug output;
21447         get variable constructor.
21448         (sem_variable::parse): Do not filter out too early; give up on
21449         volatile and register vars.
21450         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
21451         variables.
21452         * ipa-icf.h (sem_variable::init): Do not set ctor.
21453         (sem_variable::ctor): Remove.
21455 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
21457         PR middle-end/65233
21458         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
21460 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21462         * ipa-icf.c: Include stor-layout.h
21463         (sem_function::compare_cgraph_references): Rename to ...
21464         (sem_item::compare_cgraph_references): ... this one.
21465         (sem_variable::equals_wpa): New function
21466         (sem_variable::equals): Do not check stuff already verified by
21467         equals_wpa.
21468         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
21469         * ipa-icf.h (sem_item): Add compare_cgraph_references.
21470         (sem_function): Remove compare_cgraph_references.
21471         (sem_variable): Turns equals_wpa into non-inline.
21473 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21475         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
21476         (sem_item::add_expr): New function.
21477         (sem_function::hash_stmt): Handle operands of most statements.
21478         (sem_variable::get_hash): Hash the actual constructor.
21479         * ipa-icf.h (sem_item): Add add_expr.
21480         (sem_function): Update prototype of hash_stmt
21482 2015-02-28  Martin Liska  <mliska@suse.cz>
21483             Jan Hubicka  <hubicka@ucw.cz>
21485         PR ipa/65245
21486         * ipa-icf-gimple.c (func_checker::compare_function_decl):
21487         Remove.
21488         (func_checker::compare_variable_decl): Skip symtab vars.
21489         (func_checker::compare_cst_or_decl): Update.
21490         * ipa-icf.c (sem_function::parse): Do not consider aliases.
21491         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
21492         use correct symtab predicates.
21493         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
21494         (sem_variable::parse):  Update comment.
21495         (sem_item_optimizer::build_graph): Consider ultimate aliases
21496         for references.
21498 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21500         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
21501         of OBJ_TYPE_REF.
21503 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21505         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
21506         (sem_variable::merge) Likewise.
21508 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21510         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
21511         target; also match flag_ipa_devirt.
21513 2015-03-01  Martin Liska  <mliska@suse.cz>
21514             Jan Hubicka  <hubicka@ucw.cz>
21516         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
21517         Validate variable alignment.
21518         * ipa-icf.c (sem_function::equals_private): Be more precise
21519         about non-common function attributes.
21520         (sem_variable::equals): Likewise.
21522 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21524         PR ipa/65237
21525         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
21526         across COMDAT group boundary.
21528 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21530         PR ipa/65232
21531         * ipa-icf.c (clear_decl_rtl): New function.
21532         (sem_function::merge): Clear RTL before forming alias.
21533         (sem_variable::merge): Clear RTL before forming alias.
21535 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21537         PR ipa/65236
21538         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
21540 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
21542         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
21543         to neon_to_gp<q>.
21545 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21547         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
21548         a typo in the description.
21550 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21552         PR target/64317
21553         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21554         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21555         * lra-constraints.c: Include "params.h".
21556         (EBB_PROBABILITY_CUTOFF): Use
21557         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
21558         (lra_inheritance): Use '<' instead of '<=' for
21559         EBB_PROBABILITY_CUTOFF.
21560         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
21561         Document change.
21563 2015-02-27  Martin Liska  <mliska@suse.cz>
21565         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
21566         vector length condition.
21568 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
21570         * doc/extend.texi (x86 transactional memory intrinsics):
21571         Reorganize discussion of _xbegin.  Clarify that the return
21572         value is a bit mask.  Expand example and move to end of section.
21574 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21575             Aldy Hernandez  <aldyh@redhat.com>
21577         PR rtl-optimization/65220
21578         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
21580 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21582         PR target/65032
21583         * lra-remat.c (update_scratch_ops): New.
21584         (do_remat): Call it.
21585         * lra.c (lra_register_new_scratch_op): New. Take code from ...
21586         (remove_scratches): ... here.
21587         * lra-int.h (lra_register_new_scratch_op): New prototype.
21589 2015-02-27  Marek Polacek  <polacek@redhat.com>
21591         PR c/65040
21592         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
21593         -Wformat-signedness anymore.
21595 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21597         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
21598         function.
21599         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
21601 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21603         * config/s390/s390.c (enum s390_builtin):
21604         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
21605         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
21606         (s390_init_builtins): Generate new builtin functions.
21607         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
21608         (s390_sfpc, s390_efpc): New pattern definitions.
21610 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21612         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
21613         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
21614         (s390_builtin_decls): New array.
21615         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
21616         (s390_builtin_decl): New function.
21617         (TARGET_BUILTIN_DECL): Define macro.
21619 2015-02-27  Richard Biener  <rguenther@suse.de>
21621         PR middle-end/63175
21622         * builtins.c (get_object_alignment_2): Make sure to re-apply
21623         the ANDed mask after recursing to its operand gets us a new
21624         misalignment bit position.
21626 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
21627             Martin Liska  <mliska@suse.cz>
21629         PR bootstrap/65150
21630         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
21631         Use address_matters_p.
21632         (redirect_all_callers, set_addressable): New functions.
21633         (sem_function::merge): Reorganize and fix merging issues.
21634         (sem_variable::merge): Likewise.
21635         (sem_variable::compare_sections): Remove.
21636         * common.opt (fmerge-all-constants, fmerge-constants): Remove
21637         Optimization flag.
21638         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
21639         redirect them.
21640         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
21641         decl is used.
21642         (address_matters_1): New function.
21643         (symtab_node::address_matters_p): New function.
21644         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
21645         check for merged flag.
21646         * cgraph.h (address_matters_p): Declare.
21647         (symtab_node::address_taken_from_non_vtable_p): Remove.
21648         (symtab_node::address_can_be_compared_p): New method.
21649         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
21650         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
21651         Remove.
21652         (comdat_can_be_unshared_p_1) Use address_matters_p.
21653         (update_vtable_references): Fix formating.
21654         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
21655         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
21656         * cgraphclones.c: Preserve merged and icf_merged flags.
21658 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
21660         * doc/extend.texi (Function Attributes): Fix spelling and typos.
21661         (Label Attributes): Likewise.
21662         (Cilk Plus Builtins): Likewise.
21663         (ARC SIMD Built-in Functions): Likewise.
21664         (ARM C Language Extensions (ACLE)): Likewise.
21665         (PowerPC Built-in Functions): Likewise.
21666         (PowerPC Hardware Transactional Memory Built-in Functions):
21667         Likewise.
21669 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21671         PR tree-optimization/65216
21672         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
21673         new stmt and new SSA_NAME for lhs whenever the arguments have
21674         changed and weren't just swapped.  Fix comment typo.
21676         PR tree-optimization/65215
21677         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
21678         for PDP endian targets.
21679         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
21680         Fix up formatting issues.
21681         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
21682         size is smaller than the original, adjust MEM_REF offset by the
21683         difference of sizes.  Use is_gimple_mem_ref_addr instead of
21684         is_gimple_min_invariant test to avoid adding address temporaries.
21686 2015-02-26  Martin Liska  <mliska@suse.cz>
21687             Jan Hubicka  <hubicka@ucw.cz>
21689         PR ipa/64693
21690         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
21691         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
21692         (sem_item_optimizer::process_cong_reduction): Include division by
21693         sensitive references.
21694         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
21695         * ipa-ref.c (ipa_ref::address_matters_p): New function.
21696         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
21698 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
21700         PR target/65192
21701         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
21702         Remove.
21703         * config/avr/avr.c: Same.
21704         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
21705         Refuse any constant address not in 0..0xbf.
21706         * config/avr/avr.md (*mov<mode>, *movsf): Remove
21707         tiny_valid_direct_memory_access_range from insn conditions.
21708         (mov<mode>): Don't special-case expansion of avrtiny addresses.
21710 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
21712         PR target/61142
21713         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
21714         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
21715         * config/sh/predicates.md (const_logical_operand): New predicate.
21716         * config/sh/sh.md: Add new peephole2 patterns.
21718 2015-02-26  Marek Polacek  <polacek@redhat.com>
21720         PR ipa/65008
21721         * ipa-inline.c (early_inliner): Recompute inline parameters.
21723 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21725         PR target/65171
21726         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
21727         instructions with TImode operands are included in the analysis.
21729 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21731         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
21732         of an EDGE_FSM_THREAD.
21734 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21736         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
21738 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
21740         PR debug/46102
21741         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
21743 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21745         PR tree-optimization/65048
21746         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
21747         (thread_through_all_blocks): Call valid_jump_thread_path.
21748         Remove invalid FSM jump-thread paths.
21750 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21752         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
21753         (ipa_write_optimization_summaries): Likewise.
21754         * tree-streamer.h: Include data-streamer.h.
21755         (streamer_mode_table): Declare extern variable.
21756         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
21757         * lto-streamer-out.c (lto_output_init_mode_table,
21758         lto_write_mode_table): New functions.
21759         (produce_asm_for_decls): Call lto_write_mode_table when streaming
21760         offloading LTO.
21761         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
21762         (lto_create_simple_input_block): Add mode_table argument to the
21763         lto_input_block constructors.
21764         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
21765         Likewise.
21766         * data-streamer-in.c (string_for_index): Likewise.
21767         * ipa-inline-analysis.c (inline_read_section): Likewise.
21768         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
21769         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21770         * lto-streamer-in.c (lto_read_body_or_constructor,
21771         lto_input_toplevel_asms): Likewise.
21772         (lto_input_mode_table): New function.
21773         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
21774         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
21775         Use bp_pack_machine_mode.
21776         * real.h (struct real_format): Add name field.
21777         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
21778         (class lto_input_block): Add mode_table member.
21779         (lto_input_block::lto_input_block): Add mode_table_ argument,
21780         initialize mode_table.
21781         (struct lto_file_decl_data): Add mode_table field.
21782         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
21783         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
21784         unpack_ts_decl_common_value_fields,
21785         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
21786         * tree-streamer.c (streamer_mode_table): New variable.
21787         * real.c (ieee_single_format, mips_single_format,
21788         motorola_single_format, spu_single_format, ieee_double_format,
21789         mips_double_format, motorola_double_format,
21790         ieee_extended_motorola_format, ieee_extended_intel_96_format,
21791         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
21792         ibm_extended_format, mips_extended_format, ieee_quad_format,
21793         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
21794         decimal_single_format, decimal_double_format, decimal_quad_format,
21795         ieee_half_format, arm_half_format, real_internal_format): Add name
21796         field.
21797         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
21799 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
21801         PR target/65161
21802         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
21803         reordering for selective scheduling.
21805 2015-02-26  Terry Guo  <terry.guo@arm.com>
21807         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
21808         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
21809         (arm_arch_no_volatile_ce): Declare new global variable.
21810         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
21811         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
21812         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
21813         (TARGET_NO_VOLATILE_CE): New macro.
21814         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
21815         volatile memory access in IT block
21817 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21819         PR tree-optimization/61917
21820         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
21821         that reduc_def_stmt is null.
21823 2015-02-25  Martin Liska  <mliska@suse.cz>
21825         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
21826         hard register variables.
21828 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21830         PR target/64212
21831         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
21832         (symtab::noninterposable_alias): Likewise.
21834 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
21836         PR target/65167
21837         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
21838         bounds registers.
21839         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
21841 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
21843         PR target/64997
21844         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
21845         as split condition; force split via '#' in output pattern.
21847 2015-02-25  Richard Biener  <rguenther@suse.de>
21848             Kai Tietz  <ktietz@redhat.com>
21850         PR tree-optimization/61917
21851         * tree-vect-loop.c (vectorizable_reduction): Allow
21852         vect_internal_def without reduction to exit graceful.
21854 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21856         PR target/65196
21857         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
21858         only with NONDEBUG_INSN_P.
21860 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21862         Use variadic macros with avr-log.c.
21864         * config/avr/avr-protos.h (avr_vdump): New prototype.
21865         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
21866         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
21867         * config/avr/avr-log.c: Adjust comments.
21868         (avr_vdump): New function.
21869         (avr_vadump): Pass caller as 2nd argument instead of format string.
21870         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
21871         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
21873 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
21875         PR lto/64374
21876         * target.def (target_option_stream_in): New target hook.
21877         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
21878         targetm.target_option.post_stream_in if non-NULL.
21879         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
21880         * doc/tm.texi: Updated.
21881         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
21882         function.
21883         (TARGET_OPTION_POST_STREAM_IN): Redefine.
21885 2015-02-24  Jeff Law  <law@redhat.com>
21887         PR target/65117
21888         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
21889         of operand 0 and operand 2.
21890         (zero_cost_loop_end, loop_end): Similarly.
21892 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
21894         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
21895         CXX_MEM_STAT_INFO.
21897 2015-02-24  DJ Delorie  <dj@redhat.com>
21899         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
21900         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
21901         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
21902         instead of hardcoding SImode.
21904 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
21906         * omp-low.c (create_omp_child_function): Tag entrypoint
21907         functions with a special attribute.
21909 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21911         PR target/65058
21912         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
21914 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
21916         PR rtl-optimization/65123
21917         * lra-remat.c (operand_to_remat): Check hard regs in insn
21918         definition too.
21920 2015-02-24  Nick Clifton  <nickc@redhat.com>
21922         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
21923         to the assembler.
21925 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
21927         PR libgomp/64625
21928         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
21929         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
21930         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
21931         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
21932         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
21933         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
21934         (BUILT_IN_GOACC_PARALLEL): Specify as
21935         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
21936         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
21937         * builtin-types.def
21938         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21939         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21940         Remove function types.
21941         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
21942         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21943         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21944         New function types.
21946 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
21948         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
21950 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
21952         PR tree-optimization/65170
21953         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
21954         if val[1] < 0, clear also val[2] and return 3.
21956 2015-02-24  Alan Modra  <amodra@gmail.com>
21958         PR target/65172
21959         * config/rs6000/rs6000.c (get_memref_parts): Only return true
21960         when *base is a reg.  Handle nested plus addresses.  Simplify
21961         pre_modify test.
21963 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
21965         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
21966         use natural alignment when optimizing for size.
21968 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
21970         PR target/65153
21971         * config/sh/sh.md (movsicc_true+3): Remove peephole.
21972         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
21973         * config/sh/sh.c (replace_n_hard_rtx): Remove.
21975 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
21977         PR fortran/63427
21978         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
21979         too big for a wide_int.  Implement missing wrapping operation.
21981 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
21983         PR target/65163
21984         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
21985         instead of const_int 4294901760.
21987 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
21989         * config/avr/t-avr: Fix typo in comment.
21991 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
21993         * doc/rtl.texi (fma): Clarify documentation.
21995 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
21997         PR debug/58123
21998         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
21999         over input_location.
22001 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22003         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
22004         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
22005         restrict alignments to absolute_biggest_alignment.
22006         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
22007         Define.
22008         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
22009         * doc/tm.texi: Regenerate.
22010         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
22012 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
22014         PR target/64172
22015         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
22017 2015-02-20  Richard Biener  <rguenther@suse.de>
22019         PR tree-optimization/65136
22020         * tree-ssa-propagate.c: Include cfgloop.h.
22021         (replace_phi_args_in): Avoid replacing loop latch edge PHI
22022         arguments with constants.
22024 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
22025             Martin Liska  <mliska@suse.cz>
22027         PR target/63892
22028         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
22029         don't try to create_thunk if stdarg_p.  If
22030         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
22031         redirect_callers if possible.
22032         (sem_item_optimizer::execute): Call unregister_hooks here...
22033         (ipa_icf_driver): ... instead of here.
22035 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22037         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
22038         Mark operand 0 as earlyclobber in 2nd alternative.
22039         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
22040         Write negated shift amount into QI lowpart operand 0 and use it
22041         in the shift step.
22042         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22044 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22046         * cgraph.h (clone_function_name_1): Declare.
22047         * cgraphclones.c (clone_function_name_1): New function.
22048         (clone_function_name): Use it.
22049         * lto-partition.c: Include "stringpool.h".
22050         (must_not_rename, maybe_rewrite_identifier)
22051         (validize_symbol_for_target): New static functions.
22052         (privatize_symbol_name): Use must_not_rename.
22053         (promote_symbol): Call validize_symbol_for_target.
22054         (lto_promote_cross_file_statics): Likewise.
22055         (lto_promote_statics_nonwpa): Likewise.
22057 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
22059         PR target/64452
22060         * config/avr/avr.md (pushhi_insn): New insn.
22061         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
22063 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22064             Jakub Jelinek  <jakub@redhat.com>
22066         * tree-streamer.c (preload_common_nodes): Don't preload
22067         TI_VA_LIST* for offloading.
22068         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
22069         in_lto_p.
22071 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
22073         * config/pa/pa.c (pa_emit_move_sequence): Always force
22074         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
22075         note on insn.
22077         * config/pa/pa.c (pa_reloc_rw_mask): New function.
22078         (TARGET_ASM_RELOC_RW_MASK): Define.
22079         (pa_cannot_force_const_mem): Revert previous change.
22081 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
22082             Jan Hubicka  <hubicka@ucw.cz>
22084         PR ipa/65028
22085         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
22086         across jump functions.
22088 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
22090         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
22092 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
22094         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
22096 2015-02-19  Richard Henderson  <rth@redhat.com>
22098         PR middle-end/65074
22099         * varasm.c (default_binds_local_p_2): Don't test node->definition;
22100         test DECL_EXTERNAL independent of symtab_node.
22102 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
22104         PR lto/65012
22105         * varpool.c (varpool_node::get_constructor): Return early
22106         if this->lto_file_data is NULL.
22108 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22110         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
22111         (rank_for_schedule_debug): Update.
22112         (ready_sort): Make static.  Move sorting logic to ...
22113         (ready_sort_debug, ready_sort_real): New static functions.
22114         (schedule_block): Sort both debug insns and real insns in preparation
22115         for ready list trimming.  Improve debug output.
22116         * sched-int.h (ready_sort): Remove global declaration.
22118 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
22120         * ipa-icf.c (sem_function::equals_private): Adjust.
22121         (sem_function::bb_dict_test): Take a vec<int> * instead of
22122         auto_vec<int>.
22123         * ipa-icf.h (bb_dict_test): Likewise.
22125 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22127         PR gcov-profile/64634
22128         * tree-eh.c (frob_into_branch_around): Fix up typos
22129         in function comment.
22130         (lower_catch): Put eh_seq resulting from EH lowering of
22131         the cleanup sequence after the cleanup rather than before it.
22133 2015-02-18  Tom de Vries  <tom@codesourcery.com>
22135         * common.opt (fstdarg-opt): New option.
22136         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
22137         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22138         (@item -fstdarg-opt): New item.
22140 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22142         PR target/65064
22143         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
22144         for common symbols.
22146 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22148         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
22149         insn-modes.h.
22150         (ALL_HOST_OBJS): Add mkoffload.o.
22151         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
22153 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
22155         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
22156         (compare_virtual_tables): Be smarter about skipping typeinfos;
22157         do sane output on virtual table table mismatch.
22158         (warn_odr): Be ready for forward declarations of enums;
22159         output sane info on base mismatch and virtual table mismatch.
22160         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
22161         when only one type is polymorphic.
22162         (get_odr_type): Fix hashtable corruption.
22163         (dump_odr_type): Dump mangled names.
22165 2015-02-18  Richard Biener  <rguenther@suse.de>
22167         PR tree-optimization/65063
22168         * tree-predcom.c (determine_unroll_factor): Return 1 if we
22169         have replaced looparound PHIs.
22171 2015-02-18  Martin Liska  <mliska@suse.cz>
22173         * lto-streamer.c (lto_streamer_init): Encapsulate
22174         streamer_check_handled_ts_structures with checking macro.
22176 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22178         PR ipa/65087
22179         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
22180         section if !implicit_section.
22181         (cgraph_node::create_version_clone_with_body): Likewise.
22182         * trans-mem.c (ipa_tm_create_version): Likewise.
22184 2015-02-18  Richard Biener  <rguenther@suse.de>
22186         PR tree-optimization/62217
22187         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
22188         into BIVs.
22190 2015-02-18  Marek Polacek  <polacek@redhat.com>
22192         PR sanitizer/65081
22193         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
22194         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
22195         is in range [-16K, -1].  Don't issue run-time error if
22196         (ptr > ptr + offset).
22198 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
22200         * doc/install.texi (nvptx-*-none): New section.
22201         * doc/invoke.texi (Nvidia PTX Options): Likewise.
22202         * config/nvptx/nvptx.opt: Update.
22204         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
22205         (access_check): New functions, copied from
22206         config/i386/intelmic-mkoffload.c.
22207         (main): For non-installed testing, look in all COMPILER_PATHs for
22208         GCC_INSTALL_NAME.
22210         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
22212 2015-02-18  Andrew Pinski  <apinski@cavium.com>
22213             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22215         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
22216         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
22218 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
22220         * ipa-visibility.c (function_and_variable_visibility): Only
22221         check locality if node is not already local.
22222         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22223         call_for_symbol_and_aliases instead of
22224         call_for_symbol_thunks_and_aliases.
22225         (ipa_inline): Likewise.
22226         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22227         first walk aliases.
22228         * ipa.c (symbol_table::remove_unreachable_nodes): Use
22229         call_for_symbol_and_aliases.
22230         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22231         (ipa_propagate_frequency_1): Use it; use opt_for_fn
22232         (ipa_propagate_frequency): Update.
22233         (ipa_profile): Add opt_for_fn gueards.
22235 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
22237         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
22238         * doc/invoke.texi (SH options): Document it.
22239         * config/sh/sh.c (sh_insn_length_adjustment): Check
22240         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
22242 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
22244         * common.opt (fipa-cp-alignment): New.
22245         * ipa-cp.c (ipcp_store_alignment_results): Check
22246         flag_ipa_cp_alignment.
22247         * opts.c (default_options_table): Enable -fipa-cp-alignment for
22248         -O2.
22249         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
22250         * doc/invoke.texi: Document -fipa-cp-alignment.
22252 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
22254         PR target/64793
22255         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
22256         to nil.  Adjust comments.
22258 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
22260         * ipa-visibility.c (function_and_variable_visibility): Only
22261         check locality if node is not already local.
22262         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22263         call_for_symbol_and_aliases instead of
22264         call_for_symbol_thunks_and_aliases.
22265         (ipa_inline): Likewise.
22266         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22267         first walk aliases.
22268         * ipa.c (symbol_table::remove_unreachable_nodes): Use
22269         call_for_symbol_and_aliases.
22270         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22271         (ipa_propagate_frequency_1): Use it; use opt_for_fn
22272         (ipa_propagate_frequency): Update.
22273         (ipa_profile): Add opt_for_fn guards.
22275 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
22277         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
22278         skipping of "strange" tokens.
22280 2015-02-17  Jeff Law  <law@redhat.com>
22282         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
22283         obsolete comment.
22285 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
22287         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
22288         as forcing a HARD_DEP between instructions, thereby
22289         disallowing rewriting to break dependencies.
22291 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22293         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
22294         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
22295         variables in boundary that have no inlitalizer encoded and are
22296         not aliases.
22297         * varasm.c (default_binds_local_p_2): External definitions do not
22298         count as definitions here.
22300 2015-02-16  Jeff Law  <law@redhat.com>
22302         PR tree-optimization/64823
22303         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
22304         statements.
22305         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22306         threading through blocks with PHIs, but no statements.
22307         (thread_through_normal_block): Distinguish between blocks where
22308         we did not process all the statements and blocks with no statements.
22310 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
22311             James Greenhalgh  <james.greenhalgh@arm.com>
22313         PR ipa/64963
22314         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
22315         section if not linkonce.  Fix up formatting.
22316         (cgraph_node::create_version_clone_with_body): Copy section.
22317         * trans-mem.c (ipa_tm_create_version): Likewise.
22319 2015-02-16  Richard Biener  <rguenther@suse.de>
22321         PR tree-optimization/65077
22322         * tree-ssa-structalias.c (get_constraint_for_1): Handle
22323         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
22324         (find_func_aliases): Allow float values to carry pointers again.
22326 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22328         * doc/install.texi (Specific): Reorder targets list to put
22329         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
22330         from the top menu.
22332 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22333             David Edelsohn  <dje.gcc@gmail.com>
22335         PR target/65058
22336         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
22337         mapping class to external variable or function reference.
22338         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
22339         mapping class.
22341 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
22343         PR target/53348
22344         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
22345         ASM_WEAKEN_DECL if defined.
22347 2015-02-16  Richard Biener  <rguenther@suse.de>
22349         PR lto/65015
22350         * varasm.c (default_file_start): For LTO produced units
22351         emit <artificial> as file directive.
22353 2015-02-16  Richard Biener  <rguenther@suse.de>
22355         PR tree-optimization/63593
22356         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
22357         stmts and releasing SSA names until...
22358         (execute_pred_commoning): ... after processing all chains.
22360 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22362         PR ipa/65059
22363         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
22364         external functions.
22366 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
22368         * doc/bugreport.texi: Adjust section titles throughout the file
22369         to use "Title Case".
22370         * doc/extend.texi: Likewise.
22371         * doc/gcov.texi: Likewise.
22372         * doc/implement-c.texi: Likewise.
22373         * doc/implement-cxx.texi: Likewise.
22374         * doc/invoke.texi: Likewise.
22375         * doc/objc.texi: Likewise.
22376         * doc/standards.texi: Likewise.
22377         * doc/trouble.texi: Likewise.
22379 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
22381         * cgraph.h (symtab_node::has_aliases_p): Simplify.
22382         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
22383         * tree.c (lookup_binfo_at_offset): Make static.
22384         (get_binfo_at_offset): Do not shadow offset; add explanatory
22385         comment.
22387 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
22389         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
22390         for all floading point loads and stores except those using a register
22391         index address.
22392         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
22393         to a register.
22395 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22397         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
22398         (do_estimate_growth_1): Record if any uninlinable edge was seen.
22399         (estimate_growth): Handle uninlinable edges correctly.
22400         (check_callers): New.
22401         (growth_likely_positive): Handle aliases correctly.
22403 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22405         * ipa-chkp.c: Use iterate_direct_aliases.
22406         * symtab.c (resolution_used_from_other_file_p): Move inline.
22407         (symtab_node::create_reference): Fix formating.
22408         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22409         (symtab_node::iterate_reference): Move inline.
22410         (symtab_node::iterate_referring): Move inline.
22411         (symtab_node::iterate_direct_aliases): Move inline.
22412         (symtab_node::used_from_object_file_p_worker): Inline into ...
22413         (symtab_node::used_from_object_file_p): ... this one; move inline.
22414         (symtab_node::call_for_symbol_and_aliases): Move inline;
22415         use iterate_direct_aliases.
22416         (symtab_node::call_for_symbol_and_aliases_1): New method.
22417         (cgraph_node::call_for_symbol_and_aliases): Move inline;
22418         use iterate_direct_aliases.
22419         (cgraph_node::call_for_symbol_and_aliases_1): New method.
22420         (varpool_node::call_for_node_and_aliases): Rename to ...
22421         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
22422         use iterate_direct_aliases.
22423         (varpool_node::call_for_symbol_and_aliases_1): New method.
22424         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
22425         (ipa_discover_readonly_nonaddressable_var): Update.
22426         * ipa-devirt.c: Fix formating.
22427         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
22428         Move inline.
22429         (cgraph_node::call_for_symbol_and_aliases): Move inline.
22430         (cgraph_node::call_for_symbol_and_aliases_1): New function..
22431         * cgraph.h (used_from_object_file_p_worker): Remove.
22432         (resolution_used_from_other_file_p): Move inline.
22433         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22434         (symtab_node::iterate_reference): Move inline.
22435         (symtab_node::iterate_referring): Move inline.
22436         (symtab_node::iterate_direct_aliases): Move inline.
22437         (symtab_node::used_from_object_file_p_worker): Inline into ...
22438         (symtab_node::used_from_object_file_p): Move inline.
22439         * tree-emutls.c (ipa_lower_emutls): Update.
22440         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
22441         (varpool_node::call_for_node_and_aliases): Remove.
22443 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
22445         PR tree-optimization/62209
22446         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
22447         op == range->exp, insert seq and gimplified code after labels
22448         instead of after the phi.
22450 2015-02-13  Jeff Law  <law@redhat.com>
22452         PR bootstrap/65060
22453         Revert my change for tree-optimization/64823.
22455 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22457         PR tree-optimization/65053
22458         * tree-ssa-phiopt.c (value_replacement): When moving assign before
22459         cond, either reset VR on lhs or set it to phi result VR.
22461 2015-02-13  Jeff Law  <law@redhat.com>
22463         PR tree-optimization/64823
22464         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
22465         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22466         threading through blocks with PHIs, but no statements.
22467         (thread_through_normal_block): Distinguish between blocks where
22468         we did not process all the statements and blocks with no statements.
22470         PR rtl-optimization/47477
22471         * match.pd (convert (plus/minus (convert @0) (convert @1): New
22472         simplifier to narrow arithmetic.
22474 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
22476         PR ipa/65028
22477         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
22478         polymorphic call info when type is not known to be preserved.
22480 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
22482         PR ipa/65028
22483         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
22484         (inline_call): Use it.
22486 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
22488         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
22489         GOMP_DEVICE_NVIDIA_PTX.
22491 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22493         PR ipa/65034
22494         * stmt.c (emit_case_nodes): Use void_type_node instead of
22495         NULL_TREE as LABEL_DECL type.
22497 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
22499         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22500         constraints.
22501         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
22502         symbolic references to data to be forced to constant memory on the
22503         SOM target.
22505 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22507         PR tree-optimization/65002
22508         * tree-cfg.c (pass_data_fixup_cfg): Don't update
22509         SSA on start.
22510         * tree-sra.c (some_callers_have_no_vuse_p): New.
22511         (ipa_early_sra): Reject functions whose callers
22512         assume function is read only.
22514 2015-02-13  Richard Biener  <rguenther@suse.de>
22516         PR lto/65015
22517         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
22518         for LTO produced CUs.
22520 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
22522         PR tree-optimization/64705
22523         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
22524         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
22525         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
22526         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
22527         expand_simple_operations.
22529 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22530             Richard Henderson  <rth@redhat.com>
22532         PR rtl/32219
22533         * cgraphunit.c (cgraph_node::finalize_function): Set definition
22534         before notice_global_symbol.
22535         (varpool_node::finalize_decl): Likewise.
22536         * varasm.c (default_binds_local_p_2): Rename from
22537         default_binds_local_p_1, add weak_dominate argument.  Use direct
22538         returns instead of assigning to local variable.  Unify varpool and
22539         cgraph paths via symtab_node.  Reject undef weak variables before
22540         testing visibility.  Reorder tests for simplicity.
22541         (default_binds_local_p): Use default_binds_local_p_2.
22542         (default_binds_local_p_1): Likewise.
22543         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
22544         via symtab_node.
22545         (default_elf_asm_output_external): Emit visibility when specified.
22547 2015-02-13  Alan Modra  <amodra@gmail.com>
22549         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
22550         code setting up r11 for out-of-line fp restore.
22552 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
22554         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
22555         (muser-mode): Likewise.
22557 2015-02-13  Alan Modra  <amodra@gmail.com>
22559         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
22560         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
22562 2015-02-12  David Howells  <dhowells@redhat.com>
22564         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
22565         warning.
22566         * tree-ssa-uninit.c (dump_predicates): Likewise.
22567         * opts.c (print_filtered_help): Likewise.
22569 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22571         * dwarf2out.c (output_die): Use "%s", name instead of name to
22572         avoid -Wformat-security warning.
22574         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
22575         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22576         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
22577         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22579 2015-02-12  Jason Merrill  <jason@redhat.com>
22581         * common.opt (-flifetime-dse): New.
22583 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22585         PR sanitizer/65019
22586         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
22588         PR tree-optimization/65014
22589         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
22590         use original second operand of arg0 or arg1 instead of
22591         that adjusted by STRIP_NOPS.
22593 2015-02-11  Jeff Law  <law@redhat.com>
22595         PR target/63347
22596         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
22597         that needs to be queued, just queue it for a single cycle.
22599 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
22601         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
22602         bodies of thunks; comment on why.
22603         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
22604         symbols are extern.
22606 2015-02-11  Richard Henderson  <rth@redhat.com>
22608         PR sanitize/65000
22609         * tree-eh.c (mark_reachable_handlers): Mark source and destination
22610         regions of __builtin_eh_copy_values.
22612 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22614         PR middle-end/65003
22615         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
22616         ultimate alias is MEM with SYMBOL_REF satisfying
22617         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
22618         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
22620 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
22622         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
22623         "diagnostic-core.h".
22624         (main): Initialize progname, and call diagnostic_initialize.
22626         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
22627         instead of __OPENMP_TARGET__.
22629         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
22630         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
22631         hard-coding PTX_ID.
22633 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
22635         * doc/sourcebuild.texi (pie_enabled): Document.
22637 2015-02-11  Martin Liska  <mliska@suse.cz>
22639         PR ipa/64813
22640         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
22641         a return value for call to a function that is noreturn.
22643 2015-02-11  Richard Biener  <rguenther@suse.de>
22645         PR lto/65015
22646         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
22647         and -fresolution.
22649 2015-02-11  Andrew Pinski  <apinski@cavium.com>
22651         PR target/64893
22652         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
22653         Change the first argument type to size_type_node and add another
22654         size_type_node.
22655         (aarch64_simd_expand_builtin): Handle the new argument to
22656         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
22657         print an out when the first two arguments are not
22658         nonzero integer constants.
22659         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
22660         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
22662 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22664         PR target/61925
22665         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
22666         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
22667         (ix86_set_current_function): Rewritten.
22668         (ix86_add_new_builtins): Temporarily clear current_target_pragma
22669         when creating builtin fndecls.
22671 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22673         PR ipa/65005
22674         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
22675         function.
22676         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
22677         have no comdat group.
22678         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
22679         (lto_output_varpool_node): Always output alias info.
22680         (output_refs): Output refs of boundary aliases, too.
22681         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
22682         (output_symtab): Output call eges in thunks in boundary.
22683         (get_alias_symbol): Remove.
22684         (input_node, input_varpool_node): Do not special case weakrefs.
22685         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
22686         alias and thunks targets in the boundary; do not take removed symbols
22687         from their comdat groups.
22688         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
22689         (cgraph_node::global_info): Remove.
22690         (cgraph_node::rtl_info): Look through aliases and thunks.
22691         * cgrpah.h (global_info): Remove.
22692         (non_local_p): Remove.
22694 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22695             Sandra Loosemore  <sandra@codesourcery.com>
22697         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
22698         to inline asm.  List dialects in proper order.
22700 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22701             Sandra Loosemore  <sandra@codesourcery.com>
22703         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
22705 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22707         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
22708         modified) reference to Solaris.
22710 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
22712         * doc/extend.texi (Extended Asm): Fix typos.
22714 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
22716         PR sanitizer/65004
22717         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
22719 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
22721         PR target/64661
22722         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
22723         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
22724         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
22725         * config/sh/constraints.md (Ara, Add): New constraints.
22726         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
22727         predicates.
22728         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
22729         atomic_mem_operand_0.  Don't use force_reg on the memory address.
22730         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
22731         Sra constraint.  Convert to insn_and_split.  Add workaround for
22732         PR 64974.
22733         (atomic_compare_and_swap<mode>_hard): Copy to
22734         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
22735         Use atomic_mem_operand_0 predicate.
22736         (atomic_compare_and_swap<mode>_soft_gusa,
22737         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
22738         AraAdd constraints.
22739         (atomic_compare_and_swap<mode>_soft_tcb,
22740         atomic_compare_and_swap<mode>_soft_imask,
22741         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
22742         atomic_mem_operand_0 predicate and SraSdd constraints.
22743         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
22744         constraint.
22745         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
22746         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
22747         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
22748         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
22749         force_reg on the memory address.
22750         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
22751         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
22752         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
22753         atomic_mem_operand_1 predicate and Sra constraint.
22754         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
22755         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22756         Use atomic_mem_operand_1 predicate.
22757         (atomic_<fetchop_name><mode>_hard): Copy to
22758         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22759         Use atomic_mem_operand_1 predicate.
22760         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
22761         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22762         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
22763         insn_and_split.  Use atomic_mem_operand_1 predicate.
22764         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
22765         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
22766         Use atomic_mem_operand_1 predicate.
22767         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
22768         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22769         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
22770         in generated insn with original mem operand before emitting the insn.
22771         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
22772         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
22773         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
22774         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
22775         Use atomic_mem_operand_1 predicate and AraAdd constraints.
22776         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
22777         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
22778         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
22779         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
22780         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
22781         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
22782         atomic_not_fetch<mode>_soft_tcb,
22783         atomic_<fetchop_name>_fetch<mode>_soft_imask,
22784         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
22785         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
22786         Use atomic_mem_operand_1 predicate and SraSdd constraints.
22788 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
22790         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
22791         and 3 earlyclobber operands.
22793 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22795         * common.opt (fstack-reuse): Mark as optimization.
22797 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22799         PR ipa/64982
22800         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
22802 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
22804         PR tree-optimization/64326
22805         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
22807 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
22809         PR gcov-profile/61889
22810         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
22812 2015-02-10  Richard Biener  <rguenther@suse.de>
22814         PR tree-optimization/64995
22815         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
22816         value we use is final.
22817         (visit_reference_op_store): Always valueize op.
22818         (visit_use): Properly valueize vuses.
22820 2015-02-10  Richard Biener  <rguenther@suse.de>
22822         PR tree-optimization/64909
22823         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
22824         pass a scalar-stmt count estimate to the cost model.
22825         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
22827 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
22829         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
22830         enabled by default together with var-tracking.
22832 2015-02-10  Nick Clifton  <nickc@redhat.com>
22834         * config/rl78/rl78.c: Remove DIV attribute code accidentally
22835         included in previous rl78 commit.
22837 2015-02-10  Richard Biener  <rguenther@suse.de>
22839         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
22840         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
22841         return the bitpack.
22843 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22845         PR gcov-profile/61889
22846         * config.in: regenerate.
22847         * configure.in: Likewise.
22848         * configure.ac: Check for ftw.h.
22849         * gcov-tool.c: Check for ftw.h before using nftw.
22851 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22853         PR lto/64076
22854         * ipa-visibility.c (update_visibility_by_resolution_info): Only
22855         assert when not in lto mode.
22857 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22859         * ira-color.c (setup_left_conflict_sizes_p): Simplify
22860         initialization/assignment of conflict_size.
22862 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
22864         PR ipa/64978
22865         * ipa-cp.c (gather_caller_stats): Skip thunks.
22866         (propagate_constants_topo): Skip aliases.
22868 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
22870         PR target/64761
22871         * config/sh/sh.c (sh_option_override): Don't change
22872         -freorder-blocks-and-partition to -freorder-blocks even when
22873         unwinding is enabled.
22874         (sh_can_follow_jump): Return false if the followee jump is
22875         a crossing jump when -freorder-blocks-and-partition is specified.
22876         * config/sh/sh.md (*jump_compact_crossing): New insn.
22878 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
22879             Kaz Kojima  <kkojima@gcc.gnu.org>
22881         PR target/64761
22882         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
22883         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
22884         (sh_can_redirect_branch): Rename to ...
22885         (sh_can_follow_jump): ... this.  Constify argument types.
22886         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
22887         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
22888         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
22889         * doc/tm.texi: Regenerate.
22891 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22893         PR sanitizer/64981
22894         * builtins.c (expand_builtin): Call targetm.expand_builtin
22895         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
22897 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22899         PR ipa/61548
22900         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
22902 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22904         PR ipa/63566
22905         * ipa-icf.c (set_local): New function.
22906         (sem_function::merge): Use it.
22908 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22910         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
22911         (add_type_duplicate): Fix comparison of BINFOs.
22913 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22915         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
22916         on getting VOID pointer.
22918 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22920         PR target/64979
22921         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
22922         va_list escapes.
22924 2015-02-09  Richard Biener  <rguenther@suse.de>
22926         * genmatch.c (replace_id): Copy expr_type.
22928 2015-02-09  Richard Biener  <rguenther@suse.de>
22930         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
22931         (streamer_write_tree_bitfields): Declare.
22932         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
22933         properly unpack padding.
22934         (unpack_value_fields): Inline ...
22935         (streamer_read_tree_bitfields): ... here.
22936         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
22937         and properly add padding bits.
22938         (streamer_pack_tree_bitfields): Fold into ...
22939         (streamer_write_tree_bitfields): ... this new function,
22940         exposing the bitpack object.
22941         * lto-streamer-out.c (lto_write_tree_1): Call
22942         streamer_write_tree_bitfields.
22944 2015-02-09  Richard Biener  <rguenther@suse.de>
22946         PR tree-optimization/54000
22947         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
22948         (struct ivopts_data): Add loop_loc member.
22949         (tree_ssa_iv_optimize_loop): Dump loop location.
22950         (create_new_ivs): Likewise, also dump number of IVs generated.
22952 2015-02-09  Martin Liska  <mliska@suse.cz>
22954         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
22955         just if not yet registered.
22956         (ipa_icf_generate_summary): Register callgraph hooks.
22958 2015-02-08  Andrew Pinski  <apinski@cavium.com>
22960         * config/aarch64/aarch64.c (gty_dummy): Delete.
22962 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22964         PR ipa/63566
22965         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
22966         (cgraph_node::local_p): Remove thunk related FIXME.
22968 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22970         PR ipa/63566
22971         * i386.c (ix86_function_regparm): Look through aliases to see if callee
22972         is local and optimized.
22973         (ix86_function_sseregparm): Likewise; also use target's SSE math
22974         settings; error out instead of silently generating wrong code
22975         on mismatches.
22976         (init_cumulative_args): Look through aliases.
22978 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22980         PR ipa/63566
22981         * ipa-split.c (execute_split_functions): Split if function has aliases.
22983 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22985         PR ipa/63566
22986         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
22987         aliases before trying to expand it.
22988         (cgraph_node::expand_thunk): Fix formating.
22990 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
22992         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
22993         (Using Assembly Language with C): Expand introduction.
22994         (Basic Asm): Copy-edit.  Add more information about uses of
22995         basic asm.
22996         (Extended Asm): Copy-edit.  Document new escape syntax and
22997         %l[label] syntax.
22998         (Global Reg Vars): Copy-edit.
22999         (Local Reg Vars): Likewise.
23001 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
23003         PR debug/2714
23004         PR bootstrap/64256
23005         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
23006         (DBX_CONTIN_CHAR): Define.
23008 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
23009             Brian Rzycki  <b.rzycki@samsung.com>
23011         PR tree-optimization/64878
23012         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
23013         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
23014         Stop recursion at loop phi nodes after having visited a loop phi node.
23016 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23018         * toplev.c (process_options): Change flag_ipa_ra before creating
23019         optimization_{default,current}_node.
23021         PR ipa/64896
23022         * cgraphunit.c (cgraph_node::expand_thunk): If
23023         restype is not is_gimple_reg_type nor the thunk_fndecl
23024         returns aggregate_value_p, set restmp to a temporary variable
23025         instead of resdecl.
23027 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
23029         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
23031 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23033         PR target/64205
23034         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
23035         add a general secondary reload handler for SDmode, unless we have
23036         both read/write support for SDmode.
23038 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23040         PR middle-end/64937
23041         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
23042         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
23043         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
23044         1 before, push it to abstract_vec.
23045         (dwarf2out_abstract_function): Adjust caller.  Don't call
23046         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
23047         DECL_ABSTRACT_P flags for all abstract_vec elts.
23049 2015-02-06  Renlin Li  <renlin.li@arm.com>
23051         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
23052         complex gimple.
23053         * tree-ssa.c (execute_update_addresses_taken): Likewise.
23055 2015-02-06  Jeff Law  <law@redhat.com>
23057         PR target/64889
23058         * config/h8300/h8300.c (push): New argument "in_prologue".
23059         Pass "in_prologue" along to "F".
23060         (h8300_push_pop): Corresponding changes.
23061         (h8300_expand_prologue): Likewise.
23062         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
23064 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23066         PR rtl-optimization/64957
23067         PR debug/64817
23068         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
23069         IOR rather than for AND.
23071 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
23073         PR target/62631
23074         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
23075         of shift-add and (add + shift) operations.  Rename local variable.
23077 2015-02-05  Jeff Law  <law@redhat.com>
23079         PR target/17306
23080         * config/h8300/constraints.md (U): Correctly dectect
23081         "eightbit_data" memory addresses.
23082         * config/h8300/h8300.c (eightbit_constant_address_p): Also
23083         handle (const (plus (symbol_ref (x)))) where x is declared
23084         as an 8-bit data memory address.
23085         * config/h8300/h8300.md (call, call_value): Correctly detect
23086         "funcvec" functions.
23088         PR target/43264
23089         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
23090         24 to 28 bits for the H8/300.
23092 2015-02-06  Alan Modra  <amodra@gmail.com>
23094         PR target/64876
23095         * config/rs6000/rs6000.c (chain_already_loaded): New function.
23096         (rs6000_call_aix): Use it.
23098 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
23100         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
23101         check.
23103 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
23105         * config/h8300/constraints.md ("U" constraint): Use strict
23106         variant of REG_OK_FOR_BASE_P after reload has started.
23108 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
23110         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
23111         define to zero if !TARGET_NEON.
23112         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
23114 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23115             Trevor Saunders  <tsaunders@mozilla.com>
23117         PR ipa/61548
23118         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
23120 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23122         PR ipa/61548
23123         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
23124         when removing varpool nodes.
23126 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23128         PR ipa/61548
23129         * varpool.c (varpool_node::remove): Fix order of variables.
23131 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23133         PR ipa/64686
23134         * ipa-inline.c (inline_small_functions): Fix ordering issue between
23135         speculation resolution and key updates.
23137 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23139         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
23140         about not letting any speculative edges unupdated.
23142 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23144         PR gcov/64123
23145         * gcov-io.c (gcov_var): Export.
23147 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23149         PR middle-end/64922
23150         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
23151         edges that become speculative.
23153 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
23155         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
23156         or DW_LANG_Fortran08.
23157         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
23158         DW_LANG_Fortran08.
23159         (gen_compile_unit_die): Handle "GNU Fortran2003" and
23160         "GNU Fortran2008" language strings.
23161         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
23162         * langhooks.h (lang_GNU_Fortran): New prototype.
23163         * langhooks.c (lang_GNU_Fortran): New function.
23164         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
23165         lang_GNU_Fortran.
23167 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23169         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
23170         (RTX_OK_FOR_OLO10_P): Likewise.
23172 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23174         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
23176 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23178         PR middle-end/64922
23179         * gimple.c: Include gimple-ssa.h.
23180         (maybe_remove_unused_call_args): New function.
23181         * gimple.h (maybe_remove_unused_call_args): Declare.
23182         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
23183         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
23184         * gimple-fold.c (gimple_fold_call): Likewise.
23186 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
23188         PR rtl-optimization/64905
23189         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
23190         pointer alignment if it isn't needed.
23192 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
23194         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
23195         cortex-a72.cortex-a53.
23196         * config/aarch64/aarch64-tune.md: Regenerate.
23197         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
23199 2015-02-04  Nick Clifton  <nickc@redhat.com>
23201         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
23202         inside a MEM.
23204 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
23206         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
23207         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
23208         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
23209         of DEF_BUILTIN.
23210         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
23211         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
23212         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
23213         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
23214         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
23215         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
23216         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
23217         * tree-core.h (enum built_in_function): In between
23218         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
23219         for builtins that use DEF_BUILTIN_CHKP macro.
23221 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
23223         PR debug/64817
23224         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
23225         operands for tcc_comparison exprs.  Fix typos.
23227         PR debug/64817
23228         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
23229         of two XORs that have an intervening AND or IOR.
23231         PR debug/64817
23232         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
23233         simplification of XOR of AND to not allocate new rtx before
23234         committing to a simplification.
23236 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23238         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
23239         manual swaps in all peepholes.
23241 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23243         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
23244         of manual swapping implementation.
23245         (aarch64_expand_vec_perm_const_1): Likewise.
23247 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
23249         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
23250         (generic_addrcost_table): Remove NAMED_PARAM.
23251         (cortexa57_addrcost_table): Likewise.
23252         (xgene1_addrcost_table): Likewise.
23253         (generic_regmove_table): Likewise.
23254         (cortexa53_regmove_table): Likewise.
23255         (xgene1_regmove_table): Likewise.
23256         (generic_vector_table): Likewise.
23257         (cortexa57_vector_table): Likewise.
23258         (xgene1_vector_table): Likewise.
23259         (generic_tunings): Likewise.
23260         (cortexa53_tunings): Likewise.
23261         (cortexa57_tunings): Likewise.
23262         (xgene1_tunings): Likewise.
23264 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
23266         * config/arm/arm-cores.def: Add cortex-a72 and
23267         cortex-a72.cortex-a53.
23268         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
23269         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
23270         * config/arm/arm-tune.md: Regenerate.
23271         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
23272         "cortex-a72.cortex-a53".
23273         * doc/invoke.texi (ARM Options/-mtune): Likewise.
23275 2015-02-04  Nick Clifton  <nickc@redhat.com>
23277         PR target/64408
23278         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
23279         of accepted codes.
23280         (nonimmediate_di_operand): Likewise.
23282         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
23283         prefixes of known F5 using MSP430 MCUs.
23285 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23287         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
23288         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
23289         instead of __builtin_sqrt.
23291 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
23293         * varasm.c (do_assemble_alias): Follow transparent alias
23294         chain for target.
23295         (default_assemble_visibility): Follow transparent alias
23296         chain for decl name.
23298 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23300         PR middle-end/62103
23301         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
23302         to compute size of referenced value in the constant case.
23304 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23306         PR rtl-optimization/64756
23307         * cse.c (invalidate_dest): New function.
23308         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
23309         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
23310         invalidate and do not record it.
23312 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
23314         PR target/64660
23315         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
23316         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
23317         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
23318         atomic_nand<mode>_soft_tcb): New insns.
23319         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
23320         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
23321         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
23322         Split into atomic_not_fetchsi_hard if operands[0] is unused.
23323         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
23324         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23325         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
23326         atomic_not<mode>_hard if operands[0] is unused.
23327         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
23328         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
23329         if operands[0] is unused.
23330         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
23331         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
23332         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
23333         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23334         unused.
23335         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
23336         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23337         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
23338         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
23339         if operands[0] is unused.
23340         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
23341         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
23342         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
23343         atomic_nand_fetchsi_hard if operands[0] is unused.
23344         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
23345         atomic_nand<mode>_hard if operands[0] is unused.
23346         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
23347         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
23348         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
23349         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23350         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
23351         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
23352         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
23353         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23354         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
23355         atomic_not<mode>_hard if operands[0] is unused.
23356         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
23357         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23358         unused.
23359         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23360         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23361         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
23362         atomic_nand<mode>_hard if operands[0] is unused.
23363         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23364         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23366 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
23368         PR jit/64810
23369         * Makefile.in (GCC_OBJS): Add gcc-main.o.
23370         * gcc-main.c: New file, containing "main" taken from gcc.c.
23371         * gcc.c (do_self_spec): Free decoded_options.
23372         (class driver): Move declaration to gcc.h.
23373         (main): Move declaration and implementation to new file
23374         gcc-main.c.
23375         (driver_get_configure_time_options): New function.
23376         * gcc.h (class driver): Move this declaration here, from
23377         gcc.c.
23378         (driver_get_configure_time_options): New declaration.
23380 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
23382         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
23383         cross-module inlining.
23384         * cgraph.h (cgraph_node): Add flag merged.
23385         * ipa-icf.c (sem_function::merge): Maintain it.
23387 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
23389         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
23390         instead of OBJECT_P.
23392 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
23394         PR target/62631
23395         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
23396         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
23397         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
23398         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
23400 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23402         PR other/63504
23403         * combine.c (reg_n_sets_max): New variable.
23404         (can_change_dest_mode, reg_nonzero_bits_for_combine,
23405         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
23406         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
23407         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
23408         (rest_of_handle_combine): Initialize reg_n_sets_max.
23410 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
23412         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
23413         if some always_inline was inlined, apply changes before inlining
23414         heuristically.
23416 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
23418         PR jit/64810
23419         * config/arm/arm.c (arm_option_override): Set
23420         arm_selected_arch/cpu/tune to NULL on entry.
23422 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
23423             Andrew Pinski  <pinskia@gcc.gnu.org>
23424             Jakub Jelinek  <jakub@gcc.gnu.org>
23426         PR target/64231
23427         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
23428         integer typing for small model. Use IN_RANGE.
23430 2015-02-02  Richard Biener  <rguenther@suse.de>
23432         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
23433         * tree-vrp.c (vrp_valueize_1): Likewise.
23435 2015-02-02  Alan Modra  <amodra@gmail.com>
23437         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23438         than mem for toc_restore.
23439         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
23440         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
23441         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
23443 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
23445         PR target/64047
23446         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
23447         explicit default options.
23449 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
23451         PR ipa/64872
23452         * ipa-utils.c (ipa_merge_profiles): Add release argument.
23453         * ipa-icf.c (sem_function::merge): Do not release body when merging.
23454         * ipa-utils.h (ipa_merge_profiles): Update prototype.
23456 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
23458         PR debug/64817
23459         * cfgexpand.c (deep_ter_debug_map): New variable.
23460         (avoid_deep_ter_for_debug): New function.
23461         (expand_debug_expr): If TERed SSA_NAME is in
23462         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
23463         instead of trying to expand SSA_NAME's def stmt.
23464         (expand_debug_locations): When expanding debug bind
23465         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
23466         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
23467         value.
23468         (pass_expand::execute): Call avoid_deep_ter_for_debug on
23469         all debug bind stmts.  Delete deep_ter_debug_map after
23470         expand_debug_location if non-NULL and clear it.
23472 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
23474         PR target/64851
23475         * config/sh/sync.md (atomic_fetch_notsi_hard,
23476         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
23477         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
23478         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
23479         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
23480         atomic_not_fetch<mode>_soft_imask): New insns.
23482 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23484         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
23485         (rank_for_schedule_debug): Split from ...
23486         (rank_for_schedule): ... this.
23487         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
23488         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
23490 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23492         * doc/md.texi (Machine Constraints): Alphabetize table by target.
23493         * doc/extend.texi (x86 Variable Attributes): Move section to
23494         correct alphabetization after renaming.
23495         (x86 Type Attributes): Likewise.
23496         (Target Builtins): Re-alphabetize menu.
23497         (x86 Built-in Functions): Move section to correct alphabetization
23498         after renaming.
23499         (x86 transactional memory intrinsics): Likewise.
23500         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
23501         and x86 Windows Options in table and menu.
23502         (x86 Options): Move section to correct alphabetization after
23503         renaming.
23504         (x86 Windows Options): Likewise.
23506 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23508         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
23509         preferred names of the architecture and its 32- and 64-bit
23510         variants.
23511         * doc/invoke.texi: Likewise.
23512         * doc/md.texi: Likewise.
23514 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23516         PR target/64882
23517         * config/i386/predicates.md (address_no_seg_operand): Reject
23518         non-CONST_INT_P operands in invalid mode.
23520 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23522         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
23523         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
23524         * config/i386/predicates.md (address_no_seg_operand): Call
23525         address_operand with VOIDmode.
23526         (vsib_address_operand): Ditto.
23527         (address_mpx_no_base_operand): Ditto.
23528         (address_mpx_no_index_operand): Ditto.
23530 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23532         PR target/64688
23533         * lra-constraints.c (original_subreg_reg_mode): New.
23534         (simplify_operand_subreg): Try to simplify subreg of const.  Use
23535         original_subreg_reg_mode for it.
23536         (swap_operands): Update original_subreg_reg_mode.
23537         (curr_insn_transform): Set up original_subreg_reg_mode.
23539 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23541         PR target/64617
23542         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
23543         function.
23544         (process_alt_operands): Use it.
23545         (curr_insn_transform): Check the optional reload pseudo class is
23546         ok for the mode.
23548 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
23550         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
23551         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
23552         prototype.
23553         * toplev.h (init_asm_output): Update comment on use of
23554         UNKNOWN_LOCATION with fatal_error.
23555         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
23556         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
23557         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
23558         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
23559         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
23560         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
23561         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
23562         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
23563         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
23564         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
23565         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
23566         fatal_error changed to pass input_location as first argument.
23568 2015-01-30  Martin Liska  <mliska@suse.cz>
23570         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
23571         in #pragma GCC diagnostic guards.
23573 2015-01-30  Richard Biener  <rguenther@suse.de>
23575         PR tree-optimization/64829
23576         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
23577         not add a widening conversion pattern but hand off extra
23578         widenings to callers.
23579         (vect_recog_widen_mult_pattern): Handle extra widening produced
23580         by vect_handle_widen_op_by_const.
23581         (vect_recog_widen_shift_pattern): Likewise.
23582         (vect_pattern_recog_1): Remove excess vertical space in dumping.
23583         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23584         (vect_init_vector_1): Likewise.
23585         (vect_get_vec_def_for_operand): Likewise.
23586         (vect_finish_stmt_generation): Likewise.
23587         (vectorizable_load): Likewise.
23588         (vect_analyze_stmt): Likewise.
23589         (vect_is_simple_use): Likewise.
23591 2015-01-29  Jeff Law  <law@redhat.com>
23593         * combine.c (try_combine): Fix typo in comment.
23595 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
23597         PR target/64580
23598         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
23599         (rs6000_stack_info): Add assert.
23600         (rs6000_output_savres_externs): New function, split off from...
23601         (rs6000_output_function_prologue): ... here.  Do not call it for
23602         thunks.
23604 2015-01-29  Jeff Law  <law@redhat.com>
23606         PR target/15184
23607         * combine.c (try_combine): If I0 is a memory load and I3 a store
23608         to a related address, increase the "goodness" of doing a 4-insn
23609         combination with I0-I3.
23610         (make_field_assignment): Handle SUBREGs in the ior+and case.
23612 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
23614         PR tree-optimization/64746
23615         * tree-if-conv.c (mask_exists): New function.
23616         (predicate_mem_writes): Save created mask with given size for further
23617         use.
23618         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
23619         (ifcvt_repair_bool_pattern): Collect all statements that are root
23620         of bool pattern and use iterative algorithm to remove multiple uses
23621         of predicates, display number of required iterations.
23623 2015-01-29  Richard Biener  <rguenther@suse.de>
23625         PR tree-optimization/64853
23626         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
23627         stmt will get simulated again.
23628         * tree-ssa-ccp.c (valueize_op_1): Likewise.
23630 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23632         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
23633         return_in_pc.  Remove redundant assignments.
23634         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
23635         (arm_expand_epilogue): Don't compare boolean with true in if condition.
23637 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
23639         * config/i386/i386.c (ix86_mode_after): Make static.
23641 2015-01-29  Richard Biener  <rguenther@suse.de>
23643         PR tree-optimization/64844
23644         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
23645         dump cost model analysis.
23646         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23647         Do not register adjusted load/store costs here.
23649 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23650             Uros Bizjak  <ubizjak@gmail.com>
23652         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
23653         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
23654         using x86_use_pseudo_pic_reg.
23655         * config/i386/i386.c (ix86_conditional_register_usage): Remove
23656         support for fixed PIC register.
23657         (ix86_use_pseudo_pic_reg): Not static any more.
23659 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23661         PR middle-end/64805
23662         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
23663         to avoid error in cgraph node verification.
23665 2015-01-29  Marek Polacek  <polacek@redhat.com>
23667         * doc/standards.texi: Reflect that the default for C is gnu11.
23669 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23671         PR target/64761
23672         * reorg.c (switch_text_sections_between_p): New function.
23673         (relax_delay_slots): Call it when testing if the jump insn
23674         is removable.  Use targetm.can_follow_jump when testing if
23675         the conditional branch can follow an unconditional jump.
23677 2015-01-27  Caroline Tice  <cmtice@google.com>
23679         Committing VTV Cywin/Ming patch for Patrick Wollgast
23680         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
23681         if -fvtable-verify=preinit/std is used.
23682         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
23683         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
23684         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
23685         if -fvtable-verify=preinit/std is used.
23686         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23687         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
23688         if -fvtable-verify=preinit/std is used.
23689         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
23690         * config/i386/mingw32.h (LIB_SPEC): Likewise.
23691         * varasm.c (assemble_variable): Add code to properly set the comdat
23692         section and name for the .vtable_map_vars section in case the
23693         target is PE or COFF.
23695 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23697         PR ipa/64801
23698         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
23699         make sane BB profile.
23700         (cgraph_node::expand_thunk): Make sane BB profile.
23701         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
23702         * cgraph.h (init_lowered_empty_function): Update prototype.
23703         * config/i386/i386.c (make_resolver_func): Update call.
23704         * predict.c (gate): Disable branch prediction pass if
23705         profile is already there.
23707 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23709         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
23710         * opth-gen.awk: Likewise.
23711         * common.opt: Mark flag_fp_contract_mode as Optimization.
23713 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23715         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
23716         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
23718 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
23720         PR target/64659
23721         * config/sh/predicates.md (atomic_arith_operand,
23722         atomic_logical_operand): Remove.
23723         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
23724         (atomic_arith_operand_0): New predicate.
23725         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
23726         Use atomic_arith_operand_0 for input values.
23727         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23728         atomic_compare_and_swap<mode>_soft_gusa,
23729         atomic_compare_and_swap<mode>_soft_tcb,
23730         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
23731         arith_reg_operand instead of register_operand.
23732         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
23733         atomic_arith_operand_0 for newval input.
23734         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23735         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
23736         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
23737         arith_reg_operand instead of register_operand.
23738         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
23739         fetchop_predicate_1, fetchop_constraint_1_llcs,
23740         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
23741         fetchop_constraint_1_imask): New code iterator attributes.
23742         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
23743         register_operand.  Use fetchop_predicate_1.
23744         (atomic_fetch_<fetchop_name>si_hard,
23745         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
23746         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
23747         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
23748         and arith_reg_operand instead of register_operand.  Use
23749         fetchop_predicate_1, fetchop_constraint_1_gusa.
23750         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
23751         and arith_reg_operand instead of register_operand.  Use
23752         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
23753         to allow R0 usage.
23754         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
23755         and arith_reg_operand instead of register_operand.  Use
23756         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
23757         to allow R0 usage.
23758         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
23759         register_operand.  Use atomic_logical_operand_1.
23760         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23761         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
23762         arith_reg_operand instead of register_operand.
23763         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
23764         Use arith_reg_dest and arith_reg_operand instead of register_operand.
23765         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
23766         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
23767         register_operand.  Use fetchop_predicate_1.
23768         (atomic_<fetchop_name>_fetchsi_hard,
23769         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
23770         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23771         fetchop_constraint_1_llcs.
23772         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
23773         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23774         fetchop_constraint_1_gusa.
23775         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
23776         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23777         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
23778         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
23779         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23780         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
23781         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
23782         register_operand.  Use atomic_logical_operand_1.
23783         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23784         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
23785         arith_reg_operand instead of register_operand.
23786         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
23787         arith_reg_operand instead of register_operand.  Use logical_operand
23788         and K08.  Adjust asm sequence to allow R0 usage.
23789         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
23790         arith_reg_operand instead of register_operand.  Use logical_operand
23791         and K08.
23793 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23795         PR other/63504
23796         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
23797         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
23798         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
23799         only get_full_len HOST_WIDE_INTs from get_val () array rather than
23800         all bits in *val_wide.
23802 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
23804         * varpool.c (tls_model_names): Fix names.
23805         (varpool_node::dump): Dump tls- prefix for tls models.
23807 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
23808             Bernd Schmidt  <bernds@codesourcery.com>
23809             Nathan Sidwell  <nathan@codesourcery.com>
23811         * config/nvptx/mkoffload.c: New file.
23812         * config/nvptx/t-nvptx: Add build rules for it.
23813         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
23814         (extra_programs): Add mkoffload.
23815         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
23816         function.
23817         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
23819 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
23821         PR middle-end/64809
23822         * cfgexpand.c (reorder_operands): Skip debug gimples.
23824 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
23826         PR tree-optimization/64277
23827         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
23828         range info when possible to refine estimation.
23830 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23832         PR tree-optimization/64718
23833         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
23834         be a 16bit unsigned integer when n->range is 16.
23835         (bswap_replace): Convert src to that type if necessary for all bswap
23836         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
23837         set in pass_optimize_bswap::execute ().
23839 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
23841         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
23842         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
23843         integer and floating point variants.
23844         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
23846 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
23848         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
23849         for all vector modes.
23851 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23853         PR bootstrap/64612
23854         * doc/sourcebuild.texi (comdat_group): Document.
23856 2015-01-28  Terry Guo  <terry.guo@arm.com>
23858         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
23860 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
23862         * toplev.c (print_version): Add param "show_global_state", and
23863         only print GGC and plugin information if it is true.
23864         (init_asm_output): Pass in "true" for the new param when calling
23865         print_version.
23866         (process_options): Likewise.
23867         (toplev::main): Likewise.
23868         * toplev.h (print_version): Add new param to decl.
23870 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23872         PR ipa/60871
23873         PR ipa/64139
23874         * tree.c (lookup_binfo_at_offset): New function.
23875         (get_binfo_at_offset): Use it.
23877 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23879         PR ipa/64282
23880         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
23881         on vtable being vtable.
23883 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23885         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
23886         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
23887         -mhotpatch= option.
23888         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
23889         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
23890         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
23891         Renamed.
23892         (s390_hotpatch_trampoline_halfwords_max): Renamed.
23893         (s390_hotpatch_hw_max): New name.
23894         (s390_hotpatch_trampoline_halfwords): Renamed.
23895         (s390_hotpatch_hw_before_label): New name.
23896         (get_hotpatch_attribute): Removed.
23897         (s390_hotpatch_hw_after_label): New name.
23898         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
23899         attribute.
23900         (s390_attribute_table): Ditto.
23901         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
23902         (s390_function_num_hotpatch_hw): New name.
23903         Remove special handling of inline functions and hotpatching.
23904         Return number of nops before and after the function label.
23905         (s390_can_inline_p): Removed.
23906         (s390_asm_output_function_label): Emit a configurable number of nops
23907         after the function label.
23908         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
23909         (TARGET_CAN_INLINE_P) Removed.
23910         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
23912 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23913             Jiong Wang  <jiong.wang@arm.com>
23915         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
23916         of scratch reg.
23917         (cb<optab><mode>1): Likewise.
23918         * config/aarch64/iterators.md (bcond): New define_code_attr.
23920 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23922         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
23923         memory accesses.
23925 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23927         * config/s390/s390.c (s390_register_move_cost): Increase costs for
23928         FPR->GPR moves.
23930 2015-01-27  Richard Biener  <rguenther@suse.de>
23932         * tree-vrp.c (update_value_range): Intersect the range with
23933         old recorded SSA name range information.
23935 2015-01-27  Nick Clifton  <nickc@redhat.com>
23937         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
23938         BC, DE and HL registers directly, not via AX.
23939         When decrementing the stack pointer by a large amount, transfer SP
23940         into AX and perform the subtraction there.
23941         (rl78_expand_epilogue): Perform the inverse of the above
23942         enhancements.
23944 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23946         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
23948 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23949             Yury Gribov  <y.gribov@samsung.com>
23951         PR ubsan/64741
23952         * ubsan.c (ubsan_source_location): Refactor code.
23953         (ubsan_type_descriptor): Update type size. Refactor code.
23955 2015-01-27  Richard Biener  <rguenther@suse.de>
23957         PR tree-optimization/56273
23958         PR tree-optimization/59124
23959         PR tree-optimization/64277
23960         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
23961         from the first VRP pass.
23963 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23965         PR ipa/64776
23966         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
23967         handle the first argument in the same loop as all the other arguments.
23969         PR rtl-optimization/61058
23970         * jump.c (cleanup_barriers): Update basic block boundaries
23971         if BLOCK_FOR_INSN is non-NULL on PREV.
23973 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
23975         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
23976         bounds narrowing, already instrumented calls and calls to
23977         not instrumentable functions.
23979 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23981         PR tree-optimization/64807
23982         * wide-int.cc (wi::divmod_internal): Clear
23983         b_dividend[dividend_blocks_needed].
23985 2015-01-26  DJ Delorie  <dj@redhat.com>
23987         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
23988         volatile memory references.
23990 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
23992         PR target/49263
23993         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
23994         remove_insn.
23995         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
23996         shifts if it already fits into K08.
23998 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
24000         PR ipa/64730
24001         * ipa-inline.c (inline_small_functions): Print "unknown" even
24002         if edge->call_stmt is non-NULL, but has builtins or unknown
24003         location.
24005         PR middle-end/64421
24006         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
24007         with asterisk, skip the first character.
24009 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
24011         PR target/64806
24012         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
24013         order change.
24015 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
24017         PR target/64795
24018         * config/i386/i386.md (*movdi_internal): Also check operand 0
24019         to determine TYPE_LEA operand.
24020         (*movsi_internal): Ditto.
24022 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
24024         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
24025         OPTION_MASK_QUAD_MEMORY_ATOMIC.
24027 2015-01-26  Renlin Li  <renlin.li@arm.com>
24029         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
24030         the comment.
24031         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
24032         for higher part.
24034 2015-01-26  Richard Biener  <rguenther@suse.de>
24036         PR middle-end/64764
24037         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
24038         combining two BIT_AND_EXPR predicates.
24040 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
24042         PR bootstrap/64754
24043         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
24045 2015-01-26  Terry Guo  <terry.guo@arm.com>
24047         * config/arm/arm.c (arm_file_start): Update the assignment of
24048         Tag_ABI_HardFP_use.
24050 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
24052         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
24053         pipeline model.
24054         config/arm/arm.md: Include the new Cortex-A57 model.
24055         (generic_sched): Don't use generic_sched when tuning for
24056         Cortex-A57.
24058 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
24059             Uros Bizjak  <ubizjak@gmail.com>
24061         * config/i386/i386.c (get_builtin_code_for_version): Add
24062         support for BMI and BMI2 multiversion functions.
24064 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24066         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
24067         (extract_bit_field): Likewise.
24068         (extract_low_bits): Likewise.
24069         (expand_mult): Likewise.
24070         (expand_mult_highpart_adjust): Likewise.
24072 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
24074         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
24075         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
24076         * config/i386/i386.c (processor_model): Add
24077         M_INTEL_COREI7_BROADWELL.
24078         (arch_names_table): Add "broadwell".
24080 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
24082         PR target/49263
24083         PR target/53987
24084         PR target/64345
24085         PR target/59533
24086         PR target/52933
24087         PR target/54236
24088         PR target/51244
24089         * config/sh/sh-protos.h
24090         (sh_extending_set_of_reg::can_use_as_unextended_reg,
24091         sh_extending_set_of_reg::use_as_unextended_reg,
24092         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
24093         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
24094         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
24095         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
24096         (sh_treg_insns): New class.
24097         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
24098         (scope_counter): New class.
24099         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
24100         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
24101         sh_extending_set_of_reg::can_use_as_unextended_reg,
24102         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
24103         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
24104         sh_split_treg_set_expr): New functions.
24105         (addsubcosts): Handle treg_set_expr.
24106         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
24107         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
24108         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
24109         (sh_insn_operands_modified_between_p): Make non-static.
24110         * config/sh/predicates.md (zero_extend_movu_operand): Allow
24111         simple_mem_operand in addition to displacement_mem_operand.
24112         (zero_extend_operand): Don't allow zero_extend_movu_operand.
24113         (treg_set_expr, treg_set_expr_not_const01,
24114         arith_reg_or_treg_set_expr): New predicates.
24115         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
24116         arith_or_int_operand instead of logical_operand.  Convert to
24117         insn_and_split.  Try to optimize constant operand in splitter.
24118         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
24119         (*tstqi_t_zero): Delete.
24120         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
24121         (tstsi_t_and_not): Delete.
24122         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
24123         Convert to insn_and_split.
24124         (unnamed split, tstsi_t_zero_extract_xor,
24125         tstsi_t_zero_extract_subreg_xor_little,
24126         tstsi_t_zero_extract_subreg_xor_big): Delete.
24127         (*tstsi_t_shift_mask): New insn_and_split.
24128         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
24129         to recombine with surrounding insns when splitting.
24130         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
24131         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
24132         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
24133         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
24134         (*cbranch_div0s: Delete.
24135         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24136         Try to recombine with surrounding insns when splitting.  Add operand
24137         order variants.
24138         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
24139         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
24140         *addc_r_r_msb, *addc_2r_msb): Delete.
24141         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
24142         order variant.
24143         (*addc_negreg_t): New insn_and_split.
24144         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24145         Try to recombine with surrounding insns when splitting.
24146         Add operand order variants.
24147         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
24148         insn_and_split patterns.
24149         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
24150         surrounding insns when splitting.
24151         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
24152         (*rotcl): Likewise.  Add zero_extract variant.
24153         (*ashrsi2_31): New insn_and_split.
24154         (*negc): Convert to insn_and_split.  Use treg_set_expr.
24155         (*zero_extend<mode>si2_disp_mem): Update comment.
24156         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
24157         condition.
24158         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
24159         with surrounding insns when splitting.
24160         (any_treg_expr_to_reg): New insn_and_split.
24161         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
24162         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
24163         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
24164         *zero_extract_2): New single bit zero extract patterns.
24165         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
24166         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
24167         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
24168         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
24169         set destination.
24170         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
24171         register_operand for set source.
24173 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
24175         * i386.opt (prefetch_sse): New targetsave.
24176         * i386.c (ix86_function_specific_save): Save prefetch_sse.
24177         (ix86_function_specific_restore): Restore prefetch_sse and initialize
24178         ix86_cost/ix86_tune_cost.
24180 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24182         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
24183         Support the JIT by using 0 as the language type.
24185 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
24187         PR target/64317
24188         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
24189         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
24190         (mark_regno_live, process_bb_lives): Pass new parameter value to
24191         make_hard_regno_born.
24193 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24195         PR rtl-optimization/63637
24196         PR rtl-optimization/60663
24197         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
24198         if elt->cost is MAX_COST for ASM_OPERANDS.
24199         (find_sets_in_insn): Fix up comment typo.
24200         (cse_insn): Don't set src_volatile for all non-volatile
24201         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
24202         or with "memory" clobber.  Set elt->cost to MAX_COST
24203         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
24204         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
24206 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
24208         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
24209         alternative 1.
24211 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
24213         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
24214         libgcc/config/i386/elf-lib.h.
24216 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24218         PR driver/64737
24219         * gcc.c (print_configuration): Don't print a blank line at the end
24220         here...
24221         (run_attempt): ... but here unstead.
24223         PR middle-end/64734
24224         * omp-low.c (scan_sharing_clauses): Don't ignore
24225         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
24226         on target data/update constructs.
24228 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24230         PR target/50928
24231         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
24232         (DEBUG_RELOAD): Removed define.
24233         (m32c_limit_reload_class): Enable traces with if DEBUG0.
24234         (m32c_function_arg): Added a type cast.
24235         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
24236         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
24237         * config/m32c/bitops.md (andqi3_16): Likewise.
24238         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
24239         (push_a01_l): Likewise.
24241 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24243         PR jit/64721
24244         * main.c (main): Construct toplev instances with init_signals=true.
24245         * toplev.c (general_init): Add param "init_signals", and use it to
24246         conditionalize the calls to signal and host_hooks.extra_signals.
24247         (toplev::toplev): Add param "init_signals".
24248         (toplev::main): When invoking general_init, pass m_init_signals
24249         to control whether signal-handlers are installed.
24250         * toplev.h (toplev::toplev): Add param "init_signals".
24251         (toplev::m_init_signals): New field.
24253 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24255         PR jit/64722
24256         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
24257         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
24258         latter may be affected by the former (e.g. on i686).
24260 2015-01-23  Martin Liska  <mliska@suse.cz>
24262         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
24263         false positive during profiledbootstrap.
24265 2015-01-23  Tom de Vries  <tom@codesourcery.com>
24267         PR libgomp/64672
24268         * lto-opts.c (lto_write_options): Output non-explicit conservative
24269         -fno-openacc.
24270         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
24271         (append_compiler_options): Pass -fopenacc through.
24273 2015-01-23  Tom de Vries  <tom@codesourcery.com>
24275         PR libgomp/64707
24276         * lto-opts.c (lto_write_options): Output non-explicit conservative
24277         -fno-openmp.
24278         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
24279         (append_compiler_options): Pass -fopenmp through.
24281 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24283         PR debug/64511
24284         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
24285         GTY markup.
24287         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
24288         * diagnostic.def (DK_ICE_NOBT): New kind.
24289         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
24290         like DK_ICE, but never print backtrace.
24291         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
24292         (internal_error_no_backtrace): New function.
24293         * gcc.c (execute): Use internal_error_no_backtrace instead of
24294         internal_error.
24296 2015-01-22  Jeff Law  <law@redhat.com>
24298         PR target/52076
24299         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
24300         improve code density for small immediate to memory case.
24301         (insv): Better handle bitfield assignments when the field is
24302         being set to all ones.
24303         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
24304         operand predicate.
24306 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24307             Jakub Jelinek  <jakub@redhat.com>
24309         PR middle-end/64729
24310         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
24311         for !TARGET_LIBC_PROVIDES_SSP version and
24312         -fstack-protector-{all,strong,explicit} otherwise.
24313         * config/freebsd.h (LINK_SSP_SPEC): Handle
24314         -fstack-protector-{strong,explicit}.
24316 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
24317             H.J. Lu  <hongjiu.lu@intel.com>
24319         PR ipa/64694
24320         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
24321         heap.
24323 2015-01-22  Wei Mi  <wmi@google.com>
24325         PR rtl-optimization/64557
24326         * dse.c (record_store): Call get_addr for mem_addr.
24327         (check_mem_read_rtx): Likewise.
24329 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24331         * fold-const.c (const_binop): Add early return for non-tcc_binary.
24333 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
24335         * toplev.c (init_local_tick): Process the failure when read
24336         fails for random_seed.
24338         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
24339         'pretty_name' to avoid memory overflow.
24341 2015-01-22  Richard Biener  <rguenther@suse.de>
24343         PR middle-end/64728
24344         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
24345         abnormal coalescing on undefined SSA names.
24347 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
24349         PR target/64688
24350         PR target/64477
24351         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
24352         for alternative 3.
24353         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
24355 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
24357         PR middle-end/63325
24358         * fold-const.c (fold_checksum_tree): Don't include value of
24359         expr->decl_with_vis.symtab_node in the checksum.
24361 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24363         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
24365 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24367         PR driver/64690
24368         * gcc.c (insert_comments): New function.
24369         (try_generate_repro): Call it.
24370         (append_text): Removed.
24372 2015-01-22  Richard Biener  <rguenther@suse.de>
24374         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
24375         with IL incompatible options.  Properly honor user optimize
24376         attributes.
24378 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
24380         PR rtl-optimization/64682
24381         * combine.c (distribute_notes): When moving a death note for
24382         a register that is set in the new I2, make sure to put it
24383         before that new I2.
24385 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
24387         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
24388         not TARGET_DEFAULT.
24390 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
24392         PR debug/64511
24393         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
24394         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
24395         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
24397         PR sanitizer/64706
24398         * doc/invoke.texi (-fsanitize=vptr): Document.
24400         PR rtl-optimization/62078
24401         * dse.c: Include cfgcleanup.h.
24402         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
24403         anything call purge_all_dead_edges and cleanup_cfg at the end
24404         of the pass.
24406 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
24408         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
24409         edges.
24411 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24413         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
24414         decl attribute.
24416 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24417             Tejas Belagod <Tejas.Belagod@arm.com>
24419         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
24420         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
24421         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
24422         Removed.
24424 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24425             Tejas Belagod <Tejas.Belagod@arm.com>
24427         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
24428         (aarch64_reverse_mask): New decls.
24429         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
24430         (insn_count): New mode_attr.
24431         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
24432         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
24433         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
24434         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
24435         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
24436         (aarch64_simd_st4): New patterns.
24437         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
24438         (aarch64_reverse_mask): New functions.
24440 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
24442         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
24443         Declare.
24444         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
24445         addressing modes for BE.
24446         (aarch64_print_operand): Add 'R' specifier.
24447         (aarch64_simd_disambiguate_copy): Delete.
24448         (aarch64_simd_emit_reg_reg_move): New function.
24449         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
24450         in define_splits for structural moves.
24451         (mov<mode>): Use less restrictive predicates.
24452         (*aarch64_mov<mode>): Simplify and only allow for LE.
24453         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
24455 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
24457         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
24459 2015-01-21  Richard Henderson  <rth@redhat.com>
24461         PR target/64669
24462         * ccmp.c (used_in_cond_stmt_p): Remove.
24463         (expand_ccmp_expr): Don't use it.
24465 2015-01-21  Nick Clifton  <nickc@redhat.com>
24467         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
24468         PARALLELs.
24470 2015-01-21  Richard Biener  <rguenther@suse.de>
24472         PR middle-end/64313
24473         * tree-core.h (builtin_info, builtin_info_type): Turn from
24474         an object with two arrays into an array of an object with
24475         decl and two flags, implicit_p and declared_p.
24476         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24477         set_builtin_decl, set_builtin_decl_implicit_p,
24478         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
24479         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
24480         * builtins.c (builtin_info): Adjust.
24481         * gimplify.c (gimplify_addr_expr): References to builtins
24482         that have been declared by the user makes them eligible for
24483         use by the compiler.  Call set_builtin_decl_implicit_p on them.
24485 2015-01-20  Jeff Law  <law@redhat.com>
24487         PR target/59946
24488         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
24489         allow pc-relative addresses in operand predicates or constraints.
24491 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
24493         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
24494         neon on aarch32 processors for stringops.
24496 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24498         PR ipa/63576
24499         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
24501 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24503         PR lto/45375
24504         * ipa-inline.c: Include lto-streamer.h
24505         (report_inline_failed_reason): Output source file differences and
24506         flags on optimization/target node mismatch.
24507         (can_inline_edge_p): Consider caller to be the outer inline function;
24508         be less restrictive about matching opimize and optimize_size attributes.
24509         (inline_account_function_p): Break out from ...
24510         (inline_small_functions): ... here.
24511         * ipa-inline-transform.c (clone_inlined_nodes): Use
24512         inline_account_function_p.
24513         (inline_call): Use optimize attribution; use inline_account_function_p.
24514         (inline_transform): Use opt_for_fn.
24515         * ipa-inline.h (inline_account_function_p): Declare.
24517 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
24519         PR debug/64663
24520         * dwarf2out.c (decl_piece_node): Don't put bitsize into
24521         mode if bitsize <= 0.
24522         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
24523         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
24524         sizes and positions.
24526 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
24528         * config/nios2/nios2.c (nios2_asm_file_end): Implement
24529         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
24530         needed.
24531         (TARGET_ASM_FILE_END): Define.
24533 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24535         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
24536         (struct tune_params): Use the enum.
24537         * arm.c (arm_*_tune): Update.
24538         (arm_option_override): Update.
24540 2015-01-20  Richard Biener  <rguenther@suse.de>
24542         PR ipa/64684
24543         * ipa-reference.c (add_static_var): Inline ...
24544         (analyze_function): ... here after splitting out from ...
24545         (is_proper_for_analysis): ... this.
24547 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
24549         PR target/64149
24550         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
24551         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
24552         replace the conditional with it's true branch.
24553         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
24554         (arm_lra_p): Remove.
24556 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
24558         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
24560 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24562         * config/tilegx/mul-tables.c: Move symtab.h include after
24563         coretypes.h include.
24564         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
24565         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
24566         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
24567         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
24568         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24570 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
24572         PR bootstrap/64676
24573         Revert:
24574         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24576         PR rtl-optimization/64081
24577         * loop-iv.c (def_pred_latch_p): New function.
24578         (latch_dominating_def): Allow specific cases with non-single
24579         definitions.
24580         (iv_get_reaching_def): Likewise.
24581         (check_complex_exit_p): New function.
24582         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24583         with exits not executing on any iteration.
24585 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24587         PR lto/45375
24588         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
24589         to set branch cost.
24591 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24593         PR lto/45375
24594         * i386.c (gate): Check flag_expensive_optimizations and
24595         optimize_size.
24596         (ix86_option_override_internal): Drop optimize_size condition
24597         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
24598         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
24599         MASK_PREFER_AVX128.
24600         (ix86_avx256_split_vector_move_misalign,
24601         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
24602         * sse.md (all uses of TARGET_PREFER_AVX128): Add
24603         optimize_insn_for_speed_p check.
24605 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
24607         * config/mips/mips.h (FP_ASM_SPEC): New define.
24608         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
24609         instead.
24611 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
24613         PR target/53988
24614         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
24615         nullptr for insn when reaching the first insn.
24616         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
24617         (sh_insn_operands_modified_between_p): Add nullptr check.
24618         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
24619         sign extending mem load if the insn contains any UNSPEC or
24620         UNSPEC_VOLATILE.
24622 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24624         * params.def (inline-unit-growth): Drop to 15%.
24625         * invoke.texi (inline-unit-growth): Document change.
24627 2015-01-19  Martin Liska  <mliska@suse.cz>
24629         PR ipa/64668
24630         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
24631         function for second argument of OBJ_TYPE_REF.
24633 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24635         PR ipa/64218
24636         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
24637         whether function is an alias.
24639 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24641         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
24642         cases.
24644 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
24646         PR rtl-optimization/64671
24647         * lra-remat.c (operand_to_remat): Don't consider jump and call
24648         insns.
24650 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
24652         PR target/59828
24653         * config/rs6000/default64.h: Include rs6000-cpus.def.
24654         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
24655         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
24656         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
24657         and POWER8.
24658         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
24659         POWER8.
24660         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
24661         pseudo-op to specify assembler dialect.
24663 2015-01-19  Martin Liska  <mliska@suse.cz>
24665         PR ipa/64664
24666         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
24667         Handle safe potentially removed nodes during filtering.
24669 2015-01-19  Martin Liska  <mliska@suse.cz>
24671         * doc/extend.texi (no_icf): Add new attribute description.
24672         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
24673         where the pass attempts to merge a function with no_icf attribute.
24675 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24677         PR target/64532
24678         * doc/md.texi (ARM Options): Document register constraints.
24680 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
24681             Andrew Pinski  <apinski@cavium.com>
24683         PR target/64304
24684         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
24685         (ashl<mode>3): Don't expand if operands[2] is not constant.
24687 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24689         PR target/64448
24690         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
24691         Match xor-and-xor RTL pattern.
24693 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24695         PR rtl-optimization/64081
24696         * loop-iv.c (def_pred_latch_p): New function.
24697         (latch_dominating_def): Allow specific cases with non-single
24698         definitions.
24699         (iv_get_reaching_def): Likewise.
24700         (check_complex_exit_p): New function.
24701         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24702         with exits not executing on any iteration.
24704 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
24706         * common.opt (fgraphite): Fix a typo.
24708 2015-01-19  Felix Yang  <felix.yang@huawei.com>
24710         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
24711         pattern.
24712         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
24713         uminp, smax_nanp, smin_nanp): New builtins.
24714         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
24715         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
24716         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
24717         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
24718         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
24719         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
24720         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
24721         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
24722         vpminnms_f32): Rewrite using builtin functions.
24724 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
24726         PR libgomp/64625
24727         * omp-low.c (offload_symbol_decl): Remove variable.
24728         (get_offload_symbol_decl): Remove function.
24729         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
24730         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
24731         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
24732         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
24733         BUILT_IN_GOACC_UPDATE don't pass it at all.
24735 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24737         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
24738         callers.
24740 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24742         * ipa-chkp.c (chkp_produce_thunks): Add early param
24743         to split thunks production into two passes.  Keep
24744         'always_inline' function bodies after the first pass.
24745         (pass_data_ipa_chkp_early_produce_thunks): New.
24746         (pass_ipa_chkp_early_produce_thunks): New.
24747         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
24748         chkp_produce_thunks signature.
24749         (make_pass_ipa_chkp_early_produce_thunks): New.
24750         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
24751         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
24752         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
24754 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24756         * cgraph.c (cgraph_node::dump): Dump profile flags.
24758 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
24760         PR target/64652
24761         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
24762         reg appear first in the parallel.
24764 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24766         * ipa-reference.c (set_reference_optimization_summary,
24767         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
24768         disabled.
24769         (ignore_module_statics): New static var.
24770         (propagate_bits): If ipa-reference is disabled, do not look into local
24771         properties.
24772         (analyze_function): Disable analysis when ipa_reference is disabled.
24773         (generate_summary): Do not dump when reference is disabled;
24774         collect vars accessed from functions with ipa-reference disabled.
24775         (get_read_write_all_from_node): When ipa-reference is disabled, use the
24776         node flags.
24777         (gate): Enable for LTO.
24778         (ignore_edge_p): New function.
24779         (propagate): Skip functions w/o ipa-reference analysis.
24780         * optc-save-gen.awk: Handle optimize_debug correctly.
24781         * opth-gen.awk: Likewise.
24782         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
24783         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
24784         fira-share-save-slots, fira-share-spill-slots,
24785         fmodulo-sched-allow-regmoves, fpartial-inlining,
24786         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
24787         ftracer, ftree-parallelize-loops, fassociative-math,
24788         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
24789         Optimization
24790         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
24791         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
24792         Optimization.
24793         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
24794         Fix for IPA.
24796 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24798         PR ipa/64378
24799         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
24800         flag correctly.
24801         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
24803 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
24805         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
24806         Remove duplicate option listings.
24808 2015-01-18  Felix Yang  <felix.yang@huawei.com>
24810         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
24811         (autofdo_source_profile::get_callsite_total_count,
24812         function_instance::get_function_instance_by_decl,
24813         string_table::get_index, string_table::get_index_by_decl,
24814         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
24815         Fix comment typos. Reformatting and minor code rearrangement.
24817 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24819         * config/rs6000/rs6000.md (probe_stack): Delete.
24820         (probe_stack_address): New.
24822 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24824         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
24825         to test for 32-bit ABIs, not !TARGET_POWERPC64.
24827 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24829         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
24830         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
24831         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
24832         snafu.
24833         (rs6000_libcall_value): Use the new function.
24835 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
24837         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
24839 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24841         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
24842         implement a more precise life analysis for it during backward scan.
24844 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
24846         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
24848 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
24850         PR rtl-optimization/52773
24851         * calls.c (emit_library_call_value): When pushing arguments use
24852         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
24853         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
24854         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
24856 2015-01-17  Jeff Law  <law@redhat.com>
24858         PR rtl-optimization/32790
24859         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
24860         not ZERO_EXTEND in SET_DESTs.
24862 2015-01-17  Alan Modra  <amodra@gmail.com>
24864         * cprop.c (do_local_cprop): Revert last change.
24866 2015-01-16  DJ Delorie  <dj@redhat.com>
24867             Nick Clifton  <nickc@redhat.com>
24869         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
24870         (addhi3_real): Likewise.  Fix [HL+0] syntax.
24871         (subqi3_real): Likewise.
24872         (subhi3_real): Likewise.
24873         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
24874         (cbranchhi4_real): Likewise.
24875         (cbranchhi4_real_inverted): Likewise.
24876         (cbranchsi4_real_lt): Likewise.
24877         (cbranchsi4_real_ge): Likewise.
24878         (cbranchsi4_real_ge): Likewise.
24879         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
24880         (sub<mode>3_virt): Likewise.
24881         (cbranchqi4_virt): Likewise.
24882         (cbranchhi4_virt): Likewise.
24883         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
24884         always use '[reg+imm]' even when imm is zero.
24885         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
24886         (rl78_general_operand): New.
24887         (rl78_nonimmediate_operand): New.
24888         (rl78_nonfar_operand): Use them.
24889         (rl78_nonfar_nonimm_operand): Likewise.
24890         (rl78_stack_based_mem): Fix.
24891         * config/rl78/constraints.md (Ibqi): New.
24892         (IBqi): New.
24893         (Wsa): New.
24894         (Wsf): New.
24895         (Cs1): Fix.
24896         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
24897         (iorqi3): Likewise.
24898         (xorqi3): Likewise.
24899         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
24901         * config/rl78/constrains (Qs8): New constraint.
24902         * config/rl78/rl78.c (rl78_flags_already_set): New function.
24903         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
24904         * config/rl78/rl78-real.md (update_Z): New attribute.
24905         Update patterns to set it.
24906         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
24907         shorter compare and branch sequence can be used.
24908         (cbranchhi4_real): Likewise.
24909         (cbranchhi4_real_inverted): Likewise.
24911         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
24912         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
24913         address space.
24914         * config/rl78/rl78.c (rl78_get_name_encoding): New.
24915         (rl78_option_override): Allow -mes0 only if C.
24916         (characterize_address): Support subregs of symbol_refs.
24917         (rl78_addr_space_address_mode): Move.  Add __near.
24918         (rl78_far_p): Likewise.
24919         (rl78_addr_space_pointer_mode): Likewise.
24920         (rl78_as_legitimate_address): Likewise.
24921         (rl78_addr_space_subset_p): Likewise.
24922         (rl78_addr_space_convert): Likewise.
24923         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
24924         symbols with -mes0.
24925         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
24926         addressing.
24927         (rl78_alloc_physical_registers_op1): Change logic to prefer
24928         symbol[BC] addressing.
24929         (frodata_section): New.
24930         (rl78_asm_init_sections): Initialize it.
24931         (rl78_select_section): Put __far readonly symbols in .frodata.
24932         (rl78_make_type_far): New.
24933         (rl78_insert_attributes): Force all readonly symbols to be
24934         __far when -mes0.
24935         (rl78_asm_out_integer): New.
24936         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
24937         * config/rl78/rl78.opt (-mes0): New.
24939         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
24940         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24941         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24942         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
24943         (rl78_saddr_p): New.
24944         (rl78_output_aligned_common): New.
24945         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
24946         (rl78_handle_saddr_attribute): New.
24947         (rl78_handle_naked_attribute): New.
24948         (rl78_attribute_table): Add saddr.
24949         (rl78_print_operand_1): Don't print '!' on saddr operands.
24950         (rl78_print_operand_1): Strip encodings.
24951         (rl78_sfr_p): New.
24952         (rl78_strip_name_encoding): New.
24953         (rl78_attrlist_to_encoding): New.
24954         (rl78_encode_section_info): New.
24955         (rl78_asm_init_sections): New.
24956         (rl78_select_section): New.
24957         (rl78_output_labelref): New.
24958         (rl78_output_aligned_common): New.
24959         (rl78_asm_out_integer): New.
24960         (rl78_asm_ctor_dtor): New.
24961         (rl78_asm_constructor): New.
24962         (rl78_asm_destructor): New.
24964         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
24965         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
24966         (transcode_memory_rtx): Update.
24967         (rl78_expand_epilogue): Use A_REG instead of 0.
24969 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24971         * config/arm/arm-protos.h (struct tune_params): New field
24972         sched_autopref_queue_depth.
24973         * config/arm/arm.c (sched-int.h): Include header.
24974         (arm_first_cycle_multipass_dfa_lookahead_guard,)
24975         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
24976         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
24977         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
24978         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
24979         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
24980         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
24981         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
24982         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
24983         * config/arm/t-arm (arm.o): Update.
24984         * haifa-sched.c (update_insn_after_change): Update.
24985         (rank_for_schedule): Use auto-prefetcher model, if requested.
24986         (autopref_multipass_init): New static function.
24987         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
24988         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
24989         variable for debug dumps.
24990         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
24991         (autopref_multipass_dfa_lookahead_guard): New global function that
24992         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
24993         (init_h_i_d): Update.
24994         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
24995         * sched-int.h (enum autopref_multipass_data_status): New const enum.
24996         (autopref_multipass_data_): Structure for auto-prefetcher data.
24997         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
24998         (struct _haifa_insn_data:autopref_multipass_data): New field.
24999         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
25000         (autopref_multipass_dfa_lookahead_guard): Declare.
25002 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25004         * rtlanal.c (get_base_term): Handle SCRATCH.
25006 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25008         * config/aarch64/aarch64.c
25009         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
25010         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25011         * config/arm/arm.c
25012         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
25013         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25015 2015-01-17  Alan Modra  <amodra@gmail.com>
25017         * cprop.c (do_local_cprop): Disallow replacement of fixed
25018         hard registers.
25020 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25022         PR target/62066
25023         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
25024         early return 0.
25026 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25028         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
25029         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
25031 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25033         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
25034         * config/arm/thumb1.md: ... Here.
25036 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25038         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
25039         TImode for TARGET_32BIT.
25041 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25043         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
25044         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
25045         as ...
25046         (rs6000_abi_word_mode): New function.
25048 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25050         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
25051         instead of UNITS_PER_WORD to describe the size of stack slots.
25053 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25055         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
25056         as rs6000_promote_function_mode.  Move comment to there.
25057         (rs6000_promote_function_mode): New function.
25059 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25061         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
25062         -mpowerpc64 is active.
25064 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25066         PR middle-end/64353
25067         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
25068         virtuals on start.
25070 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25072         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
25073         introduced in revision 219724.
25075 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25076             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25078         PR target/64263
25079         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
25080         destination is not a GP reg.
25081         (*movdi_aarch64): Likewise.
25083 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
25085         PR target/64623
25086         * config/rs6000/default64.h: Revert ISA change.
25088 2015-01-16  Richard Biener  <rguenther@suse.de>
25090         PR middle-end/64614
25091         * tree-ssa-uninit.c: Include tree-cfg.h.
25092         (MAX_SWITCH_CASES): New define.
25093         (convert_control_dep_chain_into_preds): Handle switch statements.
25094         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
25095         (normalize_one_pred_1): Do not split bit-manipulations.
25096         Record (x & CST).
25098 2015-01-16  Richard Biener  <rguenther@suse.de>
25100         PR tree-optimization/64568
25101         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
25102         complex load rewriting for TARGET_MEM_REFs.
25104 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
25106         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
25108 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
25110         PR target/64149
25111         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
25112         variable.
25113         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
25114         (aarch64_lra_p): Remove.
25116 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25118         PR target/64363
25119         * ipa-chkp.h (chkp_instrumentable_p): New.
25120         * ipa-chkp.c: Include tree-inline.h.
25121         (chkp_instrumentable_p): New.
25122         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
25123         Fix processing of not instrumentable functions.
25124         (chkp_versioning): Use chkp_instrumentable_p. Warn about
25125         not instrumentable functions.
25126         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
25127         chkp_instrumentable_p.
25128         * tree-inline.h (copy_forbidden): New.
25129         * tree-inline.c (copy_forbidden): Not static anymore.
25131 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25133         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
25134         ptr1, ptr2 unused.
25136 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25138         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
25139         type OP_OUT to OP_INOUT.
25141 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25143         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
25144         (high x) y) to y if x and y have the same base.
25146 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25148         * config/arm/cortex-a57.md: New.
25149         * config/aarch64/aarch64.md: Include it.
25150         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
25151         * config/aarch64/aarch64-tune.md: Regenerate.
25153 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
25155         PR target/64015
25156         * ccmp.c (expand_ccmp_next): New function.
25157         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
25158         and compare insn sequence.
25159         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
25160         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
25161         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
25162         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
25163         (*ccmp_ior): Changed to ccmp_ior<mode>.
25164         (cmp<mode>): New pattern.
25165         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
25166         parameters.
25167         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
25169 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
25171         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
25172         _mm256_bsrli_epi128): New.
25173         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
25175 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
25177         * expmed.c (store_bit_field_using_insv): Improve warning message.
25178         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
25180 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
25182         PR rtl-optimization/64011
25183         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
25184         there is partial overflow.
25186 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25188         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
25189         prototype.
25190         (nds32_expand_epilogue_v3pop): Likewise.
25191         * config/nds32/nds32.md (sibcall): Define this for sibling call
25192         optimization.
25193         (sibcall_register): Likewise.
25194         (sibcall_immediate): Likewise.
25195         (sibcall_value): Likewise.
25196         (sibcall_value_register): Likewise.
25197         (sibcall_value_immediate): Likewise.
25198         (sibcall_epilogue): Likewise.
25199         (epilogue): Pass false to indicate this is not a sibcall epilogue.
25200         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
25201         (nds32_expand_epilogue_v3pop): Likewise.
25203 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25205         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
25206         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
25207         (return_internal): New.
25208         (return): Define this named pattern.
25209         (simple_return): Define this named pattern.
25210         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
25211         pattern instead of unspec_volatile_func_return.
25212         (nds32_expand_epilogue_v3pop): Likewise.
25213         (nds32_can_use_return_insn): New function.
25215 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25217         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
25218         * config/nds32/nds32.md (pop25return): New.
25219         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
25220         pop25return pattern.
25222 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25224         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
25225         -mforbid-fp-as-gp, and -mex9 options.
25227 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25229         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
25230         remove -mgp-direct option.
25232 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25234         * doc/invoke.texi (--param early-inlining-insns): Update default value.
25235         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
25237 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25239         * ipa-inline.c (inline_small_functions): Work around hints
25240         cache issue.
25242 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
25244         PR target/59710
25245         * doc/invoke.texi (Option Summary): Document new Nios II
25246         -mgpopt= syntax.
25247         (Nios II Options): Likewise.
25248         * config/nios2/nios2.opt: Add -mgpopt= option support.
25249         Modify existing -mgpopt and -mno-gpopt options to be aliases.
25250         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
25251         * config/nios2/nios2.c (nios2_option_override): Adjust
25252         -mgpopt defaulting.
25253         (nios2_in_small_data_p): Return true for explicit small data
25254         sections even with -G0.
25255         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
25256         option choices.
25258 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25260         PR ipa/64612
25261         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
25262         of comdat locals.
25263         (inline_call): Fix removal of aliases.
25265 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
25267         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
25268         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
25269         * opts.c (common_handle_option): Add -fsanitize=vptr.
25270         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
25271         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
25272         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
25273         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
25274         (ubsan_expand_vptr_ifn): New prototype.
25275         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
25276         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
25277         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
25278         expand_LOOP_VECTORIZED): Make argument nameless, remove
25279         ATTRIBUTE_UNUSED.
25280         (expand_UBSAN_VPTR): New function.
25281         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
25282         in fn spec.
25283         (UBSAN_VPTR): New internal function.
25284         * sanopt.c (tree_map_traits): Renamed to ...
25285         (sanopt_tree_map_traits): ... this.
25286         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
25287         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
25288         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
25289         (maybe_optimize_ubsan_vptr_ifn): New function.
25290         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
25291         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
25292         -fsanitize=vptr.
25293         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
25294         internal calls like pure functions for aliasing, even when they
25295         have other side-effects that prevent making them ECF_PURE.
25296         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
25297         (ubsan_expand_vptr_ifn): New function.
25299 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
25301         PR rtl-optimization/64110
25302         * stmt.c (parse_output_constraint): Process '^' and '$'.
25303         (parse_input_constraint): Ditto.
25304         * lra-constraints.c (process_alt_operands): Process the new
25305         constraints.
25306         * ira-costs.c (record_reg_classes): Process the new constraint
25307         '^'.
25308         * genoutput.c (indep_constraints): Add '^' and '$'.
25309         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
25310         * doc/md.texi: Add description of the new constraints.
25312 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
25313             Bernd Schmidt  <bernds@codesourcery.com>
25314             Cesar Philippidis  <cesar@codesourcery.com>
25315             James Norris  <jnorris@codesourcery.com>
25316             Tom de Vries  <tom@codesourcery.com>
25317             Ilmir Usmanov  <i.usmanov@samsung.com>
25318             Dmitry Bocharnikov  <dmitry.b@samsung.com>
25319             Evgeny Gavrin  <e.gavrin@samsung.com>
25320             Jakub Jelinek  <jakub@redhat.com>
25322         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
25323         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25324         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25325         New function types.
25326         * builtins.c: Include "gomp-constants.h".
25327         (expand_builtin_acc_on_device): New function.
25328         (expand_builtin, is_inexpensive_builtin): Handle
25329         BUILT_IN_ACC_ON_DEVICE.
25330         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
25331         New macros.
25332         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
25333         flag_openmp.
25334         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
25335         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
25336         i386/intelmic-offload.h.
25337         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
25338         to libgomp and its dependencies.
25339         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
25340         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25341         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25342         * config/ia64/hpux.h (LIB_SPEC): Likewise.
25343         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25344         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25345         * doc/generic.texi: Update for OpenACC changes.
25346         * doc/gimple.texi: Likewise.
25347         * doc/invoke.texi: Likewise.
25348         * doc/sourcebuild.texi: Likewise.
25349         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
25350         GF_OMP_FOR_KIND_OACC_LOOP.
25351         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
25352         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
25353         GF_OMP_TARGET_KIND_OACC_UPDATE,
25354         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25355         Dump more data.
25356         * gimple.c: Update comments for OpenACC changes.
25357         * gimple.def: Likewise.
25358         * gimple.h: Likewise.
25359         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
25360         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25361         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
25362         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25363         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
25364         appropriate place.
25365         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
25366         * gimplify.c: Include "gomp-constants.h".
25367         Update comments for OpenACC changes.
25368         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
25369         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
25370         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25371         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
25372         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25373         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25374         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
25375         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25376         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
25377         OMP_CLAUSE_SEQ.
25378         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
25379         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25380         OMP_CLAUSE_SET_MAP_KIND.
25381         (gimplify_oacc_cache): New function.
25382         (gimplify_omp_for): Handle OACC_LOOP.
25383         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
25384         OACC_DATA.
25385         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
25386         OACC_EXIT_DATA, OACC_UPDATE.
25387         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
25388         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
25389         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
25390         (gimplify_body): Consider flag_openacc next to flag_openmp.
25391         * lto-streamer-out.c: Include "gomp-constants.h".
25392         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
25393         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
25394         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
25395         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
25396         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
25397         (BUILT_IN_ACC_ON_DEVICE): New builtins.
25398         * omp-low.c: Include "gomp-constants.h".
25399         Update comments for OpenACC changes.
25400         (struct omp_context): Add reduction_map, gwv_below, gwv_this
25401         members.
25402         (extract_omp_for_data, use_pointer_for_field, install_var_field)
25403         (new_omp_context, delete_omp_context, scan_sharing_clauses)
25404         (create_omp_child_function, scan_omp_for, scan_omp_target)
25405         (check_omp_nesting_restrictions, lower_reduction_clauses)
25406         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
25407         Update for OpenACC changes.
25408         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
25409         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
25410         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
25411         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25412         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
25413         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
25414         OMP_CLAUSE_MAP_*.
25415         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25416         Handle GF_OMP_FOR_KIND_OACC_LOOP.
25417         (expand_omp_target, lower_omp_target): Handle
25418         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25419         GF_OMP_TARGET_KIND_OACC_UPDATE,
25420         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
25421         GF_OMP_TARGET_KIND_OACC_DATA.
25422         (pass_expand_omp::execute, execute_lower_omp)
25423         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
25424         flag_openmp.
25425         (offload_symbol_decl): New variable.
25426         (oacc_get_reduction_array_id, oacc_max_threads)
25427         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
25428         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
25429         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
25430         (oacc_gimple_assign, oacc_initialize_reduction_data)
25431         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
25432         functions.
25433         (is_targetreg_ctx): Remove function.
25434         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
25435         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
25436         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25437         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
25438         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
25439         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
25440         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
25441         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
25442         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
25443         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
25444         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
25445         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
25446         * tree-core.h: Update comments for OpenACC changes.
25447         (enum omp_clause_map_kind): Remove.
25448         (struct tree_omp_clause): Change type of map_kind member from enum
25449         omp_clause_map_kind to unsigned char.
25450         * tree-inline.c: Update comments for OpenACC changes.
25451         * tree-nested.c: Likewise.  Include "gomp-constants.h".
25452         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
25453         (convert_tramp_reference_stmt, convert_gimple_call): Update for
25454         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25455         OMP_CLAUSE_SET_MAP_KIND.
25456         * tree-pretty-print.c: Include "gomp-constants.h".
25457         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
25458         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
25459         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
25460         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
25461         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25462         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
25463         instead of OMP_CLAUSE_MAP_*.
25464         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
25465         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
25466         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25467         * tree-streamer-in.c: Include "gomp-constants.h".
25468         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
25469         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
25470         * tree-streamer-out.c: Include "gomp-constants.h".
25471         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
25472         OMP_CLAUSE_MAP_*.
25473         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
25474         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
25475         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
25476         * tree.c (omp_clause_num_ops): Update accordingly.
25477         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
25478         Likewise.
25479         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
25480         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
25481         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
25482         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
25483         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
25484         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
25485         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
25486         (OMP_CLAUSE_SET_MAP_KIND): New macro.
25487         * varpool.c (varpool_node::get_create): Consider flag_openacc next
25488         to flag_openmp.
25489         * config/i386/intelmic-offload.h: New file.
25490         * config/nvptx/offload.h: Likewise.
25492 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25494         * explow.h: Remove duplicate contents.
25495         * dojump.h: Likewise.
25497 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
25499         * arm.c (arm_xgene_tune): Add default initializer for instruction
25500         fusion.
25502 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25504         PR ipa/64068
25505         PR ipa/64559
25506         * ipa.c (symbol_table::remove_unreachable_nodes):
25507         Do not put abstract origins into boundary.
25509 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
25511         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
25512         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
25514 2015-01-15  Steve Ellcey  <sellcey@mips.com>
25516         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
25517         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
25518         builtins.def, and chkp-builtins.def.
25520 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
25522         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
25523         ISA 2.7 (POWER8).
25525 2015-01-15  Richard Biener  <rguenther@suse.de>
25527         PR tree-optimization/61743
25528         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
25529         information on PHIs for some simple cases.
25531 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25533         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
25534         Include xgene1.md.
25535         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
25536         * config/arm/arm-cores.def (xgene1): New entry.
25537         * config/arm/arm-tables.opt: Regenerate.
25538         * config/arm/arm-tune.md: Regenerate.
25539         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
25541 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25543         * tree-if-conv.c: Include hash-map.h.
25544         (aggressive_if_conv): New variable.
25545         (fold_build_cond_expr): Add simplification of non-zero condition.
25546         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
25547         destination block is not always executed.
25548         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
25549         than two predecessors if AGGRESSIVE_IF_CONV is true.
25550         (if_convertible_stmt_p): Fix commentary.
25551         (all_preds_critical_p): New function.
25552         (has_pred_critical_p): New function.
25553         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
25554         BB can have more than two predecessors and all incoming edges can be
25555         critical.
25556         (predicate_bbs): Skip predication for loop exit block, use build2_loc
25557         to compute predicate for true edge.
25558         (find_phi_replacement_condition): Delete this function.
25559         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
25560         Allow interchange PHI arguments if EXTENDED is false.
25561         Change check that block containing reduction statement candidate
25562         is predecessor of phi-block since phi may have more than two arguments.
25563         (phi_args_hash_traits): New helper structure.
25564         (struct phi_args_hash_traits): New type.
25565         (phi_args_hash_traits::hash): New function.
25566         (phi_args_hash_traits::equal_keys): New function.
25567         (gen_phi_arg_condition): New function.
25568         (predicate_scalar_phi): Add handling of phi nodes with more than two
25569         arguments, delete COND and TRUE_BB arguments, insert body of
25570         find_phi_replacement_condition to predicate ordinary phi nodes.
25571         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
25572         delete call of find_phi_replacement_condition and invoke
25573         predicate_scalar_phi with two arguments.
25574         (insert_gimplified_predicates): Add assert that non-predicated block
25575         don't have statements to insert.
25576         (ifcvt_split_critical_edges): New function.
25577         (ifcvt_split_def_stmt): Likewise.
25578         (ifcvt_walk_pattern_tree): Likewise.
25579         (stmt_is_root_of_bool_pattern): Likewise.
25580         (ifcvt_repair_bool_pattern): Likewise.
25581         (ifcvt_local_dce): Likewise.
25582         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
25583         is copy of inner or outer loop force_vectorize field, invoke
25584         ifcvt_split_critical_edges, ifcvt_local_dce and
25585         ifcvt_repair_bool_pattern for aggressive if-conversion.
25587 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
25589         * config/aarch64/aarch64.md: Include xgene1.md.
25590         * config/aarch64/xgene1.md: New file.
25592 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25594         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
25595         xgene1 (APM XGene-1) core definition.
25596         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
25597         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
25598         * doc/invoke.texi: Document -mcpu=xgene1.
25600 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25602         * dojump.h: New header file.
25603         * explow.h: Likewise.
25604         * expr.h: Remove includes.
25605         Move expmed.c prototypes to expmed.h.
25606         Move dojump.c prototypes to dojump.h.
25607         Move alias.c prototypes to alias.h.
25608         Move explow.c prototypes to explow.h.
25609         Move calls.c prototypes to calls.h.
25610         Move emit-rtl.c prototypes to emit-rtl.h.
25611         Move varasm.c prototypes to varasm.h.
25612         Move stmt.c prototypes to stmt.h.
25613         (saved_pending_stack_adjust): Move to dojump.h.
25614         (adjust_address): Move to explow.h.
25615         (adjust_address_nv): Move to emit-rtl.h.
25616         (adjust_bitfield_address): Likewise.
25617         (adjust_bitfield_address_size): Likewise.
25618         (adjust_bitfield_address_nv): Likewise.
25619         (adjust_automodify_address_nv): Likewise.
25620         * explow.c (expr_size): Move to expr.c.
25621         (int_expr_size): Likewise.
25622         (tree_expr_size): Likewise.
25623         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25624         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25625         * genemit.c (main): Generate includes statistics.h, real.h,
25626         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
25627         stmt.h.
25628         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
25629         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
25630         explow.h, emit-rtl.h, stmt.h.
25631         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
25632         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
25633         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
25634         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
25635         emit-rtl.h, varasm.h, stmt.h.
25636         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
25637         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
25638         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
25639         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
25640         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25641         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
25642         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
25643         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
25644         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
25645         tm.h tree.h varasm.h vec.h wide-int.h.
25646         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25647         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25648         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
25649         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
25650         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
25651         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
25652         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
25653         * loop-iv.c: Likewise.
25654         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
25655         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
25656         statistics.h stmt.h tree.h varasm.h wide-int.h.
25657         * lra-constraints.c: Likewise.
25658         * lra-eliminations.c: Likewise.
25659         * lra-lives.c: Likewise.
25660         * lra-remat.c: Likewise.
25661         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25662         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
25663         statistics.h stmt.h tree.h varasm.h wide-int.h.
25664         * hw-doloop.c: Likewise.
25665         * ira-color.c: Likewise.
25666         * ira-emit.c: Likewise.
25667         * loop-doloop.c: Likewise.
25668         * loop-invariant.c: Likewise.
25669         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25670         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
25671         statistics.h stmt.h tree.h varasm.h wide-int.h.
25672         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
25673         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
25674         statistics.h stmt.h tree.h varasm.h wide-int.h.
25675         * combine-stack-adj.c: Likewise.
25676         * cse.c: Likewise.
25677         * ddg.c: Likewise.
25678         * ifcvt.c: Likewise.
25679         * ira-costs.c: Likewise.
25680         * jump.c: Likewise.
25681         * lra-coalesce.c: Likewise.
25682         * lra-spills.c: Likewise.
25683         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25684         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
25685         stmt.h varasm.h wide-int.h.
25686         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25687         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25688         varasm.h.
25689         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
25690         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
25691         statistics.h stmt.h varasm.h wide-int.h.
25692         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
25693         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
25694         varasm.h wide-int.h.
25695         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
25696         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25697         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
25698         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
25699         statistics.h stmt.h.
25700         * config/tilepro/tilepro.c: Likewise.
25701         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
25702         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
25703         * config/pdp11/pdp11.c: Likewise.
25704         * config/xtensa/xtensa.c: Likewise.
25705         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
25706         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25707         varasm.h.
25708         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25709         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25710         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
25711         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25712         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25713         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
25714         * rtl-chkp.c: Likewise.
25715         * tree-chkp-opt.c: Likewise.
25716         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
25717         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25718         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
25719         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25720         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25721         statistics.h stmt.h.
25722         * tree-vect-data-refs.c: Likewise.
25723         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
25724         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25725         rtl.h statistics.h stmt.h varasm.h.
25726         * internal-fn.c: Likewise.
25727         * ipa-icf-gimple.c: Likewise.
25728         * lto-section-out.c: Likewise.
25729         * tree-data-ref.c: Likewise.
25730         * tree-nested.c: Likewise.
25731         * tree-outof-ssa.c: Likewise.
25732         * tree-predcom.c: Likewise.
25733         * tree-pretty-print.c: Likewise.
25734         * tree-scalar-evolution.c: Likewise.
25735         * tree-ssa-strlen.c: Likewise.
25736         * tree-vect-loop.c: Likewise.
25737         * tree-vect-patterns.c: Likewise.
25738         * tree-vect-slp.c: Likewise.
25739         * tree-vect-stmts.c: Likewise.
25740         * tsan.c: Likewise.
25741         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25742         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
25743         stmt.h.
25744         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
25745         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25746         statistics.h stmt.h varasm.h.
25747         * loop-unroll.c: Likewise.
25748         * ubsan.c: Likewise.
25749         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
25750         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
25751         stmt.h varasm.h.
25752         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25753         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
25754         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
25755         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25756         statistics.h stmt.h.
25757         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
25758         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25759         statistics.h stmt.h varasm.h.
25760         * gimple-match-head.c: Likewise.
25761         * lto-cgraph.c: Likewise.
25762         * lto-section-in.c: Likewise.
25763         * lto-streamer-in.c: Likewise.
25764         * lto-streamer-out.c: Likewise.
25765         * tree-affine.c: Likewise.
25766         * tree-cfg.c: Likewise.
25767         * tree-cfgcleanup.c: Likewise.
25768         * tree-if-conv.c: Likewise.
25769         * tree-into-ssa.c: Likewise.
25770         * tree-ssa-alias.c: Likewise.
25771         * tree-ssa-copyrename.c: Likewise.
25772         * tree-ssa-dse.c: Likewise.
25773         * tree-ssa-forwprop.c: Likewise.
25774         * tree-ssa-live.c: Likewise.
25775         * tree-ssa-math-opts.c: Likewise.
25776         * tree-ssa-pre.c: Likewise.
25777         * tree-ssa-sccvn.c: Likewise.
25778         * tree-tailcall.c: Likewise.
25779         * tree-vect-generic.c: Likewise.
25780         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25781         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
25782         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25783         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
25784         * varasm.c: Likewise.
25785         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25786         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
25787         varasm.h.
25788         * init-regs.c: Likewise.
25789         * ira.c: Likewise.
25790         * omp-low.c: Likewise.
25791         * stack-ptr-mod.c: Likewise.
25792         * tree-ssa-reassoc.c: Likewise.
25793         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25794         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
25795         varasm.h.
25796         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25797         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
25798         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25799         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
25800         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25801         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
25802         * tree-ssa-phiopt.c: Likewise.
25803         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25804         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25805         * config/fr30/fr30.c: Likewise.
25806         * config/frv/frv.c: Likewise.
25807         * expr.c: Likewise.
25808         * final.c: Likewise.
25809         * optabs.c: Likewise.
25810         * passes.c: Likewise.
25811         * simplify-rtx.c: Likewise.
25812         * stmt.c: Likewise.
25813         * toplev.c: Likewise.
25814         * var-tracking.c: Likewise.
25815         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25816         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25817         * lower-subreg.c: Likewise.
25818         * postreload-gcse.c: Likewise.
25819         * ree.c: Likewise.
25820         * reginfo.c: Likewise.
25821         * store-motion.c: Likewise.
25822         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25823         fixed-value.h hashtab.h real.h stmt.h varasm.h.
25824         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25825         fixed-value.h hashtab.h statistics.h stmt.h.
25826         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25827         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25828         * except.c: Likewise.
25829         * explow.c: Likewise.
25830         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25831         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
25832         varasm.h.
25833         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25834         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
25835         * tree-ssa-structalias.c: Likewise.
25836         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25837         fixed-value.h insn-config.h real.h statistics.h.
25838         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25839         fixed-value.h insn-config.h real.h statistics.h stmt.h.
25840         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25841         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25842         * cfgbuild.c: Likewise.
25843         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25844         fixed-value.h real.h rtl.h statistics.h stmt.h.
25845         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25846         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25847         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25848         fixed-value.h real.h statistics.h stmt.h.
25849         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25850         fixed-value.h real.h statistics.h stmt.h varasm.h.
25851         * cprop.c: Likewise.
25852         * modulo-sched.c: Likewise.
25853         * postreload.c: Likewise.
25854         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25855         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
25856         statistics.h stmt.h varasm.h.
25857         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
25858         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25859         rtl.h statistics.h stmt.h varasm.h.
25860         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
25861         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
25862         varasm.h.
25863         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25864         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
25865         varasm.h.
25866         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
25867         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
25868         varasm.h.
25869         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
25870         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25871         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25872         function.h real.h statistics.h stmt.h varasm.h.
25873         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25874         insn-config.h real.h statistics.h stmt.h.
25875         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25876         statistics.h stmt.h.
25877         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
25878         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
25879         statistics.h stmt.h varasm.h.
25880         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
25881         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
25882         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25883         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
25884         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
25885         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25886         statistics.h stmt.h varasm.h.
25887         * ipa-polymorphic-call.c: Likewise.
25888         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
25889         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25890         statistics.h stmt.h.
25891         * config/c6x/c6x.c: Likewise.
25892         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
25893         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25894         statistics.h stmt.h varasm.h.
25895         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
25896         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
25897         stmt.h varasm.h.
25898         * ipa-split.c: Likewise.
25899         * tree-eh.c: Likewise.
25900         * tree-ssa-dce.c: Likewise.
25901         * tree-ssa-loop-niter.c: Likewise.
25902         * tree-vrp.c: Likewise.
25903         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
25904         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
25905         stmt.h.
25906         * config/nds32/nds32-fp-as-gp.c: Likewise.
25907         * config/nds32/nds32-intrinsic.c: Likewise.
25908         * config/nds32/nds32-isr.c: Likewise.
25909         * config/nds32/nds32-md-auxiliary.c: Likewise.
25910         * config/nds32/nds32-memory-manipulation.c: Likewise.
25911         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25912         * config/nds32/nds32-predicates.c: Likewise.
25913         * config/nds32/nds32.c: Likewise.
25914         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
25915         fixed-value.h hashtab.h real.h statistics.h.
25916         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
25917         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25918         * config/arm/arm.c: Likewise.
25919         * config/avr/avr.c: Likewise.
25920         * config/bfin/bfin.c: Likewise.
25921         * config/h8300/h8300.c: Likewise.
25922         * config/i386/i386.c: Likewise.
25923         * config/ia64/ia64.c: Likewise.
25924         * config/iq2000/iq2000.c: Likewise.
25925         * config/m32c/m32c.c: Likewise.
25926         * config/m32r/m32r.c: Likewise.
25927         * config/m68k/m68k.c: Likewise.
25928         * config/mcore/mcore.c: Likewise.
25929         * config/mep/mep.c: Likewise.
25930         * config/mips/mips.c: Likewise.
25931         * config/mn10300/mn10300.c: Likewise.
25932         * config/moxie/moxie.c: Likewise.
25933         * config/pa/pa.c: Likewise.
25934         * config/rl78/rl78.c: Likewise.
25935         * config/rx/rx.c: Likewise.
25936         * config/s390/s390.c: Likewise.
25937         * config/sh/sh.c: Likewise.
25938         * config/sparc/sparc.c: Likewise.
25939         * config/spu/spu.c: Likewise.
25940         * config/stormy16/stormy16.c: Likewise.
25941         * config/v850/v850.c: Likewise.
25942         * config/vax/vax.c: Likewise.
25943         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
25944         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25945         * config/msp430/msp430.c: Likewise.
25946         * predict.c: Likewise.
25947         * value-prof.c: Likewise.
25948         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
25949         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
25950         * config/microblaze/microblaze.c: Likewise.
25951         * config/nios2/nios2.c: Likewise.
25952         * config/rs6000/rs6000.c: Likewise.
25953         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25954         insn-config.h real.h rtl.h statistics.h stmt.h.
25955         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25956         insn-config.h real.h statistics.h stmt.h.
25957         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
25958         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25959         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
25960         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25961         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
25962         fixed-value.h real.h statistics.h stmt.h.
25963         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
25964         fixed-value.h statistics.h stmt.h.
25965         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
25966         stmt.h.
25968 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
25970         * gengtype.c (create_user_defined_type): Workaround
25971         -Wmaybe-uninitialized false positives.
25972         * cse.c (fold_rtx): Likewise.
25973         * loop-invariant.c (gain_for_invariant): Likewise.
25975 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25977         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
25978         set the memory attributes in all cases but clear MEM_EXPR if need be.
25980 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25982         PR tree-optimization/64434
25983         * cfgexpand.c (reorder_operands): New function.
25984         (expand_gimple_basic_block): Insert call of reorder_operands if
25985         optimized is true.
25987 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
25989         * config/mips/micromips.md (*swp): Remove explicit parallel.
25990         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
25991         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
25992         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
25993         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
25994         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
25995         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
25996         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
25997         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
25998         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
25999         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
26000         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
26001         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
26002         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
26003         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
26004         (mips_wrdsp): Likewise.
26005         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
26006         parallel.
26007         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
26008         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
26009         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
26010         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
26011         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
26012         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
26013         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
26014         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
26015         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
26017 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26019         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
26020         (mips_print_operand): Support 'y' to print exact log2 in decimal
26021         of a const_int.
26022         * config/mips/mips.h (ISA_HAS_LSA): New define.
26023         (ISA_HAS_DLSA): Likewise.
26024         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
26025         * config/mips/predicates.md (const_immlsa_operand): New predicate.
26027 2015-01-15  Martin Liska  <mliska@suse.cz>
26029         PR target/64377
26030         * optc-save-gen.awk: Add support for array types.
26032 2015-01-15  Richard Biener  <rguenther@suse.de>
26034         PR middle-end/64365
26035         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
26036         for MEM_REF access functions with the same base can never partially
26037         overlap.
26039 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
26041         * common.opt: New option -fstack-protector-explicit.
26042         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
26043         (stack_protect_decl_phase): Handle stack_protect attribute for
26044         explicit stack protection requests.
26045         (expand_used_vars): Similarly.
26046         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
26047         * doc/extend.texi: Add documentation for "stack_protect" attribute.
26048         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
26050 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
26052         PR target/53988
26053         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
26054         reg-reg copies.
26055         (sh_extending_set_of_reg): New struct.
26056         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
26057         sh_remove_reg_dead_or_unused_notes): New Declarations.
26058         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
26059         sh_find_extending_set_of_reg, sh_split_tst_subregs,
26060         sh_extending_set_of_reg::use_as_extended_reg): New functions.
26061         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
26062         convert to insn_and_split and use new function sh_split_tst_subregs.
26064 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
26066         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
26067         option.
26068         (Optimization Options): Move -fuse-ld documentation to...
26069         (Link Options): ...here.
26071 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26073         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
26074         offsets.
26075         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
26076         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
26077         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
26078         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
26079         instead of ZR for the memory operand of LL/SC.
26080         (compare_and_swap_12, sync_add<mode>): Likewise.
26081         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
26082         (sync_new_<optab>_12, sync_nand_12): Likewise.
26083         (sync_old_nand_12, sync_new_nand_12): Likewise.
26084         (sync_sub<mode>, sync_old_add<mode>): Likewise.
26085         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
26086         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
26087         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
26088         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
26089         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
26090         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
26091         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
26092         * doc/md.texi (ZC): Update description.
26094 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26096         * builtins.c (expand_builtin_atomic_exchange): Remove error when
26097         memory model is CONSUME.
26098         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
26099         expand_builtin_atomic_store): Change invalid memory model errors to
26100         warnings.
26101         (expand_builtin_atomic_clear): Change invalid model errors to warnings
26102         and issue warning for CONSUME.
26104 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
26106         * lto-cgraph: Update function comments for
26107         lto_symtab_encoder_encode_*.
26109 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26111         * Makefile.in (site.exp): Do not set ENABLE_LTO.
26113 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26115         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
26116         * lto-cgraph.c (select_what_to_stream): Remove argument, use
26117         lto_stream_offload_p instead.
26118         * lto-streamer.h (select_what_to_stream): Remove argument.
26119         * passes.c (ipa_write_summaries): Likewise.
26120         * tree-pass.h (ipa_write_summaries): Likewise.
26122 2015-01-14  Richard Biener  <rguenther@suse.de>
26124         PR tree-optimization/59354
26125         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
26126         groups larger than the slp group size as having gaps.
26128 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26130         PR middle-end/59448
26131         * builtins.c (get_memmodel): Promote consume to acquire always.
26133 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26135         PR target/64386
26136         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
26137         V32HImode.
26139 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26141         PR target/64393
26142         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
26143         Enable AVX512BW.
26144         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
26145         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
26146         AVX512VBMI, as it implies AVX512BW.
26148 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26150         PR target/64387
26151         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
26152         (vec_unpacks_hi_v16sf): Ditto.
26154 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26156         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
26157         is not available.
26159 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26161         * doc/invoke.texi (mapcs): Mention deprecation.
26162         (mapcs-frame): Likewise.
26164 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26166         PR target/64453
26167         * config/arm/arm.c (callee_saved_reg_p): Define.
26168         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
26169         register is callee saved instead of !call_used_regs[reg].
26170         (thumb1_compute_save_reg_mask): Likewise.
26172 2015-01-14  Hale Wang  <hale.wang@arm.com>
26174         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
26175         Cortex-M7.
26177 2015-01-14  Richard Biener  <rguenther@suse.de>
26179         PR lto/64415
26180         * tree-inline.c (insert_debug_decl_map): Check destination
26181         function MAY_HAVE_DEBUG_STMTS.
26182         (insert_init_debug_bind): Likewise.
26183         (insert_init_stmt): Remove redundant check.
26184         (remap_gimple_stmt): Drop debug stmts if the destination
26185         function has var-tracking assignments disabled.
26187 2015-01-14  Martin Liska  <mliska@suse.cz>
26189         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
26190         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
26192 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26194         PR target/64460
26195         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
26196         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
26198 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26200         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
26201         level from an ARCH; do not inject the default.
26202         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
26203         MIPS_ISA_LEVEL_SPEC.
26204         (MIPS_ISA_NAN2008_SPEC): Update comment.
26205         (BASE_DRIVER_SELF_SPECS): Likewise.
26206         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
26207         MIPS_DEFAULT_ISA_LEVEL_SPEC.
26208         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
26209         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
26210         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
26212 2015-01-14  Richard Biener  <rguenther@suse.de>
26214         PR tree-optimization/64493
26215         PR tree-optimization/64495
26216         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
26217         assign the proper vectorized PHI to the inner loop exit PHIs.
26219 2015-01-14  Joey Ye  <joey.ye@arm.com>
26221         * config/arm/arm.c (arm_compute_save_reg_mask):
26222         Do not save lr in case of tail call.
26223         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
26225 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
26227         * tree-vrp.c (check_array_ref): Emit more warnings
26228         for warn_array_bounds >= 2.
26229         * common.opt: New option -Warray-bounds=.
26230         * doc/invoke.texi: Document -Warray-bounds=.
26232 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
26234         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
26235         (mforbid-fp-as-gp): Remove.
26236         (mex9): Remove.
26237         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
26238         (nds32_symbol_load_store_p): Remove.
26239         (nds32_fp_as_gp_check_available): Clean up implementation.
26240         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
26241         cases.
26242         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
26243         fp-as-gp and ex9 cases.
26245 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26247         * tree-profile.c (init_ic_make_global_vars): Drop workaround
26248         for bintuils bug 14342.
26249         (init_ic_make_global_vars): Likewise.
26250         (gimple_init_edge_profiler): Likewise.
26251         (gimple_gen_ic_func_profiler): Likewise.
26253 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26255         * ipa-inline.c (inline_small_functions): Swap the operands in
26256         enum.
26258 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26260         PR ipa/64481
26261         * ipa-inline-analysis.c (node_growth_cache): Remove.
26262         (initialize_growth_caches): Do not initialize it.
26263         (free_growth_caches): Do not free it.
26264         (do_estimate_growth): Rename to ...
26265         (estimate_growth): ... this one; drop growth cache code.
26266         (growth_likely_positive): Always go the heuristics way.
26267         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
26268         (reset_edge_caches): Do not reset node growth.
26269         (heap_edge_removal_hook): Do not maintain cache.
26270         (inline_small_functions): Likewise; strenghten sanity check.
26271         (ipa_inline): Do not maintain caches.
26272         * ipa-inline.h (node_growth_cache): Remove.
26273         (do_estimate_growth): Remove to ...
26274         (estimate_growth): this one; remove inline version.
26275         (reset_node_growth_cache): Remove.
26277 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26279         PR ipa/64565
26280         * ipa-inline.c (inline_small_functions): Update callee keys after
26281         resolving speculation
26282         (inline_small_functions): Always check monotonicity of the queue.
26284 2015-01-13  Marek Polacek  <polacek@redhat.com>
26286         PR middle-end/64391
26287         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
26289 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
26291         PR rtl-optimization/64286
26292         * ree.c (combine_reaching_defs): Move part of comment earlier,
26293         remove !SCALAR_INT_MODE_P check.
26294         (add_removable_extension): Don't add vector mode
26295         extensions if all uses of the source register aren't the same
26296         vector extensions.
26298 2015-01-13  Renlin Li  <renlin.li@arm.com>
26300         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
26301         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
26303 2015-01-13  Martin Liska  <mliska@suse.cz>
26305         * ipa-icf.c (sem_function::equals_private): Call new functions
26306         cl_target_option_print_diff and cl_optimization_print_diff.
26307         * optc-save-gen.awk (cl_target_option_print_diff): New function.
26308         (cl_optimization_print_diff): Likewise.
26309         * opth-gen.awk: Likewise.
26311 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
26313         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
26314         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
26315         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
26316         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
26317         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
26318         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
26320 2015-01-13  Andrew Pinski  <apinski@cavium.com>
26322         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
26323         instead of src mode.
26325 2015-01-13  Richard Biener  <rguenther@suse.de>
26327         PR lto/64373
26328         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
26329         DECL_CONTEXT.
26331 2015-01-13  Andrew Pinski  <apinski@cavium.com>
26333         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
26334         volatile mems.
26335         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
26337 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
26339         PR middle-end/63974
26340         * cfgexpand.c (expand_computed_goto): Don't call
26341         convert_memory_address here.
26343 2015-01-13  Richard Biener  <rguenther@suse.de>
26345         PR tree-optimization/64406
26346         * tree-loop-distibution.c (pass_loop_distribution::execute):
26347         Reset the SCEV hashtable if we distributed anything.
26349 2015-01-13  Richard Biener  <rguenther@suse.de>
26351         PR tree-optimization/64404
26352         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
26353         SLP types for CSEd loads.
26355 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26357         PR tree-optimization/64436
26358         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
26359         merge of two symbolic numbers for a bitwise OR to ...
26360         (perform_symbolic_merge): This. Also fix computation of the range and
26361         end of the symbolic number corresponding to the result of a bitwise OR.
26363 2015-01-13  Richard Biener  <rguenther@suse.de>
26365         PR tree-optimization/64568
26366         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
26367         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
26369 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26371         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
26372         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
26374 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26376         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
26377         target-specific symbol_ref flag.
26378         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
26379         resides in rodata section.
26380         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
26381         (nds32_encode_section_info): New function.
26383 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26385         * config/nds32/nds32.md (call): Use pseudo instruction bal which
26386         clobbers TA_REGNUM if large code model is specified.
26387         (call_register): Likewise.
26388         (call_immediate): Likewise.
26389         (call_value): Likewise.
26390         (call_value_register): Likewise.
26391         (call_value_immediate): Likewise.
26393 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26395         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
26396         (TARGET_CMODEL_MEDIUM): New macro.
26397         (TARGET_CMODEL_LARGE): New macro.
26398         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
26399         code model setting in assembly code.
26401 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26403         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26404         Remove MASK_GP_DIRECT flag.
26405         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
26406         one of the multilib default options.
26407         * config/nds32/nds32.opt (mgp-direct): Remove.
26408         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
26409         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
26411 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26413         * config/nds32/nds32.opt (mcmodel): Add new option.
26414         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
26415         to describe code model.
26417 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
26419         PR target/64479
26420         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
26422 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
26424         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
26425         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26426         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
26427         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
26428         __builtin_sh_set_fpscr.
26430 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26432         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
26433         after a funtion name just to indicate it is a function.
26434         ([-fsanitize-undefined-trap-on-error]): Likewise.
26435         ([-fdbg-cnt=]): Likewise.
26436         ([-mmemcpy]): Likewise.
26437         ([-mflush-func]): Likewise.
26438         ([-msynci]): Likewise.
26440 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26442         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
26443         example.
26445 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
26447         PR tree-optimization/64563
26448         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
26449         instead of != VR_VARYING.
26451         PR target/64513
26452         * config/i386/i386.c (ix86_expand_prologue): Add
26453         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
26455         PR tree-optimization/64454
26456         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
26457         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
26458         for signed or [0, op1 - 1] for unsigned modulo.
26459         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
26460         even if op1 does not satisfy integer_pow2p.
26462         PR other/64370
26463         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
26465 2015-01-12  Jeff Law  <law@redhat.com>
26467         PR target/64461
26468         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
26469         (trunchiqi2, truncsihi2): Similarly.
26471         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
26472         rather than calling F.
26474 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26476         * tsan.c (instrument_expr): Use force_gimple_operand.
26477         Use may_be_nonaddressable_p instead of is_gimple_addressable.
26479 2015-01-12  Richard Biener  <rguenther@suse.de>
26481         PR tree-optimization/64530
26482         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
26483         back dr1.
26485 2015-01-12  Richard Biener  <rguenther@suse.de>
26487         PR middle-end/64357
26488         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
26489         latches properly.
26491 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26493         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
26494         Cortex-A17 tuning parameters.
26495         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
26497 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26499         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
26500         * config/arm/arm.c (arm_macro_fusion_p): New function.
26501         (arm_macro_fusion_pair_p): Likewise.
26502         (TARGET_SCHED_MACRO_FUSION_P): Define.
26503         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
26504         (ARM_FUSE_NOTHING): Likewise.
26505         (ARM_FUSE_MOVW_MOVT): Likewise.
26506         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
26507         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
26508         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
26509         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
26510         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
26511         arm_cortex_a5_tune): Specify fuseable_ops value.
26513 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
26515         PR bootstrap/64561
26516         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
26517         test for PIE with copy reloc.
26518         * configure: Regenerated.
26520 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26522         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
26523         in gen_rtx_REG.
26524         (arm_tls_descseq_addr): Likewise.
26525         (arm_gen_movmemqi): Likewise.
26526         (arm_expand_epilogue_apcs_frame): Likewise.
26527         (arm_expand_epilogue): Likewise.
26528         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
26529         in gen_rtx_REG.
26531 2015-01-12  Martin Liska  <mliska@suse.cz>
26533         PR ipa/64550
26534         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
26535         volatility for correct operands.
26537 2015-01-12  Martin Liska  <mliska@suse.cz>
26539         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
26540         indication that a function is not leaf.
26541         (sem_function::compare_polymorphic_p): Likewise.
26543 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26545         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
26546         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
26547         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
26548         fold-const.h, tree-check.h.
26550 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26552         PR ipa/63967
26553         PR ipa/64425
26554         * ipa-inline.c (compute_uninlined_call_time,
26555         compute_inlined_call_time): Use counts for extra precision when
26556         needed possible.
26557         (big_speedup_p): Fix formating.
26558         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
26559         (relative_time_benefit): Remove.
26560         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
26561         merge guessed and read profile paths.
26562         (inline_small_functions): Count only !optimize_size functions into
26563         initial size; be more lax about sanity check when profile is used;
26564         be sure to update inlined function profile when profile is read.
26566 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26568         PR ipa/63470
26569         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
26570         cost when edge becomes direct.
26571         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
26572         is resolved or when introducing new speculation.
26574 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
26576         PR ipa/64551
26577         PR ipa/64552
26578         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
26579         '||' to fix typo issue.
26581         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
26582         accept and return NULL.
26584 2015-01-12  Martin Liska  <mliska@suse.cz>
26586         * cgraph.c (cgraph_edge::remove_callee): Move function to header
26587         file for being inlined.
26588         (cgraph_set_edge_callee): Delete.
26589         (cgraph_edge::redirect_callee): Move function to header file
26590         for being inlined.
26591         (cgraph_edge::make_direct): Use new function.
26592         (cgraph_edge::dump_edge_flags): New function created from
26593         static dump_edge_flags function.
26594         (cgraph_node::dump): Use new function.
26595         (cgraph_edge::verify_count_and_frequency): New function created
26596         from verify_edge_count_and_frequency.
26597         (cgraph_edge::verify_corresponds_to_fndecl): New function created
26598         from verify_edge_corresponds_to_fndecl.
26599         (verify_edge_corresponds_to_fndecl): Delete.
26600         (cgraph_node::verify_node): Use new function.
26601         * cgraph.h (cgraph_edge::set_callee): New function.
26602         (cgraph_edge::dump_edge_flags): Likewise.
26603         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
26605 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
26607         * ipa-utils.c (estimate_function_body_sizes): Do not
26608         free node params when called late with early=true.
26610 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
26612         * doc/md.texi (Instruction Patterns): Rewrite text for
26613         clarity.
26614         (Example): Likewise.
26616 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
26618         * doc/invoke.texi (Option Summary): Break long lines.
26619         [(-fdiagnostics-color)]: Put long literal in @smallexample
26620         instead of inline.
26621         [(-fsanitize-recover)]: Likewise.
26622         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
26623         [(-ffast-math)]: Likewise.
26624         [(--param max-inline-insns-recursive)]: Likewise.
26625         [(--param max-inline-recursive-depth)]: Likewise.
26626         [(-mno-text-section-literals)]: Likewise.
26628 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
26630         * doc/install.texi: Update for libgomp being renamed from "GNU
26631         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
26632         Runtime Library".
26633         * doc/sourcebuild.texi: Likewise.
26635 2015-01-10  Anthony Green  <green@moxielogic.com>
26637         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
26638         mul.x availability for moxiebox configuration.
26640 2015-01-09  Anthony Green  <green@moxielogic.com>
26642         * config/moxie/moxie.md: Tabify assembly output.
26644 2015-01-09  Anthony Green  <green@moxielogic.com>
26646         * config/moxie/moxie.md (CC_REG): Correct register definition.
26648 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
26650         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
26651         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
26652         of log files.
26654 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26656         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
26658 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
26659             Jakub Jelinek  <jakub@redhat.com>
26661         PR middle-end/64412
26662         * lto-streamer.h (lto_stream_offload_p): New declaration.
26663         * lto-streamer.c (lto_stream_offload_p): New variable.
26664         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
26665         at the same time as section_name_prefix.
26666         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
26667         if lto_stream_offload_p.
26668         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
26669         stream TREE_TARGET_OPTION if lto_stream_offload_p.
26670         (write_ts_function_decl_tree_pointers): Don't
26671         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
26672         * tree-streamer-in.c (unpack_value_fields): Don't stream
26673         TREE_TARGET_OPTION in if ACCEL_COMPILER.
26674         (lto_input_ts_function_decl_tree_pointers): Don't stream
26675         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
26676         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
26677         instead of section_name_prefix string comparisons.
26679 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
26681         PR rtl-optimization/64536
26682         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
26683         tablejumps.
26685 2015-01-09  Michael Collison  <michael.collison@linaro.org>
26687         PR tree-optimization/64322
26688         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
26689         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
26691 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26693         PR rtl-optimization/64539
26694         * regcprop.c (kill_clobbered_values): Factor out of ...
26695         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
26696         instead of note_stores with kill_clobbered_value.
26698 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26700          * ginclude/unwind-arm-common.h: Revert previous commit.
26702 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26704         * config.gcc (arm*-*-freebsd*): New configuration.
26705         * config/arm/freebsd.h: New file.
26706         * config.host: Add extra components for arm*-*-freebsd*.
26707         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
26708         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
26710 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26712         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
26713         for -mcpu=e6500.
26714         * config/rs6000/t-rtems: Add e6500 multilibs.
26716 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26718         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
26719         MPC8540.
26721 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26723         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
26724         MULTILIB_EXCEPTIONS.
26726 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26728         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
26729         MULTILIB_EXCEPTIONS.
26731 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26733         * config/arm/t-rtems-eabi: Rename to...
26734         * config/arm/t-rtems: ...this.
26735         * config/arm/rtems-eabi.h: Rename to...
26736         * config/arm/rtems.h: ...this.
26737         * config.gcc (arm*-*-rtems*): Reflect changes above.
26739 2015-01-09  Richard Biener  <rguenther@suse.de>
26741         PR tree-optimization/64410
26742         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
26743         on the LHS.
26744         (execute_update_addresses_taken): Deal with that.
26745         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
26746         loads/stores for complex variables.
26748 2015-01-09  Martin Liska  <mliska@suse.cz>
26750         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
26751         name comparison.
26752         (func_checker::compare_memory_operand): New function.
26753         (func_checker::compare_operand): Split case to newly
26754         added functions.
26755         (func_checker::compare_cst_or_decl): New function.
26756         (func_checker::compare_gimple_call): Identify
26757         memory operands.
26758         (func_checker::compare_gimple_assign): Likewise.
26759         * ipa-icf-gimple.h: New function.
26761 2015-01-09  Martin Liska  <mliska@suse.cz>
26763         PR ipa/64503
26764         * sreal.c (sreal::dump): Change unsigned format to signed for
26765         m_exp value.
26766         (sreal::to_double): Replace exp2 with scalbln.
26768 2015-01-09  Martin Liska  <mliska@suse.cz>
26770         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
26771         * ipa-icf.c (sem_function::equals_private): Add support for target and
26772         (sem_item_optimizer::merge_classes): Remove redundant function
26773         optimization flags comparison.
26774         * tree.h (target_opts_for_fn): New function.
26776 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26778         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
26780 2015-01-09  Kito Cheng  <kito@0xlab.org>
26782         PR rtl-optimization/64348
26783         * lra-constraints.c (split_reg): Fix caller-save store/restore
26784         instruction generation.
26786 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
26788         PR gcov-profile/61790
26789         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
26790         long long.  Fallback to int64_t if host doesn't have long long and
26791         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
26793 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26795         PR tree-optimization/63989
26796         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
26797         from 1000 to 10000.
26798         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
26799         (get_stridx): If we don't have a record for certain SSA_NAME,
26800         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
26801         constant offset, call get_stridx_plus_constant.
26802         (get_stridx_plus_constant): New function.
26803         (zero_length_string): Don't use get_stridx here.
26805         PR target/55023
26806         PR middle-end/64388
26807         * dse.c (struct insn_info): Mention frame_read set also
26808         before reload for tail calls on some targets.
26809         (scan_insn): Revert 2014-12-22 change.  Set frame_read
26810         also before reload for tail calls if
26811         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
26812         instead of add_non_frame_wild_read for non-const/memset
26813         tail calls after reload.
26815 2015-01-08  Jason Merrill  <jason@redhat.com>
26817         * ubsan.c (do_ubsan_in_current_function): New.
26818         (pass_ubsan::gate): Use it.
26819         * ubsan.h: Declare it.
26820         * convert.c (convert_to_integer): Use it.
26822 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26824         PR target/64338
26825         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
26826         compare_code when it is unconditionally overwritten afterwards.
26827         Use ix86_reverse_condition instead of reverse_condition.  Don't
26828         change code if *reverse_condition* returned UNKNOWN and don't
26829         swap ct/cf and negate diff in that case.
26831 2015-01-08  Mike Stump  <mikestump@comcast.net>
26833         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
26834         (pass_tsan_O0::gate): Likewise.
26835         * extend.texi (Function Attributes): Add no_sanitize_thread
26836         documentation.
26838 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
26840         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
26841         for registering builtins.
26842         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
26843         add -fopenmp to the argv_obstack used when invoking
26844         compile_for_target.
26846         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
26847         add "-m32" or "-m64" to argv_obstack.
26848         (generate_host_descr_file): Likewise, when invoking host_compiler.
26849         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
26850         ld.
26852 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26854         * config/sh/sh-mem.cc: Use constant as second operand when emitting
26855         tstsi_t insns.
26857 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26859         PR target/55212
26860         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
26861         constant load if constant operand fits into I08.
26863 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26865         PR sanitizer/64336
26866         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
26867         and TREE_THIS_VOLATILE for MEM_REFs.
26868         (build5_stat): Fix up initialization of TREE_READONLY and
26869         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
26871 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
26873         PR target/64533
26874         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
26875         of r for the second alternative of the destination operand.
26877 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
26879         PR target/36557
26880         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
26882 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26884         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
26885         keywords.
26886         ([-fivar-visibility], [-fvisibility]): Likewise.
26888 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26890         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
26891         the file where @code, @command, etc is more appropriate.
26893 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
26895         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
26896         of -mrecip= documentation.
26898 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26900         PR target/64505
26901         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
26902         correct reload handler if -m32 -mpowerpc64 is used.
26904 2015-01-06  Tom de Vries  <tom@codesourcery.com>
26906         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
26908 2015-01-08  Christian Bruel  <christian.bruel@st.com>
26910         PR target/64507
26911         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
26913 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26915         PR tree-optimization/63259
26916         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
26917         if optab exists for 16bit byteswap.
26919 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
26921         * opts.c (common_handle_option): Add support for
26922         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
26923         * doc/invoke.texi: Document -fno-sanitize=all,
26924         -f{,no-}sanitize-recover=all.  Document that
26925         -fsanitize=float-cast-overflow is not enabled
26926         by -fsanitize=undefined.  Fix up documentation
26927         of -f{,no-}sanitize-recover.
26929 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
26931         * config.gcc: Add Visium support.
26932         * configure.ac: Likewise.
26933         * configure: Regenerate.
26934         * doc/extend.texi (interrupt attribute): Add Visium.
26935         * doc/invoke.texi: Document Visium options.
26936         * doc/install.texi: Document Visium target.
26937         * doc/md.texi: Document Visium constraints.
26938         * common/config/visium: New directory.
26939         * config/visium: Likewise.
26941 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
26943         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
26944         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
26946 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
26948         * combine.c (combine_validate_cost): Do not count the cost of a
26949         split I2 twice.  Do not display it twice in the dump, either.
26951 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26953         Revert parts of r219199.
26954         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
26955         <inttypes.h>.
26956         ([-Wtraditional]): Restore markup on <limits.h>.
26958 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
26960         PR c++/31397
26961         * doc/invoke.texi: Document -Wsuggest-override.
26963 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
26965         PR rtl-optimization/64287
26966         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
26967         (process_options): Disable flag_ipa_ra if profiling.
26969 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
26971         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
26973 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
26975         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
26976         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
26977         put under #if TARGET_LOOPS guard.
26979 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
26981         * config/i386/i386.c (output_387_binary_op): Use std::swap.
26983 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
26985         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
26986         * rtl.h (refers_to_regno_p): Add overload.
26987         * cse.c: Use it.
26988         * bt-load.c: Likewise.
26989         * combine.c: Likewise.
26990         * df-scan.c: Likewise.
26991         * sched-deps.c: Likewise.
26992         * config/s390/s390.c: Likewise.
26993         * config/m32r/m32r.c: Likewise.
26994         * config/rs6000/spe.md: Likewise.
26995         * config/rs6000/rs6000.c: Likewise.
26996         * config/pa/pa.c: Likewise.
26997         * config/stormy16/stormy16.c: Likewise.
26998         * config/cris/cris.c: Likewise.
26999         * config/arc/arc.md: Likewise.
27000         * config/arc/arc.c: Likewise.
27001         * config/sh/sh.md: Likewise.
27002         * config/sh/sh.c: Likewise.
27003         * config/frv/frv.c: Likewise.
27005 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27007         PR sanitizer/64265
27008         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
27009         call as cleanup of the whole body.
27010         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
27011         * tsan.c (replace_func_exit): New function.
27012         (instrument_func_exit): Moved earlier.
27013         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
27014         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
27015         been found.
27016         (tsan_pass): Don't call instrument_func_exit.
27017         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
27018         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
27019         inlining.
27021         PR sanitizer/64344
27022         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
27023         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
27024         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
27025         if the result is integer_zerop, return NULL_TREE.
27026         * convert.c (convert_to_integer): Pass expr as ARG.
27028         PR tree-optimization/64465
27029         * tree-inline.c (redirect_all_calls): During inlining
27030         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
27031         changed the stmt to a non-throwing call.
27033 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
27035         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
27036         etc markup throughout the file.
27038 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27040         Enable experimental TSAN support for Ada.
27041         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
27043 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27045         PR tree-optimization/64494
27046         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
27047         clear SSA_NAME_ANTI_RANGE_P flag.
27049 2015-01-05  Marek Polacek  <polacek@redhat.com>
27051         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
27053 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27055         Update copyright years.
27057         * gcc.c (process_command): Update copyright notice dates.
27058         * gcov-dump.c: Ditto.
27059         * gcov.c: Ditto.
27060         * doc/cpp.texi: Bump @copying's copyright year.
27061         * doc/cppinternals.texi: Ditto.
27062         * doc/gcc.texi: Ditto.
27063         * doc/gccint.texi: Ditto.
27064         * doc/gcov.texi: Ditto.
27065         * doc/install.texi: Ditto.
27066         * doc/invoke.texi: Ditto.
27068         * auto-profile.c, auto-profile.h: Fix up Copyright line.
27070 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
27072         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
27073         verb tense, etc.
27074         ([-fvtable-verify], [-fvtv-debug]): Likewise.
27075         ([-Wabi]): Likewise.
27076         ([-fmessage-length]): Likewise.
27077         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
27078         ([-Wno-discarded-qualifiers]): Likewise.
27079         ([-Wnodiscarded-array-qualifiers]): Likewise.
27080         ([-Wno-virtual-move-assign]): Likewise.
27081         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
27082         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
27083         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
27084         ([-fsanitize-undefined-trap-on-error]): Likewise.
27085         ([-floop-interchange]): Likewise.
27086         ([-ftree-coalesce-inlined-vars]): Likewise.
27087         ([-fvect-cost-model]): Likewise.
27088         ([-flto]): Likewise.
27089         ([--param]): Likewise.
27090         (Spec Files): Likewise.
27091         ([-mstrict-align]): Likewise.
27092         ([-mfix-cortex-a53-835769]): Likewise.
27093         ([-march], [-mtune]): Likewise.
27094         ([-mpic-register]): Likewise.
27095         ([-munaligned-access]): Likewise.
27096         ([-msp8]): Likewise.
27097         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
27098         (AVR Built-in Macros): Likewise.
27099         ([-mpreferred-stack-boundary]): Likewise.
27100         ([-mtune-crtl]): Likewise.
27101         ([-mashf]): Likewise.
27102         ([-mmcu=]): Likewise.
27103         ([-minrt]): Likewise.
27104         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
27105         ([-mupper-regs]): Likewise.
27106         ([-matomic-model]): Likewise.
27107         ([-mdiv]): Likewise.
27108         ([-mzdcbranch]): Likewise.
27109         ([-mdisable-callt]): Likewise.
27110         ([-msoft-float]): Likewise.
27111         ([-m8byte-align]): Likewise.
27112         ([-fstack-reuse]): Likewise.
27114 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27116         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
27117         Fix markup, light copy-editing.
27118         ([-fauto-profile]): Rewrite to fix formatting and content
27119         problems.
27121 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27123         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
27124         Copy-edit description.
27125         ([-fisolate-erroneous-paths-attribute]): Likewise.
27126         * common.opt (fisolate-erroneous-paths-dereference):
27127         Copy-edit description.
27128         (fisolate-erroneous-paths-attribute): Likewise.
27130 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27132         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
27133         tidy grammar.
27135 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27137         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
27138         ([-fvtv-debug]): Likewise.
27139         ([-Wc++-compat]): Likewise.
27140         ([-Wc++11-compat]): Likewise.
27141         ([-Wc++14-compat]): Likewise.
27142         ([-Wno-sized-deallocation]): Likewise.
27143         ([-femit-class-debug-always]): Likewise.
27144         ([-femit-struct-debug-detailed]): Likewise.
27145         ([-fno-keep-inline-dllexport]): Likewise.
27146         ([-fira-algorithm]): Likewise.
27147         ([-fira-region]): Likewise.
27148         ([-flra-remat]): Likewise.
27149         ([-fipa-ra]): Likewise.
27150         ([-fhoist-adjacent-loads]): Likewise.
27151         ([-fisolate-erroneous-paths-dereference]): Likewise.
27152         ([-fisolate-erroneous-paths-attribute]): Likewise.
27153         ([-ftree-switch-conversion]): Likewise.
27154         ([-ftree-tail-merge]): Likewise.
27155         ([-ftree-loop-if-convert]): Likewise.
27156         ([-ftree-loop-if-convert-stores]): Likewise.
27157         ([-ftree-loop-distribution]): Likewise.
27158         ([-ftree-loop-distribute-patterns]): Likewise.
27159         ([-flto-compression-level]): Likewise.
27160         ([-flto-report]): Likewise.
27161         ([-flto-report-wpa]): Likewise.
27162         ([-fuse-linker-plugin]): Likewise.
27163         ([-mfix-cortex-a53-835769]): Likewise.
27164         ([-mno-fix-cortex-a53-835769]): Likewise.
27165         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
27166         explicit listing; add a note to the discussion indicating they
27167         exist.  Reorder table to group similar options.  Add missing
27168         @opindex entries.  Add @need commands throughout the table to
27169         allow it to be split across multiple pages.
27170         ([-m8bit-idiv]): Fix @opindex.
27171         ([-mavx256-split-unaligned-load]): Likewise.
27172         ([-mavx256-split-unaligned-store]): Likewise.
27173         ([-mstack-protector-guard]): Likewise.
27174         ([-mcpu=]): Likewise.
27175         ([-mcpu]): Likewise.
27176         ([-mpointer-size=]): Likewise.
27178 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
27180         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
27181         instead of `m' constraint.  Likewise for unnamed movb comparison
27182         patterns using reg_before_reload_operand predicate.
27183         * config/pa/predicates.md (reg_before_reload_operand): Tighten
27184         predicate to reject register index and LO_SUM DLT memory forms
27185         after reload.
27187 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
27189         * doc/invoke.texi (Option Summary): Fix spelling of
27190         -fdevirtualize-at-ltrans.
27191         ([-fdevirtualize]): Fix markup.
27192         ([-fdevirtualize-speculatively]): Fix typo.
27193         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
27194         implementor-speaky.
27195         * common.opt (fdevirtualize-at-ltrans): Likewise.
27196         * ipa-devirt.c: Fix typos in comments throughout the file.
27197         (ipa_devirt): Fix typos in format strings for dump output.
27199 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
27201         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
27202         discussion of defaults, light copy-editing.
27204 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27206         * tsan.c (instrument_expr): corrected previous checkin.
27208 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27210         Instrument bit field and unaligned accesses for TSAN.
27211         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
27212         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
27213         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
27214         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
27215         unaligned memory regions.
27217 2015-01-01  Anthony Green  <green@moxielogic.com>
27219         * config/moxie/predicates.md (moxie_general_movsrc_operand):
27220         Restrict move source register offsets to 16 bits.
27222 Copyright (C) 2015 Free Software Foundation, Inc.
27224 Copying and distribution of this file, with or without modification,
27225 are permitted in any medium without royalty provided the copyright
27226 notice and this notice are preserved.