2015-09-03 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobf20e551f5ed1a66ca30c71a23245aebdd4a3c874
1 2015-09-03  Richard Biener  <rguenther@suse.de>
3         PR ipa/66705
4         * tree-ssa-structalias.c (ctor_for_analysis): New function.
5         (create_variable_info_for_1): Use ctor_for_analysis instead
6         of get_constructor.
7         (create_variable_info_for): Likewise.
9 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
11         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
12         in new callgraph edge.
14 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
16         PR target/59810
17         PR target/63652
18         PR target/63653
19         * config/aarch64/aarch64-simd.md
20         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
21         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
22         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
23         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
25 2015-09-02  Alan Modra  <amodra@gmail.com>
27         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
28         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
29         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
31 2015-09-02  Alan Modra  <amodra@gmail.com>
33         PR target/67417
34         * config/rs6000/predicates.md (current_file_function_operand): Don't
35         return true for weak symbols.
36         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
38 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
39             Andrew Bennett  <andrew.bennett@imgtec.com>
41         * config/mips/mips-opts.h (mips_cb_setting): New enum.
42         * config/mips/mips-protos.h: Add definitions for
43         mips_output_jump and mips_output_equal_conditional_branch
44         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
45         JIC instruction.
46         (mips_emit_compare): Add support for the MIPS R6 conditional
47         compact branches.
48         (mips_process_sync_loop): Likewise.
49         (mips_output_order_conditional_branch): Likewise.
50         (mips16_build_call_stub): Change MIPS_CALL to
51         mips_output_jump.
52         (mips_print_operand_punctuation): Update 's' case to only
53         apply to micromips r2.
54         (mips_adjust_insn_length): Add support for forbidden slot
55         hazards.
56         (mips_avoid_hazard): Likewise.
57         (mips_reorg_process_insns): Likewise.
58         (mips_output_jump): New function.
59         (mips_output_equal_conditional_branch): Likewise.
60         (mips_output_conditional_branch): Use jrc/bc if compact
61         branch support is enabled.  Ensure the forbidden slots
62         between the two branch instructions is filled with a nop.
63         (mips_option_override): Add support to process the compact
64         branch option and set the correct defaults.  Prevent
65         non-explict relocs being using for MIPS R6.
66         (mips_trampoline_init): Add compact branch support.
67         (mips_mult_zero_zero_cost): Allow zero initialisation of
68         accumulators with TARGET_DSP.
69         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
70         (TARGET_CB_MAYBE): New define.
71         (TARGET_CB_ALWAYS): New define.
72         (ISA_HAS_DELAY_SLOTS): New define.
73         (ISA_HAS_COMPACT_BRANCHES): New define.
74         (ISA_HAS_JRC): New define.
75         (MIPS_BRANCH_C): New define.
76         (MIPS_CALL): Removed.
77         (MICROMIPS_J): Removed.
78         * config/mips/mips.md (compact_form): New attr.
79         (hazard): Add support for forbidden slots.
80         (define_delay): Add support for compact branches.
81         (*branch_order<mode>): Likewise.
82         (*branch_order<mode>_inverted): Likewise.
83         (*branch_equality<mode>): Likewise.
84         (*branch_equality<mode>_inverted): Likewise.
85         (*jump_absolute): Likewise.
86         (*jump_pic): Likewise.
87         (indirect_jump): Use mips_output_jump to produce assembly output.
88         (tablejump_<mode>"): Likewise.
89         (*<optab>"): Likewise.
90         (<optab>_internal): Likewise.
91         (sibcall_internal): Likewise.
92         (sibcall_value_internal): Likewise.
93         (sibcall_value_multiple_internal): Likewise.
94         (call_internal): Likewise.
95         (call_split): Likewise.
96         (call_internal_direct): Likewise.
97         (call_direct_split): Likewise.
98         (call_value_internal): Likewise.
99         (call_value_split): Likewise.
100         (call_value_internal_direct): Likewise.
101         (call_value_direct_split): Likewise.
102         (call_value_multiple_internal): Likewise.
103         (call_value_multiple_split): Likewise.
104         (mips_get_fcsr_mips16_<mode>): Likewise.
105         (mips_set_fcsr_mips16_<mode>): Likewise.
106         (tls_get_tp_mips16_<mode>): Likewise.
107         * config/mips/mips.opt: Add -mcompact-branches option.
108         * config/mips/predicates.md (order_operator): Ensure the
109         conditional compact branches are only used if the ISA them.
110         * doc/invoke.texi: Document -mcompact-branches option.
112 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
114         PR target/61578
115         * lra-lives.c (process_bb_lives): Process move pseudos with the
116         same value for copies and preferences
117         * lra-constraints.c (match_reload): Create match reload pseudo
118         with the same value from single dying input pseudo.
120 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
122         PR target/67405
123         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
125 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
127         * trans-mem.c: Add contributed-by.
128         * trans-mem.h: Same.
130 2015-09-01  Richard Biener  <rguenther@suse.de>
132         * expr.c (expand_expr_real_1): For expanding TERed defs
133         set the current location to that of the def if not UNKNOWN.
135 2015-09-01  David Sherwood  <david.sherwood@arm.com>
137         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
139 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
141         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
142         then_cost, else_cost fields.  Change branch_cost field to unsigned
143         int.
144         (end_ifcvt_sequence): Call set_used_flags on each insn in the
145         sequence.
146         Include rtl-iter.h.
147         (noce_simple_bbs): New function.
148         (noce_try_move): Bail if basic blocks are not simple.
149         (noce_try_store_flag): Likewise.
150         (noce_try_store_flag_constants): Likewise.
151         (noce_try_addcc): Likewise.
152         (noce_try_store_flag_mask): Likewise.
153         (noce_try_cmove): Likewise.
154         (noce_try_minmax): Likewise.
155         (noce_try_abs): Likewise.
156         (noce_try_sign_mask): Likewise.
157         (noce_try_bitop): Likewise.
158         (bbs_ok_for_cmove_arith): New function.
159         (noce_emit_all_but_last): Likewise.
160         (noce_emit_insn): Likewise.
161         (noce_emit_bb): Likewise.
162         (noce_try_cmove_arith): Handle non-simple basic blocks.
163         (insn_valid_noce_process_p): New function.
164         (contains_mem_rtx_p): Likewise.
165         (bb_valid_for_noce_process_p): Likewise.
166         (noce_process_if_block): Allow non-simple basic blocks
167         where appropriate.
169 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
171         * tree-ssa-dom.c (record_equivalences_from_phis,
172         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
173         (lookup_avail_expr): Likewise, and remove comment and unused temp.
175 2015-09-01  Nick Clifton  <nickc@redhat.com>
177         * config/msp430/msp430.opt (mcpu): Fix typo.
179 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
181         * config/aarch64/aarch64.c (aarch64_set_current_function):
182         Re-layout any vector parameters have non-simd layout.
183         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
184         Delete.
185         (aarch64_simd_expand_args): Delete call to the above.
187 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
189         * doc/invoke.texi (asan-stack): Add space before option.
191 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
193         * tree.h (zerop): New function.
194         * tree.c (zerop): Likewise.
195         (element_precision): Handle expressions.
196         * match.pd (define_predicates): Add zerop.
197         (x <= +Inf): Fix comment.
198         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
199         * fold-const.c (fold_binary_loc): ... here. Remove.
201 2015-08-31  Richard Biener  <rguenther@suse.de>
203         PR middle-end/67381
204         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
206 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
208         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
209         (CEXPI): New operator list.
210         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
211         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
212         Converted from ...
213         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
215 2015-08-31  Tom de Vries  <tom@codesourcery.com>
217         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
218         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
219         parameter.
220         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
221         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
222         (rewrite_into_loop_closed_ssa): ... here.
223         (replace_uses_in_dominated_bbs): Remove function.
224         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
225         rewrite_into_loop_closed_ssa_1.
227 2015-08-31  Michael Matz  <matz@suse.de>
229         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
230         enter entry and exit blocks for reverse post order.
232 2015-08-31  Richard Biener  <rguenther@suse.de>
234         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
235         (lto_location_cache::current_sysp): Likewise.
236         (output_block::current_sysp): Likewise.
237         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
238         (lto_location_cache::apply_location_cache): Properly record
239         system header locations.
240         (lto_location_cache::input_location): Input whether a file
241         is a system header.
242         * lto-streamer-out.c (lto_output_location): Stream whether a file
243         is a system header.
245 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
247         PR bootstrap/67363
248         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
250 2015-08-31  Tom de Vries  <tom@codesourcery.com>
252         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
253         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
254         Improve function header comments.
256 2015-08-30  Michael Collison  <michael.collison@linaro.org>
258         PR other/67320
259         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
260         standard names
262 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
264         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
265         special_handling bitfield.
266         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
267         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
268         that represents a general xxpermdi.
269         (insn_is_swappable_p): Add handling for vec_concat of two
270         doublewords, which maps to a specific xxpermdi.
271         (adjust_xxpermdi): New function.
272         (adjust_concat): Likewise.
273         (handle_special_swappables): Call adjust_xxpermdi and
274         adjust_concat.
275         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
277 2015-08-30  Rich Felker <dalias@libc.org>
279         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
280         case instead of sh[123456ble]-*-*.
282 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
284         * ira.c (print_unform_and_important_classes,
285         print_translated_classes): Remove reg_class_names static array.
286         (print_unform_and_important_classes): Rename to ...
287         (print_uniform_and_important_classes): ... this.
288         (ira_debug_allocno_classes): Update accordingly.
290 2015-08-29  Tom de Vries  <tom@codesourcery.com>
292         PR tree-optimization/46193
293         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
294         clause.
296 2015-08-28  Jeff Law  <law@redhat.com>
298         PR lto/66752
299         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
300         unable to find X NE 0 in the tables, return X as the simplified
301         condition.
302         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
303         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
304         to VISISTED_BBS.
305         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
306         after removing the control flow statement and unnecessary edges.
308 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
310         Revert:
311         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
312                 PR tree-optimization/67283
313                 * tree-sra.c (type_consists_of_records_p): Rename to...
314                 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
316                 (completely_scalarize_record): Rename to...
317                 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
318                  code to:
319                 (scalarize_elem): New.
321 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
323         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
324         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
325         (aarch64_symbol_type): Likewise.
326         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
327         Likewise.
328         (aarch64_expand_mov_immediate): Likewise.
329         (aarch64_print_operand): Likewise.
330         (aarch64_classify_tls_symbol): Likewise.
332 2015-08-28  Richard Biener  <rguenther@suse.de>
334         * cgraphunit.c (symbol_table::compile): Move early debug generation
335         and finish...
336         (symbol_table::finalize_compilation_unit): ... back here and
337         add a !seen_error () guard.
339 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
341         * toplev.c (process_options): Do not use flag_loop_block,
342         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
343         flag_loop_optimize_isl.
345 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
347         * Makefile.in (OBJS): Remove graphite-blocking.o and
348         graphite-interchange.o.
349         * common.opt (floop-strip-mine, floop-interchange, floop-block):
350         Alias of floop-nest-optimize.
351         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
352         Document as alias of -floop-nest-optimize.
353         * graphite-blocking.c: Remove.
354         * graphite-interchange.c: Remove.
355         * graphite-optimize-isl.c: Include dumpfile.h.
356         (getScheduleForBand): Add dump for tiled loops.  Use
357         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
358         * graphite-poly.c (scop_max_loop_depth): Remove.
359         (print_scattering_function_1): Remove.
360         (print_scattering_function): Remove.
361         (print_scattering_functions): Remove.
362         (debug_scattering_function): Remove.
363         (debug_scattering_functions): Remove.
364         (apply_poly_transforms): Remove use of flag_loop_block,
365         flag_loop_strip_mine, and flag_loop_interchange.
366         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
367         PBB_ORIGINAL.
368         (print_pdr_access_layout): Remove.
369         (print_pdr): Print ISL representation.
370         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
371         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
372         (free_scop): Same.
373         (openscop_print_pbb_domain): Remove.
374         (print_pbb): Remove call to print_scattering_function.
375         (openscop_print_scop_context): Remove.
376         (print_scop_context): Do not print matrices anymore.
377         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
378         SCOP_TRANSFORMED_SCHEDULE.
379         (print_isl_set): Add printing of a new line.
380         (print_isl_map): Same.
381         (print_isl_aff): Same.
382         (print_isl_constraint): Same.
383         (loop_to_lst): Remove.
384         (scop_to_lst): Remove.
385         (lst_indent_to): Remove.
386         (print_lst): Remove.
387         (debug_lst): Remove.
388         (dot_lst_1): Remove.
389         (dot_lst): Remove.
390         (reverse_loop_at_level): Remove.
391         (reverse_loop_for_pbbs): Remove.
392         * graphite-poly.h (pdr_dim_iter_domain): Remove.
393         (pdr_nb_params): Remove.
394         (pdr_alias_set_dim): Remove.
395         (pdr_subscript_dim): Remove.
396         (pdr_iterator_dim): Remove.
397         (pdr_parameter_dim): Remove.
398         (same_pdr_p): Remove.
399         (struct poly_scattering): Remove.
400         (struct poly_bb): Remove _original, _transformed, _saved.
401         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
402         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
403         (PBB_NB_LOCAL_VARIABLES): Remove.
404         (PBB_NB_SCATTERING_TRANSFORM): Remove.
405         (schedule_to_scattering): Remove.
406         (number_of_write_pdrs): Remove.
407         (pbb_dim_iter_domain): Remove.
408         (pbb_nb_params): Remove.
409         (pbb_nb_scattering_orig): Remove.
410         (pbb_nb_scattering_transform): Remove.
411         (pbb_nb_dynamic_scattering_transform): Remove.
412         (pbb_nb_local_vars): Remove.
413         (pbb_iterator_dim): Remove.
414         (pbb_parameter_dim): Remove.
415         (psco_scattering_dim): Remove.
416         (psct_scattering_dim): Remove.
417         (psct_local_var_dim): Remove.
418         (psco_iterator_dim): Remove.
419         (psct_iterator_dim): Remove.
420         (psco_parameter_dim): Remove.
421         (psct_parameter_dim): Remove.
422         (psct_dynamic_dim): Remove.
423         (psct_static_dim): Remove.
424         (psct_add_local_variable): Remove.
425         (new_lst_loop): Remove.
426         (new_lst_stmt): Remove.
427         (free_lst): Remove.
428         (copy_lst): Remove.
429         (lst_add_loop_under_loop): Remove.
430         (lst_depth): Remove.
431         (lst_dewey_number): Remove.
432         (lst_dewey_number_at_depth): Remove.
433         (lst_pred): Remove.
434         (lst_succ): Remove.
435         (lst_find_pbb): Remove.
436         (find_lst_loop): Remove.
437         (lst_find_first_pbb): Remove.
438         (lst_empty_p): Remove.
439         (lst_find_last_pbb): Remove.
440         (lst_contains_p): Remove.
441         (lst_contains_pbb): Remove.
442         (lst_create_nest): Remove.
443         (lst_remove_from_sequence): Remove.
444         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
445         (lst_niter_for_loop): Remove.
446         (pbb_update_scattering): Remove.
447         (lst_update_scattering_under): Remove.
448         (lst_update_scattering): Remove.
449         (lst_insert_in_sequence): Remove.
450         (lst_replace): Remove.
451         (lst_substitute_3): Remove.
452         (lst_distribute_lst): Remove.
453         (lst_remove_all_before_including_pbb): Remove.
454         (lst_remove_all_before_excluding_pbb): Remove.
455         (struct scop): Remove original_schedule, transformed_schedule, and
456         saved_schedule.
457         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
458         (SCOP_SAVED_SCHEDULE): Remove.
459         (poly_scattering_new): Remove.
460         (poly_scattering_free): Remove.
461         (poly_scattering_copy): Remove.
462         (store_scattering_pbb): Remove.
463         (store_lst_schedule): Remove.
464         (restore_lst_schedule): Remove.
465         (store_scattering): Remove.
466         (restore_scattering_pbb): Remove.
467         (restore_scattering): Remove.
468         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
469         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
470         compute the scattering polyhedron dimension from the dimension of
471         pbb->domain.
472         (build_scop_scattering): Update call to
473         build_pbb_scattering_polyhedrons.
474         (build_poly_scop): Remove call to scop_to_lst.
475         * graphite.c (graphite_transform_loops): Add call to print_scop.
476         (gate_graphite_transforms): Remove use of flag_loop_block,
477         flag_loop_interchange, and flag_loop_strip_mine.
479 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
481         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
482         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
483         -floop-nest-optimize.
484         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
485         (generate_luj_sepclass): Remove.
486         (generate_luj_options): Remove.
487         (set_options): Remove opt_luj.
488         (scop_to_isl_ast): Remove opt_luj.
489         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
490         flag_loop_unroll_jam.
491         (getPrevectorMap_full): Remove.
492         (getScheduleForBandList): Remove map_sepcl.
493         (getScheduleMap): Same.
494         (apply_schedule_map_to_scop): Remove sepcl.
495         (optimize_isl): Same.
496         * graphite-poly.c (apply_poly_transforms): Remove check for
497         flag_loop_unroll_jam.
498         (new_poly_bb): Remove map_sepclass.
499         * graphite-poly.h (struct poly_bb): Same.
500         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
501         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
502         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
503         * toplev.c (process_options): Remove flag_loop_unroll_jam.
505 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
507         PR target/67317
508         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
509         (addqi3_cc): Ditto.
510         (UNSPEC_ADD_CARRY): Remove.
511         (addqi3_cconly_overflow): New expander.
512         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
513         Adjust for changed add<mode>3_carry.
514         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
515         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
516         (<plusminus_insn><mode>3_carry): Remove expander.
517         (*<plusminus_insn><mode>3_carry): Split insn pattern to
518         add<mode>3_carry and sub<mode>3_carry.
519         (plusminus_carry_mnemonic): Remove code attribute.
520         (add<mode>3_carry): Canonicalize insn pattern.
521         (*addsi3_carry_zext): Ditto.
522         (sub<mode>3_carry): Ditto.
523         (*subsi3_carry_zext): Ditto.
524         (adcx<mode>3): Remove insn pattern.
525         (addcarry<mode>): New insn pattern.
526         (subborrow<mode>): Ditto.
527         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
528         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
529         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
530         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
531         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
532         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
533         Rewrite expander to not clobber carry flag chains.
535 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
537         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
538         instead of a rotate.
540 2015-08-27  Marek Polacek  <polacek@redhat.com>
542         PR middle-end/67005
543         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
544         an entry into an irreducible region.
546 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
548         * configure: Regenerate.
550 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
552         PR tree-optimization/67283
553         * tree-sra.c (type_consists_of_records_p): Rename to...
554         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
556         (completely_scalarize_record): Rename to...
557         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
558         (scalarize_elem): New.
560 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
562         * tree-sra.c (completely_scalarize_var): Rename to...
563         (create_total_scalarization_access): ... Here. Drop call to
564         completely_scalarize_record.
566         (analyze_all_variable_accesses): Replace completely_scalarize_var
567         with create_total_scalarization_access and completely_scalarize_record.
569 2015-08-27  Alan Modra  <amodra@gmail.com>
571         PR target/67356
572         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
573         for operand 1.
575 2015-08-27  Richard Biener  <rguenther@suse.de>
577         * passes.c (rest_of_decl_compilation): Guard early_global_decl
578         call with !seen_error ().
579         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
580         early debug generation and finish...
581         (symbol_table::compile): ... here to put it after a !seen_error ()
582         guard.
584 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
586         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
587         Solaris 12+.
589 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
590             Andre Vieira  <andre.simoesdiasvieira@arm.com>
592         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
593         (*cb<optab><mode>1): Likewise.
594         (*tb<optab><mode>1): Likewise.
595         (*cb<optab><mode>1): Likewise.
596         * config/aarch64/iterators.md (inv_cb): New code attribute.
597         (inv_tb): Likewise.
598         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
599         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
601 2015-08-27  Richard Biener  <rguenther@suse.de>
603         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
605 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
607         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
608         trap to fix ICE.
610 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
612         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
613         Add declaration.
615         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
616         comment.
617         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
618         floating point in VSX registers.
619         (rs6000_output_move_128bit): Always print out the set insn if we
620         can't generate an appropriate 128-bit move.
621         (rs6000_generate_compare): Add support for IEEE 128-bit floating
622         point in VSX registers comparisons.
623         (rs6000_expand_float128_convert): Likewise.
625         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
626         predicate for only GPR hard registers.
628         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
629         modes to iterators. Add new iterators for moving 128-bit values in
630         scalar FPR registers and VSX registers.
631         (FMOVE128): Likewise.
632         (FMOVE128_FPR): Likewise.
633         (FMOVE128_GPR): Likewise.
634         (FMOVE128_VSX): Likewise.
635         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
636         in VSX registers.
637         (IFKF): Likewise.
638         (IBM128): Likewise.
639         (TFIFKF): Likewise.
640         (RELOAD): Add IEEE 128-bit floating point modes.
641         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
642         floating point in VSX registers modes.
643         (signbit<mode>2, IBM128 iterator): Likewise.
644         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
645         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
646         (negtf2): Likewise.
647         (neg<mode>2, TFIFKF iterator): Likewise.
648         (negtf2_internal): Likewise.
649         (abstf2): Likewise.
650         (abs<mode>2, TFIFKF iterator): Likewise.
651         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
652         VSX insn support for negate, absolute value, and negative absolute
653         value.
654         (ieee_128bit_vsx_neg<mode>2): Likewise.
655         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
656         (ieee_128bit_vsx_abs<mode>2): Likewise.
657         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
658         (ieee_128bit_vsx_nabs<mode>2): Likewise.
659         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
660         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
661         floating point in VSX registers.
662         (unpack<mode>_dm): Likewise.
663         (unpack<mode>_nodm): Likewise.
664         (pack<mode>): Likewise.
665         (unpackv1ti): Likewise.
666         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
667         (packv1ti): Likewise.
668         (pack<mode>, FMOVE128_VSX iterator): Likewise.
669         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
670         registers.
671         (extenddftf2_internal): Likewise.
672         (trunctfdf2): Likewise.
673         (trunctfdf2_internal2): Likewise.
674         (fix_trunc_helper): Likewise.
675         (fix_trunctfdi2"): Likewise.
676         (floatditf2): Likewise.
677         (floatuns<mode>tf2): Likewise.
678         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
679         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
680         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
681         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
682         (float<SDI:mode><IFKF:mode>2): Likewise.
683         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
685 2015-08-26  Renlin Li  <renlin.li@arm.com>
687         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
689 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
690             Jiong Wang  <jiong.wang@arm.com>
692         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
693         (tlsie_tiny_<mode>): New define_insn.
694         (tlsie_tiny_sidi): Likewise.
695         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
696         SYMBOL_TINY_TLSIE.
697         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
698         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
699         SYMBOL_TINY_TLSIE.
700         (aarch64_expand_mov_immediate): Likewise.
701         (aarch64_print_operand): Likewise.
702         (arch64_classify_tls_symbol): Likewise.
704 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
706         * config/arm/arm-arches.def: Replace single value flags with
707         an initializer built from ARM_FSET_MAKE_CPU1.
708         * config/arm/arm-cores.def: Likewise.
709         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
710         derivation from the ARM_CORE macro definition, use the given value
711         instead.
712         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
713         ARM_ARCH macro definition, use the given value instead.
715 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
717         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
718         feature set.
719         (struct builtin_description): Replace field mask with field
720         features.
721         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
722         (IWMMXT2_BUILTIN): Likewise.
723         (IWMMXT2_BUILTIN2): Likewise.
724         (FP_BUILTIN): Likewise.
725         (CRC32_BUILTIN): Likewise.
726         (CRYPTO_BUILTIN): Likewise.
727         (iwmmx_mbuiltin): Likewise.
728         (iwmmx2_mbuiltin): Likewise.
729         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
730         struct builtin_description.
732 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
734         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
735         (struct builtin_description): Change type of mask to unsigned
736         long.
737         * config/arm/arm-protos.h (insn_flags): Declare as type
738         arm_feature_set.
739         (tune_flags): Likewise.
740         * config/arm/arm.c (feature_count): New.
741         (insn_flags): Define as type arm_feature_set.
742         (tune_flags): Likewise.
743         (struct processors): Define field flags as type arm_feature_set.
744         (all_cores): Update for change to struct processors.
745         (all_architectures): Likewise.
746         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
747         macros.
748         (arm_option_override_internal): Likewise.
749         (arm_option_override): Likewise.
751 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
752             Jiong Wang  <jiong.wang@arm.com>
754         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
755         tls size for tiny, small, large memory model.
756         (aarch64_load_symref_appropriately): Support new symbol types.
757         (aarch64_expand_mov_immediate): Likewise.
758         (aarch64_print_operand): Likewise.
759         (aarch64_classify_tls_symbol): Likewise.
760         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
761         (aarch64_symbol_type): Likewise.
762         * config/aarch64/aarch64.md (tlsle): Deleted.
763         (tlsle12_<mode>): New define_insn.
764         (tlsle24_<mode>): Likewise.
765         (tlsle32_<mode>): Likewise.
766         (tlsle48_<mode>): Likewise.
767         * doc/sourcebuild.texi (AArch64-specific attributes): Document
768         "aarch64_tlsle32".
770 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
772         * config/arm/arm-protos.h (FL_NONE): New.
773         (FL_ANY): New.
774         (arm_feature_set): New.
775         (ARM_FSET_MAKE): New.
776         (ARM_FSET_MAKE_CPU1): New.
777         (ARM_FSET_MAKE_CPU2): New.
778         (ARM_FSET_CPU1): New.
779         (ARM_FSET_CPU2): New.
780         (ARM_FSET_EMPTY): New.
781         (ARM_FSET_ANY): New.
782         (ARM_FSET_HAS_CPU1): New.
783         (ARM_FSET_HAS_CPU2): New.
784         (ARM_FSET_HAS_CPU): New.
785         (ARM_FSET_ADD_CPU1): New.
786         (ARM_FSET_ADD_CPU2): New.
787         (ARM_FSET_DEL_CPU1): New.
788         (ARM_FSET_DEL_CPU2): New.
789         (ARM_FSET_UNION): New.
790         (ARM_FSET_INTER): New.
791         (ARM_FSET_XOR): New.
792         (ARM_FSET_EXCLUDE): New.
793         (AFM_FSET_IS_EMPTY): New.
794         (ARM_FSET_CPU_SUBSET): New.
796 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
798         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
799         SYMBOL_TLSLE to SYMBOL_TLSLE24.
800         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
801         Likewise.
802         (aarch64_expand_mov_immediate): Likewise.
803         (aarch64_print_operand): Likewise.
804         (aarch64_classify_symbol): Likewise.
806 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
808         * config/aarch64/aarch64.opt (mtls-size): New entry.
809         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
810         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
811         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
813 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
815         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
816         ARM_CORE entry.  Fix some white-space.
817         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
818         ARM_CORE definition.
820 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
822         * fold-const.c (fold_binary_loc) : Move Optimize 
823         root(x)*root(y) as root(x*y) to match.pd.
824         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
825         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
826         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
827         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
828         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
829         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
830         (mult (exps:s @0) (exps:s @1)) : New simplifier.
831         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
832         (rdiv @0 (exps:s @1)) : New simplifier.
834 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
836         * gcc.c (driver::finalize): Only assign to extra_specs if
837         [EXTRA_SPECS].
839 2015-08-25  Marek Polacek  <polacek@redhat.com>
841         PR middle-end/67330
842         * varasm.c (declare_weak): Return after giving an error.
844 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
846         * gcc-main.c (main): Add params to driver ctor.
847         * gcc.c (class env_manager): New.
848         (env): New global.
849         (env_manager::init): New.
850         (env_manager::get): New.
851         (env_manager::xput): New.
852         (env_manager::restore): New.
853         Poison getenv and putenv.
854         (DEFAULT_TARGET_SYSTEM_ROOT): New.
855         (target_system_root): Update initialization to use
856         DEFAULT_TARGET_SYSTEM_ROOT.
857         (struct spec_list): Add field "default_ptr".
858         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
859         (init_spec): Likewise.
860         (set_spec): Clear field "default_ptr".
861         (read_specs): Free "spec" and "buffer".
862         (xputenv): Reimplement in terms of env_manager.
863         (process_command): Replace ::getenv calls with calls to the
864         env_manager singleton.
865         (process_brace_body): Free string in three places.
866         (driver::driver): New.
867         (driver::~driver): New.
868         (used_arg): Convert from a function to...
869         (class used_arg_t): ...this class, and...
870         (used_arg): ...this new global instance.
871         (used_arg_t::finalize): New function.
872         (getenv_spec_function): Add "const" to local "value".  Replace
873         ::getenv call with call to the env_manager singleton.
874         (path_prefix_reset): New function.
875         (driver::finalize): New function.
876         * gcc.h (driver::driver): New.
877         (driver::~driver): New.
878         (driver::finalize): New.
880 2015-08-25  Nathan Sidwell  <nathan@acm.org>
882         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
883         target doesn't have one.
885 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
887         PR target/67346
888         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
890 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
892         PR target/67344
893         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
894         a define_insn, remove second alternative.
896 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
897             Joseph Myers  <joseph@codesourcery.com>
899         * gcc.c (struct switchstr): Expand comment.
901 2015-08-25  Nathan Sidwell  <nathan@acm.org>
903         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
904         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
906 2015-08-25  Richard Biener  <rguenther@suse.de>
908         PR middle-end/67306
909         * genmatch.c (expr::gen_transform): Verify the result of
910         builtin_decl_implicit.
911         (dt_simplify::gen_1): Likewise.
913 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
915         * config/arm/constraints.md: Also list Cs and US ARM-specific
916         constraints as used.
918 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
920         PR target/66609
921         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
922         UNSPEC_PCREL.
923         (nonpic_symbol_mentioned_p): Likewise.
924         (sh_delegitimize_address): Likewise.
925         (sh_function_ok_for_sibcall): Take into account weak symbols.
926         (sh_expand_sym_label2reg): New.
927         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
928         * config/sh/sh.md (UNSPEC_PCREL): New enum.
929         (call_pcrel): Use sh_expand_sym_label2reg.
930         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
931         (symPCREL_label2reg) New expand.
933 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
935         * graphite-poly.c: Change type of region from void* to sese.
936         * graphite-poly.h (struct scop): Changing the type of scop::region
937         from void* to sese. Change accessor macro accordingly.
938         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
940 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
942         * graphite-scop-detection.c (stmt_simple_for_scop_p):
943         Constrain only on INTEGER_TYPE.
945 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
947         PR target/67211
948         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
949         -mefficient-unaligned-vsx on ISA 2.7.
951         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
952         option to a masked option.
954         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
955         logic for -mefficient-unaligned-vsx so that it is set via an arch
956         ISA option, instead of being set if -mtune=power8 is set. Move
957         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
958         near other default option handling.
960 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
962         * genflags.c (gen_macro): Delete.
963         (gen_proto): Don't create GEN.*CALL.* macros.
964         * gensupport.h (get_file_location): Declare.
965         * gensupport.c (rtx_locs): New variable.
966         (read_md_rtx): Record rtx locations.
967         (get_file_location): New function.
968         * target-insns.def (call, call_pop, call_value, call_value_pop)
969         (sibcall, sibcall_value): New patterns.
970         * gentarget-def.c (parse_argument): New function.
971         (def_target_insn): Use it.  Handle optional operands.  Raise an
972         error if an .md pattern has the wrong number of operands for the
973         pattern name.  Remove the names of unused operands from the prototype.
974         * builtins.c (expand_builtin_apply): Use targetm functions
975         instead of HAVE_call_value and GEN_CALL_VALUE.
976         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
977         and sibcall_value_pop.
978         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
979         of GEN_CALL.
980         * config/alpha/alpha.md (untyped_call): Likewise.
981         * config/iq2000/iq2000.md (untyped_call): Likewise.
982         * config/m68k/m68k.md (untyped_call): Likewise.
983         * config/mips/mips.md (untyped_call): Likewise.
984         * config/pa/pa.md (untyped_call): Likewise.
985         * config/rs6000/rs6000.md (untyped_call): Likewise.
986         * config/sparc/sparc.md (untyped_call): Likewise.
987         * config/tilegx/tilegx.md (untyped_call): Likewise.
988         * config/tilepro/tilepro.md (untyped_call): Likewise.
989         * config/visium/visium.md (untyped_call): Likewise.
990         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
991         gen_call_value instead of GEN_CALL_VALUE.
992         * config/arm/arm.md (untyped_call): Likewise.
993         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
994         GEN_CALL.
996 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
998         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
999         (have_cbranchcc4): New variable.
1000         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
1001         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
1002         (if_convert): Initialize have_cbranchcc4.
1004 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1006         * builtins.c (expand_cmpstrn): Rename to...
1007         (expand_cmpstrn_or_cmpmem): ...this.
1008         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
1009         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
1010         Remove mode argument.
1011         (expand_builtin): Update accordingly.
1013 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1015         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
1016         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
1017         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
1018         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
1019         Add predicates for operands 0 and 3.
1020         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
1021         operand.
1022         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
1023         immediate_operand to nonmemory_operand.
1025 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1027         * df-scan.c (df_insn_info_init_fields): New function, split out
1028         from...
1029         (df_insn_create_insn_record): ...here.
1030         (df_insn_info_free_fields): New function, split out from...
1031         (df_insn_info_delete): ...here.
1032         (df_insn_rescan): Use the new functions instead of freeing and
1033         reallocating the df_insn_info.
1035 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1037         * doc/install.texi (Binaries): Remove links no longer valid.
1039 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
1041         * config/nvptx/mkoffload.c (process): Replace
1042         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
1044 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1046         PR target/67329
1047         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
1049 2015-08-24  Renlin Li  <renlin.li@arm.com>
1051         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1052         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1053         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1054         * config/arm/constraints.md ("j"): Add check for high code.
1056 2015-08-24  Tom de Vries  <tom@codesourcery.com>
1058         PR tree-optimization/65468
1059         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
1060         chunk_size is one.
1062 2015-08-24  Nathan Sidwell  <nathan@acm.org>
1064         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
1065         change to nvptx_type_from_mode call. Use arg_promotion for both
1066         split and non-split args.
1068 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1070         * target-insns.def (movstr): New pattern.
1071         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
1072         (expand_movstr): Use targetm rather than HAVE_movstr/
1073         CODE_FOR_movstr.
1075 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1077         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
1078         cast syntax.
1080 2015-08-24  Andrew Pinski  <apinski@cavium.com>
1082         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
1083         AARCH64_EXTRA_TUNING_OPTION.
1084         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
1085         (aarch64_extra_tuning_flags): Base the shifted value on the index instead
1086         of the argument to AARCH64_EXTRA_TUNING_OPTION.
1087         * config/aarch64/aarch64.c: Remove the last argument to
1088         AARCH64_EXTRA_TUNING_OPTION.
1090 2015-08-23  Nathan Sidwell  <nathan@acm.org>
1092         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
1093         decls.
1094         (nvptx_declare_function_name): Insert formatting tabs for
1095         consistency.
1097 2015-08-23  Tom de Vries  <tom@codesourcery.com>
1099         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
1100         parm_decl, rather than generating a dummy default def in cfun.
1101         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
1102         ssa_name from cfun and child_fn do not share a stmt as def stmt.
1103         (move_stmt_op): Handle PARM_DECl.
1104         (gather_ssa_name_hash_map_from): New function.
1105         (move_sese_region_to_fn): Add default defs for function params, and add
1106         them to vars_map.  Release copied ssa names.
1107         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
1109 2015-08-23  Tom de Vries  <tom@codesourcery.com>
1111         * doc/sourcebuild.texi: Rename vect_no_int_max with
1112         vect_no_int_min_max.  Update description.
1114 2015-08-22  Andrew Pinski  <apinski@cavium.com>
1116          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
1117         * config/aarch64/aarch64-protos.h
1118         (aarch64_fusion_pairs_index): New enum.
1119         (aarch64_fusion_pairs): Base the shifted value on the index instead
1120         Rewrite AARCH64_FUSE_ALL to be based on the end index.
1121         of the argument to AARCH64_FUSION_PAIR.
1122         * config/aarch64/aarch64.c: Remove the last argument to
1123         AARCH64_FUSION_PAIR.
1125 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
1127         * dominance.c (new_zero_array): Define.
1128         (dom_info): Redefine as class with proper encapsulation.
1129         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
1130         Add new members.
1131         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
1132         allocations/deallocations.  Pass function as parameter (instead of
1133         using cfun).
1134         (dom_info::get_idom): Define accessor method.
1135         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
1136         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
1137         (calculate_dominance_info): Adjust to use dom_info class.
1138         (verify_dominators): Likewise.
1140 2015-08-21  Alexandre Oliva <aoliva@redhat.com>
1142         * print-rtl.c (print_rtx): Check the correct range for
1143         flag_dump_unnumbered_links to behave as documented.
1145         PR rtl-optimization/67227
1146         PR rtl-optimization/64164
1147         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
1148         (nonoverlapping_memrefs_p): Test offsets and sizes when given
1149         identical gimple_reg exprs.
1151 2015-08-21  Nathan Sidwell  <nathan@acm.org>
1153         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
1154         expansion.
1155         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
1156         crtl->stack_alignment_needed to determine alignment.
1157         (nvptx_get_drap_rtx): New.
1158         (TARGET_GET_DRAP_RTX): Override.
1159         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
1161 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1163         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
1165 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1167         * configure.ac: Remove uwin* cases.
1168         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
1169         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
1170         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
1171         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
1172         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
1173         i[34567]86-*-uwin*, powerpc-*-beos*.
1175 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
1177         * gencodes.c (gencodes): Print the comma for the preceding
1178         enum value rather than the current one.  Use aliased enum values
1179         rather than #defines for compiled-out patterns.
1180         (main): Update accordingly.  Replace LAST_INSN_CODE with
1181         NUM_INSN_CODES.
1182         * lra.c (insn_code_data): Update accordingly.
1183         (finish_insn_code_data_once, get_static_insn_data): Likewise.
1184         * recog.h (target_recog): Likewise.
1185         (preprocess_insn_constraints): Change parameter to unsigned int.
1186         * recog.c (preprocess_insn_constraints): Likewise.
1187         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
1188         * tree-vect-stmts.c (vectorizable_operation): Simplify.
1190 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1192         PR rtl-optimization/61657
1193         * loop-iv.c (iv_number_of_iterations): Declare up and down as
1194         unsigned.  Remove superflous uint64_t cast.
1196 2014-08-21  Felix Yang  <felix.yang@huawei.com>
1197             Jiji Jiang  <jiangjiji@huawei.com>
1199         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
1200         and get builtin function code directly from CALL.
1201         (gimple_stringop_fixed_value): Modified accordingly.
1202         (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
1203         accordingly and only accept BUILT_IN_NORMAL string operations.
1205 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1207         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
1209 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1211         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
1212         to match.pd.
1213         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
1214         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
1215         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
1216         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
1217         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
1218         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
1219         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
1220         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
1221         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
1222         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
1224         * match.pd (SIN ) : New Operator.
1225         (TAN) : New Operator.
1226         (mult (SQRT@1 @0) @1) : New simplifier.
1227         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
1228         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1229         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
1230         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
1231         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
1232         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
1233         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
1234         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
1235         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
1236         (rdiv @0 (POW:s @1 @2)) : New simplifier.
1238 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
1240         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
1241         loop if EXPR is simplified to const value.
1243 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
1245         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
1246         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
1248 2015-08-21  Richard Biener  <rguenther@suse.de>
1250         PR middle-end/67285
1251         * gimple-fold.c (replace_stmt_with_simplification): Assert
1252         seq is empty when replacing a call with itself but different
1253         arguments.
1254         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
1255         a call require that it is const.
1257 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1259         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
1260         * builtins.c (get_object_alignment_2): Adjust.
1261         * varasm.c (align_variable): Likewise.
1262         (get_variable_align): Likewise.
1263         (build_constant_desc): Likewise.
1264         (force_const_mem): Likewise.
1265         * doc/tm.texi.in: Likewise.
1266         * doc/tm.texi: Regenerate.
1268 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1270         * genconfig.c (main): Always define HAVE_cc0.
1271         * recog.c (rest_of_handle_peephole2): Adjust.
1273 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1275         * reorg.c (relax_delay_slots): Don't use #if to check value of
1276         HAVE_cc0.
1278 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1280         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
1281         * targhooks.c (default_have_conditional_execution): Adjust.
1283 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1285         * rtl.h (rtvec_all_equal_p): Declare.
1286         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
1287         * rtl.c (rtvec_all_equal_p): New function.
1288         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
1289         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
1290         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
1291         * config/arm/arm.c (neon_vdup_constant): Likewise.
1292         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
1293         * config/tilegx/constraints.md (W, Y): Likewise.
1294         * config/tilepro/constraints.md (W, Y): Likewise.
1295         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
1296         (classify_immediate): Use unwrap_const_vec_duplicate.
1297         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
1298         (reg_or_v2s8bit_operand): Likewise.
1299         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
1300         (reg_or_v4s8bit_operand): Likewise.
1302 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1304         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
1305         (vec_shasigma_be): New #define.
1306         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
1307         (VPMSUMH): Likewise.
1308         (VPMSUMW): Likewise.
1309         (VPMSUMD): Likewise.
1310         (VPMSUM): New BU_P8V_OVERLOAD_2.
1311         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
1312         entries for VEC_MADD and VEC_VPMSUM.
1314 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
1316         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
1317         Multiply argument avr_n_flash by 64 to match unit of "KiB".
1318         (avr_pgm_check_var_decl): Same.
1320 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
1322         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
1323         initialization of HFmode scalar type (float16_t) to...
1324         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
1325         code.
1327         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
1329         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
1330         having an -mfp16-format.
1332 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
1334         * config/i386/predicates.md (vector_all_ones_operand): Use
1335         CONSTM1_RTX to simplify definition.
1337 2015-08-20  Richard Biener  <rguenther@suse.de>
1339         * toplev.c (compile_file): Remove loop calling late_global_decl
1340         on all symbols.
1341         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
1342         on decls we assembled.
1344 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
1346         * common/config/aarch64/aarch64-common.c
1347         (AARCH64_CPU_NAME_LENGTH): Delete.
1348         (aarch64_option_extension): New.
1349         (all_extensions): Likewise.
1350         (processor_name_to_arch): Likewise.
1351         (arch_to_arch_name): Likewise.
1352         (all_cores): New.
1353         (all_architectures): Likewise.
1354         (aarch64_get_extension_string_for_isa_flags): Likewise.
1355         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
1356         architecture names.
1357         * config/aarch64/aarch64-protos.h
1358         (aarch64_get_extension_string_for_isa_flags): New.
1359         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
1360         (aarch64_option_print): Get the string to print from
1361         aarch64_get_extension_string_for_isa_flags.
1362         (aarch64_declare_function_name): Likewise.
1363         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
1364         (MCPU_TO_MARCH_SPEC): This.
1365         (ASM_CPU_SPEC): Use it.
1366         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
1367         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
1368         (EXTRA_SPEC_FUNCTIONS): Use it.
1370 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
1372         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
1373         expansion when !ISA_HAS_LWL_LWR.
1374         (mips_block_move_straight): Update the size of elements copied to
1375         account for alignment when !ISA_HAS_LWL_LWR.
1376         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
1378 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1380         * expr.c (expand_expr_real_2): Check gimple statement during
1381         LSHIFT_EXPR expand.
1383 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
1385         * common.opt (fstack-protector): Initialize to -1.
1386         (fstack-protector-all): Likewise.
1387         (fstack-protector-strong): Likewise.
1388         (fstack-protector-explicit): Likewise.
1389         * configure.ac: Add --enable-default-ssp.
1390         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
1391         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
1392         -1.
1393         * doc/install.texi: Document --enable-default-ssp.
1394         * config.in: Regenerated.
1395         * configure: Likewise.
1397 2015-08-19  Alexandre Oliva <aoliva@redhat.com>
1399         PR rtl-optimization/64164
1400         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
1401         (parm_in_stack_slot_p): ... this.  Disregard mode, what
1402         matters is whether the parm will live in a pseudo or a stack
1403         slot.
1404         (expand_one_ssa_partition): Deal with params without a default
1405         def.  Disregard mode.
1406         * cfgexpand.h: Renamed function declaration.
1407         * tree-ssa-coalesce.c: Adjust.
1408         * function.c (split_complex_args): Allocate stack slot for
1409         unassigned parms before splitting.
1410         (parm_in_unassigned_mem_p): New.  Use it instead of
1411         parm_maybe_byref_p throughout this file.
1412         (assign_parm_setup_block): Use it.  Accept pseudos in the
1413         expand-assigned rtl.
1414         (assign_parm_setup_reg): Drop BLKmode requirement.
1415         (assign_parm_setup_stack): Allocate and fill in the address of
1416         unassigned MEM parms.
1418 2015-08-19  David Sherwood  <david.sherwood@arm.com>
1420         * genmodes.c (emit_mode_unit_size_inline): New function.
1421         (emit_mode_unit_precision_inline): New function.
1422         (emit_insn_modes_h): Emit new #define.  Emit new functions.
1423         (emit_mode_unit_size): New function.
1424         (emit_mode_unit_precision): New function.
1425         (emit_mode_adjustments): Add mode_unit_size adjustments.
1426         (emit_insn_modes_c): Emit new arrays.
1427         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
1428         use new inline methods.
1430 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1432         * config/aarch64/aarch64.c (bit_count): Delete prototype
1433         and definition.
1434         (aarch64_print_operand): Use popcount_hwi instead of the above.
1436 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1438         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
1439         comment.
1441 2015-08-19  Marek Polacek  <polacek@redhat.com>
1443         PR middle-end/67133
1444         * gimple-ssa-isolate-paths.c
1445         (insert_trap_and_remove_trailing_statements): Rename to ...
1446         (insert_trap): ... this.  Don't remove trailing statements; split
1447         block instead.
1448         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
1450 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
1452         PR other/67042
1453         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
1454         conditionalize the whole on __GNUC__.  Add fallback code
1455         depending neither on undefined nor implementation-defined behaviour.
1457 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
1459         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
1460         whitespaces with tab.
1462 2015-08-19  Florian Weimer  <fweimer@redhat.com>
1464         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
1465         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
1466         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
1467         Move Name_Ids instantiation to the Prj.Proc package, to avoid
1468         trampolines.
1470 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1472         * config/arm/arm.c (bounds_check): Use %wd print format
1473         for HOST_WIDE_INT arguments.
1475 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
1477         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
1478         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
1479         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
1480         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
1481         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
1482         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
1483         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
1484         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
1485         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
1486         typedefs.
1488 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
1490         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
1491         function.c, graphite-scop-detection.c, haifa-sched.c,
1492         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
1493         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
1494         varasm.c: Remove typedefs of structs.
1496 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
1498         * config/rs6000/altivec.h (vec_adde): New define.
1499         (vec_addec): Likewise.
1500         (vec_double): Likewise.
1501         (vec_bperm): Likewise.
1502         (vec_gb): Likewise.
1503         * config/rs6000/rs6000-builtin.def (ADDE): New
1504         BU_ALTIVEC_OVERLOAD_3.
1505         (ADDEC): Likewise.
1506         (DOUBLE): New BU_VSX_OVERLOAD_1.
1507         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
1508         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
1509         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
1510         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
1511         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
1512         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
1513         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
1514         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
1515         and P8V_BUILTIN_VEC_VBPERMQ.
1517 2015-08-18  Jason Merrill  <jason@redhat.com>
1519         * print-tree.c (print_node): Handle TREE_BINFO.
1521 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1523         PR middle-end/36757
1524         * builtins.c (expand_builtin_signbit): Add asserts to make sure
1525         we can expand BUILT_IN_SIGNBIT inline.
1526         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
1527         * doc/extend.texi: Document the type-generic __builtin_signbit.
1529 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
1531         PR rtl-optimization/67218
1532         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
1533         (simplify_unary_operation_1): Use it.
1535 2015-08-18  Marek Polacek  <polacek@redhat.com>
1537         PR middle-end/67222
1538         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1539         if the call isn't valid.
1540         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1541         gimple_call_builtin_p.
1542         (call_may_clobber_ref_p_1): Likewise.
1543         (stmt_kills_ref_p): Likewise.
1545 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
1547         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
1548         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
1549         (mips_hard_regno_scratch_ok): Likewise.
1550         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
1551         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
1553 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
1555         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
1556         (determine_value_range): Call refine_value_range_using_guard for
1557         each loop initial condition to improve value range.
1559 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
1561         * config/i386/i386.c: Remove include of fibheap.h.
1563 2015-08-17  Richard Biener  <rguenther@suse.de>
1565         PR tree-optimization/67221
1566         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
1567         (sccvn_dom_walker::before_dom_children): Mark backedges of
1568         non-executable blocks as not executable.
1570 2015-08-17  David Sherwood  <david.sherwood@arm.com>
1572         * config/arm/arm.c (neon_element_bits): Replace call to
1573         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
1574         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
1575         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
1576         (neon_vdup_lane<mode>): Likewise.
1577         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
1578         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
1579         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
1580         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
1581         * config/spu/spu.c (arith_immediate_p): Likewise.
1582         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1583         * expr.c (expand_expr_real_2): Likewise.
1584         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
1585         * simplify-rtx.c (simplify_immed_subreg): Likewise.
1586         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
1587         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
1588         New variable.
1589         * fold-const.c (fold_binary_loc): Replace call to
1590         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
1591         GET_MODE_UNIT_PRECISION (m).
1593 2015-08-17  Mike Stump  <mikestump@comcast.net>
1595         * config/arm/arm.c (arm_block_move_unaligned_straight):
1596         Emit normal move instead of unaligned load when source or destination
1597         are appropriately aligned.
1599 2015-08-17  Richard Biener  <rguenther@suse.de>
1600             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1602         PR middle-end/16107
1603         * match.pd (div (coss (op @0) : New simplifier.
1605 2015-08-14  Alexandre Oliva <aoliva@redhat.com>
1607         PR rtl-optimization/64164
1608         PR bootstrap/66978
1609         PR middle-end/66983
1610         PR rtl-optimization/67000
1611         PR middle-end/67034
1612         PR middle-end/67035
1613         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1614         * tree-ssa-copyrename.c: Removed.
1615         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1616         -ftree-coalesce-vars.
1617         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1618         * common.opt (ftree-copyrename): Ignore.
1619         (ftree-coalesce-inlined-vars): Likewise.
1620         * doc/invoke.texi: Remove the ignored options above.
1621         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1622         * tree-ssa-coalesce.h: ... here.
1623         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1624         headers required by it.
1625         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1626         across variables when flag_tree_coalesce_vars.  Check register
1627         use and promoted modes to allow coalescing.  Do not coalesce
1628         maybe-byref parms with SSA_NAMEs of other variables, or
1629         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
1630         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1631         with its member functions to tree-ssa-coalesce.c.
1632         (var_map_base_init): Likewise.  Renamed to
1633         compute_samebase_partition_bases.
1634         (partition_view_normal): Drop want_bases parameter.
1635         (partition_view_bitmap): Likewise.
1636         * tree-ssa-live.h: Adjust declarations.
1637         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
1638         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1639         default defs at the entry point.
1640         (dump_part_var_map): New.
1641         (compute_optimized_partition_bases): New, called by...
1642         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1643         of compute_samebase_partition_bases.  Adjust.
1644         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1645         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
1646         (ssa_default_def_partition): New.
1647         (get_rtl_for_parm_ssa_default_def): New.
1648         (align_local_variable, add_stack_var): Support anonymous SSA
1649         names.
1650         (defer_stack_allocation): Likewise.  Declare earlier.
1651         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1652         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1653         Do no record deferred-allocation marker in
1654         SA.partition_to_pseudo.
1655         (expand_stack_vars): Adjust check for the marker in it.
1656         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1657         redundant MEM attr setting.
1658         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1659         from...
1660         (expand_one_stack_var): ... this.  New wrapper to check and
1661         skip already expanded SSA partitions.
1662         (record_alignment_for_reg_var): New, factored out of...
1663         (expand_one_var): ... this.
1664         (expand_one_ssa_partition): New.
1665         (adjust_one_expanded_partition_var): New.
1666         (expand_one_register_var): Check and skip already expanded SSA
1667         partitions.
1668         (expand_used_vars): Don't create DECLs for anonymous SSA
1669         names.  Expand all SSA partitions, then adjust all SSA names.
1670         (pass::execute): Replace the loops that set
1671         SA.partition_to_pseudo from partition leaders and cleared
1672         DECL_RTL for multi-location variables, and that which used to
1673         rename vars and set attrs, with one that clears DECL_RTL and
1674         checks that PARMs and RESULTs default_defs match DECL_RTL.
1675         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1676         * emit-rtl.c: Include stor-layout.h.
1677         (set_reg_attrs_for_parm): Handle NULL decl.
1678         (set_reg_attrs_for_decl_rtl): Take mode from expression if
1679         it's not a DECL.
1680         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
1681         rather than its possibly-NULL DECL.
1682         * explow.c (promote_ssa_mode): New.
1683         * explow.h (promote_ssa_mode): Declare.
1684         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1685         (read_complex_part): Export.
1686         * expr.h (read_complex_part): Declare.
1687         * cfgexpand.h (parm_maybe_byref_p): Declare.
1688         * function.c: Include cfgexpand.h.
1689         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1690         (use_register_for_parm_decl): Wrapper for the above to
1691         special-case the result_ptr.
1692         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1693         (split_complex_args): Take assign_parm_data_all argument.
1694         Pass it to rtl_for_parm.  Set up rtl and context for split
1695         args.  Reset complex parm before fetching its default decl
1696         rtl.
1697         (assign_parms_unsplit_complex): Use the default-def complex
1698         parm rtl if it matches the components.
1699         (assign_parms_augmented_arg_list): Adjust.
1700         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1701         multiple locations.  Recognize split complex args.
1702         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1703         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1704         (assign_parm_setup_block): Prefer SSA-assigned location, and
1705         fill in its address if the memory location of a maybe-byref
1706         parm was not assigned by cfgexpand.
1707         (assign_parm_setup_reg): Likewise.  Adjust its mode as
1708         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
1709         sure passed_pointer parms don't need conversion.  Copy address
1710         or value as needed.
1711         (assign_parm_setup_stack): Prefer SSA-assigned location.
1712         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1713         rtl before testing for pointer bounds.  Special-case result_ptr.
1714         (expand_function_start): Maybe reset DECL_RTL of result.
1715         Prefer SSA-assigned location for result and static chain.
1716         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
1717         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
1718         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1719         anonymous SSA names.  Use promote_ssa_mode.
1720         (get_temp_reg): Likewise.
1721         (remove_ssa_form): Adjust.
1722         * stor-layout.c (layout_decl): Don't set mem attributes of
1723         non-MEMs.
1724         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1725         and get its reg_usage for reg invalidation.
1726         (compute_bb_dataflow): Pass it insn.
1727         (emit_notes_in_bb): Likewise.
1729 2015-08-14  Marek Polacek  <polacek@redhat.com>
1731         * tree-core.h (tree_base): Fix typo.
1733 2015-08-14  Marek Polacek  <polacek@redhat.com>
1735         PR middle-end/67133
1736         * gimple.c (infer_nonnull_range_by_attribute): Check that the
1737         nonnull argument position is not outside function arguments.
1739 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
1741         PR target/67143
1742         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
1743         'lconst_atomic' with 'const_atomic'.
1744         (atomic_fetch_<optab><mode>): Likewise.
1745         (atomic_<optab>_fetch<mode>): Likewise.
1746         * config/aarch64/iterators.md (lconst-atomic): Move below
1747         'const_atomic'.
1748         (const_atomic): New.
1750 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
1751             Bernd Schmidt  <bernds@codesourcery.com>
1753         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
1754         debug options.
1755         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
1756         (DWARF2_DEBUGGING_INFO): Don't define.
1757         * debug.h (dwarf2_lineno_debug_hooks): Declare.
1758         * toplev.c (process_options): Add a case for it.
1759         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
1760         (dwarf2out_init): Skip most initializations if
1761         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
1762         case.
1763         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
1764         DWARF2_LINENO_DEBUGGING_INFO.
1765         * opts.c (set_debug_level): Likewise.
1767 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
1769         * config/arm/types.md (is_neon_type): Add missing types.
1771 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
1773         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
1774         for skylake.
1775         * config/i386/i386.c (PTA_SKYLAKE): New macros.
1776         (processor_alias_table): Add skylake description.
1777         (enum processor_model): Add skylake processor.
1778         (arch_names_table): Add skylake record.
1779         * doc/invoke.texi: Add skylake item.
1781 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
1783         * ira-int.h: Include recog.h.
1784         * ira-build.c: Don't include recog.h.
1785         * ira-color.c: Likewise.
1786         * ira-conflicts.c: Likewise.
1787         * ira-costs.c: Likewise.
1788         * ira-emit.c: Likewise.
1789         * ira-lives.c: Likewise.
1790         * ira.c: Likewise.
1791         * sched-deps.c: Likewise.
1792         * sel-sched.c: Likewise.
1793         * target-globals.c: Likewise.
1795 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
1797         PR bootstrap/55035
1798         * reload1.c (elimination_costs_in_insn): Make it obvious to the
1799         compiler that the n_dups and n_operands loop bounds are invariant.
1801 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1803         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
1804         expressions in A and B.
1806 2015-08-13  Richard Biener  <rguenther@suse.de>
1808         * tree.c (nonnull_arg_p): Move from ...
1809         * tree-vrp.c (nonnull_arg_p): ... here.
1810         * tree.h (nonnull_arg_p): Declare.
1811         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
1812         here, register ptr != 0 for nonnull_arg_p pointer arguments.
1813         Properly initialize static chain and by-reference result pointer.
1814         (run_scc_vn): Adjust.
1816 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1818         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
1819         TUNE_I6400.
1821 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1823         * config/aarch64/aarch64-protos.h
1824         (aarch64_gen_atomic_cas): Declare.
1825         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
1826         Choose appropriate instruction pattern for the target.
1827         (aarch64_gen_atomic_cas): New.
1828         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
1829         (atomic_compare_and_swap<mode>_1): Rename to
1830         aarch64_compare_and_swap<mode>.  Fix some indentation.
1831         (aarch64_compare_and_swap<mode>_lse): New.
1832         (aarch64_atomic_cas<mode>): New.
1834 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
1836         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
1837         (TARGET_LSE): New.
1839 2015-08-13  Richard Biener  <rguenther@suse.de>
1841         PR tree-optimization/67191
1842         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
1843         assert we value-numbered last stmts operand because it can validly
1844         trigger for unreachable code.
1846 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1848         PR rtl-optimization/67103
1849         * ifcvt.c (noce_try_store_flag_constants): Move
1850         x = (-(test != 0) & (b - a)) + a transformation to...
1851         (noce_try_cmove): ... Here.  Try it if normal conditional
1852         move fails.
1854 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
1856         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
1857         pseudo-processors.
1858         * config/mips/mips.md (processor): Remove w32 and w64.
1860 2015-08-13  Richard Biener  <rguenther@suse.de>
1862         PR tree-optimization/66502
1863         PR tree-optimization/67167
1864         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
1865         backedge arguments.
1866         (vn_phi_lookup): Adjust.
1867         (vn_phi_insert): Likewise.
1868         (visit_phi): Prefer to value-number to another PHI node
1869         over value-numbering to a PHI argument.
1870         (init_scc_vn): Mark DFS back edges.
1872 2015-08-13  Richard Biener  <rguenther@suse.de>
1874         * gimple.h (gcall::code_): New constant static member.
1875         (gcond::code_): Likewise.
1876         * gimple.c (gcall::code_): Define.
1877         (gcond::code_): Likewise.
1878         (is_a_helper <const gcond *>): Add.
1879         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
1880         and forward to a new gcall overload with less checking and a
1881         cheaper way to access the operand.
1882         (gimple_call_lhs_ptr): Likewise.
1883         (gimple_call_set_lhs): Likewise.
1884         (gimple_call_internal_p): Likewise.
1885         (gimple_call_with_bounds_p): Likewise.
1886         (gimple_call_set_with_bounds): Likewise.
1887         (gimple_call_internal_fn): Likewise.
1888         (gimple_call_set_ctrl_altering): Likewise.
1889         (gimple_call_ctrl_altering_p): Likewise.
1890         (gimple_call_fntype): Likewise.
1891         (gimple_call_fn): Likewise.
1892         (gimple_call_fn_ptr): Likewise.
1893         (gimple_call_set_fndecl): Likewise.
1894         (gimple_call_fndecl): Likewise.
1895         (gimple_call_chain): Likewise.
1896         (gimple_call_num_args): Likewise.
1897         (gimple_call_arg): Likewise.
1898         (gimple_call_arg_ptr): Likewise.
1899         (gimple_call_set_arg): Likewise.
1900         (gimple_call_noreturn_p): Likewise.
1901         (gimple_cond_code): Likewise.
1902         (gimple_cond_lhs): Likewise.
1903         (gimple_cond_rhs): Likewise.
1904         (gimple_has_lhs): Reduce checking.
1906 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1908         PR middle-end/25529
1909         * match.pd (div (mult @0 @1) @1) : New simplifier.
1911 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1913         PR target/67071
1914         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
1915         predicate to allow construction of vector constants using the
1916         VSLDOI vector shift instruction.
1918         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
1919         declaration.
1921         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
1922         the number of bytes to be shifted left and filled in with either
1923         all zero or all one bits.
1924         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
1925         methods exist.
1926         (output_vec_const_move): On power8, generate XXLORC to generate
1927         a vector constant with all 1's. Do a split if we need to use a
1928         VSLDOI instruction.
1930         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
1931         properly test for the MSB.
1933         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
1934         vector constants that can be created with VSLDOI.
1936 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
1938         revert:
1939         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
1940         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
1941         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
1942         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
1943         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
1944         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
1945         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
1946         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
1947         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
1949 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
1951         * config/xtensa/constraints.md (define_constraint "Y"): New
1952         constraint.
1953         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
1954         * config/xtensa/linux.h (ASM_SPEC): Likewise.
1955         * config/xtensa/predicates.md (move_operand): Match constants
1956         and symbols in the presence of TARGET_AUTO_LITPOOLS.
1957         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
1958         immediate references to TLS data.
1959         (xtensa_emit_move_sequence): Don't force constants to memory in
1960         the presence of TARGET_AUTO_LITPOOLS.
1961         (print_operand): Add 'y' format, same as default, but capable of
1962         printing SF mode constants as well.
1963         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
1964         (movsf_internal): Add movi pattern that loads literal.
1965         (movsf, movdf): Don't force constants to memory in the presence
1966         of TARGET_AUTO_LITPOOLS.
1967         (movdf_internal): Add 'Y' constraint.
1968         * config/xtensa/xtensa.opt (mauto-litpools): New option.
1969         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
1971 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
1973         * config/arm/arm-fpus.def: Replace booleans with feature flags.
1974         Update comment.
1975         * config/arm/arm.c (ARM_FPU): Update macro.
1976         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
1977         (TARGET_FP16): Likewise.
1978         (TARGET_CRYPTO): Likewise.
1979         (TARGET_NEON): Likewise.
1980         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
1981         field features.
1983 2015-08-12  Tom de Vries  <tom@codesourcery.com>
1985         PR other/67092
1986         PR other/67098
1987         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
1988         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
1989         accordingly.  Mention default for --with-stage1-ldflags.
1991 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
1993         * config/arm/arm.h (arm_fpu_feature_set): New.
1994         (ARM_FPU_FSET_HAS): New.
1995         (FPU_FL_NONE): New.
1996         (FPU_FL_NEON): New.
1997         (FPU_FL_FP16): New.
1998         (FPU_FL_CRYPTO): New.
2000 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2002         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
2003         after -mcmodel=large -fPIC sorry.
2005 2015-08-12  Richard Biener  <rguenther@suse.de>
2007         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
2008         comparison operand order and commutative ternary op operand order.
2009         (sccvn_dom_walker::cond_stack): New state to track temporary
2010         expressions.
2011         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
2012         no longer valid.
2013         (sccvn_dom_walker::record_cond): Add a single temporary conditional
2014         expression.
2015         (sccvn_dom_walker::record_conds): Add a temporary conditional
2016         expressions and all related expressions also true/false.
2017         (sccvn_dom_walker::before_dom_children): Record temporary
2018         expressions based on the controlling condition of a single
2019         predecessor.  When trying to simplify a conditional statement
2020         lookup expressions we might have inserted earlier.
2022 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
2024         PR target/67127
2025         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
2026         to ARM core registers.
2028 2015-08-12  Nathan Sidwell  <nathan@acm.org>
2030         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
2031         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
2033 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
2035         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
2036         line with comments.
2037         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
2039 2015-08-12  Richard Biener  <rguenther@suse.de>
2041         * gimple.h (remove_pointer): New trait.
2042         (GIMPLE_CHECK2): New inline template function.
2043         (gassign::code_): New constant static member.
2044         (is_a_helper<const gassign *>): Add.
2045         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
2046         and forward to a new gassign overload with less checking and a
2047         cheaper way to access the operand.
2048         (gimple_assign_lhs_ptr): Likewise.
2049         (gimple_assign_set_lhs): Likewise.
2050         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
2051         Likewise.
2052         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
2053         Likewise.
2054         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
2055         Likewise.
2056         (gimple_assign_rhs_code): Likewise.
2057         * gimple.c (gassign::code_): Define.
2059 2015-08-12  Richard Biener  <rguenther@suse.de>
2061         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2062         Eliminate edges marked as not executable by SCCVN.
2063         * tree-ssa-sccvn.c: Include gimple-iterator.h.
2064         (cond_dom_walker): Rename to sccvn_dom_walker.
2065         (sccvn_dom_walker::before_dom_children): Value-number defs
2066         of all stmts.
2067         (run_scc_vn): Remove loop value-numbering all SSA names.
2068         Drop not visited SSA names to varying.
2070 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
2072         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2073         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2074         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2075         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2076         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2077         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2078         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2079         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2080         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2082 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
2084         PR target/66954
2085         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
2086         to enum feature_priority and feature_list.
2087         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
2088         and isa_names_table.
2090 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
2092         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
2093         vect_induction_def.
2095 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2097         PR c/66098
2098         PR c/66711
2099         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
2100         account when deciding what was the command-line status.
2102 2015-08-11  Nathan Sidwell  <nathan@acm.org>
2104         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
2106         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
2107         we're not the only contributor to target phi.
2109 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
2111         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
2112         FIXED_REG0.
2114 2015-08-11  Tom de Vries  <tom@codesourcery.com>
2116         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
2118 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
2120         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
2121         with CPU_SLM.
2122         * config/i386/i386.md (cpu): Remove knl.
2124 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
2126         PR libgomp/65742
2127         PR middle-end/66332
2128         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
2129         open-coded sequence.
2130         * omp-low.c (oacc_process_reduction_data): Remove handline of
2131         GOMP_DEVICE_HOST_NONSHM.
2133         * lto-streamer-in.c (lto_input_mode_table): Adjust to
2134         GET_MODE_INNER changes.
2136 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
2137             Ilya Verbin  <ilya.verbin@intel.com>
2139         * lto-streamer-in.c (lto_input_mode_table): Correctly advance
2140         iterator.
2142 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2144         * doc/options.texi (EnabledBy): Document that the argument must be
2145         a Common option.
2146         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
2147         Not enabled by -Wall.
2148         * optc-gen.awk: Give nicer error messages. Detect if the argument
2149         of EnabledBy is not a Common option.
2150         * common.opt (Wnull-dereference): Not enabled by -Wall.
2151         * opt-functions.awk (lang_enabled_by): Nicer error messages.
2153 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2155         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
2156         model == 0x4f as Broadwell.
2158 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
2160         PR rtl-optimization/67028
2161         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
2162         Add test to see if a const_int fits in the new mode.
2164 2015-08-07  DJ Delorie  <dj@redhat.com>
2166         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
2167         
2168 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2170         PR rtl-optimization/67029
2171         * ira-color.c: Include "recog.h" before including "ira-int.h".
2172         * target-globals.c: Likewise.
2173         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
2174         adds an alternative_mask argument and use it instead of
2175         preferred_alternatives.
2176         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
2177         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
2178         * sched-deps.c: Include "ira-int.h" after including "ira.h".
2179         (sched_analyze_insn): Update call to
2180         ira_implicitly_set_insn_hard_regs.
2181         * sel-sched.c: Include "ira-int.h" after including "ira.h".
2182         (implicit_clobber_conflict_p): Update call to
2183         ira_implicitly_set_insn_hard_regs.
2185 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
2187         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
2189 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2191         PR target/67002
2192         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
2193         currently_expanding_to_rtl is set.
2195 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
2197         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
2198         * configure: Regenerate.
2200 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2201             Jiong Wang  <jiong.wang@arm.com>
2203         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2204         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2205         (REG_CLASS_NAMES): Likewise.
2206         (REG_CLASS_CONTENTS): Likewise.
2207         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2208         (aarch64_register_move_cost): Likewise.
2209         (aarch64_load_symref_appropriately): Invoke the new added pattern if
2210         possible.
2211         * config/aarch64/constraints.md (Uc0): New constraint.
2213 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
2215         * config/aarch64/constraints.md (Usf): Add the test of
2216         aarch64_is_noplt_call_p.
2218 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
2220         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
2221         declaration.
2222         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
2223         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
2224         (call_symbol): Likewise.
2226 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2228         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
2229         for vectorizing multiplication patterns.
2230         * tree-vectorizer.h: Adjust the number of patterns.
2232 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
2234         * config/i386/sse.md (*vec_concatv2df): Declare added
2235         alternatives as sselog type.
2237 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2239         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
2240         all GPRs.
2242 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2244         * config/s390/s390.c (s390_expand_tbegin): Expand either
2245         tbegin_1_z13 or tbegin_1 depending on VX flag.
2246         * config/s390/s390.md ("tbegin_1_z13"): New expander.
2248 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2250         * config/s390/s390.opt: Clarify description for -mzvector
2251         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
2252         -mzvector.
2254 2015-08-06  Richard Biener  <rguenther@suse.de>
2256         * gimple.h (gimple_call_set_fn): Access op member directly.
2257         (gimple_call_chain_ptr): Likewise.
2258         (gimple_call_set_chain): Likewise.
2259         (gimple_cond_lhs_ptr): Likewise.
2260         (gimple_cond_set_lhs): Likewise.
2261         (gimple_cond_rhs_ptr): Likewise.
2262         (gimple_cond_set_rhs): Likewise.
2263         (gimple_cond_true_label): Likewise.
2264         (gimple_cond_set_true_label): Likewise.
2265         (gimple_cond_set_false_label): Likewise.
2266         (gimple_cond_false_label): Likewise.
2267         (gimple_label_label): Likewise.
2268         (gimple_label_set_label): Likewise.
2269         (gimple_goto_set_dest): Likewise.
2270         (gimple_asm_input_op): Likewise.
2271         (gimple_asm_input_op_ptr): Likewise.
2272         (gimple_asm_set_input_op): Likewise.
2273         (gimple_asm_output_op): Likewise.
2274         (gimple_asm_output_op_ptr): Likewise.
2275         (gimple_asm_set_output_op): Likewise.
2276         (gimple_asm_clobber_op): Likewise.
2277         (gimple_asm_set_clobber_op): Likewise.
2278         (gimple_asm_label_op): Likewise.
2279         (gimple_asm_set_label_op): Likewise.
2280         (gimple_switch_index): Likewise.
2281         (gimple_switch_index_ptr): Likewise.
2282         (gimple_return_retval_ptr): Likewise.
2283         (gimple_return_retval): Likewise.
2284         (gimple_return_set_retval): Likewise.
2285         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
2286         (gimple_switch_label): Likewise.
2287         (gimple_switch_set_label): Likewise.
2289 2015-08-06  Richard Biener  <rguenther@suse.de>
2291         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
2292         bool comparison canonicalization and restrict to integers.
2294 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
2296         * coretypes.h (enum symbol_visibility): Relocate here.
2297         * flag-types.h (enum symbol_visibility): Remove.
2298         * tree-core.h (enum symbol_visibility): Remove.
2300 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
2302         PR target/66870
2303         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
2304         for no_split_stack function attribute along with
2305         flag_split_stack.
2306         (rs6000_expand_split_stack_prologue): Likewise.
2308 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2309             Jeff Law  <law@redhat.com>
2311         PR c/16351
2312         * doc/invoke.texi (Wnull-dereference): New.
2313         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
2314         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
2315         Warn for potential NULL dereferences.
2316         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
2317         * ubsan.c (instrument_nonnull_arg): Call
2318         infer_nonnull_range_by_attribute.
2319         (instrument_nonnull_return): Likewise.
2320         * common.opt (Wnull-dereference); New.
2321         * gimple.c (infer_nonnull_range): Remove bool arguments.
2322         (infer_nonnull_range_by_dereference): New.
2323         (infer_nonnull_range_by_attribute): New.
2324         * gimple.h: Update declarations.
2326 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2328         * gensupport.c (sequence_num): Replace with...
2329         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
2330         ...these new variables.
2331         (init_rtx_reader_args_cb): Update accordingly.
2332         (get_num_code_insns): Likewise.
2333         (read_md_rtx): Rework to use a while loop and get_c_test.
2334         Use the new counters.  Remove redundant DEFINE_SUBST case.
2335         * genoutput.c (gen_split): Delete.
2336         (main): Don't call it.
2338 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2340         * gensupport.h (get_c_test): Declare.
2341         * gensupport.c (get_c_test): New function.
2342         * genconditions.c (main): Use it.
2343         * genrecog.c (validate_pattern): Likewise.
2344         (match_pattern_1): Likewise.  Remove c_test argument.
2345         (match_pattern): Update accordingly and remove c_test argument.
2346         (main): Update accordingly.
2348 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2350         * gensupport.h (get_num_insn_codes): Declare.
2351         * gensupport.c (get_num_insn_codes): New function.
2352         * genattrtab.c (optimize_attrs): Rename max_insn_code to
2353         num_insn_codes.
2354         (main): Likewise.  Use get_num_insn_codes.
2355         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
2357 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2359         PR middle-end/66311
2360         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
2361         is zero- rather than sign-extended.
2363 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
2365         * target-insns.def (can_extend): Delete.
2367 2015-08-05  Richard Biener  <rguenther@suse.de>
2369         PR tree-optimization/67121
2370         * tree-if-conv.c (combine_blocks): Clear range-info produced
2371         by stmts no longer executed conditionally.
2373 2015-08-05  Nick Clifton  <nickc@redhat.com>
2375         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
2376         to allow identical far pointers to remain.
2378 2015-08-05  Richard Biener  <rguenther@suse.de>
2380         PR middle-end/67120
2381         * match.pd: Compare address bases with == if they are decls
2382         or SSA names, not operand_equal_p.  Otherwise fail.
2384 2015-08-05  Richard Biener  <rguenther@suse.de>
2386         PR tree-optimization/67055
2387         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
2388         NULL gimple_block.
2390         * g++.dg/torture/pr67055.C: New testcase.
2392 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2394         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
2395         noavx512vl.
2396         (define_attr "enabled"): Handle avx521vl and noavx512vl.
2397         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
2398         AVX-512 alternative out of SSE.
2399         (define_insn "*vec_concatv2df"): Ditto.
2401 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
2403         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
2404         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
2405         CODE_FOR_avx_ptestv4di.
2406         * config/i386/sse.md (define_mode_iterator V_AVX): New.
2407         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
2408         (define_insn "avx_ptest256"): Merge this ...
2409         (define_insn "sse4_1_ptest"): And this ...
2410         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
2412 2015-08-05  Richard Biener  <rguenther@suse.de>
2414         PR tree-optimization/67109
2415         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
2416         against too big groups.  Print whether this is a load or store
2417         group.  Rename from ...
2418         (vect_analyze_group_access): ... this which is now a wrapper
2419         dissolving an invalid group.
2420         (vect_analyze_data_ref_accesses): Print whether this is a load
2421         or store group.
2423 2015-08-05  Richard Biener  <rguenther@suse.de>
2425         PR middle-end/67107
2426         * match.pd: Guard const_binop result checking against NULL_TREE
2427         result.
2429 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
2431         * cse.c (cse_insn): Restoring old behaviour for src_eqv
2432          when dest and value in the REG_EQUAL are same and dest
2433          is STRICT_LOW_PART.
2435 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
2437         * config/moxie/moxie.h (PRINT_OPERAND,
2438           PRINT_OPERAND_ADDRESS): Remove macros.
2439         * config/moxie/moxie-protos.h (moxie_print_operand,
2440           moxie_print_operand_address): Remove declaration.
2441         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
2442           TARGET_PRINT_OPERAND_ADDRESS): Define.
2443           (moxie_print_operand, moxie_print_operand_address): Make static.
2445 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2447         PR target/66731
2448         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
2449         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
2451 2015-08-04  Richard Biener  <rguenther@suse.de>
2453         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
2454         generated code.
2455         (dt_operand::gen_gimple_expr): Adjust.
2457 2015-08-04  Richard Biener  <rguenther@suse.de>
2459         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
2460         bool compares on RHS.
2461         * match.pd: Add X ==/!= !X is false/true pattern.
2463 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
2465         * config/aarch64/aarch64.c: Change inner loop statement cost
2466         to be consistent with other targets.
2468 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
2470         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
2471         targets.
2473 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
2475         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
2476         (machine_function): Remove pseudos field.
2478 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2480         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2481         Exit early and use target_option_current_node if processing current
2482         pragma.
2484 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2486         * doc/extend.texi (AArch64 Function Attributes): New node.
2487         (AArch64 Pragmas): Likewise.
2489 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2491         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
2492         Initialize simd builtins if TARGET_SIMD.
2493         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2494         Make sure that the builtins are initialized only once no matter how
2495         many times the function is called.
2496         (aarch64_init_builtins): Unconditionally initialize crc builtins.
2497         (aarch64_relayout_simd_param): New function.
2498         (aarch64_simd_expand_args): Use above during argument expansion.
2499         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
2500         simd builtins if TARGET_SIMD.
2501         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
2502         prototype.
2503         (aarch64_relayout_simd_types): Likewise.
2505 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2507         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
2508         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
2509         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
2510         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2511         static keyword.
2512         (aarch64_reset_previous_fndecl): New function.
2513         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
2514         the string.
2515         * config/aarch64/aarch64-c.c: New file.
2516         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
2517         Push and pop options at beginning and end.  Remove ifdef
2518         __ARM_FEATURE_CRC32.
2519         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
2520         Add pragma +nothing+simd and +nothing+crypto where appropriate.
2521         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
2522         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
2523         Define prototype.
2524         (aarch64_register_pragmas): Likewise.
2525         (aarch64_reset_previous_fndecl): Likewise.
2526         (aarch64_process_target_attr): Likewise.
2527         (aarch64_override_options_internal): Likewise.
2529 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2531         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
2532         New function.
2533         (aarch64_can_inline_p): Likewise.
2534         (TARGET_CAN_INLINE_P): Define.
2536 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2538         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
2539         Remove static.  Handle OPT_mgeneral_regs_only,
2540         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
2541         OPT_momit_leaf_frame_pointer.
2542         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
2543         (aarch64_attr_opt_type): New enum.
2544         (aarch64_attribute_info): New struct.
2545         (aarch64_handle_attr_arch): New function.
2546         (aarch64_handle_attr_cpu): Likewise.
2547         (aarch64_handle_attr_tune): Likewise.
2548         (aarch64_handle_attr_isa_flags): Likewise.
2549         (aarch64_attributes): New table.
2550         (aarch64_process_one_target_attr): New function.
2551         (num_occurences_in_str): Likewise.
2552         (aarch64_process_target_attr): Likewise.
2553         (aarch64_option_valid_attribute_p): Likewise.
2554         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2555         * config/aarch64/aarch64-protos.h: Include input.h
2556         (aarch64_handle_option): Declare prototype.
2558 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2560         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
2561         * config/aarch64/aarch64.c: Include target-globals.h
2562         (aarch64_previous_fndecl): New variable.
2563         (aarch64_set_current_function): New function.
2564         (TARGET_SET_CURRENT_FUNCTION): Define.
2566 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2568         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
2569         (explicit_arch): Likewise.
2570         (x_aarch64_isa_flags): Likewise.
2571         (mgeneral-regs-only): Mark as Save.
2572         (mfix-cortex-a53-835769): Likewise.
2573         (mcmodel=): Likewise.
2574         (mstrict-align): Likewise.
2575         (momit-leaf-frame-pointer): Likewise.
2576         (mtls-dialect): Likewise.
2577         (master=): Likewise.
2578         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
2579         (aarch64_isa_flags): Remove extern declaration.
2580         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
2581         to indicate success or failure.
2582         (aarch64_validate_march): Likewise.
2583         (aarch64_validate_mtune): Likewise.
2584         (aarch64_isa_flags): Delete.
2585         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
2586         instead of aarch64_isa_flags.
2587         (aarch64_get_tune_cpu): New function.
2588         (aarch64_get_arch): Likewise.
2589         (aarch64_override_options): Use above and set up explicit_tune_core
2590         and explicit_arch.
2591         (aarch64_print_extension): Move earlier in file.  Add isa_flags
2592         argument and use that instead of the global aarch64_isa_flags.
2593         (aarch64_option_save): New function.
2594         (aarch64_option_restore): Likewise.
2595         (aarch64_option_print): Likewise.
2596         (aarch64_declare_function_name): Likewise.
2597         (aarch64_start_file): Delete.
2598         (TARGET_ASM_FILE_START): Do not define.
2599         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
2600         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
2601         Declare prototype.
2603 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2605         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
2606         flag_omit_leaf_frame_pointer to 2.
2608 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2610         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
2611         define to 0 or 1.
2612         (TARGET_FIX_ERR_A53_835769): New macro.
2613         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
2614         handling of opts->x_aarch64_fix_a53_err835769.
2615         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
2616         than aarch64_fix_a53_err835769.
2617         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
2618         * config/aarch64/aarch64-linux.h: Likewise.
2620 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
2622         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
2623         ix86_expand_int_movcc as boolean.
2625 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2627         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
2628         (aarch64_cpu_string): Likewise.
2629         (aarch64_tune_string): Likewise.
2630         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
2631         (aarch64_parse_extension): Return aarch64_parse_opt_result.
2632         Add extra argument to put result into.
2633         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
2634         (aarch64_parse_cpu): Add arguments to put results into. Return
2635         aarch64_parse_opt_result.
2636         (aarch64_parse_tune): Likewise.
2637         (aarch64_override_options_after_change_1): New function.
2638         (aarch64_override_options_internal): New function.
2639         (aarch64_validate_mcpu): Likewise.
2640         (aarch64_validate_march): Likewise.
2641         (aarch64_validate_mtune): Likewise.
2642         (aarch64_override_options): Update to reflect above changes.
2643         Move some logic into aarch64_override_options_internal.
2644         Initialize target_option_default_node and target_option_current_node.
2645         (aarch64_override_options_after_change): Move logic into
2646         aarch64_override_options_after_change_1 and call it with global_options.
2647         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
2648         flag values from that.
2650 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2652         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2653         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
2654         * config/aarch64/aarch64.c (struct processor): Add arch field.
2655         (all_architectures): Handle above, move above all_cores.
2656         (all_cores): Handle above.
2657         (aarch64_parse_arch): Handle above changes.
2658         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
2659         above.  Update comments.
2660         (armv8.1-a): Likewise.
2661         * config/aarch64/aarch64-cores.def: Update according to above.
2662         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
2663         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
2664         aarch64_arch_driver_info.
2666 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2668         * config/aarch64/aarch64.c (struct processor): Add ident field.
2669         Rename core sched_core.
2670         (all_cores): Handle above changes.
2671         (all_architectures): Likewise.
2672         (aarch64_parse_arch): Likewise.
2673         (aarch64_override_options): Likewise.
2675 2015-08-04  Richard Biener  <rguenther@suse.de>
2677         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
2678         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
2679         comparisons embedded in [VEC_]COND_EXPRs.
2681 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
2683         * tree-if-conv.c: Fix various typos in comments.
2684         * tree-vect-stmts.c: Likewise.
2686 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2688         PR tree-optimization/67043
2689         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
2690         preheader after hoisting invariant in it.
2691         (find_defs): Force recomputation of all luids.
2693 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
2695         * config/rs6000/htm.md (tabort.): Restrict the source operand to
2696         using a base register.
2698 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
2700         * main.c (main): Pass in NULL for toplev's external_timer.
2701         * timevar.c: Include coretypes.h.
2702         (class timer::named_items): New.
2703         (timer::named_items::named_items): New.
2704         (timer::named_items::~named_items): New.
2705         (timer::named_items::push): New.
2706         (timer::named_items::pop): New.
2707         (timer::named_items::print): New.
2708         (timer::timer): Initialize field "m_jit_client_items".
2709         (timer::~timer): New.
2710         (timer::push): Move bulk of implementation to...
2711         (timer::push_internal): ...here.  New function.
2712         (timer::pop): Move bulk of implementation to...
2713         (timer::pop_internal): ...here.  New function.
2714         (timer::push_client_item): New.
2715         (timer::pop_client_item): New.
2716         (timer::print_row): New function, taken from timer::print.
2717         (timer::print): Print "GCC items" header if we also have client
2718         items.  Move row-printing to timer::print_row.  Print any client
2719         items.
2720         (timer::get_topmost_item_name): New method.
2721         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
2722         (TV_JIT_CLIENT_CODE): New.
2723         * timevar.h (timer::push_client_item): New declaration.
2724         (timer::pop_client_item): New declaration.
2725         (timer::get_topmost_item_name): New method.
2726         (timer::push_internal): New declaration.
2727         (timer::pop_internal): New declaration.
2728         (timer::print_row): New declaration.
2729         (timer::named_items): New declaration.
2730         (timer::m_jit_client_items): New field.
2731         (timer): Add friend class named_items.
2732         (auto_timevar::auto_timevar): Add timer param.
2733         (auto_timevar::~auto_timevar): Use field "m_timer".
2734         (auto_timevar::m_timer): New field.
2735         * toplev.c (initialize_rtl): Add g_timer as param when
2736         constructing auto_timevar instance.
2737         (toplev::toplev): Add "external_timer" param, and use it to
2738         initialize the "g_timer" global if non-NULL.
2739         (toplev::~toplev): If this created "g_timer", delete it.
2740         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
2741         with "external_timer" timer *.
2743 2015-08-03  Alexander Basov <coohpt@gmail.com>
2745         PR middle-end/64744
2746         PR middle-end/48470
2747         PR middle-end/43404
2748         * cfgexpand.c (expand_one_var): Add check if stack is going to
2749         be used in naked function.
2750         * expr.c (expand_expr_addr_expr_1): Remove excess checking
2751         whether expression should not reside in MEM.
2752         * function.c (use_register_for_decl): Do not use registers for
2753         non-register things (volatile, float, BLKMode) in naked functions.
2755 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
2757         PR target/67060
2758         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
2759         Adjust splits to match new pattern.
2761 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2763         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
2764         (VEC_M): Likewise.
2765         (VEC_N): Likewise.
2766         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
2767         point in VSX registers.
2769         * config/rs6000/constraints.md (wb constraint): Document unused
2770         w<x> constraint.
2771         (we constraint): Likewise.
2772         (wo constraint): Likewise.
2773         (wp constraint): New constraint for IEEE 128-bit floating point in
2774         VSX registers.
2775         (wq constraint): Likewise.
2777         * config/rs6000/predicates.md (easy_fp_constant): Add support for
2778         IEEE 128-bit floating point in VSX registers.
2779         (easy_scalar_constant): Likewise.
2781         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
2782         constraints (wp, wq) for IEEE 128-bit floating point in VSX
2783         registers.
2784         (rs6000_init_hard_regno_mode_ok): Likewise.
2786         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
2787         floating point in VSX registers.
2788         (VSX_L): Likewise.
2789         (VSX_M): Likewise.
2790         (VSX_M2): Likewise.
2791         (VSm): Likewise.
2792         (VSs): Likewise.
2793         (VSr): Likewise.
2794         (VSa): Likewise.
2795         (VSv): Likewise.
2796         (vsx_le_permute_<mode>): Add support to properly swap bytes for
2797         IEEE 128-bit floating point in VSX registers on little endian.
2798         (vsx_le_undo_permute_<mode>): Likewise.
2799         (vsx_le_perm_load_<mode>): Likewise.
2800         (vsx_le_perm_store_<mode>): Likewise.
2801         (splitters for IEEE 128-bit fp moves): Likewise.
2803         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
2804         wq constraints.
2806         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
2807         floating point in VSX registers.
2808         (VM2): Likewise.
2810         * doc/md.text (Machine Constraints): Document wp and wq
2811         constraints on PowerPC.
2813 2015-08-03  Jeff Law  <law@redhat.com>
2815         PR middle-end/66314
2816         PR gcov-profile/66899
2817         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
2818         iterate over the jump threading paths when an element in the
2819         jump threading paths array is eliminated.
2821 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
2823         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
2825 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
2827         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
2828         is_use_properly_guarded the variable def_preds.  Free its
2829         contents before returning.
2830         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
2831         (is_use_properly_guarded): Replace local variable def_preds with
2832         a parameter.  Adjust accordingly.  Only update *def_preds if it's
2833         the empty vector.
2835 2015-08-03  Richard Biener  <rguenther@suse.de>
2837         * genmatch.c (simplify::for_subst_vec): New member.
2838         (binary_ok): New helper for for lowering.
2839         (lower_for): Delay substituting operators into result expressions
2840         if we can merge the results eventually again.
2841         (capture_info::walk_result): Adjust for user_id appearing as
2842         result expression operator.
2843         (expr::gen_transform): Likewise.
2844         (dt_simplify::gen_1): Likewise.
2845         (dt_simplify::gen): Pass not substituted operators to tail
2846         functions or initialize local variable with it.
2847         (decision_tree::gen): Adjust function signature.
2848         * match.pd: Fix tests against global code and add default
2849         cases to switch stmts.
2851 2015-08-03  Richard Biener  <rguenther@suse.de>
2853         * genmatch.c (dt_simplify::gen): Create captures array
2854         with an initializer.
2856 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2858         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
2859         the host compiler is affected by placement new aliasing bug.
2860         * configure: Regenerate.
2861         * Makefile.in (ALIASING_FLAGS): New variable.
2862         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
2864 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2866         PR target/66731
2867         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
2868         (negmulsf3_vfp): Likewise.
2869         (muldf3negdf_vfp): Disable for -frounding-math.
2870         (mulsf3negsf_vfp): Likewise.
2871         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
2872         fix MULT cost with -frounding-math.
2874 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2876         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
2877         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
2878         explicit.  Prefer to add the flag whenever possible.
2879         (noce_process_if_block): Try noce_try_store_flag_constants before
2880         noce_try_cmove.
2882 2015-08-03  Richard Biener  <rguenther@suse.de>
2884         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
2885         New hash-map to record equivalent transforms.
2886         (dt_node::analyze): Populate the equivalent transforms hash-map.
2887         (dt_simplify::info): Add reference to hash-map entry.
2888         (dt_simplify::gen): If we have split out a function for the
2889         transform, generate a call to it.
2890         (sinfo_hashmap_traits::hash): New function.
2891         (compare_op): New helper function for ...
2892         (sinfo_hashmap_traits::equal_keys): ... this new function.
2893         (decision_tree::gen): Split out common equivalent transforms
2894         into functions.
2896 2015-08-03  Richard Biener  <rguenther@suse.de>
2898         * gimple-fold.c (fold_gimple_assign): Remove folding of
2899         the comparison in COND_EXPRs.
2901 2015-08-03  Richard Biener  <rguenther@suse.de>
2903         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
2904         on the rhs of assignments first simplify the embedded
2905         GENERIC condition.
2907 2015-08-03  Richard Biener  <rguenther@suse.de>
2909         PR tree-optimization/66917
2910         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
2911         field.
2912         (DR_VECT_AUX): New macro.
2913         (set_dr_misalignment): Adjust.
2914         (dr_misalignment): Likewise.
2915         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2916         Compute whether the base is at least element aligned.
2917         * tree-vect-stmts.c (ensure_base_align): Adjust.
2918         (vectorizable_store): If the base is not element aligned
2919         preserve alignment of the original access if misalignment is unknown.
2920         (vectorizable_load): Likewise.
2922 2015-08-02  Martin Sebor  <msebor@redhat.com>
2924         * c-family/c.opt (-Wframe-address): New warning option.
2925         * doc/invoke.texi (Wframe-address): Document it.
2926         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
2927         Clarify possible effects of calling the functions with non-zero
2928         arguments and mention -Wframe-address.
2929         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
2931 2015-08-01  Michael Collison  <michael.collison@linaro.org
2932             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2934         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
2935         (*arm_umin_cmp): Likewise.
2937 2015-08-01  Caroline Tice  <cmtice@google.com>
2939         PR 66521
2940         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
2941         global variables.
2942         (vtbl_find_mangled_name):  New function.
2943         (vtbl_register_mangled_name):  New function.
2944         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
2945         mangled name in mangled name vectors.
2946         (find_or_create_vtbl_map_node):  Ditto.
2947         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
2948         update recursion_depth on function entry; pass it to every recursive
2949         call; automatically exit if depth > 25 (give up looking at that point).
2950         (verify_bb_vtables):  Initialize recursion_depth and pass it to
2951         var_is_used_for_virtual_call_p.
2952         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
2953         global variable decls.
2954         (vtbl_register_mangled_name): New extern function decl.
2956 2015-08-01  Tom de Vries  <tom@codesourcery.com>
2958         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
2959         function.
2960         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
2961         Declare.
2962         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
2963         operation_no_trapping_overflow.  Allow non-overflow operations.
2964         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
2965         operations.
2967 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2969         PR target/67049
2970         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
2972 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2974         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
2975         Enable for TARGET_32BIT.
2976         (*if_move_neg): Likewise.
2978 2015-07-31  Nick Clifton  <nickc@redhat.com>
2980         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
2981         Returns true for __model__.
2982         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2984 2015-07-31  Alan Modra  <amodra@gmail.com>
2986         PR target/66870
2987         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
2988         (rs6000_emit_prologue): Set it.
2989         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
2991 2015-07-31  Richard Biener  <rguenther@suse.de>
2993         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
2994         -> X == (C1 ^ C2) which is already implemented in match.pd.
2995         Remove redundant dispatching to fold_relational_const.
2996         Move unordered self and NaN compares ...
2997         * match.pd: ... as patterns here.  Remove some stray captures
2998         and add a comment.
3000 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
3002         * config/i386/i386.c
3003         (bdesc_special_args): Convert mask type from signed to unsigned for
3004         masked builtins.
3005         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
3006         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
3007         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
3008         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
3009         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
3010         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
3011         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
3012         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
3013         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
3014         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
3015         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
3016         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
3017         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
3018         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
3019         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
3020         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
3021         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
3022         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
3023         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
3024         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
3025         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
3026         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
3027         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
3028         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
3029         * config/i386/i386-builtin-types.def
3030         (V16QI_FTYPE_V16SI): Remove.
3031         (V8DF_FTYPE_V8SI): Ditto.
3032         (V8HI_FTYPE_V8DI): Ditto.
3033         (V8SI_FTYPE_V8DI): Ditto.
3034         (V8SF_FTYPE_V8DF): Ditto.
3035         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
3036         (V16HI_FTYPE_V16SI): Ditto.
3037         (V16SF_FTYPE_V16HI): Ditto.
3038         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3039         (V16SF_FTYPE_V16SI): Ditto.
3040         (V4DI_FTYPE_V4DI): Ditto.
3041         (V16SI_FTYPE_V16SF): Ditto.
3042         (V16SF_FTYPE_FLOAT): Ditto.
3043         (V8DF_FTYPE_DOUBLE): Ditto.
3044         (V8DI_FTYPE_INT64): Ditto.
3045         (V8DI_FTYPE_V4DI): Ditto.
3046         (V16QI_FTYPE_V8DI): Ditto.
3047         (UINT_FTYPE_V4SF): Ditto.
3048         (UINT64_FTYPE_V4SF): Ditto.
3049         (UINT_FTYPE_V2DF): Ditto.
3050         (UINT64_FTYPE_V2DF): Ditto.
3051         (V16SI_FTYPE_V16SI): Ditto.
3052         (V8DI_FTYPE_V8DI): Ditto.
3053         (V16SI_FTYPE_PV4SI): Ditto.
3054         (V16SF_FTYPE_PV4SF): Ditto.
3055         (V8DI_FTYPE_PV2DI): Ditto.
3056         (V8DF_FTYPE_PV2DF): Ditto.
3057         (V4DI_FTYPE_PV2DI): Ditto.
3058         (V4DF_FTYPE_PV2DF): Ditto.
3059         (V16SI_FTYPE_PV2SI): Ditto.
3060         (V16SF_FTYPE_PV2SF): Ditto.
3061         (V8DI_FTYPE_PV4DI): Ditto.
3062         (V8DF_FTYPE_PV4DF): Ditto.
3063         (V8SF_FTYPE_FLOAT): Ditto.
3064         (V4SF_FTYPE_FLOAT): Ditto.
3065         (V4DF_FTYPE_DOUBLE): Ditto.
3066         (V8SF_FTYPE_PV4SF): Ditto.
3067         (V8SI_FTYPE_PV4SI): Ditto.
3068         (V4SI_FTYPE_PV2SI): Ditto.
3069         (V8SF_FTYPE_PV2SF): Ditto.
3070         (V8SI_FTYPE_PV2SI): Ditto.
3071         (V16SF_FTYPE_PV8SF): Ditto.
3072         (V16SI_FTYPE_PV8SI): Ditto.
3073         (V8DI_FTYPE_V8SF): Ditto.
3074         (V4DI_FTYPE_V4SF): Ditto.
3075         (V2DI_FTYPE_V4SF): Ditto.
3076         (V64QI_FTYPE_QI): Ditto.
3077         (V32HI_FTYPE_HI): Ditto.
3078         (V8UHI_FTYPE_V8UHI): Ditto.
3079         (V16UHI_FTYPE_V16UHI): Ditto.
3080         (V32UHI_FTYPE_V32UHI): Ditto.
3081         (V2UDI_FTYPE_V2UDI): Ditto.
3082         (V4UDI_FTYPE_V4UDI): Ditto.
3083         (V8UDI_FTYPE_V8UDI): Ditto.
3084         (V4USI_FTYPE_V4USI): Ditto.
3085         (V8USI_FTYPE_V8USI): Ditto.
3086         (V16USI_FTYPE_V16USI): Ditto.
3087         (V2DF_FTYPE_V2DF_UINT64): Ditto.
3088         (V2DI_FTYPE_V2DF_V2DF): Ditto.
3089         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
3090         (V8DF_FTYPE_V8DF_V8DI): Ditto.
3091         (V4SF_FTYPE_V4SF_UINT64): Ditto.
3092         (V4SI_FTYPE_V4SF_V4SF): Ditto.
3093         (V16SF_FTYPE_V16SF_V16SI): Ditto.
3094         (V64QI_FTYPE_V32HI_V32HI): Ditto.
3095         (V32HI_FTYPE_V16SI_V16SI): Ditto.
3096         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
3097         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
3098         (V32HI_FTYPE_V64QI_V64QI): Ditto.
3099         (V32HI_FTYPE_V32HI_V32HI): Ditto.
3100         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
3101         (V16SI_FTYPE_V16SI_V4SI): Ditto.
3102         (V16SI_FTYPE_V16SI_V16SI): Ditto.
3103         (V16SI_FTYPE_V32HI_V32HI): Ditto.
3104         (V16SI_FTYPE_V16SI_SI): Ditto.
3105         (V8DI_FTYPE_V8DI_V8DI): Ditto.
3106         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
3107         (V8DI_FTYPE_V16SI_V16SI): Ditto.
3108         (V8DI_FTYPE_V8DI_V2DI): Ditto.
3109         (QI_FTYPE_QI): Ditto.
3110         (SI_FTYPE_SI): Ditto.
3111         (DI_FTYPE_DI): Ditto.
3112         (QI_FTYPE_QI_QI): Ditto.
3113         (QI_FTYPE_QI_INT): Ditto.
3114         (HI_FTYPE_HI_INT): Ditto.
3115         (SI_FTYPE_SI_INT): Ditto.
3116         (DI_FTYPE_DI_INT): Ditto.
3117         (HI_FTYPE_V16QI_V16QI): Ditto.
3118         (SI_FTYPE_V32QI_V32QI): Ditto.
3119         (DI_FTYPE_V64QI_V64QI): Ditto.
3120         (QI_FTYPE_V8HI_V8HI): Ditto.
3121         (HI_FTYPE_V16HI_V16HI): Ditto.
3122         (SI_FTYPE_V32HI_V32HI): Ditto.
3123         (QI_FTYPE_V4SI_V4SI): Ditto.
3124         (QI_FTYPE_V8SI_V8SI): Ditto.
3125         (QI_FTYPE_V2DI_V2DI): Ditto.
3126         (QI_FTYPE_V4DI_V4DI): Ditto.
3127         (QI_FTYPE_V8DI_V8DI): Ditto.
3128         (HI_FTYPE_V16SI_V16SI): Ditto.
3129         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
3130         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
3131         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
3132         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
3133         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
3134         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
3135         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
3136         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
3137         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
3138         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
3139         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
3140         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
3141         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
3142         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
3143         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
3144         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
3145         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
3146         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
3147         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
3148         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
3149         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
3150         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
3151         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
3152         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
3153         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
3154         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
3155         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
3156         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
3157         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
3158         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
3159         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
3160         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
3161         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
3162         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
3163         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
3164         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
3165         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
3166         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
3167         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
3168         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
3169         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
3170         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
3171         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
3172         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
3173         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
3174         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
3175         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
3176         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
3177         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
3178         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
3179         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
3180         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
3181         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
3182         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
3183         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
3184         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
3185         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
3186         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
3187         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
3188         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
3189         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
3190         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
3191         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
3192         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
3193         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
3194         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
3195         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
3196         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
3197         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
3198         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
3199         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
3200         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
3201         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
3202         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
3203         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
3204         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
3205         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
3206         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
3207         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
3208         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
3209         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
3210         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
3211         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
3212         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
3213         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
3214         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
3215         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
3216         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
3217         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
3218         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
3219         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
3220         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
3221         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
3222         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
3223         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
3224         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
3225         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
3226         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
3227         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
3228         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
3229         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
3230         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3231         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3232         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3233         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
3234         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
3235         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
3236         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
3237         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
3238         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
3239         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
3240         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
3241         (HI_FTYPE_HI): Ditto.
3242         (HI_FTYPE_V16QI): Ditto.
3243         (SI_FTYPE_V32QI): Ditto.
3244         (DI_FTYPE_V64QI): Ditto.
3245         (QI_FTYPE_V8HI): Ditto.
3246         (HI_FTYPE_V16HI): Ditto.
3247         (SI_FTYPE_V32HI): Ditto.
3248         (QI_FTYPE_V4SI): Ditto.
3249         (QI_FTYPE_V8SI): Ditto.
3250         (HI_FTYPE_V16SI): Ditto.
3251         (QI_FTYPE_V2DI): Ditto.
3252         (QI_FTYPE_V4DI): Ditto.
3253         (QI_FTYPE_V8DI): Ditto.
3254         (V16QI_FTYPE_HI): Ditto.
3255         (V32QI_FTYPE_SI): Ditto.
3256         (V64QI_FTYPE_DI): Ditto.
3257         (V8HI_FTYPE_QI): Ditto.
3258         (V16HI_FTYPE_HI): Ditto.
3259         (V32HI_FTYPE_SI): Ditto.
3260         (V4SI_FTYPE_QI): Ditto.
3261         (V4SI_FTYPE_HI): Ditto.
3262         (V8SI_FTYPE_QI): Ditto.
3263         (V8SI_FTYPE_HI): Ditto.
3264         (V2DI_FTYPE_QI): Ditto.
3265         (V4DI_FTYPE_QI): Ditto.
3266         (HI_FTYPE_HI_HI): Ditto.
3267         (SI_FTYPE_SI_SI): Ditto.
3268         (DI_FTYPE_DI_DI): Ditto.
3269         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3270         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3271         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3272         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3273         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3274         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3275         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3276         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3277         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3278         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3279         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3280         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3281         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3282         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3283         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3284         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3285         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3286         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3287         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3288         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3289         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
3290         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
3291         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
3292         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
3293         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
3294         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
3295         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
3296         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
3297         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
3298         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
3299         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
3300         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
3301         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
3302         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
3303         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
3304         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
3305         (V16SI_FTYPE_HI): Ditto.
3306         (V8DI_FTYPE_QI): Ditto.
3307         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3308         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3309         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3310         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3311         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3312         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3313         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3314         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3315         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3316         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3317         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3318         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3319         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3320         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3321         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3322         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
3323         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
3324         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3325         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3326         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3327         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3328         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3329         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3330         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3331         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3332         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
3333         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
3334         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
3335         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3336         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3337         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3338         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3339         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3340         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
3341         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
3342         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
3343         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3344         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3345         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3346         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
3347         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3348         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3349         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
3350         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
3351         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3352         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3353         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3354         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3355         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3356         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3357         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3358         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3359         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
3360         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3361         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3362         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3363         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3364         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3365         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3366         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3367         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3368         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3369         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3370         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3371         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3372         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
3373         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
3374         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
3375         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3376         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
3377         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
3378         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
3379         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3380         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
3381         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
3382         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
3383         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
3384         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
3385         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3386         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
3387         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
3388         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3389         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3390         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3391         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3392         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3393         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3394         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3395         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3396         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3397         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3398         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3399         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3400         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3401         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3402         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3403         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3404         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3405         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3406         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3407         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3408         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3409         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3410         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3411         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3412         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3413         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3414         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3415         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3416         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3417         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3418         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3419         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3420         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3421         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3422         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
3423         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
3424         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
3425         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3426         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3427         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3428         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
3429         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3430         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3431         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3432         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3433         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3434         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3435         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3436         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3437         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
3438         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
3439         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
3440         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3441         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3442         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3443         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3444         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3445         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3446         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3447         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3448         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3449         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3450         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3451         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3452         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3453         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3454         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3455         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3456         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3457         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3458         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3459         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3460         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3461         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
3462         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
3463         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
3464         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3465         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3466         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3467         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3468         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3469         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3470         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3471         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3472         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
3473         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3474         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3475         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
3476         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3477         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3478         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
3479         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
3480         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
3481         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3482         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3483         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
3484         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3485         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3486         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3487         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3488         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3489         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3490         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3491         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3492         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3493         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3494         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
3495         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3496         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3497         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3498         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3499         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3500         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3501         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3502         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3503         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3504         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3505         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3506         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3507         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3508         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3509         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3510         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3511         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3512         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3513         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3514         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3515         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3516         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3517         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3518         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3519         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3520         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
3521         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3522         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3523         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3524         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3525         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3526         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3527         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3528         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3529         (QI_FTYPE_V8DF_INT_QI): Ditto.
3530         (QI_FTYPE_V4DF_INT_QI): Ditto.
3531         (QI_FTYPE_V2DF_INT_QI): Ditto.
3532         (HI_FTYPE_V16SF_INT_HI): Ditto.
3533         (QI_FTYPE_V8SF_INT_QI): Ditto.
3534         (QI_FTYPE_V4SF_INT_QI): Ditto.
3535         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
3537 2015-07-31  Richard Biener  <rguenther@suse.de>
3539         * gimple-fold.c (fold_gimple_assign): Remove folding of
3540         GIMPLE_BINARY_RHS.
3542 2015-07-31  Tom de Vries  <tom@codesourcery.com>
3544         PR tree-optimization/66846
3545         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
3546         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
3547         (expand_omp_target) [ENABLE_CHECKING]: Same.
3548         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
3549         cfun if !LOOPS_NEED_FIXUP.
3550         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
3551         that omp_for already has its own loop struct.
3552         * tree-parloops.c (create_phi_for_local_result)
3553         (create_call_for_reduction): Handle simple latch bb.
3554         (create_parallel_loop): Add simple latch bb to preserve
3555         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
3556         (gen_parallel_loop): Remove call to cancel_loop_tree.
3557         (parallelize_loops): Skip loops that are inner loops of parallelized
3558         loops.
3559         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
3560         verify_loop_structure.
3562 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3564         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
3565         * config/v850/v850.md (RV_REGNUM): New constants.
3566         * config/v850/v850.c (v850_libcall_value): New functions.
3567         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
3568         (TARGET_LIBCALL_VALUE): Define.
3570 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
3572         * rtl.h (lowpart_subreg): Move in file.
3573         * loop-iv.c (lowpart_subreg): Move to...
3574         * simplify-rtx.c (lowpart_subreg): ...here.
3575           (simplify_binary_operation_1): Use lowpart_subreg instead of
3576           simplify_gen_subreg.
3577         * expr.c (expand_expr_real_2): Ditto.
3578         * emit-rtl.c (gen_lowpart_common): Ditto.
3579         * combine.c (gen_lowpart_for_combine): Ditto.
3580         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
3581           expand_debug_source_expr): Ditto.
3583 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
3585         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
3586         (expand_builtin_atomic_clear): Remove support for atomic_clear
3587         pattern.
3589 2015-07-30  Richard Biener  <rguenther@suse.de>
3591         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
3592         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
3593         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
3594         redundant operand canonicalization.
3596 2015-07-30  David Sherwood  <david.sherwood@arm.com>
3598         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
3599         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
3600         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
3601         * config/arm/arm.c (neon_valid_immediate): Likewise.
3602         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
3603         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
3604         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
3605         (expand_vec_perm_vpshufb2_vpermq): Likewise.
3606         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
3607         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
3608         * config/i386/sse.md
3609         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
3610         (*ssse3_palignr<mode>_perm): Likewise.
3611         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
3612         * config/spu/spu.c (arith_immediate_p): Likewise.
3613         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3614         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
3616 2015-07-30  Richard Biener  <rguenther@suse.de>
3618         * genmatch.c (decision_tree::gen_gimple): Merge with ...
3619         (decision_tree::gen_generic): ... this into ...
3620         (decision_tree::gen): ... this.
3621         (main): Adjust callers.
3623 2015-07-30  Richard Biener  <rguenther@suse.de>
3625         * genmatch.c (verbose): New global.
3626         (warning_at): Add overload with source_location.
3627         (capture_info::capture_info): Add bool whether generating gimple
3628         or generic.  Add gimple member.
3629         (capture_info::cinfo): Add capture member.
3630         (capture_info::walk_match): Record capture.  Warn on
3631         non-captured leafs.
3632         (capture_info::walk_c_expr): Add more fragments captures cannot
3633         escape through.  Warn on escaped captures.
3634         (dt_simplify::gen_1): Warn on operands we force to have no
3635         side-effects.
3636         (main): Initialize verbose.
3637         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
3639 2015-07-30  Richard Biener  <rguenther@suse.de>
3641         PR middle-end/67053
3642         * match.pd: Allow both operands to independently have conversion
3643         when simplifying compares of addresses.
3645 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
3647         PR target/66217
3648         PR target/67045
3649         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
3650         around those cases that need one.
3652 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
3654         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
3656 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
3658         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3659         New.  Copied from config/i386/gnu-user.h.
3660         (ASM_COMMENT_START): Likewise.
3661         (DBX_REGISTER_NUMBER): Likewise.
3663 2015-07-29  Richard Biener  <rguenther@suse.de>
3665         * gimple-fold.c (fold_gimple_cond): Remove.
3666         (fold_stmt_1): Do not call it.
3668 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
3670         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
3671         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
3673         * config/aarch64/aarch64-modes.def: Add HFmode.
3675         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3676         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
3678         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
3679         aarch64_promoted_type): New.
3681         (aarch64_float_const_representable_p): Disable HFmode.
3682         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
3683         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
3684         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
3686         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
3687         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
3689         * config/aarch64/iterators.md (GPF_F16): New.
3691 2015-07-29  Richard Biener  <rguenther@suse.de>
3693         * match.pd: Merge address comparison patterns and make them
3694         handle some more cases.
3696 2015-07-29  Richard Biener  <rguenther@suse.de>
3698         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
3699         (parser::parse_capture): Add bool argument on whether to reject
3700         unknown captures.
3701         (parser::parse_expr): Adjust.
3702         (parser::parse_op): Likewise.
3703         (parser::parse_pattern): Likewise.
3705 2015-07-29  Richard Biener  <rguenther@suse.de>
3707         * gimple-fold.c (has_use_on_stmt): New function.
3708         (replace_stmt_with_simplification): Use it to allow
3709         abnormals originally referenced in the stmt.
3710         (fold_stmt_1): Canonicalize operand order.
3712 2015-07-28  David Sherwood  <david.sherwood@arm.com>
3714         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
3715         GET_MODE_INNER unconditionally.
3716         * config/spu/spu.c (arith_immediate_p): Likewise.
3717         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
3718         * expmed.c (synth_mult): Remove check for VOIDmode result from
3719         GET_MODE_INNER.
3720         (expand_mult_const): Likewise.
3721         * fold-const.c (fold_binary_loc): Replace call to element_precision
3722         with call to GET_MODE_PRECISION.
3723         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
3724         m->name.
3725         (emit_mode_inner): Likewise.
3726         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
3727         result check.
3728         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
3729         (GET_MODE_UNIT_PRECISION): Likewise.
3730         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
3731         * simplify-rtx.c (simplify_immed_subreg): Likewise.
3732         * stor-layout.c (bitwise_type_for_mode): Update assert.
3733         (element_precision): Remove.
3735 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3737         * target-insns.def (reload_load_address): New targetm instruction
3738         pattern.
3739         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
3741 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3743         * target-insns.def (atomic_test_and_set): New targetm instruction
3744         pattern.
3745         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
3746         HAVE_*/gen_* interface.
3748 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3750         * target-insns.def (can_extend, ptr_extend): New targetm instruction
3751         patterns.
3752         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
3753         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3754         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3755         * rtlanal.c (nonzero_bits1): Likewise.
3756         (num_sign_bit_copies1): Likewise.
3758 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3760         * target-insns.def (eh_return): New targetm instruction pattern.
3761         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
3762         interface.
3763         * function.c (thread_prologue_and_epilogue_insns): Remove
3764         preprocessor condition.
3766 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3768         * target-insns.def (indirect_jump): New targetm instruction pattern.
3769         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
3770         interface.
3772 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
3774         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
3775         instead of nonimmediate_operand.  Remove C condiition.
3777 2015-07-28  Richard Biener  <rguenther@suse.de>
3779         * match.pd: Add more simplification of address comparisons.
3781 2015-07-28  Richard Biener  <rguenther@suse.de>
3783         * match.pd: Re-order two cases in comparison with max/min
3784         value simplification to make it apply for bools.
3786 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3788         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
3789         Handle simple SIGN_EXTEND or ZERO_EXTEND.
3790         (aarch64_rtx_costs): Properly strip extend or extract before
3791         passing down to rtx costs again.
3793 2015-07-28  Nick Clifton  <nickc@redhat.com>
3795         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
3796         Optimizes the case where -mes0 is active and a constant symbolic
3797         address is used.
3798         * config/rl78/rl78-protos.h: Prototype the new function.
3799         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
3801 2015-07-28  Tom de Vries  <tom@codesourcery.com>
3803         * tree-parloops.c (reduc_stmt_res): New function.
3804         (initialize_reductions, add_field_for_reduction)
3805         (create_phi_for_local_result, create_loads_for_reductions)
3806         (create_stores_for_reduction, build_new_reduction): Handle case that
3807         reduc_stmt is a phi.
3808         (gather_scalar_reductions): Allow double_reduc reductions.
3810 2015-07-28  Richard Biener  <rguenther@suse.de>
3812         * fold-const.c (fold_comparison): Remove equality folding
3813         of decl addresses ...
3814         * match.pd: ... here and merge with existing pattern.
3816 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3818         PR tree-optimization/66828
3819         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
3820         from int64_t to uint64_t.
3822 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3824         * opts-common.c (read_cmdline_option): List DriverOnly enum values
3825         as valid only in the error message of the driver, not in the
3826         messages of the language compilers.
3828 2015-07-27  Tom de Vries  <tom@codesourcery.com>
3830         * tree-parloops.c (gather_scalar_reductions): Simplify function
3831         structure.
3833 2015-07-27  Marek Polacek  <polacek@redhat.com>
3835         * ipa-devirt.c (types_same_for_odr): Fix typo.
3837 2015-07-27  Jason Merrill  <jason@redhat.com>
3839         PR debug/66468
3840         * dwarf2out.c (gen_inlined_subroutine_die): Check
3841         cgraph_function_possibly_inlined_p.
3843 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
3845         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
3846         Place integer variant first.
3847         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3849 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
3851         PR/63870
3852         * config/arm/arm-builtins.c (enum arm_builtins):
3853         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
3854         (ARM_BUILTIN_NEON_BASE): Rename macro to....
3855         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
3856         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
3857         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
3859 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
3861         PR/63870
3862         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
3863         Add qualifier_lane_index.
3864         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
3865         (arm_getlane_qualifiers): Use qualifier_lane_index.
3866         (arm_lanemac_qualifiers): Rename to...
3867         (arm_mac_n_qualifiers): ...this.
3868         (LANEMAC_QUALIFIERS): Rename to...
3869         (MAC_N_QUALIFIERS): ...this.
3870         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
3871         (arm_setlane_qualifiers): Use qualifier_lane_index.
3872         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
3873         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
3874         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
3875         (arm_expand_neon_builtin): Handle qualifier_lane_index.
3877         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
3878         * config/arm/arm.c (bounds_check): Likewise, improve error message.
3879         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
3880         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
3881         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
3882         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
3883         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
3884         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
3885         qualifiers to TERNOP_IMM.
3886         (vdup_lane): Change qualifiers to GETLANE.
3887         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
3888         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
3889         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
3890         vqdmlsl_n): Change qualifiers to MAC_N.
3892         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
3893         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
3894         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
3895         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
3896         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
3897         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
3898         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
3899         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
3900         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
3901         Remove call to neon_lane_bounds.
3903 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
3905         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
3906         Place integer variant first.
3908 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
3910         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
3911         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
3912         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
3913         for armv6kz targets.
3914         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
3915         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
3916         (FL_FOR_ARCH6ZK): Remove.
3917         (FL_FOR_ARCH6KZ): New.
3918         (arm_arch6zk): New declaration.
3919         * config/arm/arm-tables.opt: Regenerate.
3920         * config/arm/arm.c (arm_arch6kz): New.
3921         (arm_option_override): Set arm_arch6kz.
3922         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
3923         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
3924         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
3926 2015-07-27  Marek Polacek  <polacek@redhat.com>
3928         PR c++/66555
3929         PR c/54979
3930         * doc/invoke.texi: Document -Wtautological-compare.
3932 2015-07-27  Richard Biener  <rguenther@suse.de>
3934         * genmatch.c (decision_tree::gen_gimple): Split out large
3935         subtrees into separate functions.
3936         (decision_tree::gen_generic): Likewise.
3938 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
3940         * config/alpha/alpha.c: Use SUBREG_P predicate.
3941         * config/alpha/predicates.md: Ditto.
3943 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3945         * config.host (s390*-*-*): Include driver-native.c only when
3946         building with s390* as host *and* target.
3948 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
3950         PR target/66930
3951         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
3952         T bit register modified_between_p check.
3954 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
3956         * config/i386/i386.c: Use SUBREG_P predicate.
3957         * config/i386/i386.md: Ditto.
3958         * config/i386/sse.md: Ditto.
3959         * config/i386/predicates.md: Ditto.
3961 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
3963         PR target/67004
3964         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
3965         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
3967 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
3969         * Makefile.in: Remove use of TREEBROWSER.
3970         * config.in: Regenerated.
3971         * configure: Regenerated.
3972         * configure.ac: Remove definition of TREEBROWSER.
3973         * tree-browser.c: Removed.
3974         * tree-browser.def: Removed.
3976 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
3978         * graphite-scop-detection.c: Include gimple-pretty-print.h.
3979         (stmt_simple_for_scop_p): Print when a stmt is not handled in
3980         Graphite.
3981         (scopdet_basic_block_info): Print when a loop or bb cannot be
3982         represented in Graphite.
3984 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
3986         PR target/66648
3987         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
3988         execution guard when min_size is less than size_needed.
3990 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
3992         * doc/install.texi: Document supported versions of ISL.
3994 2015-07-25  Jeff Law  <law@redhat.com>
3996         Revert:
3997         PR lto/66752
3998         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
3999         unable to find X NE 0 in the tables, return X as the simplified
4000         condition.
4001         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4002         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4003         to VISISTED_BBS.  */
4004         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4005         after removing the control flow statement and unnecessary edges.
4007 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
4009         Revert:
4010         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4012         PR rtl-optimization/64164
4013         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4014         * tree-ssa-copyrename.c: Removed.
4015         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4016         -ftree-coalesce-vars.
4017         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4018         * common.opt (ftree-copyrename): Ignore.
4019         (ftree-coalesce-inlined-vars): Likewise.
4020         * doc/invoke.texi: Remove the ignored options above.
4021         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4022         * tree-ssa-coalesce.h: ... here.
4023         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4024         headers required by it.
4025         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4026         across variables when flag_tree_coalesce_vars.  Check register
4027         use and promoted modes to allow coalescing.  Moved to
4028         tree-ssa-coalesce.c.
4029         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4030         with its member functions to tree-ssa-coalesce.c.
4031         (var_map_base_init): Likewise.  Renamed to
4032         compute_samebase_partition_bases.
4033         (partition_view_normal): Drop want_bases parameter.
4034         (partition_view_bitmap): Likewise.
4035         * tree-ssa-live.h: Adjust declarations.
4036         * tree-ssa-coalesce.c: Include explow.h.
4037         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4038         default defs at the entry point.
4039         (dump_part_var_map): New.
4040         (compute_optimized_partition_bases): New, called by...
4041         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4042         of compute_samebase_partition_bases.  Adjust.
4043         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4044         * cfgexpand.c (leader_merge): New.
4045         (get_rtl_for_parm_ssa_default_def): New.
4046         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4047         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4048         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4049         redundant MEM attr setting.
4050         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4051         from...
4052         (expand_one_stack_var): ... this.  New wrapper to check and
4053         skip already expanded SSA partitions.
4054         (record_alignment_for_reg_var): New, factored out of...
4055         (expand_one_var): ... this.
4056         (expand_one_ssa_partition): New.
4057         (adjust_one_expanded_partition_var): New.
4058         (expand_one_register_var): Check and skip already expanded SSA
4059         partitions.
4060         (expand_used_vars): Don't create DECLs for anonymous SSA
4061         names.  Expand all SSA partitions, then adjust all SSA names.
4062         (pass::execute): Replace the loops that set
4063         SA.partition_to_pseudo from partition leaders and cleared
4064         DECL_RTL for multi-location variables, and that which used to
4065         rename vars and set attrs, with one that clears DECL_RTL and
4066         checks that PARMs and RESULTs default_defs match DECL_RTL.
4067         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4068         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4069         * explow.c (promote_ssa_mode): New.
4070         * explow.h (promote_ssa_mode): Declare.
4071         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4072         * function.c: Include cfgexpand.h.
4073         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4074         (use_register_for_parm_decl): Wrapper for the above to
4075         special-case the result_ptr.
4076         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4077         (split_complex_args): Take assign_parm_data_all argument.
4078         Pass it to rtl_for_parm.  Set up rtl and context for split
4079         args.
4080         (assign_parms_augmented_arg_list): Adjust.
4081         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4082         multiple locations.  Recognize split complex args.
4083         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4084         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4085         (assign_parm_setup_block): Prefer SSA-assigned location.
4086         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4087         if stack_parm is NULL.
4088         (assign_parm_setup_stack): Prefer SSA-assigned location.
4089         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4090         rtl before testing for pointer bounds.  Special-case result_ptr.
4091         (expand_function_start): Maybe reset DECL_RTL of result.
4092         Prefer SSA-assigned location for result and static chain.
4093         Factor out DECL_RESULT and SET_DECL_RTL.
4094         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4095         anonymous SSA names.  Use promote_ssa_mode.
4096         (get_temp_reg): Likewise.
4097         (remove_ssa_form): Adjust.
4098         * stor-layout.c (layout_decl): Don't set mem attributes of
4099         non-MEMs.
4100         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4101         and get its reg_usage for reg invalidation.
4102         (compute_bb_dataflow): Pass it insn.
4103         (emit_notes_in_bb): Likewise.
4105 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4107         * config/i386/i386.c (ix86_va_start): Remove
4108         unneeded !TARGET_64BIT check.
4109         (ix86_gimplify_va_arg): Ditto.
4111 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4113         * graphite-sese-to-poly.c (build_poly_scop): Always call
4114         rewrite_commutative_reductions_out_of_ssa.
4116 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4118         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
4119         flag_associative_math to FLOAT_TYPE_P.  Honour
4120         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
4122 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4124         PR c++/64079
4125         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
4126         and "%qD" in warning_at instead of "%q+D" in warning.
4128 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
4130         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
4131         (ix86_function_abi): Cleanup.
4133 2015-07-24  Michael Darling  <darlingm@gmail.com>
4135         PR other/66259
4136         * acinclude.m4: Reflects renaming of configure.in to configure.ac
4137         * configure: Likewise
4138         * configure.ac: Likewise
4139         * doc/install.texi: Likewise
4140         * doc/tm.texi: Likewise
4141         * doc/tm.texi.in: Likewise
4143 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4145         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
4146         manually swapping values.
4147         * cse.c (fold_rtx): Likewise.
4148         * lra-eliminations.c (form_sum): Likewise.
4150 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
4152         PR target/64003
4153         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
4154         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
4155         (*jcc_1, *jcc_2, jump, simple_return_internal)
4156         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
4157         Set length_nobnd attribute instead of length attribute.
4158         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
4159         (length_nobnd): Remove attribute.
4160         (length): Remove length_nobnd processing.
4162 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
4164         * gimplify.c (omp_default_clause): New function.  Reorganize flow
4165         for clarity. Broken out of ...
4166         (omp_notice_variable): ... here.
4168 2015-07-24  Gary Funck  <gary@intrepid.com>
4170         PR middle-end/66984
4171         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
4172         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
4174 2015-07-24  Tom de Vries  <tom@codesourcery.com>
4176         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
4177         exit-first loop transform.
4179 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
4181         PR 66714
4182         * tree-cfg.c (struct replace_decls_d): New struct.
4183         (replace_block_vars_by_duplicates_1): New function.
4184         (replace_block_vars_by_duplicates): Use it to replace the decls
4185         in the value exprs by duplicates.
4187 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4189         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
4190         -shared, -symbolic, -rdynamic.
4192 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4194         PR target/65711
4195         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
4196         -dynamic-linker within %{!static %{!shared, and -rdynamic within
4197         %{!static.
4199 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
4201         PR ipa/66566
4202         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
4203         edge summary is available.
4205 2015-07-24  Richard Biener  <rguenther@suse.de>
4207         * genmatch.c (struct dt_node): Add statistic fields.
4208         (dt_node::analyze): New method.
4209         (decision_tree::gen_gimple): Call analyze on the root node
4210         and print statistics to stderr.
4211         (decision_tree::gen_generic): Likewise.
4213 2015-07-24  Richard Biener  <rguenther@suse.de>
4215         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
4216         against the highest or lowest possible integer ...
4217         * match.pd: ... as patterns here.
4219 2015-07-24  Richard Biener  <rguenther@suse.de>
4221         * genmatch.c (struct capture_info): Add same_as field.
4222         (capture_info::capture_info): Initialize same_as.
4223         (capture_info::walk_match): Compute same_as.
4224         (capture_info::walk_result): Compute stuff for the leader.
4225         (capture_info::walk_c_expr): Likewise.
4226         (dt_simplify::gen_1): Only look at leaders when deciding
4227         to force no side-effects or emit side-effects of omitted operands.
4229 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4231         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
4232         reg note to the GPR -> FPR save instructions.
4234 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4236         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
4237         cheaper.
4238         (s390_expand_insv): Don't generate risbg pattern for constant zero
4239         sources.
4240         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
4241         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
4242         splitters.
4244 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4246         * config/s390/s390.c (s390_reorg): Clean up handling of processors
4247         with
4248         -mtune=
4249         (s390_issue_rate): Likewise.
4250         (s390_sched_reorder): Likewise.
4251         (s390_sched_variable_issue): Likewise.
4252         (s390_loop_unroll_adjust): Likewise.
4253         (s390_option_override):  Likewise.
4255 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4257         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
4258         processor capabilities with -march=native.
4259         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
4260         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
4261         (S390_TARGET_BITS_STRING): Macro to simplify specs.
4263 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4265         * config/s390/s390.c (s390_issue_rate): Handle
4266         PROCESSOR_2094_Z9_EC.
4267         (s390_option_override): Likewise.
4268         (s390_adjust_priority): Likewise.
4270 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4272         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
4273         when cross compiling.
4275 2015-07-24  Richard Biener  <rguenther@suse.de>
4277         * fold-const.c (maybe_canonicalize_comparison_1): Move
4278         A code CST canonicalization ...
4279         * match.pd: ... to a pattern here.
4281 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
4283         Revert:
4284         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4285         PR target/63521
4286         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4287         (HONOR_REG_ALLOC_ORDER): Define.
4289 2015-07-24  Richard Biener  <rguenther@suse.de>
4291         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
4292         * fold-const.c (fold_comparison): Move parameter does not
4293         alias &local simplification ...
4294         * match.pd: ... as a pattern here.
4296 2015-07-24  Richard Biener  <rguenther@suse.de>
4298         * gimple-fold.c (replace_stmt_with_simplification): Special-case
4299         valueizing call operands.
4300         * gimple-match-head.c (maybe_push_res_to_seq): Take
4301         number of call arguments from ops array.
4302         (do_valueize): New function.
4303         (gimple_simplify): Return true if valueization changed
4304         any operand even if the result didn't simplify further.
4306 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4308         PR middle-end/25530
4309         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
4311 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4313         PR middle-end/25529
4314         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
4316 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4318         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
4319         instruction.
4321 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4323         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
4324         clean up.
4326 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
4328         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
4329         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
4330         targets here.
4331         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
4332         ms_va_list_type_node initialization.
4334 2015-07-23  Jeff Law  <law@redhat.com>
4336         PR lto/66752
4337         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4338         unable to find X NE 0 in the tables, return X as the simplified
4339         condition.
4340         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4341         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4342         to VISISTED_BBS.  */
4343         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4344         after removing the control flow statement and unnecessary edges.
4346 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4348         * tree-pass.h (get_current_pass_name): Removed.
4350 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4352         PR rtl-optimization/64164
4353         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4354         * tree-ssa-copyrename.c: Removed.
4355         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4356         -ftree-coalesce-vars.
4357         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4358         * common.opt (ftree-copyrename): Ignore.
4359         (ftree-coalesce-inlined-vars): Likewise.
4360         * doc/invoke.texi: Remove the ignored options above.
4361         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4362         * tree-ssa-coalesce.h: ... here.
4363         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4364         headers required by it.
4365         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4366         across variables when flag_tree_coalesce_vars.  Check register
4367         use and promoted modes to allow coalescing.  Moved to
4368         tree-ssa-coalesce.c.
4369         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4370         with its member functions to tree-ssa-coalesce.c.
4371         (var_map_base_init): Likewise.  Renamed to
4372         compute_samebase_partition_bases.
4373         (partition_view_normal): Drop want_bases parameter.
4374         (partition_view_bitmap): Likewise.
4375         * tree-ssa-live.h: Adjust declarations.
4376         * tree-ssa-coalesce.c: Include explow.h.
4377         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4378         default defs at the entry point.
4379         (dump_part_var_map): New.
4380         (compute_optimized_partition_bases): New, called by...
4381         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4382         of compute_samebase_partition_bases.  Adjust.
4383         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4384         * cfgexpand.c (leader_merge): New.
4385         (get_rtl_for_parm_ssa_default_def): New.
4386         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4387         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4388         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4389         redundant MEM attr setting.
4390         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4391         from...
4392         (expand_one_stack_var): ... this.  New wrapper to check and
4393         skip already expanded SSA partitions.
4394         (record_alignment_for_reg_var): New, factored out of...
4395         (expand_one_var): ... this.
4396         (expand_one_ssa_partition): New.
4397         (adjust_one_expanded_partition_var): New.
4398         (expand_one_register_var): Check and skip already expanded SSA
4399         partitions.
4400         (expand_used_vars): Don't create DECLs for anonymous SSA
4401         names.  Expand all SSA partitions, then adjust all SSA names.
4402         (pass::execute): Replace the loops that set
4403         SA.partition_to_pseudo from partition leaders and cleared
4404         DECL_RTL for multi-location variables, and that which used to
4405         rename vars and set attrs, with one that clears DECL_RTL and
4406         checks that PARMs and RESULTs default_defs match DECL_RTL.
4407         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
4408         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
4409         * explow.c (promote_ssa_mode): New.
4410         * explow.h (promote_ssa_mode): Declare.
4411         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
4412         * function.c: Include cfgexpand.h.
4413         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
4414         (use_register_for_parm_decl): Wrapper for the above to
4415         special-case the result_ptr.
4416         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
4417         (split_complex_args): Take assign_parm_data_all argument.
4418         Pass it to rtl_for_parm.  Set up rtl and context for split
4419         args.
4420         (assign_parms_augmented_arg_list): Adjust.
4421         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
4422         multiple locations.  Recognize split complex args.
4423         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
4424         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
4425         (assign_parm_setup_block): Prefer SSA-assigned location.
4426         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
4427         if stack_parm is NULL.
4428         (assign_parm_setup_stack): Prefer SSA-assigned location.
4429         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
4430         rtl before testing for pointer bounds.  Special-case result_ptr.
4431         (expand_function_start): Maybe reset DECL_RTL of result.
4432         Prefer SSA-assigned location for result and static chain.
4433         Factor out DECL_RESULT and SET_DECL_RTL.
4434         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
4435         anonymous SSA names.  Use promote_ssa_mode.
4436         (get_temp_reg): Likewise.
4437         (remove_ssa_form): Adjust.
4438         * stor-layout.c (layout_decl): Don't set mem attributes of
4439         non-MEMs.
4440         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
4441         and get its reg_usage for reg invalidation.
4442         (compute_bb_dataflow): Pass it insn.
4443         (emit_notes_in_bb): Likewise.
4445 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
4447         PR target/66217
4448         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
4449         prototype.
4450         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
4451         (rs6000_emit_2insn_and): Handle dot forms.
4452         * config/rs6000/rs6000.md (and<mode>3): Adjust.
4453         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
4454         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
4456 2015-07-23  Richard Biener  <rguenther@suse.de>
4458         * generic-match-head.c: Include cgraph.h.
4459         * gimple-match-head.c: Likewise.
4460         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
4461         SSA names.
4462         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
4463         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
4464         pattern.
4466 2015-07-23  Richard Biener  <rguenther@suse.de>
4468         * gimple-fold.c (fold_gimple_cond): Do not require folding
4469         results to pass valid_gimple_rhs_p.
4470         * tree-cfg.h (fold_cond_expr_cond): Remove.
4471         * tree-cfg.c (fold_cond_expr_cond): Likewise.
4472         (make_edges): Do not call it.
4473         * tree-inline.c (tree_function_versioning): Likewise.
4475 2015-07-23  Tom de Vries  <tom@codesourcery.com>
4477         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
4478         vect_force_simple_reduction.
4479         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
4480         (vect_is_simple_reduction_1): Add and handle
4481         need_wrapping_integral_overflow parameter.
4482         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
4483         need_wrapping_integral_overflow parameter.
4484         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
4485         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
4486         decl.
4488 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
4490         PR tree-optimization/66926,66951
4491         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
4492         INNER_LOOP and fix up condition for renaming virtual operands.
4494 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4496         * combine.c (try_combine): Use std::swap instead of manually
4497         swapping.
4499 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
4501         * config/mips/i6400.md: New file.
4502         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
4503         (mips64r6): Likewise.
4504         (i6400): Define.
4505         * config/mips/mips-tables.opt: Regenerate.
4506         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
4507         (mips_issue_rate): Add support for i6400.
4508         (mips_multipass_dfa_lookahead): Likewise.
4509         * config/mips/mips.h (TUNE_I6400): Define.
4510         * config/mips/mips.md: Include i6400.md.
4511         (processor): Add i6400.
4512         * doc/invoke.texi (-march=@var{arch}): Add i6400.
4514 2015-07-23  Richard Biener  <rguenther@suse.de>
4516         PR middle-end/66916
4517         * match.pd: Guard widen and sign-change comparison simplification
4518         with single_use.
4520 2015-07-23  Richard Biener  <rguenther@suse.de>
4522         PR tree-optimization/66945
4523         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
4524         ::before_dom_children): Force the propagators idea of
4525         non-executable edges to materialize, not what the folder
4526         chooses.
4528 2015-07-23  Richard Biener  <rguenther@suse.de>
4530         * gimple.h (gimple_cond_make_false): Use 0 != 0.
4531         (gimple_cond_make_true): Use 1 != 0.
4533 2015-07-22  DJ Delorie  <dj@redhat.com>
4535         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
4536         slashes.
4538         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
4539         (ashrhi3): Likewise.
4540         (lshrhi3): Likewise.
4541         (movhi): Take advantage of zero-extend to load small constants.
4542         (movpsi): Likewise.
4543         (and<mode>3): Likewise.
4544         (zero_extendqihi2): Likewise.
4545         (zero_extendqisi2): New.
4546         * config/msp430/constraints.md (N,O): New.
4547         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
4549 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
4551         PR target/66954
4552         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
4553         to enum feature_priority and feature_list.
4554         (fold_builtin_cpu): Add F_AES to enum processor_features
4555         and isa_names_table.
4557 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
4559         PR driver/66737
4560         * config/i386/linux-common.h (MPX_SPEC): Use linker option
4561         for 64bit target only.
4563 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4565         * config/nvptx/nvptx.c: Expand some comments.
4567 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
4569         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
4570         (cortex_a53_advsimd): ...This.
4572 2015-07-22  Richard Biener  <rguenther@suse.de>
4574         * genmatch.c (expr::gen_transform): Clarify error message
4575         and display location.
4577 2015-07-22  Richard Biener  <rguenther@suse.de>
4579         * genmatch.c (struct operand): Add location member.
4580         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
4581         constructors.
4582         (struct simplify): Remove match_location and result_location
4583         members.
4584         (elsehwere): Adjust.
4586 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
4588         * config/mips/m5100.md: New file.
4589         * config/mips/mips-cpus.def (m5100, m5101): Define.
4590         * config/mips/mips-tables.opt: Regenerate.
4591         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
4592         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
4593         -march=m5101 to -mips32r5.
4594         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
4595         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
4596         !-msoft-float.
4597         * config/mips/mips.md: Include m5100.md.
4598         (processor): Add m5100.
4599         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
4601 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
4603         * config/mips/mips-cpus.def (interaptiv): Define.
4604         * config/mips/mips-tables.opt: Regenerate.
4605         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
4606         -mips32r2.
4607         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
4608         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
4610 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
4612         PR target/63521
4613         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
4614         (HONOR_REG_ALLOC_ORDER): Define.
4616 2015-07-22  Richard Biener  <rguenther@suse.de>
4618         PR tree-optimization/66952
4619         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
4620         blocks we end up executing unconditionally reset all SSA
4621         info such as range and alignment.
4622         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
4623         * tree-ssanames.c (reset_flow_sensitive_info): New function.
4625 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4627         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
4628         typo in attribute.
4630 2015-07-22  Richard Biener  <rguenther@suse.de>
4632         * genmatch.c (parser::parse_result): Properly handle
4633         match with result operands and conditions.
4635 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
4637         PR target/63870
4638         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
4639         Add qualifier_struct_load_store_lane_index.
4640         (aarch64_types_loadstruct_lane_qualifiers): Use
4641         qualifier_struct_load_store_lane_index for lane index argument for
4642         last argument.
4643         (aarch64_types_storestruct_lane_qualifiers): Ditto.
4644         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4645         (aarch64_simd_expand_args): Add new argument describing mode of
4646         builtin. Check lane bounds for arguments with
4647         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4648         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
4649         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4650         (aarch64_simd_expand_builtin): Handle arguments with
4651         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
4652         aarch64_simd_expand_args.
4653         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
4654         vst[234]_lane with BUILTIN_VALLDIF.
4655         * config/aarch64/aarch64-simd.md:
4656         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
4657         endianness reversal on lane index.
4658         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
4659         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
4660         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
4661         (vec_store_lanesci_lane<mode>): Ditto.
4662         (vec_store_lanesxi_lane<mode>): Ditto.
4663         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
4664         reversal of lane index.
4665         (aarch64_ld3_lane<mode>): Ditto.
4666         (aarch64_ld4_lane<mode>): Ditto.
4667         (aarch64_st2_lane<mode>): Ditto.
4668         (aarch64_st3_lane<mode>): Ditto.
4669         (aarch64_st4_lane<mode>): Ditto.
4670         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
4671         to qmode. Add new mode parameter. Update uses.
4672         (__LD3_LANE_FUNC): Ditto.
4673         (__LD4_LANE_FUNC): Ditto.
4674         (__ST2_LANE_FUNC): Ditto.
4675         (__ST3_LANE_FUNC): Ditto.
4676         (__ST4_LANE_FUNC): Ditto.
4678 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
4680         * doc/invoke.texi (Language Independent Options): Rename node to
4681         Diagnostic Message Formatting Options.
4683 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
4685         PR ipa/66424.
4686         * lra-remat.c (operand_to_remat): Prevent using insns with input
4687         subregs processed separately by IRA.
4689 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
4691         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
4692         straight loops.
4693         (single_imm_use): Check for iterator node.
4694         (num_imm_uses): Likewise.
4695         * tree-ssa-operands.c (has_zero_uses_1): Delete.
4696         (single_imm_use_1): Check for iterator node.
4698 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
4699             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4701         * configure.ac: Add check for new options in isl-0.15.
4702         * config.in, configure: Rebuilt.
4703         * graphite-blocking.c: Include <isl/constraint.h>
4704         * graphite-interchange.c,  graphite-poly.c: Likewise.
4705         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
4706         * graphite.c: Likewise.
4707         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
4708         <isl/union_set.h>.
4709         * graphite-dependences.c: Include <isl/constraint.h>.
4710         (max_number_of_out_dimensions): Returns isl_stat.
4711         (extend_schedule_1): Likewise
4712         (extend_schedule): Corresponding changes.
4713         * graphite-optimize-isl.c: Include <isl/constraint.h> and
4714         <isl/union_set.h>.
4715         (getSingleMap): Change return type of isl_stat.
4716         (optimize_isl): Conditionally use
4717         isl_options_set_schedule_serialize_sccs.
4718         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
4719         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
4721 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
4723         PR target/66956
4724         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
4725         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
4727 2015-07-21  Richard Biener  <rguenther@suse.de>
4729         PR tree-optimization/66948
4730         * genmatch.c (capture_info::walk_match): Also recurse to
4731         captures.  Properly compute expr state from captures of
4732         captures.
4733         * match.pd: Add single-use guards to
4734         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
4736 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
4738         * config/nvptx/mkoffload.c (process): Add static destructor call.
4740 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4742         PR middle-end/66915
4743         * match.pd (A - B -> A + (-B)): Don't allow folding
4744         when type if a fixed-point type.
4746 2015-07-20  DJ Delorie  <dj@redhat.com>
4748         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
4749         (iorqi3_real): Likewise for set1.
4751 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
4753         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
4754         for !TARGET_64BIT.
4756 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
4758         * graphite-isl-ast-to-gimple.c:
4759         Refactor so that each function can access 'region'. This will help
4760         maintain a parameter rename_map within a region.
4762 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4764         * config/rs6000/rs6000.md (*lt0_disi): New.
4766 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
4768         PR target/66217
4769         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
4770         "available letters" comment.
4771         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
4772         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
4773         and_2rld_operand):  Delete.
4774         (and_operand): Adjust.
4775         (rotate_mask_operator): New.
4776         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
4777         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
4778         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
4779         extract_ME): Delete.
4780         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4781         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
4782         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
4783         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4784         rs6000_emit_2insn_and): New.
4785         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
4786         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
4787         includes_rldic_lshift_p, includes_rldicr_lshift_p,
4788         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
4789         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
4790         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
4791         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
4792         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
4793         rs6000_emit_2insn_and): New.
4794         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
4795         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
4796         handling.
4797         <NOT>: Don't fall through to next case.
4798         <AND>: Handle the various rotate-and-mask cases directly.
4799         <IOR>: Always cost as one insn.
4800         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
4801         (and<mode>3): Adjust expander for the new patterns.
4802         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
4803         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
4804         (*and<mode>3_imm_dot_shifted): New.
4805         (*and<mode>3_mask): Delete, rewrite as ...
4806         (and<mode>3_mask): ... New.
4807         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
4808         (andsi3_internal0_nomc): Delete.
4809         (*andsi3_internal6): Delete.
4810         (*and<mode>3_2insn): New.
4811         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4812         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4813         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
4814         *insvdi_internal3): Delete.
4815         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
4816         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
4817         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
4818         *ior<mode>_mask): New.
4819         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
4820         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
4821         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
4822         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
4823         Delete.
4824         (ashr<mode>3): Delete expander.
4825         (*ashr<mode>3): Rename to ...
4826         (ashr<mode>3): ... This.
4827         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
4828         (*rotldi3_internal4, *rotldi3_internal5 and split,
4829         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
4830         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
4831         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
4832         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
4833         (splitter for loading a mask): Adjust.
4834         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
4836 2015-07-20  Marek Polacek  <polacek@redhat.com>
4838         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
4839         output_add_clobbers, output_added_clobbers_hard_reg_p,
4840         gen_rtx_scratch): Remove declarations.
4842 2015-07-20  Marek Polacek  <polacek@redhat.com>
4844         PR c++/55095
4845         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
4847 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4849         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
4850         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
4852 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4854         * combine.c (combine_simplify_rtx): Move simplification step
4855         before various transformations/substitutions.
4857 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
4859         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
4860         (struct int_traits): Likewise.
4862 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4864         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
4865         function to vmsdbgout_function_decl.
4867 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
4869         PR target/66922
4870         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
4871         from misaligned positions.
4872         (ix86_expand_pinsr): Reject insertions to misaligned positions.
4874 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
4876         PR middle-end/46851
4877         PR middle-end/60340
4878         * Makefile.in: Removed omega.o.
4879         * common.opt: Document flag fcheck-data-deps as deprecated.
4880         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
4881         its associated params: omega-max-vars, omega-max-geqs,
4882         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
4883         omega-max-keys, omega-eliminate-redundant-constraints.
4884         * doc/loop.texi: Remove all the section on Omega.
4885         * graphite-blocking.c: Include missing params.h: it used to be
4886         included through tree-data-ref.h and omega.h.
4887         * graphite-isl-ast-to-gimple.c: Same.
4888         * graphite-optimize-isl.c: Same.
4889         * graphite-sese-to-poly.c: Same.
4890         * graphite.c: Same.
4891         * omega.c: Remove.
4892         * omega.h: Remove.
4893         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
4894         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
4895         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
4896         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
4897         * passes.def: Remove pass_check_data_deps.
4898         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
4899         (dump_conflict_function): Same.
4900         (dump_subscript): Same.
4901         (print_direction_vector): Same.
4902         (print_dir_vectors): Same.
4903         (print_lambda_vector): Same.
4904         (print_dist_vectors): Same.
4905         (dump_data_dependence_relation): Same.
4906         (dump_data_dependence_relations): Same.
4907         (dump_dist_dir_vectors): Same.
4908         (dump_ddrs): Same.
4909         (init_omega_eq_with_af): Removed.
4910         (omega_extract_distance_vectors): Removed.
4911         (omega_setup_subscript): Removed.
4912         (init_omega_for_ddr_1): Removed.
4913         (init_omega_for_ddr): Removed.
4914         (ddr_consistent_p): Removed.
4915         (compute_affine_dependence): Do not use omega to check data
4916         dependences.
4917         (compute_data_dependences_for_bb): Removed.
4918         (analyze_all_data_dependences): Removed.
4919         (tree_check_data_deps): Removed.
4920         * tree-data-ref.h: Do not include omega.h.
4921         (compute_data_dependences_for_bb): Removed.
4922         (tree_check_data_deps): Removed.
4923         * tree-ssa-loop.c (pass_check_data_deps): Removed.
4924         (make_pass_check_data_deps): Removed.
4925         * tree-ssa-phiopt.c: Include params.h.
4926         * tree-vect-data-refs.c: Same.
4927         * tree-vect-slp.c: Same.
4929 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
4931         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
4932         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
4933         (mem->fpreg splitters): Ditto.
4934         (general_operand->nonimmediate_operand splitter): Use explicit modes.
4935         Disable DFmode for TARGET_64BIT.
4937 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4939         PR target/66906
4940         * config/i386/i386.c (ix86_expand_prologue): Replicate static
4941         chain on the stack.
4943 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
4945         * config/nvptx/mkoffload.c (process): Constify host data.
4946         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
4947         Constify host data.
4948         (generate_host_descr_file): Likewise.
4950 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
4951             Sebastian Pop  <s.pop@samsung.com>
4953         PR middle-end/61929
4954         * graphite-dependences.c (add_pdr_constraints): Renamed
4955         pdr->extent to pdr->subscript_sizes.
4956         * graphite-interchange.c (build_linearized_memory_access): Add
4957         back all gcc_assert's that the "isl_int to isl_val conversion"
4958         patch has removed.  Refactored.
4959         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
4960         * graphite-poly.c (new_poly_dr): Same.
4961         (free_poly_dr): Same.
4962         * graphite-poly.h (struct poly_dr): Same.
4963         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
4964         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
4965         * graphite-scop-detection.h: Fix space.
4966         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
4967         back all gcc_assert's removed by a previous patch.
4968         (wrap): Remove the_isl_ctx global variable that the same patch has
4969         added.
4970         (build_loop_iteration_domains): Same.
4971         (add_param_constraints): Same.
4972         (pdr_add_data_dimensions): Same.  Refactored.
4973         (build_poly_dr): Renamed extent to subscript_sizes.
4975 2015-07-17  Marek Polacek  <polacek@redhat.com>
4977         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
4978         * match.pd: ... here.
4980 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
4982         * config/nvptx/mkoffload.c (process): Constify target data.
4983         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
4984         Constify target data.
4985         (generate_target_offloadend_file): Likewise.
4987 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
4989         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
4990         to allow renaming of PHI arguments on edges incoming from outer
4991         loop header, add corresponding check before start PHI iterator.
4992         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
4993         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
4994         with true force_vectorize.  Set-up dominator for outer loop too.
4995         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
4996         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
4997         was marked with force_vectorize and has restricted cfg.
4998         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
4999         inner loop.
5000         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5001         do peeling for outer loops.
5003 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
5004             Matthias Klose  <doko@ubuntu.com>
5006         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
5007         build-sysroot, sysroot from the `Miscenalleous configure options' to
5008         the `Directories' section and strip trailing `/' from with_sysroot.
5009         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
5010         * configure: Regenerated.
5012 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5014         PR target/66824
5015         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
5016         (TARGET_HARD_DF_REGS): Ditto.
5017         (TARGET_HARD_XF_REGS): Ditto.
5018         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
5019         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
5020         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
5021         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
5022         (*movsf_internal): Add alternatives 16 and 17. Enable
5023         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
5025 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5027         PR rtl-optimization/66891
5028         * calls.c (expand_call): Wrap precompute_register_parameters with
5029         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
5031 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
5033         * config/nvptx/mkoffload.c (process): Constify mapping variables.
5034         Define target data struct and initialize it.
5036 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
5038         PR rtl-optimization/66626
5039         * ira.h (emit-rtl.h): Include.
5040         (non_spilled_static_chain_regno_p): New.
5041         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
5042         unless it is non spilled static chain pseudo.
5043         (assign_hard_rego): Spill memory profitable allocno unless it is
5044         non spilled static chain pseudo.
5045         (allocno_spill_priority_compare): Put non spilled static chain
5046         pseudo at the end of sorted array.
5047         (improve_allocation): Do nothing if we have static chain and
5048         non-local goto.
5049         (allocno__priority_compare_func): Put non spilled static chain
5050         pseudo at the beginning of sorted array.
5051         (move_spill_restore): Ignore non spilled static chain pseudo.
5052         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
5053         to non spilled static chain pseudo.
5054         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
5055         pseudo at the beginning of sorted array.
5056         (spill_for): Spill non spilled static chain pseudo last.
5057         * lra-constraints.c (lra_constraints): Remove static chain pseudo
5058         check for equivalence.
5060 2015-07-16  Martin Liska  <mliska@suse.cz>
5062         PR ipa/66896.
5063         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
5064         dst_ctx if it does not exist.
5066 2015-07-16  Martin Liska  <mliska@suse.cz>
5068         * hash-set.h (remove): New function.
5069         (iterator): New iteration class for hash_set.
5071 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5073         * genattrtab.c (make_canonical): Add a file_location parameter.
5074         Use fatal_at rather than fatal.
5075         (get_attr_value): Likewise.  Update call to make_canonical.
5076         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
5077         (make_internal_attr): Update calls accordingly.
5079 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5081         * read-md.h (message_with_line, error_with_line): Delete.
5082         * read-md.c (message_with_line, error_with_line): Delete.
5083         * gensupport.h: Include read-md.h.
5084         (md_rtx_info): New structure.
5085         (read_md_rtx): Use it.  Return a bool success value.
5086         * gensupport.c (read_md_rtx): Likewise.
5087         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
5088         (main): Update after interface changes.
5089         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
5090         (main): Update after interface changes.
5091         * genattrtab.c (insn_code_number): Delete.
5092         (optimize_attrs): Add a max_insn_code parameter and use it instead
5093         of insn_code_number.
5094         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
5095         Use *_at rather than *_with_line functions.
5096         (gen_insn): Likewise.
5097         (gen_delay): Likewise.
5098         (gen_insn_reserv): Likewise.
5099         (gen_bypass): Take an md_rtx_info rather than an rtx.
5100         (main): Update after interface changes.  Use a local max_insn_code
5101         variable instead of insn_code_number.
5102         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
5103         an rtx.  Use fatal_at rather than fatal.
5104         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
5105         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
5106         (gen_absence_set, gen_final_absence_set, gen_automaton)
5107         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
5108         (main): Update after interface changes.
5109         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
5110         and code number.
5111         (main): Update after interface changes.
5112         * genconditions.c (main): Use new read_md_rtx interface.
5113         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
5114         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
5115         (main): Update after interface changes.
5116         * genemit.c (insn_code_number, insn_index_number): Delete.
5117         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5118         Use fatal_at rather than fatal.
5119         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
5120         rather than fatal.
5121         (gen_split): Likewise.
5122         (main): Update after interface changes.
5123         * genextract.c (line_no): Delete.
5124         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5125         Update call to walk_rtx.
5126         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
5127         rather than message_with_line.
5128         (walk_rtx): Add an md_rtx_info argument.  Update call to
5129         VEC_safe_set_locstr.
5130         (main): Update after interface changes.
5131         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
5132         and lineno.  Use error_at rather than separate message_with_line
5133         calls and have_error assignments.
5134         (main): Update after interface changes.
5135         * genmddump.c (main): Use new read_md_rtx interface.
5136         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
5137         (main): Update after interface changes.
5138         * genoutput.c (next_code_number): Delete.
5139         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
5140         (gen_peephole, gen_expand, gen_split): Likewise.
5141         (note_constraint): Likewise.  Use *_at rather than *_with_line
5142         functions.
5143         (main): Update after interface changes.
5144         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
5145         rtx and lineno.
5146         (main): Update after interface changes.
5147         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
5148         than an rtx and lineno.
5149         (process_define_constraint): Likewise.
5150         (process_define_register_constraint): Likewise.
5151         (main): Update after interface changes.
5152         * genrecog.c (next_insn_code, pattern_lineno): Delete.
5153         (validate_pattern): Replace top-level rtx with an md_rtx_info.
5154         Use *_at rather than *_with_line functions.
5155         (match_pattern_2): Likewise.
5156         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
5157         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
5158         Use *_at rather than *_with_line functions.
5159         * gentarget-def.c (add_insn): New function.
5160         (main): Use it.  Use new read_md_rtx interface.
5162 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5164         * gensupport.h (compute_test_codes): Take a file_location rather
5165         than a line number.
5166         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
5167         rather than *_with_line functions.
5168         (process_define_predicate): Update call to compute_test_codes.
5169         * genpreds.c (validate_exp): Take a file_location rather than a
5170         line number.  Use *_at functions rather than *_with_line functions.
5171         (process_define_predicate): Update call to validate_exp.
5172         (constraint_data): Replace lineno field with a file_location.
5173         (add_constraint): Take a file_location rather than a line number.
5174         Use *_at functions rather than *_with_line functions.  Fix error
5175         message for address constraints.  Update after changes to
5176         validate_exp, constraint_data and compute_test_codes.
5177         (process_define_constraint): Update accordingly.
5178         (process_define_register_constraint): Likewise.
5180 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5182         * genoutput.c (data): Use a file_location to record the source
5183         position.
5184         (nothing): Delete.
5185         (idata, idata_end): Remove initialization.
5186         (constraint_data): Replace lineno with a file_location.
5187         (output_insn_data): Update after changes to data.
5188         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
5189         (scan_operands): Likewise, using *_at rather than *_with_line
5190         functions.
5191         (process_template): Likewise.
5192         (validate_insn_alternatives): Likewise.
5193         (validate_insn_operands): Likewise.
5194         (validate_optab_operands): Likewise.
5195         (init_insn_for_nothing): Initialize idata and idata_end.
5196         (note_constraint): Update after changes to constraint_data,
5197         using at rather than with_line functions.
5198         (mdep_constraint_len): Take a file_location rather than a
5199         line number.  Use at rather than with_line functions.
5201 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5203         * read-md.h (fatal_at): Declare.
5204         * read-md.c (fatal_at): New function.
5205         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
5206         to record the source position.
5207         (check_attr_test): Take a file_location instead of a line number.
5208         Use fatal_at instead of fatal.
5209         (check_attr_value): Update after above changes, using "at"
5210         rather than "with_line" reporting functions.
5211         (convert_set_attr_alternative): Likewise.
5212         (gen_attr): Likewise.
5213         (check_defs): Likewise.  Don't assign to read_md_filename.
5214         (gen_insn): Update initialization after above changes.
5215         (gen_delay): Likewise.
5216         (write_insn_cases): Print the filename for a define_peephole.
5217         (gen_insn_reserv): Take a line number as argument and update
5218         the call to check_attr_test.
5219         (main): Pass a line number to gen_insn_reserv.
5221 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5223         * read-md.h (file_location): New structure.
5224         (directive_handler_t): Take a file_location rather than a line number.
5225         (message_at, error_at): Declare.
5226         (read_skip_construct): Delete.
5227         * read-md.c (message_with_line_1): Replace with...
5228         (message_at_1): ...this new function.
5229         (message_at, error_at): New functions.
5230         (message_with_line, error_with_line): Update to use message_at_1.
5231         (handle_enum): Take a file_location rather than a line number
5232         and use error_at for error reporting.
5233         (handle_include): Likewise.
5234         (read_skip_construct): Likewise.  Make static.
5235         (handle_file): Update after above changes.  Pass a file_location
5236         rather than a line number to handle_directive.
5237         * gensupport.c (queue_elem): Replace separate filename and lineno
5238         with a file_location.
5239         (queue_pattern): Replace filename and lineno arguments with a
5240         file_location.  Update after change to queue_elem.
5241         (process_define_predicate): Replace lineno argument with a
5242         file_location and use error_at for error reporting.  Update
5243         after above changes.
5244         (process_rtx): Likewise.
5245         (subst_pattern_match): Likewise.
5246         (get_alternatives_number): Likewise.
5247         (alter_predicate_for_insn): Likewise.
5248         (rtx_handle_directive): Likewise.
5249         (is_predicable): Update after above changes, using error_at rather
5250         than error_with_line.
5251         (has_subst_attribute): Likewise.
5252         (identify_predicable_attribute): Likewise.
5253         (alter_attrs_for_subst_insn): Likewise.
5254         (process_one_cond_exec): Likewise.
5255         (process_substs_on_one_elem): Likewise.
5256         (process_define_subst): Likewise.
5257         (check_define_attr_duplicates): Likewise.
5258         (read_md_rtx): Update after change to queue_elem.
5260 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5262         * genoutput.c (next_index_number): Delete.
5263         (data): Remove index_number.
5264         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
5265         (main): Remove manipulation of next_index_number.
5267 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
5269         * genattrtab.c (check_attr_value): Remove handling of null attrs.
5270         (make_canonical): Likewise.
5272 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
5274         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
5275         instead of adjust_address_nv.
5276         (restore_stack_nonlocal): Likewise.
5277         (nonlocal_goto): Likewise.
5279 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5281         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
5282         not have a corresponding loop header phi.
5284 2015-07-16  Tom de Vries  <tom@codesourcery.com>
5286         * tree-parloops.c (create_loads_for_reductions): Handle case that
5287         reduction is unused.
5289 2015-07-16  Richard Biener  <rguenther@suse.de>
5291         PR tree-optimization/66894
5292         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
5293         about deriving NE_EXPR from truncated values.
5295 2015-07-16  Martin Liska  <mliska@suse.cz>
5297         * alloc-pool.h
5298         (object_allocator): Add new class.
5299         (pool_allocator::initialize): Use the underlying class.
5300         (pool_allocator::allocate): Likewise.
5301         (pool_allocator::remove): Likewise.
5302         (operator new): A new generic allocator.
5303         * asan.c (struct asan_mem_ref): Remove unused members.
5304         (asan_mem_ref_new): Replace new operator with
5305         object_allocator::allocate.
5306         (free_mem_ref_resources): Change deallocation.
5307         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
5308         with object_allocator.
5309         * config/sh/sh.c (add_constant): Replace new operator with
5310         object_allocator::allocate.
5311         (sh_reorg): Change call to a release method.
5312         * cselib.c (struct elt_list): Remove unused members.
5313         (new_elt_list): Replace new operator with
5314         object_allocator::allocate.
5315         (new_elt_loc_list): Likewise.
5316         (new_cselib_val): Likewise.
5317         (unchain_one_elt_list): Change delete operator with remove method.
5318         (unchain_one_elt_loc_list): Likewise.
5319         (unchain_one_value): Likewise.
5320         (cselib_finish): Release newly added static allocators.
5321         * cselib.h (struct cselib_val): Remove unused members.
5322         (struct elt_loc_list): Likewise.
5323         * df-problems.c (df_chain_alloc): Replace pool_allocator with
5324         object_allocator.
5325         * df-scan.c (struct df_scan_problem_data): Likewise.
5326         (df_scan_alloc): Likewise.
5327         * df.h (struct dataflow): Likewise.
5328         * dse.c (struct read_info_type): Likewise.
5329         (struct insn_info_type): Likewise.
5330         (struct dse_bb_info_type): Likewise.
5331         (struct group_info): Likewise.
5332         (struct deferred_change): Likewise.
5333         (get_group_info): Likewise.
5334         (delete_dead_store_insn): Likewise.
5335         (free_read_records): Likewise.
5336         (replace_read): Likewise.
5337         (check_mem_read_rtx): Likewise.
5338         (scan_insn): Likewise.
5339         (dse_step1): Likewise.
5340         (dse_step7): Likewise.
5341         * et-forest.c (struct et_occ): Remove unused members.
5342         (et_new_occ): Use allocate instead of new operator.
5343         (et_new_tree): Likewise.
5344         (et_free_tree): Call release method explicitly.
5345         (et_free_tree_force): Likewise.
5346         (et_free_pools): Likewise.
5347         (et_split): Use remove instead of delete operator.
5348         * et-forest.h (struct et_node): Remove unused members.
5349         * ipa-cp.c: Change pool_allocator to object_allocator.
5350         * ipa-inline-analysis.c: Likewise.
5351         * ipa-profile.c: Likewise.
5352         * ipa-prop.c: Likewise.
5353         * ipa-prop.h: Likewise.
5354         * ira-build.c (initiate_cost_vectors): Cast return value.
5355         (ira_allocate_cost_vector): Likewise.
5356         * ira-color.c (struct update_cost_record): Remove unused members.
5357         * lra-int.h (struct lra_live_range): Likewise.
5358         (struct lra_copy): Likewise.
5359         (struct lra_insn_reg): Likewise.
5360         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
5361         * lra.c (new_insn_reg): Replace new operator with allocate method.
5362         (free_insn_regs): Same for operator delete.
5363         (finish_insn_regs): Release new static allocator.
5364         (finish_insn_recog_data): Likewise.
5365         (lra_free_copies): Replace delete operator with remove method.
5366         (lra_create_copy): Replace operator new with allocate method.
5367         (invalidate_insn_data_regno_info): Same for remove method.
5368         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
5369         (free_debug_insn_changes): Replace delete operator with remove method.
5370         (replace_oldest_value_reg): Replace operator new with allocate method.
5371         (pass_cprop_hardreg::execute): Release new static variable.
5372         * sched-deps.c (sched_deps_init): Change pool_allocator to
5373         object_allocator.
5374         * sel-sched-ir.c: Likewise.
5375         * sel-sched-ir.h: Likewise.
5376         * stmt.c (expand_case): Likewise.
5377         (expand_sjlj_dispatch_table): Likewise.
5378         * tree-sra.c (struct access): Remove unused members.
5379         (struct assign_link): Likewise.
5380         (sra_deinitialize): Release newly added static pools.
5381         (create_access_1):Replace operator new with allocate method.
5382         (build_accesses_from_assign): Likewise.
5383         (create_artificial_child_access): Likewise.
5384         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
5385         pool_allocator to object_allocator.
5386         * tree-ssa-pre.c: Likewise.
5387         * tree-ssa-reassoc.c: Likewise.
5388         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5389         * tree-ssa-strlen.c: Likewise.
5390         * tree-ssa-structalias.c: Likewise.
5391         * var-tracking.c (onepart_pool_allocate): New function.
5392         (unshare_variable): Use the newly added function.
5393         (variable_merge_over_cur): Likewise.
5394         (variable_from_dropped): Likewise.
5395         (variable_was_changed): Likewise.
5396         (set_slot_part): Likewise.
5397         (emit_notes_for_differences_1): Likewise.
5398         (vt_finalize): Release newly added static pools.
5400 2015-07-16  Martin Jambor  <mjambor@suse.cz>
5402         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
5403         all uses.  Fix two typos in its general comment.
5404         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
5406 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
5408         * config/i386/linux-common.h (LINK_MPX): New.
5409         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
5410         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
5411         indicating '-z bndplt' support by linker.
5412         * configure: Regenerate.
5413         * config.in: Regenerate.
5415 2015-07-16  Richard Biener  <rguenther@suse.de>
5417         * fold-const.c (fold_widened_comparison): Remove.
5418         (fold_sign_changed_comparison): Likewise.
5419         (fold_comparison): Move widened and sign-changed comparison
5420         simplification ...
5421         * match.pd: ... to patterns here.
5422         * generic-match-head.c: Include target.h.
5423         * gimple-match-head.c: Likewise.
5425 2015-07-16  Richard Biener  <rguenther@suse.de>
5427         * tree-ssa-dom.c (dom_valueize): New function.
5428         (record_temporary_equivalences): Also record equivalences
5429         for dominating stmts that have uses of equivalences we are
5430         about to record.
5432 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
5434         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
5435         add_autoinc_candidates.
5436         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
5437         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
5438         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
5439         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
5440         Call new function.
5441         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
5442         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
5443         Remove parameter struct iv*.  Call add_autoinc_candidates here.
5444         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
5445         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
5446         Call new function.
5447         (find_iv_candidates): Call new functions.
5449 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
5451         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
5452         uninitialized-variable warning.
5454 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5456         PR target/65249
5457         * config/sh/sh.md (movdi): Split simple reg move to two movsi
5458         when the destination is R0.
5460 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
5462         PR target/66866
5463         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
5464         * config/i386/i386.c (ix86_expand_pextr): New function.
5465         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
5466         for non-lowpart subregs.
5467         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
5468         (insv<mode>): Use SWI248 mode iterator.
5469         (insv<mode>_1): Ditto.
5471 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5472             Sebastian Pop  <s.pop@samsung.com>
5474         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
5475         iterator to use_stmt.
5477 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5478             Sebastian Pop <s.pop@samsung.com>
5480         * graphite-scop-detection.c (build_scops_1): Discard scops for
5481         which entry==exit.
5483 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5484             Sebastian Pop <s.pop@samsung.com>
5486         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
5487         case of a return statement in scop.
5489 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
5490             Sebastian Pop <s.pop@samsung.com>
5492         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
5493         INTEGER_TYPE parameters.
5494         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
5495         VECTOR_CST in scan_tree_for_params.
5496         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
5498 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5500         * gimple-pretty-print.h: Don't include pretty-print.h.
5501         * tree-streamer.h: Don't include lto-streamer.h.
5502         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
5503         * gimple-streamer-in.c: Remove redundant includes.
5504         * gimple-streamer-out.c: Likewise.
5505         * ipa-devirt.c: Likewise.
5506         * ipa-icf.c: Likewise.
5507         * ipa-inline-analysis.c: Likewise.
5508         * ipa-polymorphic-call.c: Likewise.
5509         * ipa-profile.c: Likewise.
5510         * ipa-prop.c: Likewise.
5511         * ipa-pure-const.c: Likewise.
5512         * lto-cgraph.c: Likewise.
5513         * lto-streamer-in.c: Likewise.
5514         * lto-streamer-out.c: Likewise.
5515         * lto-streamer.c: Likewise.
5516         * tree-streamer-in.c: Likewise.
5517         * tree-streamer-out.c: Likewise.
5518         * tree-streamer.c: Likewise.
5520 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
5522         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
5523         include input.h.
5524         * opts.c: Remove multiline #include comment.
5526 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
5528         * config/nvptx/mkoffload.c (process): Add C++ protection to
5529         emitted code.
5531 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5533         PR target/66854
5534         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
5535         null before IEEE 128-bit floating point support patch.
5537 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5539         * simplify-rtx.c (simplify_ternary_operation): Add simplification
5540         for (!c) != {0,...,0} ? a : b for vector modes.
5542 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
5543             Martin Jambor  <mjambor@suse.cz>
5545         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
5546         struct func_body_info* instead of struct ipa_node_params*, expecting
5547         fbi->info to be filled in.  Replace throughout.  Adjust call to
5548         ipa_load_from_parm_agg.
5549         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
5550         instead of struct ipa_node_params*.  Adjust calls to other functions
5551         so that they pass either fbi or fbi->info.
5552         (set_switch_stmt_execution_predicate): Likewise.
5553         (will_be_nonconstant_predicate): Likewise.
5554         (compute_bb_predicates): Likewise.
5555         (estimate_function_body_sizes): Move asserts earlier.  Fill in
5556         struct func_body_info, replace parms_info with fbi.info.  Adjust
5557         calls to functions that now accept struct func_body_info.
5558         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
5559         (struct func_body_info): Likewise.
5560         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
5561         remove static.  Adjust callers.
5562         (ipa_load_from_parm_agg): Remove.
5563         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
5564         (func_body_info): Likewise.
5565         (ipa_load_from_parm_agg): Adjust prototype.
5567 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5569         * gensupport.c (rtx_handle_directive): Adjust.
5570         * read-rtl.c (apply_iterators): Take vector to add rtxs to
5571         instead of expr list rtx.
5572         (add_define_attr_for_define_subst): Likewise.
5573         (add_define_subst_attr): Likewise.
5574         (read_subst_mapping): Likewise.
5575         (read_rtx): Likewise.
5576         * rtl.h (read_rtx): Adjust.
5578 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5580         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
5582 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5584         PR target/58066
5585         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
5586         (*tls_local_dynamic_base_64_<mode>): Ditto.
5587         (*tls_local_dynamic_base_64_largepic): Ditto.
5588         (tls_global_dynamic_64_<mode>): Update expander pattern.
5589         (tls_local_dynamic_base_64_<mode>): Ditto.
5591 2015-07-15  Richard Biener  <rguenther@suse.de>
5593         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
5594         and bool_var == 1 -> bool_var simplifications ...
5595         * match.pd: ... to patterns here.  Factor out negate_expr_p
5596         cases from the A - B -> A + (-B) patterns as negate_expr_p
5597         predicate and add a -(A + B) -> (-B) - A pattern.
5599 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5601         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
5603 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
5604             Robert Suchanek  <robert.suchanek@imgtec.com>
5606         * config/mips/mips.c (mips_int_mask): New enum.
5607         (mips_shadow_set): Likewise.
5608         (int_mask): New variable.
5609         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
5610         (machine_function): Add int_mask and use_shadow_register_set.
5611         (mips_attribute_table): Add attribute handlers for interrupt and
5612         use_shadow_register_set.
5613         (mips_interrupt_mask): New static function.
5614         (mips_handle_interrupt_attr): Likewise.
5615         (mips_handle_use_shadow_register_set_attr): Likewise.
5616         (mips_use_shadow_register_set): Change return type to enum
5617         mips_shadow_set.  Add argument handling for use_shadow_register_set
5618         attribute.
5619         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
5620         compare with mips_shadow_set enum.
5621         (mips_compute_frame_info): Add interrupt mask and
5622         use_shadow_register_set to per-function information structure.
5623         Add a stack slot for EPC unconditionally.
5624         (mips_expand_prologue): Compare use_shadow_register_set value
5625         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
5626         masked interrupt register but in EIC mode use K0 and save Cause in K0.
5627         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
5628         copying the stack pointer from the shadow register set.
5629         * config/mips/mips.h (SR_IM0): New define.
5630         * config/mips/mips.md (mips_rdpgpr): Rename to...
5631         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
5632         * doc/extend.texi (Declaring Attributes of Functions): Document
5633         optional arguments for interrupt and use_shadow_register_set
5634         attributes.
5636 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
5638         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
5639         interrupt attribute.
5640         (mips_expand_prologue): Disable the floating point unit in an ISR.
5641         * config/mips/mips.h (SR_COP1): New define.
5643 2015-07-15  Richard Biener  <rguenther@suse.de>
5645         * genmatch.c (parser::peek, parser::peek_ident): Add argument
5646         to tell how many tokens to peek ahead (default 1).
5647         (parser::eat_token, parser::eat_ident): Return token consumed.
5648         (parser::parse_result): Parse new switch statement.
5649         * match.pd: Use case statements where appropriate.
5651 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5653         PR rtl-optimization/58066
5654         * calls.c (expand_call): Precompute register parameters before stack
5655         alignment is performed.
5657 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
5659         PR rtl-optimization/66838
5660         * postreload.c (reload_cse_move2add): Also process
5661         CALL_INSN_FUNCTION_USAGE when resetting information of
5662         call-clobbered registers.
5664 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5665             Cesar Philippidis  <cesar@codesourcery.com>
5666             Chung-Lin Tang  <cltang@codesourcery.com>
5668         * config/nios2/constraints.md (U, v): New constraints.
5669         * config/nios2/predicates.md (rdprs_dcache_operand): New.
5670         (ldstex_memory_operand): New.
5671         * config/nios2/sync.md: New file.
5672         * config/nios2/nios2.md (unspecv): Add new builtin function
5673         UNSPECV codes.
5674         (rdprs, flushd, flushda, wrpie, eni): New patterns.
5675         (top-level): Include sync.md.
5676         * config/nios2/nios2.c (N2_FTYPES): Add function types for
5677         new builtins.
5678         (N2_BUILTINS): Add arch field setting, add new builtins.
5679         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
5680         for arch field.
5681         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
5682         Also handle ldex/stex/ldsex/stsex builtins.
5683         (nios2_expand_rdprs_builtin): New function.
5684         (nios2_expand_cache_builtin): New function.
5685         (nios2_expand_wrpie_builtin): New function.
5686         (nios2_expand_eni_builtin): New function.
5687         (nios2_expand_builtin): Add arch field handling and new builtin
5688         cases.
5689         * doc/extend.texi (Altera Nios II Built-in Functions): Document
5690         new builtins.
5691         * doc/md.texi (Machine Constraints): Document U and v constraints.
5693 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5694             Cesar Philippidis  <cesar@codesourcery.com>
5695             Chung-Lin Tang  <cltang@codesourcery.com>
5697         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
5698         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
5699         callee_save_reg_size and uses_anonymous_args fields.
5700         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
5701         (nios2_create_cfa_notes): New function.
5702         (nios2_adjust_stack): New function for adjusting stack.
5703         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
5704         Use nios2_adjust_stack.
5705         (nios2_expand_epilogue): Likewise.
5706         (nios2_expand_return): New function.
5707         (nios2_can_use_return_insn): Update for CDX pop.n usage.
5708         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
5709         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
5710         * config/nios2/nios2.md (return): Use nios2_expand_return.
5712 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5713             Cesar Philippidis  <cesar@codesourcery.com>
5714             Chung-Lin Tang  <cltang@codesourcery.com>
5716         * config/nios2/predicates.md (pop_operation): New.
5717         (ldwm_operation, stwm_operation): New.
5718         (nios2_hard_register_operand): New.
5719         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
5720         (ldstwm_operation_p): Declare.
5721         (gen_ldstwm_peep): Declare.
5722         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
5723         (base_reg_adjustment_p): New.
5724         (pop_operation_p): New.
5725         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
5726         (nios2_ldstwm_regset_p): New.
5727         (ldstwm_operation_p): New.
5728         (gen_ldst): New.
5729         (nios2_ldst_parallel): New.
5730         (struct ldswm_operand): Declare.
5731         (compare_ldstwm_operands): New.
5732         (can_use_cdx_ldstw): New.
5733         (gen_ldstwm_peep): New.
5734         * config/nios2/nios2-ldstwm.sml: New.
5735         * config/nios2/nios2.md: Include ldstwm.md.
5736         * config/nios2/ldstwm.md: Generated.
5738 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5739             Cesar Philippidis  <cesar@codesourcery.com>
5740             Chung-Lin Tang  <cltang@codesourcery.com>
5742         * config/nios2/nios2.h (LABEL_ALIGN): Define.
5743         (REG_ALLOC_ORDER): Define.
5744         (ADJUST_REG_ALLOC_ORDER): Define.
5745         (HONOR_REG_ALLOC_ORDER): Define.
5746         (CDX_REG_P): Define.
5747         (ANDCLEAR_INT): Define.
5748         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
5749         (nios2_label_align): Declare.
5750         (nios2_cdx_narrow_form_p): Declare.
5751         (nios2_adjust_reg_alloc_order): Declare.
5752         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
5753         operation.
5754         (nios2_large_unspec_reloc_p): New function, split from...
5755         (nios2_legitimate_pic_operand_p): ...here.
5756         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
5757         (nios2_print_operand_punct_valid_p): New.
5758         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
5759         (split_mem_address): New.
5760         (split_alu_insn): New.
5761         (cdxreg): New.
5762         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
5763         (enum nios2_add_insn_kind): New.
5764         (nios2_add_insn_names, nios2_add_insn_narrow): New.
5765         (nios2_add_insn_classify): New.
5766         (nios2_add_insn_asm): New.
5767         (nios2_cdx_narrow_form_p): New.
5768         (label_align, min_labelno, max_labelno): New.
5769         (nios2_reorg): New.
5770         (nios2_label_align): New.
5771         (nios2_adjust_reg_alloc_order): New.
5772         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5773         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5774         * config/nios2/constraints.md (P): New constraint.
5775         * config/nios2/predicates.md (const_and_operand): New.
5776         (and_operand): New.
5777         (stack_memory_operand): New.
5778         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
5779         (length): Update to use nios2_cdx_narrow_form_p().
5780         (type): Add new insn type values.
5781         (control, alu, st, ld, shift): Update insn reservations with
5782         new insn type values.
5783         (*high, *lo_sum): Define new insn patterns for constant generation.
5784         (movqi_internal, movhi_internal, movsi_internal): Reduce
5785         alternatives, update asm template to handle CDX variants, update
5786         type attributes.
5787         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
5788         template, update type attributes.
5789         (extendhisi2, extendqi<mode>2): Likewise.
5790         (addsi3): Change to use function for asm string.
5791         (subsi3): Add CDX notation to asm template, update type attributes.
5792         (negsi3, one_cmplsi3): Likewise.
5793         (andsi3): New pattern, specialized from logical patterns.
5794         (<code>si3): Remove and case, combine alternatives, update asm
5795         template.
5796         (<shift_op>si3): Add CDX notation, update type attributes.
5797         (rotrsi3): Update type attribute.
5798         (*merge, extzv, insv): New insn patterns.
5799         (return): Change to define_expand.
5800         (simple_return): Add CDX notation, update type attributes.
5801         (indirect_jump): Add CDX notation.
5802         (jump): Update asm cases, update length attribute expression.
5803         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
5804         (nios2_cbranch): Update asm cases and length attribute expression
5805         to handle CDX variants.
5806         (nios2_cmp<code>): Update asm template.
5807         (nop): Add CDX notation, update type attributes.
5808         (trap): Add CDX notation.
5809         (ctrapsi4): Update asm cases and length attribute expression to
5810         handle CDX variant.
5811         * doc/md.texi (Machine Constraints): Document P constraint.
5813 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5814             Cesar Philippidis  <cesar@codesourcery.com>
5815             Chung-Lin Tang  <cltang@codesourcery.com>
5817         * config/nios2/nios2.h (SMALL_INT12): New macro.
5818         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
5819         (nios2_valid_addr_expr_p): Use it.
5820         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
5821         with implicit "io" instructions on R2.
5822         * config/nios2/constraints.md (w): New constraint.
5823         * config/nios2/predicates.md (ldstio_memory_operand): New.
5824         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
5825         operand predicate and constraint.
5826         (ld<bh>io_signed, st<bhw>io>): Likewise.
5827         * doc/md.texi (Machine Constraints): Document w constraint.
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.opt (march, mbmx, mcdx): New options.
5834         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
5835         Nios II architecture level.
5836         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
5837         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
5838         (OPTION_DEFAULT_SPECS): Define.
5839         (ASM_SPEC): Add -march= spec strings.
5840         * config/nios2/nios2.c (nios2_option_override): Check for
5841         conflicts involving new options.
5842         * config.gcc (nios2*-*-*): Support --with-arch=.
5843         * doc/invoke.texi (Option Summary, Nios II Options): Document
5844         -march=, -mbmx, and -mcdx.
5846 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
5848         PR rtl-optimization/66626
5849         * lra-constraints.c (lra_constraints): Prevent equivalence
5850         substitution for static chain pseudo in functions with nonlocal
5851         goto.
5853 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
5855         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
5856         (nios2_emit_stack_limit_check): Add size parameter.  Handle
5857         -fstack-limit-symbol as well as -fstack-limit-register.
5858         (nios2_expand_prologue): Emit only a single stack limit check,
5859         even if multiple stack adjustments are required.
5860         (nios2_option_override): Diagnose unsupported combination of -fpic
5861         and -stack-limit-symbol.
5863 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
5865         * Makefile.in (top_srcdir): New.
5866         * configure.ac: Use AM_ZLIB.
5867         * configure: Regeneated.
5869 2015-07-14  Matthias Klose  <doko@ubuntu.com>
5871         PR target/66840
5872         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
5874 2015-07-14  Richard Biener  <rguenther@suse.de>
5876         PR tree-optimization/66863
5877         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
5878         what we record for conversion use stmt lhs inequalities.
5880 2015-07-14  Richard Biener  <rguenther@suse.de>
5882         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
5883         (decision_tree::gen_gimple): Likewise.
5885 2015-07-14  Tom de Vries  <tom@codesourcery.com>
5887         * gcc.c (greater_than_spec_func): Declare forward.
5888         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
5889         -ftree-parallelize-loops={0,1}.
5890         (static_spec_functions): Add greater_than_spec_func function with name
5891         "gt".
5892         (greater_than_spec_func): New function.
5894 2015-07-14  Richard Biener  <rguenther@suse.de>
5896         * tree-ssa-dom.c (record_temporary_equivalences): Merge
5897         wideing type conversion case from record_equivalences_from_incoming_edge
5898         and use record_equality to record equivalences.
5899         (record_equivalences_from_incoming_edge): Call
5900         record_temporary_equivalences.
5902 2015-07-14  Richard Biener  <rguenther@suse.de>
5904         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
5905         (struct if_expr): New.
5906         (struct with_expr): Likewise.
5907         (is_a_helper): Add helpers for if_expr and with_expr.
5908         (struct simplify): Add simplify_kind enum and member.  Remove
5909         ifexpr_vec member.
5910         (simplify::simplify): Adjust.
5911         (lower_commutative): Adjust.
5912         (lower_opt_convert): Likewise.
5913         (lower_cond): Likewise.
5914         (replace_id): Handle with_expr and if_expr.
5915         (lower_for): Adjust.
5916         (dt_simplify::gen_1): New recursive worker, split out from ...
5917         (dt_simplify::gen): ... here.  Deal with if and with expansion
5918         recursively.
5919         (capture_info::capture_info): Take context argument
5920         (capture_info::walk_result): Only analyze specific result.
5921         (parser::parse_result): New function.
5922         (parser::parse_simplify): Adjust to parse ifs with then end
5923         else case.
5924         (parser::parse_if): Simplify.
5925         (parser::parse_pattern): Pass down simplify kind.
5926         * match.pd: Convert if structure to new syntax.
5928 2015-07-13  Marek Polacek  <polacek@redhat.com>
5930         * rtl.c (rtx_equal_p_cb): Fix typo.
5932 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
5934         * omega.h: Don't include config.h, don't include params.h again if
5935         omega.h has already been included.
5936         * graphite-poly.h: Include sese.h.
5937         * graphite.c: Don't include sese.h, remove needless includes and
5938         minimize includes outside #ifdef HAVE_isl block.
5939         * graphite-blocking.c: Don't include sese.h, remove needless includes,
5940         and wrap entire file in #ifdef HAVE_isl
5941         * graphite-dependences.c: Likewise.
5942         * graphite-interchange.c: Likewise.
5943         * graphite-isl-ast-to-gimple.c: Likewise.
5944         * graphite-optimize-isl.c: Likewise.
5945         * graphite-poly.c: Likewise.
5946         * graphite-scop-detection.c: Likewise.
5947         * graphite-sese-to-poly.c: Likewise.
5949 2015-07-13  Tom de Vries  <tom@codesourcery.com>
5951         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
5953 2015-07-13  Renlin Li  <renlin.li@arm.com>
5955         PR rtl/66556
5956         * simplify-rtx.c (simplify_const_relational_operation): Add
5957         side_effects_p checks.
5959 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
5961         * bitmap.h: Fix double word typos.
5962         * builtins.c: Same.
5963         * calls.c: Same.
5964         * cfgloopmanip.c: Same.
5965         * cgraph.c: Same.
5966         * cgraph.h: Same.
5967         * cgraphclones.c: Same.
5968         * combine.c: Same.
5969         * config/aarch64/aarch64-protos.h: Same.
5970         * config/aarch64/aarch64.c: Same.
5971         * config/aarch64/aarch64.md: Same.
5972         * config/arm/arm.md: Same.
5973         * config/arm/arm1020e.md: Same.
5974         * config/arm/arm1026ejs.md: Same.
5975         * config/arm/arm926ejs.md: Same.
5976         * config/arm/fa526.md: Same.
5977         * config/arm/fa606te.md: Same.
5978         * config/arm/fa626te.md: Same.
5979         * config/arm/fa726te.md: Same.
5980         * config/arm/fmp626.md: Same.
5981         * config/darwin.c: Same.
5982         * config/epiphany/epiphany.c: Same.
5983         * config/frv/frv.c: Same.
5984         * config/ft32/ft32.c: Same.
5985         * config/gnu-user.h: Same.
5986         * config/h8300/constraints.md: Same.
5987         * config/i386/i386.c: Same.
5988         * config/i386/i386.md: Same.
5989         * config/iq2000/iq2000.md: Same.
5990         * config/mips/mips.c: Same.
5991         * config/mmix/mmix.md: Same.
5992         * config/moxie/moxie.c: Same.
5993         * config/nds32/nds32.md: Same.
5994         * config/pa/pa.h: Same.
5995         * config/rs6000/aix.h: Same.
5996         * config/rs6000/rs6000.h: Same.
5997         * config/sh/sh.c: Same.
5998         * config/tilegx/tilegx.md: Same.
5999         * config/tilepro/gen-mul-tables.cc: Same.
6000         * cse.c: Same.
6001         * dbxout.c: Same.
6002         * doc/invoke.texi: Same.
6003         * dse.c: Same.
6004         * dwarf2out.c: Same.
6005         * final.c: Same.
6006         * gcc.c: Same.
6007         * genmatch.c: Same.
6008         * gimplify.c: Same.
6009         * hash-table.h: Same.
6010         * internal-fn.c: Same.
6011         * ipa-cp.c: Same.
6012         * ipa-devirt.c: Same.
6013         * ipa-icf.c: Same.
6014         * ipa-icf.h: Same.
6015         * ipa-profile.c: Same.
6016         * ipa-prop.c: Same.
6017         * ipa-prop.h: Same.
6018         * ira.c: Same.
6019         * omp-low.c: Same.
6020         * reg-stack.c: Same.
6021         * regcprop.c: Same.
6022         * reorg.c: Same.
6023         * rtl.h: Same.
6024         * sbitmap.h: Same.
6025         * tree-eh.c: Same.
6026         * tree-inline.c: Same.
6027         * tree-sra.c: Same.
6028         * tree-ssa-dom.c: Same.
6029         * tree-ssa-loop-ivopts.c: Same.
6030         * tree-ssa-structalias.c: Same.
6031         * tree-ssa-tail-merge.c: Same.
6032         * tree-ssa-ter.c: Same.
6033         * tree-ssa-threadupdate.c: Same.
6034         * tree-ssa-uninit.c: Same.
6035         * tree-ssanames.c: Same.
6036         * tree-vect-loop-manip.c: Same.
6037         * tree-vrp.c: Same.
6038         * tree.c: Same.
6039         * valtrack.c: Same.
6040         * vec.h: Same.
6042 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6044         PR middle-end/66726
6045         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
6046         tree_ssa_phiopt_worker): Call it.
6048 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6050         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
6051         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
6052         REG_EQUAL note.
6054 2015-07-11  Marek Polacek  <polacek@redhat.com>
6056         PR middle-end/66353
6057         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
6058         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
6059         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
6060         rather than bb_has_abnormal_call_pred.
6061         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
6062         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
6063         rather than bb_has_abnormal_call_pred.
6065 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
6067         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6068         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
6069         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6070         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
6071         v850_legitimate_address_p): New functions.
6072         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6074 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6076         PR target/66819
6077         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
6078         indirect sibcall with register arguments if register available
6079         for argument passing.
6080         (init_cumulative_args): Set cfun->machine->arg_reg_available
6081         to (cum->nregs > 0) or to true if function has a variable
6082         argument list.
6083         (function_arg_advance_32): Set cfun->machine->arg_reg_available
6084         to false if cum->nregs <= 0.
6085         * config/i386/i386.h (machine_function): Add arg_reg_available.
6087 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6089         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
6090         and gen_higpart instead of gen_rtx_SUBREG.
6091         * config/i386/i386.md
6092         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
6093         (read-modify peephole2): Use gen_lowpart instead of
6094         gen_rtx_SUBREG for operand 5.
6096 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
6098         * config/tilepro/gen-mul-tables.cc (main): Change include list for
6099         generated files.
6100         * config/tilepro/mul-tables.c: Regenerate.
6101         * config/tilegx/mul-tables.c: Regenerate.
6103 2015-07-10  Richard Biener  <rguenther@suse.de>
6105         * fold-const.c (distribute_bit_expr): Remove.
6106         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
6107         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
6108         to A & (B | C) and simplifying A << C1 << C2 to ...
6109         * match.pd: ... patterns here.
6111 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
6113         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6114         Mark mem as READONLY and NOTRAP for PIC symbol.
6116 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
6118         * gimple-predict.h: New file.
6119         (gimple_predict_predictor, gimple_predict_set_predictor,
6120         gimple_predict_outcome, gimple_predict_set_outcome,
6121         gimple_build_predict): Relocate here.
6122         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
6123         gimple_predict_outcome, gimple_predict_set_outcome): Move to
6124         gimple-predict.h.
6125         * gimple.c (gimple_build_predict): Move to gimple-predict.h
6126         * basic-block.h: Don't include cfghooks.h.
6127         * backend.h: Don't include predict.h.
6128         * cfghooks.h: Include predict.h.
6129         * gimple-pretty-print.c: Include gimple-predict.h.
6130         * gimplify.c: Likwise.
6131         * predict.c: Adjust includes.
6132         * tree-inline.c: Likewise.
6133         * asan.c: Likewise.
6134         * auto-inc-dec.c: Likewise.
6135         * auto-profile.c: Likewise.
6136         * bb-reorder.c: Likewise.
6137         * builtins.c: Likewise.
6138         * caller-save.c: Likewise.
6139         * calls.c: Likewise.
6140         * cfganal.c: Likewise.
6141         * cfgbuild.c: Likewise.
6142         * cfg.c: Likewise.
6143         * cfgcleanup.c: Likewise.
6144         * cfgexpand.c: Likewise.
6145         * cfghooks.c: Likewise.
6146         * cfgloopanal.c: Likewise.
6147         * cfgloop.c: Likewise.
6148         * cfgloopmanip.c: Likewise.
6149         * cfgrtl.c: Likewise.
6150         * cgraph.c: Likewise.
6151         * cgraphunit.c: Likewise.
6152         * combine.c: Likewise.
6153         * cprop.c: Likewise.
6154         * cse.c: Likewise.
6155         * dce.c: Likewise.
6156         * dojump.c: Likewise.
6157         * dse.c: Likewise.
6158         * except.c: Likewise.
6159         * expmed.c: Likewise.
6160         * expr.c: Likewise.
6161         * final.c: Likewise.
6162         * fold-const.c: Likewise.
6163         * function.c: Likewise.
6164         * fwprop.c: Likewise.
6165         * gcc-plugin.h: Likewise.
6166         * gcse.c: Likewise.
6167         * genattrtab.c: Likewise.
6168         * genemit.c: Likewise.
6169         * gengtype.c: Likewise.
6170         * genopinit.c: Likewise.
6171         * genoutput.c: Likewise.
6172         * genpreds.c: Likewise.
6173         * genrecog.c: Likewise.
6174         * gimple-fold.c: Likewise.
6175         * gimple-iterator.c: Likewise.
6176         * gimple-ssa-isolate-paths.c: Likewise.
6177         * gimple-ssa-strength-reduction.c: Likewise.
6178         * graph.c: Likewise.
6179         * graphite-blocking.c: Likewise.
6180         * graphite.c: Likewise.
6181         * graphite-dependences.c: Likewise.
6182         * graphite-interchange.c: Likewise.
6183         * graphite-isl-ast-to-gimple.c: Likewise.
6184         * graphite-optimize-isl.c: Likewise.
6185         * graphite-poly.c: Likewise.
6186         * graphite-scop-detection.c: Likewise.
6187         * graphite-sese-to-poly.c: Likewise.
6188         * haifa-sched.c: Likewise.
6189         * ifcvt.c: Likewise.
6190         * internal-fn.c: Likewise.
6191         * ipa-cp.c: Likewise.
6192         * ipa-profile.c: Likewise.
6193         * ipa-split.c: Likewise.
6194         * ipa-utils.c: Likewise.
6195         * ira-build.c: Likewise.
6196         * ira-color.c: Likewise.
6197         * ira-conflicts.c: Likewise.
6198         * ira-costs.c: Likewise.
6199         * ira-emit.c: Likewise.
6200         * ira-lives.c: Likewise.
6201         * jump.c: Likewise.
6202         * loop-doloop.c: Likewise.
6203         * loop-init.c: Likewise.
6204         * loop-invariant.c: Likewise.
6205         * loop-unroll.c: Likewise.
6206         * lower-subreg.c: Likewise.
6207         * lra-assigns.c: Likewise.
6208         * lra.c: Likewise.
6209         * lra-coalesce.c: Likewise.
6210         * lra-constraints.c: Likewise.
6211         * lra-lives.c: Likewise.
6212         * lto-cgraph.c: Likewise.
6213         * lto-streamer-in.c: Likewise.
6214         * mode-switching.c: Likewise.
6215         * modulo-sched.c: Likewise.
6216         * omp-low.c: Likewise.
6217         * optabs.c: Likewise.
6218         * passes.c: Likewise.
6219         * postreload.c: Likewise.
6220         * postreload-gcse.c: Likewise.
6221         * profile.c: Likewise.
6222         * recog.c: Likewise.
6223         * regstat.c: Likewise.
6224         * reload1.c: Likewise.
6225         * reorg.c: Likewise.
6226         * rtlanal.c: Likewise.
6227         * sched-ebb.c: Likewise.
6228         * sel-sched-ir.c: Likewise.
6229         * sese.c: Likewise.
6230         * shrink-wrap.c: Likewise.
6231         * simplify-rtx.c: Likewise.
6232         * stmt.c: Likewise.
6233         * store-motion.c: Likewise.
6234         * tracer.c: Likewise.
6235         * trans-mem.c: Likewise.
6236         * tree-call-cdce.c: Likewise.
6237         * tree-cfg.c: Likewise.
6238         * tree-cfgcleanup.c: Likewise.
6239         * tree-chkp.c: Likewise.
6240         * tree-complex.c: Likewise.
6241         * tree-eh.c: Likewise.
6242         * tree-if-conv.c: Likewise.
6243         * tree-loop-distribution.c: Likewise.
6244         * tree-outof-ssa.c: Likewise.
6245         * tree-parloops.c: Likewise.
6246         * tree-predcom.c: Likewise.
6247         * tree-pretty-print.c: Likewise.
6248         * tree-profile.c: Likewise.
6249         * tree-sra.c: Likewise.
6250         * tree-ssa.c: Likewise.
6251         * tree-ssa-coalesce.c: Likewise.
6252         * tree-ssa-dce.c: Likewise.
6253         * tree-ssa-dom.c: Likewise.
6254         * tree-ssa-forwprop.c: Likewise.
6255         * tree-ssa-ifcombine.c: Likewise.
6256         * tree-ssa-loop-ch.c: Likewise.
6257         * tree-ssa-loop-im.c: Likewise.
6258         * tree-ssa-loop-ivcanon.c: Likewise.
6259         * tree-ssa-loop-ivopts.c: Likewise.
6260         * tree-ssa-loop-manip.c: Likewise.
6261         * tree-ssa-loop-prefetch.c: Likewise.
6262         * tree-ssa-loop-unswitch.c: Likewise.
6263         * tree-ssa-math-opts.c: Likewise.
6264         * tree-ssa-phiopt.c: Likewise.
6265         * tree-ssa-pre.c: Likewise.
6266         * tree-ssa-reassoc.c: Likewise.
6267         * tree-ssa-sink.c: Likewise.
6268         * tree-ssa-tail-merge.c: Likewise.
6269         * tree-ssa-threadedge.c: Likewise.
6270         * tree-ssa-threadupdate.c: Likewise.
6271         * tree-switch-conversion.c: Likewise.
6272         * tree-tailcall.c: Likewise.
6273         * tree-vect-data-refs.c: Likewise.
6274         * tree-vect-loop.c: Likewise.
6275         * tree-vect-loop-manip.c: Likewise.
6276         * tree-vectorizer.c: Likewise.
6277         * tree-vrp.c: Likewise.
6278         * ubsan.c: Likewise.
6279         * value-prof.c: Likewise.
6280         * varasm.c: Likewise.
6281         * var-tracking.c: Likewise.
6282         * config/aarch64/aarch64-builtins.c: Likewise.
6283         * config/aarch64/aarch64.c: Likewise.
6284         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6285         * config/alpha/alpha.c: Likewise.
6286         * config/arc/arc.c: Likewise.
6287         * config/arm/arm.c: Likewise.
6288         * config/avr/avr.c: Likewise.
6289         * config/bfin/bfin.c: Likewise.
6290         * config/c6x/c6x.c: Likewise.
6291         * config/cr16/cr16.c: Likewise.
6292         * config/cris/cris.c: Likewise.
6293         * config/darwin.c: Likewise.
6294         * config/darwin-c.c: Likewise.
6295         * config/epiphany/epiphany.c: Likewise.
6296         * config/epiphany/mode-switch-use.c: Likewise.
6297         * config/epiphany/resolve-sw-modes.c: Likewise.
6298         * config/fr30/fr30.c: Likewise.
6299         * config/frv/frv.c: Likewise.
6300         * config/ft32/ft32.c: Likewise.
6301         * config/h8300/h8300.c: Likewise.
6302         * config/i386/i386.c: Likewise.
6303         * config/i386/winnt.c: Likewise.
6304         * config/ia64/ia64.c: Likewise.
6305         * config/iq2000/iq2000.c: Likewise.
6306         * config/lm32/lm32.c: Likewise.
6307         * config/m32c/m32c.c: Likewise.
6308         * config/m32r/m32r.c: Likewise.
6309         * config/m68k/m68k.c: Likewise.
6310         * config/mcore/mcore.c: Likewise.
6311         * config/mep/mep.c: Likewise.
6312         * config/microblaze/microblaze.c: Likewise.
6313         * config/mips/mips.c: Likewise.
6314         * config/mmix/mmix.c: Likewise.
6315         * config/mn10300/mn10300.c: Likewise.
6316         * config/moxie/moxie.c: Likewise.
6317         * config/msp430/msp430.c: Likewise.
6318         * config/nds32/nds32.c: Likewise.
6319         * config/nds32/nds32-cost.c: Likewise.
6320         * config/nds32/nds32-fp-as-gp.c: Likewise.
6321         * config/nds32/nds32-intrinsic.c: Likewise.
6322         * config/nds32/nds32-isr.c: Likewise.
6323         * config/nds32/nds32-md-auxiliary.c: Likewise.
6324         * config/nds32/nds32-memory-manipulation.c: Likewise.
6325         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6326         * config/nds32/nds32-predicates.c: Likewise.
6327         * config/nios2/nios2.c: Likewise.
6328         * config/nvptx/nvptx.c: Likewise.
6329         * config/pa/pa.c: Likewise.
6330         * config/pdp11/pdp11.c: Likewise.
6331         * config/rl78/rl78.c: Likewise.
6332         * config/rs6000/rs6000.c: Likewise.
6333         * config/rx/rx.c: Likewise.
6334         * config/s390/s390.c: Likewise.
6335         * config/sh/sh.c: Likewise.
6336         * config/sh/sh-mem.cc: Likewise.
6337         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6338         * config/sh/sh_treg_combine.cc: Likewise.
6339         * config/sparc/sparc.c: Likewise.
6340         * config/spu/spu.c: Likewise.
6341         * config/stormy16/stormy16.c: Likewise.
6342         * config/tilegx/tilegx.c: Likewise.
6343         * config/tilepro/tilepro.c: Likewise.
6344         * config/v850/v850.c: Likewise.
6345         * config/vax/vax.c: Likewise.
6346         * config/visium/visium.c: Likewise.
6347         * config/xtensa/xtensa.c: Likewise.
6349 2015-07-10  Richard Biener  <rguenther@suse.de>
6351         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
6352         (decision_tree::gen_gimple): Likewise.
6353         (decision_tree::gen_generic): Likewise.
6355 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
6357         PR target/66813
6358         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
6359         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
6361 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
6363         PR middle-end/66820
6364         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
6365         or ORT_TASK contexts.
6366         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
6367         is non-zero.
6369 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6371         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
6372         above function.
6374 2015-07-10  Tom de Vries  <tom@codesourcery.com>
6376         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
6377         insert nit + 1 bound.
6379 2015-07-10  Richard Biener  <rguenther@suse.de>
6381         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
6382         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
6383         (if_convertible_loop_p_1): For this always compute bb predicates.
6384         (if_convertible_loop_p): And free them.
6386 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6388         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
6389         in dump message.
6391 2015-07-10  Richard Biener  <rguenther@suse.de>
6393         PR tree-optimization/66823
6394         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
6395         inverted predicate.
6397 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
6399         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
6400         to handle mips[32|64]r3 and mips[32|64]r5.
6402 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
6404         PR middle-end/66633
6405         * tree-nested.c (get_static_chain): Or in a flag into
6406         info->static_chain_added.
6407         (get_frame_field, get_nonlocal_debug_decl): Likewise.
6408         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
6409         2015-07-01 changes.
6410         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
6411         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
6412         add it to clauses.
6414         PR tree-optimization/66718
6415         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
6416         field.
6417         (vect_simd_lane_linear): New function.
6418         (vectorizable_simd_clone_call): Support using linear arguments for
6419         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
6421 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6423         PR target/66821
6424         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
6426 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6428         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
6429         Use machine mode, not enum machine_mode in the prototype.
6431         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
6432         classify 128-bit floating point support.
6433         (FLOAT128_IBM_P): Likewise.
6434         (FLOAT128_VECTOR_P): Likewise.
6435         (FLOAT128_2REG_P): Likewise.
6436         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
6437         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
6438         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6439         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
6441         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
6442         tests against TFmode/TDmode, since those modes do not use VSX
6443         addresses.
6444         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
6445         support.
6446         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
6447         tests against TFmode, etc.
6448         (invalid_e500_subreg): Add tests against IFmode/KFmode.
6449         (reg_offset_addressing_ok_p): Likewise.
6450         (rs6000_legitimate_offset_address_p): Likewise.
6451         (rs6000_legitimize_address): Likewise.
6452         (rs6000_legitimize_reload_address): Likewise.
6453         (rs6000_legitimate_address_p): Clean up tests against TFmode and
6454         TDmode to use the new helper macros, which will include IFmode and
6455         KFmode.
6456         (rs6000_emit_move): Likewise.
6457         (rs6000_darwin64_record_arg_recurse): Likewise.
6458         (print_operand): Likewise.
6459         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
6460         that uses a single vector register as a vector and not as a
6461         floating point register in terms of the calling sequence.
6462         (rs6000_discover_homogeneous_aggregate): Likewise.
6463         (rs6000_return_in_memory): Likewise.
6464         (init_cumulative_args): Likewise.
6465         (rs6000_function_arg_boundary): Likewise.
6466         (rs6000_function_arg_advance_1): Likewise.
6467         (rs6000_function_arg): Likewise.
6468         (rs6000_pass_by_reference): Likewise.
6469         (rs6000_gimplify_va_arg): Likewise.
6470         (rs6000_secondary_reload_memory): Use machine_mode not enum
6471         machine mode.
6472         (rs6000_split_multireg_move): Use new helper macros.
6473         (spe_func_has_64bit_regs_p): Likewise.
6474         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
6475         (output_toc): Use new helper macros.
6476         (rs6000_register_move_cost): Likewise.
6477         (rs6000_function_value): Add IEEE 128-bit floating point calling
6478         sequence support.
6479         (rs6000_libcall_value): Likewise.
6480         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
6481         floating point support.
6482         (rs6000_vector_mode_supported_p): Likewise.
6484 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
6486         PR rtl-optimization/66782
6487         * lra-int.h (struct lra_insn_recog_data): Add comment about
6488         clobbered hard regs for arg_hard_regs.
6489         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
6490         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
6491         Add condition for processing used hard regs.
6492         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
6493         Process clobbered hard regs.
6495 2015-07-09  Michael Matz  <matz@suse.de>
6497         * genmatch.c (fprintf_indent): New function.
6498         (operand::gen_transform): Add indent parameter.
6499         (expr::gen_transform, c_expr::gen_transform,
6500         capture::gen_transform): Ditto and use fprintf_indent.
6501         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
6502         (dt_operand::gen, dt_operand::gen_predicate,
6503         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
6504         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
6505         (decision_tree::gen_gimple): Adjust calls and indent generated
6506         code.
6507         (decision_tree::gen_generic): Ditto.
6508         (write_predicate): Ditto.
6510 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6512         PR target/66814
6513         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
6514         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
6515         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
6516         {GENERAL,SSE,MMX}_REG_P where appropriate.
6518 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6520         * lto-streamer.h: Don't include target.h and alloc-pool.h.
6521         * builtins.c: Adjust includes.
6522         * gimple.c: Likewise.
6523         * ipa-icf.c: Likewise.
6524         * lto-opts.c: Likewise.
6525         * ipa-reference.c: Likewise.
6526         * lto-section-out.c: Likewise.
6527         * lto-streamer-in.c: Likewise.
6528         * lto-streamer-out.c: Likewise.
6529         * opts-global.c: Likewise.
6530         * symtab.c: Likewise.
6531         * tree-chkp.c: Likewise.
6532         * tree-ssa-live.c: Likewise.
6533         * tree-streamer-in.c: Likewise.
6534         * tree-streamer-out.c: Likewise.
6535         * config/darwin.c: Likewise.
6536         * config/i386/winnt.c: Likewise.
6538 2015-07-09  Richard Biener  <rguenther@suse.de>
6540         * genmatch.c (struct expr): Add force_single_use flag.
6541         (expr::expr): Add copy constructor.
6542         (capture_info::walk_match): Gather force_single_use captures.
6543         (expr::gen_transform): Use possibly NULLified sequence.
6544         (dt_simplify::gen): Apply single-use restrictions by NULLifying
6545         seq if any constrained expr is not single-use.
6546         (parser::parse_expr): Refactor to allow multiple flags.  Handle
6547         's' flag to force an expression have a single-use if the pattern
6548         simplifies to more than one statement.
6549         * match.pd: Convert most single_use conditionals to :s flags.
6551 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6553         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
6554         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
6555         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6557 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
6559         * flags.h: Don't include flag-types.h or options.h.
6560         * opts-common.c: Adjust includes.
6561         * opts-global.c: Likewise.
6562         * common/config/epiphany/epiphany-common.c: Likewise.
6564 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6566         PR target/66818
6567         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
6568         for IA MCU.
6570 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
6572         PR target/66817
6573         * config/i386/i386.c (ix86_return_in_memory): Return true
6574         if int_size_in_bytes returns negative for IA MCU.
6576 2015-07-09  Marek Polacek  <polacek@redhat.com>
6578         PR tree-optimization/66718
6579         * Makefile.in (OBJS): Add gimple-laddress.o.
6580         * passes.def: Schedule pass_laddress.
6581         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
6582         * tree-pass.h (make_pass_laddress): Declare.
6583         * gimple-laddress.c: New file.
6585 2015-07-09  Richard Biener  <rguenther@suse.de>
6587         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
6589 2015-07-09  Richard Biener  <rguenther@suse.de>
6591         PR tree-optimization/66807
6592         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
6594 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
6596         * function.c (stack_protect_epilogue): Use if rather than switch for
6597         check targetm.have_stack_protect_test.
6599 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6601         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
6602         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
6603         * config/arc/arc.h: Likewise.
6604         * config/arm/arm.h: Likewise.
6605         * config/bfin/bfin.h: Likewise.
6606         * config/epiphany/epiphany.h: Likewise.
6607         * config/frv/frv.h: Likewise.
6608         * config/ia64/ia64.h: Likewise.
6609         * config/iq2000/iq2000.h: Likewise.
6610         * config/lm32/lm32.h: Likewise.
6611         * config/m32r/m32r.h: Likewise.
6612         * config/mcore/mcore.h: Likewise.
6613         * config/mep/mep.h: Likewise.
6614         * config/microblaze/microblaze.h: Likewise.
6615         * config/mips/mips.h: Likewise.
6616         * config/mmix/mmix.h: Likewise.
6617         * config/mn10300/mn10300.h: Likewise.
6618         * config/nds32/nds32.h: Likewise.
6619         * config/nios2/nios2.h: Likewise.
6620         * config/pa/pa.h: Likewise.
6621         * config/rl78/rl78.h: Likewise.
6622         * config/sh/sh.h: Likewise.
6623         * config/sparc/sparc.h: Likewise.
6624         * config/stormy16/stormy16.h: Likewise.
6625         * config/tilegx/tilegx.h: Likewise.
6626         * config/tilepro/tilepro.h: Likewise.
6627         * config/v850/v850.h: Likewise.
6628         * config/xtensa/xtensa.h: Likewise.
6629         * doc/tm.texi: Regenerate.
6630         * doc/tm.texi.in: Adjust.
6631         * combine.c (simplify_set): Likewise.
6632         (simplify_comparison): Likewise.
6633         * expr.c (store_constructor): Likewise.
6634         * internal-fn.c (expand_arith_overflow): Likewise.
6635         * reload.c (push_reload): Likewise.
6636         (find_reloads): Likewise.
6637         (find_reloads_subreg_address): Likewise.
6638         * reload1.c (eliminate_regs_1): Likewise.
6639         * rtlanal.c (nonzero_bits1): Likewise.
6640         (num_sign_bit_copies1): Likewise.
6641         * simplify-rtx.c (simplify_truncation): Likewise.
6643 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6645         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
6646         of AUTO_INC_DEC with the preprocessor.
6647         * combine.c (combine_instructions): Likewise.
6648         (can_combine_p): Likewise.
6649         (try_combine): Likewise.
6650         * emit-rtl.c (try_split): Likewise.
6651         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6652         * lower-subreg.c (resolve_simple_move): Likewise.
6653         * lra.c (update_inc_notes): Likewise.
6654         * recog.c (asm_operand_ok): Likewise.
6655         (constrain_operands): Likewise.
6656         * regrename.c (scan_rtx_address): Likewise.
6657         * reload.c (update_auto_inc_notes): Likewise.
6658         (reg_inc_found_and_valid_p): Likewise.
6659         * reload1.c (reload): Likewise.
6660         (emit_input_reload_insns): Likewise.
6661         (delete_output_reload): Likewise.
6662         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6663         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6665 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6667         * rtl.h: Always define AUTO_INC_DEC.
6668         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
6669         * combine.c (combine_instructions): Likewise.
6670         (can_combine_p): Likewise.
6671         (try_combine): Likewise.
6672         * emit-rtl.c (try_split): Likewise.
6673         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
6674         * lower-subreg.c (resolve_simple_move): Likewise.
6675         * lra.c (update_inc_notes): Likewise.
6676         * recog.c (asm_operand_ok): Likewise.
6677         (constrain_operands): Likewise.
6678         * regrename.c (scan_rtx_address): Likewise.
6679         * reload.c (update_auto_inc_notes): Likewise.
6680         (find_equiv_reg): Likewise.
6681         * reload1.c (reload): Likewise.
6682         (reload_as_needed): Likewise.
6683         (choose_reload_regs): Likewise.
6684         (emit_input_reload_insns): Likewise.
6685         (delete_output_reload): Likewise.
6686         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6687         * valtrack.c (cleanup_auto_inc_dec): Likewise.
6689 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6691         * combine.c (can_combine_def_p): Don't check the value of
6692         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
6693         (combinable_i3pat): Likewise.
6694         (mark_used_regs_combine): Likewise.
6695         * regrename.c (rename_chains): Likewise.
6696         * reload.c (find_reloads_address): Likewise.
6697         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6699 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6701         * combine.c (update_rsp_from_reg_equal): Don't check if
6702         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
6703         (reg_nonzero_bits_for_combine): Likewise.
6704         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
6705         1.
6706         * config/frv/frv.h: Likewise.
6707         * config/lm32/lm32.h: Likewise.
6708         * config/mep/mep.h: Likewise.
6709         * config/mips/mips.h: Likewise.
6710         * config/rs6000/rs6000.h: Likewise.
6711         * config/sh/sh.h: Likewise.
6712         * config/tilegx/tilegx.h (enum reg_class): Likewise.
6713         * config/tilepro/tilepro.h: Likewise.
6714         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
6715         * doc/tm.texi: Regenerate.
6716         * doc/tm.texi.in: Adjust.
6717         * rtlanal.c (nonzero_bits1): Likewise.
6719 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6721         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
6722         with the preprocessor.
6723         (combine_instructions): Likewise.
6724         (try_combine): Likewise.
6725         (subst): Likewise.
6726         (distribute_notes): Likewise.
6728 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6730         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
6731         defined.
6732         (simplify_set): Likewise.
6733         * cse.c (cse_insn): Likewise.
6734         * fold-const.c (fold_single_bit_test): Likewise.
6735         (fold_unary_loc): Likewise.
6736         * postreload.c (reload_cse_simplify_set): Likewise.
6737         (reload_cse_simplify_operands): Likewise.
6739 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
6741         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
6742         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
6744 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6746         PR target/66746
6747         * config/i386/x86intrin.h: Include <adxintrin.h> even if
6748         __iamcu__ is defined.
6750 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6752         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
6754 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
6756         PR target/66523
6757         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
6758         names from preservation.
6760 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6762         PR target/66806
6763         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
6764         change for IAMCU.
6765         (function_arg_advance_32): Don't pass vectors in registers for
6766         IAMCU.
6767         (function_arg_32): Likewise.
6768         (ix86_return_in_memory): Don't return vectors in registers for
6769         IAMCU.
6771 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
6773         PR middle-end/66334
6774         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
6775         hard regno live at the start of BB with incoming abnormal edges.
6776         * lra-lives.c (process_bb_lives): Ditto.
6778 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
6780         PR libgomp/65099
6781         * config/nvptx/mkoffload.c (main): Create an offload image only in
6782         64-bit configurations.
6784 2015-07-08  Martin Liska  <mliska@suse.cz>
6786         PR bootstrap/66744
6787         * tree-sra.c (create_access_1): Call ctor without brackets.
6788         (create_artificial_child_access): Likewise.
6790 2015-07-08  Richard Biener  <rguenther@suse.de>
6792         PR tree-optimization/66793
6793         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
6794         Properly split the block after stmts ending it.
6796 2015-07-08  Richard Biener  <rguenther@suse.de>
6798         PR tree-optimization/66794
6799         * passes.c (execute_function_todo): Assert that post-dominators
6800         are not computed.
6801         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
6802         Free post-dominators.
6804 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6806         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
6807         with early exit.
6809 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
6811         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
6812         more than or equal 8 and less than 32 when optimizing for size.
6814 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6816         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
6817         COSTS_N_INSNS (1) and increment it appropriately throughout the
6818         function.
6820 2015-07-08  Richard Biener  <rguenther@suse.de>
6822         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
6824 2015-07-08  Alan Modra  <amodra@gmail.com>
6826         * target.def (rtx_costs): Remove "code" param, add "mode".
6827         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
6828         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
6829         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
6830         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
6831         call.  Track mode when given in rtx.
6832         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
6833         (default_address_cost): Pass Pmode to rtx_cost.
6834         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
6835         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
6836         with NULL set.
6837         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
6838         (notreg_cost): Add mode param.  Use it.
6839         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
6840         mode param and pass to set_src_cost.  Update all calls.
6841         (hash_scan_set): Formatting.
6842         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
6843         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
6844         * hooks.h: Ditto.
6845         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
6846         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
6847         emit_store_flag): Update set_src_cost and rtx_cost calls.
6848         * auto-inc-dec.c (attempt_change): Likewise.
6849         * calls.c (precompute_register_parameters): Likewise.
6850         * combine.c (expand_compound_operation, make_extraction,
6851         force_to_mode, distribute_and_simplify_rtx): Likewise.
6852         * dojump.c (prefer_and_bit_test): Likewise.
6853         * dse.c (find_shift_sequence): Likewise.
6854         * expr.c (compress_float_constant): Likewise.
6855         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6856         * ifcvt.c (noce_try_sign_mask): Likewise.
6857         * loop-doloop.c (doloop_optimize): Likewise.
6858         * loop-invariant.c (create_new_invariant): Likewise.
6859         * lower-subreg.c (shift_cost, compute_costs): Likewise.
6860         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
6861         lshift_cheap_p): Likewise.
6862         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
6863         try_replace_in_use, reload_cse_move2add): Likewise.
6864         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
6865         Likewise.
6866         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6867         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6868         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
6869         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6870         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
6871         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
6872         to rtx_cost calls.
6873         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
6874         * config/arc/arc.c (arc_rtx_costs): Likewise.
6875         * config/arm/arm.c (arm_rtx_costs): Likewise.
6876         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
6877         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6878         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6879         * config/cris/cris.c (cris_rtx_costs): Likewise.
6880         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
6881         * config/frv/frv.c (frv_rtx_costs): Likewise.
6882         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6883         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6884         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6885         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6886         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6887         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6888         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6889         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6890         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6891         * config/mep/mep.c (mep_rtx_cost): Likewise.
6892         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6893         * config/mips/mips.c (mips_rtx_costs): Likewise.
6894         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6895         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
6896         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
6897         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
6898         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
6899         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
6900         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
6901         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6902         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6903         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
6904         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6905         * config/s390/s390.c (s390_rtx_costs): Likewise.
6906         * config/sh/sh.c (sh_rtx_costs): Likewise.
6907         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6908         * config/spu/spu.c (spu_rtx_costs): Likewise.
6909         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6910         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
6911         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
6912         * config/v850/v850.c (v850_rtx_costs): Likewise.
6913         * config/vax/vax.c (vax_rtx_costs): Likewise.
6914         * config/visium/visium.c (visium_rtx_costs): Likewise.
6915         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6916         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
6917         "code" param, and pass as outer_code to first rtx_cost call.  Pass
6918         mode to rtx_cost calls.
6919         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
6920         calls.
6921         (aarch64_rtx_costs_wrapper): Update.
6922         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
6923         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
6924         rtx_cost calls.
6925         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
6926         and rtx_cost calls.
6927         (avr_operand_rtx_cost): Similarly.
6928         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
6929         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
6930         * config/mips/mips.c (mips_stack_address_p): Comment typo.
6931         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
6932         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
6933         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
6934         rtx_cost.
6935         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
6936         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
6937         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
6938         * doc/tm.texi: Regenerate.
6940 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
6942         * tree-core.h: Include symtab.h.
6943         * rtl.h: Include hard-reg-set.h but not flags.h.
6944         (HARD_CONST): Remove condition compilation involving HARD_CONST since
6945         hard-reg-set.h is always included.
6946         * regs.h: Don't include hard-reg-set.h or rtl.h.
6947         * cfg.h: Include dominance.h.
6948         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
6949         * backend.h: New.  Aggregate commonly used backend header files.
6950         * gimple-ssa.h: Don't include tree-hasher.h.
6951         * ssa.h: New.  Aggregate commonly used SSA header files.
6952         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
6953         * sel-sched-ir.h: Flatten includes.
6954         * lra-int.h: Flatten completely.
6955         * sel-sched-dump.h: Flatten includes.
6956         * ira-int.h: Flatten includes.
6957         * gimple-streamer.h: Remove all includes.
6958         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
6959         * resource.h: Flatten hard-reg-set.h and df.h.
6960         * sched-int.h: Flatten insn-arrt.h and df.h.
6961         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
6962         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
6963         * genattrtab.c (write_header): Adjust generated includes.
6964         * genautomata.c (main): Likewise.
6965         * genconditions.c (write-header): Likewise.
6966         * genemit.c (main): Likewise.
6967         * gengtype.c (open_base_files): Likewise.
6968         * genopinit.c (main): Likewise.
6969         * genoutput.c (output_prologue): Likewise.
6970         * genpeep.c (main): Likewise.
6971         * genpreds.c (write_insn_preds_c): Likewise.
6972         * genrecog.c (write_header): Likewise.
6973         * alias.c: Adjust includes.
6974         * asan.c: Likewise.
6975         * attribs.c: Likewise.
6976         * auto-inc-dec.c: Likewise.
6977         * auto-profile.c: Likewise.
6978         * bb-reorder.c: Likewise.
6979         * bt-load.c: Likewise.
6980         * builtins.c: Likewise.
6981         * caller-save.c: Likewise.
6982         * calls.c: Likewise.
6983         * ccmp.c: Likewise.
6984         * cfg.c: Likewise.
6985         * cfganal.c: Likewise.
6986         * cfgbuild.c: Likewise.
6987         * cfgcleanup.c: Likewise.
6988         * cfgexpand.c: Likewise.
6989         * cfghooks.c: Likewise.
6990         * cfgloop.c: Likewise.
6991         * cfgloopanal.c: Likewise.
6992         * cfgloopmanip.c: Likewise.
6993         * cfgrtl.c: Likewise.
6994         * cgraph.c: Likewise.
6995         * cgraphbuild.c: Likewise.
6996         * cgraphclones.c: Likewise.
6997         * cgraphunit.c: Likewise.
6998         * cilk-common.c: Likewise.
6999         * combine-stack-adj.c: Likewise.
7000         * combine.c: Likewise.
7001         * compare-elim.c: Likewise.
7002         * convert.c: Likewise.
7003         * coverage.c: Likewise.
7004         * cppbuiltin.c: Likewise.
7005         * cprop.c: Likewise.
7006         * cse.c: Likewise.
7007         * cselib.c: Likewise.
7008         * data-streamer-in.c: Likewise.
7009         * data-streamer-out.c: Likewise.
7010         * data-streamer.c: Likewise.
7011         * dbxout.c: Likewise.
7012         * dce.c: Likewise.
7013         * ddg.c: Likewise.
7014         * debug.c: Likewise.
7015         * df-core.c: Likewise.
7016         * df-problems.c: Likewise.
7017         * df-scan.c: Likewise.
7018         * dfp.c: Likewise.
7019         * dojump.c: Likewise.
7020         * dominance.c: Likewise.
7021         * domwalk.c: Likewise.
7022         * double-int.c: Likewise.
7023         * dse.c: Likewise.
7024         * dumpfile.c: Likewise.
7025         * dwarf2asm.c: Likewise.
7026         * dwarf2cfi.c: Likewise.
7027         * dwarf2out.c: Likewise.
7028         * emit-rtl.c: Likewise.
7029         * et-forest.c: Likewise.
7030         * except.c: Likewise.
7031         * explow.c: Likewise.
7032         * expmed.c: Likewise.
7033         * expr.c: Likewise.
7034         * final.c: Likewise.
7035         * fixed-value.c: Likewise.
7036         * fold-const.c: Likewise.
7037         * function.c: Likewise.
7038         * fwprop.c: Likewise.
7039         * gcc-plugin.h: Likewise.
7040         * gcse-common.c: Likewise.
7041         * gcse.c: Likewise.
7042         * generic-match-head.c: Likewise.
7043         * ggc-page.c: Likewise.
7044         * gimple-builder.c: Likewise.
7045         * gimple-expr.c: Likewise.
7046         * gimple-fold.c: Likewise.
7047         * gimple-iterator.c: Likewise.
7048         * gimple-low.c: Likewise.
7049         * gimple-match-head.c: Likewise.
7050         * gimple-pretty-print.c: Likewise.
7051         * gimple-ssa-isolate-paths.c: Likewise.
7052         * gimple-ssa-strength-reduction.c: Likewise.
7053         * gimple-streamer-in.c: Likewise.
7054         * gimple-streamer-out.c: Likewise.
7055         * gimple-walk.c: Likewise.
7056         * gimple.c: Likewise.
7057         * gimplify-me.c: Likewise.
7058         * gimplify.c: Likewise.
7059         * godump.c: Likewise.
7060         * graph.c: Likewise.
7061         * graphite-blocking.c: Likewise.
7062         * graphite-dependences.c: Likewise.
7063         * graphite-interchange.c: Likewise.
7064         * graphite-isl-ast-to-gimple.c: Likewise.
7065         * graphite-optimize-isl.c: Likewise.
7066         * graphite-poly.c: Likewise.
7067         * graphite-scop-detection.c: Likewise.
7068         * graphite-sese-to-poly.c: Likewise.
7069         * graphite.c: Likewise.
7070         * haifa-sched.c: Likewise.
7071         * hw-doloop.c: Likewise.
7072         * ifcvt.c: Likewise.
7073         * init-regs.c: Likewise.
7074         * internal-fn.c: Likewise.
7075         * ipa-chkp.c: Likewise.
7076         * ipa-comdats.c: Likewise.
7077         * ipa-cp.c: Likewise.
7078         * ipa-devirt.c: Likewise.
7079         * ipa-icf-gimple.c: Likewise.
7080         * ipa-icf.c: Likewise.
7081         * ipa-inline-analysis.c: Likewise.
7082         * ipa-inline-transform.c: Likewise.
7083         * ipa-inline.c: Likewise.
7084         * ipa-polymorphic-call.c: Likewise.
7085         * ipa-profile.c: Likewise.
7086         * ipa-prop.c: Likewise.
7087         * ipa-pure-const.c: Likewise.
7088         * ipa-ref.c: Likewise.
7089         * ipa-reference.c: Likewise.
7090         * ipa-split.c: Likewise.
7091         * ipa-utils.c: Likewise.
7092         * ipa-visibility.c: Likewise.
7093         * ipa.c: Likewise.
7094         * ira-build.c: Likewise.
7095         * ira-color.c: Likewise.
7096         * ira-conflicts.c: Likewise.
7097         * ira-costs.c: Likewise.
7098         * ira-emit.c: Likewise.
7099         * ira-lives.c: Likewise.
7100         * ira.c: Likewise.
7101         * jump.c: Likewise.
7102         * langhooks.c: Likewise.
7103         * lcm.c: Likewise.
7104         * loop-doloop.c: Likewise.
7105         * loop-init.c: Likewise.
7106         * loop-invariant.c: Likewise.
7107         * loop-iv.c: Likewise.
7108         * loop-unroll.c: Likewise.
7109         * lower-subreg.c: Likewise.
7110         * lra-assigns.c: Likewise.
7111         * lra-coalesce.c: Likewise.
7112         * lra-constraints.c: Likewise.
7113         * lra-eliminations.c: Likewise.
7114         * lra-lives.c: Likewise.
7115         * lra-remat.c: Likewise.
7116         * lra-spills.c: Likewise.
7117         * lra.c: Likewise.
7118         * lto-cgraph.c: Likewise.
7119         * lto-compress.c: Likewise.
7120         * lto-opts.c: Likewise.
7121         * lto-section-in.c: Likewise.
7122         * lto-section-out.c: Likewise.
7123         * lto-streamer-in.c: Likewise.
7124         * lto-streamer-out.c: Likewise.
7125         * lto-streamer.c: Likewise.
7126         * mcf.c: Likewise.
7127         * mode-switching.c: Likewise.
7128         * modulo-sched.c: Likewise.
7129         * omega.c: Likewise.
7130         * omp-low.c: Likewise.
7131         * optabs.c: Likewise.
7132         * opts-global.c: Likewise.
7133         * passes.c: Likewise.
7134         * plugin.c: Likewise.
7135         * postreload-gcse.c: Likewise.
7136         * postreload.c: Likewise.
7137         * predict.c: Likewise.
7138         * print-rtl.c: Likewise.
7139         * print-tree.c: Likewise.
7140         * profile.c: Likewise.
7141         * real.c: Likewise.
7142         * realmpfr.c: Likewise.
7143         * recog.c: Likewise.
7144         * ree.c: Likewise.
7145         * reg-stack.c: Likewise.
7146         * regcprop.c: Likewise.
7147         * reginfo.c: Likewise.
7148         * regrename.c: Likewise.
7149         * regstat.c: Likewise.
7150         * reload.c: Likewise.
7151         * reload1.c: Likewise.
7152         * reorg.c: Likewise.
7153         * resource.c: Likewise.
7154         * rtl-chkp.c: Likewise.
7155         * rtlanal.c: Likewise.
7156         * rtlhooks.c: Likewise.
7157         * sanopt.c: Likewise.
7158         * sched-deps.c: Likewise.
7159         * sched-ebb.c: Likewise.
7160         * sched-rgn.c: Likewise.
7161         * sched-vis.c: Likewise.
7162         * sdbout.c: Likewise.
7163         * sel-sched-dump.c: Likewise.
7164         * sel-sched-ir.c: Likewise.
7165         * sel-sched.c: Likewise.
7166         * sese.c: Likewise.
7167         * shrink-wrap.c: Likewise.
7168         * simplify-rtx.c: Likewise.
7169         * stack-ptr-mod.c: Likewise.
7170         * stmt.c: Likewise.
7171         * stor-layout.c: Likewise.
7172         * store-motion.c: Likewise.
7173         * stringpool.c: Likewise.
7174         * symtab.c: Likewise.
7175         * target-globals.c: Likewise.
7176         * targhooks.c: Likewise.
7177         * toplev.c: Likewise.
7178         * tracer.c: Likewise.
7179         * trans-mem.c: Likewise.
7180         * tree-affine.c: Likewise.
7181         * tree-browser.c: Likewise.
7182         * tree-call-cdce.c: Likewise.
7183         * tree-cfg.c: Likewise.
7184         * tree-cfgcleanup.c: Likewise.
7185         * tree-chkp-opt.c: Likewise.
7186         * tree-chkp.c: Likewise.
7187         * tree-chrec.c: Likewise.
7188         * tree-complex.c: Likewise.
7189         * tree-data-ref.c: Likewise.
7190         * tree-dfa.c: Likewise.
7191         * tree-diagnostic.c: Likewise.
7192         * tree-dump.c: Likewise.
7193         * tree-eh.c: Likewise.
7194         * tree-emutls.c: Likewise.
7195         * tree-if-conv.c: Likewise.
7196         * tree-inline.c: Likewise.
7197         * tree-into-ssa.c: Likewise.
7198         * tree-iterator.c: Likewise.
7199         * tree-loop-distribution.c: Likewise.
7200         * tree-nested.c: Likewise.
7201         * tree-nrv.c: Likewise.
7202         * tree-object-size.c: Likewise.
7203         * tree-outof-ssa.c: Likewise.
7204         * tree-parloops.c: Likewise.
7205         * tree-phinodes.c: Likewise.
7206         * tree-predcom.c: Likewise.
7207         * tree-pretty-print.c: Likewise.
7208         * tree-profile.c: Likewise.
7209         * tree-scalar-evolution.c: Likewise.
7210         * tree-sra.c: Likewise.
7211         * tree-ssa-address.c: Likewise.
7212         * tree-ssa-alias.c: Likewise.
7213         * tree-ssa-ccp.c: Likewise.
7214         * tree-ssa-coalesce.c: Likewise.
7215         * tree-ssa-copy.c: Likewise.
7216         * tree-ssa-copyrename.c: Likewise.
7217         * tree-ssa-dce.c: Likewise.
7218         * tree-ssa-dom.c: Likewise.
7219         * tree-ssa-dse.c: Likewise.
7220         * tree-ssa-forwprop.c: Likewise.
7221         * tree-ssa-ifcombine.c: Likewise.
7222         * tree-ssa-live.c: Likewise.
7223         * tree-ssa-loop-ch.c: Likewise.
7224         * tree-ssa-loop-im.c: Likewise.
7225         * tree-ssa-loop-ivcanon.c: Likewise.
7226         * tree-ssa-loop-ivopts.c: Likewise.
7227         * tree-ssa-loop-manip.c: Likewise.
7228         * tree-ssa-loop-niter.c: Likewise.
7229         * tree-ssa-loop-prefetch.c: Likewise.
7230         * tree-ssa-loop-unswitch.c: Likewise.
7231         * tree-ssa-loop.c: Likewise.
7232         * tree-ssa-math-opts.c: Likewise.
7233         * tree-ssa-operands.c: Likewise.
7234         * tree-ssa-phiopt.c: Likewise.
7235         * tree-ssa-phiprop.c: Likewise.
7236         * tree-ssa-pre.c: Likewise.
7237         * tree-ssa-propagate.c: Likewise.
7238         * tree-ssa-reassoc.c: Likewise.
7239         * tree-ssa-sccvn.c: Likewise.
7240         * tree-ssa-scopedtables.c: Likewise.
7241         * tree-ssa-sink.c: Likewise.
7242         * tree-ssa-strlen.c: Likewise.
7243         * tree-ssa-structalias.c: Likewise.
7244         * tree-ssa-tail-merge.c: Likewise.
7245         * tree-ssa-ter.c: Likewise.
7246         * tree-ssa-threadedge.c: Likewise.
7247         * tree-ssa-threadupdate.c: Likewise.
7248         * tree-ssa-uncprop.c: Likewise.
7249         * tree-ssa-uninit.c: Likewise.
7250         * tree-ssa.c: Likewise.
7251         * tree-ssanames.c: Likewise.
7252         * tree-stdarg.c: Likewise.
7253         * tree-streamer-in.c: Likewise.
7254         * tree-streamer-out.c: Likewise.
7255         * tree-streamer.c: Likewise.
7256         * tree-switch-conversion.c: Likewise.
7257         * tree-tailcall.c: Likewise.
7258         * tree-vect-data-refs.c: Likewise.
7259         * tree-vect-generic.c: Likewise.
7260         * tree-vect-loop-manip.c: Likewise.
7261         * tree-vect-loop.c: Likewise.
7262         * tree-vect-patterns.c: Likewise.
7263         * tree-vect-slp.c: Likewise.
7264         * tree-vect-stmts.c: Likewise.
7265         * tree-vectorizer.c: Likewise.
7266         * tree-vrp.c: Likewise.
7267         * tree.c: Likewise.
7268         * tsan.c: Likewise.
7269         * ubsan.c: Likewise.
7270         * valtrack.c: Likewise.
7271         * value-prof.c: Likewise.
7272         * var-tracking.c: Likewise.
7273         * varasm.c: Likewise.
7274         * varpool.c: Likewise.
7275         * vmsdbgout.c: Likewise.
7276         * vtable-verify.c: Likewise.
7277         * web.c: Likewise.
7278         * wide-int.cc: Likewise.
7279         * xcoffout.c: Likewise.
7280         * config/aarch64/aarch64-builtins.c: Likewise.
7281         * config/aarch64/aarch64.c: Likewise.
7282         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7283         * config/alpha/alpha.c: Likewise.
7284         * config/arc/arc.c: Likewise.
7285         * config/arm/aarch-common.c: Likewise.
7286         * config/arm/arm-builtins.c: Likewise.
7287         * config/arm/arm-c.c: Likewise.
7288         * config/arm/arm.c: Likewise.
7289         * config/avr/avr-c.c: Likewise.
7290         * config/avr/avr-log.c: Likewise.
7291         * config/avr/avr.c: Likewise.
7292         * config/bfin/bfin.c: Likewise.
7293         * config/c6x/c6x.c: Likewise.
7294         * config/cr16/cr16.c: Likewise.
7295         * config/cris/cris.c: Likewise.
7296         * config/darwin-c.c: Likewise.
7297         * config/darwin.c: Likewise.
7298         * config/epiphany/epiphany.c: Likewise.
7299         * config/epiphany/mode-switch-use.c: Likewise.
7300         * config/epiphany/resolve-sw-modes.c: Likewise.
7301         * config/fr30/fr30.c: Likewise.
7302         * config/frv/frv.c: Likewise.
7303         * config/ft32/ft32.c: Likewise.
7304         * config/h8300/h8300.c: Likewise.
7305         * config/i386/i386-c.c: Likewise.
7306         * config/i386/i386.c: Likewise.
7307         * config/i386/msformat-c.c: Likewise.
7308         * config/i386/winnt-cxx.c: Likewise.
7309         * config/i386/winnt-stubs.c: Likewise.
7310         * config/i386/winnt.c: Likewise.
7311         * config/ia64/ia64-c.c: Likewise.
7312         * config/ia64/ia64.c: Likewise.
7313         * config/iq2000/iq2000.c: Likewise.
7314         * config/lm32/lm32.c: Likewise.
7315         * config/m32c/m32c-pragma.c: Likewise.
7316         * config/m32c/m32c.c: Likewise.
7317         * config/m32r/m32r.c: Likewise.
7318         * config/m68k/m68k.c: Likewise.
7319         * config/mcore/mcore.c: Likewise.
7320         * config/mep/mep-pragma.c: Likewise.
7321         * config/mep/mep.c: Likewise.
7322         * config/microblaze/microblaze-c.c: Likewise.
7323         * config/microblaze/microblaze.c: Likewise.
7324         * config/mips/mips.c: Likewise.
7325         * config/mmix/mmix.c: Likewise.
7326         * config/mn10300/mn10300.c: Likewise.
7327         * config/moxie/moxie.c: Likewise.
7328         * config/msp430/msp430-c.c: Likewise.
7329         * config/msp430/msp430.c: Likewise.
7330         * config/nds32/nds32-cost.c: Likewise.
7331         * config/nds32/nds32-fp-as-gp.c: Likewise.
7332         * config/nds32/nds32-intrinsic.c: Likewise.
7333         * config/nds32/nds32-isr.c: Likewise.
7334         * config/nds32/nds32-md-auxiliary.c: Likewise.
7335         * config/nds32/nds32-memory-manipulation.c: Likewise.
7336         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7337         * config/nds32/nds32-predicates.c: Likewise.
7338         * config/nds32/nds32.c: Likewise.
7339         * config/nios2/nios2.c: Likewise.
7340         * config/nvptx/nvptx.c: Likewise.
7341         * config/pa/pa.c: Likewise.
7342         * config/pdp11/pdp11.c: Likewise.
7343         * config/rl78/rl78-c.c: Likewise.
7344         * config/rl78/rl78.c: Likewise.
7345         * config/rs6000/rs6000-c.c: Likewise.
7346         * config/rs6000/rs6000.c: Likewise.
7347         * config/rx/rx.c: Likewise.
7348         * config/s390/s390-c.c: Likewise.
7349         * config/s390/s390.c: Likewise.
7350         * config/sh/sh-c.c: Likewise.
7351         * config/sh/sh-mem.cc: Likewise.
7352         * config/sh/sh.c: Likewise.
7353         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7354         * config/sh/sh_treg_combine.cc: Likewise.
7355         * config/sol2-c.c: Likewise.
7356         * config/sol2-cxx.c: Likewise.
7357         * config/sol2-stubs.c: Likewise.
7358         * config/sol2.c: Likewise.
7359         * config/sparc/sparc-c.c: Likewise.
7360         * config/sparc/sparc.c: Likewise.
7361         * config/spu/spu-c.c: Likewise.
7362         * config/spu/spu.c: Likewise.
7363         * config/stormy16/stormy16.c: Likewise.
7364         * config/tilegx/mul-tables.c: Likewise.
7365         * config/tilegx/tilegx-c.c: Likewise.
7366         * config/tilegx/tilegx.c: Likewise.
7367         * config/tilepro/mul-tables.c: Likewise.
7368         * config/tilepro/tilepro-c.c: Likewise.
7369         * config/tilepro/tilepro.c: Likewise.
7370         * config/v850/v850-c.c: Likewise.
7371         * config/v850/v850.c: Likewise.
7372         * config/vax/vax.c: Likewise.
7373         * config/visium/visium.c: Likewise.
7374         * config/vms/vms-c.c: Likewise.
7375         * config/vms/vms.c: Likewise.
7376         * config/vxworks.c: Likewise.
7377         * config/xtensa/xtensa.c: Likewise.
7379 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
7381         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
7382         Remove operand constraints.  Change operand 2 predicate to
7383         nonmemory operand.  Limit const_int values to mode bitsize.  Only
7384         allow const_int values less than 32 when optimizing for size.
7385         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
7386         Remove operand constraints.
7387         (*bt<mode>): Use SImode for const_int values less than 32.
7388         (regmode): Remove mode attribute.
7390 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
7392         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7393         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
7394           moxie_legitimate_address_p): New functions.
7395           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7397 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7399         PR tree-optimization/66642
7400         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
7401         header comment.  Rename split_edge variable to edge_at_split.  Split
7402         exit edge to create new loop exit bb.  Insert loop exit phis in new
7403         loop exit bb.
7405 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7407         * tree-cfg.c (get_virtual_phi): New function.
7408         * tree-cfg.h (get_virtual_phi): Declare.
7409         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
7410         (rewrite_virtuals_into_loop_closed_ssa): New function.
7411         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
7412         Declare.
7413         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
7414         (transform_to_exit_first_loop_alt): Use
7415         rewrite_virtuals_into_loop_closed_ssa.
7417 2015-07-07  Richard Biener  <rguenther@suse.de>
7419         * fold-const.c (fold_binary_loc): Move
7420         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
7421         * match.pd: ... here.
7422         Add (X * C1) % C2 -> 0 simplification pattern derived from
7423         extract_muldiv_1.
7425 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7427         PR target/66780
7428         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
7429         change for target/65249.
7431 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
7433         * symtab.c (address_matters_1): Fix typo in comment above.
7434         (can_increase_alignment_p): Likewise.
7436 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7438         * function.c (free_after_compilation): Clear PROP_cfg in
7439         f->curr_properties.
7441 2015-07-07  Richard Biener  <rguenther@suse.de>
7443         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
7444         add which use to.
7445         (add_control_edge): Remove excessive vertical space in dumping.
7446         (process_ssa_edge_worklist): Simulate at most one statement and
7447         return whether we did.  Do not simulate PHIs if they are in a
7448         BB not yet simulated.
7449         (ssa_propagate): Adjust to always drain the BB worklist whenever
7450         a BB is available there, likewise the VARYING edges list before
7451         the interesting edge list.
7453 2015-07-07  Christian Bruel  <christian.bruel@st.com>
7455         PR target/52144
7456         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
7458 2015-07-07  Richard Biener  <rguenther@suse.de>
7460         PR middle-end/66739
7461         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
7462         A - B.
7464 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7466         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
7467         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
7468         Copy operand 0 to a temporary if !ext_register_operand.  Remove
7469         ancient extract_bit_field workaround.
7470         (insv<mode>_1): Rename from mov<mode>_insv_1.
7471         (*insvqi): Rename from *movqi_insv_2.
7472         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
7473         for renamed insvsi_1.
7474         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
7476 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
7478         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
7479         call to nvptx_reorg_subreg.
7481 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
7483         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
7484         * graphite-dependencies.c, graphite-interchange.c,
7485         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
7486         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
7487         Likewise.
7489 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
7491         * match.pd: Remove element_mode inside HONOR_*.
7492         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
7493         (~X | X -> -1, ~X ^ X -> -1): Merge.
7494         * tree.c (build_each_one_cst): New function.
7495         * tree.h (build_each_one_cst): Likewise.
7497 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7499         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7500         PROCESSOR_IAMCU.
7502 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
7504         * config.gcc <mips*-*-*>: Add fused-madd.opt.
7505         * config/mips/mips.opt (mfused-madd): Remove.
7506         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
7507         * config/mips/mips.h (TARGET_MIPS8000): New.
7508         (ISA_HAS_FP_MADD4_MSUB4): Remove.
7509         (ISA_HAS_FP_MADDF_MSUBF): Remove.
7510         (ISA_HAS_FP_MADD3_MSUB3): Remove.
7511         (ISA_HAS_NMADD4_NMSUB4): Remove.
7512         (ISA_HAS_NMADD3_NMSUB3): Remove.
7513         (ISA_HAS_FUSED_MADD4): New.
7514         (ISA_HAS_UNFUSED_MADD4): New.
7515         (ISA_HAS_FUSED_MADDF): New.
7516         (ISA_HAS_FUSED_MADD3): New.
7517         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
7518         (*fma<mode>4_madd3) New.
7519         (*fma<mode>4_madd4) New.
7520         (*fma<mode>4_maddf) New.
7521         (fms<mode>4) New.
7522         (*fms<mode>4_msub3) New.
7523         (*fms<mode>4_msub4) New.
7524         (fnma<mode>4) New.
7525         (*fnma<mode>4_nmadd3) New.
7526         (*fnma<mode>4_nmadd4) New.
7527         (fnms<mode>4) New.
7528         (*fnms<mode>4_nmsub3) New.
7529         (*fnms<mode>4_nmsub4) New.
7530         (*madd4<mode>) Modify to be unfused only.
7531         (*msub4<mode>) Modify to be unfused only.
7532         (*nmadd4<mode>) Modify to be unfused only.
7533         (*nmsub4<mode>) Modify to be unfused only.
7534         (*madd3<mode>) Remove.
7535         (*msub3<mode>) Remove.
7536         (*nmadd3<mode>) Remove.
7537         (*nmsub3<mode>) Remove.
7538         (*nmadd3<mode>_fastmath) Remove.
7539         (*nmsub3<mode>_fastmath) Remove.
7540         (*nmadd4<mode>_fastmath) Update condition.
7541         (*nmsub4<mode>_fastmath) Update condition.
7543 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7545         PR target/65956
7546         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
7547         alignment attribute, exploring one level down for records and arrays.
7549 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
7551         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
7552         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
7553         Copy operand 1 to a temporary if !ext_register_operand.  Remove
7554         ancient extract_bit_field workaround.
7555         (*extv<mode>): Rename from *mov<mode>_extv_1.
7556         (*extvqi): Rename from *movqi_extv_1.
7557         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
7558         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
7559         to a temporary if !ext_register_operand.  Remove ancient
7560         extract_bit_field workaround.
7561         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
7562         (*extzvqi): Rename from *movqi_extzv_2.
7563         (*testqi_ext_3): Remove modes from const_int_operand predicated
7564         operands.  Add "n" constraint.
7565         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
7566         operand.  Add "J" constraint.
7567         (*btsq, *btrq, *btcq peephole2s): Remove mode from
7568         const_0_to_63 predicated operand.
7569         (regmode): New insn attribute.
7570         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
7571         to nonmemory_operand.  Use regmode insn attribute.
7572         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
7573         (*jcc_bt<mode>_mask): Remove mode from operand 3.
7574         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
7575         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
7576         operands.  Use "N" constraint instead of "n".
7578 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
7580         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
7582 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7584         PR target/66749
7585         * config/i386/i386.c (iamcu_cost): New.
7586         (m_IAMCU): Likewise.
7587         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
7588         (processor_target_table): Add an entry for "iamcu".
7589         (processor_alias_table): Likewise.
7590         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
7591         (ix86_adjust_cost): Likewise.
7592         (ia32_multipass_dfa_lookahead): Likewise.
7593         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
7594         * config/i386/x86-tune.def: Updated for m_IAMCU.
7596 2015-07-06  Richard Biener  <rguenther@suse.de>
7598         PR tree-optimization/66772
7599         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
7600         values are available in the PHI node BB when there are
7601         still unexecutable edges.
7603 2015-07-06  Richard Biener  <rguenther@suse.de>
7605         PR tree-optimization/66767
7606         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7607         Make sure to build the alignment test on a SSA name without
7608         final alignment info valid only if the alignment test
7609         evaluates to true.
7611 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7613         PR target/66620
7614         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
7615         loop start when inserting LSETUP.
7617 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7619         PR target/53383
7620         * config/i386/i386.c (ix86_option_override_internal): Allow
7621         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
7623 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7625         * read-md.c (decimal_string): Rename to ...
7626         (md_decimal_string): ... this.
7627         (handle_enum): Reflect this.
7629 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7631         PR target/66731
7632         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
7634 2015-07-06  Richard Biener  <rguenther@suse.de>
7636         PR middle-end/66759
7637         * match.pd: Add missing constraint of y to REAL_CST in
7638         REAL_CST - x CMP y to y - CST CMP x simplification.
7640 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
7642         PR tree-optimization/66757
7643         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
7645 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
7646             Sandra Loosemore <sandra@codesourcery.com>
7648         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
7649         Delete extern declaration.
7650         (gprel_constant_p): Add extern declaration.
7651         * config/nios2/constraints.md ("S"): Use gprel_constant_p
7652         instead of nios2_symbol_ref_in_small_data_p.
7653         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
7654         (nios2_symbol_ref_in_small_data_p): Make static.
7655         (gprel_constant_p): Make non-static.
7657 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
7659         * doc/fragments.texi (Target Fragment): Convert debian.org
7660         link to use https.
7661         * doc/install.texi (Configuration): Ditto.
7663 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
7665         PR tree-optimization/66718
7666         * tree-vect-stmts.c (vectorizable_call): Replace uses of
7667         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7669         PR tree-optimization/66718
7670         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
7671         vectorizable_load, vectorizable_condition): Move vectype,
7672         nunits, ncopies computation after checking what kind of statement
7673         stmt is.
7675 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7677         * target-insns.def (extv, extzv, insv): New targetm instruction
7678         patterns.
7679         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
7680         interface.
7681         * recog.c (simplify_while_replacing): Likewise.
7683 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7685         * target-insns.def (doloop_begin, doloop_end): New targetm
7686         instruction patterns.
7687         * loop-init.c: Include target.h.
7688         (pass_loop2::gate): Use the new targetm patterns instead of
7689         HAVE_*/gen_* interface.
7690         (pass_rtl_doloop::gate): Likewise.
7691         (pass_rtl_doloop::execute): Remove preprocessor condition.
7692         * hw-doloop.c: Build unconditionally.
7693         * loop-doloop.c: Likewise.
7694         (doloop_optimize): Use the new targetm patterns instead of
7695         HAVE_*/gen_* interface.
7696         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
7697         * modulo-sched.c (doloop_register_get): Likewise.
7699 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7701         * target-insns.def (clear_cache): New targetm instruction pattern.
7702         * builtins.c (expand_builtin___clear_cache): Use it instead of
7703         HAVE_*/gen_* interface.
7705 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7707         * target-insns.def (allocate_stack, check_stack, probe_stack)
7708         (probe_stack_address, split_stack_prologue, split_stack_space_check):
7709         New targetm instruction patterns.
7710         * explow.c (allocate_dynamic_stack_space): Use them instead of
7711         HAVE_*/gen_* interface.
7712         (emit_stack_probe): Likewise.
7713         (probe_stack_range): Likewise.
7714         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7716 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7718         * target-insns.def (stack_protect_set, stack_protect_test): New
7719         targetm instruction patterns.
7720         * cfgexpand.c (stack_protect_prologue): Use them instead of
7721         HAVE_*/gen_* interface.
7722         * function.c (stack_protect_epilogue): Likewise.
7724 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7726         * expr.h (gen_move_insn_uncast): Delete.
7727         * expr.c (gen_move_insn_uncast): Delete.
7729 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7731         * target-insns.def (restore_stack_block, restore_stack_function)
7732         (restore_stack_nonlocal, save_stack_block, save_stack_function)
7733         (save_stack_nonlocal): New targetm instruction patterns.
7734         * builtins.c (expand_builtin_apply): Use them instead of
7735         HAVE_*/gen_* interface.
7736         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
7738 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7740         * target-insns.def (trap): New targetm instruction pattern.
7741         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
7742         interface.
7743         * explow.c (allocate_dynamic_stack_space): Likewise.
7744         * ifcvt.c (find_if_header): Likewise.
7746 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7748         * target-insns.def (prefetch): New targetm instruction pattern.
7749         * tree-ssa-loop-prefetch.c: Include targeth.
7750         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
7751         of HAVE_*/gen_* interface.
7752         * builtins.c (expand_builtin_prefetch): Likewise.
7753         * toplev.c (process_options): Likewise.
7755 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7757         * target-insns.def (untyped_call, untyped_return): New targetm
7758         instruction patterns.
7759         * builtins.c (expand_builtin_apply): Use them instead of
7760         HAVE_*/gen_* interface.
7761         (result_vector): Define unconditionally.
7763 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7765         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
7766         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
7767         (nonlocal_goto_receiver): New targetm instruction patterns.
7768         * builtins.c (expand_builtin_setjmp_setup): Use them instead
7769         of HAVE_*/gen_* interface.
7770         (expand_builtin_setjmp_receiver): Likewise.
7771         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7772         * except.c (expand_dw2_landing_pad_for_region): Likewise.
7774 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
7776         * target.def: Add code_for_* hooks.
7777         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
7778         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
7779         * target-insns.def (casesi, tablejump): New targetm instruction
7780         patterns.
7781         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
7782         (do_tablejump): Likewise.
7783         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
7784         (expand_sjlj_dispatch_table): Likewise.
7785         * targhooks.c (default_case_values_threshold): Likewise.
7787 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
7789         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
7790         Use rtx_insn * instead of rtx.
7791         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
7792         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
7793         (nios2_call_tls_get_addr): Likewise.
7794         (nios2_emit_expensive_div): Likewise.
7795         (nios2_emit_move_sequence): Change return type to bool.
7796         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
7797         Change return type to bool.
7799 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7801         PR target/66747
7802         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
7804 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
7806         PR target/66114
7807         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
7808         of register_operand.  Remove constraint.
7810 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
7812         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
7813         the first argument.
7815 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
7817         * attribs.c (decl_attributes): Guard inform with the return value
7818         of the preceding warning.
7820 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7822         * doc/invoke.texi (moverride): Move to correct section.
7824 2015-07-03  Richard Biener  <rguenther@suse.de>
7826         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
7827         Copy from tree.c
7828         (dt_operand::gen_gimple_expr): After valueizing operands
7829         re-canonicalize operand order for commutative tree codes.
7831 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
7833         PR target/66746.
7834         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
7835         is defined.
7836         (__crc32w): Likewise.
7837         (__crc32d): Likewise.
7838         (__rdpmc): Likewise.
7839         (__rdtscp): Likewise.
7840         (_rdpmc): Likewise.
7841         (_rdtscp): Likewise.
7842         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
7843         is defined.
7845 2015-07-03  Richard Biener  <rguenther@suse.de>
7847         * fold-const.c (fold_mathfn_compare): Remove.
7848         (fold_inf_compare): Likewise.
7849         (fold_comparison): Move floating point comparison simplifications...
7850         * match.pd: ... to patterns here.  Introduce simple_comparisons
7851         operator list and use it for patterns formerly in fold_comparison.
7853 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
7855         PR tree-optimization/66119
7856         * toplev.c (process_options): Don't set up default values for
7857         the sra_max_scalarization_size_{speed,size} parameters.
7858         * tree-sra (analyze_all_variable_accesses): If no values
7859         have been set for the sra_max_scalarization_size_{speed,size}
7860         parameters, call get_move_ratio to get target defaults.
7862 2015-07-03  Richard Biener  <rguenther@suse.de>
7864         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
7865         * match.pd: ... here.
7867 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
7869         PR target/37072
7870         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
7871         is not actually the default on FreeBSD.
7873 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7875         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
7876         definition.
7877         (CMPGE_8HI): Likewise.
7878         (CMPGE_4SI): Likewise.
7879         (CMPGE_2DI): Likewise.
7880         (CMPGE_U16QI): Likewise.
7881         (CMPGE_U8HI): Likewise.
7882         (CMPGE_U4SI): Likewise.
7883         (CMPGE_U2DI): Likewise.
7884         (CMPLE_16QI): Likewise.
7885         (CMPLE_8HI): Likewise.
7886         (CMPLE_4SI): Likewise.
7887         (CMPLE_2DI): Likewise.
7888         (CMPLE_U16QI): Likewise.
7889         (CMPLE_U8HI): Likewise.
7890         (CMPLE_U4SI): Likewise.
7891         (CMPLE_U2DI): Likewise.
7892         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7893         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
7894         ALTIVEC_BUILTIN_VEC_CMPLE.
7895         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
7896         floating-point vector modes.
7897         (vector_nlt<mode>): New define_expand.
7898         (vector_nltu<mode>): Likewise.
7899         (vector_ngt<mode>): Likewise.
7900         (vector_ngtu<mode>): Likewise.
7902 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
7904         PR rtl-optimization/66706
7905         * combine.c (make_compound_operation): If an AND of SUBREG of
7906         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
7908 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
7910         * tree-pass.h (make_pass_ch_vect): New.
7911         * passes.def: Add pass_ch_vect just before pass_if_conversion.
7913         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
7914         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
7915         make_pass_ch_vect): New.
7916         (pass_ch): Extend ch_base.
7918         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
7919         (ch_base::copy_headers): ...here.
7921 2015-07-02  Richard Biener  <rguenther@suse.de>
7923         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
7924         * fold-const.c (get_pointer_modulus_and_residue): Remove.
7925         (fold_binary_loc): Implement (T)ptr & CST in terms of
7926         get_pointer_alignment_1.
7927         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
7928         Make sure to build the alignment test on a SSA name without
7929         final alignment info valid only after the prologue.
7931 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
7933         * config/cris/cris.md ("epilogue"): Remove condition.
7934         ("prologue"): Ditto.
7936 2015-07-02  Richard Biener  <rguenther@suse.de>
7938         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
7939         parameter to record a condition that is false.
7940         (record_conditions): When recording an extra NE_EXPR that is
7941         true also record a EQ_EXPR that is false.
7943 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
7945         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
7946         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
7947         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
7948         (set_iv, find_interesting_uses_address, add_candidate_1): New
7949         argument to alloc_iv.
7950         (find_interesting_uses_op, find_interesting_uses_cond): Don't
7951         duplicate struct iv.
7952         (free_loop_data): Don't free struct iv explicitly.
7953         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
7955 2015-07-01  DJ Delorie  <dj@redhat.com>
7957         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
7958         (LIB_SPEC): Add.
7959         (SUPPORTS_DISCRIMINATOR): Define.
7961 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
7963         PR bootstrap/66685
7964         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
7965         there are no CALLs in the same pattern.
7967 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7969         PR rtl-optimization/61047
7970         * rtlanal.c (get_initial_register_offset): New function.
7971         (rtx_addr_can_trap_p_1): Check offsets of stack references.
7973 2015-07-01  Richard Biener  <rguenther@suse.de>
7975         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
7976         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
7977         ~X CMP C -> X CMP' ~C to ...
7978         * match.pd: ... patterns here.
7980 2015-07-01  Nick Clifton  <nickc@redhat.com>
7982         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
7983         a 16-bit value into a 20-bit memory slot.
7985 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
7987         * doc/sourcebuild.texi (AArch64-specific attributes): Document
7988         "aarch64_tiny", "aarch64_small", "aarch64_large",
7989         "aarch64_little_endian", "aarch64_big_endian".
7991 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
7993         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
7994         Document "aarch64_small_fpic".
7996 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
7998         * configure.ac: Add check for aarch64 assembler -fpic relocation
7999         modifier support.
8000         * configure: Regenerate.
8001         * config.in: Regenerate.
8002         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
8003         to -fPIC if not support of -fpic relocation modifier in assembler.
8005 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8007         PR bootstrap/66685
8008         * rtl.c (classify_insn): Handle returns in PARALLELs.
8010 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8012         PR middle-end/66633
8013         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
8014         to true if the function is nested and if not optimizing.
8015         (convert_local_omp_clauses): Initialize need_frame to true if the
8016         function contains nested functions and if not optimizing.
8018 2015-07-01  Richard Biener  <rguenther@suse.de>
8020         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
8021         (X & Y) ^ Y -> ~X & Y transforms to ...
8022         * match.pd: ... here.
8024 2015-07-01  Richard Biener <rguenther@suse.de>
8026         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
8027         of converts to avoid uninteresting noise from the conversion
8028         simplifying patterns.
8030 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
8032         * config/c6x/c6x.c (try_rename_operands): Do not depend on
8033         gcc_assert evaluating its argument for side-effect.
8035 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8037         PR target/64833
8038         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
8039         flag_pic is set.
8041 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8043         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
8044         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
8045         (hash_scc): Add this_ref_p and ref_p parameters and pass them
8046         to the inner DFS walk.
8048 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8050         * target-insns.def (jump): New targetm instruction pattern.
8051         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
8052         instead of gen_jump.
8053         (fix_up_crossing_landing_pad): Likewise.
8054         (add_labels_and_missing_jumps): Likewise.
8055         (fix_crossing_conditional_branches): Likewise.
8056         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8057         (force_nonfallthru_and_redirect): Likewise.
8058         * cse.c (cse_insn): Likewise.
8059         * expmed.c (expand_divmod): Likewise.
8060         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
8061         * haifa-sched.c (init_before_recovery): Likewise.
8062         (sched_create_recovery_edges): Likewise.
8063         * ifcvt.c (find_cond_trap): Likewise.
8064         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
8065         (expand_float, expand_fix): Likewise.
8066         * stmt.c (emit_jump): Likewise.
8068 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8070         * defaults.h (HAVE_load_multiple, gen_load_multiple)
8071         (HAVE_store_multiple, gen_store_multiple): Delete.
8072         * target-insns.def (load_multiple, store_multiple): New targetm
8073         instruction patterns.
8074         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
8075         of HAVE_*/gen_* interface.
8077 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8079         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
8080         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
8081         (gen_mem_signal_fence): Delete.
8082         * target-insns.def (mem_signal_fence, mem_thread_fence)
8083         (memory_barrier): New targetm instruction patterns.
8084         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
8085         interface.
8086         (expand_mem_signal_fence): Likewise.
8088 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8090         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
8091         * target-insns.def (epilogue, prologue, sibcall_prologue): New
8092         targetm instruction patterns.
8093         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
8094         interface.
8095         * calls.c (expand_call): Likewise.
8096         * cfgrtl.c (cfg_layout_finalize): Likewise.
8097         * df-scan.c (df_get_entry_block_def_set): Likewise.
8098         (df_get_exit_block_use_set): Likewise.
8099         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
8100         * final.c (final_start_function): Likewise.
8101         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8102         (reposition_prologue_and_epilogue_notes): Likewise.
8103         * reorg.c (find_end_label): Likewise.
8104         * toplev.c (process_options): Likewise.
8106 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
8108         * typed-splay-tree.h: New file.
8110 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
8112         PR debug/66691
8113         * lra-int.h (lra_substitute_pseudo): Add a parameter.
8114         (lra_substitute_pseudo_within_insn): Ditto.
8115         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
8116         of constant.
8117         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
8118         to lra_substitute_pseudo.
8119         * lra-lives.c (process_bb_lives): Add an argument to
8120         lra_substitute_pseudo_within_insn call.
8121         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
8122         argument to lra_substitute_pseudo and
8123         lra_substitute_pseudo_within_insn calls.
8124         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
8126 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8128         * configure: Regenerated.
8130 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8132         * config.gcc: Support i[34567]86-*-elfiamcu target.
8133         * config/i386/iamcu.h: New.
8134         * config/i386/i386.opt: Add -miamcu.
8135         * doc/invoke.texi: Document -miamcu.
8136         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
8137         off x87/MMX/SSE/AVX codegen for -miamcu.
8138         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8139         __iamcu/__iamcu__ for -miamcu.
8140         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
8141         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
8142         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
8143         * config/i386/i386.c (ix86_option_override_internal): Ignore and
8144         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
8145         MCU by default.  Default long double to 64-bit for Intel MCU.
8146         Turn on -freg-struct-return for Intel MCU.  Issue an error when
8147         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
8148         AVX is turned on.
8149         (function_arg_advance_32): Pass value whose size is no larger
8150         than 8 bytes in registers for Intel MCU.
8151         (function_arg_32): Likewise.
8152         (ix86_return_in_memory): Return value whose size is no larger
8153         than 8 bytes in registers for Intel MCU.
8154         (iamcu_alignment): New function.
8155         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
8156         true.
8157         (ix86_local_alignment): Don't increase alignment for Intel MCU.
8158         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
8159         true.
8161 2015-06-30  Marek Polacek  <polacek@redhat.com>
8163         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
8164         both operands of the resulting expression.
8166         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
8167         the final expression with the operand's type and then convert
8168         it to the type of the expression.
8170 2015-06-30  Richard Biener  <rguenther@suse.de>
8172         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
8173         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
8174         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
8175         * match.pd: ... to patterns here.
8177 2015-06-30  Richard Biener  <rguenther@suse.de>
8179         PR tree-optimization/66704
8180         * tree-vect-data-refs.c (vect_setup_realignment): Use
8181         make_ssa_name for non-SSA name source.
8183 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
8185         PR middle-end/66702
8186         * omp-low.c (simd_clone_adjust): Handle addressable linear
8187         or uniform parameters or non-gimple type uniform parameters.
8189 2015-06-30  Richard Biener  <rguenther@suse.de>
8191         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
8192         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
8193         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
8194         * match.pd: ... here.
8195         Add a few cases of A - B -> A + (-B) when B "easily" negates.
8196         Move (x & y) | x -> x and friends before
8197         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
8199 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8201         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
8202         -mfix-ut699 is not specified.
8203         (leon3_load): Rename into...
8204         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
8205         is specified.
8207 2015-06-30  Marek Polacek  <polacek@redhat.com>
8209         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
8210         * match.pd: ... here.
8212 2015-06-30  Richard Biener  <rguenther@suse.de>
8214         * target-insns.def (canonicalize_funcptr_for_compare): Add.
8215         * fold-const.c (build_range_check): Replace uses of
8216         HAVE_canonicalize_funcptr_for_compare.
8217         (fold_widened_comparison): Likewise.
8218         (fold_sign_changed_comparison): Likewise.
8219         * dojump.c: Include "target.h".
8220         (do_compare_and_jump): Replace uses of
8221         HAVE_canonicalize_funcptr_for_compare and
8222         gen_canonicalize_funcptr_for_compare.
8223         * expr.c (do_store_flag): Likewise.
8225 2015-06-30  Tom de Vries  <tom@codesourcery.com>
8227         PR tree-optimization/66652
8228         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
8229         max_loop_iterations to determine if nit + 1 overflows.
8231 2015-06-30  Richard Biener  <rguenther@suse.de>
8233         * tree-vrp.c (register_edge_assert_for_2): Also register
8234         asserts for dominating conversion results.
8236 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
8238         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
8239         field in struct iv.
8241 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
8243         PR target/66509
8244         * configure.ac: Fix filds and fildq test for 64-bit.
8245         * configure: Regenerated.
8247 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
8249         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
8250         (nvptx_reorg): Here.  Keep the non-subreg pieces.
8252 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
8254         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
8255         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
8257 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
8259         * config/i386/i386.md (*jcc_1): Use %! in asm template.
8260         Set attribute "length_nobnd" instead of "length".
8261         (*jcc_2): Ditto.
8262         (jump): Ditto.
8263         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
8265 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
8267         * config/nios2/nios2.c (nios2_delegitimize_address): Make
8268         assert less restrictive.
8270 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8272         PR fortran/66605
8273         * cgraphunit.c (cgraph_node::finalize_function): Do not call
8274         do_warn_unused_parameter.
8275         * function.c (do_warn_unused_parameter): Move from here.
8276         * function.h (do_warn_unused_parameter): Do not declare.
8278 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8280         PR target/65697
8281         * gcc.target/arm/armv-sync-comp-swap.c: New.
8282         * gcc.target/arm/armv-sync-op-acquire.c: New.
8283         * gcc.target/arm/armv-sync-op-full.c: New.
8284         * gcc.target/arm/armv-sync-op-release.c: New.
8286 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8288         PR target/65697
8289         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
8290         initial acquire barrier with final barrier.
8292 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8294         PR target/65697
8295         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
8296         initial acquire barrier with final barrier.
8298 2015-06-29  Richard Henderson  <rth@redhat.com>
8300         * config/i386/constraints.md (Bf): New constraint.
8301         * config/i386/i386-c.c (ix86_target_macros): Define
8302         __GCC_ASM_FLAG_OUTPUTS__.
8303         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
8304         as flags outputs.
8305         * doc/extend.texi (FlagOutputOperands): Document them.
8307 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
8309         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
8310         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
8311         unspec name.
8312         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
8313         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
8314         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
8315         (aarch64_symbol_context): Ditto.
8316         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
8317         and use new pattern name.
8318         (aarch64_expand_mov_immediate): Ditto.
8319         (aarch64_print_operand): Ditto.
8320         (aarch64_classify_tls_symbol): Ditto.
8322 2015-06-29  Marek Polacek  <polacek@redhat.com>
8323             Marc Glisse  <marc.glisse@inria.fr>
8325         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
8326         * match.pd: ... pattern here.
8328 2015-06-29  Tom de Vries  <tom@codesourcery.com>
8330         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
8331         function structure.
8333 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8335         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
8336         feature description, split out the native option, add a link to
8337         the feature documentation, rearrange and slightly rewrite text.
8338         (Aarch64 options, -mcpu): Likewise.
8339         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
8340         +rdma implies Adv. SIMD.
8342 2015-06-29  Marek Polacek  <polacek@redhat.com>
8344         PR c/66322
8345         * function.c (stack_protect_epilogue): Remove a cast to int.
8346         * doc/invoke.texi: Update -Wswitch-bool description.
8348 2015-06-29  Richard Biener  <rguenther@suse.de>
8350         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
8351         * fold-const.c (fold_binary_loc): Move &A - &B simplification
8352         via ptr_difference_const ...
8353         * match.pd: ... here.
8354         When matching (X ^ Y) == Y also match with swapped operands.
8356 2015-06-29  Richard Biener  <rguenther@suse.de>
8358         * lto-streamer.h (LTO_major_version): Bump to 5.
8360 2015-06-29  Richard Biener  <rguenther@suse.de>
8362         PR tree-optimization/66677
8363         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
8364         STMT_VINFO_VEC_STMT clobbering less strict.
8366 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
8368         PR middle-end/64130
8369         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
8370         division, compute max and min when value ranges for dividend and
8371         divisor are available.
8373 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
8374             Sandra Loosemore <sandra@codesourcery.com>
8376         * regrename.h (regrename_do_replace): Change to return bool.
8377         * regrename.c (rename_chains): Check return value of
8378         regname_do_replace.
8379         (regrename_do_replace): Re-validate the modified insns and
8380         return bool status.
8381         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
8382         Update to match rename_chains changes.
8383         * config/c6x/c6x.c (try_rename_operands): Assert that
8384         regrename_do_replace returns true.
8386 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
8388         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
8389         operand 2 here.  Use copy_addr_to_reg to copy non-index
8390         register operand 2 to a temporary.
8391         (<mode>_stx): Ditto for operand 1.
8392         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
8393         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
8394         (ix86_store_bounds): Ditto.
8396 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
8398         * print-tree.c (print_node) [TREE_VEC]: Print its length.
8400 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
8402         * gimple.c (gimple_call_set_fndecl): Remove.
8403         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
8404         build1_loc directly instead of build_fold_addr_expr_loc.
8406 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8408         * hash-map.h (hash_map::traverse): Use the definition of the
8409         Key typedef rather than the typedef itself.
8411 2015-06-26  Martin Jambor  <mjambor@suse.cz>
8413         PR debug/66301
8414         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
8415         NULL instead of calling dump_enabled_p.
8417 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8419         * config/aarch64/aarch64.opt: (override): New.
8420         * doc/invoke.texi (override): Document.
8421         * config/aarch64/aarch64.c (aarch64_flag_desc): New
8422         (aarch64_fusible_pairs): Likewise.
8423         (aarch64_tuning_flags): Likewise.
8424         (aarch64_tuning_override_function): Likewise.
8425         (aarch64_tuning_override_functions): Likewise.
8426         (aarch64_parse_one_option_token): Likewise.
8427         (aarch64_parse_boolean_options): Likewise.
8428         (aarch64_parse_fuse_string): Likewise.
8429         (aarch64_parse_tune_string): Likewise.
8430         (aarch64_parse_one_override_token): Likewise.
8431         (aarch64_parse_override_string): Likewise.
8432         (aarch64_override_options): Parse the -override string if it
8433         is present.
8435 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8437         * config/aarch64/aarch64-protos.h (tune_params): Remove
8438         const from members.
8439         (aarch64_tune_params): Remove const, change to no longer be
8440         a pointer.
8441         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
8442         change to no longer be a pointer, initialize to generic_tunings.
8443         (aarch64_min_divisions_for_recip_mul): Change dereference of
8444         aarch64_tune_params to member access.
8445         (aarch64_reassociation_width): Likewise.
8446         (aarch64_rtx_mult_cost): Likewise.
8447         (aarch64_address_cost): Likewise.
8448         (aarch64_branch_cost): Likewise.
8449         (aarch64_rtx_costs): Likewise.
8450         (aarch64_register_move_cost): Likewise.
8451         (aarch64_memory_move_cost): Likewise.
8452         (aarch64_sched_issue_rate): Likewise.
8453         (aarch64_builtin_vectorization_cost): Likewise.
8454         (aarch64_override_options): Take a copy of the selected tuning
8455         struct in to aarch64_tune_params, rather than just setting
8456         a pointer, change dereferences of aarch64_tune_params to member
8457         accesses.
8458         (aarch64_override_options_after_change): Change dereferences of
8459         aarch64_tune_params to member access.
8460         (aarch64_macro_fusion_p): Likewise.
8461         (aarch_macro_fusion_pair_p): Likewise.
8462         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
8464 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8466         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
8467         (aarch64_tune_flags): Likewise.
8468         (AARCH64_TUNE_FMA_STEERING): Likewise.
8469         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
8470         to AARCH64_FL_USE_FMA_STEERING_PASS.
8471         (cortex-a57.cortex-a53): Likewise.
8472         (cortex-a72): Use cortexa72_tunings.
8473         (cortex-a72.cortex-a53): Likewise.
8474         (exynos-m1): Likewise.
8475         * config/aarch64/aarch64-protos.h (tune_params): Add
8476         a field: extra_tuning_flags.
8477         * config/aarch64/aarch64-tuning-flags.def: New.
8478         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
8479         (aarch64_extra_tuning_flags): Likewise.
8480         (aarch64_tune_params): Declare here.
8481         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
8482         (cortexa53_tunings): Likewise.
8483         (cortexa57_tunings): Likewise.
8484         (thunderx_tunings): Likewise.
8485         (xgene1_tunings): Likewise.
8486         (cortexa72_tunings): New.
8487         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
8488          (gate): Check against aarch64_tune_params.
8489         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
8490         aarch64-protos.h.
8492 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
8494         * config/aarch64/aarch64-fusion-pairs.def: New.
8495         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
8496         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
8497         aarch64_fusion_pairs.
8498         (AARCH64_FUSE_MOV_MOVK): Likewise.
8499         (AARCH64_FUSE_ADRP_ADD): Likewise.
8500         (AARCH64_FUSE_MOVK_MOVK): Likewise.
8501         (AARCH64_FUSE_ADRP_LDR): Likewise.
8502         (AARCH64_FUSE_CMP_BRANCH): Likewise.
8504 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8506         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
8507         SYMBOL_SMALL_GOT_28K.
8508         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
8509         relocation modifiers.
8510         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
8511         (ldr_got_small_28k_<mode>): New.
8512         (ldr_got_small_28k_sidi): New.
8513         * config/aarch64/iterators.md (got_modifier): New mode iterator.
8514         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
8515         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
8516         SYMBOL_SMALL_GOT_28K.
8517         (aarch64_rtx_costs): Add costs for new instruction sequences.
8518         (initialize_aarch64_code_model): Initialize new model.
8519         (aarch64_classify_symbol): Recognize new model and new symbol classification.
8520         (aarch64_asm_preferred_eh_data_format): Support new model.
8521         (aarch64_load_symref_appropriately): Generate new instruction
8522         sequences for -fpic.
8523         (TARGET_USE_PSEUDO_PIC_REG): New definition.
8524         (aarch64_use_pseudo_pic_reg): New function.
8526 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
8528         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
8529         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
8530         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
8531         (aarch64_expand_mov_immediate): Ditto.
8532         (aarch64_print_operand): Ditto.
8533         (aarch64_classify_symbol): Ditto.
8535 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
8537         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
8539 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
8541         PR bootstrap/66638
8542         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
8543         assertion failed.  Remove assertion itself.
8545 2015-06-26  Richard Biener  <rguenther@suse.de>
8547         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
8548         and -A CMP CST -> A CMP -CST which is redundant with a pattern
8549         in match.pd.
8550         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
8551         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
8552         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
8553         * match.pd: ... patterns here.
8555 2015-06-26  Marek Polacek  <polacek@redhat.com>
8557         * match.pd ((x | y) & ~(x & y) -> x ^ y,
8558         (x | y) & (~x ^ y) -> x & y): New patterns.
8560 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
8562         * rtl.h (emit): Add an optional boolean parameter to control
8563         whether barriers are emitted.
8564         * emit-rtl.c (emit): Likewise.
8565         * gensupport.c (get_emit_function): Return null rather than "emit".
8566         * genemit.c (gen_emit_seq): Handle the null return value.
8567         Don't emit barriers after the final instruction in the sequence.
8568         * gentarget-def.c (main): Don't emit barriers after the instruction.
8570 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8572         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
8573         TARGET_UNIFIED_ASM.
8575 2015-06-26  Richard Biener  <rguenther@suse.de>
8577         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
8579 2015-06-26  Richard Biener  <rguenther@suse.de>
8581         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
8582         irrespective on whether the inner operation has a single use
8583         of both off are constant.
8585 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
8586             Segher Boessenkool  <segher@kernel.crashing.org>
8588         PR target/66412
8589         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
8590         before doing PUT_MODE or PUT_CODE on operands to avoid
8591         in-place RTX modification.
8593 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8595         * gentarget-def.c (def_target_insn): Cast return of strtol to
8596         unsigned int.
8598 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8600         * gimple.h (gimple_call_set_fn): Move inline function.
8601         * gimple.c (gimple_call_set_fn): Relocate here.
8603 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
8605         PR target/65979
8606         PR target/66611
8607         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
8608         the replacement insn will work.
8610 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8612         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
8613         by default.
8615 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
8617         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
8618         * cgraph.h: Include ipa-ref.h and plugin-api.h.
8619         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
8620         (symtab_node::address_can_be_compared_p): Move function.
8621         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
8622         definition here.
8623         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
8624         * auto-profile.c: Likewise.
8625         * bb-reorder.c: Likewise.
8626         * builtins.c: Likewise.
8627         * calls.c: Likewise.
8628         * cfgexpand.c: Likewise.
8629         * cgraphbuild.c: Likewise.
8630         * cgraphclones.c: Likewise.
8631         * cgraphunit.c: Likewise.
8632         * combine.c: Likewise.
8633         * coverage.c: Likewise.
8634         * data-streamer-in.c: Likewise.
8635         * data-streamer-out.c: Likewise.
8636         * data-streamer.c: Likewise.
8637         * dbxout.c: Likewise.
8638         * dwarf2out.c: Likewise.
8639         * except.c: Likewise.
8640         * expr.c: Likewise.
8641         * final.c: Likewise.
8642         * fold-const.c: Likewise.
8643         * ggc-page.c: Likewise.
8644         * gimple-fold.c: Likewise.
8645         * gimple-iterator.c: Likewise.
8646         * gimple-pretty-print.c: Likewise.
8647         * gimple-streamer-in.c: Likewise.
8648         * gimple-streamer-out.c: Likewise.
8649         * gimple.c: Likewise.
8650         * gimplify.c: Likewise.
8651         * ipa-chkp.c: Likewise.
8652         * ipa-comdats.c: Likewise.
8653         * ipa-cp.c: Likewise.
8654         * ipa-devirt.c: Likewise.
8655         * ipa-icf-gimple.c: Likewise.
8656         * ipa-icf.c: Likewise.
8657         * ipa-inline-analysis.c: Likewise.
8658         * ipa-inline-transform.c: Likewise.
8659         * ipa-inline.c: Likewise.
8660         * ipa-polymorphic-call.c: Likewise.
8661         * ipa-profile.c: Likewise.
8662         * ipa-prop.c: Likewise.
8663         * ipa-pure-const.c: Likewise.
8664         * ipa-ref.c: Likewise.
8665         * ipa-reference.c: Likewise.
8666         * ipa-split.c: Likewise.
8667         * ipa-utils.c: Likewise.
8668         * ipa-visibility.c: Likewise.
8669         * ipa.c: Likewise.
8670         * langhooks.c: Likewise.
8671         * lto-cgraph.c: Likewise.
8672         * lto-compress.c: Likewise.
8673         * lto-opts.c: Likewise.
8674         * lto-section-in.c: Likewise.
8675         * lto-section-out.c: Likewise.
8676         * lto-streamer-in.c: Likewise.
8677         * lto-streamer-out.c: Likewise.
8678         * lto-streamer.c: Likewise.
8679         * omp-low.c: Likewise.
8680         * opts-global.c: Likewise.
8681         * passes.c: Likewise.
8682         * predict.c: Likewise.
8683         * print-tree.c: Likewise.
8684         * profile.c: Likewise.
8685         * ree.c: Likewise.
8686         * sanopt.c: Likewise.
8687         * stor-layout.c: Likewise.
8688         * symtab.c: Likewise.
8689         * toplev.c: Likewise.
8690         * trans-mem.c: Likewise.
8691         * tree-cfg.c: Likewise.
8692         * tree-chkp.c: Likewise.
8693         * tree-eh.c: Likewise.
8694         * tree-emutls.c: Likewise.
8695         * tree-inline.c: Likewise.
8696         * tree-nested.c: Likewise.
8697         * tree-parloops.c: Likewise.
8698         * tree-pretty-print.c: Likewise.
8699         * tree-profile.c: Likewise.
8700         * tree-sra.c: Likewise.
8701         * tree-ssa-alias.c: Likewise.
8702         * tree-ssa-live.c: Likewise.
8703         * tree-ssa-loop-ivcanon.c: Likewise.
8704         * tree-ssa-loop-ivopts.c: Likewise.
8705         * tree-ssa-pre.c: Likewise.
8706         * tree-ssa-sccvn.c: Likewise.
8707         * tree-ssa-strlen.c: Likewise.
8708         * tree-ssa-structalias.c: Likewise.
8709         * tree-streamer-in.c: Likewise.
8710         * tree-streamer-out.c: Likewise.
8711         * tree-streamer.c: Likewise.
8712         * tree-switch-conversion.c: Likewise.
8713         * tree-tailcall.c: Likewise.
8714         * tree-vect-data-refs.c: Likewise.
8715         * tree-vect-stmts.c: Likewise.
8716         * tree-vectorizer.c: Likewise.
8717         * tree.c: Likewise.
8718         * tsan.c: Likewise.
8719         * ubsan.c: Likewise.
8720         * value-prof.c: Likewise.
8721         * varasm.c: Likewise.
8722         * varpool.c: Likewise.
8723         * config/arm/arm.c: Likewise.
8724         * config/bfin/bfin.c: Likewise.
8725         * config/c6x/c6x.c: Likewise.
8726         * config/cris/cris.c: Likewise.
8727         * config/darwin-c.c: Likewise.
8728         * config/darwin.c: Likewise.
8729         * config/i386/i386.c: Likewise.
8730         * config/i386/winnt.c: Likewise.
8731         * config/microblaze/microblaze.c: Likewise.
8732         * config/mips/mips.c: Likewise.
8733         * config/rs6000/rs6000.c: Likewise.
8734         * config/rx/rx.c: Likewise.
8735         * config/s390/s390.c: Likewise.
8736         * config/tilegx/mul-tables.c: Likewise.
8738 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8740         * config/aarch64/aarch64.c, config/alpha/alpha.c,
8741         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
8742         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
8743         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
8744         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8745         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8746         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8747         config/microblaze/microblaze.c, config/mips/mips.c,
8748         config/mmix/mmix.c, config/mn10300/mn10300.c,
8749         config/moxie/moxie.c, config/msp430/msp430.c,
8750         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8751         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8752         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8753         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8754         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8755         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8756         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
8757         target-def.h include.
8758         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
8760 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8762         * Makefile.in (TARGET_DEF): Add target-insns.def.
8763         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
8764         (build/gentarget-def.o): New rule.
8765         (genprogrtl): Add target-def.
8766         * target-insns.def, gentarget-def.c: New files.
8767         * target.def: Add targetm.have_* and targetm.gen_* hooks,
8768         based on the contents of target-insns.def.
8769         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
8770         (HAVE_return, gen_return): Delete.
8771         * target-def.h: Include insn-target-def.h.
8772         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
8773         instead of direct calls.  Rely on them to do the appropriate assertions.
8774         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
8775         (convert_jumps_to_returns): Use targetm interface instead of
8776         direct calls.
8777         (thread_prologue_and_epilogue_insns): Likewise.
8778         * reorg.c (find_end_label, dbr_schedule): Likewise.
8779         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
8780         * shrink-wrap.c (convert_to_simple_return): Likewise.
8781         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
8783 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8785         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
8786         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8787         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
8788         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8789         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
8790         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8791         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
8792         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
8793         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
8794         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
8795         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
8796         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
8797         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
8798         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8799         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8800         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
8801         includes to end.
8803 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8805         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
8806         (unbounded_int_hashmap_traits::key_type): Likewise.
8807         * hash-map.h (hash_map): Get the key type from the traits.
8808         * hash-traits.h (default_hash_traits): By default, inherit from the
8809         template parameter.
8810         * alias.c (alias_set_traits): Delete.
8811         (alias_set_entry_d::children): Use alias_set_hash as the first
8812         template parameter.
8813         (record_alias_subset): Update accordingly.
8814         * except.c (tree_hash_traits): Delete.
8815         (type_to_runtime_map): Use tree_hash as the first template parameter.
8816         (init_eh): Update accordingly.
8817         * genmatch.c (capture_id_map_hasher): Delete.
8818         (cid_map_t): Use nofree_string_hash as first template parameter.
8819         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
8820         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
8821         Use symbol_compare_hash as the first template parameter in
8822         subdivide_hash_map.
8823         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
8824         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
8825         template parameter.
8826         * passes.c (pass_registry_hasher): Delete.
8827         (name_to_pass_map): Use nofree_string_hash as the first template
8828         parameter.
8829         (register_pass_name): Update accordingly.
8830         * sanopt.c (sanopt_tree_map_traits): Delete.
8831         (sanopt_tree_triplet_map_traits): Delete.
8832         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
8833         template parameter.
8834         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
8835         the first template parameter.
8836         * sese.c (rename_map_hasher): Delete.
8837         (rename_map_type): Use tree_ssa_name_hash as the first template
8838         parameter.
8839         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
8840         (function_summary::m_map): Use map_hash as the first template
8841         parameter.
8842         (function_summary::release): Update accordingly.
8843         * tree-if-conv.c (phi_args_hash_traits): Delete.
8844         (predicate_scalar_phi): Use tree_operand_hash as the first template
8845         parameter to phi_arg_map.
8846         * tree-inline.h (dependence_hasher): Delete.
8847         (copy_body_data::dependence_map): Use dependence_hash as the first
8848         template parameter.
8849         * tree-inline.c (remap_dependence_clique): Update accordingly.
8850         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
8851         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
8852         parameter.
8853         (addr_stridxptr): Update accordingly.
8854         * value-prof.c (profile_id_traits): Delete.
8855         (cgraph_node_map): Use profile_id_hash as the first template
8856         parameter.
8857         (init_node_map): Update accordingly.
8858         * config/alpha/alpha.c (string_traits): Delete.
8859         (machine_function::links): Use nofree_string_hash as the first
8860         template parameter.
8861         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
8862         * config/m32c/m32c.c (pragma_traits): Delete.
8863         (pragma_htab): Use nofree_string_hash as the first template parameter.
8864         (m32c_note_pragma_address): Update accordingly.
8865         * config/mep/mep.c (pragma_traits): Delete.
8866         (pragma_htab): Use nofree_string_hash as the first template parameter.
8867         (mep_note_pragma_flag): Update accordingly.
8868         * config/mips/mips.c (mips16_flip_traits): Delete.
8869         (mflip_mips16_htab): Use nofree_string_hash as the first template
8870         parameter.
8871         (mflip_mips16_use_mips16_p): Update accordingly.
8872         (local_alias_traits): Delete.
8873         (mips16_local_aliases): Use nofree_string_hash as the first template
8874         parameter.
8875         (mips16_local_alias): Update accordingly.
8877 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8879         * hash-map-traits.h (default_hashmap_traits): Delete.
8881 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8883         * hash-map-traits.h (unbounded_hashmap_traits): New class.
8884         (unbounded_int_hashmap_traits): Likewise.
8885         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
8887 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8889         * ipa-icf.h (symbol_compare_hash): New class.
8890         (symbol_compare_hashmap_traits): Use it.
8891         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
8892         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
8893         (mem_alloc_description::reverse_mem_map_t): Remove redundant
8894         default_hashmap_traits.
8895         * sanopt.c (sanopt_tree_triplet_hash): New class.
8896         (sanopt_tree_triplet_map_traits): Use it.
8898 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8900         * gengtype-parse.c (require_template_declaration): Allow '+' in
8901         template parameters.  Consolidate cases.
8902         * hash-traits.h (int_hash): New class.
8903         * alias.c (alias_set_hash): New structure.
8904         (alias_set_traits): Use it.
8905         * symbol-summary.h (function_summary::map_hash): New class.
8906         (function_summary::summary_hashmap_traits): Use it.
8907         * tree-inline.h (dependence_hash): New class.
8908         (dependence_hasher): Use it.
8909         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
8910         * value-prof.c (profile_id_hash): New class.
8911         (profile_id_traits): Use it.
8913 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8915         * config/mips/mips.c (mips16_flip_traits): Use it.
8916         (local_alias_traits, mips16_local_aliases): Convert from a map of
8917         rtxes to a map of symbol names.
8918         (mips16_local_alias): Update accordingly.
8920 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8922         * hash-traits.h (string_hash, nofree_string_hash): New classes.
8923         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
8924         * passes.c (pass_registry_hasher): Likewise.
8925         * config/alpha/alpha.c (string_traits): Likewise.
8926         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
8927         * config/m32c/m32c.c (pragma_traits): Likewise.
8928         * config/mep/mep.c (pragma_traits): Likewise.
8930 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8932         * tree-hash-traits.h (tree_hash): New class.
8933         * except.c: Include tree-hash-traits.h.
8934         (tree_hash_traits): Use tree_hash.
8936 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8938         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
8939         * sese.c: Include tree-hash-traits.h.
8940         (rename_map_hasher): Use tree_ssa_name_hasher.
8942 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8944         * tree-hash-traits.h (tree_decl_hash): New class.
8945         * tree-ssa-strlen.c: Include tree-hash-traits.h.
8946         (stridxlist_hash_traits): Use tree_decl_hash.
8948 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8950         * tree-hash-traits.h: New file.
8951         (tree_operand_hash): New class.
8952         * sanopt.c: Include tree-hash-traits.h.
8953         (sanopt_tree_map_traits): Use tree_operand_hash.
8954         * tree-if-conv.c: Include tree-hash-traits.h.
8955         (phi_args_hash_traits): Use tree_operand_hash.
8956         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
8957         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
8959 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8961         * hash-map-traits.h: Include hash-traits.h.
8962         (simple_hashmap_traits): New class.
8963         * mem-stats.h (hash_map): Change the default traits to
8964         simple_hashmap_traits<default_hash_traits<Key> >.
8966 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8968         * hash-table.h: Update comments.
8970 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8972         * hash-traits.h (default_hash_traits): New structure.
8973         * hash-set.h (default_hashset_traits): Delete.
8974         (hash_set): Use default_hash_traits<Key> instead of
8975         default_hashset_traits.  Delete hash_entry type and use Key directly.
8976         * ipa-devirt.c (pair_traits): Delete.
8977         (default_hash_traits <type_pair>): Override.
8978         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
8979         (odr_types_equivalent_p, add_type_duplicate): Likewise.
8981 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8983         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
8985 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8987         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
8988         (has_is_empty, is_empty_helper): Delete.
8989         (has_mark_deleted, mark_deleted_helper): Delete.
8990         (has_mark_empty, mark_empty_helper): Delete.
8991         (hash_table::is_deleted): Call the Descriptor unconditionally.
8992         (hash_table::is_empty): Likewise.
8993         (hash_table::mark_deleted): Likewise.
8994         (hash_table::mark_empty): Likewise.
8996 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
8998         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
8999         redundant typedefs and members.
9000         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
9001         redundant typedefs.
9002         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
9003         * ipa-devirt.c (odr_name_hasher): Likewise.
9004         (polymorphic_call_target_hasher): Likewise.
9005         * ira-costs.c (cost_classes_hasher): Likewise.
9006         * statistics.c (stats_counter_hasher): Likewise.
9007         * trans-mem.c (log_entry_hasher): Likewise.
9008         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9009         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
9010         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
9011         * var-tracking.c (variable_hasher): Likewise.
9012         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
9013         Remove redundant typedefs and members.
9015 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9017         * hash-traits.h (ggc_cache_hasher): Rename to...
9018         (ggc_cache_remove): ...this and remove typedefs.
9019         (ggc_cache_ptr_hash): New class.
9020         * hash-table.h: Update commentary.
9021         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
9022         rather than ggc_cache_hasher.
9023         (const_wide_int_hasher, reg_attr_hasher): Likewise.
9024         (const_double_hasher, const_fixed_hasher): Likewise.
9025         * function.c (insn_cache_hasher): Likewise.
9026         * trans-mem.c (tm_wrapper_hasher): Likewise.
9027         * tree.h (tree_decl_map_cache_hasher): Likewise.
9028         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
9029         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
9030         * ubsan.c (tree_type_map_cache_hasher): Likewise.
9031         * varasm.c (tm_clone_hasher): Likewise.
9032         * config/i386/i386.c (dllimport_hasher): Likewise.
9033         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
9034         (tree_hasher): Likewise.
9036 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9038         * hash-traits.h (ggc_hasher): Rename to...
9039         (ggc_remover): ...this and remove typedefs.
9040         (ggc_cache_hasher): Update accordingly.  Add typedefs.
9041         (ggc_ptr_hash): New class.
9042         * hash-table.h: Update comment.
9043         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
9044         ggc_hasher.
9045         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
9046         (tree_descriptor_hasher): Likewise.
9047         * cgraph.c (function_version_hasher): Likewise.
9048         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
9049         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
9050         (dw_loc_list_hasher, addr_hasher): Likewise.
9051         * function.h (used_type_hasher): Likewise.
9052         * function.c (temp_address_hasher): Likewise.
9053         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
9054         * libfuncs.h (libfunc_hasher): Likewise.
9055         * lto-streamer.h (decl_state_hasher): Likewise.
9056         * optabs.c (libfunc_decl_hasher): Likewise.
9057         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
9058         * varasm.c (section_hasher, object_block_hasher): Likewise.
9059         (const_rtx_desc_hasher): Likewise.
9060         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
9061         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
9063 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9065         * hash-traits.h (free_ptr_hash): New class.
9066         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
9067         rather than typed_free_remove.  Remove redudant typedefs.
9068         (external_ref_hasher): Likewise.
9069         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
9070         (ehspec_hasher): Likewise.
9071         * ggc-common.c (saving_hasher): Likewise.
9072         * gimplify.c (gimplify_hasher): Likewise.
9073         * haifa-sched.c (delay_i2_hasher): Likewise.
9074         * loop-invariant.c (invariant_expr_hasher): Likewise.
9075         * loop-iv.c (biv_entry_hasher): Likewise.
9076         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
9077         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
9078         * tree-cfg.c (locus_discrim_hasher): Likewise.
9079         * tree-eh.c (finally_tree_hasher): Likewise.
9080         * tree-into-ssa.c (var_info_hasher): Likewise.
9081         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
9082         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
9083         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
9084         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
9085         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
9086         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
9087         (shared_bitmap_hasher): Likewise.
9088         * tree-ssa-threadupdate.c (redirection_data): Likewise.
9089         * tree-vectorizer.h (peel_info_hasher): Likewise.
9090         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
9091         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
9093 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9095         * hash-table.h: Update comments.
9096         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
9097         (nofree_ptr_hash): New class.
9098         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
9099         than typed_noop_remove.  Remove redudant typedefs.
9100         * attribs.c (attribute_hasher): Likewise.
9101         * cfg.c (bb_copy_hasher): Likewise.
9102         * cselib.c (cselib_hasher): Likewise.
9103         * dse.c (invariant_group_base_hasher): Likewise.
9104         * dwarf2cfi.c (trace_info_hasher): Likewise.
9105         * dwarf2out.c (macinfo_entry_hasher): Likewise.
9106         (comdat_type_hasher, loc_list_hasher): Likewise.
9107         * gcse.c (pre_ldst_expr_hasher): Likewise.
9108         * genmatch.c (id_base): Likewise.
9109         * genrecog.c (test_pattern_hasher): Likewise.
9110         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
9111         * haifa-sched.c (delay_i1_hasher): Likewise.
9112         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
9113         * ipa-icf.h (congruence_class_group_hash): Likewise.
9114         * ipa-profile.c (histogram_hash): Likewise.
9115         * ira-color.c (allocno_hard_regs_hasher): Likewise.
9116         * lto-streamer.h (string_slot_hasher): Likewise.
9117         * lto-streamer.c (tree_entry_hasher): Likewise.
9118         * plugin.c (event_hasher): Likewise.
9119         * postreload-gcse.c (expr_hasher): Likewise.
9120         * store-motion.c (st_expr_hasher): Likewise.
9121         * tree-sra.c (uid_decl_hasher): Likewise.
9122         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
9123         (ssa_name_var_hash): Likewise.
9124         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
9125         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
9126         * tree-ssa-pre.c (pre_expr_d): Likewise.
9127         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
9128         * vtable-verify.h (registration_hasher): Likewise.
9129         * vtable-verify.c (vtbl_map_hasher): Likewise.
9130         * config/arm/arm.c (libcall_hasher): Likewise.
9131         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
9132         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
9133         * config/sol2.c (comdat_entry_hasher): Likewise.
9134         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
9135         (print_fold_checksum, fold_checksum_tree): Likewise.
9136         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
9137         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
9138         (fold_build_call_array_loc): Likewise.
9139         * tree-ssa-ccp.c (gimple_htab): Likewise.
9140         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
9141         rather than pointer_type.
9143 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9145         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
9146         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
9148 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9150         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
9151         (ggc_hasher::ggc_mx): Likewise.
9152         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
9153         that duplicate ggc_hasher ones.
9155 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9157         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
9158         (gt_cleare_cache): Check here for deleted and empty entries.
9159         Replace handle_cache_entry with a call to keep_cache_entry.
9160         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
9161         (ggc_cache_hasher::keep_cache_entry): New function.
9162         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
9163         (tm_wrapper_hasher::keep_cache_entry): New function.
9164         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
9165         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9166         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
9167         (type_cache_hasher::keep_cache_entry): New function.
9168         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
9169         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
9170         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
9171         (tree_type_map_cache_hasher::keep_cache_entry): New function.
9172         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
9173         (tm_clone_hasher::keep_cache_entry): New function.
9174         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
9175         (dllimport_hasher::keep_cache_entry): New function.
9177 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9179         * hash-table.h: Include hash-traits.h.
9180         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
9181         (ggc_cache_hasher): Move to...
9182         * hash-traits.h: ...this new file.
9184 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9186         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
9187         struct cl_optimization.
9188         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
9189         * tree.c (make_node_stat): Allocate cl_optimization struct.
9190         (copy_node_stat): Allocate and copy cl_optimization struct.
9192 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9194         * function.h (struct incoming_args): Move struct.
9195         (pass_by_reference, reference_callee_copied): Remove prototypes.
9196         * emit-rtl.h (struct incoming_args): Relocate struct here.
9197         * calls.h (pass_by_reference, reference_callee_copied): Relocate
9198         prototypes here.
9199         * function.c (pass_by_reference, reference_callee_copied): Move.
9200         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
9201         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
9202         * ipa-chkp.c: Include calls.h.
9204 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
9206         * alias.h (alias_set_type): Move typedef.
9207         * coretypes.h (alias_set_type): Relocate typedef here.
9208         * rtl.h: Don't include alias.h.
9210 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9212         * cgraph.h (cgraph_rtl_info): Move to rtl.h
9213         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
9214         and instance.
9215         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
9216         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
9217         doesn't exist.
9218         * calls.c: Include hard-reg-set.h before rtl.h.
9219         * ira.c: Likewise.
9221 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9222             Vladimir Makarov  <vmakarov@redhat.com>
9224         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
9225         Add assert.
9227 2015-06-25  Richard Biener  <rguenther@suse.de>
9229         * fold-const.c (fold_binary_loc): Move simplification of
9230         (X <<>> C1) & C2 ...
9231         * match.pd: ... here.
9233 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
9235         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
9237 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9239         * match.pd: Add patterns for vec_conds between 1 and 0.
9241 2015-06-25  Richard Biener  <rguenther@suse.de>
9243         * tree-vect-stmts.c (vectorizable_conversion): Do not set
9244         STMT_VINFO_VEC_STMT for SLP.
9245         (vectorizable_store): Likewise.
9246         (vectorizable_load): Likewise.
9247         (vect_transform_stmt): Catch SLP vectorization clobbering
9248         STMT_VINFO_VEC_STMT.
9250 2015-06-25  Richard Biener  <rguenther@suse.de>
9252         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
9253         dumping.
9254         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
9255         cleanup resulting dead code and parameters.
9256         (vect_transform_slp_perm_load): Adjust.
9258 2015-06-25  Nick Clifton  <nickc@redhat.com>
9260         * config/bfin/bfin.c (bfin_expand_prologue): Set
9261         current_function_static_stack_size if flag_stack_usage_info is set.
9262         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
9263         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
9264         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9265         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
9267 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9269         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
9270         comment that the generated IV is unsigned.
9272 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9274         PR target/29693
9275         * config/arm/arm.c (arm_dbx_register_number): Return
9276         DWARF_FRAME_REGISTERS by default.
9278 2015-06-25  Tom de Vries  <tom@codesourcery.com>
9280         * dominance.c (calculate_dominance_info): Fix verify_dominators call
9281         argument.  Call verify_dominator when reusing dominator info.
9283 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9285         PR target/66563
9286         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
9287         an additional element of the unspec vector.  Modify indices
9288         of operands.
9289         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
9290         * config/sh/sh.c (prepare_move_operands): Pass incremented
9291         const_int to gen_GOTaddr2picreg.
9292         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
9294 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9296         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
9297         Condition on TARGET_FLOAT.
9299 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9301         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
9302         and (no)crypto.
9304 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
9306         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
9308         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
9309         aarch64_err_no_fpadvsimd.
9311         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
9312         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
9313         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
9314         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
9315         Turn error into assert, test TARGET_FLOAT.
9316         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
9317         TARGET_FLOAT.
9319 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
9321         PR debug/66482
9322         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
9324 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
9326         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
9328 2015-06-24 Renlin Li <renlin.li@arm.com>
9330         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
9331         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
9333 2015-06-24  Richard Biener  <rguenther@suse.de>
9335         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
9336         (main): Likewise.
9337         (lower_opt_convert): Support lowering of conditional view_convert.
9338         (parser::parse_operation): Likewise.
9339         (parser::parse_for): Likewise.
9341 2015-06-24  Renlin Li  <renlin.li@arm.com>
9343         * varasm.c (emit_local): Use unsigned int for align variable.
9345 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9347         PR target/63408
9348         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
9349         for negative numbers.
9351 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9353         PR rtl-optimization/66306
9354         * reload.c (find_reloads): Swap the match_dup info for
9355         commutative operands.
9357 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9359         * config/s390/vx-builtins.md
9360         ("vec_scatter_element<mode>_<non_vec_int>")
9361         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
9362         attribute with bhfgq.
9364 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9366         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
9368 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9370         * config/s390/s390-builtin-types.def: Add flag to indicate the
9371         options under which the function type is needed.
9372         * config/s390/s390-builtins.def: Add flag to indicate the options
9373         under which the builtin is enabled.
9374         * config/s390/s390-builtins.h: Add flags parameter to macro
9375         definitions.
9376         (bflags_for_builtin): New function.
9377         (flags_for_builtin): Renamed to ...
9378         (opflags_for_builtin): ... this.
9379         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
9380         flags_for_builtin to bflags_for_builtin and
9381         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
9382         * config/s390/s390.c: Add initialization of bflags_builtin and
9383         opflags_builtin arrays.
9384         Remove code for flags_builtin.
9385         (s390_init_builtins): Only create builtin function types if one of
9386         their flags is active.
9387         Only create builtins if all of their flags are active.
9388         (s390_expand_builtin): Rename flags_for_builtin to
9389         opflags_for_builtin.
9391 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9393         * config/s390/vecintrin.h: Remove internal builtins.
9395 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9397         * config/s390/s390.c (s390_secondary_reload): Fix check for
9398         GENERAL_REGS register class.
9400 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9402         * config/s390/s390.c (s390_support_vector_misalignment): Call
9403         default implementation for !TARGET_VX.
9405 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9407         * config/s390/s390.c (s390_legitimate_constant_p): Add
9408         TARGET_VX check.
9410 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9412         * config/s390/s390.c (s390_vector_abi): New variable definition.
9413         (s390_check_type_for_vector_abi): New function.
9414         (TARGET_ASM_FILE_END): New macro definition.
9415         (s390_asm_file_end): New function.
9416         (s390_function_arg): Call s390_check_type_for_vector_abi.
9417         (s390_gimplify_va_arg): Likewise.
9418         * configure: Regenerate.
9419         * configure.ac: Check for .gnu_attribute Binutils feature.
9421 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
9423         PR target/65803
9424         * config/bfin/bfin.c (hwloop_optimize): Initialize
9425         JUMP_LABEL for newly created jump.
9427 2015-06-23  Tristan Gingold  <gingold@adacore.com>
9429         * collect-utils.c (collect_wait): Unlink the response file here
9430         instead of...
9431         (do_wait): ...here.
9432         (utils_cleanup): ...and here.
9434 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
9436         * df-scan.c: Don't include target-def.h.
9437         * targhooks.c: Likewise.
9438         * config/arm/arm-c.c: Likewise.
9439         * config/i386/i386-c.c: Likewise.
9440         * config/nds32/nds32-cost.c: Likewise.
9441         * config/nds32/nds32-fp-as-gp.c: Likewise.
9442         * config/nds32/nds32-intrinsic.c: Likewise.
9443         * config/nds32/nds32-isr.c: Likewise.
9444         * config/nds32/nds32-md-auxiliary.c: Likewise.
9445         * config/nds32/nds32-memory-manipulation.c: Likewise.
9446         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9447         * config/nds32/nds32-predicates.c: Likewise.
9449 2015-06-23  Richard Biener  <rguenther@suse.de>
9451         PR tree-optimization/66636
9452         * tree-vect-stmts.c (vectorizable_store): Properly compute the
9453         def type for further defs for strided stores.
9455 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
9457         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
9458         conditional selects.
9459         (setcc_int<mode>, setcc_float<mode>): Reformat.
9461 2015-06-23  Marek Polacek  <polacek@redhat.com>
9463         * match.pd ((x + y) - (x | y) -> x & y,
9464         (x + y) - (x & y) -> x | y): New patterns.
9466 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
9468         PR 65711
9469         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
9470         '-dynamic-linker' within %{!shared: ...}.
9472 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
9474         PR target/66560
9475         * config/i386/predicates.md (addsub_vm_operator): New predicate.
9476         (addsub_vs_operator): Ditto.
9477         (addsub_vs_parallel): Ditto.
9478         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
9479         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
9480         Put minus RTX before plus and adjust vec_merge selector.
9481         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
9482         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
9483         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
9484         (addsub vec_merge splitters): New combiner splitters.
9485         (addsub vec_select/vec_concat splitters): Ditto.
9487 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
9489         PR tree-optimization/66449
9490         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
9491         POINTER_PLUS_EXPR for pointers.
9493 2015-06-23  Alan Modra  <amodra@gmail.com>
9495         * rtlanal.c (commutative_operand_precedence): Correct comments.
9496         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
9497         declaration.  Return an int.  Distinguish REG,REG return from
9498         others.
9499         (struct simplify_plus_minus_op_data): Make local to function.
9500         (simplify_plus_minus): Don't set canonicalized if merely sorting
9501         registers.  Avoid packing ops if nothing changes.  White space fixes.
9503 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
9505         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
9506         -fdump-ada-spec is passed but not if -fsyntax-only is.
9508 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
9510         PR bootstrap/63740
9511         * lra-lives.c (process_bb_lives): Check insn copying the same
9512         reload pseudo and don't create a copy for it.
9514 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9516         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
9517         for cond_stmt.
9519 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9521         * builtins.def (DEF_GOMP_BUILTIN): Test
9522         'flag_tree_parallelize_loops > 1' instead of
9523         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
9525 2015-06-22  Tom de Vries  <tom@codesourcery.com>
9527         * dominance.c (calculate_dominance_info): Verify dominators if
9528         early-out.
9530 2015-06-22  Marek Polacek  <polacek@redhat.com>
9532         * match.pd ((x ^ y) ^ (x | y) -> x & y,
9533         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
9534         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
9535         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
9537 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
9539         PR target/65871
9540         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
9541         cost of embedded comparison.
9543 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9545         PR target/65914
9546         * config/rs6000/predicates.md (altivec_register_operand): Permit
9547         virtual stack registers.
9548         (vsx_register_operand): Likewise.
9549         (vfloat_operand): Likewise.
9550         (vint_operand): Likewise.
9551         (vlogical_operand): Likewise.
9553 2015-06-22  Richard Biener  <rguenther@suse.de>
9555         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
9556         and single_scalar_iteration_cost members.
9557         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
9558         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
9559         (vect_get_single_scalar_iteration_cost): Remove.
9560         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9561         Use LOOP_VINFO_SCALAR_ITERATION_COST.
9562         * tree-vect-loop.c (destroy_loop_vec_info): Free
9563         scalar_cost_vec.
9564         (vect_get_single_scalar_iteration_cost): Compute result into
9565         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
9566         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
9567         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
9568         (vect_estimate_min_profitable_iters): Use them.
9570 2015-06-22  Christian Bruel  <christian.bruel@st.com>
9572         PR target/52144
9573         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
9574         (TARGET_INSERT_ATTRIBUTES): Define.
9575         (thumb_flipper): New var.
9576         * config/arm/arm.opt (-mflip-thumb): New switch.
9578 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9579             Martin Liska  <mliska@suse.cz>
9581         PR ipa/65908
9582         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
9583         construction of arg_types.
9584         (sem_function::sem_function): Likewise.
9585         (sem_function::~sem_function): Remove destruction of arg_types.
9586         (sem_function::compatible_parm_types_p): New function.
9587         (sem_function::equals_wpa): Reorg matching of return values
9588         and parameter types.
9589         (sem_function::equals_private): Reorg mathcing of argument types.
9590         (sem_function::parse_tree_args): Remove.
9591         * ipa-icf.h (init_wpa): Do not call it.
9592         (parse_tree_args): Remove.
9593         (compatible_parm_types_p): Declare.
9594         (result_type): Remove.
9595         (arg_types): Remove.
9597 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
9599         PR ipa/66351
9600         * ipa-polymorphic-call.c
9601         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
9602         initializing alias oracle; fix formating; set base_alias_set if it
9603         is known.
9605 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
9607         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
9608         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
9609         (find_inc): Likewise.
9610         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
9611         swapping.
9612         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
9613         * df-scan.c (df_swap_refs): Remove.
9614         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
9615         * dominance.c (link_roots): Use std::swap instead of manually swapping.
9616         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
9617         * fold-const.c (fold_relational_const): Likewise.
9618         * genattrtab.c (simplify_test_exp): Likewise.
9619         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
9620         gimple_simplify): Likewise.
9621         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
9622         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
9623         * ipa-devirt.c (add_type_duplicate): Likewise.
9624         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
9625         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
9626         * lra.c (lra_create_copy): Likewise.
9627         * lto-streamer-out.c (DFS::DFS): Likewise.
9628         * modulo-sched.c (get_sched_window): Likewise.
9629         * omega.c (omega_pretty_print_problem): Likewise.
9630         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
9631         * reload1.c (reloads_unique_chain_p): Likewise.
9632         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
9633         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
9634         use std::swap.
9635         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
9636         manually swapping.
9637         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
9638         predicate_mem_writes): Likewise.
9639         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
9640         * tree-predcom.c (combine_chains): Likewise.
9641         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
9642         refs_may_alias_p_1): Likewise.
9643         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
9644         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9645         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
9646         number_of_iterations_cond): Likewise.
9647         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9648         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
9649         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9650         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
9651         * tree-vrp.c (extract_range_from_binary_expr_1,
9652         extract_range_from_unary_expr_1): Likewise.
9654 2015-06-20  Marek Polacek  <polacek@redhat.com>
9656         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
9658 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9660         PR target/66591
9661         * config/sh/sh.c (prepare_move_operands): Replace subreg
9662         index term with R0 for base and index addressing.
9664 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
9666         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
9667         op1 is an fp zero.
9668         (movsf_aarch64): Change condition from register_operand to
9669         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
9670         load1.  Change type for alternative 7 to store1.
9671         (movdf_aarch64): Likewise.
9673 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
9675         * config/vax/vax.md: Adjust sign/zero extend patterns to
9676         handle SUBREGs in operands[1].
9678 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9680         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
9681         of manually swapping.
9682         (expand_vec_perm_interleave2): Likewise.
9684 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
9686         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
9687         reuse bounds created for abnormal ssa names.
9689 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
9691         * config/nvptx/nvptx.md (allocate_stack): Rename to...
9692         (allocate_stack_<mode>): ... this, and add :P on both
9693         match_operand and unspec.
9694         (allocate_stack): New expander.
9696 2015-06-19  Christian Bruel  <christian.bruel@st.com>
9698         PR target/66541
9699         PR target/52144
9700         * config/arm/arm.c (arm_set_current_function): Handle
9701         explicit default options.
9703 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9705         * config/i386/i386.md (*movsicc_noc_zext): New insn.
9706         (zero-extended cmove with mem peephole2): New pattern.
9707         (cmove with mem peephole2): Merge patterns.
9709 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
9711         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
9713 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
9715         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
9716         * config/mips/mips.md (*madd4<mode>): Ditto.
9717         (*nmadd3<mode>) Ditto.
9718         (*nmadd4<mode>_fastmath): Ditto.
9719         (*nmadd3<mode>_fastmath): Ditto.
9720         (*nmsub4<mode>): Ditto.
9721         (*nmsub3<mode>): Ditto.
9722         (*nmsub4<mode>_fastmath): Ditto.
9723         (*nmsub3<mode>_fastmath): Ditto.
9725 2015-06-18  Michael Matz  <matz@suse.de>
9727         PR middle-end/66253
9728         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
9729         grouped strided stores.
9730         (vectorizable_load): Don't use the DR from first_stmt in
9731         the non-SLP grouped strided case.
9733 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9735         PR target/66569
9736         * function.c (assign_bounds): Add arguments assign_regs,
9737         assign_special, assign_bt.
9738         (assign_parms): For vararg functions handle bounds in BT
9739         and special slots after incoming vararg bounds.
9741 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9743         PR middle-end/66568
9744         * cfgexpand.c (expand_return): Handle missing bounds.
9745         (expand_gimple_stmt_1): Likewise.
9746         * tree-chkp.c (chkp_expand_zero_bounds): New.
9747         * tree-chkp.h (chkp_expand_zero_bounds): New.
9749 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9751         PR middle-end/66567
9752         * ipa-chkp.c (chkp_maybe_create_clone): Require
9753         functions to be instrumentable.
9754         * tree-chkp.c (chkp_replace_function_pointer): Use
9755         chkp_instrumentable_p instead of attribute check.
9757 2015-06-18  Richard Biener  <rguenther@suse.de>
9759         PR tree-optimization/66510
9760         * tree-vect-stmts.c (vectorizable_load): Properly compute the
9761         number of vector loads for SLP permuted loads.
9762         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
9763         check the stride for loop vectorization.
9764         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
9765         vectorization factor.
9766         (vect_analyze_group_access): If the group size is not a power
9767         of two require a epilogue loop.
9768         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
9769         compute and optimizing and alias test pruning after final
9770         vectorization factor computation.
9771         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
9772         vector alignment.
9773         (vect_transform_slp_perm_load): Properly compute the original
9774         number of vector load stmts.
9776 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
9778         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
9779         "unlikely character , in @var" warning.
9781 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
9783         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
9784         (ix86_function_arg_advance): Ditto.
9785         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
9787 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9789         * function.h (struct rtl_data): Remove struct and accessor macros.
9790         * emit-rtl.h (struct rtl_data): Relocate to here.
9791         * Makefile.in (GTFILES): Add emit-rtl.h.
9792         * df-core.c: Include emit-rtl.h.
9793         * genattrtab.c: Likewise.
9794         * genconditions.c: Likewise.
9795         * genpreds.c: Likewise.
9796         * genrecog.c: Likewise.
9797         * regcprop.c: Likewise.
9798         * resource.c: Likewise.
9799         * sched-rgn.c: Likewise.
9800         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9801         * config/i386/winnt.c: Likewise.
9803 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
9805         PR middle-end/66429
9806         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
9807         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
9808         and has_force_vectorize_loops flags from cfun into
9809         child_cfun.
9810         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
9811         if simduid is non-NULL.
9812         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
9813         * passes.def (pass_simduid_cleanup): Add new pass after loop
9814         passes.
9815         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
9816         indirection from htab argument's type.
9817         (shrink_simd_arrays): New function.
9818         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
9819         Don't call adjust_simduid_builtins if there are no loops.
9820         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
9821         (pass_simduid_cleanup::execute): New method.
9822         (make_pass_simduid_cleanup): New function.
9824 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
9826         * tree-core.h (tree_target_option): Make opts field a pointer to a
9827         cl_target_option instead of an instance of the struct.
9828         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
9829         the structure.
9830         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
9831         TARGET_OPTION_NODE.
9832         (copy_node_stat): Allocate and copy struct cl_target_option.
9834 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9836         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
9837         Remove conditional exposure of prototypes.
9838         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
9839         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
9840         definitions in tree.h with functions.
9841         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
9842         anon_aggrname_p.
9843         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
9845 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
9847         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
9848         (*cmp<mode>_signed): ... this.
9849         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
9850         (*cmp<mode>_unsigned): ... this.  Remove %b.
9852 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
9854         * coretypes.h: Include input.h and as-a.h.
9855         * rtl.h: Include input.h and as-a.h for generator files.
9856         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
9857         * vec.c: Don't include diagnostic-core.h.
9858         * alias.c: Do not include input.h, line-map.h or is-a.h.
9859         * asan.c: Likewise.
9860         * attribs.c: Likewise.
9861         * auto-inc-dec.c: Likewise.
9862         * auto-profile.c: Likewise.
9863         * bb-reorder.c: Likewise.
9864         * bt-load.c: Likewise.
9865         * builtins.c: Likewise.
9866         * caller-save.c: Likewise.
9867         * calls.c: Likewise.
9868         * ccmp.c: Likewise.
9869         * cfg.c: Likewise.
9870         * cfganal.c: Likewise.
9871         * cfgbuild.c: Likewise.
9872         * cfgcleanup.c: Likewise.
9873         * cfgexpand.c: Likewise.
9874         * cfghooks.c: Likewise.
9875         * cfgloop.c: Likewise.
9876         * cfgloop.h: Likewise.
9877         * cfgloopanal.c: Likewise.
9878         * cfgloopmanip.c: Likewise.
9879         * cfgrtl.c: Likewise.
9880         * cgraph.c: Likewise.
9881         * cgraphbuild.c: Likewise.
9882         * cgraphclones.c: Likewise.
9883         * cgraphunit.c: Likewise.
9884         * cilk-common.c: Likewise.
9885         * combine-stack-adj.c: Likewise.
9886         * combine.c: Likewise.
9887         * compare-elim.c: Likewise.
9888         * convert.c: Likewise.
9889         * coverage.c: Likewise.
9890         * cppbuiltin.c: Likewise.
9891         * cprop.c: Likewise.
9892         * cse.c: Likewise.
9893         * cselib.c: Likewise.
9894         * data-streamer-in.c: Likewise.
9895         * data-streamer-out.c: Likewise.
9896         * data-streamer.c: Likewise.
9897         * dbxout.c: Likewise.
9898         * dce.c: Likewise.
9899         * ddg.c: Likewise.
9900         * debug.c: Likewise.
9901         * df-core.c: Likewise.
9902         * df-problems.c: Likewise.
9903         * df-scan.c: Likewise.
9904         * df.h: Likewise.
9905         * dfp.c: Likewise.
9906         * diagnostic-core.h: Likewise.
9907         * diagnostic.c: Likewise.
9908         * dojump.c: Likewise.
9909         * dominance.c: Likewise.
9910         * domwalk.c: Likewise.
9911         * double-int.c: Likewise.
9912         * dse.c: Likewise.
9913         * dumpfile.c: Likewise.
9914         * dumpfile.h: Likewise.
9915         * dwarf2asm.c: Likewise.
9916         * dwarf2cfi.c: Likewise.
9917         * dwarf2out.c: Likewise.
9918         * emit-rtl.c: Likewise.
9919         * et-forest.c: Likewise.
9920         * except.c: Likewise.
9921         * explow.c: Likewise.
9922         * expmed.c: Likewise.
9923         * expr.c: Likewise.
9924         * final.c: Likewise.
9925         * fixed-value.c: Likewise.
9926         * fold-const.c: Likewise.
9927         * function.c: Likewise.
9928         * fwprop.c: Likewise.
9929         * gcc-plugin.h: Likewise.
9930         * gcse.c: Likewise.
9931         * generic-match-head.c: Likewise.
9932         * ggc-page.c: Likewise.
9933         * gimple-builder.c: Likewise.
9934         * gimple-expr.c: Likewise.
9935         * gimple-fold.c: Likewise.
9936         * gimple-iterator.c: Likewise.
9937         * gimple-low.c: Likewise.
9938         * gimple-match-head.c: Likewise.
9939         * gimple-pretty-print.c: Likewise.
9940         * gimple-ssa-isolate-paths.c: Likewise.
9941         * gimple-ssa-strength-reduction.c: Likewise.
9942         * gimple-streamer-in.c: Likewise.
9943         * gimple-streamer-out.c: Likewise.
9944         * gimple-streamer.h: Likewise.
9945         * gimple-walk.c: Likewise.
9946         * gimple.c: Likewise.
9947         * gimplify-me.c: Likewise.
9948         * gimplify.c: Likewise.
9949         * godump.c: Likewise.
9950         * graph.c: Likewise.
9951         * graphite-blocking.c: Likewise.
9952         * graphite-dependences.c: Likewise.
9953         * graphite-interchange.c: Likewise.
9954         * graphite-isl-ast-to-gimple.c: Likewise.
9955         * graphite-optimize-isl.c: Likewise.
9956         * graphite-poly.c: Likewise.
9957         * graphite-scop-detection.c: Likewise.
9958         * graphite-sese-to-poly.c: Likewise.
9959         * graphite.c: Likewise.
9960         * haifa-sched.c: Likewise.
9961         * hw-doloop.c: Likewise.
9962         * ifcvt.c: Likewise.
9963         * init-regs.c: Likewise.
9964         * input.c: Likewise.
9965         * internal-fn.c: Likewise.
9966         * ipa-chkp.c: Likewise.
9967         * ipa-comdats.c: Likewise.
9968         * ipa-cp.c: Likewise.
9969         * ipa-devirt.c: Likewise.
9970         * ipa-icf-gimple.c: Likewise.
9971         * ipa-icf.c: Likewise.
9972         * ipa-inline-analysis.c: Likewise.
9973         * ipa-inline-transform.c: Likewise.
9974         * ipa-inline.c: Likewise.
9975         * ipa-polymorphic-call.c: Likewise.
9976         * ipa-profile.c: Likewise.
9977         * ipa-prop.c: Likewise.
9978         * ipa-pure-const.c: Likewise.
9979         * ipa-ref.c: Likewise.
9980         * ipa-reference.c: Likewise.
9981         * ipa-split.c: Likewise.
9982         * ipa-utils.c: Likewise.
9983         * ipa-visibility.c: Likewise.
9984         * ipa.c: Likewise.
9985         * ira-build.c: Likewise.
9986         * ira-color.c: Likewise.
9987         * ira-conflicts.c: Likewise.
9988         * ira-costs.c: Likewise.
9989         * ira-emit.c: Likewise.
9990         * ira-lives.c: Likewise.
9991         * ira.c: Likewise.
9992         * jump.c: Likewise.
9993         * langhooks.c: Likewise.
9994         * lcm.c: Likewise.
9995         * loop-doloop.c: Likewise.
9996         * loop-init.c: Likewise.
9997         * loop-invariant.c: Likewise.
9998         * loop-iv.c: Likewise.
9999         * loop-unroll.c: Likewise.
10000         * lower-subreg.c: Likewise.
10001         * lra-assigns.c: Likewise.
10002         * lra-coalesce.c: Likewise.
10003         * lra-constraints.c: Likewise.
10004         * lra-eliminations.c: Likewise.
10005         * lra-lives.c: Likewise.
10006         * lra-remat.c: Likewise.
10007         * lra-spills.c: Likewise.
10008         * lra.c: Likewise.
10009         * lto-cgraph.c: Likewise.
10010         * lto-compress.c: Likewise.
10011         * lto-opts.c: Likewise.
10012         * lto-section-in.c: Likewise.
10013         * lto-section-out.c: Likewise.
10014         * lto-streamer-in.c: Likewise.
10015         * lto-streamer-out.c: Likewise.
10016         * lto-streamer.c: Likewise.
10017         * mcf.c: Likewise.
10018         * mode-switching.c: Likewise.
10019         * modulo-sched.c: Likewise.
10020         * omega.c: Likewise.
10021         * omp-low.c: Likewise.
10022         * optabs.c: Likewise.
10023         * opts-global.c: Likewise.
10024         * opts.h: Likewise.
10025         * passes.c: Likewise.
10026         * plugin.c: Likewise.
10027         * postreload-gcse.c: Likewise.
10028         * postreload.c: Likewise.
10029         * predict.c: Likewise.
10030         * pretty-print.h: Likewise.
10031         * print-rtl.c: Likewise.
10032         * print-tree.c: Likewise.
10033         * profile.c: Likewise.
10034         * real.c: Likewise.
10035         * realmpfr.c: Likewise.
10036         * recog.c: Likewise.
10037         * ree.c: Likewise.
10038         * reg-stack.c: Likewise.
10039         * regcprop.c: Likewise.
10040         * reginfo.c: Likewise.
10041         * regrename.c: Likewise.
10042         * regstat.c: Likewise.
10043         * reload.c: Likewise.
10044         * reload1.c: Likewise.
10045         * reorg.c: Likewise.
10046         * resource.c: Likewise.
10047         * rtl-chkp.c: Likewise.
10048         * rtl-error.c: Likewise.
10049         * rtlanal.c: Likewise.
10050         * rtlhooks.c: Likewise.
10051         * sanopt.c: Likewise.
10052         * sched-deps.c: Likewise.
10053         * sched-ebb.c: Likewise.
10054         * sched-rgn.c: Likewise.
10055         * sched-vis.c: Likewise.
10056         * sdbout.c: Likewise.
10057         * sel-sched-dump.c: Likewise.
10058         * sel-sched-ir.c: Likewise.
10059         * sel-sched.c: Likewise.
10060         * sese.c: Likewise.
10061         * shrink-wrap.c: Likewise.
10062         * simplify-rtx.c: Likewise.
10063         * stack-ptr-mod.c: Likewise.
10064         * statistics.c: Likewise.
10065         * stmt.c: Likewise.
10066         * stor-layout.c: Likewise.
10067         * store-motion.c: Likewise.
10068         * streamer-hooks.c: Likewise.
10069         * stringpool.c: Likewise.
10070         * symtab.c: Likewise.
10071         * target-globals.c: Likewise.
10072         * targhooks.c: Likewise.
10073         * toplev.c: Likewise.
10074         * tracer.c: Likewise.
10075         * trans-mem.c: Likewise.
10076         * tree-affine.c: Likewise.
10077         * tree-browser.c: Likewise.
10078         * tree-call-cdce.c: Likewise.
10079         * tree-cfg.c: Likewise.
10080         * tree-cfgcleanup.c: Likewise.
10081         * tree-chkp-opt.c: Likewise.
10082         * tree-chkp.c: Likewise.
10083         * tree-chrec.c: Likewise.
10084         * tree-complex.c: Likewise.
10085         * tree-data-ref.c: Likewise.
10086         * tree-dfa.c: Likewise.
10087         * tree-diagnostic.c: Likewise.
10088         * tree-dump.c: Likewise.
10089         * tree-eh.c: Likewise.
10090         * tree-emutls.c: Likewise.
10091         * tree-if-conv.c: Likewise.
10092         * tree-inline.c: Likewise.
10093         * tree-into-ssa.c: Likewise.
10094         * tree-iterator.c: Likewise.
10095         * tree-loop-distribution.c: Likewise.
10096         * tree-nested.c: Likewise.
10097         * tree-nrv.c: Likewise.
10098         * tree-object-size.c: Likewise.
10099         * tree-outof-ssa.c: Likewise.
10100         * tree-parloops.c: Likewise.
10101         * tree-phinodes.c: Likewise.
10102         * tree-predcom.c: Likewise.
10103         * tree-pretty-print.c: Likewise.
10104         * tree-profile.c: Likewise.
10105         * tree-scalar-evolution.c: Likewise.
10106         * tree-sra.c: Likewise.
10107         * tree-ssa-address.c: Likewise.
10108         * tree-ssa-alias.c: Likewise.
10109         * tree-ssa-ccp.c: Likewise.
10110         * tree-ssa-coalesce.c: Likewise.
10111         * tree-ssa-copy.c: Likewise.
10112         * tree-ssa-copyrename.c: Likewise.
10113         * tree-ssa-dce.c: Likewise.
10114         * tree-ssa-dom.c: Likewise.
10115         * tree-ssa-dse.c: Likewise.
10116         * tree-ssa-forwprop.c: Likewise.
10117         * tree-ssa-ifcombine.c: Likewise.
10118         * tree-ssa-live.c: Likewise.
10119         * tree-ssa-loop-ch.c: Likewise.
10120         * tree-ssa-loop-im.c: Likewise.
10121         * tree-ssa-loop-ivcanon.c: Likewise.
10122         * tree-ssa-loop-ivopts.c: Likewise.
10123         * tree-ssa-loop-manip.c: Likewise.
10124         * tree-ssa-loop-niter.c: Likewise.
10125         * tree-ssa-loop-prefetch.c: Likewise.
10126         * tree-ssa-loop-unswitch.c: Likewise.
10127         * tree-ssa-loop.c: Likewise.
10128         * tree-ssa-math-opts.c: Likewise.
10129         * tree-ssa-operands.c: Likewise.
10130         * tree-ssa-phiopt.c: Likewise.
10131         * tree-ssa-phiprop.c: Likewise.
10132         * tree-ssa-pre.c: Likewise.
10133         * tree-ssa-propagate.c: Likewise.
10134         * tree-ssa-reassoc.c: Likewise.
10135         * tree-ssa-sccvn.c: Likewise.
10136         * tree-ssa-scopedtables.c: Likewise.
10137         * tree-ssa-sink.c: Likewise.
10138         * tree-ssa-strlen.c: Likewise.
10139         * tree-ssa-structalias.c: Likewise.
10140         * tree-ssa-tail-merge.c: Likewise.
10141         * tree-ssa-ter.c: Likewise.
10142         * tree-ssa-threadedge.c: Likewise.
10143         * tree-ssa-threadupdate.c: Likewise.
10144         * tree-ssa-uncprop.c: Likewise.
10145         * tree-ssa-uninit.c: Likewise.
10146         * tree-ssa.c: Likewise.
10147         * tree-ssanames.c: Likewise.
10148         * tree-stdarg.c: Likewise.
10149         * tree-streamer-in.c: Likewise.
10150         * tree-streamer-out.c: Likewise.
10151         * tree-streamer.c: Likewise.
10152         * tree-switch-conversion.c: Likewise.
10153         * tree-tailcall.c: Likewise.
10154         * tree-vect-data-refs.c: Likewise.
10155         * tree-vect-generic.c: Likewise.
10156         * tree-vect-loop-manip.c: Likewise.
10157         * tree-vect-loop.c: Likewise.
10158         * tree-vect-patterns.c: Likewise.
10159         * tree-vect-slp.c: Likewise.
10160         * tree-vect-stmts.c: Likewise.
10161         * tree-vectorizer.c: Likewise.
10162         * tree-vrp.c: Likewise.
10163         * tree.c: Likewise.
10164         * tsan.c: Likewise.
10165         * ubsan.c: Likewise.
10166         * valtrack.c: Likewise.
10167         * value-prof.c: Likewise.
10168         * var-tracking.c: Likewise.
10169         * varasm.c: Likewise.
10170         * varpool.c: Likewise.
10171         * vmsdbgout.c: Likewise.
10172         * vtable-verify.c: Likewise.
10173         * web.c: Likewise.
10174         * wide-int.cc: Likewise.
10175         * xcoffout.c: Likewise.
10176         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
10177         * common/common-targhooks.c: Likewise.
10178         * config/aarch64/aarch64-builtins.c: Likewise.
10179         * config/aarch64/aarch64.c: Likewise.
10180         * config/alpha/alpha.c: Likewise.
10181         * config/arc/arc.c: Likewise.
10182         * config/arm/aarch-common.c: Likewise.
10183         * config/arm/arm-builtins.c: Likewise.
10184         * config/arm/arm-c.c: Likewise.
10185         * config/arm/arm.c: Likewise.
10186         * config/avr/avr-c.c: Likewise.
10187         * config/avr/avr-log.c: Likewise.
10188         * config/avr/avr.c: Likewise.
10189         * config/bfin/bfin.c: Likewise.
10190         * config/c6x/c6x.c: Likewise.
10191         * config/cr16/cr16.c: Likewise.
10192         * config/cris/cris.c: Likewise.
10193         * config/darwin-c.c: Likewise.
10194         * config/darwin.c: Likewise.
10195         * config/default-c.c: Likewise.
10196         * config/epiphany/epiphany.c: Likewise.
10197         * config/epiphany/mode-switch-use.c: Likewise.
10198         * config/epiphany/resolve-sw-modes.c: Likewise.
10199         * config/fr30/fr30.c: Likewise.
10200         * config/frv/frv.c: Likewise.
10201         * config/ft32/ft32.c: Likewise.
10202         * config/glibc-c.c: Likewise.
10203         * config/h8300/h8300.c: Likewise.
10204         * config/i386/i386-c.c: Likewise.
10205         * config/i386/i386.c: Likewise.
10206         * config/i386/msformat-c.c: Likewise.
10207         * config/i386/winnt-cxx.c: Likewise.
10208         * config/i386/winnt-stubs.c: Likewise.
10209         * config/i386/winnt.c: Likewise.
10210         * config/ia64/ia64-c.c: Likewise.
10211         * config/ia64/ia64.c: Likewise.
10212         * config/iq2000/iq2000.c: Likewise.
10213         * config/lm32/lm32.c: Likewise.
10214         * config/m32c/m32c-pragma.c: Likewise.
10215         * config/m32c/m32c.c: Likewise.
10216         * config/m32r/m32r.c: Likewise.
10217         * config/m68k/m68k.c: Likewise.
10218         * config/mcore/mcore.c: Likewise.
10219         * config/mep/mep-pragma.c: Likewise.
10220         * config/mep/mep.c: Likewise.
10221         * config/microblaze/microblaze-c.c: Likewise.
10222         * config/microblaze/microblaze.c: Likewise.
10223         * config/mips/mips.c: Likewise.
10224         * config/mmix/mmix.c: Likewise.
10225         * config/mn10300/mn10300.c: Likewise.
10226         * config/moxie/moxie.c: Likewise.
10227         * config/msp430/msp430-c.c: Likewise.
10228         * config/msp430/msp430.c: Likewise.
10229         * config/nds32/nds32-cost.c: Likewise.
10230         * config/nds32/nds32-fp-as-gp.c: Likewise.
10231         * config/nds32/nds32-intrinsic.c: Likewise.
10232         * config/nds32/nds32-isr.c: Likewise.
10233         * config/nds32/nds32-md-auxiliary.c: Likewise.
10234         * config/nds32/nds32-memory-manipulation.c: Likewise.
10235         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10236         * config/nds32/nds32-predicates.c: Likewise.
10237         * config/nds32/nds32.c: Likewise.
10238         * config/nios2/nios2.c: Likewise.
10239         * config/nvptx/nvptx.c: Likewise.
10240         * config/pa/pa.c: Likewise.
10241         * config/pdp11/pdp11.c: Likewise.
10242         * config/rl78/rl78-c.c: Likewise.
10243         * config/rl78/rl78.c: Likewise.
10244         * config/rs6000/rs6000-c.c: Likewise.
10245         * config/rs6000/rs6000.c: Likewise.
10246         * config/rx/rx.c: Likewise.
10247         * config/s390/s390-c.c: Likewise.
10248         * config/s390/s390.c: Likewise.
10249         * config/sh/sh-c.c: Likewise.
10250         * config/sh/sh-mem.cc: Likewise.
10251         * config/sh/sh.c: Likewise.
10252         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10253         * config/sh/sh_treg_combine.cc: Likewise.
10254         * config/sol2-c.c: Likewise.
10255         * config/sol2-cxx.c: Likewise.
10256         * config/sol2-stubs.c: Likewise.
10257         * config/sol2.c: Likewise.
10258         * config/sparc/sparc-c.c: Likewise.
10259         * config/sparc/sparc.c: Likewise.
10260         * config/spu/spu-c.c: Likewise.
10261         * config/spu/spu.c: Likewise.
10262         * config/stormy16/stormy16.c: Likewise.
10263         * config/tilegx/mul-tables.c: Likewise.
10264         * config/tilegx/tilegx-c.c: Likewise.
10265         * config/tilegx/tilegx.c: Likewise.
10266         * config/tilepro/mul-tables.c: Likewise.
10267         * config/tilepro/tilepro-c.c: Likewise.
10268         * config/tilepro/tilepro.c: Likewise.
10269         * config/v850/v850-c.c: Likewise.
10270         * config/v850/v850.c: Likewise.
10271         * config/vax/vax.c: Likewise.
10272         * config/visium/visium.c: Likewise.
10273         * config/vms/vms-c.c: Likewise.
10274         * config/vms/vms.c: Likewise.
10275         * config/vxworks.c: Likewise.
10276         * config/winnt-c.c: Likewise.
10277         * config/xtensa/xtensa.c: Likewise.
10279 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
10281         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
10282         function.
10283         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
10285 2015-06-17  Richard Biener  <rguenther@suse.de>
10287         PR tree-optimization/66251
10288         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
10289         stmts for SLP strided stores.
10291         Revert
10292         2015-05-22  Richard Biener  <rguenther@suse.de>
10294         PR tree-optimization/66251
10295         * tree-vect-stmts.c (vectorizable_conversion): Properly
10296         set STMT_VINFO_VEC_STMT even for the SLP case.
10298         2015-05-26  Michael Matz  <matz@suse.de>
10300         PR middle-end/66251
10301         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
10302         STMT_VINFO_VEC_STMT, also with SLP.
10304 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
10306         PR target/56766
10307         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
10308         (*avx_addsubv4df3_1s): Ditto.
10309         (*sse3_addsubv2df3_1): Ditto.
10310         (*sse3_addsubv2df3_1s): Ditto.
10311         (*avx_addsubv8sf3_1): Ditto.
10312         (*avx_addsubv8sf3_1s): Ditto.
10313         (*sse3_addsubv4sf3_1): Ditto.
10314         (*sse3_addsubv4sf3_1s): Ditto.
10316 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
10318         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
10319         (SYSROOT_SUFFIX_SPEC): Update.
10320         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
10321         (STARTFILE_PREFIX_SPEC): Update.
10322         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
10323         (MULTILIB_REQUIRED): New.
10324         (MULTILIB_OSDIRNAMES): New.
10325         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
10326         (MULTILIB_REQUIRED): New.
10327         (MULTILIB_OSDIRNAMES): New.
10329 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
10331         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
10332         * config/aarch64/aarch64-options-extensions.def: Update "fP",
10333         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
10334         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
10335         (AARCH64_FL_PAN): New.
10336         (AARCH64_FL_LOR): New.
10337         (AARCH64_FL_RDMA): New.
10338         (AARCH64_FL_FOR_ARCH8_1): New.
10339         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
10340         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
10342 2015-06-16  Martin Liska  <mliska@suse.cz>
10344         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
10345         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
10346         guard.
10348 2015-06-16  Richard Biener  <rguenther@suse.de>
10350         * tree-vect-stmts.c (vectorizable_store): Adjust.
10351         (vectorizable_load): Likewise.
10352         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10353         Simplify.
10354         (vect_create_data_ref_ptr): Likewise.
10355         (bump_vector_ptr): Adjust.
10357 2015-06-16  Richard Biener  <rguenther@suse.de>
10359         * tree-vect-stmts.c (vectorizable_load): Properly start loads
10360         with the first element if this is grouped loads.
10362 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
10364         * config/arm/arm-protos.h (struct tune_params): Rename
10365         log_op_non_sc to log_op_non_short_circuit, and rename enum
10366         values to expand SC to SHORT_CIRCUIT.
10367         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
10368         to LOG_OP_NON_SHORT_CIRCUIT.
10369         (arm_fastmul_tune):Likewise
10370         (arm_strongarm_tune): Likewise.
10371         (arm_xscale_tune): Likewise.
10372         (arm_9e_tune): Likewise.
10373         (arm_marvell_pj4_tune): Likewise.
10374         (arm_v6t2_tune): Likewise.
10375         (arm_cortex_tune): Likewise.
10376         (arm_cortex_a8_tune): Likewise.
10377         (arm_cortex_a7_tune): Likewise.
10378         (arm_cortex_a15_tune): Likewise.
10379         (arm_cortex_a53_tune): Likewise.
10380         (arm_cortex_a57_tune): Likewise.
10381         (arm_xgene1_tune): Likewise.
10382         (arm_cortex_a5_tune): Likewise.
10383         (arm_cortex_a9_tune): Likewise.
10384         (arm_cortex_a12_tune): Likewise.
10385         (arm_v7m_tune): Likewise.
10386         (arm_cortex_m7_tune): Likewise.
10387         (arm_v6m_tune): Likewise.
10388         (arm_fa726te_tune): Likewise.
10390 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
10392         * altivec.md: Delete UNSPEC_VMLADDUHM.
10393         (mulv4si3_p8): New pattern.
10394         (mulv4si3): Use it for POWER8.
10395         (mulv8hi3): Use vmladduhm with zero addend.
10396         (altivec_vmladduhm): Descriptive RTL.
10398 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
10400         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
10401         to use neon_move instead of mov_imm.
10402         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
10403         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
10405         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
10406         aarch64_float_const_zero_rtx_p check before TFmode check.
10407         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
10408         an fp zero.
10409         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
10410         code and attributes to match.  Change condition from register_operand
10411         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
10412         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
10413         to store2.
10415 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
10417         PR debug/66535
10418         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
10419         there is no parent.
10421 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
10423         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
10424         HOST_WIDE_INT parameter.
10426 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
10428         PR ipa/66181
10429         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
10430         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
10431         TYPE_NO_FORCE_BLK.
10432         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
10434 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
10436         * rtl.h (classify_insn): Declare.
10437         * emit-rtl.c (classify_insn): Move to...
10438         * rtl.c: ...here and add generator support.
10439         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
10440         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
10441         * genemit.c (gen_emit_seq): New function.
10442         (gen_expand, gen_split): Use it.
10444 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
10446         * tree.c (make_vector_stat): Fix comment to state that the
10447         function returns a VECTOR_CST.
10449 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
10451         * gensupport.h (add_implicit_parallel): Declare.
10452         * genrecog.c (add_implicit_parallel): Move to...
10453         * gensupport.c (add_implicit_parallel): ...here.
10454         (process_one_cond_exec): Use it.
10455         * genemit.c (gen_insn): Likewise.
10457 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
10459         PR bootstrap/66448
10460         * passes.c (rest_of_decl_compilation): Do not register globals for
10461         early debug if they are declared in built-ins.
10463 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
10465         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
10467 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10469         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
10470         manually swapping.
10471         (noce_try_cmove_arith): Likewise.
10472         (noce_get_alt_condition): Likewise.
10474 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10476         * common/config/i386/i386-common.c
10477         (OPTION_MASK_ISA_MWAITX_SET): New.
10478         (ix86_handle_option): Handle mwaitx.
10479         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
10480         (x86_64-*-*): Likewise.
10481         * config/i386/mwaitxintrin.h: New header.
10482         * config/i386/cpuid.h (bit_MWAITX):  Define.
10483         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10484         MWAITX support.
10485         * config/i386/i386.opt (mwaitx): New.
10486         * config/i386/i386-builtin-types.def
10487         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
10488         * config/i386/i386-c.c: Define __MWAITX__ if needed.
10489         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
10490         (PTA_MWAITX): New.
10491         (ix86_option_override_internal): Handle new option.
10492         (processor_alias_table): Added PTA_MWAITX.
10493         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
10494         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
10495         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
10496         IX86_BUILTIN_MONITORX  built-ins.
10497         * config/i386/i386.h (TARGET_MWAITX): New.
10498         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
10499         UNSPEC_MONITORX.
10500         (mwaitx):  New pattern.
10501         (monitorx_<mode>): New pattern.
10502         * config/i386/x86intrin.h: Include mwaitxintrin.h.
10503         * doc/extend.texi: Document monitorx and mwaitx builtins.
10504         * doc/invoke.texi: Document -mmwaitx option.
10506 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
10508         * emit-rtl.c (need_atomic_barrier_p): Mask model with
10509         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
10511 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10513         * dbxout.c (xcoff_debug_hooks): Provide a function for
10514         register_main_translation_unit hook.
10516 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
10518         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
10519         variants cases from switch.
10520         (rs6000_post_atomic_barrier): Same.
10521         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
10522         (rs6000_expand_atomic_exchange): Same.
10523         (rs6000_expand_atomic_op): Same.
10524         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
10525         SYNC variants cases from switch.
10526         (atomic_load): Same.
10527         (atomic_store): Same.
10529 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
10531         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
10532         CONST_INT for goto.
10534 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
10536         PR bootstrap/66448
10537         * dwarf2out.c (check_die): Check for common duplicate attributes.
10538         (add_location_or_const_value_attribute): Do not add duplicate
10539         attributes.
10540         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
10541         time around.
10542         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
10543         (gen_type_die_with_usage): Call check_die.
10544         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
10546 2015-06-11  Jason Merrill  <jason@redhat.com>
10548         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
10549         dies.
10551 2015-06-11  Marek Polacek  <polacek@redhat.com>
10553         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
10555 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10557         PR bootstrap/66252
10558         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
10559         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
10560         (*addx_extend_sp32): Fix pasto.
10561         (*subx_extend): Rename into...
10562         (*subx_extend_sp32): ...this.
10563         (*adddi3_extend_sp32): Add earlyclobber.
10564         (*subdi3_insn_sp32): Likewise.
10565         (*subdi3_extend_sp32): Likewise.
10566         (*and_not_di_sp32): Likewise.
10567         (*or_not_di_sp32): Likewise.
10568         (*xor_not_di_sp32): Likewise.
10569         (*negdi2_sp32): Likewise.
10570         (*one_cmpldi2_sp32): Likewise.
10572 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
10574         * debug.h (struct gcc_debug_hooks): Add a
10575         register_main_translation_unit hook.
10576         * debug.c (do_nothing_debug_hooks): Provide a function for this
10577         new hook.
10578         * dbxout.c (dbx_debug_hooks): Likewise.
10579         * sdbout.c (sdb_debug_hooks): Likewise.
10580         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10581         * dwarf2out.c (main_translation_unit): New global variable.
10582         (dwarf2out_register_main_translation_unit): New function
10583         implementing the new hook.
10584         (dwarf2_debug_hooks): Assign
10585         dwarf2out_register_main_translation_unit to this new hook.
10586         (dwarf2out_init): Associate any main translation unit to
10587         comp_unit_die ().
10589 2015-06-11  Marek Polacek  <polacek@redhat.com>
10591         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
10593 2015-06-11  Marek Polacek  <polacek@redhat.com>
10595         * match.pd: Use single_use throughout.
10597 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10599         * config/arm/arm.c (arm_option_params_internal): When optimising
10600         for speed set max_insns_skipped when arm_restrict_it.
10602 2015-06-11  Christian Bruel  <christian.bruel@st.com>
10604         PR target/52144
10605         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
10606          macros in ...
10607         (arm_cpu_builtins): New function.
10608         (arm_pragma_target_parse): Call arm_cpu_builtins.
10609         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
10610         (arm_register_target_pragmas): Likewise.
10611         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
10612          Call arm_register_target_pragmas.
10613         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
10614         (arm_pragma_target_parse): Likewise.
10616 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10618         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
10619         of the second operand.
10621 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
10623         PR target/66473
10624         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
10625         to prepare mask operand for AVX512 modes.
10627 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
10629         PR target/66474
10630         * doc/md.texi (Machine Constraints): Document that on the PowerPC
10631         if you use a constraint that targets a VSX register, you must use
10632         %x<n> in the template.
10634 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
10636         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
10637         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
10638         (define_insn "trap"): New definition.
10640 2015-06-10  Richard Biener  <rguenther@suse.de>
10642         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
10643         out from ...
10644         (vect_supported_load_permutation_p): ... here.  Handle
10645         supportable permutations in reductions.
10646         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
10647         for vectorizing strided group loads.
10649 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
10651         PR target/66470
10652         * config/i386/i386.c (ix86_split_long_move): For collisions
10653         involving direct tls segment refs, move the UNSPEC_TP possibly
10654         wrapped in ZERO_EXTEND out of the address for lea, to each of
10655         the memory loads.
10657 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10659         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
10660         dmb sy. Adjust tabs.
10662 2015-06-10  Tom de Vries  <tom@codesourcery.com>
10664         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
10666 2015-06-10  Martin Liska  <mliska@suse.cz>
10668         PR bootstrap/66471
10669         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
10670         all enum values in mem_alloc_origin.
10671         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
10672         name.
10673         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
10674         * bitmap.c (bitmap_register): Likewise.
10675         (dump_bitmap_statistics): Likewise.
10676         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
10677         (ggc_record_overhead): Likewise.
10678         * hash-map.h: Likewise.
10679         * hash-set.h: Likewise.
10680         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
10681         * hash-table.h: Likewise.
10682         * vec.c (vec_prefix::register_overhead): Likewise.
10683         (vec_prefix::release_overhead): Likewise.
10684         (dump_vec_loc_statistics): Likewise.
10686 2015-06-09  Christian Bruel  <christian.bruel@st.com>
10688         PR target/52144
10689         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
10690         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
10691         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
10692         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
10693         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
10694         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
10695         (arm_valid_target_attribute_p): Likewise.
10696         (arm_set_current_function, arm_can_inline_p): Likewise.
10697         (arm_valid_target_attribute_rec): Likewise.
10698         (arm_previous_fndecl): New variable.
10699         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
10700         (TARGET_CAN_INLINE_P): Define.
10701         (arm_asm_trampoline_template): Emit mode.
10702         (arm_file_start): Don't set unified syntax.
10703         (arm_declare_function_name): Set unified syntax and mode.
10704         (arm_option_override): Init target_option_default_node.
10705         and target_option_current_node.
10706         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
10707         (*call_symbol): Likewise.
10708         * doc/extend.texi: Document ARM/Thumb target attribute.
10709         * doc/invoke.texi: Likewise.
10711 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10713         Revert:
10714         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10715         PR rtl-optimization/64164
10716         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10717         * tree-ssa-copyrename.c: Removed.
10718         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10719         -ftree-coalesce-vars.
10720         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10721         * common.opt (ftree-copyrename): Ignore.
10722         (ftree-coalesce-inlined-vars): Likewise.
10723         * doc/invoke.texi: Remove the ignored options above.
10724         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10725         * tree-ssa-coalesce.h: ... here.
10726         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10727         headers required by it.
10728         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10729         across variables when flag_tree_coalesce_vars.  Check register
10730         use and promoted modes to allow coalescing.  Moved to
10731         tree-ssa-coalesce.c.
10732         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10733         with its member functions to tree-ssa-coalesce.c.
10734         (var_map_base_init): Likewise.  Renamed to
10735         compute_samebase_partition_bases.
10736         (partition_view_normal): Drop want_bases parameter.
10737         (partition_view_bitmap): Likewise.
10738         * tree-ssa-live.h: Adjust declarations.
10739         * tree-ssa-coalesce.c: Include explow.h.
10740         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10741         default defs at the entry point.
10742         (dump_part_var_map): New.
10743         (compute_optimized_partition_bases): New, called by...
10744         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10745         of compute_samebase_partition_bases.  Adjust.
10746         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10747         * cfgexpand.c (leader_merge): New.
10748         (get_rtl_for_parm_ssa_default_def): New.
10749         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10750         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10751         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10752         redundant MEM attr setting.
10753         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10754         from...
10755         (expand_one_stack_var): ... this.  New wrapper to check and
10756         skip already expanded SSA partitions.
10757         (record_alignment_for_reg_var): New, factored out of...
10758         (expand_one_var): ... this.
10759         (expand_one_ssa_partition): New.
10760         (adjust_one_expanded_partition_var): New.
10761         (expand_one_register_var): Check and skip already expanded SSA
10762         partitions.
10763         (expand_used_vars): Don't create DECLs for anonymous SSA
10764         names.  Expand all SSA partitions, then adjust all SSA names.
10765         (pass::execute): Replace the loops that set
10766         SA.partition_to_pseudo from partition leaders and cleared
10767         DECL_RTL for multi-location variables, and that which used to
10768         rename vars and set attrs, with one that clears DECL_RTL and
10769         checks that PARMs and RESULTs default_defs match DECL_RTL.
10770         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10771         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10772         * explow.c (promote_ssa_mode): New.
10773         * explow.h (promote_ssa_mode): Declare.
10774         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10775         * function.c: Include cfgexpand.h.
10776         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10777         (use_register_for_parm_decl): Wrapper for the above to
10778         special-case the result_ptr.
10779         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10780         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10781         multiple locations.
10782         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10783         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10784         (assign_parm_setup_block): Prefer SSA-assigned location.
10785         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10786         if stack_parm is NULL.
10787         (assign_parm_setup_stack): Prefer SSA-assigned location.
10788         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10789         rtl before testing for pointer bounds.  Special-case result_ptr.
10790         (expand_function_start): Maybe reset DECL_RTL of result.
10791         Prefer SSA-assigned location for result and static chain.
10792         Factor out DECL_RESULT and SET_DECL_RTL.
10793         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10794         anonymous SSA names.  Use promote_ssa_mode.
10795         (get_temp_reg): Likewise.
10796         (remove_ssa_form): Adjust.
10797         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10798         and get its reg_usage for reg invalidation.
10799         (compute_bb_dataflow): Pass it insn.
10800         (emit_notes_in_bb): Likewise.
10801         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10802         fail assert on conversion between unsigned types.
10804 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10806         PR tree-optimization/65460
10807         * omp-low.c (expand_omp_target): Set parallelized_function on
10808         cgraph_node for child_fn.
10810 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10812         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
10813         parallelized_function before add_new_function.
10815 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
10817         * gcc-plugin.h: Move decls to plugin.h and include it.
10818         * plugin.h: Relocate decls from gcc-plugin.h
10819         * ggc-page.c: Include required header files.
10820         * passes.c: Likewise.
10821         * cgraphunit.c: Likewise.
10823 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10825         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
10827 2015-06-09  Jason Merrill  <jason@redhat.com>
10829         PR bootstrap/66448
10830         * toplev.c (check_global_declaration): Don't warn about a clone.
10832 2015-06-09  Marek Polacek  <polacek@redhat.com>
10834         PR tree-optimization/66299
10835         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
10836         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
10837         patterns.
10839 2015-06-09  Richard Biener  <rguenther@suse.de>
10841         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
10842         (vect_analyze_slp_instance): Instead do not falsely drop
10843         load permutations.
10845 2015-06-09  Richard Biener  <rguenther@suse.de>
10847         PR middle-end/66423
10848         * match.pd: Handle A % (unsigned)(1 << B).
10850 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
10852         * varasm.c (output_object_block_htab): Remove.
10853         (output_object_block_compare): New.
10854         (output_object_blocks): Sort named object_blocks before outputting
10855         them.
10857 2015-06-09  Richard Biener  <rguenther@suse.de>
10859         PR tree-optimization/66419
10860         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
10861         consider GROUP_GAP when detecting a perfect subchain.
10863 2015-06-09  Nick Clifton  <nickc@redhat.com>
10865         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
10866         place read only data in the .frodata section.
10868 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
10870         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
10871         (atomic_store<mode>): Likewise.
10873 2015-06-09  Richard Biener  <rguenther@suse.de>
10875         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
10877 2015-06-09  Richard Biener  <rguenther@suse.de>
10879         PR middle-end/66413
10880         * tree-inline.c (insert_init_debug_bind): Unshare value.
10882 2015-06-09  Richard Biener  <rguenther@suse.de>
10884         PR tree-optimization/66396
10885         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
10886         Rename virtual operands.
10888 2015-06-09  Tom de Vries  <tom@codesourcery.com>
10890         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
10891         always return false.
10893 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10895         PR rtl-optimization/64164
10896         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10897         * tree-ssa-copyrename.c: Removed.
10898         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
10899         -ftree-coalesce-vars.
10900         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10901         * common.opt (ftree-copyrename): Ignore.
10902         (ftree-coalesce-inlined-vars): Likewise.
10903         * doc/invoke.texi: Remove the ignored options above.
10904         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10905         * tree-ssa-coalesce.h: ... here.
10906         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10907         headers required by it.
10908         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10909         across variables when flag_tree_coalesce_vars.  Check register
10910         use and promoted modes to allow coalescing.  Moved to
10911         tree-ssa-coalesce.c.
10912         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10913         with its member functions to tree-ssa-coalesce.c.
10914         (var_map_base_init): Likewise.  Renamed to
10915         compute_samebase_partition_bases.
10916         (partition_view_normal): Drop want_bases parameter.
10917         (partition_view_bitmap): Likewise.
10918         * tree-ssa-live.h: Adjust declarations.
10919         * tree-ssa-coalesce.c: Include explow.h.
10920         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10921         default defs at the entry point.
10922         (dump_part_var_map): New.
10923         (compute_optimized_partition_bases): New, called by...
10924         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10925         of compute_samebase_partition_bases.  Adjust.
10926         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10927         * cfgexpand.c (leader_merge): New.
10928         (get_rtl_for_parm_ssa_default_def): New.
10929         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10930         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10931         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
10932         redundant MEM attr setting.
10933         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
10934         from...
10935         (expand_one_stack_var): ... this.  New wrapper to check and
10936         skip already expanded SSA partitions.
10937         (record_alignment_for_reg_var): New, factored out of...
10938         (expand_one_var): ... this.
10939         (expand_one_ssa_partition): New.
10940         (adjust_one_expanded_partition_var): New.
10941         (expand_one_register_var): Check and skip already expanded SSA
10942         partitions.
10943         (expand_used_vars): Don't create DECLs for anonymous SSA
10944         names.  Expand all SSA partitions, then adjust all SSA names.
10945         (pass::execute): Replace the loops that set
10946         SA.partition_to_pseudo from partition leaders and cleared
10947         DECL_RTL for multi-location variables, and that which used to
10948         rename vars and set attrs, with one that clears DECL_RTL and
10949         checks that PARMs and RESULTs default_defs match DECL_RTL.
10950         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10951         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10952         * explow.c (promote_ssa_mode): New.
10953         * explow.h (promote_ssa_mode): Declare.
10954         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10955         * function.c: Include cfgexpand.h.
10956         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10957         (use_register_for_parm_decl): Wrapper for the above to
10958         special-case the result_ptr.
10959         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10960         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10961         multiple locations.
10962         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10963         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
10964         (assign_parm_setup_block): Prefer SSA-assigned location.
10965         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
10966         if stack_parm is NULL.
10967         (assign_parm_setup_stack): Prefer SSA-assigned location.
10968         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
10969         rtl before testing for pointer bounds.  Special-case result_ptr.
10970         (expand_function_start): Maybe reset DECL_RTL of result.
10971         Prefer SSA-assigned location for result and static chain.
10972         Factor out DECL_RESULT and SET_DECL_RTL.
10973         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10974         anonymous SSA names.  Use promote_ssa_mode.
10975         (get_temp_reg): Likewise.
10976         (remove_ssa_form): Adjust.
10977         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10978         and get its reg_usage for reg invalidation.
10979         (compute_bb_dataflow): Pass it insn.
10980         (emit_notes_in_bb): Likewise.
10981         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
10982         fail assert on conversion between unsigned types.
10984 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
10986         PR debug/58315
10987         * tree-inline.c (reset_debug_binding): New.
10988         (reset_debug_bindings): Likewise.
10989         (expand_call_inline): Call it.
10991 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
10993         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
10994         TYPE_STRING_FLAG.
10996 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
10998         * lto-streamer-out.c (lto_output_location): Stream
10999         reserved locations correctly.
11000         * lto-streamer-in.c (lto_output_location): Likewise.
11002 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
11004         * coretypes.h: Include hash-table.h and hash-set.h for host files.
11005         * ggc.h: Don't include statistics.h>
11006         * hash-map.h: Remove all includes.
11007         * hash-set.h: Likewise.
11008         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
11009         the include list. Remove <new>.
11010         * inchash.h: Remove all includes.
11011         * mem-stats.h: Likewise.
11012         * vec.h: No special processing for generators or ggc.
11013         * alias.c : Adjust include files.
11014         * alloc-pool.c : Likewise.
11015         * alloc-pool.h : Likewise.
11016         * asan.c : Likewise.
11017         * attribs.c : Likewise.
11018         * auto-inc-dec.c : Likewise.
11019         * auto-profile.c : Likewise.
11020         * bb-reorder.c : Likewise.
11021         * bitmap.c : Likewise.
11022         * bitmap.h : Likewise.
11023         * bt-load.c : Likewise.
11024         * builtins.c : Likewise.
11025         * caller-save.c : Likewise.
11026         * calls.c : Likewise.
11027         * ccmp.c : Likewise.
11028         * cfg.c : Likewise.
11029         * cfganal.c : Likewise.
11030         * cfgbuild.c : Likewise.
11031         * cfgcleanup.c : Likewise.
11032         * cfgexpand.c : Likewise.
11033         * cfghooks.c : Likewise.
11034         * cfgloop.c : Likewise.
11035         * cfgloop.h : Likewise.
11036         * cfgloopanal.c : Likewise.
11037         * cfgloopmanip.c : Likewise.
11038         * cfgrtl.c : Likewise.
11039         * cgraph.c : Likewise.
11040         * cgraphbuild.c : Likewise.
11041         * cgraphclones.c : Likewise.
11042         * cgraphunit.c : Likewise.
11043         * cilk-common.c : Likewise.
11044         * combine-stack-adj.c : Likewise.
11045         * combine.c : Likewise.
11046         * compare-elim.c : Likewise.
11047         * context.c : Likewise.
11048         * convert.c : Likewise.
11049         * coverage.c : Likewise.
11050         * cppbuiltin.c : Likewise.
11051         * cprop.c : Likewise.
11052         * cse.c : Likewise.
11053         * cselib.c : Likewise.
11054         * data-streamer-in.c : Likewise.
11055         * data-streamer-out.c : Likewise.
11056         * data-streamer.c : Likewise.
11057         * data-streamer.h : Likewise.
11058         * dbxout.c : Likewise.
11059         * dce.c : Likewise.
11060         * ddg.c : Likewise.
11061         * debug.c : Likewise.
11062         * df-core.c : Likewise.
11063         * df-problems.c : Likewise.
11064         * df-scan.c : Likewise.
11065         * df.h : Likewise.
11066         * dfp.c : Likewise.
11067         * dojump.c : Likewise.
11068         * dominance.c : Likewise.
11069         * domwalk.c : Likewise.
11070         * double-int.c : Likewise.
11071         * dse.c : Likewise.
11072         * dumpfile.c : Likewise.
11073         * dwarf2asm.c : Likewise.
11074         * dwarf2cfi.c : Likewise.
11075         * dwarf2out.c : Likewise.
11076         * emit-rtl.c : Likewise.
11077         * et-forest.c : Likewise.
11078         * except.c : Likewise.
11079         * except.h : Likewise.
11080         * explow.c : Likewise.
11081         * expmed.c : Likewise.
11082         * expr.c : Likewise.
11083         * final.c : Likewise.
11084         * fixed-value.c : Likewise.
11085         * fold-const.c : Likewise.
11086         * function.c : Likewise.
11087         * fwprop.c : Likewise.
11088         * gcc-plugin.h : Likewise.
11089         * gcc.c : Likewise.
11090         * gcse-common.c : Likewise.
11091         * gcse.c : Likewise.
11092         * genattrtab.c : Likewise.
11093         * genautomata.c : Likewise.
11094         * genconditions.c : Likewise.
11095         * genemit.c : Likewise.
11096         * generic-match-head.c : Likewise.
11097         * genextract.c : Likewise.
11098         * gengtype-state.c : Likewise.
11099         * gengtype.c : Likewise.
11100         * genhooks.c : Likewise.
11101         * genmatch.c : Likewise.
11102         * genmodes.c : Likewise.
11103         * genrecog.c : Likewise.
11104         * gensupport.c : Likewise.
11105         * ggc-common.c : Likewise.
11106         * ggc-internal.h : Likewise.
11107         * ggc-none.c : Likewise.
11108         * ggc-page.c : Likewise.
11109         * gimple-builder.c : Likewise.
11110         * gimple-expr.c : Likewise.
11111         * gimple-fold.c : Likewise.
11112         * gimple-iterator.c : Likewise.
11113         * gimple-low.c : Likewise.
11114         * gimple-match-head.c : Likewise.
11115         * gimple-pretty-print.c : Likewise.
11116         * gimple-ssa-isolate-paths.c : Likewise.
11117         * gimple-ssa-strength-reduction.c : Likewise.
11118         * gimple-ssa.h : Likewise.
11119         * gimple-streamer-in.c : Likewise.
11120         * gimple-streamer-out.c : Likewise.
11121         * gimple-streamer.h : Likewise.
11122         * gimple-walk.c : Likewise.
11123         * gimple.c : Likewise.
11124         * gimplify-me.c : Likewise.
11125         * gimplify.c : Likewise.
11126         * godump.c : Likewise.
11127         * graph.c : Likewise.
11128         * graphds.c : Likewise.
11129         * graphite-blocking.c : Likewise.
11130         * graphite-dependences.c : Likewise.
11131         * graphite-interchange.c : Likewise.
11132         * graphite-isl-ast-to-gimple.c : Likewise.
11133         * graphite-optimize-isl.c : Likewise.
11134         * graphite-poly.c : Likewise.
11135         * graphite-scop-detection.c : Likewise.
11136         * graphite-sese-to-poly.c : Likewise.
11137         * graphite.c : Likewise.
11138         * haifa-sched.c : Likewise.
11139         * hard-reg-set.h : Likewise.
11140         * hw-doloop.c : Likewise.
11141         * ifcvt.c : Likewise.
11142         * inchash.c : Likewise.
11143         * incpath.c : Likewise.
11144         * init-regs.c : Likewise.
11145         * input.c : Likewise.
11146         * internal-fn.c : Likewise.
11147         * ipa-chkp.c : Likewise.
11148         * ipa-comdats.c : Likewise.
11149         * ipa-cp.c : Likewise.
11150         * ipa-devirt.c : Likewise.
11151         * ipa-icf-gimple.c : Likewise.
11152         * ipa-icf.c : Likewise.
11153         * ipa-inline-analysis.c : Likewise.
11154         * ipa-inline-transform.c : Likewise.
11155         * ipa-inline.c : Likewise.
11156         * ipa-polymorphic-call.c : Likewise.
11157         * ipa-profile.c : Likewise.
11158         * ipa-prop.c : Likewise.
11159         * ipa-pure-const.c : Likewise.
11160         * ipa-ref.c : Likewise.
11161         * ipa-reference.c : Likewise.
11162         * ipa-split.c : Likewise.
11163         * ipa-utils.c : Likewise.
11164         * ipa-visibility.c : Likewise.
11165         * ipa.c : Likewise.
11166         * ira-build.c : Likewise.
11167         * ira-color.c : Likewise.
11168         * ira-conflicts.c : Likewise.
11169         * ira-costs.c : Likewise.
11170         * ira-emit.c : Likewise.
11171         * ira-lives.c : Likewise.
11172         * ira.c : Likewise.
11173         * jump.c : Likewise.
11174         * langhooks.c : Likewise.
11175         * lcm.c : Likewise.
11176         * libfuncs.h : Likewise.
11177         * lists.c : Likewise.
11178         * loop-doloop.c : Likewise.
11179         * loop-init.c : Likewise.
11180         * loop-invariant.c : Likewise.
11181         * loop-iv.c : Likewise.
11182         * loop-unroll.c : Likewise.
11183         * lower-subreg.c : Likewise.
11184         * lra-assigns.c : Likewise.
11185         * lra-coalesce.c : Likewise.
11186         * lra-constraints.c : Likewise.
11187         * lra-eliminations.c : Likewise.
11188         * lra-lives.c : Likewise.
11189         * lra-remat.c : Likewise.
11190         * lra-spills.c : Likewise.
11191         * lra.c : Likewise.
11192         * lto-cgraph.c : Likewise.
11193         * lto-compress.c : Likewise.
11194         * lto-opts.c : Likewise.
11195         * lto-section-in.c : Likewise.
11196         * lto-section-out.c : Likewise.
11197         * lto-streamer-in.c : Likewise.
11198         * lto-streamer-out.c : Likewise.
11199         * lto-streamer.c : Likewise.
11200         * lto-streamer.h : Likewise.
11201         * mcf.c : Likewise.
11202         * mode-switching.c : Likewise.
11203         * modulo-sched.c : Likewise.
11204         * omega.c : Likewise.
11205         * omp-low.c : Likewise.
11206         * optabs.c : Likewise.
11207         * opts-global.c : Likewise.
11208         * opts.h : Likewise.
11209         * passes.c : Likewise.
11210         * plugin.c : Likewise.
11211         * postreload-gcse.c : Likewise.
11212         * postreload.c : Likewise.
11213         * predict.c : Likewise.
11214         * print-rtl.c : Likewise.
11215         * print-tree.c : Likewise.
11216         * profile.c : Likewise.
11217         * read-md.c : Likewise.
11218         * read-md.h : Likewise.
11219         * read-rtl.c : Likewise.
11220         * real.c : Likewise.
11221         * realmpfr.c : Likewise.
11222         * recog.c : Likewise.
11223         * ree.c : Likewise.
11224         * reg-stack.c : Likewise.
11225         * regcprop.c : Likewise.
11226         * reginfo.c : Likewise.
11227         * regrename.c : Likewise.
11228         * regstat.c : Likewise.
11229         * reload.c : Likewise.
11230         * reload1.c : Likewise.
11231         * reorg.c : Likewise.
11232         * resource.c : Likewise.
11233         * rtl-chkp.c : Likewise.
11234         * rtl.c : Likewise.
11235         * rtl.h : Likewise.
11236         * rtlanal.c : Likewise.
11237         * rtlhash.c : Likewise.
11238         * rtlhash.h : Likewise.
11239         * rtlhooks.c : Likewise.
11240         * sanopt.c : Likewise.
11241         * sched-deps.c : Likewise.
11242         * sched-ebb.c : Likewise.
11243         * sched-rgn.c : Likewise.
11244         * sched-vis.c : Likewise.
11245         * sdbout.c : Likewise.
11246         * sel-sched-dump.c : Likewise.
11247         * sel-sched-ir.c : Likewise.
11248         * sel-sched-ir.h : Likewise.
11249         * sel-sched.c : Likewise.
11250         * sese.c : Likewise.
11251         * shrink-wrap.c : Likewise.
11252         * shrink-wrap.h : Likewise.
11253         * simplify-rtx.c : Likewise.
11254         * stack-ptr-mod.c : Likewise.
11255         * statistics.c : Likewise.
11256         * stmt.c : Likewise.
11257         * stor-layout.c : Likewise.
11258         * store-motion.c : Likewise.
11259         * stringpool.c : Likewise.
11260         * symtab.c : Likewise.
11261         * target-globals.c : Likewise.
11262         * targhooks.c : Likewise.
11263         * tlink.c : Likewise.
11264         * toplev.c : Likewise.
11265         * tracer.c : Likewise.
11266         * trans-mem.c : Likewise.
11267         * tree-affine.c : Likewise.
11268         * tree-affine.h : Likewise.
11269         * tree-browser.c : Likewise.
11270         * tree-call-cdce.c : Likewise.
11271         * tree-cfg.c : Likewise.
11272         * tree-cfgcleanup.c : Likewise.
11273         * tree-chkp-opt.c : Likewise.
11274         * tree-chkp.c : Likewise.
11275         * tree-chrec.c : Likewise.
11276         * tree-complex.c : Likewise.
11277         * tree-data-ref.c : Likewise.
11278         * tree-dfa.c : Likewise.
11279         * tree-diagnostic.c : Likewise.
11280         * tree-dump.c : Likewise.
11281         * tree-eh.c : Likewise.
11282         * tree-eh.h : Likewise.
11283         * tree-emutls.c : Likewise.
11284         * tree-hasher.h : Likewise.
11285         * tree-if-conv.c : Likewise.
11286         * tree-inline.c : Likewise.
11287         * tree-inline.h : Likewise.
11288         * tree-into-ssa.c : Likewise.
11289         * tree-iterator.c : Likewise.
11290         * tree-loop-distribution.c : Likewise.
11291         * tree-nested.c : Likewise.
11292         * tree-nrv.c : Likewise.
11293         * tree-object-size.c : Likewise.
11294         * tree-outof-ssa.c : Likewise.
11295         * tree-parloops.c : Likewise.
11296         * tree-phinodes.c : Likewise.
11297         * tree-predcom.c : Likewise.
11298         * tree-pretty-print.c : Likewise.
11299         * tree-profile.c : Likewise.
11300         * tree-scalar-evolution.c : Likewise.
11301         * tree-sra.c : Likewise.
11302         * tree-ssa-address.c : Likewise.
11303         * tree-ssa-alias.c : Likewise.
11304         * tree-ssa-ccp.c : Likewise.
11305         * tree-ssa-coalesce.c : Likewise.
11306         * tree-ssa-copy.c : Likewise.
11307         * tree-ssa-copyrename.c : Likewise.
11308         * tree-ssa-dce.c : Likewise.
11309         * tree-ssa-dom.c : Likewise.
11310         * tree-ssa-dse.c : Likewise.
11311         * tree-ssa-forwprop.c : Likewise.
11312         * tree-ssa-ifcombine.c : Likewise.
11313         * tree-ssa-live.c : Likewise.
11314         * tree-ssa-loop-ch.c : Likewise.
11315         * tree-ssa-loop-im.c : Likewise.
11316         * tree-ssa-loop-ivcanon.c : Likewise.
11317         * tree-ssa-loop-ivopts.c : Likewise.
11318         * tree-ssa-loop-manip.c : Likewise.
11319         * tree-ssa-loop-niter.c : Likewise.
11320         * tree-ssa-loop-prefetch.c : Likewise.
11321         * tree-ssa-loop-unswitch.c : Likewise.
11322         * tree-ssa-loop.c : Likewise.
11323         * tree-ssa-math-opts.c : Likewise.
11324         * tree-ssa-operands.c : Likewise.
11325         * tree-ssa-phiopt.c : Likewise.
11326         * tree-ssa-phiprop.c : Likewise.
11327         * tree-ssa-pre.c : Likewise.
11328         * tree-ssa-propagate.c : Likewise.
11329         * tree-ssa-reassoc.c : Likewise.
11330         * tree-ssa-sccvn.c : Likewise.
11331         * tree-ssa-scopedtables.c : Likewise.
11332         * tree-ssa-sink.c : Likewise.
11333         * tree-ssa-strlen.c : Likewise.
11334         * tree-ssa-structalias.c : Likewise.
11335         * tree-ssa-tail-merge.c : Likewise.
11336         * tree-ssa-ter.c : Likewise.
11337         * tree-ssa-threadedge.c : Likewise.
11338         * tree-ssa-threadupdate.c : Likewise.
11339         * tree-ssa-uncprop.c : Likewise.
11340         * tree-ssa-uninit.c : Likewise.
11341         * tree-ssa.c : Likewise.
11342         * tree-ssanames.c : Likewise.
11343         * tree-stdarg.c : Likewise.
11344         * tree-streamer-in.c : Likewise.
11345         * tree-streamer-out.c : Likewise.
11346         * tree-streamer.c : Likewise.
11347         * tree-streamer.h : Likewise.
11348         * tree-switch-conversion.c : Likewise.
11349         * tree-tailcall.c : Likewise.
11350         * tree-vect-data-refs.c : Likewise.
11351         * tree-vect-generic.c : Likewise.
11352         * tree-vect-loop-manip.c : Likewise.
11353         * tree-vect-loop.c : Likewise.
11354         * tree-vect-patterns.c : Likewise.
11355         * tree-vect-slp.c : Likewise.
11356         * tree-vect-stmts.c : Likewise.
11357         * tree-vectorizer.c : Likewise.
11358         * tree-vectorizer.h : Likewise.
11359         * tree-vrp.c : Likewise.
11360         * tree.c : Likewise.
11361         * tsan.c : Likewise.
11362         * ubsan.c : Likewise.
11363         * valtrack.c : Likewise.
11364         * valtrack.h : Likewise.
11365         * value-prof.c : Likewise.
11366         * var-tracking.c : Likewise.
11367         * varasm.c : Likewise.
11368         * varpool.c : Likewise.
11369         * vec.c: Likewise.
11370         * vmsdbgout.c : Likewise.
11371         * vtable-verify.c : Likewise.
11372         * vtable-verify.h : Likewise.
11373         * web.c : Likewise.
11374         * wide-int.cc : Likewise.
11375         * xcoffout.c : Likewise.
11376         * config/aarch64/aarch64-builtins.c : Likewise.
11377         * config/aarch64/aarch64.c : Likewise.
11378         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
11379         * config/alpha/alpha.c : Likewise.
11380         * config/arc/arc.c : Likewise.
11381         * config/arm/aarch-common.c : Likewise.
11382         * config/arm/arm-builtins.c : Likewise.
11383         * config/arm/arm-c.c : Likewise.
11384         * config/arm/arm.c : Likewise.
11385         * config/avr/avr-c.c : Likewise.
11386         * config/avr/avr-log.c : Likewise.
11387         * config/avr/avr.c : Likewise.
11388         * config/bfin/bfin.c : Likewise.
11389         * config/c6x/c6x.c : Likewise.
11390         * config/cr16/cr16.c : Likewise.
11391         * config/cris/cris.c : Likewise.
11392         * config/darwin-c.c : Likewise.
11393         * config/darwin.c : Likewise.
11394         * config/default-c.c : Likewise.
11395         * config/epiphany/epiphany.c : Likewise.
11396         * config/epiphany/mode-switch-use.c : Likewise.
11397         * config/epiphany/resolve-sw-modes.c : Likewise.
11398         * config/fr30/fr30.c : Likewise.
11399         * config/frv/frv.c : Likewise.
11400         * config/ft32/ft32.c : Likewise.
11401         * config/glibc-c.c : Likewise.
11402         * config/h8300/h8300.c : Likewise.
11403         * config/i386/i386-c.c : Likewise.
11404         * config/i386/i386.c : Likewise.
11405         * config/i386/msformat-c.c : Likewise.
11406         * config/i386/winnt-cxx.c : Likewise.
11407         * config/i386/winnt-stubs.c : Likewise.
11408         * config/i386/winnt.c : Likewise.
11409         * config/ia64/ia64-c.c : Likewise.
11410         * config/ia64/ia64.c : Likewise.
11411         * config/iq2000/iq2000.c : Likewise.
11412         * config/lm32/lm32.c : Likewise.
11413         * config/m32c/m32c-pragma.c : Likewise.
11414         * config/m32c/m32c.c : Likewise.
11415         * config/m32r/m32r.c : Likewise.
11416         * config/m68k/m68k.c : Likewise.
11417         * config/mcore/mcore.c : Likewise.
11418         * config/mep/mep-pragma.c : Likewise.
11419         * config/mep/mep.c : Likewise.
11420         * config/microblaze/microblaze-c.c : Likewise.
11421         * config/microblaze/microblaze.c : Likewise.
11422         * config/mips/mips.c : Likewise.
11423         * config/mmix/mmix.c : Likewise.
11424         * config/mn10300/mn10300.c : Likewise.
11425         * config/moxie/moxie.c : Likewise.
11426         * config/msp430/msp430-c.c : Likewise.
11427         * config/msp430/msp430.c : Likewise.
11428         * config/nds32/nds32-cost.c : Likewise.
11429         * config/nds32/nds32-fp-as-gp.c : Likewise.
11430         * config/nds32/nds32-intrinsic.c : Likewise.
11431         * config/nds32/nds32-isr.c : Likewise.
11432         * config/nds32/nds32-md-auxiliary.c : Likewise.
11433         * config/nds32/nds32-memory-manipulation.c : Likewise.
11434         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
11435         * config/nds32/nds32-predicates.c : Likewise.
11436         * config/nds32/nds32.c : Likewise.
11437         * config/nios2/nios2.c : Likewise.
11438         * config/nvptx/nvptx.c : Likewise.
11439         * config/pa/pa.c : Likewise.
11440         * config/pdp11/pdp11.c : Likewise.
11441         * config/rl78/rl78-c.c : Likewise.
11442         * config/rl78/rl78.c : Likewise.
11443         * config/rs6000/rs6000-c.c : Likewise.
11444         * config/rs6000/rs6000.c : Likewise.
11445         * config/rx/rx.c : Likewise.
11446         * config/s390/s390-c.c : Likewise.
11447         * config/s390/s390.c : Likewise.
11448         * config/sh/sh-c.c : Likewise.
11449         * config/sh/sh-mem.cc : Likewise.
11450         * config/sh/sh.c : Likewise.
11451         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
11452         * config/sh/sh_treg_combine.cc : Likewise.
11453         * config/sol2-c.c : Likewise.
11454         * config/sol2-cxx.c : Likewise.
11455         * config/sol2-stubs.c : Likewise.
11456         * config/sol2.c : Likewise.
11457         * config/sparc/sparc-c.c : Likewise.
11458         * config/sparc/sparc.c : Likewise.
11459         * config/spu/spu-c.c : Likewise.
11460         * config/spu/spu.c : Likewise.
11461         * config/stormy16/stormy16.c : Likewise.
11462         * config/tilegx/mul-tables.c : Likewise.
11463         * config/tilegx/tilegx-c.c : Likewise.
11464         * config/tilegx/tilegx.c : Likewise.
11465         * config/tilepro/mul-tables.c : Likewise.
11466         * config/tilepro/tilepro-c.c : Likewise.
11467         * config/tilepro/tilepro.c : Likewise.
11468         * config/v850/v850-c.c : Likewise.
11469         * config/v850/v850.c : Likewise.
11470         * config/vax/vax.c : Likewise.
11471         * config/visium/visium.c : Likewise.
11472         * config/vms/vms-c.c : Likewise.
11473         * config/vms/vms.c : Likewise.
11474         * config/vxworks.c : Likewise.
11475         * config/winnt-c.c : Likewise.
11476         * config/xtensa/xtensa.c : Likewise.
11478 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11480         PR lto/65378
11481         * ipa-utils.h (warn_types_mismatch): Update prototype.
11482         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
11483         parameters.
11484         (type_mismatch_p): New function.
11485         (warn_types_mismatch): Reorg to work better on non-C++ types.
11486         (odr_types_equivalent_p): Add loc1/loc2 parameters.
11487         (add_type_duplicate): Update.
11489 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11491         PR rtl-optimization/66444
11492         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
11493         call_used_regs.
11495 2015-06-08  Richard Biener  <rguenther@suse.de>
11497         PR tree-optimization/66422
11498         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
11499         block after inserted gcc_unreachable.
11501 2015-06-08  Nick Clifton  <nickc@redhat.com>
11503         * config/rx/rx.c (rx_function_value): Do not promote vector types.
11504         (rx_promote_function_mode): Likewise.
11505         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
11507 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
11509         * genattrtab.c (insn_alternatives): Change type from int *
11510         to uint64_t *.
11511         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
11512         (get_attr_value): Change type of num_alt to uint64_t.
11513         (compute_alternative_mask): Change return type from
11514         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
11515         (make_alternative_compare, mk_attr_alt): Change argument type
11516         from int to uint64_t.
11517         (simplify_test_exp): Change type of i from int to uint64_t.
11518         Shift ((uint64_t) 1) instead of 1 up.
11519         (main): Adjust oballocvec first argument from int to uint64_t.
11520         Shift ((uint64_t) 1) instead of 1 up.
11522 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11524         PR other/65366
11525         * gdbhooks.py: Import sys.
11526         (intptr): New function.  Replace int(...) by intptr(...).
11528 2015-06-08  Richard Biener  <rguenther@suse.de>
11530         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
11531         adjustment for gaps at the end of a SLP load group properly.
11532         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
11533         all permutations we can generate.
11534         (vect_transform_slp_perm_load): Use the correct group-size.
11536 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
11538         * genmatch.c (expr::gen_transform): For conditions, guess the type
11539         from the second operand.
11541 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11543         PR tree-optimization/66442
11544         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
11545         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
11546         if the loop latch is not a singleton.  Use
11547         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
11549 2015-06-08  Marek Polacek  <polacek@redhat.com>
11551         PR sanitizer/66452
11552         * toplev.c (check_global_declaration): Don't warn about artificial
11553         decls.
11555 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11557         PR tree-optimization/66436
11558         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
11559         dump file.
11560         * gimplify.c: Add tree-dump.h include.
11561         (gimplify_function_tree): Dump function to gimple dump file.
11562         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
11563         dump file.
11565 2015-06-08  Tom de Vries  <tom@codesourcery.com>
11567         PR tree-optimization/66435
11568         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
11569         function.
11571 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
11573         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
11574         of ptr_type_node to not be ptr_to_node.
11575         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
11576         TREE_TYPE of pointers.
11577         * gimple-expr.c (useless_type_conversion): Reorder the check for
11578         function pointers and TYPE_CANONICAL.
11580 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
11582         PR bootstrap/66319
11583         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
11584         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
11585         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
11586         later.
11587         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
11588         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
11589         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
11590         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
11591         and non iso if unix2003.
11593 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
11595         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
11597 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
11599         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
11600         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
11601         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
11602         except.c, final.c, function.c, gcse-common.c, genemit.c,
11603         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
11604         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
11605         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
11606         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
11607         more derived ones.
11609 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
11611         * combine.c (combine_split_insns): Remove cast.
11612         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
11613         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
11614         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
11615         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
11616         * genemit.c (gen_split): Change return type of generated functions to
11617         rtx_insn.
11618         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
11619         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
11620         gen_peephole2_* functions.
11621         (print_subroutine, main): Likewise.
11622         * recog.c (peephole2_optimize): Remove cast.
11623         (peep2_next_insn): Promote return type to rtx_insn.
11624         * recog.h (peep2_next_insn): Fix prototype.
11625         * rtl.h (try_split, split_insns): Likewise.
11627 2015-06-06  DJ Delorie  <dj@redhat.com>
11629         * config/msp430/msp430.c (msp430_asm_integer): Support addition
11630         and subtraction too.
11632 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11634         PR target/66410
11635         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
11636         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
11637         instead of Snd.  Disparage Sid/z alternative with '^'.
11639 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
11641         * dwarf2out.c: Remove deferred_locations*.
11642         (dwarf2_debug_hooks): Add early_finish hook.
11643         Remove global_decl hook.
11644         Add early_global_decl and late_global_decl hook.
11645         New global early_dwarf.
11646         New structure set_early_dwarf.
11647         (output_die): Indicate whether a DIE was generated early
11648         when generating assembly with -dA.
11649         (struct limbo_die_struct): Document created_for field.
11650         Remove file_table_last_lookup.
11651         (remove_AT): Return TRUE if successful.
11652         (remove_child_TAG): Clear die_parent.
11653         (reparent_child): New function abstracted from...
11654         (splice_child_die): ...here.
11655         (new_die): ICE if a DIE ends up in limbo too late.
11656         (check_die): New.
11657         (defer_location): Remove.
11658         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
11659         (fill_variable_array_bounds): New.
11660         (decl_start_label): Call fill_variable_array_bounds.
11661         (gen_formal_parameter_die): Rewrite to reuse previously generated
11662         DIEs.
11663         (gen_subprogram_die): Same.
11664         (gen_variable_die): Same.
11665         (gen_const_die): Same.
11666         (gen_label_die): Same.
11667         (gen_lexical_block_die): Same.
11668         (decl_will_get_specification_p): New.
11669         (local_function_static): New.
11670         (gen_struct_or_union_type_die): Fill in variable-length fields.
11671         (gen_typedef_die): Fill in variable-length typedefs.
11672         (gen_tagged_type_die): Gracefully return on error_mark_node.
11673         Handle re-entrancy.
11674         (gen_type_die_with_usage): Handle variable-length types.
11675         Remove duplicate code for ARRAY_TYPE case.
11676         (process_scope_var): Only process imported modules during early
11677         dwarf.
11678         (dwarf2out_early_global_decl): New.
11679         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
11680         (dwarf2out_type_decl): Set early_dwarf while calling
11681         dwarf2out_decl.
11682         (dwarf2out_decl): Verify that we did not recreate a previously
11683         generated DIE.
11684         Do not return on DECL_EXTERNALs in VAR_DECLs.
11685         Abstract some code to local_function_static.
11686         (lookup_filename): Remove use of file_table_last_lookup.
11687         Gracefully exit on missing file_name.
11688         (dwarf2out_finish): Verify limbo list.
11689         Remove deferred_locations_list use.
11690         Move deferred_asm_name and limbo flushing to...
11691         (dwarf2out_early_finish): ...here.  New.
11692         (dwarf2out_c_finalize): Remove set of deferred_location_list,
11693         deferred_asm_name, and file_table_last_lookup.
11694         * cgraph.h (referred_to_p): Add default argument.
11695         * cgraphunit.c (referred_to_p): Add and handle include_self
11696         argument.
11697         (analyze_functions): Add first_time argument.
11698         Call check_global_declaration for all symbols.
11699         Call late_global_decl for nodes for moribund nodes.
11700         (finalize_compilation_unit): Add new argument to
11701         analyze_functions.
11702         Call early_global_decl for functions.
11703         Call early_finish debug hook.
11704         * dbxout.c (dbxout_early_global_decl): New.
11705         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
11706         (dbx_debug_hooks): Add new hooks.
11707         (xcoff_debug_hooks): Same.
11708         * debug.c (do_nothing_debug_hooks): Add early_finish field.
11709         Add early and late debug hooks.
11710         Remove global_decl hook.
11711         * debug.h (struct gcc_debug_hooks): Add early_finish,
11712         early_global_decl, and late_global_decl fields.
11713         Remove global_decl field.
11714         Document gcc_debug_hooks.
11715         * gengtype.c (output_typename): Remove.
11716         * godump.c (go_early_global_decl): New.
11717         (go_late_global_decl): New.
11718         (go_global_decl): Remove.
11719         (dump_go_spec_init): Remove global_decl.  Add
11720         {early,late}_global_decl.
11721         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
11722         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
11723         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
11724         (write_global_declarations): Remove.
11725         (global_decl_processing): New.
11726         * langhooks.h (struct lang_hooks_for_decls): Remove
11727         final_write_globals field.
11728         Add post_compilation_parsing_cleanups field.
11729         * passes.c (rest_of_decl_compilation): Call early_global_decl.
11730         * sdbout.c: Add early and late_global_decl hooks.  Remove
11731         sdbout_global_decl hook.
11732         Add early_finish field for sdb_debug_hooks.
11733         (sdbout_global_decl): Remove.
11734         (sdbout_early_global_decl): New.
11735         (sdbout_late_global_decl): New.
11736         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
11737         * toplev.c (check_global_declaration): Rename from
11738         check_global_declaration_1.
11739         Adapt to use symtab infrastructure.
11740         (check_global_declarations): Remove.
11741         (emit_debug_global_declarations): Remove.
11742         (compile_file): Remove call to final_write_globals langhook.
11743         Run the actual compilation process.
11744         Perform any post compilation parser cleanups.
11745         Generate late debug info.
11746         * toplev.h (check_global_declaration): New.
11747         (check_global_declaration_1): Remove.
11748         (check_global_declarations): Remove.
11749         (write_global_declarations): Remove.
11750         (emit_debug_global_declarations): Remove.
11751         (global_decl_processing): New.
11752         * tree-core.h (struct tree_block): Add DIE field.
11753         * tree.h (BLOCK_DIE): New.
11754         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
11755         throughout.
11756         (vmsdbgout_early_global_decl): New.
11757         (vmsdbgout_late_global_decl): New.
11758         Add early_finish debug hook field to vmsdbg_debug_hooks.
11759         Remove vmsdbgout_decl to vmsdbgout_function_decl.
11760         Add early and late_global_decl debug hooks.
11762 2015-06-05  Julian Brown  <julian@codesourcery.com>
11763             Sandra Loosemore  <sandra@codesourcery.com>
11765         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
11766         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
11767         to print-sysroot-suffix.sh script.
11769 2015-06-05  Tom de Vries  <tom@codesourcery.com>
11771         merge from gomp4 branch:
11772         2015-05-28  Tom de Vries  <tom@codesourcery.com>
11774         PR tree-optimization/65443
11775         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
11776         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
11777         (try_transform_to_exit_first_loop_alt): New function.
11778         (transform_to_exit_first_loop): Use
11779         try_transform_to_exit_first_loop_alt.
11781 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
11783         * builtins.c (expand_builtin_atomic_compare_exchange): Call
11784         emit_cmp_and_jump_insns with the mode of target.
11786 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11788         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
11790 2015-06-04  DJ Delorie  <dj@redhat.com>
11792         * config/msp430/msp430.md (movsi_s): New.  Special case for
11793         storing a 20-bit symbol into a 32-bit register.
11794         * config/msp430/msp430.c (msp430_subreg): Add support for it.
11795         * config/msp430/predicates.md (msp430_symbol_operand): New.
11797 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
11799         * c-family/c-common.c (noplt): New attribute.
11800         (handle_noplt_attribute): New handler.
11801         * calls.c (prepare_call_address): Check for noplt
11802         attribute.
11803         * config/i386/i386.c (ix86_expand_call): Check
11804         for noplt attribute.
11805         (ix86_nopic_noplt_attribute_p): New function.
11806         (ix86_output_call_insn): Output indirect call for non-pic
11807         no plt calls.
11808         * doc/extend.texi (noplt): Document new attribute.
11809         * doc/invoke.texi: Document new attribute.
11811 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
11813         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
11814         real.h, and fixed-value.h when included in host source files.
11815         * double-int.h: Remove redundant #includes listed above.
11816         * fixed-value.h: Likewise.
11817         * real.h: Likewise.
11818         * wide-int.h: Likewise.
11819         * inchash.h: Likewise.
11820         * rtl.h: Add some include files When included from a generator file.
11821         * target.h: Remove wide-int.h and insn-modes.h from the include list.
11822         * internal-fn.h: Don't include coretypes.h.
11823         * alias.c: Adjust includes for restructured coretypes.h.
11824         * asan.c: Likewise.
11825         * attribs.c: Likewise.
11826         * auto-inc-dec.c: Likewise.
11827         * auto-profile.c: Likewise.
11828         * bb-reorder.c: Likewise.
11829         * bt-load.c: Likewise.
11830         * builtins.c: Likewise.
11831         * caller-save.c: Likewise.
11832         * calls.c: Likewise.
11833         * ccmp.c: Likewise.
11834         * cfg.c: Likewise.
11835         * cfganal.c: Likewise.
11836         * cfgbuild.c: Likewise.
11837         * cfgcleanup.c: Likewise.
11838         * cfgexpand.c: Likewise.
11839         * cfghooks.c: Likewise.
11840         * cfgloop.c: Likewise.
11841         * cfgloop.h: Likewise.
11842         * cfgloopanal.c: Likewise.
11843         * cfgloopmanip.c: Likewise.
11844         * cfgrtl.c: Likewise.
11845         * cgraph.c: Likewise.
11846         * cgraphbuild.c: Likewise.
11847         * cgraphclones.c: Likewise.
11848         * cgraphunit.c: Likewise.
11849         * cilk-common.c: Likewise.
11850         * combine-stack-adj.c: Likewise.
11851         * combine.c: Likewise.
11852         * compare-elim.c: Likewise.
11853         * convert.c: Likewise.
11854         * coverage.c: Likewise.
11855         * cppbuiltin.c: Likewise.
11856         * cprop.c: Likewise.
11857         * cse.c: Likewise.
11858         * cselib.c: Likewise.
11859         * data-streamer-in.c: Likewise.
11860         * data-streamer-out.c: Likewise.
11861         * data-streamer.c: Likewise.
11862         * dbxout.c: Likewise.
11863         * dce.c: Likewise.
11864         * ddg.c: Likewise.
11865         * debug.c: Likewise.
11866         * df-core.c: Likewise.
11867         * df-problems.c: Likewise.
11868         * df-scan.c: Likewise.
11869         * df.h: Likewise.
11870         * dfp.c: Likewise.
11871         * dojump.c: Likewise.
11872         * dominance.c: Likewise.
11873         * domwalk.c: Likewise.
11874         * double-int.c: Likewise.
11875         * dse.c: Likewise.
11876         * dumpfile.c: Likewise.
11877         * dwarf2asm.c: Likewise.
11878         * dwarf2cfi.c: Likewise.
11879         * dwarf2out.c: Likewise.
11880         * dwarf2out.h: Likewise.
11881         * emit-rtl.c: Likewise.
11882         * et-forest.c: Likewise.
11883         * except.c: Likewise.
11884         * explow.c: Likewise.
11885         * expmed.c: Likewise.
11886         * expr.c: Likewise.
11887         * final.c: Likewise.
11888         * fixed-value.c: Likewise.
11889         * fold-const.c: Likewise.
11890         * function.c: Likewise.
11891         * fwprop.c: Likewise.
11892         * gcc-plugin.h: Likewise.
11893         * gcse.c: Likewise.
11894         * generic-match-head.c: Likewise.
11895         * ggc-page.c: Likewise.
11896         * gimple-builder.c: Likewise.
11897         * gimple-expr.c: Likewise.
11898         * gimple-fold.c: Likewise.
11899         * gimple-iterator.c: Likewise.
11900         * gimple-low.c: Likewise.
11901         * gimple-match-head.c: Likewise.
11902         * gimple-pretty-print.c: Likewise.
11903         * gimple-ssa-isolate-paths.c: Likewise.
11904         * gimple-ssa-strength-reduction.c: Likewise.
11905         * gimple-streamer-in.c: Likewise.
11906         * gimple-streamer-out.c: Likewise.
11907         * gimple-streamer.h: Likewise.
11908         * gimple-walk.c: Likewise.
11909         * gimple.c: Likewise.
11910         * gimplify-me.c: Likewise.
11911         * gimplify.c: Likewise.
11912         * godump.c: Likewise.
11913         * graph.c: Likewise.
11914         * graphite-blocking.c: Likewise.
11915         * graphite-dependences.c: Likewise.
11916         * graphite-interchange.c: Likewise.
11917         * graphite-isl-ast-to-gimple.c: Likewise.
11918         * graphite-optimize-isl.c: Likewise.
11919         * graphite-poly.c: Likewise.
11920         * graphite-scop-detection.c: Likewise.
11921         * graphite-sese-to-poly.c: Likewise.
11922         * graphite.c: Likewise.
11923         * haifa-sched.c: Likewise.
11924         * hooks.h: Likewise.
11925         * hw-doloop.c: Likewise.
11926         * ifcvt.c: Likewise.
11927         * incpath.c: Likewise.
11928         * init-regs.c: Likewise.
11929         * internal-fn.c: Likewise.
11930         * ipa-chkp.c: Likewise.
11931         * ipa-comdats.c: Likewise.
11932         * ipa-cp.c: Likewise.
11933         * ipa-devirt.c: Likewise.
11934         * ipa-icf-gimple.c: Likewise.
11935         * ipa-icf.c: Likewise.
11936         * ipa-inline-analysis.c: Likewise.
11937         * ipa-inline-transform.c: Likewise.
11938         * ipa-inline.c: Likewise.
11939         * ipa-polymorphic-call.c: Likewise.
11940         * ipa-profile.c: Likewise.
11941         * ipa-prop.c: Likewise.
11942         * ipa-pure-const.c: Likewise.
11943         * ipa-ref.c: Likewise.
11944         * ipa-reference.c: Likewise.
11945         * ipa-split.c: Likewise.
11946         * ipa-utils.c: Likewise.
11947         * ipa-visibility.c: Likewise.
11948         * ipa.c: Likewise.
11949         * ira-build.c: Likewise.
11950         * ira-color.c: Likewise.
11951         * ira-conflicts.c: Likewise.
11952         * ira-costs.c: Likewise.
11953         * ira-emit.c: Likewise.
11954         * ira-lives.c: Likewise.
11955         * ira.c: Likewise.
11956         * jump.c: Likewise.
11957         * langhooks.c: Likewise.
11958         * lcm.c: Likewise.
11959         * loop-doloop.c: Likewise.
11960         * loop-init.c: Likewise.
11961         * loop-invariant.c: Likewise.
11962         * loop-iv.c: Likewise.
11963         * loop-unroll.c: Likewise.
11964         * lower-subreg.c: Likewise.
11965         * lra-assigns.c: Likewise.
11966         * lra-coalesce.c: Likewise.
11967         * lra-constraints.c: Likewise.
11968         * lra-eliminations.c: Likewise.
11969         * lra-lives.c: Likewise.
11970         * lra-remat.c: Likewise.
11971         * lra-spills.c: Likewise.
11972         * lra.c: Likewise.
11973         * lto-cgraph.c: Likewise.
11974         * lto-compress.c: Likewise.
11975         * lto-opts.c: Likewise.
11976         * lto-section-in.c: Likewise.
11977         * lto-section-out.c: Likewise.
11978         * lto-streamer-in.c: Likewise.
11979         * lto-streamer-out.c: Likewise.
11980         * lto-streamer.c: Likewise.
11981         * mcf.c: Likewise.
11982         * mode-switching.c: Likewise.
11983         * modulo-sched.c: Likewise.
11984         * omega.c: Likewise.
11985         * omp-low.c: Likewise.
11986         * optabs.c: Likewise.
11987         * opts-global.c: Likewise.
11988         * passes.c: Likewise.
11989         * plugin.c: Likewise.
11990         * postreload-gcse.c: Likewise.
11991         * postreload.c: Likewise.
11992         * predict.c: Likewise.
11993         * print-rtl.c: Likewise.
11994         * print-tree.c: Likewise.
11995         * profile.c: Likewise.
11996         * real.c: Likewise.
11997         * realmpfr.c: Likewise.
11998         * realmpfr.h: Likewise.
11999         * recog.c: Likewise.
12000         * ree.c: Likewise.
12001         * reg-stack.c: Likewise.
12002         * regcprop.c: Likewise.
12003         * reginfo.c: Likewise.
12004         * regrename.c: Likewise.
12005         * regs.h: Likewise.
12006         * regstat.c: Likewise.
12007         * reload.c: Likewise.
12008         * reload1.c: Likewise.
12009         * reorg.c: Likewise.
12010         * resource.c: Likewise.
12011         * rtl-chkp.c: Likewise.
12012         * rtlanal.c: Likewise.
12013         * rtlhooks.c: Likewise.
12014         * sanopt.c: Likewise.
12015         * sched-deps.c: Likewise.
12016         * sched-ebb.c: Likewise.
12017         * sched-rgn.c: Likewise.
12018         * sched-vis.c: Likewise.
12019         * sdbout.c: Likewise.
12020         * sel-sched-dump.c: Likewise.
12021         * sel-sched-ir.c: Likewise.
12022         * sel-sched.c: Likewise.
12023         * sese.c: Likewise.
12024         * shrink-wrap.c: Likewise.
12025         * shrink-wrap.h: Likewise.
12026         * simplify-rtx.c: Likewise.
12027         * stack-ptr-mod.c: Likewise.
12028         * statistics.c: Likewise.
12029         * stmt.c: Likewise.
12030         * stor-layout.c: Likewise.
12031         * store-motion.c: Likewise.
12032         * stringpool.c: Likewise.
12033         * symtab.c: Likewise.
12034         * target-globals.c: Likewise.
12035         * targhooks.c: Likewise.
12036         * toplev.c: Likewise.
12037         * tracer.c: Likewise.
12038         * trans-mem.c: Likewise.
12039         * tree-affine.c: Likewise.
12040         * tree-affine.h: Likewise.
12041         * tree-browser.c: Likewise.
12042         * tree-call-cdce.c: Likewise.
12043         * tree-cfg.c: Likewise.
12044         * tree-cfgcleanup.c: Likewise.
12045         * tree-chkp-opt.c: Likewise.
12046         * tree-chkp.c: Likewise.
12047         * tree-chrec.c: Likewise.
12048         * tree-complex.c: Likewise.
12049         * tree-data-ref.c: Likewise.
12050         * tree-dfa.c: Likewise.
12051         * tree-diagnostic.c: Likewise.
12052         * tree-dump.c: Likewise.
12053         * tree-eh.c: Likewise.
12054         * tree-emutls.c: Likewise.
12055         * tree-if-conv.c: Likewise.
12056         * tree-inline.c: Likewise.
12057         * tree-into-ssa.c: Likewise.
12058         * tree-iterator.c: Likewise.
12059         * tree-loop-distribution.c: Likewise.
12060         * tree-nested.c: Likewise.
12061         * tree-nrv.c: Likewise.
12062         * tree-object-size.c: Likewise.
12063         * tree-outof-ssa.c: Likewise.
12064         * tree-parloops.c: Likewise.
12065         * tree-phinodes.c: Likewise.
12066         * tree-predcom.c: Likewise.
12067         * tree-pretty-print.c: Likewise.
12068         * tree-pretty-print.h: Likewise.
12069         * tree-profile.c: Likewise.
12070         * tree-scalar-evolution.c: Likewise.
12071         * tree-sra.c: Likewise.
12072         * tree-ssa-address.c: Likewise.
12073         * tree-ssa-alias.c: Likewise.
12074         * tree-ssa-ccp.c: Likewise.
12075         * tree-ssa-coalesce.c: Likewise.
12076         * tree-ssa-copy.c: Likewise.
12077         * tree-ssa-copyrename.c: Likewise.
12078         * tree-ssa-dce.c: Likewise.
12079         * tree-ssa-dom.c: Likewise.
12080         * tree-ssa-dse.c: Likewise.
12081         * tree-ssa-forwprop.c: Likewise.
12082         * tree-ssa-ifcombine.c: Likewise.
12083         * tree-ssa-live.c: Likewise.
12084         * tree-ssa-loop-ch.c: Likewise.
12085         * tree-ssa-loop-im.c: Likewise.
12086         * tree-ssa-loop-ivcanon.c: Likewise.
12087         * tree-ssa-loop-ivopts.c: Likewise.
12088         * tree-ssa-loop-manip.c: Likewise.
12089         * tree-ssa-loop-niter.c: Likewise.
12090         * tree-ssa-loop-prefetch.c: Likewise.
12091         * tree-ssa-loop-unswitch.c: Likewise.
12092         * tree-ssa-loop.c: Likewise.
12093         * tree-ssa-loop.h: Likewise.
12094         * tree-ssa-math-opts.c: Likewise.
12095         * tree-ssa-operands.c: Likewise.
12096         * tree-ssa-phiopt.c: Likewise.
12097         * tree-ssa-phiprop.c: Likewise.
12098         * tree-ssa-pre.c: Likewise.
12099         * tree-ssa-propagate.c: Likewise.
12100         * tree-ssa-reassoc.c: Likewise.
12101         * tree-ssa-sccvn.c: Likewise.
12102         * tree-ssa-scopedtables.c: Likewise.
12103         * tree-ssa-sink.c: Likewise.
12104         * tree-ssa-strlen.c: Likewise.
12105         * tree-ssa-structalias.c: Likewise.
12106         * tree-ssa-tail-merge.c: Likewise.
12107         * tree-ssa-ter.c: Likewise.
12108         * tree-ssa-threadedge.c: Likewise.
12109         * tree-ssa-threadupdate.c: Likewise.
12110         * tree-ssa-uncprop.c: Likewise.
12111         * tree-ssa-uninit.c: Likewise.
12112         * tree-ssa.c: Likewise.
12113         * tree-ssanames.c: Likewise.
12114         * tree-stdarg.c: Likewise.
12115         * tree-streamer-in.c: Likewise.
12116         * tree-streamer-out.c: Likewise.
12117         * tree-streamer.c: Likewise.
12118         * tree-switch-conversion.c: Likewise.
12119         * tree-tailcall.c: Likewise.
12120         * tree-vect-data-refs.c: Likewise.
12121         * tree-vect-generic.c: Likewise.
12122         * tree-vect-loop-manip.c: Likewise.
12123         * tree-vect-loop.c: Likewise.
12124         * tree-vect-patterns.c: Likewise.
12125         * tree-vect-slp.c: Likewise.
12126         * tree-vect-stmts.c: Likewise.
12127         * tree-vectorizer.c: Likewise.
12128         * tree-vrp.c: Likewise.
12129         * tree.c: Likewise.
12130         * tsan.c: Likewise.
12131         * ubsan.c: Likewise.
12132         * valtrack.c: Likewise.
12133         * value-prof.c: Likewise.
12134         * var-tracking.c: Likewise.
12135         * varasm.c: Likewise.
12136         * varpool.c: Likewise.
12137         * vmsdbgout.c: Likewise.
12138         * vtable-verify.c: Likewise.
12139         * web.c: Likewise.
12140         * wide-int-print.cc: Likewise.
12141         * wide-int-print.h: Likewise.
12142         * wide-int.cc: Likewise.
12143         * xcoffout.c: Likewise.
12144         * config/aarch64/aarch64-builtins.c: Likewise.
12145         * config/aarch64/aarch64.c: Likewise.
12146         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12147         * config/alpha/alpha.c: Likewise.
12148         * config/arc/arc.c: Likewise.
12149         * config/arm/aarch-common.c: Likewise.
12150         * config/arm/arm-builtins.c: Likewise.
12151         * config/arm/arm-c.c: Likewise.
12152         * config/arm/arm.c: Likewise.
12153         * config/avr/avr-c.c: Likewise.
12154         * config/avr/avr-log.c: Likewise.
12155         * config/avr/avr.c: Likewise.
12156         * config/bfin/bfin.c: Likewise.
12157         * config/c6x/c6x.c: Likewise.
12158         * config/cr16/cr16.c: Likewise.
12159         * config/cris/cris.c: Likewise.
12160         * config/darwin-c.c: Likewise.
12161         * config/darwin.c: Likewise.
12162         * config/default-c.c: Likewise.
12163         * config/epiphany/epiphany.c: Likewise.
12164         * config/epiphany/mode-switch-use.c: Likewise.
12165         * config/epiphany/resolve-sw-modes.c: Likewise.
12166         * config/fr30/fr30.c: Likewise.
12167         * config/frv/frv.c: Likewise.
12168         * config/ft32/ft32.c: Likewise.
12169         * config/glibc-c.c: Likewise.
12170         * config/h8300/h8300.c: Likewise.
12171         * config/i386/i386-c.c: Likewise.
12172         * config/i386/i386.c: Likewise.
12173         * config/i386/msformat-c.c: Likewise.
12174         * config/i386/winnt-cxx.c: Likewise.
12175         * config/i386/winnt-stubs.c: Likewise.
12176         * config/i386/winnt.c: Likewise.
12177         * config/ia64/ia64-c.c: Likewise.
12178         * config/ia64/ia64.c: Likewise.
12179         * config/iq2000/iq2000.c: Likewise.
12180         * config/lm32/lm32.c: Likewise.
12181         * config/m32c/m32c-pragma.c: Likewise.
12182         * config/m32c/m32c.c: Likewise.
12183         * config/m32r/m32r.c: Likewise.
12184         * config/m68k/m68k.c: Likewise.
12185         * config/mcore/mcore.c: Likewise.
12186         * config/mep/mep-pragma.c: Likewise.
12187         * config/mep/mep.c: Likewise.
12188         * config/microblaze/microblaze-c.c: Likewise.
12189         * config/microblaze/microblaze.c: Likewise.
12190         * config/mips/mips.c: Likewise.
12191         * config/mmix/mmix.c: Likewise.
12192         * config/mn10300/mn10300.c: Likewise.
12193         * config/moxie/moxie.c: Likewise.
12194         * config/msp430/msp430-c.c: Likewise.
12195         * config/msp430/msp430.c: Likewise.
12196         * config/nds32/nds32-cost.c: Likewise.
12197         * config/nds32/nds32-fp-as-gp.c: Likewise.
12198         * config/nds32/nds32-intrinsic.c: Likewise.
12199         * config/nds32/nds32-isr.c: Likewise.
12200         * config/nds32/nds32-md-auxiliary.c: Likewise.
12201         * config/nds32/nds32-memory-manipulation.c: Likewise.
12202         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12203         * config/nds32/nds32-predicates.c: Likewise.
12204         * config/nds32/nds32.c: Likewise.
12205         * config/nios2/nios2.c: Likewise.
12206         * config/nvptx/nvptx.c: Likewise.
12207         * config/pa/pa.c: Likewise.
12208         * config/pdp11/pdp11.c: Likewise.
12209         * config/rl78/rl78-c.c: Likewise.
12210         * config/rl78/rl78.c: Likewise.
12211         * config/rs6000/rs6000-c.c: Likewise.
12212         * config/rs6000/rs6000.c: Likewise.
12213         * config/rx/rx.c: Likewise.
12214         * config/s390/s390-c.c: Likewise.
12215         * config/s390/s390.c: Likewise.
12216         * config/sh/sh-c.c: Likewise.
12217         * config/sh/sh-mem.cc: Likewise.
12218         * config/sh/sh.c: Likewise.
12219         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12220         * config/sh/sh_treg_combine.cc: Likewise.
12221         * config/sol2-c.c: Likewise.
12222         * config/sol2-cxx.c: Likewise.
12223         * config/sol2-stubs.c: Likewise.
12224         * config/sol2.c: Likewise.
12225         * config/sparc/sparc-c.c: Likewise.
12226         * config/sparc/sparc.c: Likewise.
12227         * config/spu/spu-c.c: Likewise.
12228         * config/spu/spu.c: Likewise.
12229         * config/stormy16/stormy16.c: Likewise.
12230         * config/tilegx/mul-tables.c: Likewise.
12231         * config/tilegx/tilegx-c.c: Likewise.
12232         * config/tilegx/tilegx.c: Likewise.
12233         * config/tilepro/mul-tables.c: Likewise.
12234         * config/tilepro/tilepro-c.c: Likewise.
12235         * config/tilepro/tilepro.c: Likewise.
12236         * config/v850/v850-c.c: Likewise.
12237         * config/v850/v850.c: Likewise.
12238         * config/vax/vax.c: Likewise.
12239         * config/visium/visium.c: Likewise.
12240         * config/vms/vms-c.c: Likewise.
12241         * config/vms/vms.c: Likewise.
12242         * config/vxworks.c: Likewise.
12243         * config/winnt-c.c: Likewise.
12244         * config/xtensa/xtensa.c: Likewise.
12245         * common/config/bfin/bfin-common.c: Likewise.
12247 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
12249         * tree.h (tree_code_for_canonical_type_merging): New function.
12250         * tree.c (gimple_canonical_types_compatible_p): Use
12251         tree_code_for_canonical_type_merging..
12253 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12255         PR c++/66192
12256         PR target/66200
12257         * doc/tm.texi: Regenerate.
12258         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
12259         * target.def (TARGET_RELAXED_ORDERING): Likewise.
12260         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
12261         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
12262         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
12263         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
12264         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
12265         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
12266         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
12268 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12270         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
12271         register fma steering pass.
12272         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
12273         AARCH64_TUNE_FMA_STEERING.
12275 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
12277         * tree.c (verify_type_variant): Verify that type and variant is
12278         compatible.
12279         (gimple_canonical_types_compatible_p): Look for main variants.
12281 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12283         * config.gcc (powerpc*-*-*): Add support for a new configure
12284         option --with-advance-toolchain=<xxx> which overrides using the
12285         default header files, libraries and dynamic linker.
12287         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
12288         specs to support the configure --with-advance-toolchain=<xxx>
12289         option.
12290         (INCLUDE_EXTRA_SPEC): Likewise.
12291         (LINK_OS_EXTRA_SPEC32): Likewise.
12292         (LINK_OK_EXTRA_SPEC64): Likewise.
12293         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
12294         (DYNAMIC_LINKER_PREFIX): Likewise.
12295         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
12296         toolchain support.
12297         (GLIBC_DYNAMIC_LINKER32): Likewise.
12298         (GLIBC_DYNAMIC_LINKER64): Likewise.
12299         (LINK_OS_LINUX_SPEC32): Likewise.
12300         (LINK_OS_LINUX_SPEC64): Likewise.
12302         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
12303         configuration option.
12305 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
12307         PR target/66275
12308         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
12309         to determine current function ABI.
12310         (ix86_function_value_regno_p): Ditto.
12312 2015-06-03  Martin Liska  <mliska@suse.cz>
12314         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
12315         * bitmap.h (struct bitmap_usage): Likewise.
12316         * ggc-common.c (struct ggc_usage): Likewise.
12317         * mem-stats.h (struct mem_location): Likewise.
12318         (struct mem_usage): Likewise.
12319         * vec.c (struct vec_usage): Likewise.
12321 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
12323         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
12324         -Bsymbolic.
12326 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
12328         * doc/plugins.texi (enum plugin_event): New event.
12329         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
12330         and PLUGIN_FINISH_FUNCTION.
12331         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
12332         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
12334 2015-06-03  Richard Biener  <rguenther@suse.de>
12336         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12337         compute GROUP_GAP for the first element.
12338         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
12339         on in-group gaps.
12341 2015-06-03  Nick Clifton  <nickc@redhat.com>
12343         * config/rl78/rl78-real.md: Add peepholes to avoid a register
12344         copy when calling a function.
12345         * config/rl78/rl78.c (need_to_save): Do not push the frame
12346         pointer in an interrupt handler prologue if it is never used.
12348 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12350         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
12352 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12354         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
12355         reference when cloning alias node.
12357 2015-06-03  Martin Liska  <mliska@suse.cz>
12359         * alloc-pool.h (struct pool_usage): Correct space padding.
12360         * ggc-page.c (ggc_print_statistics): Align columns in a report.
12361         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
12362         * tree.c (dump_tree_statistics): Align columns in a report.
12364 2015-06-03  Martin Liska  <mliska@suse.cz>
12366         * alloc-pool.c (allocate_pool_descriptor): Remove.
12367         (struct pool_output_info): Likewise.
12368         (print_alloc_pool_statistics): Likewise.
12369         (dump_alloc_pool_statistics): Likewise.
12370         * alloc-pool.h (struct pool_usage): New struct.
12371         (pool_allocator::initialize): Change usage of memory statistics
12372         to a new interface.
12373         (pool_allocator::release): Likewise.
12374         (pool_allocator::allocate): Likewise.
12375         (pool_allocator::remove): Likewise.
12376         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
12377         for a pool allocator.
12378         * mem-stats.h (struct mem_location): Add new ctor.
12379         (struct mem_usage): Add counter for number of
12380         instances.
12381         (mem_alloc_description::register_descriptor): New overload of
12382         * mem-stats.h (mem_location::to_string): New function.
12383         * bitmap.h (struct bitmap_usage): Use this new function.
12384         * ggc-common.c (struct ggc_usage): Likewise.
12385         the function.
12387 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12389         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
12390         of GCC_INSN_FLAGS_H block.
12392 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
12394         * explow.c (plus_constant): Update check after force_const_mem call
12395         to see if the value returned is not a NULL_RTX.
12397 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
12399         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
12400         remove instumentation thunks calling reachable functions.
12401         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
12402         * lto/lto-partition.c (privatize_symbol_name_1): New.
12403         (privatize_symbol_name): Privatize both decl and orig_decl
12404         names for instrumented functions.
12405         * cgraph.c (cgraph_node::verify_node): Add transparent
12406         alias chain check for instrumented node.
12408 2015-06-03  Marek Polacek  <polacek@redhat.com>
12410         PR c/64223
12411         PR c/29358
12412         * tree.c (attribute_value_equal): Handle attribute format.
12413         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
12415 2015-06-03  Richard Biener  <rguenther@suse.de>
12417         PR tree-optimization/63916
12418         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12419         Forward-propagate non-invariant addresses by splicing their
12420         reference ops if the result isn't going to be used by PRE.
12421         (vn_reference_lookup_3): Remove pointless assert.
12423 2015-06-03  Richard Biener  <rguenther@suse.de>
12425         PR tree-optimization/66375
12426         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
12427         add to the evolution before following SSA edges.
12429 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
12431         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
12432         (dump_use, dump_cand, find_induction_variables): Pass new argument
12433         to dump_iv.
12434         (record_use): Preserve the ssa name information in IV.
12436 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
12438         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
12439         NO_MODE_TEST.
12440         (add_mode_tests): Don't add mode tests if the predicate only
12441         accepts scalar constant integers.  Otherwise, allow the mode
12442         of "op" to be VOIDmode if the predicate does accept such integers.
12444 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
12446         PR target/66258
12447         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
12448         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
12449         (aarch64_secondary_reload): Likewise
12450         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
12451         to !TARGET_FLOAT.
12452         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
12453         Likewise.
12455 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
12456             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12458         PR target/65768
12459         * cprop.c (try_replace_reg): Check cost of constants before propagating.
12461 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12463         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
12464         provide access to the IBM extended double floating point mode if
12465         long double is IEEE 128-bit floating point.
12466         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
12467         point if long double is the IBM extended double type.
12469         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
12470         enable adding IEEE 128-bit floating point support.
12471         (-mfloat128-software): Likewise.
12472         (-mfloat128-sw): Likewise.
12474         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
12475         128-bit floating point types to occupy any register if
12476         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
12477         -mfloat128-software is enabled.
12478         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
12479         support.
12480         (rs6000_option_override_internal): Add -mfloat128-* support.
12481         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
12483         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
12484         and float128 type nodes.
12485         (ieee128_float_type_node): Likewise.
12486         (ibm128_float_type_node): Likewise.
12488 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12490         PR target/66136
12491         * config/aarch64/geniterators.sh: Rewrite in awk.
12493 2015-06-02  Martin Liska  <mliska@suse.cz>
12495         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
12496         values to avoid -Wmaybe-uninitialized errors.
12498 2015-06-02  Richard Biener  <rguenther@suse.de>
12500         PR debug/65549
12501         * dwarf2out.c (lookup_context_die): New function.
12502         (resolve_addr): Avoid forcing a full DIE for the
12503         target of a DW_TAG_GNU_call_site during late compilation.
12504         Instead create a stub DIE without a type if we have a
12505         context DIE present.
12507 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
12509         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
12511 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12513         PR tree-optimization/48052
12514         * cfgloop.h (struct control_iv): New.
12515         (struct loop): New field control_ivs.
12516         * tree-ssa-loop-niter.c : Include "stor-layout.h".
12517         (number_of_iterations_lt): Set no_overflow information.
12518         (number_of_iterations_exit): Init control iv in niter struct.
12519         (record_control_iv): New.
12520         (estimate_numbers_of_iterations_loop): Call record_control_iv.
12521         (loop_exits_before_overflow): New.  Interface factored out of
12522         scev_probably_wraps_p.
12523         (scev_probably_wraps_p): Factor loop niter related code into
12524         loop_exits_before_overflow.
12525         (free_numbers_of_iterations_estimates_loop): Free control ivs.
12526         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
12528 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
12530         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
12531         the target doesn't belong to the current function.
12533 2015-06-02  Marek Polacek  <polacek@redhat.com>
12535         PR middle-end/66345
12536         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
12537         get_maxval_strlen does not produce an INTEGER_CST.
12539 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
12541         * config/arc/constraints.md: Use lower-case names in match_code.
12542         * config/mmix/constraints.md: Likewise.
12544 2015-06-02  Richard Biener  <rguenther@suse.de>
12546         PR tree-optimization/65961
12547         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
12548         check and clarify dump message.
12549         (vect_build_slp_tree): If all children are built up from scalars
12550         build up the parent from scalars instead.
12551         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
12553 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12555         PR other/65366
12556         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
12557         instead of print ... .
12559 2015-06-02  Alan Modra  <amodra@gmail.com>
12561         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
12562         2014-08-11 change.
12564 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
12566         PR tree-optimization/52563
12567         PR tree-optimization/62173
12568         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
12569         (alloc_iv, set_iv): New parameter.
12570         (determine_biv_step): Delete.
12571         (find_bivs): Inline original determine_biv_step.  Pass new
12572         argument to set_iv.
12573         (idx_find_step): Use no_overflow information for conversion.
12574         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
12575         resolve_mixers handle folded_casts.
12576         (instantiate_scev_name): Change bool parameter to bool pointer.
12577         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
12578         (instantiate_array_ref, instantiate_scev_not): Ditto.
12579         (instantiate_scev_3, instantiate_scev_2): Ditto.
12580         (instantiate_scev_1, instantiate_scev_r): Ditto.
12581         (instantiate_scev_convert, ): Change parameter.  Pass argument
12582         to chrec_convert_aggressive.
12583         (instantiate_scev): Change argument.
12584         (resolve_mixers): New parameter and set it.
12585         (scev_const_prop): New argument.
12586         * tree-scalar-evolution.h (resolve_mixers): New parameter.
12587         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
12588         of chrec_conert_1.
12589         (chrec_convert): New parameter.  Move definition below.
12590         (chrec_convert_aggressive): New parameter and set it.  Call
12591         convert_affine_scev.
12592         * tree-chrec.h (chrec_convert): New parameter.
12593         (chrec_convert_aggressive): Ditto.
12595 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12597         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
12598         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
12599         the LHS of a no-return call if its type has variable size.
12600         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12601         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
12603 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
12605         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
12606         * config.in: Regenerate.
12608 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
12610         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12611         consecutive accesses within outer-loop with force_vectorize
12612         for references with zero step in inner-loop.
12614 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12616         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
12617         rather than from gcc/build directory.
12619 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12621         PR target/65697
12622         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
12623         for __sync memory models, emit initial loads and final barriers as
12624         appropriate.
12626 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
12628         PR target/65697
12629         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
12630         (aarch64_split_atomic_op): Check for __sync memory models, emit
12631         appropriate initial loads and final barriers.
12633 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
12635         * Makefile.in: Fix gcov dependencies that should
12636         not point to a build folder.
12638 2015-06-01  Richard Biener  <rguenther@suse.de>
12640         Revert
12641         2015-05-29  Richard Biener  <rguenther@suse.de>
12643         PR tree-optimization/66314
12644         * tree-ssa-threadupdate.c (create_block_for_threading): Add
12645         parameter that says which loop the new block belongs to.
12646         (ssa_create_duplicates): Blocks duplicated for the threaded
12647         path belong to the loop of the thread destination.
12649 2015-06-01  Martin Liska  <mliska@suse.cz>
12651         * sched-deps.c: Include pool-alloc.h before
12652         cselib.h header file is included.
12654 2015-06-01  Richard Biener  <rguenther@suse.de>
12656         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
12657         functions.
12659 2015-06-01  Martin Liska  <mliska@suse.cz>
12661         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
12662         a function local variable.
12664 2015-06-01  Martin Liska  <mliska@suse.cz>
12666         * alloc-pool.c (create_alloc_pool): Remove.
12667         (empty_alloc_pool): Likewise.
12668         (free_alloc_pool): Likewise.
12669         (free_alloc_pool_if_empty): Likewise.
12670         (pool_alloc): Likewise.
12671         (pool_free): Likewise.
12672         * alloc-pool.h: Remove old declarations.
12674 2015-06-01  Martin Liska  <mliska@suse.cz>
12676         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
12677         (ira_create_object): Likewise.
12678         (ira_create_allocno): Likewise.
12679         (ira_create_live_range): Likewise.
12680         (copy_live_range): Likewise.
12681         (ira_finish_live_range): Likewise.
12682         (ira_free_allocno_costs): Likewise.
12683         (finish_allocno): Likewise.
12684         (finish_allocnos): Likewise.
12685         (initiate_prefs): Likewise.
12686         (ira_create_pref): Likewise.
12687         (finish_pref): Likewise.
12688         (finish_prefs): Likewise.
12689         (initiate_copies): Likewise.
12690         (ira_create_copy): Likewise.
12691         (finish_copy): Likewise.
12692         (finish_copies): Likewise.
12693         (finish_prefs): Likewise.
12695 2015-06-01  Martin Liska  <mliska@suse.cz>
12697         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
12698         (allocate_and_init_ipcp_value): Likewise.
12699         (ipcp_lattice::add_value): Likewise.
12700         (merge_agg_lats_step): Likewise.
12701         (ipcp_driver): Likewise.
12702         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
12703         (ipa_free_all_structures_after_iinln): Likewise.
12704         * ipa-prop.h: Likewise.
12706 2015-06-01  Martin Liska  <mliska@suse.cz>
12708         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
12709         pool allocator.
12710         (set_hint_predicate): Likewise.
12711         (inline_summary_alloc): Likewise.
12712         (reset_inline_edge_summary): Likewise.
12713         (reset_inline_summary): Likewise.
12714         (set_cond_stmt_execution_predicate): Likewise.
12715         (set_switch_stmt_execution_predicate): Likewise.
12716         (compute_bb_predicates): Likewise.
12717         (estimate_function_body_sizes): Likewise.
12718         (inline_free_summary): Likewise.
12720 2015-06-01  Martin Liska  <mliska@suse.cz>
12722         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
12723         (ipa_edge_duplication_hook): Likewise.
12724         (ipa_free_all_structures_after_ipa_cp): Likewise.
12725         (ipa_free_all_structures_after_iinln): Likewise.
12727 2015-06-01  Martin Liska  <mliska@suse.cz>
12729         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
12730         (ipa_profile_generate_summary): Likewise.
12731         (ipa_profile_read_summary): Likewise.
12732         (ipa_profile): Likewise.
12734 2015-06-01  Martin Liska  <mliska@suse.cz>
12736         * tree-ssa-structalias.c (new_var_info): Use new type-based
12737         pool allocator.
12738         (new_constraint): Likewise.
12739         (init_alias_vars): Likewise.
12740         (delete_points_to_sets): Likewise.
12742 2015-06-01  Martin Liska  <mliska@suse.cz>
12744         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
12745         (free_strinfo): Likewise.
12746         (pass_strlen::execute): Likewise.
12748 2015-06-01  Martin Liska  <mliska@suse.cz>
12750         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
12751         pool allocator.
12752         (vn_reference_insert_pieces): Likewise.
12753         (vn_phi_insert): Likewise.
12754         (visit_reference_op_call): Likewise.
12755         (copy_phi): Likewise.
12756         (copy_reference): Likewise.
12757         (process_scc): Likewise.
12758         (allocate_vn_table): Likewise.
12759         (free_vn_table): Likewise.
12761 2015-06-01  Martin Liska  <mliska@suse.cz>
12763         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
12764         pool allocator.
12765         (add_repeat_to_ops_vec): Likewise.
12766         (get_ops): Likewise.
12767         (maybe_optimize_range_tests): Likewise.
12768         (init_reassoc): Likewise.
12769         (fini_reassoc): Likewise.
12771 2015-06-01  Martin Liska  <mliska@suse.cz>
12773         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
12774         pool allocator.
12775         (bitmap_set_new): Likewise.
12776         (get_or_alloc_expr_for_constant): Likewise.
12777         (get_or_alloc_expr_for): Likewise.
12778         (phi_translate_1): Likewise.
12779         (compute_avail): Likewise.
12780         (init_pre): Likewise.
12781         (fini_pre): Likewise.
12783 2015-06-01  Martin Liska  <mliska@suse.cz>
12785         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
12786         (delete_dep_node): Likewise.
12787         (create_deps_list): Likewise.
12788         (free_deps_list): Likewise.
12789         (sched_deps_init): Likewise.
12790         (sched_deps_finish): Likewise.
12792 2015-06-01  Martin Liska  <mliska@suse.cz>
12794         * regcprop.c (free_debug_insn_changes): Use new type-based
12795         pool allocator.
12796         (replace_oldest_value_reg): Likewise.
12797         (pass_cprop_hardreg::execute): Likewise.
12799 2015-06-01  Martin Liska  <mliska@suse.cz>
12801         * ira-build.c (initiate_cost_vectors): Use new type-based
12802         pool allocator.
12803         (ira_allocate_cost_vector): Likewise.
12804         (ira_free_cost_vector): Likewise.
12805         (finish_cost_vectors): Likewise.
12807 2015-06-01  Martin Liska  <mliska@suse.cz>
12809         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
12810         pool allocator.
12811         (free_sched_pools): Likewise.
12812         * sel-sched-ir.h (_list_alloc): Likewise.
12813         (_list_remove): Likewise.
12815 2015-06-01  Martin Liska  <mliska@suse.cz>
12817         * stmt.c (add_case_node): Use new type-based pool allocator.
12818         (expand_case): Likewise.
12819         (expand_sjlj_dispatch_table): Likewise.
12821 2015-06-01  Martin Liska  <mliska@suse.cz>
12823         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
12824         (free_bb): Likewise.
12825         (pass_cse_reciprocals::execute): Likewise.
12827 2015-06-01  Martin Liska  <mliska@suse.cz>
12829         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
12830         (sra_deinitialize) Likewise.
12831         (create_access_1) Likewise.
12832         (build_accesses_from_assign) Likewise.
12833         (create_artificial_child_access) Likewise.
12835 2015-06-01  Martin Liska  <mliska@suse.cz>
12837         * dse.c (get_group_info):Use new type-based pool allocator.
12838         (dse_step0) Likewise.
12839         (free_store_info) Likewise.
12840         (delete_dead_store_insn) Likewise.
12841         (free_read_records) Likewise.
12842         (record_store) Likewise.
12843         (replace_read) Likewise.
12844         (check_mem_read_rtx) Likewise.
12845         (scan_insn) Likewise.
12846         (dse_step1) Likewise.
12847         (dse_step7) Likewise.
12849 2015-06-01  Martin Liska  <mliska@suse.cz>
12851         * df-scan.c (struct df_scan_problem_data):Use new type-based
12852         pool allocator.
12853         (df_scan_free_internal) Likewise.
12854         (df_scan_alloc) Likewise.
12855         (df_grow_reg_info) Likewise.
12856         (df_free_ref) Likewise.
12857         (df_insn_create_insn_record) Likewise.
12858         (df_mw_hardreg_chain_delete) Likewise.
12859         (df_insn_info_delete) Likewise.
12860         (df_free_collection_rec) Likewise.
12861         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
12862         (df_sort_and_compress_mws) Likewise.
12863         (df_ref_create_structure) Likewise.
12864         (df_ref_record) Likewise.
12866 2015-06-01  Martin Liska  <mliska@suse.cz>
12868         * df-problems.c (df_chain_create):Use new type-based pool allocator.
12869         (df_chain_unlink_1) Likewise.
12870         (df_chain_unlink) Likewise.
12871         (df_chain_remove_problem) Likewise.
12872         (df_chain_alloc) Likewise.
12873         (df_chain_free) Likewise.
12874         * df.h (struct dataflow) Likewise.
12876 2015-06-01  Martin Liska  <mliska@suse.cz>
12878         * cselib.c (new_elt_list):Use new type-based pool allocator.
12879         (new_elt_loc_list) Likewise.
12880         (unchain_one_elt_list) Likewise.
12881         (unchain_one_elt_loc_list) Likewise.
12882         (unchain_one_value) Likewise.
12883         (new_cselib_val) Likewise.
12884         (cselib_init) Likewise.
12885         (cselib_finish) Likewise.
12887 2015-06-01  Martin Liska  <mliska@suse.cz>
12889         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
12890         (sh_reorg) Likewise.
12892 2015-06-01  Martin Liska  <mliska@suse.cz>
12894         * cfg.c (initialize_original_copy_tables):Use new type-based
12895         pool allocator.
12896         (free_original_copy_tables) Likewise.
12897         (copy_original_table_clear) Likewise.
12898         (copy_original_table_set) Likewise.
12900 2015-06-01  Martin Liska  <mliska@suse.cz>
12902         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
12903         pool allocator.
12904         (asan_mem_ref_new) Likewise.
12905         (free_mem_ref_resources) Likewise.
12907 2015-06-01  Martin Liska  <mliska@suse.cz>
12909         * var-tracking.c (variable_htab_free):Use new type-based
12910         pool allocator.
12911         (attrs_list_clear) Likewise.
12912         (attrs_list_insert) Likewise.
12913         (attrs_list_copy) Likewise.
12914         (shared_hash_unshare) Likewise.
12915         (shared_hash_destroy) Likewise.
12916         (unshare_variable) Likewise.
12917         (var_reg_delete_and_set) Likewise.
12918         (var_reg_delete) Likewise.
12919         (var_regno_delete) Likewise.
12920         (drop_overlapping_mem_locs) Likewise.
12921         (variable_union) Likewise.
12922         (insert_into_intersection) Likewise.
12923         (canonicalize_values_star) Likewise.
12924         (variable_merge_over_cur) Likewise.
12925         (dataflow_set_merge) Likewise.
12926         (remove_duplicate_values) Likewise.
12927         (variable_post_merge_new_vals) Likewise.
12928         (dataflow_set_preserve_mem_locs) Likewise.
12929         (dataflow_set_remove_mem_locs) Likewise.
12930         (variable_from_dropped) Likewise.
12931         (variable_was_changed) Likewise.
12932         (set_slot_part) Likewise.
12933         (clobber_slot_part) Likewise.
12934         (delete_slot_part) Likewise.
12935         (loc_exp_insert_dep) Likewise.
12936         (notify_dependents_of_changed_value) Likewise.
12937         (emit_notes_for_differences_1) Likewise.
12938         (vt_emit_notes) Likewise.
12939         (vt_initialize) Likewise.
12940         (vt_finalize) Likewise.
12942 2015-06-01  Martin Liska  <mliska@suse.cz>
12944         * ira-color.c (init_update_cost_records):Use new type-based
12945         pool allocator.
12946         (get_update_cost_record) Likewise.
12947         (free_update_cost_record_list) Likewise.
12948         (finish_update_cost_records) Likewise.
12949         (initiate_cost_update) Likewise.
12951 2015-06-01  Martin Liska  <mliska@suse.cz>
12953         * lra.c (init_insn_regs): Use new type-based pool allocator.
12954         (new_insn_reg) Likewise.
12955         (free_insn_reg) Likewise.
12956         (free_insn_regs) Likewise.
12957         (finish_insn_regs) Likewise.
12958         (init_insn_recog_data) Likewise.
12959         (init_reg_info) Likewise.
12960         (finish_reg_info) Likewise.
12961         (lra_free_copies) Likewise.
12962         (lra_create_copy) Likewise.
12963         (invalidate_insn_data_regno_info) Likewise.
12965 2015-06-01  Martin Liska  <mliska@suse.cz>
12967         * lra-lives.c (free_live_range): Use new type-based pool allocator.
12968         (free_live_range_list) Likewise.
12969         (create_live_range) Likewise.
12970         (copy_live_range) Likewise.
12971         (lra_merge_live_ranges) Likewise.
12972         (remove_some_program_points_and_update_live_ranges) Likewise.
12973         (lra_live_ranges_init) Likewise.
12974         (lra_live_ranges_finish) Likewise.
12976 2015-06-01  Martin Liska  <mliska@suse.cz>
12978         * et-forest.c (et_new_occ): Use new type-based pool allocator.
12979         (et_new_tree): Likewise.
12980         (et_free_tree): Likewise.
12981         (et_free_tree_force): Likewise.
12982         (et_free_pools): Likewise.
12983         (et_split): Likewise.
12985 2015-06-01  Martin Liska  <mliska@suse.cz>
12987         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
12988         to header file.
12989         * alloc-pool.h (pool_allocator::pool_allocator): New function.
12990         (pool_allocator::release): Likewise.
12991         (inline pool_allocator::release_if_empty): Likewise.
12992         (inline pool_allocator::~pool_allocator): Likewise.
12993         (pool_allocator::allocate): Likewise.
12994         (pool_allocator::remove): Likewise.
12996 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
12998         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
12999         in comment.
13001 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13003         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
13004         to fusible_ops.
13005         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
13006         (arm_macro_fusion_p): Likewise.
13007         (arm_macro_fusion_pair_p): Likewise.
13009 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13011         * config/aarch64/aarch64-protos.h (tune_params): Rename
13012         fuseable_ops to fusible_ops.
13013         * config/aarch64/aarch64.c (generic_tunings): Rename
13014         fuseable_ops to fusible_ops.
13015         (cortexa53_tunings): Likewise.
13016         (cortexa57_tunings): Likewise.
13017         (thunderx_tunings): Likewise.
13018         (xgene1_tunings): Likewise.
13019         (aarch64_macro_fusion_p): Likewise.
13020         (aarch64_macro_fusion_pair_p): Likewise.
13022 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13024         * config/s390/driver-native.c: New file.
13025         * config/s390/x-native: New file.
13026         * config.host: Add new files for s390.
13027         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
13028         and -march=native
13029         * config.gcc: Likewise.
13030         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
13031         * config/s390/s390-opts.h (enum processor_type): Ditto.
13032         * config/s390/s390.c (s390_option_override): Catch unhandled
13033         PROCESSOR_NATIVE
13035 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
13037         PR target/65527
13038         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
13039         redirection for instrumented calls.
13040         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
13041         (append_compiler_options): Append -fcheck-pointer-bounds.
13042         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
13043         (chkp_redirect_edge): New.
13044         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
13045         (chkp_redirect_edge): New.
13047 2015-06-01  Richard Biener  <rguenther@suse.de>
13049         PR tree-optimization/66280
13050         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
13051         def-use walking.
13053 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13055         * config/aarch64/aarch64.md
13056         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
13057         logic_shift_imm.
13059 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
13061         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
13062         Remove obsolete kludge.
13064 2015-06-01  Richard Biener  <rguenther@suse.de>
13066         * tree-ssa-reassoc.c (get_rank): Simplify.
13068 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
13070         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
13071         * configure: Regenerated.
13073 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
13075         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
13076         issue (add space between string literal and macro).
13077         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
13079 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
13081         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
13082         implict or explicit -fPIE or -fpie.
13084 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
13086         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
13088 2015-05-28  DJ Delorie  <dj@redhat.com>
13090         * expmed.c (extract_bit_field_1): Avoid clobbering a
13091         yet-to-be-used base/index register.
13093 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
13095         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
13096         (alias_stats): Add num_universal.
13097         (alias_set_subset_of): Special case pointers; be ready for NULL
13098         children.
13099         (alias_sets_conflict_p): Special case pointers; be ready for NULL
13100         children.
13101         (init_alias_set_entry): Break out from ...
13102         (record_alias_subset): ... here; propagate new fields;
13103         allocate children only when really needed.
13104         (get_alias_set): Do less generous pointer globbing.
13105         (dump_alias_stats_in_alias_c): Update statistics.
13107 2015-05-30  Alan Modra  <amodra@gmail.com>
13109         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
13110         correct block for use of r12.
13111         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
13113 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13115         PR target/66215
13116         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
13117         with -mhotpatch=.
13119 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
13121         PR tree-optimization/66142
13122         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
13123         virtual phis that feed themselves.
13125 2015-05-29  Richard Biener  <rguenther@suse.de>
13127         PR tree-optimization/66314
13128         * tree-ssa-threadupdate.c (create_block_for_threading): Add
13129         parameter that says which loop the new block belongs to.
13130         (ssa_create_duplicates): Blocks duplicated for the threaded
13131         path belong to the loop of the thread destination.
13133 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13135         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
13136         to cleanup-saved-temps.
13137         * doc/sourcebuild.texi (Clean up generated test files): Expand
13138         introduction.
13139         (dg-keep-saved-temps): Document new proc.
13140         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
13141         cleanup-saved-temps): Remove.
13143 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
13145         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
13146         gcc_AC_CHECK_DECLS.
13147         * configure: Regenerate.
13149 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13151         * config/nios2/linux.h (CPP_SPEC): Define.
13153 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13155         * config/microblaze/linux.h (CPP_SPEC): Define.
13157 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
13159         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
13160         -pthread is specified.
13162 2015-05-28  Richard Biener  <rguenther@suse.de>
13164         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
13165         (vect_fixup_scalar_cycles_with_patterns): Likewise.
13166         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
13167         after pattern recog.
13168         (vect_create_epilog_for_reduction): Properly handle reductions
13169         with patterns.
13170         (vectorizable_reduction): Likewise.
13171         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
13172         reduction chains.
13173         (vect_get_constant_vectors): Create the correct number of
13174         initial values for reductions.
13175         (vect_schedule_slp_instance): Handle reduction chains that are
13176         type changing properly.
13177         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
13179 2015-05-28  Richard Biener  <rguenther@suse.de>
13181         PR tree-optimization/66142
13182         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
13183         values better in memcpy destination handling.  Handle non-aliasing
13184         we discover here.
13186 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
13188         PR target/63810
13189         * config/darwin-c.c (version_components): New global enum.
13190         (parse_version, version_as_legacy_macro)
13191         (version_as_modern_macro, macosx_version_as_macro): New functions.
13192         (version_as_macro): Remove.
13193         (darwin_cpp_builtins): Use new function.
13195 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
13197         * builtins.c (expand_builtin_acc_on_device): Mark parameters
13198         with ATTRIBUTE_UNUSED.
13200 2015-05-28  Julian Brown  <julian@codesourcery.com>
13202         PR libgomp/65742
13204         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
13205         sequence for !ACCEL_COMPILER.
13207 2015-05-28  Nick Clifton  <nickc@redhat.com>
13209         * config/rx/rx.c (push_regs): New function.  Extracts code from...
13210         (rx_expand_prologue): ... here.  Use push_regs to push even small
13211         spans of registers.
13212         (pop_regs): New function.
13213         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
13214         registers.
13216 2015-05-28  Richard Biener  <rguenther@suse.de>
13218         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
13219         member.
13220         (SLP_INSTANCE_BODY_COST_VEC): Remove.
13221         (vect_update_slp_costs_according_to_vf): Likewise.
13222         (vect_slp_analyze_operations): Update prototype.
13223         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
13224         vect_update_slp_costs_according_to_vf, adjust.
13225         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
13226         (vect_analyze_slp_cost_1): Likewise.
13227         (vect_analyze_slp_cost): Likewise.  Properly deal with
13228         widening reduction ops.  Commit body costs.
13229         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
13230         cost for loops from here.
13231         (vect_slp_analyze_operations): But do it from here when
13232         the vectorization factor is known and stmts are analyzed.
13233         (vect_bb_vectorization_profitable_p): Simplify.
13234         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
13235         (vect_update_slp_costs_according_to_vf): Remove.
13237 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
13238             H.J. Lu  <hongjiu.lu@intel.com>
13240         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
13241         (BUILD_CFLAGS): Likewise.
13242         (BUILD_CXXFLAGS): Likewise.
13243         (LINKER): Add @NO_PIE_FLAG@.
13244         (BUILD_LDFLAGS): Likewise.
13245         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
13246         --enable-default-pie.
13247         * common.opt (fPIE): Initialize to -1.
13248         (fpie): Likewise.
13249         (no-pie): New option.
13250         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
13251         * configure.ac: Add --enable-default-pie.
13252         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
13253         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
13254         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
13255         * gcc.c (NO_PIE_SPEC): New.
13256         (PIE_SPEC): Likewise.
13257         (NO_FPIE1_SPEC): Likewise.
13258         (FPIE1_SPEC): Likewise.
13259         (NO_FPIE2_SPEC): Likewise.
13260         (FPIE2_SPEC): Likewise.
13261         (NO_FPIE2_SPEC): Likewise.
13262         (FPIE_SPEC): Likewise.
13263         (NO_FPIE_SPEC): Likewise.
13264         (NO_FPIC1_SPEC): Likewise.
13265         (FPIC1_SPEC): Likewise.
13266         (NO_FPIC2_SPEC): Likewise.
13267         (FPIC2_SPEC): Likewise.
13268         (NO_FPIC2_SPEC): Likewise.
13269         (FPIC_SPEC): Likewise.
13270         (NO_FPIC_SPEC): Likewise.
13271         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
13272         (FPIE1_OR_FPIC1_SPEC): Likewise.
13273         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
13274         (FPIE2_OR_FPIC2_SPEC): Likewise.
13275         (NO_FPIE_AND_FPIC_SPEC): Likewise.
13276         (FPIE_OR_FPIC_SPEC): Likewise.
13277         (LD_PIE_SPEC): Likewise.
13278         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
13279         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
13280         * config/darwin.h (PIE_SPEC): Renamed to ...
13281         (DARWIN_PIE_SPEC): This.
13282         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
13283         * config/darwin9.h (PIE_SPEC): Renamed to ...
13284         (DARWIN_PIE_SPEC): This.
13285         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
13286         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
13287         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
13288         FPIE2_OR_FPIC2_SPEC.
13289         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
13290         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
13291         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
13292         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13293         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13294         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
13295         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
13296         * config/m32r/m32r.h (ASM_SPEC): Likewise.
13297         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
13298         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13299         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
13300         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
13301         * config/sparc/linux.h (ASM_SPEC): Likewise.
13302         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13303         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
13304         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
13305         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13306         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13307         * config/sparc/sparc.h (ASM_SPEC): Likewise.
13308         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
13309         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
13310         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
13311         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
13312         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
13313         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
13314         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
13315         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
13316         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
13317         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
13318         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
13319         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
13320         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13321         * config/vax/linux.h (ASM_SPEC): Likewise.
13322         * doc/install.texi: Document --enable-default-pie.
13323         * doc/invoke.texi: Document -no-pie.
13324         * config.in: Regenerated.
13325         * configure: Likewise.
13327 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13329         PR rtl-optimization/66168
13330         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
13331         can_move_invariant_reg.
13333 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
13335         PR target/66148
13336         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
13337         REG_EQUAL note when doing insert.
13339         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
13340         instead of "%d" for 'o' operand.
13342 2015-05-27  Nathan Sidwell  <nathan@acm.org>
13344         PR c++/66270
13345         * tree.c (build_pointer_type_for_mode): Canonical type does not
13346         inherit can_alias_all.
13347         (build_reference_type_for_mode): Likewise.
13349 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13351         * expr.h (array_at_struct_end_p): Move to...
13352         (array_ref_element_size): Likewise.
13353         (component_ref_field_offset): Likewise.
13354         * tree.h (array_ref_element_size): ...here.
13355         (array_at_struct_end_p): Likewise.
13356         (component_ref_field_offset): Likewise.
13357         * expr.c (array_ref_element_size): Move to...
13358         (array_ref_low_bound): Likewise.
13359         (array_at_struct_end_p): Likewise.
13360         (array_ref_up_bound): Likewise.
13361         (component_ref_field_offset): Likewise.
13362         * tree.c (array_ref_element_size): ...here.
13363         (array_ref_low_bound): Likewise.
13364         (array_ref_up_bound): Likewise.
13365         (array_at_struct_end_p): Likewise.
13366         (component_ref_field_offset): Likewise.
13368 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13369             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13371         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
13373 2015-05-27  Jason Merrill  <jason@redhat.com>
13375         PR bootstrap/66304
13376         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
13377         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
13378         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
13380 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
13382         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
13383         is true.
13385         * statistics.c (statistics_fini_pass): Print pass name.
13387 2015-05-27  Richard Biener  <rguenther@suse.de>
13389         PR tree-optimization/66272
13390         Revert parts of
13391         2014-08-15  Richard Biener  <rguenther@suse.de>
13393         PR tree-optimization/62031
13394         * tree-data-ref.c (dr_analyze_indices): Do not set
13395         DR_UNCONSTRAINED_BASE.
13396         (dr_may_alias_p): All indirect accesses have to go the
13397         formerly DR_UNCONSTRAINED_BASE path.
13398         * tree-data-ref.h (struct indices): Remove
13399         unconstrained_base member.
13400         (DR_UNCONSTRAINED_BASE): Remove.
13402 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
13404         * dwarf2out.c: Remove block_map.
13405         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
13406         (gen_lexical_block_die): Same.
13407         (dwarf2out_function_decl): Remove block_map use.
13408         (dwarf2out_c_finalize): Same.
13409         * tree-core.h (struct tree_block): Add die field.
13410         * tree.h (BLOCK_DIE): New.
13412 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13414         PR target/65358
13415         * expr.c (memory_load_overlap): New function.
13416         (emit_push_insn): When pushing partial args to the stack would
13417         clobber the register part load the overlapping part into a pseudo
13418         and put it into the hard reg after pushing.  Change return type
13419         to bool.  Add bool argument.
13420         * expr.h (emit_push_insn): Change return type to bool.
13421         Add bool argument.
13422         * calls.c (expand_call): Cancel sibcall optimization when encountering
13423         partial argument on targets with ARGS_GROW_DOWNWARD and
13424         !STACK_GROWS_DOWNWARD.
13425         (emit_library_call_value_1): Update callsite of emit_push_insn.
13426         (store_one_arg): Likewise.
13428 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
13430         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
13432 2015-05-27  Martin Liska  <mliska@suse.cz>
13434         * Makefile.in: Add additional dependencies related to memory report
13435         enhancement.
13436         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
13437         * bitmap.c (struct bitmap_descriptor_d): Remove.
13438         (struct loc): Likewise.
13439         (struct bitmap_desc_hasher): Likewise.
13440         (bitmap_desc_hasher::hash): Likewise.
13441         (bitmap_desc_hasher::equal): Likewise.
13442         (get_bitmap_descriptor): Likewise.
13443         (bitmap_register): User new memory descriptor API.
13444         (register_overhead): Likewise.
13445         (bitmap_find_bit): Register nsearches and search_iter statistics.
13446         (struct bitmap_output_info): Remove.
13447         (print_statistics): Likewise.
13448         (dump_bitmap_statistics): Use new memory descriptor.
13449         * bitmap.h (struct bitmap_usage): New class.
13450         * genmatch.c: Extend header file inclusion.
13451         * genpreds.c: Likewise.
13452         * ggc-common.c (struct ggc_usage): New class.
13453         (struct ggc_loc_desc_hasher): Remove.
13454         (ggc_loc_desc_hasher::hash): Likewise.
13455         (ggc_loc_desc_hasher::equal): Likewise.
13456         (struct ggc_ptr_hash_entry): Likewise.
13457         (struct ptr_hash_hasher): Likewise.
13458         (ptr_hash_hasher::hash): Likewise.
13459         (ptr_hash_hasher::equal): Likewise.
13460         (make_loc_descriptor): Likewise.
13461         (ggc_prune_ptr): Likewise.
13462         (dump_ggc_loc_statistics): Use new memory descriptor.
13463         (ggc_record_overhead): Likewise.
13464         (ggc_free_overhead): Likewise.
13465         (final_cmp_statistic): Remove.
13466         (cmp_statistic): Likewise.
13467         (ggc_add_statistics): Liekwise.
13468         (ggc_prune_overhead_list): Likewise.
13469         * hash-map-traits.h: New file.
13470         * hash-map.h (struct default_hashmap_traits): Move the traits to a
13471         separate header file.
13472         * hash-set.h: Pass memory statistics info to ctor.
13473         * hash-table.c (void dump_hash_table_loc_statistics): New function.
13474         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
13475         (hash_table::~hash_table): Register memory release operation.
13476         (hash_table::alloc_entries): Handle memory allocation operation.
13477         (hash_table::expand): Likewise.
13478         * inchash.c (iterative_hash_hashval_t): Move implementation to header
13479         file.
13480         (iterative_hash_host_wide_int): Likewise.
13481         * inchash.h (class hash): Likewise.
13482         * mem-stats-traits.h: New file.
13483         * mem-stats.h: New file.
13484         (mem_location): Add new class.
13485         (mem_usage): Likewise.
13486         (mem_alloc_description): Likewise.
13487         * sese.c: Add new header file inclusision.
13488         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
13489         and hash_set.
13490         * tree-sra.c: Add new header file inclusision.
13491         * vec.c (struct vec_descriptor): Remove.
13492         (hash_descriptor): Likewise.
13493         (struct vec_usage): Likewise.
13494         (struct ptr_hash_entry): Likewise.
13495         (hash_ptr): Likewise.
13496         (eq_ptr): Likewise.
13497         (vec_prefix::register_overhead): Use new memory descriptor API.
13498         (vec_prefix::release_overhead): Likewise.
13499         (add_statistics): Remove.
13500         (dump_vec_loc_statistics): Use new memory descriptor API.
13501         * vec.h (struct vec_prefix): Likewise.
13502         (va_heap::reserve): Likewise.
13503         (va_heap::release): Likewise.
13504         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
13506 2015-05-27  Richard Biener  <rguenther@suse.de>
13508         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
13509         earlier and remove ??? comment.
13510         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
13511         and got called from loop analysis bail out.  Always pass the SLP
13512         node to the vectorizable_* functions.
13513         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
13514         the premature SLP check here.
13515         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
13516         detected SLP stmts.
13517         (vect_detect_hybrid_slp_1): Likewise.
13519 2015-05-26  Jeff Law  <law@redhat.com>
13521         * combine.c (find_split_point): Verify that the shift count is a
13522         constant when choosing (plus (ashift ...)) as a split point.
13524         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
13525         No functional changes.
13527 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
13529         * ipa-polymorphic-call.c
13530         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
13531         case when call target is already known.
13533 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
13535         PR target/65979
13536         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
13537         take into account the case that operands[1] and operands[2]
13538         are the same register.
13540 2015-05-26  Michael Matz  <matz@suse.de>
13542         PR middle-end/66251
13544         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
13545         stores.
13546         (vect_create_vectorized_demotion_stmts): Always set
13547         STMT_VINFO_VEC_STMT, also with SLP.
13548         (vectorizable_store): Handle strided group stores.
13550 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13552         PR target/66049
13553         * config/aarch64/aarch64.md
13554         (*adds_shift_imm_<mode>):  New pattern.
13555         (*subs_shift_imm_<mode>):  Likewise.
13556         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
13557         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
13558         (*add_uxt<mode>_shift2): Likewise.
13559         (*add_uxtsi_shift2_uxtw): Likewise.
13560         (*sub_uxt<mode>_shift2): Likewise.
13561         (*sub_uxtsi_shift2_uxtw): Likewise.
13563 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
13565         * config/rs6000/constraints.md (Y, U): Use match_test.
13567 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13569         PR target/52144
13570         * config/arm/arm.c (arm_option_check_internal)
13571         (arm_option_params_internal): Check opts->target_flags to set macros.
13572         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13573         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
13574         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13575         (builtin_define): Replaced with def_or_undef_macro.
13576         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
13577         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
13578         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
13579         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
13580         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
13581         (TARGET_ARM_FEATURE_LDREX_P)
13582         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
13583         * config/arm/arm-c.c (def_or_undef_macro): New function.
13584         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
13586 2015-05-26  Christian Bruel  <christian.bruel@st.com>
13588         * c-common.h (builtin_define_with_int_value)
13589         (builtin_define_type_sizeof): Declare.
13590         * c-cppbuiltin.c (builtin_define_with_int_value)
13591         (builtin_define_type_sizeof): Externalize.
13592         (builtin_define_std): Cleanup declaration.
13593         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
13594         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
13595         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
13596         (builtin_define, builtin_assert): New macros.
13598 2015-05-26  Richard Biener  <rguenther@suse.de>
13600         PR tree-optimization/66142
13601         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
13602         MEM_REFs for the same base address.
13604 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13606         PR ipa/66181
13607         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
13609 2015-05-26  Jason Merrill  <jason@redhat.com>
13611         * configure.ac: Set CXXFLAGS for ISL test.
13612         * configure: Regenerate.
13614         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
13615         strstr and basename.
13616         * configure: Regenerate.
13618 2015-05-26  Richard Biener  <rguenther@suse.de>
13620         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
13621         X % C -> X & (C - 1) for C being a power-of two to ...
13622         * match.pd: ... patterns.
13624 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
13626         * match.pd (swapped_tcc_comparison): New operator list.
13627         (-A CMP -B): New simplification.
13628         * fold-const.c (fold_comparison): Remove corresponding code.
13630 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13632         * caller-save.c (init_caller_save): Base temporary register numbers
13633         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
13634         * cfgloopanal.c (init_set_costs): Likewise.
13635         * dojump.c (prefer_and_bit_test): Likewise.
13636         * expr.c (init_expr_target): Likewise.
13637         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13638         * lower-subreg.c (init_lower_subreg): Likewise.
13639         * postreload.c (reload_cse_regs_1): Likewise.
13641 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13643         * gensupport.h (compute_test_codes): Declare.
13644         * gensupport.c (compute_predicate_codes): Rename to...
13645         (compute_test_codes): ...this.  Generalize error message.
13646         (process_define_predicate): Update accordingly.
13647         * genpreds.c (compute_maybe_allows): Delete.
13648         (add_constraint): Use compute_test_codes to determine whether
13649         something can accept a SUBREG, REG or MEM.
13651 2015-05-26  Torvald Riegel  <triegel@redhat.com>
13653         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
13654         'memory model' to align with C++11; fix description of memory orders;
13655         fix a few typos.
13657 2015-05-26  Richard Biener  <rguenther@suse.de>
13659         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
13660         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
13661         detect whether we apply SLP.  Remove call to
13662         vect_update_slp_costs_according_to_vf.
13663         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
13664         vect_update_slp_costs_according_to_vf from here.  Dispatch
13665         to vect_slp_analyze_operations to analyze SLP stmts.
13666         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
13667         unused bb_vec_info parameter, adjust assert.
13668         (vect_slp_analyze_operations): Pass in the slp instance tree
13669         instead of bb_vec_info.
13670         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
13671         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
13673 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13675         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
13676         Q_REGS.  Expand comment.
13677         (REG_CLASS_NAMES): Ditto.
13678         (REG_CLASS_CONTENTS): Ditto.
13680 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
13682         PR target/66274
13683         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
13684         when LEGACY_INT_REGNO_P is processed.
13686 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
13688         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
13690 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13692         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
13693         register if not marked dead/unused, before return.
13695 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13697         PR lto/66180
13698         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
13699         is set; check for assembler name at LTO time.
13700         (type_in_anonymous_namespace): Remove hacks, check that all
13701         anonymous types are called "<anon>"
13702         (odr_type_p): Simplify; add check for "<anon>"
13703         (odr_subtypes_equivalent): Add odr_type_p check.
13704         * tree.c (need_assembler_name_p): Even anonymous namespace needs
13705         assembler name.
13707 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13709         * ipa-utils.h (method_class_type): Remove.
13710         * cgraphunit.c (walk_polymorphic_call_targets): Use
13711         TYPE_METHOD_BASETYPE.
13712         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
13713         on main variants only.
13714         (method_class_type): Remove.
13715         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
13716         (build_type_inheritance_graph): Likewise.
13717         * ipa-icf.c (sem_function::equals_wpa): Likewise.
13718         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
13719         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
13721 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
13723         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
13724         is_typedef_decl, typedef_variant_p): Constify.
13725         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
13726         is_typedef_decl, typedef_variant_p): Constify.
13728 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13730         * defaults.h (gen_tablejump): New function.
13731         (HAVE_tablejump): Add default value.
13732         * expr.c: Adjust.
13733         * stmt.c: Likewise.
13735 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13737         * defaults.h (gen_store_multiple): New function.
13738         (HAVE_store_multiple): Add default value.
13739         * expr.c (move_block_from_reg): Adjust.
13741 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13743         * defaults.h (gen_load_multiple): New function.
13744         (HAVE_load_multiple): Add default value.
13745         * expr.c (move_block_to_reg): Adjust.
13747 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13749         * defaults.h (gen_mem_signal_fence): New function.
13750         (HAVE_mem_signal_fence): Add default value.
13751         * optabs.c: Adjust.
13753 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13755         * defaults.h (gen_memory_barrier): New function.
13756         (HAVE_memory_barrier): Add default value.
13757         * optabs.c: Adjust.
13759 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13761         * defaults.h (gen_mem_thread_fence): New function.
13762         (HAVE_mem_thread_fence): Add default definition.
13763         * optabs.c: Adjust.
13765 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13767         * combine.c (find_split_point): Check the value of HAVE_lo_sum
13768         instead of if it is defined.
13769         (combine_simplify_rtx): Likewise.
13770         * lra-constraints.c (process_address_1): Likewise.
13771         * config/darwin.c: Adjust.
13772         * genconfig.c (main): Always define HAVE_lo_sum.
13774 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13776         * genmatch.c (parser::parse_operation): Reject expanding
13777         operator-list inside 'for'.
13779 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13781         * genmatch.c (parser::parse_for): Reject iterator if used as
13782         operator-list.
13784 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13786         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
13787         after end of id-list.
13789 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13791         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
13792         we do not try to compute canonical type for type that does not need
13793         alias set.
13794         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
13795         FUNCITON_TYPE.
13796         * tree.h (type_with_alias_set_p): New.
13798 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
13800         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
13801         function attributes.
13802         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
13804 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
13806         * Makefile.in (check_gcc_parallelize): Delete.
13807         (lang_checks_parallelized): Update comment.
13809 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
13811         PR rtl-optimization/66237
13812         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
13813         location of an "as_a" cast.
13815 2015-05-22  Jeff Law  <law@redhat.com>
13817         * config/pa/pa.md (non-canonical shift-add insns): Remove.
13818         (peepholes with non-canonical RTL sources): Remove.
13819         (peepholes for indexed stores of FP regs in integer modes): Match and
13820         generate canonical RTL.
13822 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13824         PR tree-optimization/63387
13825         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
13826         ((x ord x) & (y ord y) -> (x ord y),
13827         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
13828         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
13829         vectors like scalars.
13831 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13833         * convert.c (convert_to_integer, convert_to_vector): Include the
13834         types in the error message.
13836 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
13838         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
13839         simplifications.
13841 2015-05-22  Jeff Law  <law@redhat.com>
13843         * config/pa/pa.md (integer_indexed_store splitters): Use
13844         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
13845         insns -- adjusting the constant 2nd operand accordingly.
13847         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
13848         (plus (ashift X log2) Y) if it is a split point.
13850         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
13851         out of hppa_legitimize_address to handle both forms of a multiply
13852         by 2, 4 or 8.
13853         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
13854         Always generate the ASHIFT variant as the result is not directly
13855         used in a MEM.  Update comments and refactor slightly to improve
13856         readability.
13858 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13860         PR target/65491
13861         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
13862         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
13863         (aarch64_composite_type_p): Return false if given type and mode are
13864         for a short vector.
13866 2015-05-22  Richard Biener  <rguenther@suse.de>
13868         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
13869         member.
13870         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
13871         patterns when determining whether SLP is pure.
13872         (vect_is_slp_reduction): Remove check for pattern stmts.
13873         (vect_is_simple_reduction_1): Remove dead code.
13874         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
13875         (vect_get_and_check_slp_defs): Pass in the stmt number.
13876         Allow the first def in a reduction to be not a pattern stmt when
13877         the rest of the stmts def are patterns.
13878         (vect_build_slp_tree_1): Allow tcc_expression codes like
13879         SAD_EXPR and DOT_PROD_EXPR.
13880         (vect_build_slp_tree): Adjust.
13881         (vect_analyze_slp): Refactor and move BB vect error message ...
13882         (vect_slp_analyze_bb_1): ... here.
13884 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
13886         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
13887         for CSWTCH temporary.
13889 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13891         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
13892         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
13893         unknown unspecs.
13895 2015-05-22  Richard Biener  <rguenther@suse.de>
13897         PR tree-optimization/66251
13898         * tree-vect-stmts.c (vectorizable_conversion): Properly
13899         set STMT_VINFO_VEC_STMT even for the SLP case.
13901 2015-05-22  Marek Polacek  <polacek@redhat.com>
13903         * doc/extend.texi: Use @pxref instead of @xref.
13905 2015-05-22  hiraditya  <hiraditya@msn.com>
13907         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
13908         redundant if.
13910 2015-05-22  Richard Biener  <rguenther@suse.de>
13912         PR tree-optimization/65701
13913         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13914         Move peeling cost models into one place.  Peel for alignment
13915         for single loads only if an aligned load is cheaper than
13916         an unaligned load.
13918 2015-05-22  Marek Polacek  <polacek@redhat.com>
13920         PR c/47043
13921         * doc/extend.texi (Enumerator Attributes): New section.
13922         Document syntax of enumerator attributes.
13924 2015-05-22  Richard Biener  <rguenther@suse.de>
13926         * tree-vect-loop.c (get_reduction_op): New function.
13927         (vect_model_reduction_cost): Use it, add reduc_index parameter.
13928         Make ready for BB reductions.
13929         (vect_create_epilog_for_reduction): Use get_reduction_op.
13930         (vectorizable_reduction): Init reduc_index to a valid value.
13931         Adjust vect_model_reduction_cost call.
13932         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
13933         operand for reduction defaults.  Add SAD_EXPR support.
13934         Assert we have a neutral op for SLP reductions.
13935         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
13936         walking pattern stmt ops only recurse to SSA names.
13938 2015-05-22  Richard Biener  <rguenther@suse.de>
13940         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
13941         assert with guard, remove check on detected reduction.
13942         (vect_recog_sad_pattern): Likewise.
13943         (vect_recog_widen_sum_pattern): Likewise.
13945 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13947         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
13948         __always_inline__ attribute.
13949         (vaesdq_u8): Likewise.
13950         (vaesmcq_u8): Likewise.
13951         (vaesimcq_u8): Likewise.
13952         (vsha1cq_u32): Likewise.
13953         (vsha1mq_u32): Likewise.
13954         (vsha1pq_u32): Likewise.
13955         (vsha1h_u32): Likewise.
13956         (vsha1su0q_u32): Likewise.
13957         (vsha1su1q_u32): Likewise.
13958         (vsha256hq_u32): Likewise.
13959         (vsha256h2q_u32): Likewise.
13960         (vsha256su0q_u32): Likewise.
13961         (vsha256su1q_u32): Likewise.
13962         (vmull_p64): Likewise.
13963         (vmull_high_p64): Likewise.
13965 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13967         * final.c (final_scan_insn): Don't check HAVE_peephole with the
13968         preprocessor.
13969         * output.h: Likewise.
13970         * genconfig.c (main): Alwways define HAVE_peephole.
13971         * genpeep.c: Don't emit checks of HAVE_peephole.
13973 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13975         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
13976         check HAVE_conditional_move with the preprocessor.
13978 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13980         * genconfig.c (main): Always define HAVE_conditional_move.
13981         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
13982         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
13983         is defined.
13985 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13987         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
13988         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
13989         and FRAME_POINTER_REGNUM with the preprocessor.
13991 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13993         * defaults.h: Add default for STACK_PUSH_CODE.
13994         * expr.c: Don't redefine STACK_PUSH_CODE.
13995         * recog.c: Likewise.
13997 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13999         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
14000         sched-deps.c: Use if instead of preprocessor checks with
14001         STACK_GROWS_DOWNWARD.
14003 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14005         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
14006         is defined.
14007         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
14008         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
14009         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
14010         * doc/tm.texi: Regenerate.
14012 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14014         PR target/66232
14015         * config/i386/constraints.md (Bg): New constraint for GOT memory
14016         operand.
14017         * config/i386/i386.md (*call_got_x32): New pattern.
14018         (*call_value_got_x32): Likewise.
14019         * config/i386/predicates.md (GOT_memory_operand): New predicate.
14021 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
14023         PR tree-optimization/66233
14024         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14025         Simplify.
14027 2015-05-21  Jeff Law  <law@redhat.com>
14029         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
14030         than MULT for shadd sequences.
14032 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
14034         * alias.c (alias_stats): New static var.
14035         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
14036         (dump_alias_stats_in_alias_c): New function.
14037         * alias.h (dump_alias_stats_in_alias_c): Declare.
14038         * tree-ssa-alias.c (dump_alias_stats): Call it.
14040 2015-05-08  Michael Matz  <matz@suse.de>
14042         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
14043         to strided_p.
14044         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
14045         (STMT_VINFO_STRIDED_P): ... this.
14046         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
14047         (vect_verify_datarefs_alignment): Likewise.
14048         (vect_enhance_data_refs_alignment): Likewise.
14049         (vect_analyze_data_ref_access): Likewise.
14050         (vect_analyze_data_refs): Accept strided stores.
14051         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
14052         (vect_model_load_cost): Adjust for macro rename.
14053         (vectorizable_mask_load_store): Likewise.
14054         (vectorizable_load): Likewise.
14055         (vectorizable_store): Open code strided stores.
14057 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14059         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
14060         Document sqrt_insn.
14062 2015-05-21  Richard Biener  <rguenther@suse.de>
14064         PR c++/66211
14065         * match.pd: Guard pattern optimzing (int)(float)int
14066         conversions to apply only on GIMPLE.
14068 2015-05-21  Jeff Law  <law@redhat.com>
14070         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
14071         multiply-accumulate/shift-add insn generation.
14073 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
14075         PR target/54236
14076         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
14077         operands[1] are the same.
14079 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
14081         PR middle-end/66221
14082         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
14083         build_distinct_type_copy to copy bounds.
14085 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
14087         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
14088         Change to unsigned int.
14090 2015-05-20  Jeff Law  <law@redhat.com>
14092         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
14093         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
14094         (pa_shadd_constant_p): Allow constants for shadd insns rather
14095         than valid scaling constants for memory addresses.
14096         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
14097         * config/pa/predicates.md (mem_shadd_operand): New predicate.
14098         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
14099         (shift-add insns using ASHIFT): New patterns.
14101 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
14103         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
14104         feasible.
14105         (fix_up_fall_thru_edges): Likewise.
14106         (fix_crossing_conditional_branches): Likewise. Promote jump targets
14107         from to rtx_insn to rtx_code_label where feasible.
14108         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
14109         gen_move_insn (returned type changed to rtx_insn).
14110         * builtins.c (expand_errno_check): Fix arguments of
14111         do_compare_rtx_and_jump (now expects rtx_code_label).
14112         (expand_builtin_acc_on_device): Likewise.
14113         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
14114         invert_jump (now exprects rtx_jump_insn).
14115         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
14116         (construct_init_block): Use rtx_code_label.
14117         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
14118         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
14119         calling redirect_jump.
14120         (patch_jump_insn): Likewise.
14121         (redirect_branch_edge): Likewise.
14122         (force_nonfallthru_and_redirect): Likewise.
14123         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
14124         when suitable.
14125         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
14126         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
14127         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
14128         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
14129         to store the value retured by gen_label_rtx.
14130         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
14131         rtx_jump_insn.
14132         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
14133         (split_branches): Fix calls of redirect_jump.
14134         * dojump.c (jumpifnot): Promote argument type from rtx to
14135         rtx_code_label.
14136         (jumpifnot_1): Likewise.
14137         (jumpif): Likewise.
14138         (jumpif_1): Likewise.
14139         (do_jump_1): Likewise.
14140         (do_jump): Likewise. Use rtx_code_label when feasible.
14141         (do_jump_by_parts_greater_rtx): Likewise.
14142         (do_jump_by_parts_zero_rtx): Likewise.
14143         (do_jump_by_parts_equality_rtx): Likewise.
14144         (do_compare_rtx_and_jump): Likewise.
14145         * dojump.h: Update function prototypes.
14146         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
14147         returns rtx_insn).
14148         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
14149         rtx_jump_insn.
14150         (emit_label_before): Likewise.
14151         (emit_jump_insn_after_noloc): Likewise.
14152         (emit_jump_insn_after_setloc): Likewise.
14153         (emit_jump_insn_after): Likewise
14154         (emit_jump_insn_before_setloc): Likewise.
14155         (emit_jump_insn_before): Likewise.
14156         (emit_label_before): Promote return type to rtx_code_label.
14157         (emit_label): Likewise.
14158         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
14159         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
14160         gen_move_insn.
14161         (emit_stack_restore): Likewise.
14162         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
14163         (do_cmp_and_jump): Likewise.
14164         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
14165         from rtx to rtx_code_label.
14166         (gen_move_insn_uncast): New function.
14167         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
14168         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
14169         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
14170         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
14171         invert_jump_1 and redirect_jump_1.
14172         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
14173         do_compare_rtx_and_jump.
14174         (expand_addsub_overflow): Likewise.
14175         (expand_neg_overflow): Likewise.
14176         (expand_mul_overflow): Likewise.
14177         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
14178         return value of gen_move_insn.
14179         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
14180         * loop-doloop.c (add_test): Use rtx_code_label.
14181         (doloop_modify): Likewise.
14182         (doloop_optimize): Likewise.
14183         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
14184         * lra-constraints.c (emit_spill_move): Remove cast of value returned
14185         by gen_move_insn.
14186         (inherit_reload_reg): Add cast when calling dump_insn_slim.
14187         (split_reg): Likewise.
14188         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
14189         gen_move_insn.
14190         * optabs.c (expand_binop_directly): Remove casts of values returned by
14191         maybe_gen_insn.
14192         (expand_unop_direct): Likewise.
14193         (expand_abs): Likewise.
14194         (maybe_emit_unop_insn): Likewise.
14195         (maybe_gen_insn): Promote return type to rtx_insn.
14196         * optabs.h: Update prototype of maybe_gen_insn.
14197         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
14198         redundant cast.
14199         * recog.c (struct peep2_insn_data): Promote type of insn field to
14200         rtx_insn.
14201         (peep2_reinit_state): Use NULL instead of NULL_RTX.
14202         (peep2_attempt): Remove casts of insn in peep2_insn_data.
14203         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
14204         * recog.h (struct insn_gen_fn): Promote return types of function
14205         pointers and operator ().from rtx to rtx_insn.
14206         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
14207         (fill_eager_delay_slots): Likewise.
14208         (relax_delay_slots): Likewise.
14209         (make_return_insns): Likewise.
14210         (dbr_schedule): Likewise.
14211         (optimize_skips): Likewise.
14212         (reorg_redirect_jump): Likewise.
14213         (fill_slots_from_thread): Likewise.
14214         * reorg.h: Update prototypes.
14215         * resource.c (find_dead_or_set_registers): Use dyn_cast to
14216         rtx_jump_insn instead of check.  Use it's jump_target method.
14217         * rtl.h (rtx_jump_insn::jump_label): Define new method.
14218         (rtx_jump_insn::jump_target): Define new method.
14219         (rtx_jump_insn::set_jump_target): Define new method.
14220         * rtlanal.c (tablejump_p): Promote type of one local variable.
14221         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
14222         (sched_analyze_insn): Likewise.
14223         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
14224         (print_insn): Likewise.
14225         * stmt.c (label_rtx): Promote return type to rtx_insn.
14226         (force_label_rtx): Likewise.
14227         (jump_target_rtx): Define new function.
14228         (expand_label): Use it, get rid of one cast.
14229         (expand_naked_return): Promote rtx to rtx_code_label.
14230         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
14231         (expand_case): Use rtx_code_label instread of rtx where feasible.
14232         (expand_sjlj_dispatch_table): Likewise.
14233         (emit_case_nodes): Likewise.
14234         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
14235         * store-motion.c (insert_store): Make use of new return type of
14236         gen_move_insn and remove a cast.
14237         (replace_store_insn): Likewise.
14239 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
14241         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
14242         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
14244 2015-05-20  Jeff Law  <law@redhat.com>
14246         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
14247         dispose of the jump thread path when the jump threading
14248         opportunity is cancelled.
14250 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14252         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
14253         when printing the caret character.
14255 2015-05-20  Marek Polacek  <polacek@redhat.com>
14257         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
14259 2015-05-20  Marek Polacek  <polacek@redhat.com>
14261         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
14262         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
14263         * gimple-fold.c (canonicalize_bool): Likewise.
14264         (same_bool_result_p): Likewise.
14265         * tree-if-conv.c (parse_predicate): Likewise.
14267 2015-05-20  Marek Polacek  <polacek@redhat.com>
14269         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
14270         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
14272 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14274         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
14275         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
14276         values.
14278 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
14280         * config/mips/mips.h (micromips_globals): Declare.
14282 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
14284         * timevar.def (TV_INITIALIZE_RTL): New.
14285         * toplev.c (initialize_rtl): Use an auto_timevar to account this
14286         function's time to TV_INITIALIZE_RTL.
14288 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14290         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
14291         gimple_build_nop calls.
14292         (chkp_find_bounds_for_elem): Likewise.
14293         (chkp_get_zero_bounds): Likewise.
14294         (chkp_get_none_bounds): Likewise.
14295         (chkp_get_bounds_by_definition): Likewise.
14296         (chkp_generate_extern_var_bounds): Likewise.
14297         (chkp_get_bounds_for_decl_addr): Likewise.
14298         (chkp_get_bounds_for_string_cst): Likewise.
14300 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
14302         PR tree-optimization/65447
14303         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
14304         (dump_use, dump_uses): Support to dump sub use.
14305         (record_use): New parameters to support sub use.  Remove call to
14306         dump_use.
14307         (record_sub_use, record_group_use): New functions.
14308         (compute_max_addr_offset, split_all_small_groups): New functions.
14309         (group_address_uses, rewrite_use_address): New functions.
14310         (strip_offset): New declaration.
14311         (find_interesting_uses_address): Call record_group_use.
14312         (add_candidate): New assertion.
14313         (infinite_cost_p): Move definition forward.
14314         (add_costs): Check INFTY cost and return immediately.
14315         (get_computation_cost_at): Clear setup cost and dependent bitmap
14316         for sub uses.
14317         (determine_use_iv_cost_address): Compute cost for sub uses.
14318         (rewrite_use_address_1): Rename from old rewrite_use_address.
14319         (free_loop_data): Free sub uses.
14320         (tree_ssa_iv_optimize_loop): Call group_address_uses.
14322 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14323             Jim Wilson  <jim.wilson@linaro.org>
14325         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
14326         new  fields loadv and storev.
14327         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
14328         Initialize loadv and storev.
14329         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
14330         (cortexa53_extra_costs): Likewise.
14331         (cortexa57_extra_costs): Likewise.
14332         (xgene1_extra_costs): Likewise.
14333         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
14334         rtx_costs.
14336 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14338         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
14339          storev.
14340         (cortexa8_extra_costs): Likewise.
14341         (cortexa5_extra_costs): Likewise.
14342         (cortexa7_extra_costs): Likewise.
14343         (cortexa12_extra_costs): Likewise.
14344         (cortexa15_extra_costs): Likewise.
14345         (v7m_extra_costs): Likewise.
14347 2015-05-20  Jeff Law  <law@redhat.com>
14349         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
14350         instead of open-coded version.  Also delete the jump thread created
14351         within this function.
14353 2015-05-20  Alan Modra  <amodra@gmail.com>
14355         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
14356         stack adjusting insn.  Formatting.
14357         (rs6000_emit_prologue): Track stack adjusting insn, and use of
14358         r12.  If possible, emit first -fsplit-stack arg pointer insn
14359         before stack adjust.  Don't use r12 to save cr if split-stack.
14361 2015-05-20  Alan Modra  <amodra@gmail.com>
14363         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
14364         Define.
14365         (rs6000_supports_split_stack): New function.
14366         * gcc/config/rs6000/rs6000.c (machine_function): Add
14367         split_stack_arg_pointer.
14368         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
14369         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
14370         rather than virtual_incoming_args_rtx.
14371         (rs6000_va_start): Likewise.
14372         (split_stack_arg_pointer_used_p): New function.
14373         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
14374         (morestack_ref): New var.
14375         (gen_add3_const, rs6000_expand_split_stack_prologue,
14376         rs6000_internal_arg_pointer, rs6000_live_on_entry,
14377         rs6000_split_stack_space_check): New functions.
14378         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
14379         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
14380         (UNSPECV_SPLIT_STACK_RETURN): Define.
14381         (split_stack_prologue, load_split_stack_limit,
14382         load_split_stack_limit_di, load_split_stack_limit_si,
14383         split_stack_return, split_stack_space_check): New expands and insns.
14384         * gcc/config/rs6000/rs6000-protos.h
14385         (rs6000_expand_split_stack_prologue): Declare.
14386         (rs6000_split_stack_space_check): Declare.
14388 2015-05-20  Alan Modra  <amodra@gmail.com>
14390         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
14391         (direct_return): Test vrsave_size rather than vrsave_mask.
14392         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
14393         (rs6000_emit_epilogue): Likewise.
14395 2015-05-20  Alan Modra  <amodra@gmail.com>
14397         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
14398         when not saving registers.
14399         (debug_stack_info): Adjust to omit printing unused offsets,
14400         as before.
14401         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
14402         expression.
14404 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14406         PR c++/65835
14407         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
14408         value_type to const char *.
14410 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
14412         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
14413         to build a biarch toolchain again.
14415 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14417         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
14418         or implicit declarations.
14419         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
14420         into it.
14421         (get_odr_type): Check type has linkage before adding bases.
14422         (register_odr_type): Check that type has linkage before adding it.
14423         (type_known_to_have_no_deriavations_p): Rename to ..
14424         (type_known_to_have_no_derivations_p): This one.
14425         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
14426         (type_known_to_have_no_derivations_p): This one.
14427         * ipa-polymorphic-call.c
14428         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
14429         type has linkage.
14431 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14433         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
14434         (layout_type): Use RECORD_OR_UNION_TYPE_P.
14436 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14438         * config/s390/s390.c (s390_vector_bool_type_p): New function.
14439         (s390_invalid_binary_op): New function.
14440         (TARGET_INVALID_BINARY_OP): Define macro.
14442 2015-05-19  David Sherwood  <david.sherwood@arm.com>
14444         * loop-invariant.c (create_new_invariant): Don't calculate address cost
14445         if mode is not a scalar integer.
14446         (get_inv_cost): Increase computational cost for unused invariants.
14448 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14450         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
14451         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
14452         * config/s390/s390-builtin-types.def: New file.
14453         * config/s390/s390-builtins.def: New file.
14454         * config/s390/s390-builtins.h: New file.
14455         * config/s390/s390-c.c: New file.
14456         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
14457         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
14458         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
14459         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
14460         prototypes.
14461         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
14462         Include.
14463         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
14464         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
14465         variable definitions.
14466         (s390_const_operand_ok): New function.
14467         (s390_expand_builtin): Rewrite.
14468         (s390_init_builtins): New function.
14469         (s390_handle_vectorbool_attribute): New function.
14470         (s390_attribute_table): Add s390_vector_bool attribute.
14471         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
14472         (s390_branch_condition_mask): Generate masks for new modes.
14473         (s390_expand_vec_compare_cc): New function.
14474         (s390_mangle_type): Add mangling for vector bool types.
14475         (enum s390_builtin): Remove.
14476         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
14477         efpc builtins.
14478         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
14479         s390_cpu_cpp_builtins.
14480         (REGISTER_TARGET_PRAGMAS): New macro.
14481         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
14482         (insn_cmp mode attribute): Add new CC modes.
14483         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
14484         (lcbb): New pattern definition.
14485         * config/s390/s390intrin.h: Include vecintrin.h.
14486         * config/s390/t-s390: New file.
14487         * config/s390/vecintrin.h: New file.
14488         * config/s390/vector.md: Include vx-builtins.md.
14489         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
14490         support.
14492 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14494         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
14495         CCVFHE.
14496         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
14497         (s390_select_ccmode): Likewise.
14498         (s390_canonicalize_comparison): Swap operands if necessary.
14499         (s390_expand_vec_compare_scalar): Expand DFmode compare using
14500         single element vector instructions.
14501         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
14502         (s390_branch_condition_mask): Generate CC masks for the new modes.
14503         * config/s390/s390.md (v0, vf, vd): New mode attributes.
14504         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
14505         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
14506         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
14507         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
14508         (*extend<DSF:mode><BFP:mode>2): New insn definition.
14509         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
14510         (extend<DSF:mode><BFP:mode>2): Turn into expander.
14511         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
14512         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
14513         (sqrt<mode>2): Add vector instruction.
14515 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14517         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
14518         constraints.
14519         * config/s390/predicates.md (const0_operand, constm1_operand)
14520         (constable_operand): Accept vector operands.
14521         * config/s390/s390-modes.def: Add supported vector modes.
14522         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
14523         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
14524         (s390_bytemask_vector_p, s390_expand_vec_strlen)
14525         (s390_expand_vec_compare, s390_expand_vcond)
14526         (s390_expand_vec_init): Add prototypes.
14527         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
14528         (s390_vector_mode_supported_p): New function.
14529         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
14530         (s390_contiguous_bitmask_vector_p): New function.
14531         (s390_bytemask_vector_p): New function.
14532         (s390_split_ok_p): Vector regs don't work either.
14533         (regclass_map): Add VEC_REGS.
14534         (s390_legitimate_constant_p): Handle vector constants.
14535         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
14536         (legitimate_reload_vector_constant_p): New function.
14537         (s390_preferred_reload_class): Handle CONST_VECTOR.
14538         (s390_reload_symref_address):  Likewise.
14539         (s390_secondary_reload): Vector memory instructions only support
14540         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
14541         (s390_emit_ccraw_jump): New function.
14542         (s390_expand_vec_strlen): New function.
14543         (s390_expand_vec_compare): New function.
14544         (s390_expand_vcond): New function.
14545         (s390_expand_vec_init): New function.
14546         (s390_dwarf_frame_reg_mode): New function.
14547         (print_operand): Handle addresses with 'O' and 'R' constraints.
14548         (NR_C_MODES, constant_modes): Add vector modes.
14549         (s390_output_pool_entry): Handle vector constants.
14550         (s390_hard_regno_mode_ok): Handle vector registers.
14551         (s390_class_max_nregs): Likewise.
14552         (s390_cannot_change_mode_class): New function.
14553         (s390_invalid_arg_for_unprototyped_fn): New function.
14554         (s390_function_arg_vector): New function.
14555         (s390_function_arg_float): Remove size variable.
14556         (s390_pass_by_reference): Handle vector arguments.
14557         (s390_function_arg_advance): Likewise.
14558         (s390_function_arg): Likewise.
14559         (s390_return_in_memory): Vector values are returned in a VR if
14560         possible.
14561         (s390_function_and_libcall_value): Handle vector arguments.
14562         (s390_gimplify_va_arg): Likewise.
14563         (s390_call_saved_register_used): Consider the arguments named.
14564         (s390_conditional_register_usage): Disable v16-v31 for non-vec
14565         targets.
14566         (s390_preferred_simd_mode): New function.
14567         (s390_support_vector_misalignment): New function.
14568         (s390_vector_alignment): New function.
14569         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
14570         (TARGET_VECTOR_MODE_SUPPORTED_P)
14571         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
14572         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
14573         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
14574         (TARGET_VECTOR_ALIGNMENT): Define target macro.
14575         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
14576         (FIRST_PSEUDO_REGISTER): Increase value.
14577         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
14578         (VECTOR_REG_P): Define macros.
14579         (FIXED_REGISTERS, CALL_USED_REGISTERS)
14580         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
14581         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
14582         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
14583         Add vector registers.
14584         (CANNOT_CHANGE_MODE_CLASS): Call C function.
14585         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
14586         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
14587         memory.
14588         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
14589         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
14590         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
14591         (VR*_REGNUM): New constants.
14592         (ALL): New mode iterator.
14593         (INTALL): Remove mode iterator.
14594         Include vector.md.
14595         (movti): Implement TImode moves for VRs.
14596         Disable TImode splitter for VR targets.
14597         Implement splitting TImode GPR<->VR moves.
14598         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
14599         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
14600         reload<mode>_la_in, reload<mode>_la_out.
14601         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
14602         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
14603         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
14604         (mov<mode> SF SD): Prefer lder, lde for loading.
14605         Add lrl and strl instructions.
14606         Add vector instructions.
14607         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
14608         Call s390_expand_vec_strlen on z13.
14609         (*cc_to_int): Change predicate to nonimmediate_operand.
14610         (addti3): Rename to *addti3.  New expander.
14611         (subti3): Rename to *subti3.  New expander.
14612         * config/s390/vector.md: New file.
14614 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14616         * common/config/s390/s390-common.c (processor_flags_table): Add
14617         z13.
14618         * config.gcc: Add z13.
14619         * config/s390/s390-opts.h (enum processor_type): Add
14620         PROCESSOR_2964_Z13.
14621         * config/s390/s390.c (s390_adjust_priority): Check for
14622         PROCESSOR_2964_Z13.
14623         (s390_reorg): Likewise.
14624         (s390_sched_reorder): Likewise.
14625         (s390_sched_variable_issue): Likewise.
14626         (s390_loop_unroll_adjust): Likewise.
14627         (s390_option_override): Likewise. Default to -mvx when available.
14628         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
14629         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
14630         (TARGET_VX_ABI): Define macros.
14631         macros.
14632         (TARGET_DEFAULT): Add MASK_OPT_VX.
14633         * config/s390/s390.md ("cpu" attribute): Add z13.
14634         ("cpu_facility" attribute): Add vec.
14635         * config/s390/s390.opt (processor_type): Add z13.
14636         (mvx): New options.
14637         * doc/invoke.texi: Add z13 option for -march.
14639 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14641         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
14642         mode check to make sure that only scalar integer values are
14643         accepted.
14645 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
14647         * tree.c (verify_type_variant): Fix #undef.
14648         (gimple_canonical_types_compatible_p): Move here from lto.c
14649         (verify_type): Verify TYPE_CANONICAL compatibility.
14650         * tree.h (gimple_canonical_types_compatible_p): Declare.
14652 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14654         PR middle-end/66199
14655         * tree.h (OMP_TEAMS_COMBINED): Define.
14656         * gimplify.c (enum gimplify_omp_var_data): Add
14657         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
14658         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
14659         (omp_notice_variable): Accept both ORT_TEAMS
14660         and ORT_COMBINED_TEAMS.  Don't recurse if
14661         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
14662         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
14663         GOVD_FIRSTPRIVATE.
14664         (omp_no_lastprivate): New function.
14665         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
14666         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
14667         notice_outer and set appropriate bits, otherwise make
14668         sure default(none) combined constructs won't complain.
14669         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
14670         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
14671         omp_no_lastprivate either remove the clause or turn it
14672         into OMP_CLAUSE_PRIVATE.
14673         (gimplify_omp_for): Fix up handling of implicit
14674         lastprivate or linear iterators.
14675         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
14676         ORT_COMBINED_TEAMS.
14677         * omp-low.c (lower_omp_for_lastprivate): For combined
14678         for simd use fd.loop.n2 from the for rather than simd.
14680 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14682         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
14683         instead of gen_rtx_raw_REG.
14684         (cris_expand_epilogue): Likewise.
14685         * config/microblaze/microblaze.c (microblaze_classify_address):
14686         Likewise.
14687         * config/sparc/sparc.md: Likewise.
14689 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
14691         * config/alpha/alpha.c (alpha_legitimize_reload_address)
14692         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
14693         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
14694         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
14695         Use CASE_CONST_SCALAR_INT.
14696         (print_operand) <case 'M'>: Use mode_width_operand to check the
14697         value of the constant.
14698         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
14699         * config/alpha/predicates.md (input_operand): Use general_operand
14700         instead of match_code as operand check.
14701         (symbolic_operand): Use match_code with subexpression digits.
14702         * config/alpha/constraints.md (Q): Ditto.
14704 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14706         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
14708 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14710         * config/s390/s390.c (s390_secondary_reload): Fix check for
14711         load/store relative.
14713 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14715         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
14716         alternative_mask to uint64_t.
14718 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14720         PR tree-optimization/66187
14721         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
14722         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
14723         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
14725 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
14727         * diagnostic.c (diagnostic_report_current_module): Strengthen
14728         local "new_map" from const line_map * to
14729         const line_map_ordinary *.
14730         * genmatch.c (error_cb): Likewise for local "map".
14731         (output_line_directive): Likewise for local "map".
14732         * input.c (expand_location_1): Likewise for local "map".
14733         Pass NULL rather than &map to
14734         linemap_unwind_to_first_non_reserved_loc, since the value is never
14735         read from there, and the value written back not read from here.
14736         (is_location_from_builtin_token): Strengthen local "map" from
14737         const line_map * to const line_map_ordinary *.
14738         (dump_location_info): Strengthen locals "map" from
14739         line_map *, one to const line_map_ordinary *, the other
14740         to const line_map_macro *.
14741         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
14742         const line_map * to const line_map_macro *.
14743         (maybe_unwind_expanded_macro_loc): Add a call to
14744         linemap_check_macro when writing to the "map" field of the
14745         loc_map_pair.
14746         Introduce local const line_map_ordinary * "ord_map", using it in
14747         place of "map" in the part of the function where we know we have
14748         an ordinary map.  Strengthen local "m" from const line_map * to
14749         const line_map_ordinary *.
14751 2015-05-19  Nick Clifton  <nickc@redhat.com>
14753         PR target/66156
14754         * config/msp430/msp430.md (zero_extendhisi2): Add support for
14755         separate source and destination registers.
14757 2015-05-19  Richard Biener  <rguenther@suse.de>
14759         PR tree-optimization/66165
14760         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
14761         for no load permutation.
14763         PR tree-optimization/66185
14764         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
14765         when building the SLP node from scalars.
14767 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14768             Tristan Gingold  <gingold@adacore.com>
14770         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
14771         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
14772         (expand_stack_restore): Call record_new_stack_level.
14773         (expand_stack_save): Do not call do_pending_stack_adjust.
14774         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
14775         * calls.c (expand_call): Call record_new_stack_level for alloca.
14776         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
14777         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
14778         (update_sjlj_context): New global function.
14779         * except.h (update_sjlj_context): Declare.
14780         * explow.c (record_new_stack_level): New global function.
14781         (allocate_dynamic_stack_space): Call record_new_stack_level.
14782         * explow.h (record_new_stack_level): Declare.
14783         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
14784         * cfgrtl.c (duplicate_insn_chain): Likewise.
14786 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14788         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
14789         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
14790         STACK_GROWS_DOWNWARD as normal if.
14791         (expand_call): Likewise.
14793 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
14795         PR target/54236
14796         * config/sh/sh.md (*round_int_even): New insn_and_split and
14797         accompanying new unnamed split.
14799 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14801         * bitmap.c (bitmap_set_range): Handle count==1 specially.
14802         (bitmap_clear_range): Likewise.
14803         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
14804         bitmap_set_range unconditionally.
14805         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14806         * df-scan.c (df_mark_reg): Likewise.
14807         * haifa-sched.c (setup_ref_regs): Likewise.
14808         * sched-rgn.c (update_live_1): Likewise.
14810 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14812         * regs.h (END_HARD_REGNO): Delete.
14813         (END_REGNO): Move to...
14814         * rtl.h: ...here.
14815         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
14816         * caller-save.c (mark_set_regs): Likewise.
14817         * combine.c (move_deaths, distribute_notes): Likewise.
14818         * cse.c (invalidate, invalidate_for_call): Likewise.
14819         * df-scan.c (df_ref_record): Likewise.
14820         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
14821         (record_last_reg_set_info): Likewise.
14822         * reg-stack.c (convert_regs_exit): Likewise.
14823         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
14824         * resource.c (update_live_status): Likewise.
14825         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
14827 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14829         * rtl.h (reg_info): Add an nregs field.
14830         (REG_NREGS): Use it.
14831         (SET_REGNO_RAW): Delete.
14832         (set_regno_raw): New function.
14833         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
14834         (END_REGNO): Redefine in terms of REG_NREGS.
14835         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
14836         SET_REGNO_RAW.
14837         * emit-rtl.c (set_mode_and_regno): Likewise.
14838         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
14839         instead of SET_REGNO_RAW.
14841 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14843         * rtl.h (PUT_MODE_RAW): New macro.
14844         (PUT_REG_NOTE_KIND): Use it.
14845         (set_mode_and_regno): Declare.
14846         (gen_raw_REG): Change regno to "unsigned int".
14847         (gen_rtx_REG): Change "unsigned" to "unsigned int".
14848         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
14849         use set_mode_and_regno to change the mode of registers.
14850         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
14851         * emit-rtl.c (set_mode_and_regno): New function.
14852         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
14853         * caller-save.c (reg_save_code): Use set_mode_and_regno.
14854         * expr.c (init_expr_target): Likewise.
14855         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14856         * postreload.c (reload_cse_simplify_operands): Likewise.
14858 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14860         * caller-save.c (init_caller_save): Use word_mode and
14861         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
14862         * expr.c (init_expr_target): Likewise.
14863         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14864         * postreload.c (reload_cse_regs_1): Likewise.
14866 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14868         * rtl.def (REG): Change format to "r".
14869         * rtl.h (rtunion): Remove rt_reg.
14870         (reg_info): New structure.
14871         (rtx_def): Add reg field to main union.
14872         (X0REGATTR): Delete.
14873         (REG_CHECK): New macro.
14874         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
14875         * rtl.c (rtx_format): Document "r".
14876         (rtx_code_size): Handle REG specially.
14877         * gengenrtl.c (special_format): Return true for formats
14878         that include 'r'.
14879         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
14880         Deal with REG_ATTRS after the field loop.
14881         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
14882         * expmed.c (init_expmed): Call gen_raw_REG instead of
14883         gen_rtx_raw_REG.
14884         * expr.c (init_expr_target): Likewise.
14885         * regcprop.c (maybe_mode_change): Likewise.
14886         * varasm.c (make_decl_rtl): Likewise.
14887         * final.c (leaf_renumber_regs_insn): Return early after
14888         handling REGs.
14889         * genemit.c (gen_exp): Handle 'r' fields.
14890         * genpeep.c (match_rtx): Likewise.
14891         * gensupport.c (subst_pattern_match): Likewise.
14892         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
14893         (alter_constraints, subst_dup): Likewise.
14894         * read-rtl.c (read_rtx_code): Likewise.
14895         * print-rtl.c (print_rtx): Likewise.
14896         * genrecog.c (find_operand, find_matching_operand): Likewise.
14897         (validate_pattern, match_pattern_2): Likewise.
14898         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
14899         (rtx_test::regno_field): New function.
14900         (operator ==, safe_to_hoist_p, transition_parameter_type)
14901         (parameter_type_string, print_parameter_value)
14902         (print_nonbool_test, print_test): Handle new enum values.
14903         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
14904         * lra-constraints.c (operands_match_p): Likewise.
14906 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14908         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
14909         Change type of new_regno to unsigned int.
14910         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
14911         new_regno to unsigned int.
14912         (df_ref_change_reg_with_loc): Remove old_regno parameter.
14913         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
14914         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
14915         (SET_REGNO_RAW): Add space after ",".
14917 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14919         * rtl.h (REG_NREGS): New macro
14920         * alias.c (record_set): Use it.
14921         * cfgcleanup.c (mark_effect): Likewise.
14922         * combine.c (likely_spilled_retval_1): Likewise.
14923         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
14924         (move_deaths, distribute_notes): Likewise.
14925         * cselib.c (cselib_record_set): Likewise.
14926         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
14927         * df-scan.c (df_mark_reg): Likewise.
14928         * dse.c (look_for_hardregs): Likewise.
14929         * dwarf2out.c (reg_loc_descriptor): Likewise.
14930         (multiple_reg_loc_descriptor): Likewise.
14931         * expr.c (write_complex_part, read_complex_part): Likewise.
14932         (emit_move_complex): Likewise.
14933         * haifa-sched.c (setup_ref_regs): Likewise.
14934         * ira-lives.c (mark_hard_reg_live): Likewise.
14935         * lra.c (lra_set_insn_recog_data): Likewise.
14936         * mode-switching.c (create_pre_exit): Likewise.
14937         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
14938         (reload_combine_recognize_pattern): Likewise.
14939         (reload_combine_note_use, move2add_record_mode): Likewise.
14940         (reload_cse_move2add): Likewise.
14941         * reg-stack.c (subst_stack_regs_pat): Likewise.
14942         * regcprop.c (kill_value, copy_value): Likewise.
14943         (copyprop_hardreg_forward_1): Likewise.
14944         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
14945         (build_def_use): Likewise.
14946         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
14947         (deps_analyze_insn): Likewise.
14948         * sched-rgn.c (check_live_1, update_live_1): Likewise.
14949         * sel-sched.c (count_occurrences_equiv): Likewise.
14950         * valtrack.c (dead_debug_insert_temp): Likewise.
14952 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
14954         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
14955         * dse.c (note_add_store): Likewise.
14956         * ira-lives.c (mark_hard_reg_dead): Likewise.
14957         * loop-invariant.c (mark_reg_store): Likewise.
14958         (mark_reg_death): Likewise.
14959         * postreload.c (reload_combine): Likewise.
14960         (reload_combine_note_store): Likewise.
14961         (reload_combine_note_use): Likewise.
14962         * recog.c (peep2_reg_dead_p): Likewise.
14964 2015-05-19  Alan Modra  <amodra@gmail.com>
14966         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
14967         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
14968         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
14969         unused predicates.
14970         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
14971         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
14972         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
14973         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
14975 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
14977         * config/mips/mips.md (JOIN_MODE): New mode iterator.
14978         (join2_load_Store<JOIN_MODE:mode>): New pattern.
14979         (join2_loadhi): Likewise.
14980         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
14981         load-load and store-stores.
14982         * config/mips/mips.opt (mload-store-pairs): New option.
14983         (TARGET_LOAD_STORE_PAIRS): New macro.
14984         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
14985         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
14986         * config/mips/mips.c (mips_load_store_bonding_p): New function.
14988 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
14990         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
14991         explicit swaps.
14992         * dojump.c (do_compare_rtx_and_jump): Likewise.
14993         * expmed.c (emit_store_flag_1): Likewise.
14994         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
14995         * final.c (sprint_ul): Use std::reverse for reversing a string.
14996         * fold-const.c (extract_muldiv_1): Use std::swap.
14997         * genmodes.c (emit_mode_int_n): Likewise.
14998         * ifcvt.c (dead_or_predicable): Likewise.
14999         * ira-build.c (ira_merge_live_ranges): Likewise.
15000         (swap_allocno_copy_ends_if_necessary): Likewise.
15001         * ira.c (ira_setup_alts): Likewise.
15002         * loop-iv.c (iv_analyze_expr): Likewise.
15003         (implies_p): Likewise.
15004         (canon_condition): Likewise.
15005         * lra-constraints.c (swap_operands): Likewise.
15006         * lra-lives.c (lra_merge_live_ranges): Likewise.
15007         * omega.c (swap): Remove.
15008         (bswap): Remove.
15009         (omega_unprotect_1): Use std::swap.
15010         (omega_solve_geq): Likewise.
15011         * optabs.c (expand_binop_directly): Likewise.
15012         (expand_binop): Likewise.
15013         (emit_conditional_move): Likewise.
15014         (emit_conditional_add): Likewise.
15015         * postreload.c (reload_cse_simplify_operands): Likewise.
15016         * reg-stack.c (emit_swap_insn): Likewise.
15017         (swap_to_top): Likewise.
15018         (compare_for_stack_reg): Likewise.
15019         (subst_asm_stack_regs): Likewise.
15020         * reload.c (find_reloads): Likewise.
15021         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
15022         * sel-sched.c (invoke_reorder_hooks): Likewise.
15023         (create_block_for_bookkeeping): Likewise.
15024         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
15025         (lambda_matrix_right_hermite): Use std::swap.
15026         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
15027         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15028         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
15029         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
15030         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
15031         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
15032         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15033         * tree-vrp.c (compare_ranges): Likewise.
15034         * var-tracking.c (add_with_sets): Likewise.
15035         (vt_find_locations): Likewise.
15037 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
15039         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
15040         pie executables.
15041         (FBSD_ENDFILE_SPEC): Likewise.
15042         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
15043         config/freebsd-spec.h.
15044         (ENDFILE_SPEC): Likewise.
15046 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
15047             Richard Henderson  <rth@redhat.com>
15049         PR target/57032
15050         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
15051         Check for a memory location that is not a reference (using an AND)
15052         to an unaligned location here.
15053         * config/alpha/predicates.md (normal_memory_operand): Remove.
15055 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
15057         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
15058         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
15060 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
15062         * config/mips/mips.c (micromips_globals): New variable.
15063         (mips_set_compression_mode): Save and reinitialize target-dependent
15064         state for microMIPS.
15066 2015-05-18  Martin Liska  <mliska@suse.cz>
15068         * dbgcnt.def: Add new counter.
15069         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
15071 2015-05-18  Martin Liska  <mliska@suse.cz>
15073         * dbgcnt.def: Sort counters.
15074         * opts.c (common_handle_option): Do not compile if
15075         -fdbg-cnt-list is enabled.
15077 2015-05-18  Tom de Vries  <tom@codesourcery.com>
15079         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
15080         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
15081         address operator to va_list operand.
15082         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
15083         unconditionally.
15084         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
15085         operand.
15086         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
15087         * config/s390/s390.c (s390_gimplify_va_arg): Same.
15088         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
15090 2015-05-18  Tom de Vries  <tom@codesourcery.com>
15092         * tree-ssa-tail-merge.c: Fix whitespace.
15094 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
15096         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
15097         cortex-a17, and cortex-a17.cortex-a7.
15099 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
15101         PR target/54236
15102         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
15104 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
15106         PR target/66174
15107         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
15108         QImode inner modes for TARGET_AVX512BW.  Force mask operand
15109         to a register for AVX512F modes.
15111 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15113         * toplev.c (emit_debug_global_declarations): Do not output debug info
15114         when doing slim LTO objects.
15116 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15118         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
15119         odr_types_equivalent_p): Declare.
15120         (odr_type_p): Use gcc_checking_assert.
15121         (type_in_anonymous_namespace_p) Declare.
15122         (type_with_linkage_p): Declare.
15123         * common.opt (Wlto-type-mismatch): New warning.
15124         * ipa-devirt.c (compound_type_base): New function.
15125         (odr_or_derived_type_p): New function.
15126         (odr_types_equivalent_p): New function.
15127         (add_type_duplicate): Simplify.
15128         (type_with_linkage_p): Add hack to prevent false positives on C types
15129         (type_in_anonymous_namespace_p): Likewise.
15130         * tree.c (need_assembler_name_p): Use type_with_linkage.
15131         * tree.h (type_in_anonymous_namespace_p): Remove.
15132         * doc/invoke.texi (-Wlto-type-mismatch): Document
15134 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
15136         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
15137         (verify_type): Verify STRING_FLAG.
15139 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15141         PR fortran/44054
15142         * tree-pretty-print.c (percent_K_format): Replace locus pointer
15143         with accessor function.
15144         * tree-diagnostic.c (diagnostic_report_current_function): Use
15145         diagnostic_location function.
15146         (maybe_unwind_expanded_macro_loc): Likewise.
15147         (virt_loc_aware_diagnostic_finalizer): Likewise.
15148         (default_tree_printer): Replace locus pointer with accessor function.
15149         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
15150         (diagnostic_set_info_translated): Initialize second location.
15151         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
15152         (diagnostic_show_locus): Handle two locations. Call
15153         diagnostic_print_caret_line.
15154         (diagnostic_print_caret_line): New.
15155         (default_diagnostic_starter): Use diagnostic_location function.
15156         (diagnostic_report_diagnostic): Use diagnostic_location function.
15157         (verbatim): Do not set text.locus.
15158         * diagnostic.h (struct diagnostic_info): Remove location field.
15159         (struct diagnostic_context): Make caret_chars an array of two.
15160         (diagnostic_location): New inline.
15161         (diagnostic_expand_location): Handle two locations.
15162         (diagnostic_same_line): New inline.
15163         (diagnostic_print_caret_line): Declare.
15164         (CARET_LINE_MARGIN): New constant.
15165         * pretty-print.c (pp_printf): Do not set text.locus.
15166         (pp_verbatim): Do not set text.locus.
15167         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
15168         (struct text_info): Replace locus pointer with locations
15169         array. Add accessor functions.
15171 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
15172             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15174         PR target/65768
15175         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
15176         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
15177          large constants in register instead of splitting them.
15179 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
15181         PR target/66140
15182         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
15183         replacements in memory addresses.
15184         (get_unaligned_address): Ditto.
15186 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
15188         * config/ft32/*: New files for FT32 port.
15189         * doc/install.texi: Add FT32 information.
15190         * doc/invoke.texi: Add FT32 information.
15191         * doc/md.texi: Add FT32 information.
15192         * doc/contrib.texi: Self added.
15194 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
15196         PR tree-optimization/64454
15197         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
15198         (-1 - A -> ~A): Remove unnecessary condition.
15200 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
15202         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
15203         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
15204         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
15206 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
15208         * ipa-chkp.h (chkp_wrap_function): New.
15209         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
15210         (chkp_wrap_function_name): New.
15211         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
15212         to get wrapper name.
15213         * lto-cgraph.c: Include ipa-chkp.h.
15214         (input_cgraph_1): Avoid alias chain for wrappers.
15216 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15218         PR middle-end/66134
15219         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
15220         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
15222 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15224         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
15225         (AARCH64_FL_SLOWMUL): Delete.
15226         (AARCH64_FL_CRC): Redefine to 1<<3.
15227         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
15229 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15231         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
15232         casting.
15234 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
15236         * config/alpha/alpha.md (extendqidi2): Use general_operand
15237         instead of some_operand for operand[1] predicate.
15238         (extendhidi2): Ditto.
15239         (cbranchdi4): Use general_operand instead of some_operand
15240         for operand[1] and operands[2] predicates.
15241         (cstoredi4): Ditto.
15242         * config/alpha/predicates.md (some_operand): Remove unused predicate.
15243         (some_ni_operand): Ditto.
15245 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
15247         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
15248         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
15249         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
15250         low part of the constant using alpha_emit_set_const_1.
15251         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
15253 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
15255         * varasm.c (output_constant_pool_1): Pass down alignment from
15256         constant pool entry's descriptor to output_constant_pool_2.
15257         (output_object_block): Add comment prior to call to
15258         output_constant_pool_1.
15260 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
15262         PR rtl-optimization/65862
15263         * target.def (ira_change_pseudo_allocno_class): New hook.
15264         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
15265         value of the hook.
15266         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
15267         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
15268         hook.
15269         * ira-costs.c (find_costs_and_classes): Call the hook and change
15270         classes when it is necessary.
15271         * doc/tm.texi: Update.
15273 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
15275         * config/i386/i386.md (sibcall_memory): Check that register with
15276         callee address is not also used as one of the arguments, instead
15277         of checking that it is not live after the sibcall.
15278         (sibcall_pop_memory): Ditto.
15279         (sibcall_value_memory): Ditto.
15280         (sibcall_value_pop_memory): Ditto.
15282 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
15284         * generic-match-head.c (types_match): Handle non-types.
15285         * gimple-match-head.c (types_match): Likewise.
15286         * match.pd: Remove unnecessary TREE_TYPE for types_match.
15288 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
15290         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
15291         (csneg3<mode>_insn): Enable expansion of pattern.
15293 2015-05-14  Nick Clifton  <nickc@redhat.com>
15295         * config/rl78/rl78.c (rl78_select_section): Select the correct
15296         default section based upon the category of the decl.
15298 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15300         PR rtl-optimization/30967
15301         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
15302         destination mode for the cost of scc patterns.
15304 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15306         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
15307         using SWIM248 mode iterator.
15308         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
15309         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
15310         for operand[2] constraint.
15311         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
15313 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15315         PR middle-end/66133
15316         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
15317         make sure it is never noreturn, even when the task body does not
15318         return.
15319         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
15320         right before GIMPLE_OMP_RETURN.
15321         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
15322         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
15323         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
15325 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15327         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
15328         * tree-ssa-math-opts.c: Include params.h
15329         (pow_synth_sqrt_info): New struct.
15330         (representable_as_half_series_p): New function.
15331         (get_fn_chain): Likewise.
15332         (print_nested_fn): Likewise.
15333         (dump_fractional_sqrt_sequence): Likewise.
15334         (dump_integer_part): Likewise.
15335         (expand_pow_as_sqrts): Likewise.
15336         (gimple_expand_builtin_pow): Use above to attempt to expand
15337         pow as series of square roots.  Removed now unused variables.
15339 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
15341         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
15342         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
15343         Remove *p0 and *p1 arguments.  Rewrite function.
15344         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
15345         (alpha_split_const_mov): Update calls to alpha_extract_integer and
15346         alpha_emit_set_long_const.
15347         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
15348         (alpha_output_mi_thunk_osf): Ditto.
15349         * config/alpha/alpha.md (movti): Do not check operands[1]
15350         for CONST_DOUBLE.
15352 2015-05-13  Richard Biener  <rguenther@suse.de>
15354         PR tree-optimization/66129
15355         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
15356         commutative.
15357         (vect_schedule_slp_instance): Fix typo.
15359 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
15361         * common.opt (fdump-internal-locations): New option.
15362         * input.c: Include diagnostic-core.h.
15363         (get_end_location): New function.
15364         (write_digit): New function.
15365         (write_digit_row): New function.
15366         (dump_location_range): New function.
15367         (dump_labelled_location_range): New function.
15368         (dump_location_info): New function.
15369         * input.h (dump_location_info): New prototype.
15370         * toplev.c (compile_file): Handle flag_dump_locations.
15372 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15374         * gimple-expr.h (is_gimple_constant): Reorder.
15375         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
15377 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
15379         * combine.c (simplify_set): When generating a CC set, if the
15380         source already is in the correct mode, do not wrap it in a
15381         compare.  Simplify the rest of that code.
15383 2015-05-13  Richard Biener  <rguenther@suse.de>
15385         PR tree-optimization/66123
15386         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
15387         a taken edge.
15389 2015-05-13  Richard Biener  <rguenther@suse.de>
15391         PR middle-end/66110
15392         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
15393         specially.
15394         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
15396 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15398         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
15399         * aclocal.m4: Regenerated with automake-1.11.6.
15401 2015-05-13  Tom de Vries  <tom@codesourcery.com>
15403         PR tree-optimization/66010
15404         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
15405         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
15406         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
15407         and rval based on do_deref.
15409 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15411         PR target/65103
15412         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
15413         link time constants into adress expressions and therefore set
15414         their cost to 0.
15416 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15418         PR target/66112
15419         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
15420         Use SWI248 iterator instead of SWI.
15421         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
15422         Use eq_attr "alternative" "0" instead of match_test in
15423         length_immediate attribute computation.
15424         (*mulvhi4, *mulvhi4_1): New define_insns.
15426         PR target/66112
15427         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
15428         SIGNED to get precision of non-negative value.
15430 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15432         PR target/66048
15433         * function.c (diddle_return_value_1): Process bounds first.
15434         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
15435         register.
15437 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15439         PR rtl-optimization/64616
15440         * loop-invariant.c (can_move_invariant_reg): New.
15441         (move_invariant_reg): Call above new function to decide whether
15442         instruction can just be moved, skipping creation of temporary
15443         register.
15445 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15447         PR target/pr66047.c
15448         * i386.c (ix86_function_sseregparm): Only return -1 if local function
15449         with implied regparm is called from -mno-sse function.
15450         (init_cumulative_args): Output error if ix86_function_sseregparm
15451         return -1 and SSE register would be needed.
15452         (function_arg_advance_32): Likewise.
15453         (function_arg_32): Likewise.
15454         * i386.h (ix86_args): Add decl field.
15456 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15458         PR ipa/65873
15459         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
15460         inlines across optimization boundary.
15462 2015-05-12  Jason Merrill  <jason@redhat.com>
15464         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
15465         string literal and macro name.
15467 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
15469         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
15470         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
15471         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
15473 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15475         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
15476         (-Wmisleading-indentation): New option.
15477         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
15479 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
15481         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
15482         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
15483         (alpha_extract_integer): Ditto.
15484         (alpha_legitimate_constant_p): Ditto.
15485         (alpha_split_tmode_pair): Ditto.
15486         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
15487         (alpha_expand_mov): Ditto.
15488         (print_operand): Remove handling of 'H' modifier.
15489         <case 'm'>: Remove CONST_DOUBLE handling.
15490         (summarize_insn): Handle CONST_WIDE_INT.
15491         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
15492         (anddi3): Ditto.
15493         (movti): Handle CONST_WIDE_INT.
15494         * config/alpha/constraints.md ('H'): Remove constraint definition.
15495         ('G'): Do not match MODE_FLOAT class.
15496         * config/alpha/predicates.md (const0_operand): Also match
15497         const_wide_int.
15498         (non_add_const_operand): Ditto.
15499         (non_zero_const_operand): Ditto.
15500         (some_operand): Ditto.
15501         (input_operand): Ditto.  Handle CONST_WIDE_INT.
15502         (and_operand): Do not match const_double.
15503         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
15505 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
15507         PR target/65697
15508         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
15509         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
15510         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
15511         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
15512         is_mm_seq_cst, is_mm_sync): New accessor functions.
15513         * builtins.c (expand_builtin_sync_operation,
15514         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
15515         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
15516         (get_memmodel,  expand_builtin_atomic_compare_exchange,
15517         expand_builtin_atomic_load, expand_builtin_atomic_store,
15518         expand_builtin_atomic_clear): Use new accessor routines.
15519         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
15520         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
15521         (maybe_emit_sync_lock_test_and_set): Use new accessors and
15522         MEMMODEL_SYNC_ACQUIRE.
15523         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
15524         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
15525         expand_atomic_store): Use new accessors.
15526         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
15527         * tsan.c (instrument_builtin_call): Update check for memory model beyond
15528         final enum to use MEMMODEL_LAST.
15529         * c-family/c-common.c: Use new accessor for memmodel_base.
15530         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
15531         accessors.
15532         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
15533         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
15534         mem_thread_fence, *dmb): Likewise.
15535         * config/alpha/alpha.c (alpha_split_compare_and_swap,
15536         alpha_split_compare_and_swap_12): Likewise.
15537         * config/arm/arm.c (arm_expand_compare_and_swap,
15538         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
15539         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
15540         atomic_loaddi): Likewise.
15541         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
15542         Likewise.
15543         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
15544         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
15545         use new accessors.
15546         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
15547         atomic_store<mode>, atomic_compare_and_swap<mode>,
15548         atomic_exchange<mode>): Use new accessors.
15549         * config/mips/mips.c (mips_process_sync_loop): Likewise.
15550         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
15551         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
15552         rs6000_post_atomic_barrier): Add new cases.
15553         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
15554         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
15555         (atomic_load<mode>): Add new cases and use new accessors.
15556         (store_quadpti): Add new cases.
15557         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
15558         accessors.
15559         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
15560         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
15561         model, not 8.
15563 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
15565         * ipa-devirt.c (type_with_linkage_p): New function.
15566         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
15567         type has linkage.
15568         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
15569         (can_be_name_hashed_p): Simplify.
15570         (hash_odr_name): Check that type has linkage before checking if it is
15571         anonymous.
15572         (types_same_for_odr): Likewise.
15573         (odr_name_hasher::equal): Likewise.
15574         (odr_subtypes_equivalent_p): Likewise.
15575         (warn_types_mismatch): Likewise.
15576         (get_odr_type): Likewise.
15577         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
15578         * ipa-utils.h (odr_type_p): Move offline.
15579         * tree.c (need_assembler_name_p): Fix handling of types
15580         without linkages.
15581         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
15583 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
15585         * timevar.c (timevar_enable): Delete in favor of...
15586         (g_timer): New global.
15587         (struct timevar_def): Move to timevar.h inside class timer.
15588         (struct timevar_stack_def): Likewise.
15589         (timevars): Delete global in favor of field "m_timevars" within
15590         class timer in timevar.h
15591         (stack): Likewise, in favor of field "m_stack".
15592         (unused_stack_instances): Likewise, in favor of field
15593         "m_unused_stack_instances".
15594         (start_time): Likewise, in favor of field "m_start_time".
15595         (get_time): Eliminate check for timevar_enable.
15596         (timer::timer): New function, built from part of timevar_init.
15597         (timevar_init): Rewrite idempotency test from using
15598         "timevar_enable" bool to using dynamic allocation of "g_timer".
15599         Move rest of implementation into timer's constructor.
15600         (timevar_push_1): Rename to...
15601         (timer::push): ...this, adding "m_" prefixes to variables that
15602         are now fields of timer.
15603         (timevar_pop_1): Likewise, rename to...
15604         (timer::pop): ...this, and add "m_" prefixes.
15605         (timevar_start): Replace test for "timevar_enable" with one for
15606         "g_timer", and move bulk of implementation to...
15607         (timer::start): ...here, adding "m_" prefixes.
15608         (timevar_stop): Likewise, from here...
15609         (timer::stop): ...to here.
15610         (timevar_cond_start): Likewise, from here...
15611         (timer::cond_start): ...to here.
15612         (timevar_cond_stop): Likewise, from here...
15613         (timer::cond_stop): ...to here.
15614         (validate_phases): Rename to...
15615         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
15616         locals "total" and "tv" const.
15617         (timevar_print): Rename to...
15618         (timer::print): ...this, and add "m_" prefixes.  Make locals
15619         "total" and "tv" const.  Eliminate test for timevar_enable.
15620         * timevar.h (timevar_enable): Eliminate.
15621         (g_timer): New declaration.
15622         (timevar_push_1): Eliminate.
15623         (timevar_pop_1): Eliminate.
15624         (timevar_print): Eliminate.
15625         (class timer): New class.
15626         (timevar_push): Rewrite to use g_timer.
15627         (timevar_pop): Likewise.
15628         * toplev.c (toplev::~toplev): Likewise.
15630 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
15632         * arm-protos.h (arm_sched_autopref): Delete.
15633         (tune_params): Re-organize, use enums for flag values.
15634         (FUSE_OPS): New macro.
15635         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
15636         (ARM_PREFETCH_BENEFICIAL): Likewise.
15637         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
15638         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
15639         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
15640         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
15641         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
15642         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
15643         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
15644         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
15645         format.
15646         (arm_option_override, thumb2_reorg, arm_print_tune_info)
15647         (aarch_macro_fusion_pair_p): Update uses of current_tune.
15648         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
15650 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
15652         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
15653         "break".
15655 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
15656             Sandra Loosemore <sandra@codesourcery.com>
15658         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
15659         value.
15660         (REG_CLASS_NAMES): Add "IJMP_REGS".
15661         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
15662         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
15663         use new "c" register constraint.
15664         * config/nios2/constraint.md (c): New register constraint
15665         corresponding to IJMP_REGS.
15667 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15669         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
15670         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
15671         define_splits): Delete, revamp, transmogrify into ...
15672         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15673         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15674         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15675         New.
15677 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15679         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
15680         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
15682 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15684         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
15685         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
15686         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
15687         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
15688         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
15689         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
15690         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
15691         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
15692         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
15693         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15694         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
15695         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
15696         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
15697         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
15698         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
15699         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
15700         and 30 corresponding splitters): Delete.
15702 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15704         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
15705         zero_extract.
15707 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15709         * combine.c (recog_for_combine_1): New function, factored out
15710         from recog_for_combine.
15711         (change_zero_ext): New function.
15712         (recog_for_combine): If recog fails, try again with the pattern
15713         modified by change_zero_ext; if that still fails, restore the
15714         pattern.
15716 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
15718         * combine.c (get_undo_marker): New function.
15719         (undo_to_marker): New function, largely factored out from ...
15720         (undo_all): ... this.  Adjust.
15722 2015-05-12  Richard Biener  <rguenther@suse.de>
15724         PR tree-optimization/66101
15725         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
15726         fixup if we turn a loop exit edge to a fallthru edge.
15728 2015-05-12  Richard Biener  <rguenther@suse.de>
15730         PR tree-optimization/37021
15731         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
15732         (SLP_TREE_TWO_OPERATORS): New define.
15733         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15734         SLP_TREE_TWO_OPERATORS.
15735         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
15736         SLP node.
15737         (vect_build_slp_tree): Adjust.
15738         (vect_analyze_slp_cost_1): Likewise.
15739         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
15740         emitting two vector stmts and mixing the results.
15742 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15744         * call.c (print_z_candidates): Remove dead code.
15746 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15748         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
15749         and zEC12_simple_fp.
15750         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
15751         to 1.
15753 2015-05-12  Tom de Vries  <tom@codesourcery.com>
15755         PR tree-optimization/66010
15756         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
15757         ifn_va_arg.
15758         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
15759         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
15760         va_lists are passed, and remove corresponding handling.
15761         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
15762         do_deref argument to ifn_va_arg.
15763         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
15764         ifn_va_arg.
15766 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15768         PR target/65955
15769         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
15770         REG before taking its REGNO.
15772 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15774         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
15775         rsp->sign_bit_copies and rsp->nonzero_bits into ...
15776         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
15777         present to get more accurate information about the number of sign bit
15778         copies and non zero bits.
15780 2015-05-12  Richard Biener  <rguenther@suse.de>
15782         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
15783         do not allow unrolling.
15785 2015-05-11  Richard Henderson  <rth@redhat.com>
15787         * config/i386/i386-modes.def (CCP): New.
15788         * config/i386/i386.c (put_condition_code): Handle it.
15789         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
15791 2015-05-11  Richard Henderson  <rth@redhat.com>
15793         * target.def (md_asm_clobbers): Replace with...
15794         (md_asm_adjust): this.
15795         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
15796         (TARGET_MD_ASM_ADJUST): New.
15797         * tm.texi: Rebuild.
15798         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
15799         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
15800         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
15802         * cfgexpand.c (check_operand_nalternatives): Accept vector of
15803         constraints instead of lists of outputs and inputs.
15804         (expand_asm_stmt): Save and restore input_location around the
15805         body of the function.  Move asm data into vectors instead of
15806         building tree lists.  Generate cleanup sequences as needed,
15807         rather than waiting til the end.  Use new md_asm_adjust hook.
15809         * config/vxworks.c: Include vec.h before target.h.
15810         * gimple.c: Likewise.
15811         * incpath.c: Likewise.
15812         * mode-switching.c: Likewise.
15814         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
15815         (cris_md_asm_adjust): this.
15816         (TARGET_MD_ASM_CLOBBERS): Remove.
15817         (TARGET_MD_ASM_ADJUST): New.
15818         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
15819         (ix86_md_asm_adjust): this.
15820         (TARGET_MD_ASM_CLOBBERS): Remove.
15821         (TARGET_MD_ASM_ADJUST): New.
15822         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
15823         (mn10300_md_asm_adjust): this.
15824         (TARGET_MD_ASM_CLOBBERS): Remove.
15825         (TARGET_MD_ASM_ADJUST): New.
15826         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
15827         (rs6000_md_asm_adjust): this.
15828         (TARGET_MD_ASM_CLOBBERS): Remove.
15829         (TARGET_MD_ASM_ADJUST): New.
15830         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
15831         (visium_md_asm_adjust): this.
15832         (TARGET_MD_ASM_CLOBBERS): Remove.
15833         (TARGET_MD_ASM_ADJUST): New.
15835 2015-05-11  Richard Henderson  <rth@redhat.com>
15837         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
15838         if noutputs is zero.
15839         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
15841         * cfgexpand.c (expand_asm_operands): Merge into...
15842         (expand_asm_stmt): ... here.
15844         * cfgexpand.c (expand_asm_operands): Don't call
15845         resolve_asm_operand_names.
15846         * stmt.c (resolve_asm_operand_names): Clarify block comment.
15848 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
15850         * dwarf2out.c (gen_member_die): Sanity check that we access
15851         TYPE_MAIN_VARIANT for TYPE_METHODS.
15852         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
15853         checking TYPE_METHODS.
15854         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
15855         if non-null.
15856         (build_distinct_type_copy): Clear TYPE_METHODS.
15857         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
15858         (verify_type): Allow TYPE_METHODS to be error_mark_node.
15859         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
15861 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15863         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
15864         (emit_pattern_before_setloc): Likewise.
15866 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
15868         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
15869         for define_peephole2s.
15870         (get_peephole2_pattern): New function.
15871         (main): Use it.  Call validate_pattern.
15873 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15875         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
15876         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
15877         (Last callee saved reg is different for AVR_TINY architecture)
15879 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
15881         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
15882         when looking for memory references.
15884 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
15886         PR target/65753
15887         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
15888         via function pointers.
15890 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
15892         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
15893         indirect call by forcing address into a pseudo with -fno-plt.
15894         * common.opt (flag_plt): New option.
15895         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
15896         ([-fno-plt]): Document.
15898 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
15900         PR bootstrap/66105
15901         * config/rs6000/option-defaults.h: Add space between string literal
15902         and macro name.
15904 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15906         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
15907         accross ARM targets.
15909 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15911         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
15912         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
15914 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
15916         PR rtl-optimization/66076
15917         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
15918         Don't grow the heap array if it is already big enough from a
15919         previous iteration.
15921 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15923         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
15924         (is_called_in_ARM_mode): Remove.
15925         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
15926         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
15927         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
15928          arm_declare_function_name.
15930 2015-05-11  Christian Bruel  <christian.bruel@st.com>
15932         * config/arm/arm.c (arm_option_override): Reoganized and split into :
15933         (arm_option_params_internal); New function.
15934         (arm_option_check_internal): New function.
15935         (arm_option_override_internal): New function.
15936         (thumb_code, thumb1_code): Remove.
15937         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
15938         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
15939         (thumb_code, thumb1_code): Remove.
15940         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
15942 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
15944         * config/alpha/alpha.c (alpha_emit_set_const_1)
15945         (alpha_emit_set_long_const, alpha_extract_integer)
15946         (alpha_legitimate_constant_p, alpha_split_const_mov)
15947         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
15948         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15949         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
15950         HOST_WIDE_INT_1U.
15951         * config/alpha/predicates.md (mode_mask_operand): Do not match
15952         const_double RTX.
15953         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15954         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
15955         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
15956         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
15957         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
15959 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
15961         PR target/65780
15962         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
15963         default_binds_local_p_2.
15964         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
15965         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
15967 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15969         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
15971 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15973         Patch by Richard Biener
15974         * coverage.c (coverage_obj_init): Delay building of type variant
15975         until the type is finished.
15977 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15979         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
15980         mismatch between C and C++ type; compoare correctly ARG_TYPES
15981         for non-prototypes and output correctly parameter index for METHOD_TYPE.
15982         (odr_types_equivalent_p): Fix wording of warning about attributes;
15983         it is OK to match prototype and non-prototype.
15985 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15987         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
15988         TYPE_ARG_TYPES list.
15989         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
15990         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
15992 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
15994         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
15995         * tree.h (is_lang_specific): Constify.
15997 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
15999         PR tree-optimization/64454
16000         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
16001         Rewrite.
16003 2015-05-08  Jason Merrill  <jason@redhat.com>
16005         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
16006         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
16007         config/darwin.h, config/darwin9.h, config/elfos.h,
16008         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
16009         config/microblaze/microblaze.h, config/mips/mips.h,
16010         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
16011         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
16012         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
16013         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
16014         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
16015         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
16016         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
16017         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
16018         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
16019         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
16020         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
16021         between string literal and macro name.
16023 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16025         * jump.c: Change argument types to rtx_insn *.
16026         * rtl.h: Adjust.
16028 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16030         * lra-constraints.c: Change argument type to rtx_insn *.
16032 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16034         * df-problems.c: Change argument type to rtx_insn *.
16036 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16038         * combine.c: Change argument type to rtx_insn *.
16040 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16042         * rtl.h: Adjust.
16043         * rtlanal.c: Change argument type to rtx_insn *.
16045 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16047         * sched-deps.c: Change argument types to rtx_insn *.
16048         * sched-int.h: Adjust.
16050 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16052         * dwarf2cfi.c: Change argument type to rtx_insn *.
16054 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16056         * ira.c (decrease_live_ranges_number): Changetype of local
16057         variable to rtx_insn *.
16058         * recog.c: Change argument types to rtx_insn *.
16059         * recog.h: Adjust.
16061 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16063         * reorg.c: Change argument types to rtx_insn *.
16065 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16067         * ira-color.c: Change argument types to rtx_insn *.
16068         * lra-eliminations.c: Likewise.
16069         * ira.h: Adjust.
16071 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16073         * gcse.c: Change argument types to rtx_insn *.
16075 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16077         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
16079 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16081         * emit-rtl.c (emit_debug_insn_before): Change argument type to
16082         rtx_insn *.
16083         * rtl.h: Adjust.
16085 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16087         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
16088         * rtl.h: Adjust.
16090 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16092         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
16093         * rtl.h: Adjust.
16095 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16097         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
16098         * rtl.h: Adjust.
16100 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16102         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
16103         * rtl.h: Adjust.
16105 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16107         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
16108         to rtx_insn *.
16109         * rtl.h: Adjust.
16111 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16113         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
16114         to rtx_insn *.
16115         * rtl.h: Likewise.
16117 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16119         * except.c (can_nonlocal_goto): Change type of argument to
16120         rtx_insn *.
16121         * rtl.h: Adjust.
16123 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16125         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
16126         * rtl.h: Adjust.
16128 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16130         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
16131         * cfgrtl.c (can_delete_label_p): Adjust.
16132         * rtl.h: likewise.
16134 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16136         * reorg.c (stop_search_p): Change argument to rtx_insn *.
16138 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16140         * except.c (make_reg_eh_region_note): Change argument to
16141         rtx_insn *.
16142         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
16143         * except.h: Adjust.
16145 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16147         * mode-switching.c (commit_mode_sets): Change type of local
16148         variable from rtx to rtx_insn *.
16150 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
16152         * doc/install.texi (--enable-languages): Add missing jit and lto info.
16153         Add ^ to grep command.
16154         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
16155         arg to last gimple_simplify declaration.  Add missing gimple_build
16156         declaration for built-in function case with four tree args.
16158 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
16159             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16161         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
16162         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
16163         (GNU_USER_DYNAMIC_LINKERN32): Update.
16165 2015-05-08  Richard Biener  <rguenther@suse.de>
16167         PR tree-optimization/66036
16168         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16169         Handle strided group loads.
16170         (vect_verify_datarefs_alignment): Likewise.
16171         (vect_enhance_data_refs_alignment): Likewise.
16172         (vect_analyze_group_access): Likewise.
16173         (vect_analyze_data_ref_access): Likewise.
16174         (vect_analyze_data_ref_accesses): Likewise.
16175         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
16176         (vectorizable_load): Likewise.
16178 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
16180         * config/rs6000/rs6000.md: Require operand inequality in one
16181         of the peepholes.
16183 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
16184             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16186         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
16187         from (set ...).
16188         * config/rx/rx.md (movdi, movdf): Likewise.
16189         Likewise for define_peephole2s.
16191 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16193         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
16194         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
16195         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
16196         vtst_u64): Rewrite using gcc vector extensions.
16198 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16200         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
16201         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
16203 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
16205         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
16207 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16209         * config/glibc-stdint.h (OPTION_MUSL): Define.
16210         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
16211         Change the definition based on OPTION_MUSL for 64 bit targets.
16212         * config/linux.h (OPTION_MUSL): Redefine.
16213         * config/alpha/linux.h (OPTION_MUSL): Redefine.
16214         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
16215         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
16217 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
16218             Szabolcs Nagy  <szabolcs.nagy@arm.com>
16220         * config.gcc (LIBC_MUSL): New tm_defines macro.
16221         * config/linux.h (OPTION_MUSL): Define.
16222         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
16223         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
16224         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16225         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16226         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16227         * config/linux.opt (mmusl): New option.
16228         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
16229         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16230         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16231         * configure: Regenerate.
16233 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16234             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16236         PR target/48904
16237         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
16238         * config/i386/knetbsd-gnu64.h: New file.
16240 2015-05-08  Marek Polacek  <polacek@redhat.com>
16242         PR c/64918
16243         * doc/invoke.texi: Document -Woverride-init-side-effects.
16245 2015-05-07  Marek Polacek  <polacek@redhat.com>
16247         PR c/65179
16248         * doc/invoke.texi: Document -Wshift-negative-value.
16250 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
16252         * gcov-tool.c (do_merge): Refactore to remove int ret.
16253         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
16254         !type == FUNC to type != FUNC.
16255         * reload.h (struct target_reload): Changee to type of
16256         x_spill_indirect_levels from bool to unsigned char.
16258 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
16260         * rtl.h (always_void_p): New function.
16261         * gengenrtl.c (always_void_p): Likewise.
16262         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
16263         with code foo are always VOIDmode.
16264         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
16265         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
16266         compare-elim.c, config/aarch64/aarch64.c,
16267         config/aarch64/aarch64.md, config/alpha/alpha.c,
16268         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
16269         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
16270         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
16271         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
16272         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
16273         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
16274         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
16275         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
16276         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
16277         config/ia64/vect.md, config/iq2000/iq2000.c,
16278         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
16279         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
16280         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
16281         config/mep/mep.c, config/microblaze/microblaze.c,
16282         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
16283         config/mn10300/mn10300.c, config/msp430/msp430.c,
16284         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
16285         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
16286         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
16287         config/rs6000/altivec.md, config/rs6000/rs6000.c,
16288         config/rs6000/rs6000.md, config/rs6000/vector.md,
16289         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
16290         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
16291         config/sh/sh.md, config/sh/sh_treg_combine.cc,
16292         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
16293         config/spu/spu.md, config/stormy16/stormy16.c,
16294         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
16295         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
16296         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
16297         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
16298         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
16299         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
16300         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
16301         var-tracking.c: Update calls accordingly.
16303 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
16305         PR middle-end/192
16306         PR middle-end/54303
16307         * varasm.c (function_mergeable_rodata_prefix): New function.
16308         (mergeable_string_section): Use it.
16309         (mergeable_constant_section): Use it.
16311 2015-05-07  Jeff Law  <law@redhat.com>
16313         PR target/39726
16314         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16315         simplifier to narrow arithmetic.
16316         * generic-match-head.c: (types_match, single_use): New functions.
16317         * gimple-match-head.c: (types_match, single_use): New functions.
16319 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16321         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
16322         rtx type.
16324 2015-05-07  Richard Biener  <rguenther@suse.de>
16326         PR tree-optimization/66002
16327         * passes.def: Schedule another pass_merge_phi after ifcombine, right
16328         before phiopt.
16330 2015-05-07  Marek Polacek  <polacek@redhat.com>
16331             Martin Uecker  <uecker@eecs.berkeley.edu>
16333         * doc/invoke.texi: Document -fsanitize=bounds-strict.
16334         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
16335         into SANITIZE_NONDEFAULT.
16336         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
16338 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
16340         PR target/66015
16341         * config/alpha/alpha.c (alpha_override_options_after_change): New.
16342         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
16343         (alpha_override_options): Move align_loops, align_jumps and
16344         align_functions handling into alpha_override_options_after_change.
16346 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
16347             Chris Jones  <chrisj@nvidia.com>
16348             Joshua Conner  <jconner@nvidia.com>
16350         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
16351         linking of crtfastmath.o.
16352         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
16354 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
16356         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
16357         (cstore<mode>4_unsigned_imm): New expander.
16358         (cstore<mode>4): Remove empty constraint strings.  Use the new
16359         expanders.
16361 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
16363         PR target/64208
16364         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
16365         alternatives.
16367 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16369         * config/aarch64/geniterators.sh: Use standard BRE in sed.
16371 2015-05-06  Alan Modra  <amodra@gmail.com>
16373         PR target/66033
16374         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
16375         (UNSPEC_NOP): Define.
16376         (reload_vsx_from_gpr<mode>): Add missing DONE.
16377         (reload_gpr_from_vsx<mode>): Likewise.
16378         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
16379         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
16381 2015-05-06  Christian Bruel  <christian.bruel@st.com>
16383         PR target/66015
16384         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
16385         align_jumps, align_functions into aarch64_override_options_after_change.
16387 2015-05-06  Richard Biener  <rguenther@suse.de>
16389         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
16390         vect_transform_slp_perm_load to check if we support a permutation
16391         for basic-block vectorization.
16393 2015-05-06  Nick Clifton  <nickc@redhat.com>
16395         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
16396         used, even if it is not being used as a frame pointer.
16398 2015-05-05  Jason Merrill  <jason@redhat.com>
16400         * dwarf2out.c (gen_member_die): Don't emit anything for an
16401         anonymous class constructor.
16403 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
16405         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
16406         that it reflects the block structure.
16407         (afdo_propagate_edge): Likewise.
16408         (afdo_calculate_branch_prob): Likewise.
16409         (afdo_annotate_cfg): Likewise.
16410         * cfgcleanup.c (equal_different_set_p): Likewise.
16411         (try_crossjump_to_edge): Likewise.
16412         * cgraph.c (cgraph_node::verify_node): Likewise.
16413         * cgraphunit.c (expand_all_functions): Likewise.
16414         * config/i386/i386.c (ix86_expand_copysign): Likewise.
16415         (exact_dependency_1): Likewise.
16416         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
16417         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
16418         * gensupport.c (process_define_subst): Likewise.
16419         * lto-wrapper.c (merge_and_complain): Likewise.
16420         * tree-if-conv.c (if_convertible_bb_p): Likewise.
16421         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
16422         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
16423         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16424         * tree-vect-loop.c (vectorizable_reduction): Likewise.
16425         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16426         * tree-vect-stmts.c (vectorizable_shift): Likewise.
16427         * tree-vrp.c (vrp_finalize): Likewise.
16428         * tree.c (variably_modified_type_p): Likewise.
16430 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
16432         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
16433         on darwin12 and later.
16434         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
16435         file to pass -rdynamic on darwin12 and later.
16436         * config/darwin.opt (rdynamic): Add.
16438 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16440         * doc/extend.texi (C Extensions): Update menu for moved Variable
16441         Attributes and Type Attributes sections.
16443 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16445         PR target/65990
16446         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
16447         if rep_8byte stringop strategy was specified for 32-bit target.
16449 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
16451         PR target/65915
16452         * config/i386/i386.md (vector convert to float spltiter): Check for
16453         xmm16+, when splitting scalar float conversion.
16454         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
16456 2015-05-05  Nick Clifton  <nickc@redhat.com>
16458         * config/msp430/msp430-opts.h (enum msp430_regions): New.
16459         * config/msp430/msp430.c (msp430_override_options): Complain if
16460         -mcode-region or -mdata-region is used on a non MSP430X.
16461         (msp430_section_attr): New function.  Checks lower, upper and
16462         either attributes.
16463         (msp430_attribute_table): Add lower, upper and either.
16464         (gen_prefix): New function.  Generates a prefix for a section
16465         name.
16466         (msp430_select_section): New function - handles the choice of
16467         section for an object.  Takes into account memory region
16468         attributes and options.
16469         (msp430_function_section): Use gen_prefix.
16470         (TARGET_SECTION_TYPE_FLAGS): Define.
16471         (msp430_section_type_flags): New function.
16472         (TARGET_ASM_UNIQUE_SECTION): Define.
16473         (msp430_unique_section): New function.
16474         (msp430_output_aligned_decl_common): New function.
16475         (msp430_do_not_relax_short_jumps): New function.
16476         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
16477         Define.
16478         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16479         * config/msp430/msp430-protos.h
16480         (msp430_do_not_relax_short_jumps): New prototype.
16481         (msp430_output_aligned_decl_common): New prototype.
16482         * config/msp430/msp430.md (length): New attribute.
16483         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
16484         then use a long code sequence for short jumps.
16485         * config/msp430/msp430.opt (mcode-region): New.
16486         (mdata-region): New.
16487         * doc/invoke.texi: Document new options.
16488         * doc/extend.texi: Document new attributes.
16490 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16492         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
16493         (tune_params): Add field branch_costs.
16494         (aarch64_branch_cost): Declare.
16495         * gcc/config/aarch64.c (generic_branch_cost): New.
16496         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
16497         (cortexa53_tunings): Likewise.
16498         (cortexa57_tunings): Likewise.
16499         (thunderx_tunings): Likewise.
16500         (xgene1_tunings): Likewise.
16501         (aarch64_branch_cost): Define.
16502         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
16504 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16506         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
16507         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
16508         * config/i386/i386.md: Ditto.
16509         * config/i386/winnt.c: Ditto.
16511 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
16513         * doc/extend.texi (__atomic Builtins): Move implementation details
16514         to the end of the description, rewrite opening paragraphs, state
16515         difference with __sync builtins, state C11/C++11 assumptions,
16516         weaken itemized descriptions, add explanation of memory model
16517         behaviour, expand description of compare-exchange, simplify text.
16519 2015-05-05  Renlin Li  <renlin.li@arm.com>
16521         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
16523 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
16525         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
16526         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16527         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
16528         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
16529         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
16530         * configure: Regenerate.
16531         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
16532         * doc/install.texi (aarch64*-*-*): Document new
16533         --enable-fix-cortex-a53-843419 option.
16534         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
16535         and -mno-fix-cortex-a53-843419 options.
16537 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
16539         PR target/65871
16540         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
16542 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
16544         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
16545         fix overactive TYPE_MIN_VALUE check and add FIXME for type
16546         compatibility problems.
16548 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16550         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
16551         constraints.
16552         (cbranchsi4_reg): New.
16553         * config/microblaze/microblaze.c
16554         (microblaze_expand_conditional_branch_reg): New.
16555         * config/microblaze/microblaze-protos.h
16556         (microblaze_expand_conditional_branch_reg): New prototype.
16558 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
16560         * config/microblaze/microblaze.md (peephole2): New.
16562 2015-05-04  Jeff Law  <law@redhat.com>
16564         Revert:
16565         2015-05-04  Jeff Law  <law@redhat.com>
16567         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16568         simplifier to narrow arithmetic.
16569         * generic-match-head.c: (types_match, single_use): New functions.
16570         * gimple-match-head.c: (types_match, single_use): New functions.
16572 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16574         PR target/65987
16575         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
16576         (split_branches): Likewise.
16578 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
16580         * common.opt (fdelete-null-pointer-checks): Init to -1.
16581         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
16582         override flag_delete_null_pointer_checks default.
16583         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
16584         behavior re address zero.  Better document target-specific behavior.
16585         (-fisolate-errneous-paths-dereference): Mention relationship to
16586         -fdelete-null-pointer-checks.
16588 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16590         PR tree-optimization/65984
16591         * ubsan.c: Include tree-cfg.h.
16592         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
16593         stmt_could_throw_p test, rename can_throw variable to ends_bb.
16595 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16597         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
16598         to CONST_DOUBLE_P predicate.
16599         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
16600         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
16601         allow only operands that satisfy standard_sse_constant_p predicate.
16602         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
16603         to CONST_DOUBLE_P predicate.
16605 2015-05-04  Jeff Law  <law@redhat.com>
16607         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
16608         simplifier to narrow arithmetic.
16609         * generic-match-head.c: (types_match, single_use): New functions.
16610         * gimple-match-head.c: (types_match, single_use): New functions.
16612 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
16614         * config/arm/arm.c: Restore bootstrap.
16616 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
16618         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
16619         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
16620         as CONST_WIDE_INT, not CONST_DOUBLE.
16621         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
16622         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
16623         (ix86_find_base_term): Do not check for CONST_DOUBLE.
16624         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
16625         (ix86_build_signbit_mask): Rewrite using wide ints.
16626         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
16627         (ix86_rtx_costs): Handle CONST_WIDE_INT.
16628         (find_constant): Ditto.
16629         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
16630         using gen_int_mode.
16631         * config/i386/predicates.md (x86_64_immediate_operand)
16632         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16633         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
16634         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
16635         (const0_operand): Also match const_wide_int.
16636         (constm1_operand): Ditto.
16637         (const1_operand): Ditto.
16639 2015-05-04  Richard Biener  <rguenther@suse.de>
16641         PR tree-optimization/65965
16642         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
16643         store groups at gaps.
16645 2015-05-04  Richard Biener  <rguenther@suse.de>
16647         PR tree-optimization/65935
16648         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
16649         then make sure to apply that swapping to the IL.
16651 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
16653         * Makefile.in (PATCHLEVEL_c): New variable.
16654         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
16655         expand the same way as if DEVPHASE_c was non-empty.
16657 2015-05-04  Kai Tietz  <ktietz@redhat.com>
16659         PR target/65559
16660         * lto-wrapper.c (run_gcc): Open filename
16661         in binary-mode.
16663 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
16665         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
16666         sections up in file, to immediately after the Function Attributes
16667         section.
16669 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
16671         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
16673 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16675         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
16676         (insert_partition_copy_on_edge): Adjust.
16677         (insert_rtx_to_part_on_edge): Likewise.
16678         (insert_part_to_rtx_on_edge): Likewise.
16680 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16682         * function.c (set_return_jump_label): Change type of argument to
16683         rtx_insn *.
16684         * function.h (set_return_jump_label): Adjust.
16686 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16688         * reload.h (struct reg_equivs_t): Change type of init to
16689         rtx_insn *.
16690         * ira.c (fix_reg_equiv_init): Adjust.
16691         * reload1.c (eliminate_regs_1): Likewise.
16692         (init_eliminable_invariants): Likewise.
16694 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16696         * cselib.c (fp_setter_insn): Take a rtx_insn *.
16697         * cselib.h (fp_setter_insn): Adjust.
16699 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16701         * recog.c (struct validate_replace_src_data): Change type of
16702         insn field to rtx_insn *.
16703         (validate_replace_src_group): Change type of argument to rtx_insn *.
16704         * recog.h (validate_replace_src_group): Adjust.
16706 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16708         * haifa-sched.c: Change the type of some variables to rtx_insn *.
16709         * sched-deps.c: Likewise.
16710         * sched-int.h: Likewise.
16711         * sched-rgn.c: Likewise.
16712         * sel-sched.c: Likewise.
16714 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16716         to rtx_insn *.
16717         * config/i386/i386.c: Change the type of some arguments to
16718         rtx_insn *.
16719         * config/arm/arm.c: Likewise.
16721 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16723         * lra-constraints.c: Change type of some arguments to rtx_insn *.
16725 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16727         * regcprop.c (kill_autoinc_value): Change type of argument to
16728         rtx_insn *.
16730 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16732         * genrecog.c (print_subroutine): Adjust.
16733         * recog.c (get_bool_attr_mask_uncached): Likewise.
16734         * recog.h (struct recog_data_d): Change the type of insn to
16735         rtx_insn *.
16737 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16739         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
16741 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16743         * df-problems.c (df_set_note): Change type of argument to
16744         rtx_insn *.
16746 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16748         * builtins.c (expand_builtin_trap): Change type of local
16749         variable to rtx_insn *.
16750         (add_sched_insns_for_speculation): Likewise.
16751         (ix86_emit_save_regs): Likewise.
16752         (get_scratch_register_on_entry): Likewise.
16753         (ix86_emit_restore_reg_using_pop): Likewise.
16754         (ix86_emit_leave): Likewise.
16755         (ix86_emit_restore_regs_using_mov): Likewise.
16756         (ix86_expand_epilogue): Likewise.
16757         Likewise.
16758         (rl78_alloc_physical_registers_umul): Likewise.
16759         * cselib.c (discard_useless_locs): Likewise.
16760         (cselib_invalidate_regno): Likewise.
16761         (cselib_invalidate_mem): Likewise.
16762         * function.c (expand_function_start): Likewise.
16763         (emit_use_return_register_into_block): Likewise.
16764         * gcse.c: Likewise.
16765         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
16766         * ifcvt.c (noce_get_alt_condition): Likewise.
16767         * loop-doloop.c (doloop_condition_get): Likewise.
16768         * lra-constraints.c (inherit_in_ebb): Likewise.
16769         * modulo-sched.c (sms_schedule_by_order): Likewise.
16770         * recog.c (next_insn_tests_no_inequality): Likewise.
16771         * reorg.c (emit_delay_sequence): Likewise.
16772         (update_reg_dead_notes): Likewise.
16773         (fix_reg_dead_note): Likewise.
16774         (fill_slots_from_thread): Likewise.
16775         (delete_computation): Likewise.
16777 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
16779         * doc/extend.texi (Variable Attributes): Add menu and proper
16780         @nodes to subsections.  Move Microsoft Windows attributes to
16781         their own subsection.
16782         (Type Attributes): Reorganize introduction to remove duplicate
16783         list of attributes.  Add menu and proper @nodes to subsections.
16784         Alphabetize the main table of common attributes.
16786 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
16788         * match.pd: New simplification patterns.
16789         (x + (x & 1))  -> ((x + 1) & ~1)
16790         (x & ~(x & y)) -> ((x & ~y))
16791         (x | ~(x | y)) -> ((x | ~y))
16793 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16795         * target.def (attribute_table): Mention that struct attribute_spec
16796         is defined in tree-core.h rather than tree.h
16797         * doc/tm.texi: Regenerate.
16799 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
16801         * genrecog.c (test): Rename to rtx_test.  Update rest of file
16802         accordingly.
16804 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
16806         PR translation/65959
16807         * params.h (DEFPARAM): Rename msgid to nocmsgid.
16809 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16811         * gcc/config/aarch64/aarch64-protos.h (tune_params):
16812         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
16813         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
16814         Return value depending on target.
16815         (generic_tunings): Initialize new target settings.
16816         (cortexa53_tunings): Likewise.
16817         (cortexa57_tunings): Likewise.
16818         (thunderx_tunings): Likewise.
16819         (xgene1_tunings): Likewise.
16821 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16823         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
16824         Make Cortex-A53 shift costs more accurate.
16826 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16828         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
16829         UNSIGNED_FLOAT.
16831 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
16833         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
16834         Calculate cost of op0 and op1 in PLUS and MINUS cases.
16836 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16838         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16839         Add cost of op0 in the compare-with-fpzero case.
16841 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
16843         * builtins.c (fold_builtin_1): Remove spurious second
16844         semicolon.
16845         * cgraph.h (symtab_node::get_availability): Likewise.
16846         * opts.c (common_handle_option): Remove spurious second semicolon.
16847         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16848         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16850 2015-04-30  Caroline Tice  <cmtice@google.com>
16852         PR gcov-profile/65929
16853         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
16854         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
16855         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
16856         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
16857         * doc/tm.texi: Regenerate.
16858         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
16859         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
16860         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
16861         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
16863 2015-04-30  Marek Polacek  <polacek@redhat.com>
16865         * varasm.c (handle_cache_entry): Fix logic.
16867 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16869         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
16870         (*extrsi5_insn_uxtw_alt): Likewise.
16871         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
16872         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
16873         operations.
16875 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16877         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
16878         fabd in ABS case.
16880 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16882         * config/aarch64/aarch64.md
16883         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
16884         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
16885         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
16886         appropriately.  Handle alternative EON form.
16888 2015-04-30  Renlin Li  <renlin.li@arm.com>
16890         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
16891         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
16893 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
16895         PR ipa/65873
16896         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
16897         -fstrict-aliasing boundaries.
16899 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16901         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
16902         and [SU]MNEGL patterns.
16904 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16906         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
16907         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
16908         combined arithmetic-shift ops.  Properly handle all shift and extend
16909         operations that can occur in combination with PLUS/MINUS.
16910         Rename maybe_fma to compound_p.
16911         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
16912         arithmetic and shift operations.
16914 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16916         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
16917         rather than arith_shift cost when costing ADD/MINUS of an
16918         extended value.
16920 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
16922         PR lto/65948
16923         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
16924         to itself.
16926 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
16928         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
16929         are for the same position.
16931 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
16933         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
16934         vectorize_loops.
16935         (vectorize_loops): Use it.
16937 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
16939         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
16940         for aggregate types.
16941         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
16942         type to be non_ODR.
16943         * tree.c (need_assembler_name_p): Compute mangled name for
16944         non-fundamental types and integer types.
16946 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
16948         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
16949         manual swaps.
16950         * expr.c (expand_expr_real_2): Likewise.
16952 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
16954         * tree.c (build_common_builtin_nodes): Do not build
16955         __builtin_alloca_with_align as equivalent of library alloca.
16957 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
16959         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
16960         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
16961         bugus variants.
16962         * tree.c: Include print-tree.h and ipa-utils.h
16963         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
16964         (free_lang_data_in_cgraph): Call verify_type.
16965         (verify_type_variant): New function.
16966         (verify_type): New function.
16967         * tree.h (verify_type): Declare.
16969 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
16971         * config/mips/mips-cpus.def: (mips4): Change default processor
16972         from PROCESSOR_R8000 to PROCESSOR_R10000.
16974 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
16976         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
16977         la/jalr instead of jal.
16979 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
16981         PR target/65871
16982         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
16983         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
16984         (setcc+movzbl peephole2): Check also clobbered reg.
16985         (setcc+andl peephole2): Ditto.
16987 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
16989         PR libgomp/65099
16990         * config/nvptx/mkoffload.c (target_ilp32): New variable.
16991         (main): Set it depending on "-foffload-abi=[...]".
16992         (compile_native, main): Use it to pass "-m32" or "-m64" to the
16993         compiler.
16995 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
16997         PR target/65770
16998         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
16999         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
17000         Flip lane index back at assembly time for bigendian.
17002 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17004         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
17005         * gimplify.c (gimplify_omp_workshare): Use it.
17007 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17009         * Makefile.in (build/genrecog.o): Depend on inchash.h.
17010         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
17011         build/inchash.o
17012         * genrecog.c: Rewrite most of the code except for the third page.
17014 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17016         * inchash.h, inchash.c: Include bconfig.h for build objects.
17017         * Makefile.in (build/inchash.o): New rule.
17019 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
17021         PR target/65924
17022         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
17023         number in type attribute expression.
17025 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17027         * loop-iv.c (canon_condition): Generalize to all types of integer
17028         constant.
17030 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
17032         * gimple-walk.c: Prune duplicate or unneeded includes.
17033         (walk_gimple_asm): Only call parse_input_constraint or
17034         parse_output_constraint if their findings are used.
17035         Honour parse_input_constraint and parse_output_constraint
17036         result.
17038 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17040         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
17042 2015-04-29  Tom de Vries  <tom@codesourcery.com>
17044         PR tree-optimization/65893
17045         * passes.def (pass_all_optimizations): Move pass_stdarg to after
17046         pass_dce.
17048 2015-04-29  Richard Biener  <rguenther@suse.de>
17050         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17051         compute GROUP_SIZE for basic-block SLP.
17052         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
17053         take into account gaps.
17054         (vect_get_mask_element): Properly reject references to previous
17055         vectors.
17056         (vect_transform_slp_perm_load): Likewise.
17058 2015-04-29  Christian Bruel  <christian.bruel@st.com>
17060         PR target/64835
17061         * config/i386/i386.c (ix86_default_align): New function.
17062         (ix86_override_options_after_change): Call ix86_default_align.
17063         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
17064         (ix86_override_options_after_change): New function.
17066 2015-04-28  Jeff Law  <law@redhat.com>
17068         * tree-ssa-dom.c (record_equality); Fix comment typos.
17070 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17072         PR tree-optimization/65887
17073         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
17075 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
17077         * doc/extend.texi (Declaring Attributes of Functions): Split into
17078         subsections by target.  Alphabetize the table of common attributes.
17079         Rewrite some of the introductory text to reflect the new structure.
17080         Update some cross-references to point to the new subsections.
17081         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
17082         duplicate copies in the discussion of function, label, and type
17083         attributes.
17085 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
17087         PR bootstrap/65910
17088         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
17090 2015-04-28  Jason Merrill  <jason@redhat.com>
17092         PR c++/65734
17093         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
17094         (finalize_type_size): Respect TYPE_USER_ALIGN.
17095         (layout_type) [ARRAY_TYPE]: Likewise.
17097 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
17099         * config/arm/arm.md (*arm_movt): Fix type attribute.
17100         (*cmpsi_shiftsi): Likewise.
17101         (*cmpsi_shiftsi_swp): Likewise.
17102         (*movsicc_insn): Likewise.
17103         (*cond_move): Likewise.
17104         (*if_plus_move): Likewise.
17105         (*if_move_plus): Likewise.
17106         (*if_arith_move): Likewise.
17107         (*if_move_arith): Likewise.
17108         (*if_shift_move): Likewise.
17109         (*if_move_shift): Likewise.
17110         (*arm_movtas_ze): Likewise.
17111         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
17112         redundancy and type attribute.
17113         (*thumb2_movsi_insn): Fix type attribute.
17114         (*thumb2_addsi_short): Likewise.
17115         (thumb2_addsi3_compare0): Likewise.
17116         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
17117         attributes accordingly.
17119 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
17121         PR other/65911
17122         * function.c (pad_to_arg_alignment): Add parentheses.
17124 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
17126         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
17127         libgcc/config/frv/elf-lib.h.
17129 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17131         * tree-call-cdce.c: Fix example in header comment.
17133 2015-04-28  Richard Biener  <rguenther@suse.de>
17135         PR tree-optimization/62283
17136         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
17137         fails fatally and we are vectorizing a basic-block simply
17138         cause the child to be constructed piecewise.
17139         (vect_analyze_slp_cost_1): Adjust.
17140         (vect_detect_hybrid_slp_stmts): Likewise.
17141         (vect_bb_slp_scalar_cost): Likewise.
17142         (vect_get_constant_vectors): For piecewise constructed
17143         constants place them after the last def.
17144         (vect_get_slp_defs): Adjust.
17145         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
17146         externals for basic-block vectorization.
17148 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17150         PR target/63503
17151         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
17152         aarch64-*-*.
17153         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
17154         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
17155         (AARCH64_TUNE_FMA_STEERING): Likewise.
17156         * config/aarch64/aarch64-cores.def: Set
17157         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
17158         FMUL/FMADD instructions.
17159         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
17160         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
17161         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
17162         * config/aarch64/cortex-a57-fma-steering.h: New file.
17163         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17165 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
17167         * gensupport.c (std_preds): Add missing codes to address_operand entry.
17169 2015-04-28  Richard Biener  <rguenther@suse.de>
17171         PR tree-optimization/65851
17172         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
17173         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
17174         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
17175         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
17176         (ccp_visit_phi_node): Adjust.
17177         (evaluate_stmt): For simplifications to SSA names return its
17178         lattice value if that isn't VARYING.  Return immediately when
17179         simplified to a constant.
17180         (visit_assignment): Adjust.
17181         (ccp_visit_stmt): Likewise.
17183 2015-04-28  Tom de Vries  <tom@codesourcery.com>
17185         PR tree-optimization/65818
17186         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
17187         evaluated.
17189 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17191         * calls.c (save_fixed_argument_area): Don't check
17192         ARGS_GROW_DOWNWARD with the preprocessor.
17193         (restore_fixed_argument_area): Likewise.
17194         (mem_overlaps_already_clobbered_arg_p): Likewise.
17195         (check_sibcall_argument_overlap): Likewise.
17196         (expand_call): Likewise.
17197         (emit_library_call_value_1): Likewise.
17198         (store_one_arg): Likewise.
17199         * function.c (assign_parms): Likewise.
17200         (locate_and_pad_parm): Likewise.
17201         (pad_to_arg_alignment): Likewise.
17202         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17204 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17206         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
17207         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
17208         * calls.c (save_fixed_argument_area): Don't chekc if
17209         ARGS_GROW_DOWNWARD is defined.
17210         (restore_fixed_argument_area): Likewise.
17211         (mem_overlaps_already_clobbered_arg_p): Likewise.
17212         (check_sibcall_argument_overlap): Likewise.
17213         (expand_call): Likewise.
17214         (emit_library_call_value_1): Likewise.
17215         (store_one_arg): Likewise.
17216         * function.c (assign_parms): Likewise.
17217         (locate_and_pad_parm): Likewise.
17218         (pad_to_arg_alignment): Likewise.
17219         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
17221 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17223         * defaults.h (gen_epilogue): New function.
17224         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
17225         defined.
17226         * cfgrtl.c (cfg_layout_finalize): Likewise.
17227         * df-scan.c: Likewise.
17228         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17229         (reposition_prologue_and_epilogue_notes): Likewise.
17230         * reorg.c (find_end_label): Likewise.
17231         * toplev.c: Likewise.
17233 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17235         * bb-reorder.c (HAVE_return): Don't check if its undefined.
17236         * defaults.h (gen_simple_return): New function.
17237         (gen_simple_return): Likewise.
17238         (HAVE_return): Add default definition to false.
17239         (HAVE_simple_return): Likewise.
17240         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
17241         HAVE_return and HAVE_simple_return are defined.
17242         * function.c (gen_return_pattern): Likewise.
17243         (convert_jumps_to_returns): Likewise.
17244         (thread_prologue_and_epilogue_insns): Likewise.
17245         * reorg.c (find_end_label): Likewise.
17246         (dbr_schedule): Likewise.
17247         * shrink-wrap.c: Likewise.
17248         * shrink-wrap.h: Likewise.
17250 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17252         * defaults.h (EPILOGUE_USES): Add default definition of false.
17253         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
17254         * resource.c (init_resource_info): Likewise.
17256 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17258         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
17259         to false.
17260         * dwarf2out.c (field_byte_offset): REmove check if
17261         PCC_BITFIELD_TYPE_MATTERS is defined.
17262         * stor-layout.c (layout_decl): Likewise.
17263         (update_alignment_for_field): Likewise.
17264         (place_field): Likewise.
17266 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17268         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
17269         true.
17270         * regrename.c (check_new_reg_p): Remove check if
17271         HARD_REGNO_RENAME_OK is defined.
17272         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
17274 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17276         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
17277         * cse.c (fold_rtx): Likewise.
17278         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
17279         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
17280         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
17281         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
17282         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
17283         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
17284         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
17285         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
17286         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
17287         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
17288         * Likewise.
17289         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
17290         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
17291         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
17292         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
17293         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
17294         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
17295         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
17296         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
17297         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
17298         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
17299         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
17300         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
17301         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
17302         * doc/tm.texi: Regenerate.
17303         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
17304         either true or false.
17306 2015-04-27  Jeff Law  <law@redhat.com>
17308         PR tree-optimization/65217
17309         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
17310         of them has a single use, make sure it is the LHS of the implied
17311         copy.
17313 2015-04-28  Alan Modra  <amodra@gmail.com>
17315         PR target/65810
17316         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
17317         (offsettable_ok_by_alignment): Use minimum of decl and toc
17318         pointer alignment.  Replace dead code with assertion.
17319         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
17320         case if size exceeds toc pointer alignment.
17321         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
17322         (rs6000_emit_move): Likewise.
17323         * configure.ac: Add linker toc pointer alignment check.
17324         * configure: Regenerate.
17325         * config.in: Regenerate.
17327 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
17329         * config.gcc: Add h8300-*-linux.
17330         * config/h8300/linux.h: New.
17331         * config/h8300/t-linux: New.
17332         * config/h8300/h8300.c (h8300_option_override): Normal mode
17333         is not supported for h8300-*-linux.
17334         (h8300_file_start): Target priority change.
17335         (get_shift_alg): Likewise.
17336         (h8300_shift_need_scratch_p): Likewise.
17337         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17338         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
17340 2015-04-27  Caroline Tice  <cmtice@google.com>
17342         * final.c (final_scan_insn):  Output cold_function_name as function
17343         type.
17344         * varasm.c (cold_function_name):  Make global.
17345         (assemble_start_function):  Re-set cold_function_name.
17346         (assemble_end_function): Output cold partition size.
17347         * varasm.h (cold_function_name):  Declare global.
17349 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
17351         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
17352         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
17353         constraint.
17354         (*movxi_internal_avx512f): Ditto.
17355         (define_split): Check for xmm16+, when splitting scalar float_extend.
17356         (*extendsfdf2_mixed): Use "v" constraint.
17357         (define_split): Check for xmm16+, when splitting scalar float_truncate.
17358         (*truncdfsf_fast_sse): Use "v" constraint.
17359         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
17360         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
17361         (define_peephole2): Check for xmm16+, when converting scalar
17362         float_truncate.
17363         (define_peephole2): Check for xmm16+, when converting scalar
17364         float_extend.
17365         (*fop_<mode>_comm_mixed): Use "v" constraint.
17366         (*fop_<mode>_comm_sse): Ditto.
17367         (*fop_<mode>_1_mixed): Ditto.
17368         (*sqrt<mode>2_sse): Ditto.
17369         (*ieee_s<ieee_maxmin><mode>3): Ditto.
17371 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17373         * combine.c (simplify_if_then_else): Use std::swap instead
17374         of manually swapping.
17375         (known_cond): Likewise.
17376         (simplify_comparison): Likewise.
17378 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
17380         PR target/64579
17381         * config/rs6000/htm.md: Remove all define_expands.
17382         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
17383         UNSPECV_HTM_TABORTWCI): Remove.
17384         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
17385         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
17386         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
17387         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
17388         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
17389         tabortwci_internal): Remove define_insns.
17390         (tabort<wd>c, tabort<wd>ci): New define_insns.
17391         (tabort): Use gpc_reg_operand.
17392         (tcheck): Remove operand.
17393         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
17394         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
17395         expected value.
17396         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
17397         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
17398         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
17399         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
17400         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
17401         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
17402         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
17403         (tcheck): Remove builtin argument.
17404         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
17405         not TARGET_64BIT.
17406         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
17407         tabortdc and tabortdci builtins when not in 64-bit mode.
17408         Modify code to handle the loss of the HTM define_expands.
17409         Emit code to copy the CR register to TARGET.
17410         (htm_init_builtins): Modify code to handle the loss of the HTM
17411         define_expands.
17412         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
17413         (RS6000_BTC_64BIT): Likewise.
17414         (RS6000_BTC_CR): New macro.
17415         * doc/extend.texi: Update documentation for htm builtins.
17417 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17419         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
17420         of manually swapping.
17421         (simplify_associative_operation): Likewise.
17422         (simplify_binary_operation): Likewise.
17423         (simplify_plus_minus): Likewise.
17424         (simplify_relational_operation): Likewise.
17425         (simplify_ternary_operation): Likewise.
17427 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17429         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
17430         (xs_hi_nonmemory_operand): Remove error.
17431         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
17432         general_operand rather than xs_hi_general_operand.
17434 2015-04-27  Richard Biener  <rguenther@suse.de>
17436         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
17437         (record_equivalences_from_stmt): Valueize rhs.
17438         (record_equality): Canonicalize x and y order via
17439         tree_swap_operands_p.  Do not swap operands for same loop depth.
17441 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
17443         PR target/65296
17444         PR target/65895
17445         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
17446         Add hint how to use own spec file.
17448 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
17450         PR tree-optimization/65875
17451         * tree-vrp.c (update_value_range): If in is_new case setting
17452         old_vr to VR_VARYING, also set new_vr to it.  Remove
17453         old_vr->type == VR_VARYING test.
17454         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
17455         SSA_PROP_INTERESTING if update_value_range returned true,
17456         but new range is VR_VARYING.
17458 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17460         * combine.c (sign_extend_short_imm): New.
17461         (set_nonzero_bits_and_sign_copies): Use above new function for sign
17462         extension of src short immediate.
17463         (reg_nonzero_bits_for_combine): Likewise for tem.
17465 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17467         * stor-layout.c (self_referential_component_ref_p): New predicate.
17468         (copy_self_referential_tree_r): Use it.
17469         (self_referential_size): Punt for simple operations directly involving
17470         self-referential component references.
17471         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
17473 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17475         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
17477 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
17479         * vec.h (vec): Make splice arguments const.  Update definitions
17480         accordingly.
17482 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
17484         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
17485         alternatives.
17487 2015-04-26  Tom de Vries  <tom@codesourcery.com>
17489         PR tree-optimization/65826
17490         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
17492 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
17494         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
17495         (*madd3<mode>): Ditto.
17496         (*msub4<mode>): Ditto.
17497         (*msub3<mode>): Ditto.
17498         (*nmadd4<mode>): Ditto.
17499         (*nmadd3<mode>): Ditto.
17500         (*nmadd4<mode>_fastmath): Ditto.
17501         (*nmadd3<mode>_fastmath): Ditto.
17502         (*nmsub4<mode>): Ditto.
17503         (*nmsub3<mode>): Ditto.
17504         (*nmsub4<mode>_fastmath): Ditto.
17505         (*nmsub3<mode>_fastmath): Ditto.
17507 2015-04-24  Jason Merrill  <jason@redhat.com>
17509         PR c++/50800
17510         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
17511         down when building TYPE_CANONICAL.
17512         (build_pointer_type_for_mode): Likewise.
17514 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
17516         * genrecog.c (validate_pattern): Check matching constraint refers
17517         to a lower numbered operand.
17519 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17521         PR target/65849
17522         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
17523         save to independent variables use the Save attribute.  This will
17524         allow these options to be modified with the #pragma/attribute
17525         target support.
17526         (-mallow-movmisalign): Likewise.
17527         (-mallow-df-permute): Likewise.
17528         (-msched-groups): Likewise.
17529         (-malways-hint): Likewise.
17530         (-malign-branch-targets): Likewise.
17531         (-mvectorize-builtins): Likewise.
17532         (-msave-toc-indirect): Likewise.
17534         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
17535         can be set via the #pragma/attribute target support.
17536         (rs6000_opt_vars): Likewise.
17537         (rs6000_inner_target_options): If VSX was set, also set
17538         -mno-avoid-indexed-addresses.
17540 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17542         * config/arm/iterators.md (shiftable_ops): Rename to...
17543         (SHIFTABLE_OPS): ... This.  Update use in comments.
17544         (ior_xor): Rename to...
17545         (IOR_XOR): ... This.
17546         (vqh_ops): Rename to...
17547         (VQH_OPS): ... This.
17548         (vqhs_ops): Rename to...
17549         (VQHS_OPS): ... This.
17550         (rshifts): Rename to...
17551         (RSHIFTS): ... This.
17552         (returns): Rename to...
17553         (RETURNS): ... This.
17554         * config/arm/arm.md: Update uses of the above.
17555         * config/arm/neon.md: Likewise.
17557 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17559         * config.host (case ${host}): Add aarch64*-*-linux case.
17560         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
17561         fields to all the cores.
17562         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
17563         Add MCPU_MTUNE_NATIVE_SPECS.
17564         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
17565         field to all extensions.
17566         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
17567         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
17568         Adjust definition of AARCH64_OPT_EXTENSION.
17569         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
17570         (MCPU_MTUNE_NATIVE_SPECS): Define.
17571         * config/aarch64/driver-aarch64.c: New file.
17572         * config/aarch64/x-arch64: New file.
17573         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
17574         -mtune and -march.
17576 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17577             Wei Mi  <wmi@google.com>
17579         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
17580         * config/i386/i386.c (extract_base_offset_in_addr): New function.
17581         (ix86_operands_ok_for_move_multiple): Ditto.
17582         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
17583         (movlpd/movhpd to movupd peephole2): Ditto.
17585 2015-04-24  Marek Polacek  <polacek@redhat.com>
17587         PR c/61534
17588         * input.h (from_macro_expansion_at): Define.
17590         PR c/63357
17591         * doc/invoke.texi: Update description of -Wlogical-op.
17593 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17595         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
17596         ternary operator in fprintf and harmonize spacing.
17598 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17600         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
17601         Mark operand1 commutative.
17603 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
17605         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
17606         input operands in memory.
17607         (*vec_concatv2si_sse4_1): Ditto.
17608         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
17609         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
17610         register_operand.
17611         (vec_extract_hi_v32hi): Ditto.
17612         (vec_extract_hi_v64hi): Ditto.
17613         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
17615 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17616             Steven Bosscher <steven@gcc.gnu.org>
17618         PR rtl-optimization/34503
17619         * cprop.c (cprop_reg_p): New.
17620         (hash_scan_set): Use above function to check if register can be
17621         propagated.
17622         (find_avail_set): Return up to two sets, one whose source is a
17623         register and one whose source is a constant.  Sets are returned in an
17624         array passed as parameter rather than as a return value.
17625         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
17626         sets returned by find_avail_set, starting with the one whose source is
17627         a constant. Use cprop_reg_p to check if register can be propagated.
17628         (do_local_cprop): Use cprop_reg_p to check if register can be
17629         propagated.
17630         (implicit_set_cond_p): Likewise.
17632 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17634         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
17635         (sem_function::equals): IGNORED_NODES parameter is now unused;
17636         update call of equals_private.
17637         (sem_function::equals_private): Do not call equals_wpa; skip
17638         gimple body matching if there is no body.
17639         (sem_function::init): Add logic to hash tthunk info.
17640         (sem_function::parse): Also parse thunks.
17641         * ipa-icf.h (equals_private): Update declaration.
17643 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17645         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
17646         asterisk from name so this can be generated directly.
17647         (*altivec_stvx_<mode>_internal): Likewise.
17648         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
17649         that this is never called during or after reload/lra.
17650         (rs6000_frame_related): Remove split_reg
17651         argument and logic that references it.
17652         (emit_frame_save): Remove last parameter from call to
17653         rs6000_frame_related.
17654         (rs6000_emit_prologue): Remove last parameter from eight calls to
17655         rs6000_frame_related.  Force generation of stvx instruction for
17656         Altivec register saves.  Remove split_reg handling, which is no
17657         longer needed.
17658         (rs6000_emit_epilogue):  Force generation of lvx instruction for
17659         Altivec register restores.
17661 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17663         * config/rs6000/rs6000.opt (mcrypto): Change option description to
17664         match category changes in ISA 2.07B.
17666 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17668         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
17669         iterators.
17670         (cmp_op, cmp_type): New code attributes.
17671         (NEON_VCMP, NEON_VACMP): New int iterators.
17672         (cmp_op_unsp): New int attribute.
17673         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
17674         (neon_vceq<mode>): Delete.
17675         (neon_vc<cmp_op><mode>_insn): New pattern.
17676         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
17677         (neon_vcgeu<mode>): Delete.
17678         (neon_vcle<mode>): Likewise.
17679         (neon_vclt<mode>: Likewise.
17680         (neon_vcage<mode>): Likewise.
17681         (neon_vcagt<mode>): Likewise.
17682         (neon_vca<cmp_op><mode>): New define_expand.
17683         (neon_vca<cmp_op><mode>_insn): New pattern.
17684         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
17686 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17688         * tree.h (attribute_value_equal): Declare.
17689         * tree.c (attribute_value_equal): Export.
17691 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17693         * ipa-icf.c (sem_item::compare_attributes): New function.
17694         (sem_item::compare_referenced_symbol_properties): Compare variable
17695         attributes.
17696         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
17697         (sem_function::param_used_p): New function.
17698         (sem_function::equals_wpa): Fix attribute comparsion; match
17699         parameter type codes; do not compare paremter flags when
17700         they are not used; compare edge flags; compare indirect calls.
17701         (sem_item::update_hash_by_addr_refs): Hash reference type.
17702         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
17703         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
17704         reference use type.
17705         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
17706         * ipa-icf.h (compare_attributes, param_used_p): Declare.
17708 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
17710         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
17711         cleanup.
17712         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
17713         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
17714         (sem_item::compare_referenced_symbol_properties): New.
17715         (sem_item::hash_referenced_symbol_properties): New.
17716         (sem_item::compare_cgraph_references): Rename to ...
17717         (sem_item::compare_symbol_references): ... this one; use
17718         compare_referenced_symbol_properties.
17719         (sem_function::equals_wpa): Do not compare
17720         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
17721         DECL_IS_OPERATOR_NEW; compare pointer sizes.
17722         (sem_item::update_hash_by_addr_refs): Call
17723         hash_referenced_symbol_properties.
17724         (sem_item::update_hash_by_local_refs): Cleanup.
17725         (sem_function::merge): Do not mix up symbol properties.
17726         (sem_variable::equals_wpa): Use compare_symbol_references.
17727         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
17728         (sem_item::hash_referenced_symbol_properties): New.
17729         (sem_item::compare_symbol_references): New.
17730         (sem_item::compare_cgraph_references): Remove.
17732 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
17734         PR target/26702
17735         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
17736         Emit size of local.
17738 2015-04-23  Nick Clifton  <nickc@redhat.com>
17740         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
17741         ATTRIBUTE_UNUSED to x parameter.
17742         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
17744 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17746         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
17747         TARGET_CRYPTO to TARGET_P8_VECTOR>
17748         (crypto_vpermxor_<mode>): Likewise.
17749         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
17750         (BU_CRYPTO_3A): Likewise.
17751         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
17752         (BU_CRYPTO_OVERLOAD_3A): New #define.
17753         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
17754         (VPMSUMH): Likewise.
17755         (VPMSUMW): Likewise.
17756         (VPMSUMD): Likewise.
17757         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
17758         (VPERMXOR_V4SI): Likewise.
17759         (VPERMXOR_V8HI): Likewise.
17760         (VPERMXOR_V16QI): Likewise.
17761         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
17762         BU_CRYPTO_OVERLOAD_2A.
17763         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
17764         BU_CRYPTO_OVERLOAD_3A.
17765         * config/rs6000/rs6000.opt (mcrypto): Change description of
17766         option.
17768 2015-04-23  Richard Biener  <rguenther@suse.de>
17770         * passes.def: Remove copy propagation passes run directly after CCP.
17771         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
17772         SSA names.
17773         (ccp_visit_phi_node): Rework to handle first executable edge
17774         specially.
17776 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
17778         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
17779         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17780         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
17781         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
17782         (thumb_legimitimize_reload_address): Remove.
17783         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
17784         Remove.
17785         (thumb_legimitimize_reload_address): Remove.
17787 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17789         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
17791 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17793         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
17794         MAX_LDM_STM_OPS.
17795         (store_multiple): Likewise.
17797 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17799         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
17800         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
17801         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
17802         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
17803         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
17804         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
17805         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
17806         Specify issue_rate value.
17807         (arm_issue_rate): Look up issue rate from tuning structs. Remove
17808         large switch statement.
17809         (arm_marvell_pj4_tune): New struct.
17810         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
17811         struct.
17813 2015-04-23  Richard Biener  <rguenther@suse.de>
17815         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
17816         (vect_find_last_store_in_slp_instance): Rename to ...
17817         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
17818         (vect_analyze_slp_cost_1): Use vector_load for constant defs
17819         and vec_construct for external defs when estimating prologue cost.
17820         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
17821         Compute costs here only when vectorizing loops.
17822         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
17823         have been determined.
17824         (vect_schedule_slp_instance): Simplify vectorized code placement
17825         and prepare for in-BB external defs.
17826         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
17827         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
17828         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
17829         guard.
17830         (vect_model_load_cost): Likewise.
17831         (vectorizable_store): Instead add it here.
17832         (vectorizable_load): Likewise.
17833         (vect_is_simple_use): Dump def type textually.
17835 2015-04-23  Richard Biener  <rguenther@suse.de>
17837         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
17838         * cfgloop.c (verify_loop_structure): Verify the root loop node.
17839         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
17840         instead of get_eh_region_from_lp_number.
17841         * loop-init.c (fix_loop_structure): If we removed a loop, reset
17842         the SCEV cache.
17844 2015-04-23  Anton Blanchard  <anton@samba.org>
17846         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
17847         need for -mprofile-kernel to save LR to stack.
17849 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17851         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
17852         adjustments.
17853         (insn_is_swappable_p): Return 1 for a convert from double to
17854         single precision when all of its uses are splats of BE element
17855         zero.
17857 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17859         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
17861 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17863         PR target/65456
17864         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
17865         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
17866         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
17867         option.
17868         (rs6000_builtin_mask_for_load): Return 0 for targets with
17869         efficient unaligned VSX accesses so that the vectorizer will use
17870         direct unaligned loads.
17871         (rs6000_builtin_support_vector_misalignment): Always return true
17872         for targets with efficient unaligned VSX accesses.
17873         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
17874         stores on targets with efficient unaligned VSX accesses is almost
17875         always the same as the cost of an aligned load or store, so model
17876         it that way.
17877         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
17878         unaligned vectors if we have efficient unaligned VSX accesses.
17879         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
17880         undocumented option.
17882 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17884         Revert:
17885         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
17887         * config.gcc (LIBC_MUSL): New tm_defines macro.
17888         * config/linux.h (OPTION_MUSL): Define.
17889         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17890         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17891         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17893         * config/linux.opt (mmusl): New option.
17894         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17895         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17897         * configure: Regenerate.
17899 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
17901         * config.gcc (LIBC_MUSL): New tm_defines macro.
17902         * config/linux.h (OPTION_MUSL): Define.
17903         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17904         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17905         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17907         * config/linux.opt (mmusl): New option.
17908         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17909         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17911         * configure: Regenerate.
17913 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
17915         * doc/invoke.texi (-fsanitize-sections): Update description.
17916         * asan.c (set_sanitized_sections): Parse incoming arg.
17917         (section_sanitized_p): Support wildcards.
17919 2015-04-22  Tom de Vries  <tom@codesourcery.com>
17921         PR tree-optimization/65823
17922         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
17923         equality between ap_copy and ap.
17925 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17927         PR target/47098
17928         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
17930 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17932         PR target/47122
17933         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
17935 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17937         PR target/55144
17938         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
17939         remove already contained t-files.
17941 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17943         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
17944         Remove unneeded forward declarations.
17945         (suitable_for_tail_call_opt_p): Commentary typo fix.
17947 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17949         * varasm.c (emit_bss): Remove redundant guard.
17951 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17953         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
17955 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17957         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
17959 2015-04-22  Hale Wang  <hale.wang@arm.com>
17960             Terry Guo  <terry.guo@arm.com>
17962         PR rtl-optimization/64818
17963         * combine.c (can_combine_p): Don't combine user-specified
17964         register if it is in an asm input.
17966 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
17968         PR ipa/65076
17969         * passes.def (early_optimizations): Add pass_dse.
17971 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17973         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
17974         * reorg.c (redundant_insn): Remove ifdef
17975         INSN_REFERENCES_ARE_DELAYED.
17976         * resource.c (mark_referenced_resources): Likewise.
17978 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17980         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
17981         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
17982         * resource.c (mark_set_resources): Likewise.
17984 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17986         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
17987         * cfgcleanup.c (flow_find_cross_jump): Likewise.
17988         (flow_find_head_matching_sequence): Likewise.
17989         (try_head_merge_bb): Likewise.
17990         * combine.c (can_combine_p): Likewise.
17991         (try_combine): Likewise.
17992         (distribute_notes): Likewise.
17993         * df-problems.c (can_move_insns_across): Likewise.
17994         * final.c (final): Likewise.
17995         * gcse.c (insert_insn_end_basic_block): Likewise.
17996         * ira.c (find_moveable_pseudos): Likewise.
17997         * reorg.c (try_merge_delay_insns): Likewise.
17998         (fill_simple_delay_slots): Likewise.
17999         (fill_slots_from_thread): Likewise.
18000         * sched-deps.c (sched_analyze_2): Likewise.
18002 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18004         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
18005         PIC_OFFSET_TABLE_REGNUM.
18007 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18009         * alias.c (init_alias_target): Remove ifdef
18010         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
18011         * df-scan.c (df_insn_refs_collect): Likewise.
18012         (df_get_regular_block_artificial_uses): Likewise.
18013         (df_get_eh_block_artificial_uses): Likewise.
18014         (df_get_entry_block_def_set): Likewise.
18015         (df_get_exit_block_use_set): Likewise.
18016         * emit-rtl.c (gen_rtx_REG): Likewise.
18017         * ira.c (ira_setup_eliminable_regset): Likewise.
18018         * reginfo.c (init_reg_sets_1): Likewise.
18019         * regrename.c (rename_chains): Likewise.
18020         * reload1.c (reload): Likewise.
18021         (eliminate_regs_in_insn): Likewise.
18022         * resource.c (mark_referenced_resources): Likewise.
18023         (init_resource_info): Likewise.
18025 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18027         * defaults.h (MASK_RETURN_ADDR): New definition.
18028         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18029         MASK_RETURN_ADDR.
18031 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18033         * defaults.h (RETURN_ADDR_OFFSET): New definition.
18034         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18035         RETURN_ADDR_OFFSET.
18036         (expand_builtin_frob_return_addr): Likewise.
18038 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18040         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
18041         (try_redirect_by_replacing_jump): Likewise.
18042         (rtl_tidy_fallthru_edge): Likewise.
18043         * combine.c (insn_a_feeds_b): Likewise.
18044         (find_split_point): Likewise.
18045         (simplify_set): Likewise.
18046         * cprop.c (cprop_jump): Likewise.
18047         * cse.c (cse_extended_basic_block): Likewise.
18048         * df-problems.c (can_move_insns_across): Likewise.
18049         * function.c (emit_use_return_register_into_block): Likewise.
18050         * haifa-sched.c (sched_init): Likewise.
18051         * ira.c (find_moveable_pseudos): Likewise.
18052         * loop-invariant.c (find_invariant_insn): Likewise.
18053         * lra-constraints.c (curr_insn_transform): Likewise.
18054         * postreload.c (reload_combine_recognize_const_pattern):
18055         * Likewise.
18056         * reload.c (find_reloads): Likewise.
18057         * reorg.c (delete_scheduled_jump): Likewise.
18058         (steal_delay_list_from_target): Likewise.
18059         (steal_delay_list_from_fallthrough): Likewise.
18060         (redundant_insn): Likewise.
18061         (fill_simple_delay_slots): Likewise.
18062         (fill_slots_from_thread): Likewise.
18063         (delete_computation): Likewise.
18064         * sched-rgn.c (add_branch_dependences): Likewise.
18066 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18068         * genconfig.c (main): Always define HAVE_cc0.
18069         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
18070         HAVE_cc0.
18071         * cfgcleanup.c (flow_find_cross_jump): Likewise.
18072         (flow_find_head_matching_sequence): Likewise.
18073         (try_head_merge_bb): Likewise.
18074         * cfgrtl.c (rtl_merge_blocks): Likewise.
18075         (try_redirect_by_replacing_jump): Likewise.
18076         (rtl_tidy_fallthru_edge): Likewise.
18077         * combine.c (do_SUBST_MODE): Likewise.
18078         (insn_a_feeds_b): Likewise.
18079         (combine_instructions): Likewise.
18080         (can_combine_p): Likewise.
18081         (try_combine): Likewise.
18082         (find_split_point): Likewise.
18083         (subst): Likewise.
18084         (simplify_set): Likewise.
18085         (distribute_notes): Likewise.
18086         * cprop.c (cprop_jump): Likewise.
18087         * cse.c (cse_extended_basic_block): Likewise.
18088         * df-problems.c (can_move_insns_across): Likewise.
18089         * final.c (final): Likewise.
18090         (final_scan_insn): Likewise.
18091         * function.c (emit_use_return_register_into_block): Likewise.
18092         * gcse.c (insert_insn_end_basic_block): Likewise.
18093         * haifa-sched.c (sched_init): Likewise.
18094         * ira.c (find_moveable_pseudos): Likewise.
18095         * loop-invariant.c (find_invariant_insn): Likewise.
18096         * lra-constraints.c (curr_insn_transform): Likewise.
18097         * optabs.c (prepare_cmp_insn): Likewise.
18098         * postreload.c (reload_combine_recognize_const_pattern):
18099         * Likewise.
18100         * reload.c (find_reloads): Likewise.
18101         (find_reloads_address_1): Likewise.
18102         * reorg.c (delete_scheduled_jump): Likewise.
18103         (steal_delay_list_from_target): Likewise.
18104         (steal_delay_list_from_fallthrough): Likewise.
18105         (try_merge_delay_insns): Likewise.
18106         (redundant_insn): Likewise.
18107         (fill_simple_delay_slots): Likewise.
18108         (fill_slots_from_thread): Likewise.
18109         (delete_computation): Likewise.
18110         (relax_delay_slots): Likewise.
18111         * sched-deps.c (sched_analyze_2): Likewise.
18112         * sched-rgn.c (add_branch_dependences): Likewise.
18114 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18116         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
18117         that is trivially ded on non cc0 targets.
18118         (simplify_set): Likewise.
18119         (mark_used_regs_combine): Likewise.
18120         * cse.c (new_basic_block): Likewise.
18121         (fold_rtx): Likewise.
18122         (cse_insn): Likewise.
18123         (cse_extended_basic_block): Likewise.
18124         (set_live_p): Likewise.
18125         * rtlanal.c (canonicalize_condition): Likewise.
18126         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18128 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18130         * conditions.h: Define macros even if HAVE_cc0 is undefined.
18131         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
18132         * final.c: Likewise.
18133         * jump.c: Likewise.
18134         * recog.c: Likewise.
18135         * recog.h: Declare functions even when HAVE_cc0 is undefined.
18136         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
18138 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18140         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
18141         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
18142         * builtins.c (expand_builtin): Remove check if
18143         EH_RETURN_DATA_REGNO is defined.
18144         * df-scan.c (df_bb_refs_collect): Likewise.
18145         (df_get_exit_block_use_set): Likewise.
18146         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18147         * ira-lives.c (process_bb_node_lives): Likewise.
18148         * lra-lives.c (process_bb_lives): Likewise.
18150 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18152         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
18153         FIRST_PSEUDO_REG): New.
18154         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
18155         (ARG_POINTER_REGNUM): Define to ARGP_REG.
18156         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
18157         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
18158         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
18159         (FIRST_INT_REG): New.
18160         (LAST_INT_REG): New.
18161         (FIRST_*_REG): Define using *_REG.
18162         (LAST_*_REG): Ditto.
18163         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
18164         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
18165         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
18167 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18169         * expmed.c: (synth_mult): Only assume overlapping
18170         shift with previous steps in alg_sub_t_m2 case.
18172 2015-04-21  Richard Biener  <rguenther@suse.de>
18174         PR tree-optimization/65650
18175         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
18176         transitions involving copies.
18177         (set_lattice_value): Adjust for copy lattice state.
18178         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
18179         if that doesn't dominate the merge point.
18180         (bit_value_unop): Adjust what we treat as varying mask.
18181         (bit_value_binop): Likewise.
18182         (bit_value_assume_aligned): Likewise.
18183         (evaluate_stmt): When we simplified to a SSA name record a copy
18184         instead of dropping to varying.
18185         (visit_assignment): Simplify.
18187         * gimple-match.h (gimple_simplify): Add another callback.
18188         * gimple-fold.c (fold_stmt_1): Adjust caller.
18189         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
18190         for the 2nd callback.
18191         * gimple-match-head.c (gimple_simplify): Add a callback that is
18192         used to valueize the stmt operands and use it that way.
18194 2015-04-21  Richard Biener  <rguenther@suse.de>
18196         PR tree-optimization/65788
18197         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
18199 2015-04-21  Richard Biener  <rguenther@suse.de>
18201         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
18202         vec_construct cost by vec_stmt_cost.
18204 2015-04-21  Richard Biener  <rguenther@suse.de>
18206         * cfghooks.h (create_basic_block): Replace with two overloads
18207         for RTL and GIMPLE.
18208         (split_block): Likewise.
18209         * cfghooks.c (split_block): Rename to ...
18210         (split_block_1): ... this.
18211         (split_block): Add two type-safe overloads for RTL and GIMPLE.
18212         (split_block_after_labels): Call split_block_1.
18213         (create_basic_block): Rename to ...
18214         (create_basic_block_1): ... this.
18215         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
18216         (create_empty_bb): Call create_basic_block_1.
18217         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
18218         split_block_after_labels.
18219         * omp-low.c (expand_parallel_call): Likewise.
18220         (expand_omp_target): Likewise.
18221         (simd_clone_adjust): Likewise.
18222         * tree-chkp.c (chkp_get_entry_block): Likewise.
18223         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
18224         create_basic_block overload.
18225         (cgraph_node::expand_thunk): Likewise.
18226         * tree-cfg.c (make_blocks): Likewise.
18227         (handle_abnormal_edges): Likewise.
18228         * tree-inline.c (copy_bb): Likewise.
18230 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18232         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
18233         New pattern.
18234         (*xor_one_cmplsidi3_ze): Likewise.
18236 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18238         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
18239         use df_remove_problem rather than manually removing problems, leaving
18240         holes in df->problems_in_order[].
18242 2015-04-21  Tom de Vries  <tom@codesourcery.com>
18244         PR tree-optimization/65802
18245         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
18247 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18249         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
18250         Increase to 128.
18251         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
18252         at '.'.  Assert that there's enough space for everything.
18254 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
18256         PR tree-optimization/64950
18257         Revert:
18258         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
18260         PR target/41089
18261         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18262         as volatile.
18264 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
18266         PR rtl-optimization/64916
18267         * cfgcleanup.c (values_equal_p): New function.
18268         (can_replace_by): Use it.
18270 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
18272         PR c++/65801
18273         * doc/invoke.texi ([-Wnarrowing]): Update.
18275 2015-04-20  Jeff Law  <law@redhat.com>
18277         PR tree-optimization/65658
18278         * tree-ssa-threadupdate.c (redirection_block_p): Remove
18279         redundant test for GIMPLE_ASSIGN in last change.
18281 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
18283         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
18284         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
18285         (legitimize_tls_address): Ditto.
18286         (ix86_expand_move): Ditto.
18287         (ix86_expand_binary_operator): Remove reload_in_progress checks.
18288         (ix86_expand_unary_operator): Ditto.
18289         * config/i386/predicates.md (index_register_operand): Ditto.
18291 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
18293         * reorg.c (try_merge_delay_insns): Improve correctness checking
18294         for targets with multiple delay slots.
18296 2015-04-20  Jeff Law  <law@redhat.com>
18298         PR tree-optimization/65658
18299         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
18300         statements too.
18302 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18304         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
18305         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
18306         Delete.
18308 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
18310         PR debug/65807
18311         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
18313 2015-04-20  Richard Biener  <rguenther@suse.de>
18315         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
18316         * gimple-fold.c (gimple_build_valueize): New function.
18317         (gimple_build): Always use gimple_build_valueize as valueize hook.
18319 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
18321         PR target/64134
18322         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
18323         and overwrite variable parts if <= 1/2 the elements are variable.
18325 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
18327         PR rtl-optimization/65805
18328         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
18329         Don't use difference of offset and previous offset if
18330         update_sp_offset is non-zero.
18331         (eliminate_regs_in_insn): Ditto.
18332         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
18333         lra_eliminate_regs_1 call.
18334         * lra-constraints.c (get_equiv_with_elimination): Ditto.
18336 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
18338         * hash-table.h: Remove version of hash_table that stored value_type *.
18339         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
18340         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
18341         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
18342         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
18343         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
18344         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
18345         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18346         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
18347         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
18348         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
18349         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
18350         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
18351         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
18352         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18353         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
18354         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
18356 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18357             Jakub Jelinek  <jakub@redhat.com>
18359         PR target/65787
18360         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
18361         subsequent SH_NONE operand does not overwrite an existing *special
18362         value.
18363         (adjust_extract): Handle case where a vec_extract operation is
18364         wrapped in a PARALLEL.
18366 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18368         PR target/65780
18369         * config/i386/i386.c (ix86_binds_local_p): Define only if
18370         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
18372 2015-04-17  Jeff Law  <law@redhat.com>
18374         PR tree-optimization/47679
18375         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
18376         * tree-ssa-scopedtables.c: New file.
18377         * tree-ssa-scopedtables.h: New file.
18378         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
18379         (const_and_copies): Change name/type.
18380         (record_const_or_copy): Move into tree-ssa-scopedtables.c
18381         (record_const_or_copy_1): Similarly.
18382         (restore_vars_to_original_value): Similarly.
18383         (pass_dominator::execute): Create and destroy const_and_copies table.
18384         (thread_across_edge): Update passing of const_and_copies.
18385         (record_temporary_equivalence): Use method calls rather than
18386         manipulating const_and_copies directly.
18387         (record_equality, cprop_into_successor_phis): Similarly.
18388         (dom_opt_dom_walker::before_dom_children): Similarly.
18389         (dom_opt_dom_walker::after_dom_children): Similarly.
18390         (eliminate_redundant_computations): Similarly.
18391         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
18392         (record_temporary_equivalence): Likewise.
18393         (invalidate_equivalences): Likewise.
18394         (record_temporary_equivalences_from_phis): Update due to type
18395         change of const_and_copies.  Use method calls rather than
18396         manipulating the stack directly.
18397         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
18398         (thread_through_normal_block, thread_across_edge): Likewise.
18399         (thread_across_edge): Likewise.
18400         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
18401         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
18402         of equiv_stack.
18403         (identify_jump_threads): Update due to type change of equiv_stack.
18404         (finalize_jump_threads): Delete the equiv_stack when complete.
18406 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
18408         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18409         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
18410         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
18412 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
18414         PR target/65535
18415         * config.gcc: Exit with a comment when we do not have a major version
18416         number for the FreeBSD target.
18418 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18420         PR target/65689
18421         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
18422         maybe_allows_mem bitfields.
18423         (maybe_allows_none_start, maybe_allows_none_end,
18424         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
18425         maybe_allows_mem_end): New variables.
18426         (compute_maybe_allows): New function.
18427         (add_constraint): Use it to initialize maybe_allows_reg and
18428         maybe_allows_mem fields.
18429         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
18430         is_address constraints such that those that allow neither mem nor
18431         reg come first, then those that only allow reg but not mem, then
18432         those that only allow mem but not reg, then the rest.
18433         (write_allows_reg_mem_function): New function.
18434         (write_tm_preds_h): Call it.
18435         * stmt.c (parse_output_constraint, parse_input_constraint): Use
18436         the generated insn_extra_constraint_allows_reg_mem function
18437         instead of always setting *allows_reg = true; *allows_mem = true;
18438         for unknown extra constraints.
18440 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18442         PR target/65780
18443         * output.h (default_binds_local_p_3): New.
18444         * varasm.c (default_binds_local_p_3): Make it public.  Take an
18445         argument to indicate if common symbol may be local.  If common
18446         symbol may be local, treat non-external variable as defined
18447         locally.
18448         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
18449         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
18450         * config/i386/i386.c (ix86_binds_local_p): New.
18451         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
18452         ix86_binds_local_p.
18454 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18456         PR debug/65771
18457         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
18458         trying mem_loc_descriptor on XEXP (rtl, 0).
18460 2015-04-17  Martin Liska  <mliska@suse.cz>
18462         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
18463         Release symbol_compare_collection.
18464         * ipa-reference.c: Add TODO that a vector should be released.
18466 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
18468         PR target/65296
18469         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
18470         to new AVR-LibC file layout (bug #44574).
18471         (*avrlibc_devicelib): Same.
18472         * config/avr/avr-mcus.def: Adjust comments.
18473         * config/avr/avr.opt (nodevicelib): Adjust help.
18475 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
18477         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
18479 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
18481         PR c++/64527
18482         * gimplify.c (gimplify_init_constructor): Always emit a
18483         side-effecting constructor.
18485 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18487         PR tree-optimization/64950
18488         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
18489         in cfun->curr_properties.
18490         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
18491         if we generate an IFN_VA_ARG.
18492         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
18493         function if PROP_gimple_lva is not set in src function.
18495 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18496             Michael Matz  <matz@suse.de>
18498         PR tree-optimization/64950
18499         * gimple-iterator.c (update_modified_stmts): Remove static.
18500         * gimple-iterator.h (update_modified_stmts): Declare.
18501         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
18502         (gimplify_va_arg_internal): New function.
18503         (gimplify_va_arg_expr): Use IFN_VA_ARG.
18504         * gimplify.h (gimplify_va_arg_internal): Declare.
18505         * internal-fn.c (expand_VA_ARG): New unreachable function.
18506         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
18507         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
18508         (expand_ifn_va_arg): New function.
18509         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
18510         (pass_stdarg::execute): Call expand_ifn_va_arg.
18511         (pass_data_lower_vaarg): New pass_data.
18512         (pass_lower_vaarg): New gimple_opt_pass.
18513         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
18514         (make_pass_lower_vaarg): New function.
18515         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
18516         properties_required field.
18517         * passes.def (all_passes): Add pass_lower_vaarg.
18518         * tree-pass.h (PROP_gimple_lva): Add define.
18519         (make_pass_lower_vaarg): Declare.
18521 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18523         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
18524         * calls.c (call_expr_flags): Same.
18526 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18528         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
18529         (pass_stdarg::execute): ... here.
18531 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18532             Michael Matz  <matz@suse.de>
18534         * tree-cfg.c (make_blocks_1): Factor out of ...
18535         (make_blocks): ... here.
18536         (make_edges_bb): Factor out of ...
18537         (make_edges): ... here.
18538         (gimple_find_sub_bbs): New function.
18539         * tree-cfg.h (gimple_find_sub_bbs): Declare.
18541 2015-04-17  Tom de Vries  <tom@codesourcery.com>
18543         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
18545 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
18547         * asan.c (set_sanitized_sections): New function.
18548         (section_sanitized_p): Ditto.
18549         (asan_protect_global): Optionally sanitize user-defined
18550         sections.
18551         * asan.h (set_sanitized_sections): Declare new function.
18552         * common.opt (fsanitize-sections): New option.
18553         * doc/invoke.texi (-fsanitize-sections): Document new option.
18554         * opts-global.c (handle_common_deferred_options): Handle new
18555         option.
18557 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
18559         PR debug/65771
18560         * dwarf2out.c (loc_list_from_tree): Return NULL
18561         for DEBUG_EXPR_DECL.
18563 2015-04-17  Christian Bruel  <christian.bruel@st.com>
18565         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
18566         same attributes.
18568 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18570         * ira-color.c (setup_left_conflict_sizes_p): Do not process
18571         node itself when computing left conflict subnode size.
18573 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18575         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
18576         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
18577         *fop_<mode>_1_sse using enabled attribute.  Use
18578         register_mixssei387nonimm_operand operand 1 predicate. Change
18579         alternative 3 constraints from "x" to "v".
18581 2015-04-16  Richard Biener  <rguenther@suse.de>
18583         PR tree-optimization/65774
18584         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
18585         bit-value tracking on.
18587 2015-04-16  Richard Biener  <rguenther@suse.de>
18589         PR tree-optimization/64277
18590         * tree-vrp.c (check_array_ref): Fix anti-range handling,
18591         simplify upper bound handling.
18592         (search_for_addr_array): Simplify.
18593         (check_array_bounds): Handle ADDR_EXPRs here.
18594         (check_all_array_refs): Simplify.
18596 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
18598         * config/i386/i386.c (print_reg): Rewrite function.
18600 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18602         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
18603         Invert the condition.
18605 2015-04-16  Renlin Li  <renlin.li@arm.com>
18607         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
18608         simplifications for UNSIGNED_FLOAT.
18610 2015-04-16  Nick Clifton  <nickc@redhat.com>
18612         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
18613         MUL_UNINIT.
18614         (enum rl78_cpu_type): New.
18615         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
18616         (umulhi3_shift_virt): Remove m constraint from operand 1.
18617         (umulqihi3_virt): Likewise.
18618         * config/rl78/rl78.c (rl78_option_override): Add code to process
18619         -mcpu and -mmul options.
18620         (rl78_alloc_physical_registers): Add code to handle divhi and
18621         divsi valloc attributes.
18622         (set_origin): Likewise.
18623         * config/rl78/rl78.h (RL78_MUL_G14): Define.
18624         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
18625         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
18626         __RL78_Gxx__.
18627         (ASM_SPEC): Pass -mcpu on to assembler.
18628         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
18629         (mulqi3_rl78): Likewise.
18630         (mulhi3_g13): Likewise.
18631         (mulhi3): Generate the G13 or G14 versions of the insn directly.
18632         (mulsi3): Likewise.
18633         (mulhi3_g14): Add clobbers of AX and BC.
18634         (mulsi3_g14): Likewise.
18635         (mulsi3_g13): Likewise.
18636         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
18637         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
18638         * config/rl78/rl78.opt (mmul): Initialise value to
18639         RL78_MUL_UNINIT.
18640         (mcpu): New option.
18641         (m13, m14, mrl78): New option aliases.
18642         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
18643         (MULTILIB_DIRNAMES): Add g13 and g14.
18644         * doc/invoke.texi: Document -mcpu and -mmul options.
18646 2015-04-16  Richard Biener  <rguenther@suse.de>
18648         * tree-ssa-ccp.c (likely_value): See if we have operands that
18649         are marked as never simulate again and return CONSTANT in this
18650         case.
18651         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
18652         not have any operands that will be simulated again as
18653         not being simulated again.
18655 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
18657         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
18658         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
18659         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
18660         attribute.
18661         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
18662         enabled attribute.
18663         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
18664         *float<SWI48:mode><MODEF:mode>2_sse.
18665         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
18666         enabled attribute.
18667         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
18668         enabled attribute.
18670 2015-04-15  Tom de Vries  <tom@codesourcery.com>
18672         PR other/65487
18673         * function.c (push_dummy_function): New function.
18674         (init_dummy_function_start): Use push_dummy_function.
18675         (pop_dummy_function): New function.  Factored out of ...
18676         (expand_dummy_function_end): ... here.
18677         * function.h (push_dummy_function, pop_dummy_function): Declare.
18678         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
18679         pop_dummy_function.
18680         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
18682 2015-04-15  Jeff Law  <law@redhat.com>
18684         PR tree-optimization/47679
18685         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
18686         need for forward declaration in upcoming changes.
18687         (record_conditions, record_edge_info): Likewise.
18689         PR rtl-optimization/42522
18690         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
18691         SIGN_EXTRACT as a whole object rather than simplifying
18692         its operand.
18694 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
18696         PR ipa/65765
18697         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
18698         and GIMPLE_PREDICT use break instead of return true. For
18699         GIMPLE_EH_DISPATCH, compare dispatch region.
18701 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
18703         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
18704         details about the implementation.  Make clear preference for
18705         __atomic builtins.  Reduce possibility of future change.
18707 2015-04-15  Nick Clifton  <nickc@redhat.com>
18709         * config/rx/rx.opt (mallow-string-insns): New option.
18710         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
18711         builtin if string instructions are denied.
18712         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
18713         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
18714         appropriate.
18715         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
18716         * config/rx/rx.md (movstr): Enable pattern only if string
18717         instructions are allowed.
18718         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
18719         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
18720         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
18721         (MULTILIB_DIRNAMES): Add no-strings.
18722         * doc/invoke.texi: Document -mno-allow-string-insns.
18724 2015-04-15  Alan Modra  <amodra@gmail.com>
18726         PR target/65408
18727         PR target/58744
18728         PR middle-end/36043
18729         * calls.c (load_register_parameters): Don't load past end of
18730         mem unless suitably aligned.
18732 2015-04-15  Nick Clifton  <nickc@redhat.com>
18734         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
18735         decrement instruction as being frame related.
18736         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
18737         based addresses.
18738         If zero extending a function address enclose the operation in
18739         %code(...).
18740         (rl78_preferred_reload_class): New function.
18741         (TARGET_PREFERRED_RELOAD_CLASS): Define.
18742         * config/rl78/rl78.md: Remove useless constraints in expanders.
18743         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
18744         (mulhi3_rl78): Likewise.
18745         (mulhi3_g13): Likewise.
18746         (mulsi3_rl78): Likewise.
18747         (es_addr): Move to before the multiply patterns.
18749 2015-04-15  Alan Modra  <amodra@gmail.com>
18751         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
18752         and sequence_stack.  Add seq.
18753         (seq_stack): Delete.
18754         * function.c (prepare_function_start): Don't access x_last_insn.
18755         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
18756         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
18757         * emit_rtl.c (start_sequence, push_topmost_sequence,
18758         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
18759         sequence accessors.
18760         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
18761         remove_insn): Likewise.  Simplify.
18762         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
18763         and pop_topmost_sequence.
18764         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
18765         debug insns.
18766         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
18768 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
18770         PR target/65729
18771         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
18772         the assertiion.
18774 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18776         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
18777         (LEGACY_INT_REGNO_P): Ditto.
18778         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
18779         (ANY_MASK_REG_P): Remove.
18780         (BND_REG_P): Rename from ANY_BND_REG_P.
18781         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
18782         legacy integer registers.  Do not handle MMX_REG_P in a special way.
18783         Merge 64byte and 32byte SSE handling.
18785 2015-04-14  Nick Clifton  <nickc@redhat.com>
18787         * expr.c (expand_assignment): Force an address offset computation
18788         into a register before changing its mode.
18789         (expand_expr_real_1): Likewise.
18791 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
18793         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
18794         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
18795         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
18796         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
18797         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
18798         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
18799         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
18800         and __aarch64_vget_lane_any.
18802 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
18804         PR rtl-optimization/65761
18805         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
18806         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
18808 2015-04-14  Richard Biener  <rguenther@suse.de>
18810         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
18811         (graphite_can_represent_scev): Use POINTER_TYPE_P.
18813 2015-04-14  Richard Biener  <rguenther@suse.de>
18815         PR tree-optimization/65758
18816         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
18817         against -1.
18818         (ccp_lattice_meet): Likewise.
18819         (bit_value_unop): Likewise.
18820         (bit_value_binop): Likewise.
18821         (bit_value_assume_aligned): Likewise.
18823 2015-04-14  Christian Bruel  <christian.bruel@st.com>
18825         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
18826         function.
18828 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
18830         PR tree-optimization/63387
18831         * match.pd ((x unord x) | (y unord y) -> (x unord y),
18832         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
18834 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
18836         * config/i386/predicates.md (any_QIreg_operand): Rename from
18837         q_regs_operand.  Do not process subregs.
18838         (QIreg_operand): Use QI_REGNO_P predicate.
18839         (ext_QIreg_operand): Ditto.
18840         (ext_register_operand): Ditto.
18841         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
18842         (AND splitters): Ditto.
18843         (AND with -65536 splitter): Add SWI48 mode for operand 0.
18844         (AND with -256 splitter): Use any_QIreg_operand predicate and
18845         SWI248 mode for operand 0.
18846         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
18847         mode for operand 0.
18848         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
18850 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
18852         * doc/plugins.texi: Rewrite first introductory paragraph.
18854 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18856         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
18857         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
18859 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18861         * ipa-profie.c (ipa_profile): Check number of parameters
18862         and possible polymorphic call targets before
18863         devirtualizing.
18865 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
18867         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
18868         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
18870 2015-04-13  Richard Biener  <rguenther@suse.de>
18872         PR tree-optimization/65204
18873         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
18874         takens for bit-CCP.
18876 2015-04-13  Richard Biener  <rguenther@suse.de>
18878         PR target/65660
18879         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
18880         and cond_not_taken_branch_cost to 4 and 2.
18881         (bdver2_cost): Likewise.
18882         (bdver3_cost): Likewise.
18883         (bdver4_cost): Likewise.
18885 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18887         * hash-table.h (hash_table constructor): Add mem stats.
18888         (alloc_entries): Likewise.
18890 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18892         * ipa-cp.c (ipcp_driver): Relase prev_edge.
18893         * passes.c (execute_one_pass): Only add transform if pass has one.
18895 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
18897         * config/i386/i386.c (ix86_option_override_internal): Don't set
18898         -fprefetch-loop-arrays if optimizing for size.
18900 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
18901             Gerald Pfeifer  <gerald@pfeifer.com>
18903         * doc/contrib.texi (Contributors): Add Martin Jambor and
18904         Michael Matz.
18906 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
18908         * BASE-VER: Set to 6.0.0.
18910         PR tree-optimization/65747
18911         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
18912         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
18914 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
18916         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
18917         sentence.  Improve grammar.
18919 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
18921         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
18923 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
18925         PR ipa/65743
18926         * ipa-inline-transform.c (speculation_removed): Remove static var.
18927         (check_speculations): New function.
18928         (clone_inlined_nodes): Do not check spculations.
18929         (inline_call): Call check_speculations.
18930         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
18931         consider non-invariants.
18933 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
18934             Martin Liska  <mliska@suse.cz>
18936         PR ipa/65722
18937         * ipa-icf.c (sem_item::compare_cgraph_references): function and
18938         variable can not match.
18939         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
18940         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
18942 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
18944         PR tree-optimization/65735
18945         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
18946         Remove visited_phis argument, add visited_bbs, avoid recursing into the
18947         same bb rather than just into the same phi node.
18948         (thread_through_normal_block): Adjust caller.
18950 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
18952         * doc/contrib.texi (Contributors): Add Ira Rosen.
18954 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
18956         * gcov.c (find_source): Fix miswording in error message.
18957         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
18958         (ix86_expand_sse_comi_round): Fix typo in error message.
18960 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
18962         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
18964 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
18966         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
18968 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
18970         PR target/65710
18971         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
18972         Print bad_spills_num and insn_pseudos_num.
18974 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18976         PR target/65694
18977         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
18978         when creating +1 values for SImode.
18980 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
18982         PR target/65729
18983         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
18984         assert.
18986 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
18987             Iain Sandoe  <iain@codesourcery.com>
18989         PR target/65351
18990         * configure: Regenerate.
18992 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
18994         PR target/65671
18995         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
18997 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
18999         * doc/contrib.texi (Contributors): Add John Marino.
19001 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19003         PR tree-optimization/65709
19004         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
19005         TREE_TYPE (TREE_TYPE (t)).
19007 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
19009         PR target/65710
19010         * lra-int.h (lra_bad_spill_regno_start): New.
19011         * lra.c (lra_bad_spill_regno_start): New.
19012         (lra): Set up lra_bad_spill_regno_start.  Set up
19013         lra_constraint_new_regno_start unconditionally.
19014         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
19015         spill preferences.
19017 2015-04-09  Marek Polacek  <polacek@redhat.com>
19018             Jakub Jelinek  <jakub@redhat.com>
19020         PR middle-end/65554
19021         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
19022         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
19023         of STRIP_NOPS.
19025 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
19027         PR rtl-optimization/65693
19028         * combine.c (is_parallel_of_n_reg_sets): Move outside of
19029         #ifndef HAVE_cc0.
19031 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
19033         PR target/65296
19034         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
19035         device specs file if "device-specs%s" didn't resolve to a path.
19037 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19039         PR target/65676
19040         * config/i386/i386.c (fixup_modeless_constant): New.
19041         (ix86_expand_args_builtin): Fixup modeless constant operand.
19042         (ix86_expand_round_builtin): Ditto.
19043         (ix86_expand_special_args_builtin): Ditto.
19044         (ix86_expand_builtin): Ditto.
19046 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19048         PR target/65693
19049         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
19050         any pow2 integer in between 2 and 0x80000000U inclusive.
19052 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
19054         PR rtl-optimization/65693
19055         * combine.c (is_parallel_of_n_reg_sets): Change first argument
19056         from an rtx_insn * to an rtx.
19057         (try_combine): Adjust both callers.  Use it once more.
19059 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19061         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
19062         (chkp_make_static_const_bounds): Search existing
19063         symbol by assembler name.  Use make_decl_one_only.
19064         (chkp_get_zero_bounds_var): Remove node search which
19065         is now performed in chkp_make_static_const_bounds.
19066         (chkp_get_none_bounds_var): Likewise.
19068 2015-04-08  Michael Witten  <mfwitten@gmail.com>
19070         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
19071         to an example.
19073 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19075         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
19077 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
19079         * doc/extend.texi (__sync Builtins): Fix grammar.
19081 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19083         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
19085 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19087         * varasm.c (emit_local): Move definition of align.
19089 2015-04-08  Julian Brown  <julian@codesourcery.com>
19091         * config/nvptx/mkoffload.c (process): Support variable mapping.
19093 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
19095         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
19096         alpha_links **.
19097         (alpha_write_one_linkage): Correct typo.
19099 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19101         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
19103 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
19105         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
19107 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
19109         * tree-chkp.h (chkp_insert_retbnd_call): New.
19110         * tree-chkp.c (chkp_insert_retbnd_call): New.
19111         * ipa-split.c (insert_bndret_call_after): Remove.
19112         (split_function): Use chkp_insert_retbnd_call.
19113         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
19114         bounds for instrumented functions.
19116 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
19118         PR ipa/65540
19119         * calls.c (initialize_argument_information): When producing tail
19120         call also turn SSA_NAMES passed by references to original PARM_DECLs
19122 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
19124         PR target/65648
19125         * lra-remat.c (do_remat): Process input and non-input insn
19126         registers separately.
19128 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
19130         PR debug/65678
19131         * valtrack.c (debug_lowpart_subreg): New function.
19132         (dead_debug_insert_temp): Use it.
19134         PR middle-end/65680
19135         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
19136         into signed HOST_WIDE_INT the same as negative bit_offset.
19138 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
19140         * ipa-comdats.c (ipa_comdats): Visit all thunks
19141         to set proper comdat group.
19143 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19145         PR target/65489
19146         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
19147         on constants for NEON VSTRUCT modes.
19149 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
19150             Iain Sandoe  <iain@codesourcery.com>
19152         PR target/65351
19153         * configure: Regenerate.
19155 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19157         PR target/65614
19158         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
19159         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
19160         that LFD is used to load double constants instead of LFS.  Add
19161         defaults for all costs structures.  Add comments for missing
19162         initialization fields.
19163         (size32_cost): Likewise.
19164         (size64_cost): Likewise.
19165         (rs64a_cost): Likewise.
19166         (mpccore_cost): Likewise.
19167         (ppc403_cost): Likewise.
19168         (ppc405_cost): Likewise.
19169         (ppc440_cost): Likewise.
19170         (ppc476_cost): Likewise.
19171         (ppc601_cost): Likewise.
19172         (ppc603_cost): Likewise.
19173         (ppc604_cost): Likewise.
19174         (ppc604e_cost): Likewise.
19175         (ppc620_cost): Likewise.
19176         (ppc630_cost): Likewise.
19177         (ppccell_cost): Likewise.
19178         (ppc750_cost): Likewise.
19179         (ppc7450_cost): Likewise.
19180         (ppc8540_cost): Likewise.
19181         (ppce300c2c3_cost): Likewise.
19182         (ppce500mc_cost): Likewise.
19183         (ppce500mc64_cost): Likewise.
19184         (ppce5500_cost): Likewise.
19185         (ppce6500_cost): Likewise.
19186         (titan_cost): Likewise.
19187         (power4_cost): Likewise.
19188         (power6_cost): Likewise.
19189         (power7_cost): Likewise.
19190         (power8_cost): Likewise.
19191         (ppca2_cost): Likewise.
19192         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
19194         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
19195         instead of XXLOR to copy SFmode to clear out dirty bits created
19196         when SFmode denormals are generated.
19197         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
19198         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
19200 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
19202         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
19203         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
19204         * config/aarch64/aarch64-tune.md: Regenerate.
19206 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
19208         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
19209         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
19210         * config/arm/arm-cores.def (exynos-m1): New core.
19211         * config/arm/arm-tune.md: Regenerate.
19212         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
19213         * config/arm/bpabi.h: Likewise.
19215 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
19217         * ipa-cp (set_single_call_flag): Remove too
19218         restrictive assert.
19220 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
19222         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
19223         GOMP_offload_unregister from the destructor.
19225 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
19227         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
19228         flags for instrumentation thunk.
19229         (chkp_produce_thunks): Likewise.
19231 2015-04-05  Martin Liska  <mliska@suse.cz>
19233         PR ipa/65665
19234         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
19235         has computed data structure.
19236         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19238 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
19240         * invoke.texi (inline-unit-growth): Increase growth to 20%
19241         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
19243 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
19245         PR target/65647
19246         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
19247         value checking.
19248         (lra_rematerialization_iter): New.
19249         * lra.c (lra): Initialize lra_rematerialization_iter.
19250         Stop updating lra_constraint_new_regno_start after switching of
19251         inheritance and rematerialization.
19252         * lra-remat.c (lra_rematerialization_iter): New.
19253         (lra_remat): Add printing pass iteration.  Do rematerialization
19254         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
19256 2015-04-04  Richard Biener  <rguenther@suse.de>
19258         PR tree-optimization/64909
19259         PR tree-optimization/65660
19260         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
19261         to take a cost vector for scalar iteration cost.
19262         (vect_get_single_scalar_iteration_cost): Likewise.
19263         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
19264         Compute the scalar iteration cost into a cost vector.
19265         (vect_get_known_peeling_cost): Use the scalar cost vector to
19266         account for the cost of the peeled iterations.
19267         (vect_estimate_min_profitable_iters): Likewise.
19268         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19269         Likewise.
19271 2015-04-04  Alan Modra  <amodra@gmail.com>
19273         PR target/65576
19274         PR target/65240
19275         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
19276         0.0 constant unless TARGET_VSX.
19277         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
19278         alternative.
19280 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19282         PR ipa/65654
19283         * ipa-inline-transform.c (inline_call): Skip sanity check to work
19284         around the ICE
19286 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19288         PR ipa/65655
19289         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
19290         speculative indirect edges to avoid ordering issue.
19292 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
19294         PR ipa/65076
19295         * ipa-inline.c (edge_badness): Add combined size to the denominator.
19297 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
19299         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
19300         TYPE_ARTIFICIAL on the .omp_data* types.
19302 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19304         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
19305         instrumentation thunks.
19307 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19309         * config/i386/i386.c (ix86_expand_call): Avoid nested
19310         PARALLEL in returned call value.
19312 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19314         * lto-cgraph.c (input_cgraph_1): Always link instrumented
19315         assembler name with original one.
19317 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19319         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
19321 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19323         Revert parts of r216820.
19324         * config/i386/i386.md (movqi_internal): Correct type calculation
19325         for alternatives 3 and 5.
19327 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
19329         PR preprocessor/61977
19330         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
19331         predefine __vector/__bool/__pixel macros nor context sensitive
19332         macros for CLK_ASM.
19333         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
19335 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
19337         * config/pa/pa.c (pa_output_move_double): Directly handle register
19338         indexed memory operand.  Simplify handling of scaled register indexed
19339         memory operands.
19341 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19343         PR driver/65444
19344         * config/i386/linux-common.h (MPX_SPEC): New.
19345         (CHKP_SPEC): Add MPX_SPEC.
19346         * doc/invoke.texi (-fcheck-pointer-boudns): Document
19347         possible issues with '-z bndplt' support in linker.
19349 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
19351         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
19352         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
19353         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
19354         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
19355         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
19357 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
19359         * config/i386/sync.md (UNSPEC_MOVA): Remove.
19360         (atomic_load<mode>): Change operand 0 predicate to
19361         nonimmediate_operand and fix up the destination when needed.
19362         Use UNSPEC_LDA.
19363         (atomic_loaddi_fpu): Use UNSPEC_LDA.
19364         (atomic_store<mode>): Change operand 1 predicate to
19365         nonimmendate_operand and move the source to register when needed.
19366         Use UNSPEC_STA.
19367         (atomic_store<mode>_1): Use UNSPEC_STA.
19368         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
19369         Fix moves from memory operand.  Use UNSPEC_STA.
19371 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19373         * expmed.c (strict_volatile_bitfield_p): Check that the access will
19374         not cross a MODESIZE boundary.
19375         (store_bit_field, extract_bit_field): Added assertions in the
19376         strict volatile bitfields code path.
19378 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19380         PR target/65624
19381         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19382         Increase args array size by one to avoid buffer overflow.
19384 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19386         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19387         split_part.
19388         * ipa-inline.c (edge_badness): Add wrapper penalty.
19389         (sum_callers): Move up.
19390         (inline_small_functions): Set single_caller.
19391         * ipa-inline.h (inline_summary): Add single_caller.
19392         * ipa-split.c (split_function): Set split_part.
19393         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
19394         * cgraph.h (cgraph_node): Add split_part.
19396 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
19398         PR target/58945
19399         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
19400         Do not split operands 0 and operands 2 to halfmode.
19401         (atomic_compare_and_swap<mode>): Update for
19402         atomic_compare_and_swap<dwi>_doubleword changes.
19404 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
19406         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
19407         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
19408         no caching is done.
19410 2015-03-31  Martin Liska  <mliska@suse.cz>
19412         PR ipa/65557
19413         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
19414         has already filled up function summary.
19415         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
19417 2015-03-31  Richard Biener  <rguenther@suse.de>
19419         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
19420         of types.
19422 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19424         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
19425         nested functions.
19426         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
19427         (s390_asm_output_function_label): Adapt to new signature of
19428         s390_function_num_hotpatch_hw
19429         Optimise the code generating assembler output.
19430         Add comments to assembler file.
19432 2015-03-31  Richard Biener  <rguenther@suse.de>
19434         PR middle-end/65626
19435         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
19436         of the noreturn call so it is last and cleanup_control_flow_bb
19437         can do the CFG part.
19439 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
19441         PR target/65531
19442         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
19443         same_comdat_group for external symbols.
19444         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
19445         infinite same_comdat_group traversal loop.
19447 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
19449         PR plugins/61176
19450         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
19451         automatically to $headers.
19453 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
19455         PR ipa/65610
19456         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
19457         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
19458         function.
19459         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
19460         Use it.
19461         * ipa-prop.c (param_type_may_change_p): Likewise.
19462         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
19463         (remove_unused_scope_block_p): Add in_ctor_dtor_block
19464         argument.  Before inlining, preserve
19465         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
19466         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
19467         recursive calls.
19468         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
19470 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19472         PR ipa/65076
19473         * ipa-inline.c (edge_badness): Base denominator on callee's
19474         grwoth squared.
19476 2015-03-27  Martin Jambor  <mjambor@suse.cz>
19478         PR ipa/65478
19479         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
19480         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
19481         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
19482         node_calling_single_call.
19483         * ipa-cp.c (count_callers): New function.
19484         (set_single_call_flag): Likewise.
19485         (initialize_node_lattices): Count callers and set single_flag_call if
19486         necessary.
19487         (incorporate_penalties): New function.
19488         (good_cloning_opportunity_p): Use it, dump new flags.
19489         (propagate_constants_topo): Set node_within_scc flag if appropriate.
19490         * doc/invoke.texi (ipa-cp-recursion-penalty,
19491         ipa-cp-single-call-pentalty): Document.
19493 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19495         PR ipa/65588
19496         * symtab.c (symtab_node::get_partitioning_class): Register vars
19497         are duplicated.
19498         * varpool.c (symbol_table::output_variables) Do not assemble unefined
19499         decls for non-symbols.
19501 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19503         PR target/65248
19504         * output.h (default_binds_local_p_2): New.
19505         * varasm.c (default_binds_local_p_2): Renamed to ...
19506         (default_binds_local_p_3): This.  Don't return true on protected
19507         data symbol if protected data may be external.
19508         (default_binds_local_p): Use default_binds_local_p_3.
19509         (default_binds_local_p_1): Likewise.
19510         (default_binds_local_p_2): New.
19511         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
19512         default_binds_local_p_2 if TARGET_MACHO is undefined.
19514 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
19516         PR target/65593
19517         * config/i386/i386.c (legitimize_pic_address): If base
19518         is SYMBOL_REF or LABEL_REF using %rip addressing, force
19519         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
19521 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19523         PR target/65531
19524         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
19525         comdat groups.
19527 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
19529         PR ipa/65600
19530         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
19531         of optimized out indirect call.
19532         (redirect_to_unreachable): Always build symbol table node for
19533         BUILT_IN_UNREACHABLE
19535 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
19537         PR target/65407
19538         * ira-costs.c (record_reg_classes): Process all constraint string
19539         containing 0-9.
19541 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
19543         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
19544         memory_operand.
19546         PR target/65052
19547         * config/c6x/constraints.md (S3): New constraint.
19548         * config/c6x/c6x.md (real_jump): Use it.
19550 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19552         PR middle-end/65595
19553         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
19554         do redirection if the call is not optimized out.
19556 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19558         PR target/65495
19559         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
19560         (fchkp-check-incomplete-type): Add LTO.
19561         (fchkp-zero-input-bounds-for-main): Likewise.
19562         (fchkp-first-field-has-own-bounds): Likewise.
19563         (fchkp-narrow-bounds): Likewise.
19564         (fchkp-narrow-to-innermost-array): Likewise.
19565         (fchkp-use-static-bounds): Likewise.
19566         (fchkp-use-static-const-bounds): Likewise.
19567         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
19569 2015-03-27  Marek Polacek  <polacek@redhat.com>
19571         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
19573 2015-03-27  Marek Polacek  <polacek@redhat.com>
19575         PR sanitizer/65583
19576         * ubsan.c (ubsan_create_edge): New function.
19577         (instrument_bool_enum_load): Call it.
19578         (instrument_nonnull_arg): Likewise.
19579         (instrument_nonnull_return): Likewise.
19580         (instrument_object_size): Likewise.
19582 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19584         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
19585         auto_vec.
19587 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19589         PR lto/65536
19590         * lto-streamer.h (class lto_location_cache): New.
19591         (struct data_in): Add location_cache.
19592         (lto_input_location): Update prototype.
19593         (stream_input_location_now): New.
19594         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
19595         pointer to location.
19596         (stream_input_location): Update.
19597         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
19598         (warn_odr): Apply location cache before warning.
19599         (lto_input_location): Update prototype.
19600         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
19601         Use stream_input_location_now.
19602         * lto-streamer-in.c (lto_location_cache::current_cache): New static
19603         variable.
19604         (lto_location_cache::cmp_loc): New function.
19605         (lto_location_cache::apply_location_cache): New function.
19606         (lto_location_cache::accept_location_cache): New function.
19607         (lto_location_cache::revert_location_cache): New function.
19608         (lto_location_cache::input_location): New function.
19609         (lto_input_location): Do location caching.
19610         (stream_input_location_now): New function.
19611         (input_eh_region, input_struct_function_base): Use
19612         stream_input_location_now.
19613         (lto_data_in_create): use new.
19614         (lto_data_in_delete): Use delete.
19615         * tree-streamer-in.c (unpack_ts_block_value_fields,
19616         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
19617         lto_input_ts_exp_tree_pointers): Update for cached location api.
19619 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19621         PR ipa/65076
19622         * passes.def: Add pass_nothrow.
19623         * ipa-pure-const.c: (pass_data_nothrow): New.
19624         (pass_nothrow): New.
19625         (pass_nothrow::execute): New.
19626         (make_pass_nothrow): New.
19627         * tree-pass.h (make_pass_nothrow): Declare.
19629 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19631         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
19632         edge to change by speculation resolution or redirection.
19633         (edge_set_predicate): Likewise.
19634         (inline_summary_t::duplicate): Likewise.
19635         (remap_edge_summaries): Likewise.
19637 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19639         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
19640         New macros.
19641         (can_inline_edge_p): Relax option matching for always inline functions.
19643 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
19645         PR target/65561
19646         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
19647         Check operand 4 and operand 0 for equality.
19648         (avx512f_vextract<shuffletype>32x4_1_maskm):
19649         Check operand 6 and operand 0 for equality.
19650         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
19651         for equality.
19652         (vec_extract_hi_<mode>_maskm): Ditto.
19654 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19656         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
19657         dead calls back to live.
19658         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
19659         cross check to ...
19660         (cgraph_node::verify_node): ... here; verify only callee edges,
19661         not caller.
19662         * cif-code.def (CILK_SPAWN): New code.
19664 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
19666         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
19667         (edge_set_predicate): Use it to mark unreachable edges.
19668         (inline_summary_t::duplicate): Remove unnecesary code.
19669         (remap_edge_summaries): Likewise.
19670         (dump_inline_summary): Report contains_cilk_spawn.
19671         (compute_inline_parameters): Compute contains_cilk_spawn.
19672         (inline_read_section, inline_write_summary): Stream
19673         contains_cilk_spawn.
19674         * ipa-inline.c (can_inline_edge_p): Do not touch
19675         DECL_STRUCT_FUNCTION that may not be available;
19676         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
19677         remove check for callee_fun->can_throw_non_call_exceptions and
19678         replace it by optimization attribute check; check for flag_exceptions.
19679         * ipa-inline-transform.c (inline_call): Maintain
19680         DECL_FUNCTION_PERSONALITY
19681         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
19683 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19685         PR tree-optimization/65551
19686         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
19687         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
19689 2015-03-26  Richard Biener  <rguenther@suse.de>
19691         PR middle-end/65555
19692         * tree-cfg.c (verify_gimple_call): Do not require a call to
19693         have no LHS if it wasn't recognized as control altering yet.
19695 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
19697         PR tree-optimization/64715
19698         * passes.def: Add another instance of pass_object_sizes before ccp1.
19699         * tree-object-size.c (pass_object_sizes::execute): In
19700         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
19701         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
19702         __bos result and the computed constant.  Remove redundant
19703         checks, obsoleted by gimple_call_builtin_p test.
19705         * var-tracking.c (variable_tracking_main_1): Don't track
19706         variables for targetm.no_register_allocation targets.
19708 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
19710         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
19711         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
19713 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19715         PR target/65569
19716         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
19717         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
19718         0.0 is correctly setup.
19719         (extenddftf2_internal): Likewise.
19721 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
19723         PR tree-optimization/65177
19724         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
19725         (bb_in_bbs): New.
19726         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
19727         edges not adjacent on the path to the original code.
19729 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
19731         PR bootstrap/65537
19732         * doc/install.texi (Building a native compiler): Document new
19733         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
19734         configuration assumes that the host supports the linker plugin.
19736 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
19738         PR target/65508
19739         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
19740         chain for generated call.
19742 2015-03-25  Richard Biener  <rguenther@suse.de>
19744         * passes.c (pass_manager::execute_early_local_passes): Guard
19745         execution of pass_chkp_instrumentation_passes with
19746         flag_check_pointer_bounds.
19747         (pass_chkp_instrumentation_passes::gate): Likewise.
19749 2015-03-25  Martin Liska  <mliska@suse.cz>
19751         PR tree-optimization/65538
19752         * symbol-summary.h (function_summary::~function_summary):
19753         Relese memory for allocated summaries.
19754         (function_summary::release): New function.
19756 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
19758         PR lto/65515
19759         * lto-streamer-out.c (DFS::worklist): New struct.
19760         (DFS::worklist_vec): New data member.
19761         (DFS::next_dfs_num): Remove.
19762         (DFS::DFS): Rewritten using worklist instead of recursion,
19763         using most of code from DFS::DFS_write_tree.
19764         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
19765         pass it to DFS_write_tree calls.
19766         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
19767         quick initial checks push it into worklist_vec and return.
19769 2015-03-25  Richard Biener  <rguenther@suse.de>
19771         PR middle-end/65519
19772         * genmatch.c (expr::gen_transform): Re-write to avoid
19773         using gimple_build.
19775 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19777         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
19779 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
19781         * config/arm/arm.opt (print_tune_info): New option.
19782         * config/arm/arm.c (arm_print_tune_info): New function.
19783         (arm_file_start): Call arm_print_tune_info.
19784         * config/arm/arm-protos.h (struct tune_params): Add comment.
19785         * doc/invoke.texi (@item -mprint-tune-info): New item.
19786         (-mtune): mention it in ARM Option Summary.
19788 2015-03-25  DJ Delorie  <dj@redhat.com>
19790         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
19791         correct clause.
19793 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
19794             Martin Liska  <mliska@suse.cz>
19796         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
19797         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
19798         (sem_item::add_type): New function.
19799         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
19800         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
19801         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
19802         (sem_function::equals_wpa): Fix typo.
19803         * ipa-icf.h (sem_item::add_type): New function.
19804         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
19805         order.
19807 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
19809         PR tree-optimization/65533
19810         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
19811         with swapped operands, call vect_free_slp_tree on
19812         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
19813         vector.
19815 2015-03-24  Richard Biener  <rguenther@suse.de>
19817         PR middle-end/65517
19818         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
19819         for fixup if necessary.
19821 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
19823         * doc/extend.texi (Function Attributes): Add @cindex entries
19824         for all attributes and regularize their format.  Delete text
19825         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
19826         information about "eightbit_data", "tiny_data", and "model"
19827         variable attributes to the Variable Attributes section.  Fix
19828         some obvious typos and copy-editing issues.
19829         (Variable Attributes, Type Attributes): Likewise add/fix
19830         @cindex entries for all attributes.
19832 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
19834         PR target/65523
19835         * tree-chkp.c (chkp_build_returned_bound): Ignore
19836         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
19838 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
19840         PR target/65505
19841         * config/sh/predicates.md (simple_mem_operand,
19842         displacement_mem_operand): Add test for reg.
19843         (short_displacement_mem_operand): Test for displacement_mem_operand
19844         before invoking sh_disp_addr_displacement.
19845         * config/sh/constraints.md (Sdd, Sra): Simplify.
19846         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
19847         Remove redundant displacement_mem_operand tests.
19849 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
19851         PR target/65296
19852         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
19853         the same -mmcu=MCU more than once.
19855 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
19857         PR bootstrap/65522
19858         * ipa-devirt.c: Remove duplicate demangle.h include.
19860         PR target/65504
19861         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
19862         on the pseudo.
19863         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
19864         REG_POINTER on *destptr after adjusting it for prologue size.
19866         PR ipa/65521
19867         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
19868         ultimate_alias_target ()->order ints instead of
19869         ultimate_alias_target () pointers.
19871 2015-03-23  Richard Biener  <rguenther@suse.de>
19873         PR tree-optimization/65518
19874         * tree-vect-stmts.c (vectorizable_load): Reject single-element
19875         interleaving cases we generate absymal code for.
19877 2015-03-23  Richard Biener  <rguenther@suse.de>
19879         PR tree-optimization/65494
19880         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
19881         matches here.
19882         (vect_analyze_slp_instance): But do that here, always and once.
19884 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19886         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
19887         adding T or multiplying by T+1 and subracting T.
19889 2015-03-22  Jeff Law  <law@redhat.com>
19891         PR rtl-optimization/64317
19892         * Makefile.in (OBJS): Add gcse-common.c
19893         * gcse.c: Include gcse-common.h
19894         (struct modify_pair_s): Move structure definition to gcse-common.h
19895         (compute_transp): Move function to gcse-common.c.
19896         (canon_list_insert): Similarly.
19897         (record_last_mem_set_info): Break out some code and put it into
19898         gcse-common.c.  Call into the new common code.
19899         (compute_local_properties): Pass additional arguments to compute_transp.
19900         * postreload-gcse.c: Include gcse-common.h and df.h
19901         (modify_mem_list_set, blocks_with_calls): New variables.
19902         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
19903         (get_bb_avail_insn): Pass in the expression index too.
19904         (alloc_mem): Allocate memory for the new bitmaps and lists.
19905         (free_mem): Free memory for the new bitmaps and lists.
19906         (insert_expr_in_table): Record a bitmap index for each entry we
19907         add to the table.
19908         (record_last_mem_set_info): Call into common code in gcse-common.c.
19909         (get_bb_avail_insn): If no available insn was found in the requested
19910         BB.  If BB has a single predecessor, see if the expression is
19911         transparent in BB and available in that single predecessor.
19912         (compute_expr_transp): New wrapper for compute_transp.
19913         (eliminate_partially_redundant_load): Pass expression's bitmap_index
19914         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
19915         (gcse_after_reload_main): If there are elements in the hash table,
19916         then compute transparency for all the elements in the hash table.
19917         * gcse-common.h: New file.
19918         * gcse-common.c: New file.
19920 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
19922         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
19923         as an adjective.
19924         (System Headers): Likewise.
19925         (Ifdef): Likewise.
19926         (Traditional macros): Likewise.
19927         (Invocation): Likewise.
19928         (Option Index): Likewise.
19929         * doc/cppopts.texi (-M): Likewise.
19930         (-finput-charset): Likewise.
19931         (--help): Likewise.
19932         * doc.invoke.texi (AVR Options): Likewise.
19933         (V850 Options): Likewise.
19935 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
19937         PR ipa/65475
19938         * ipa-devirt.c: Include demangle.h
19939         (odr_type_d): Add field rtti_broken.
19940         (odr_subtypes_equivalent_p): Do not require name to match.
19941         (compare_virtual_tables): Fix typo; if type already has ODR violation,
19942         bypass the tests; be ready for function referneces in vtables that are
19943         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
19944         (warn_odr): Give up for nameless types.
19945         (warn_types_mismatch): Report mismatch in mangled names;
19946         report mismatch in anonymous namespaces; look into component types to
19947         give useful error; report when mismatch is dragged in from other ODR
19948         type.
19949         (odr_types_equivalent_p): Match types for being polymorphic; avoid
19950         duplicated diagnostics.
19951         (add_type_duplicate): Reorder checks so more informative ones come
19952         first; fix typo; do not output "the extra base is defined here" when
19953         we did not warn.
19954         (BINFO_N_BASE_BINFOS): Relax sanity check.
19956 2015-03-22  Martin Liska  <mliska@suse.cz>
19957             Jakub Jelinek  <jakub@redhat.com>
19959         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
19960         masks that can potentially include a builtin.
19961         (ix86_add_new_builtins): Introduce fast filter for isa values
19962         that cannot trigger builtin inclusion.
19964 2015-03-22  Martin Liska  <mliska@suse.cz>
19966         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
19967         (sem_item::update_hash_by_local_refs): Likewise.
19968         (sem_variable::get_hash): Empty line is fixed.
19969         (sem_item_optimizer::execute): Include adding of hash references.
19970         (sem_item_optimizer::update_hash_by_addr_refs): New function.
19971         (sem_item_optimizer::build_hash_based_classes): Use local hash.
19972         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
19973         (sem_item::update_hash_by_local_refs): Likewise.
19975 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
19977         PR ipa/65502
19978         * ipa-comdats.c (enqueue_references): Walk through thunks.
19979         (ipa_comdats): Likewise.
19980         (set_comdat_group_1): New function.
19982 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
19984         PR ipa/65475
19985         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
19986         non-polymorphic
19988 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
19989             Gerald Pfeifer  <gerald@pfeifer.com>
19991         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
19993 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
19994             Sandra Loosemore  <sandra@codesourcery.com>
19996         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
19997         function parameter declaration.
19998         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
19999         Update arguments to nios2_adjust_call_address().
20000         (sibcall_internal): Rename from *sibcall.
20001         (sibcall_value_internal): Rename from *sibcall_value.
20002         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
20003         (nios2_large_got_address): Add target temp reg parameter.
20004         (nios2_got_address): Adjust call to nios2_large_got_address, add
20005         force_reg around it.
20006         (nios2_load_pic_address): Add target temp reg parameter, replace call
20007         to nios2_got_address with corresponding code.
20008         (nios2_legitimize_constant_address): Update call to
20009         nios2_load_pic_address.
20010         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
20011         to use temp reg for PIC loading purposes.
20012         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
20013         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20014         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
20016 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20018         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
20019         usage of "the @option{...}".
20020         (-Wopenmp-simd): Likewise.
20021         (-fsanitize-recover): Likewise.
20022         (-fsanitize-undefined-trap-on-error): Likewise.
20023         (-flto): Likewise.
20024         (tracer-dynamic-coverage-feedback): Likewise.
20025         (reorder-block-duplicate-feedback): Likewise.
20026         (loop-unroll-jam-size): Likewise.
20027         (-B): Likewise.
20028         (-I-): Likewise.
20029         (-mabs=legacy): Likewise.
20030         (-mupper-regs-df): Likewise.
20031         (-mupper-regs-sf): Likewise.
20032         (-mpointers-to-nested-functions): Likewise.
20034 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20036         * doc/extend.texi (Cilk Plus Builtins): Add markup.
20038 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20040         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
20041         additional index entries and cross-references.
20042         (-fchkp-check-incomplete-type): Likewise.
20043         (-fchkp-first-field-has-own-bounds): Likewise.
20044         (-fchkp-narrow-to-innermost-array): Likewise.
20045         (-fchkp-use-fast-string-functions): Likewise.
20046         (-fchkp-use-nochk-string-functions): Likewise.
20047         (-fchkp-use-static-const-bounds): Likewise.
20048         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20049         (-fchkp-instrument-marked-only): Likewise.
20050         (-fchkp-use-wrappers): Likewise.
20051         (-static-libmpx): Likewise.
20052         (-static-libmpxwrappers): Likewise.
20053         * doc/extend.texi (bnd_legacy): Likewise.
20054         (bnd_instrument): Likewise.
20055         (bnd_variable_size): Likewise.
20056         (Pointer Bounds Checker builtins): Likewise.
20058 2015-03-21  Tom de Vries  <tom@codesourcery.com>
20060         PR tree-optimization/65458
20061         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
20062         * cgraph.h (cgraph_node): Add parallelized_function field.
20063         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
20064         (input_overwrite_node): Read parallelized_function field.
20065         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
20066         parallelized_function on cgraph_node for child_fn.
20067         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
20068         Remove include of gt-tree-parloops.h.
20069         (parallelized_functions): Remove static variable.
20070         (parallelized_function_p): Rewrite using parallelized_function field of
20071         cgraph_node.
20072         (create_loop_fn): Remove adding to parallelized_functions.
20073         * Makefile.in (GTFILES): Remove tree-parloops.c
20075 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
20077         PR rtl-optimization/64366
20078         * lra.c (lra_update_insn_regno_info): Consider regs in
20079         CALL_INSN_FUNCTION_USAGE memory.
20081 2015-03-20  Richard Biener  <rguenther@suse.de>
20083         PR middle-end/64715
20084         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
20085         for type comparison and gcc_checking_assert.
20086         (chrec_fold_plus_poly_poly): Likewise.
20087         (chrec_fold_multiply_poly_poly): Likewise.
20088         (chrec_convert_1): Likewise.
20089         * gimplify.c (gimplify_expr): Remove premature folding of
20090         &X + CST to &MEM[&X, CST].
20092 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20094         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
20095         already is final.
20096         (ipa_inline): Recompute inline_failed codes.
20097         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20098         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
20099         CIF_FINAL_ERROR.
20101 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
20103         PR rtl-optimization/60851
20104         * recog.c (constrain_operands): Accept a pseudo register before reload
20105         for LRA enabled targets.
20107 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20109         PR target/65240
20110         * config/rs6000/predicates.md (easy_fp_constant): Remove special
20111         -ffast-math handling that kept non-0 constants live in the RTL
20112         until reload.  Remove logic testing the number of instructions it
20113         took to create a constant in a GPR that was never used, due to a
20114         test for soft-float earlier.
20115         (memory_fp_constant): Delete, no longer used.
20117         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
20118         alternatives for loading non-0 constants into GPRs for hard
20119         floating point that is no longer needed due to changes in
20120         easy_fp_constant.  Add support for loading 0.0 into GPRs.
20121         (mov<mode>_hardfloat32): Likewise.
20122         (mov<mode>_hardfloat64): Likewise.
20123         (mov<mode>_64bit_dm): Likewise.
20124         (movtd_64bit_nodm): Likewise.
20125         (pre-reload move FP constant define_split): Delete define_split,
20126         since it is no longer used.
20127         (extenddftf2_internal): Remove GHF constraints that are not valid
20128         for extenddftf2.
20130 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
20132         PR rtl-optimization/63491
20133         * lra-constraints.c (check_and_process_move): Use src instead of
20134         sreg.  Remove some dead code.
20136 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
20138         PR ipa/65380
20139         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
20140         (sem_variable::merge): Likewise.
20142 2015-03-19  Martin Liska  <mliska@suse.cz>
20144         PR ipa/65465
20145         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
20146         all fields of cgraph_thunk_info.
20148 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20150         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
20151         clone instrumented thunks.
20153 2015-03-19  Richard Biener  <rguenther@suse.de>
20155         Revert
20156         2015-03-10  Richard Biener  <rguenther@suse.de>
20158         PR middle-end/63155
20159         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20160         * tree-ssa-coalesce.c: Include timevar.h.
20161         (attempt_coalesce): Handle graph being NULL.
20162         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20163         Split out abnormal coalescing to ...
20164         (perform_abnormal_coalescing): ... this function.
20165         (coalesce_ssa_name): Perform abnormal coalescing without computing
20166         live/conflict.
20167         (verify_ssa_coalescing_worker): New function.
20168         (verify_ssa_coalescing): Likewise.
20170 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20171             Jakub Jelinek  <jakub@redhat.com>
20173         PR sanitizer/65400
20174         * tsan.c (instrument_gimple): Clear tail call flag on
20175         calls.
20177 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
20179         PR sanitizer/65400
20180         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
20181         call in the return bb.
20182         (find_split_points): Add RETURN_BB argument, don't call
20183         find_return_bb.
20184         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
20185         if true append TSAN_FUNC_EXIT internal call after the call to
20186         the split off function.
20187         (execute_split_functions): Call find_return_bb here.
20188         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
20189         Adjust find_split_points and split_function calls.
20191 2015-03-18  DJ Delorie  <dj@redhat.com>
20193         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
20194         (iorqi3_virt): Likewise.
20196 2015-03-18  Tom de Vries  <tom@codesourcery.com>
20198         * tree-parloops.c (parallelize_loops): Make static.
20199         * tree-parloops.h (parallelize_loops): Remove extern declaration.
20201 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
20203         PR middle-end/64491
20204         Revert:
20205         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
20207         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
20208         condition would be removed due to undefined behaviour.
20210 2015-03-18  Martin Liska  <mliska@suse.cz>
20212         PR ipa/65432
20213         * cgraph.c (cgraph_node::get_create): Remove unnecessary
20214         xstrdup_for_dump wrapper.
20215         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
20216         sem_item::name.
20217         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
20218         with xstrdup_for_dump.
20219         (sem_variable::equals): Likewise.
20220         (sem_item_optimizer::read_section): Use symtab_node::name instead of
20221         sem_item::name.
20222         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
20223         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
20224         symtab_node::asm_name with xstrdup_for_dump.
20225         (congruence_class::dump): Use symtab_node::name instead of
20226         sem_item::name.
20227         * ipa-icf.h (symtab_node::name): Remove.
20228         (symtab_node::asm_name): Likewise.
20230 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20232         PR tree-optimization/65450
20233         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
20234         function.
20235         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
20236         it instead of duplicate_ssa_name_ptr_info.
20238         PR target/65222
20239         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
20241 2015-03-18  Richard Biener  <rguenther@suse.de>
20243         * tree-data-ref.h (struct access_matrix): Remove.
20244         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
20245         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
20246         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
20247         (am_vector_index_for_loop): Likewise.
20248         (struct data_reference): Remove access_matrix member.
20249         (DR_ACCESS_MATRIX): Remove.
20250         (lambda_vector_new): Add comment.
20251         (lambda_matrix_new): Use XOBNEWVEC.
20253 2015-03-18  Richard Biener  <rguenther@suse.de>
20255         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
20256         (pass_ch::execute): Cleanup the CFG only if we did sth.
20257         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
20259 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20261         * expmed.c (synth_mult): Use std::swap instead of manually
20262         swapping algorithms.
20264 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
20266         PR target/65078
20267         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
20269 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
20271         PR target/65296
20272         * config/avr/avr.opt (-nodevicelib): New option.
20273         * doc/invoke.texi (AVR Options): Document it.
20274         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
20275         libgcc.a, libc.a, libm.a.
20276         * config/avr/specs.h: Same.
20277         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
20278         which don't (directly) depend on the device.  Print more help.
20279         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
20280         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
20281         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
20282         case of an error.
20283         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
20284         for specs file name.
20285         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
20286         * config/avr/avr-mcus.def: Adjust initializers and comments.
20288 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
20290         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
20291         DECL_ONE_ONLY to check if decl is one only.
20292         * ipa-split.c (consider_split): Limit splitt of one only functions.
20294 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20296         PR tree-optimization/65427
20297         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
20298         functions.
20299         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
20301 2015-03-16  Marek Polacek  <polacek@redhat.com>
20303         * cgraph.h (add_new_static_var): Remove declaration.
20304         * varpool.c (add_new_static_var): Remove function.
20306 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
20308         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
20309         instead of vec<tree> * with vec_alloc and release for args.
20310         Adjust all users.
20312         PR middle-end/65431
20313         * omp-low.c (delete_omp_context): Only splay_tree_delete
20314         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
20315         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
20317 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20319         PR sanitizer/64820
20320         * cfgexpand.c (align_base): New function.
20321         (alloc_stack_frame_space): Call it.
20322         (expand_stack_vars): Align prev_frame to be sure
20323         data->asan_vec elements aligned properly.
20325 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
20327         PR middle-end/65409
20328         * expr.c (store_field): Do not do a direct block copy if the source is
20329         a PARALLEL with BLKmode.
20331 2015-03-16  Tom de Vries  <tom@codesourcery.com>
20333         PR middle-end/65414
20334         Revert:
20335         2015-03-12  Tom de Vries  <tom@codesourcery.com>
20337         PR rtl-optimization/64895
20338         * lra-lives.c (check_pseudos_live_through_calls): Use
20339         actual_call_used_reg_set instead of call_used_reg_set, if available.
20341 2015-03-16  Alan Modra  <amodra@gmail.com>
20343         PR target/63150
20344         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
20345         Modify Z->r bswapdi splitter to use dest in place of scratch.
20346         In r->Z and Z->r bswapdi splitter rename word_high, word_low
20347         to word1, word2 and rearrange logic to suit.
20348         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
20349         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
20350         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
20351         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
20352         early clobber.
20354 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
20356         PR tree-optimization/65369
20357         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
20358         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
20359         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
20361         PR tree-optimization/65418
20362         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
20363         are casts in the first PLUS_EXPR operand, ensure tbias and
20364         *totallowp are in the inner type.
20366         PR rtl-optimization/65401
20367         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
20368         argument.  If true, adjust_address_nv of x with big-endian
20369         correction for the mode widening to GET_MODE (y).
20370         (make_field_assignment): Don't do MEM mode widening here.
20371         Use MEM_P instead of GET_CODE == MEM.
20373 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
20375         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
20376         the external decls.
20378 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20380         PR target/64600
20381         * config/arm/arm.c (arm_gen_constant, AND case): Use
20382         ARM_SIGN_EXTEND when constructing AND mask.
20384 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20386         * graph.c (print_graph_cfg): Make function names visible and append
20387         parenthesis to it.  Also make groups of basic blocks belonging to the
20388         same function visible.
20390 2015-03-12  Richard Biener  <rguenther@suse.de>
20392         PR middle-end/44563
20393         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
20394         to avoid quadratic behavior with inline expansion splitting blocks.
20395         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
20396         with the successor if the predecessor will be merged with it.
20397         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
20398         entry block with its successor.
20400 2015-03-13  Richard Biener  <rguenther@suse.de>
20402         PR middle-end/44563
20403         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
20404         (cleanup_tree_cfg_1): Do not call it.
20405         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
20406         (fixup_noreturn_call): Mark the stmt as control altering.
20407         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
20408         here.
20409         (pass_data_fixup_cfg): Produce a dump file.
20410         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
20411         (need_noreturn_fixup): New global.
20412         (pass_dominator::execute): Fixup queued noreturn calls.
20413         (optimize_stmt): Queue calls that became noreturn for fixup.
20414         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
20415         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
20416         (el_to_fixup): New global.
20417         (eliminate_dom_walker::before_dom_childre): Queue calls that
20418         became noreturn for fixup.
20419         (eliminate): Fixup queued noreturn calls.
20420         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
20421         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
20422         (substitute_and_fold_dom_walker::before_dom_children): Queue
20423         alls that became noreturn for fixup.
20424         (substitute_and_fold): Fixup queued noreturn calls.
20426 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
20428         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
20429         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
20430         are building; for methods check ODR type of class they belong to if
20431         they may lead to a polymorphic call.
20432         (sem_function::compare_polymorphic_p): Be bit smarter about testing
20433         when function may lead to a polymorphic call.
20434         (sem_function::compare_type_list): Remove.
20435         (sem_variable::equals): Update use of compatible_types_p.
20436         (sem_variable::parse_tree_refs): Remove.
20437         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
20438         cdtor.
20439         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
20440         matching here.
20441         (func_checker::compatible_polymorphic_types_p): Break out from ...
20442         (unc_checker::compatible_types_p): ... here.
20443         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
20444         Declare.
20445         (unc_checker::compatible_types_p): Update.
20446         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
20447         Remove.
20449 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20451         PR rtl-optimization/65235
20452         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
20453         When first element of vec_concat is const_int, calculate its size
20454         using second element.
20456 2015-03-12  Richard Biener  <rguenther@suse.de>
20458         PR middle-end/65270
20459         * fold-const.c (operand_equal_p): Fix ordering of resetting
20460         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
20462 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20464         * config/s390/s390.c (s390_reorg): Move code to output nops after label
20465         to s390_reorg ().
20466         (s390_asm_output_function_label): Likewise.
20467         * config/s390/s390.c (s390_asm_output_function_label):
20468         Fix function label alignment with -mhtopatch.
20469         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
20470         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
20471         ("nop_2_byte"): New define_insn.
20472         ("nop_4_byte"): Likewise.
20473         ("nop_6_byte"): Likewise.
20474         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
20475         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
20477 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20479         PR target/65103
20480         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
20481         register.
20483 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
20485         PR target/65044
20486         * toplev.c (process_options): Restrict Pointer Bounds Checker
20487         usage with Address Sanitizer.
20489 2015-03-12  Richard Biener  <rguenther@suse.de>
20491         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
20492         to split on.
20493         * omp-low.c (expand_omp_taskreg): Split block before removing
20494         the stmt.
20495         (expand_omp_target): Likewise.
20496         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
20497         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
20498         stmt to split_block.
20500 2015-03-12  Tom de Vries  <tom@codesourcery.com>
20502         PR rtl-optimization/64895
20503         * lra-lives.c (check_pseudos_live_through_calls): Use
20504         actual_call_used_reg_set instead of call_used_reg_set, if available.
20506 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20508         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
20509         (cgraph_node::remove): Likewise.
20510         (cgraph_node::get_untransformed_body): Likewise.
20511         * varpool.c (varpool_node::remove): Likewise.
20512         (varpool_node::get_constructor): Add sanity check.
20514 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
20516         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
20517         old GCC versions.
20518         (-fabi-compat-version): Likewise.
20519         (-ffriend-injection): Likewise.
20520         (-Wdeclaration-after-statement): Likewise.
20521         (-fomit-frame-pointer): Likewise.
20522         (-ftree-coalesce-inlined-vars): Likewise.
20523         (-fvisibility=): Likewise.
20524         * doc/extend.texi (Typeof): Likewise.
20525         (Zero Length): Likewise.
20526         (Escaped Newlines): Likewise.
20527         (Compound Literals): Likewise.
20528         (Function Attributes): Likewise.
20529         (Label Attributes): Likewise.
20530         (Type Attributes): Likewise.
20531         (Function Names): Likewise.
20532         (Other Builtins): Likewise.
20533         (Function Specific Option Pragmas): Likewise.
20534         (C++ Interface): Likewise.
20536 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
20538         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
20540 2015-03-11  Marek Polacek  <polacek@redhat.com>
20542         PR tree-optimization/65388
20543         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
20545 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20547         PR target/65296
20548         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
20549         * configure: Regenerate.
20550         * config.in: Regenerate.
20551         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
20552         [-mn-flash]: Document it.
20553         [__AVR_ARCH__]: Document avrtiny.
20555         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
20556         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
20557         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
20559 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20561         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
20563 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20565         PR target/65242
20566         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
20567         allow reloads of PLUS in floating point/VSX registers.
20569 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
20571         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
20572         crypto_sha256_fast.
20573         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
20575 2015-03-11  Richard Biener  <rguenther@suse.de>
20577         PR tree-optimization/65310
20578         * tree-sra.c (build_ref_for_offset): Also preserve larger
20579         alignment.
20581 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
20583         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
20585 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20587         PR target/65368
20588         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
20589         new define_expand.
20590         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
20592 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20594         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
20595         (sem_function::equals_wpa): ... here.
20597 2015-03-10  Marek Polacek  <polacek@redhat.com>
20598             Jakub Jelinek  <jakub@redhat.com>
20600         PR sanitizer/65367
20601         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
20602         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
20603         separately.
20605 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20607         PR target/65286
20608         * config/rs6000/t-linux: For powerpc64* target set
20609         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
20611 2015-03-10  Richard Biener  <rguenther@suse.de>
20613         PR middle-end/44563
20614         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
20615         for redirect_all_calls.
20617 2015-03-10  Marek Polacek  <polacek@redhat.com>
20619         * gdbinit.in (pcfun): Define and document.
20621 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
20623         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
20624         of libgomp-plugin.h.
20625         (find_target_compiler): Support a case when the path to gcc is
20626         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
20627         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
20628         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
20629         libgomp-plugin.h.
20630         (main): Use GCC_INSTALL_NAME as target_driver_name.
20631         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
20632         define.
20633         (mkoffload.o): Remove obsolete include path and defines.
20634         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
20636 2015-03-10  Richard Biener  <rguenther@suse.de>
20638         PR middle-end/63155
20639         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
20640         * tree-ssa-coalesce.c: Include timevar.h.
20641         (attempt_coalesce): Handle graph being NULL.
20642         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
20643         Split out abnormal coalescing to ...
20644         (perform_abnormal_coalescing): ... this function.
20645         (coalesce_ssa_name): Perform abnormal coalescing without computing
20646         live/conflict.
20647         (verify_ssa_coalescing_worker): New function.
20648         (verify_ssa_coalescing): Likewise.
20650 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
20652         PR target/65296
20653         * config.gcc (extra_options) [avr]: Remove.
20654         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
20655         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
20656         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
20658         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
20659         (-mmcu=): Add Var and MissingArgError properties.
20660         (-march=): Remove.
20661         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
20662         * config/avr/t-multilib: Regenerate.
20663         * config/avr/specs.h: New file.
20664         * config/avr/driver-avr.c: New file.
20665         * config/avr/genopt.sh: Remove file.
20666         * config/avr/avr-tables.opt: Remove file.
20667         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
20668         * config/avr/avr-c.c: Same.
20669         * avr-arch.h: Same.
20670         (avr_current_device): Remove proto.
20671         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
20672         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
20673         (EXTRA_SPEC_FUNCTIONS): Define.
20674         (avr_devicespecs_file): New specs function proto.
20675         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
20676         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
20677         (avr_current_device): Remove definition and usage.
20678         (avr_set_core_architecture): New static function.
20679         (avr_option_override): Use it.
20680         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
20681         (mcu_name): New static array.
20682         (comparator, avr_archs_str, avr_mcus_str): New static functions.
20683         (avr_inform_devices, avr_inform_core_architectures): New functions.
20684         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
20685         (avrlibc.h) [WITH_AVRLIBC]: Include.
20686         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
20687         (print_mcu): Rewrite from scratch.
20688         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
20689         Forward to avr-specific specs defined in device-specs file.
20690         * config/avr/t-avr (driver-avr.o): New rule.
20691         (avr-devices.o): Depend on avr-arch.h.
20692         (avr-mcus): No more depend on avr-tables.opt.
20693         (avr-tables.opt): Remove rule.
20694         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
20696 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20698         * c-family/c.opt (fchkp-use-wrappers): New.
20699         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
20700         (chkp_wrap_function): New.
20701         (chkp_build_instrumented_fndecl): Support wrapped
20702         functions.
20703         * doc/invoke.texi (-fcheck-pointer-bounds): New.
20704         (-fchkp-check-incomplete-type): New.
20705         (-fchkp-first-field-has-own-bounds): New.
20706         (-fchkp-narrow-bounds): New.
20707         (-fchkp-narrow-to-innermost-array): New.
20708         (-fchkp-optimize): New.
20709         (-fchkp-use-fast-string-functions): New.
20710         (-fchkp-use-nochk-string-functions): New.
20711         (-fchkp-use-static-bounds): New.
20712         (-fchkp-use-static-const-bounds): New.
20713         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
20714         (-fchkp-check-read): New.
20715         (-fchkp-check-write): New.
20716         (-fchkp-store-bounds): New.
20717         (-fchkp-instrument-calls): New.
20718         (-fchkp-instrument-marked-only): New.
20719         (-fchkp-use-wrappers): New.
20720         (-static-libmpx): New.
20721         (-static-libmpxwrappers): New.
20723 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20725         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
20726         (CHKP_SPEC): Add wrappers library.
20727         * c-family/c.opt (static-libmpxwrappers): New.
20729 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
20731         * config/i386/linux-common.h (LIBMPX_LIBS): New.
20732         (LIBMPX_SPEC): New.
20733         (CHKP_SPEC): New.
20734         * gcc.c (CHKP_SPEC): New.
20735         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
20736         * c-family/c.opt (static-libmpx): New.
20738 2015-03-10  Richard Biener  <rguenther@suse.de>
20740         PR middle-end/44563
20741         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
20742         for compare_type.
20743         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
20744         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
20745         (cgraph_add_edge_to_call_site_hash): Likewise.
20746         (cgraph_node::get_edge): Likewise.
20747         (cgraph_edge::set_call_stmt): Likewise.
20748         (cgraph_edge::remove_caller): Likewise.
20750 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
20752         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
20753         (callee_saved_gpr_regs_size): ... this.
20754         (callee_saved_regs_first_regno): Rename to ...
20755         (callee_saved_first_gpr_regno): ... this.
20756         (callee_saved_regs_last_regno) Rename to ...
20757         (callee_saved_last_gpr_regno): ... this.
20758         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
20759         variables.
20760         (nds32_initial_elimination_offset): Likewise.
20761         (nds32_expand_prologue): Likewise.
20762         (nds32_expand_epilogue): Likewise.
20763         (nds32_expand_prologue_v3push): Likewise.
20764         (nds32_expand_epilogue_v3pop): Likewise.
20765         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
20766         Adjust renamed variables.
20767         (nds32_output_stack_pop): Likewise.
20769 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20771         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
20772         code in comment.
20774 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
20776         PR rtl-optimization/65321
20777         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
20778         than shift mode.
20779         * var-tracking.c (use_narrower_mode): Likewise.
20781 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
20783         PR tree-optimization/65355
20784         * varasm.c (notice_global_symbol): Do not produce RTL.
20785         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
20786         anchor.
20787         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
20788         check for section anchors.
20790 2015-03-10  Alan Modra  <amodra@gmail.com>
20792         PR target/65286
20793         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
20794         to be single-arch by default.  Set cpu_is_64bit for powerpc64
20795         given --with-cpu=native.
20796         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
20797         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
20798         and powerpc64le.
20799         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
20800         rs6000_isa_flags rather than TARGET_64BIT.
20802 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
20803             Kaz Kojima  <kkojima@gcc.gnu.org>
20805         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
20807 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
20809         PR lto/65361
20810         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
20811         on a TREE_BINFO, instead use BINFO_TYPE.
20813 2015-03-09  Richard Biener  <rguenther@suse.de>
20815         PR middle-end/65270
20816         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
20817         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
20818         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
20819         of that.  When comparing dereferences compare alignment.
20820         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
20822 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20824         * ipa-inline-analysis.c (check_callers): Check
20825         node->can_remove_if_no_direct_calls_and_refs_p.
20826         (growth_likely_positive): Reorganize to call
20827         can_remove_if_no_direct_calls_p later.
20828         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
20829         will_be_removed_from_program_if_no_direct_calls_p): Add
20830         will_inline parameter.
20831         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
20832         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
20833         Handle inliner case correctly.
20835 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20837         PR tree-optimization/63743
20838         * cfgexpand.c (reorder_operands): Also reorder if only second operand
20839         had its definition forwarded by TER.
20841 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
20843         PR lto/65316
20844         * ipa-utils.h (types_odr_comparable): Add strict argument.
20845         * ipa-devirt.c: Fix whitespace;
20846         (odr_hasher): Remove.
20847         (odr_name_hasher, odr_vtable_hasher): New hashers.
20848         (can_be_name_hashed_p): New predicate.
20849         (hash_type_name): remove.
20850         (hash_odr_name): New.
20851         (odr_name_hasher::hash): new.
20852         (can_be_vtable_hashed_p): New.
20853         (hash_odr_vtable): New.
20854         (odr_vtable_hasher::hash): New.
20855         (types_same_for_odr): Add strict parameter.
20856         (types_odr_comparable): Likewise.
20857         (odr_name_hasher::equal): New.
20858         (odr_vtable_hasher::equal): New.
20859         (odr_name_hasher::remove): New.
20860         (odr_hash_type): Change to hash_table<odr_name_hasher>.
20861         (odr_vtable_hash_type): New.
20862         (odr_vtable_hash): New.
20863         (odr_subtypes_equivalent_p): Do strict comparsion.
20864         (add_type_duplicate): Merge type names; cleanup; avoid type
20865         duplicates.
20866         (register_odr_type): Initialize vtable hash.
20867         (build_type_inheritance_graph): Likewise
20868         (get_odr_type): Reorg to use two hashes.
20869         (dump_possible_polymorphic_call_targets): Move sanity check after debug
20870         output.
20871         (ipa_devirt): Dump type_inheritance_graph.
20872         (types_same_for_odr): Add strict mode.
20874 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20876         PR ipa/65334
20877         * cgraph.h (symtab_node): Add definition_alignment,
20878         can_increase_alignment_p and increase_alignment.
20879         * symtab.c (symtab_node::can_increase_alignment_p,
20880         increase_alignment_1, symtab_node::increase_alignment,
20881         symtab_node::definition_alignment): New.
20882         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
20883         can_increase_alignment_p.
20884         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
20885         * tree-vect-stmts.c (ensure_base_align): Likewise.
20886         * varasm.c (function_section_1): Use definition_alignment.
20887         (assemble_start_function): Likewise.
20888         (emit_local): likewise.
20889         (build_constant_desc): Likewsie.
20890         (output_constant_def_contents): Likewise.
20891         (place_block_symbol): Likewise.
20892         (output_object_block): Likewise.
20894 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20896         PR ipa/65316
20897         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
20898         when outputting debug.
20900 2015-03-07  Marek Polacek  <polacek@redhat.com>
20901             Martin Uecker  <uecker@eecs.berkeley.edu>
20903         PR sanitizer/65280
20904         * doc/invoke.texi: Update description of -fsanitize=bounds.
20906 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
20908         * tree-ssa-phiopt.c (neg_replacement): Remove.
20909         (tree_ssa_phiopt_worker): Remove negate optimization.
20911 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20913         PR ipa/65302
20914         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
20916 2015-03-06  Richard Biener  <rguenther@suse.de>
20918         PR middle-end/64928
20919         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
20920         and liveout_obstack members.
20921         (calculate_live_on_exit): Remove.
20922         (calculate_live_ranges): Change declaration.
20923         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
20924         (new_tree_live_info): Adjust.
20925         (calculate_live_ranges): Delete livein when not wanted.
20926         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
20927         Deal with partly deleted live info.
20928         (loe_visit_block): Remove temporary bitmap by using
20929         bitmap_ior_and_compl_into.
20930         (live_worklist): Adjust accordingly.
20931         (calculate_live_on_exit): Make static.
20932         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
20933         we do not need livein.
20935 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
20937         * real.c (real_from_string): Fix typo in assertion.
20939 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
20941         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
20942         the patch.
20944 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
20946         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
20948 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
20950         PR target/64342
20951         * lra-assigns.c (find_hard_regno_for): Rename to
20952         find_hard_regno_for_1.  Add a new parameter.
20953         (find_hard_regno_for): New function using find_hard_regno_for_1.
20955 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20957         PR rtl-optimization/65067
20958         * expmed.c (store_bit_field, extract_bit_field): Reworked the
20959         strict volatile bitfield handling.
20961 2015-03-05  Martin Liska  <mliska@suse.cz>
20963         PR ipa/65318
20964         * ipa-icf.c (sem_variable::equals): Compare variables types.
20966 2015-03-05  Richard Henderson  <rth@redhat.com>
20968         PR target/65121
20969         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
20970         correctly check weak symbol binding.
20972 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
20974         PR middle-end/65315
20975         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
20976         needed alignment.
20978 2015-03-05  Martin Liska  <mliska@suse.cz>
20980         * ipa-inline.c (inline_small_functions): Set default value to
20981         prevent warning during bootstrap.
20982         * tree.h: Add pragma guard that ignores false positives during
20983         bootstrap.
20985 2015-03-05  Richard Biener  <rguenther@suse.de>
20987         PR tree-optimization/65310
20988         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20989         Properly preserve alignment of the base of the access.
20991 2015-03-05  Richard Biener  <rguenther@suse.de>
20993         PR ipa/65270
20994         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
20995         Compare dependence info.
20997 2015-03-05  Richard Biener  <rguenther@suse.de>
20999         PR middle-end/65233
21000         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
21001         tree-into-ssa.h.
21002         (walk_ssa_copies): Revert last chage.  Instead do not walk
21003         SSA names registered for SSA update.
21005 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21007         PR ipa/65270
21008         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
21009         vtable references for their containing type.
21010         (sem_function::equals_wpa): Compare TYPE_RESTRICT
21011         and type attributes.
21013 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
21015         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
21016         before negating it.
21017         * stor-layout.c (finalize_record_size): Revert latest change.
21019 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
21021         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
21023 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21025         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
21026         for correct comdat handling.
21027         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21028         Likewise.
21029         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
21030         (used_from_object_file_p_worker): Remove.
21031         (cgraph_node::only_called_directly_or_alised): Add
21032         used_from_object_file_p.
21033         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
21034         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
21035         can_remove_if_no_direct_calls_and_refs_p.
21037 2015-03-04  Nick Clifton  <nickc@redhat.com>
21039         * config/rl78/rl78.h (enum reg_class): Remove real registers from
21040         General register class.
21041         * config/rl78/rl78-real.md: Replace general register constraints
21042         with real+virtual register constraints.
21044 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21046         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
21047         from checking for -mhtm option.
21049 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21051         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
21052         (struct ipa_sra_check_caller_data): Add has_thunk field.
21053         (ipa_sra_check_caller): Check for thunk.
21054         (ipa_sra_preliminary_function_checks): Give up on function with
21055         thunks.
21056         (ipa_early_sra): Use call_for_symbol_and_aliases.
21058 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
21060         PR target/65249
21061         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
21062         called for __stack_chk_guard symbol.
21064 2015-03-03  DJ Delorie  <dj@redhat.com>
21066         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
21067         inc/dec.
21068         (*addhi3_real): Likewise.
21069         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
21070         pattern to match incrementing memory.
21071         * config/rl78/predicates.md (rl78_1_2_operand): New.
21072         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
21073         it's the same and only mem.
21074         (rl78_alloc_physical_registers_op2): If there's effectively only
21075         one MEM, transcode it into HL.
21076         (rl78_far_p): Reject addresses that aren't legitimate.
21078 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21080         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
21081         negating it.
21083         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
21085 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
21087         Implement call0 ABI for xtensa
21088         * config/xtensa/constraints.md ("a" constraint): Include stack
21089         pointer in case of call0 ABI.
21090         ("q" constraint): Make empty in case of call0 ABI.
21091         ("D" constraint): Include stack pointer in case of call0 ABI.
21092         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
21093         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
21094         prototypes.
21095         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
21096         variable.
21097         (xtensa_regno_to_class): Make it a local variable in the
21098         function xtensa_regno_to_class.
21099         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
21100         macro, function prototype and implementation.
21101         (reg_nonleaf_alloc_order): Make it a local variable in the
21102         function order_regs_for_local_alloc.
21103         (xtensa_conditional_register_usage): New function.
21104         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
21105         (xtensa_valid_move): Allow direct moves to stack pointer
21106         register in call0 ABI.
21107         (xtensa_setup_frame_addresses): Only spill register windows in
21108         windowed ABI.
21109         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
21110         call0 ABI respectively.
21111         (xtensa_function_arg_1): Only mark a7 register for copying in
21112         windowed ABI.
21113         (xtensa_call_save_reg): New function.
21114         (compute_frame_size): Add space for callee saved register
21115         storage to the frame size in call0 ABI.
21116         (xtensa_expand_prologue): Generate code to set up stack frame
21117         and save callee-saved registers in call0 ABI.
21118         (xtensa_expand_epilogue): New function.
21119         (xtensa_set_return_address): New function.
21120         (xtensa_return_addr): Calculate return address in call0 ABI.
21121         (xtensa_builtin_saveregs): Only mark a7 register for copying and
21122         emit copying code in windowed ABI.
21123         (order_regs_for_local_alloc): Add preferred register allocation
21124         order for non-leaf function in call0 ABI.
21125         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
21126         (xtensa_asm_trampoline_template): Add trampoline generation for
21127         call0 ABI.
21128         (xtensa_trampoline_init): Add trampoline initialization for
21129         call0 ABI.
21130         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
21131         functions.
21132         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
21133         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
21134         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
21135         ABI call-used registers.
21136         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
21137         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
21138         call0 ABI.
21139         (REG_CLASS_CONTENTS): Include all registers into the preferred
21140         reload registers set, adjust the set in the
21141         xtensa_conditional_register_usage.
21142         (xtensa_regno_to_class): Drop variable declaration.
21143         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
21144         function.
21145         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
21146         respectively.
21147         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
21148         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
21149         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
21150         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
21151         location in call0 ABI.
21152         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
21153         stack adjustment size when handling exception.
21154         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
21155         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
21156         definitions.
21157         ("return" pattern): Generate ret.n/ret in call0 ABI.
21158         ("epilogue" pattern): Expand epilogue.
21159         ("nonlocal_goto" pattern): Use default in call0 ABI.
21160         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
21161         emit eh_set_a0_* depending on ABI.
21162         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
21163         ("eh_set_a0_call0", "blockage"): New patterns.
21165 2015-03-03  Martin Liska  <mliska@suse.cz>
21167         PR ipa/65287
21168         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
21170 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21172         PR 65138/target
21173         * config/rs6000/rs6000-tables.opt: Regenerate table.
21175 2015-03-03  Renlin Li  <renlin.li@arm.com>
21177         * doc/md.texi (@item ^): Change ? into ^.
21179 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
21181         * doc/tm.texi: Regenerated.
21183 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
21185         * builtins.c (expand_builtin_return_addr): Add
21186         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
21187         surrounding #ifdef.
21188         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
21189         definition to 1.
21190         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
21191         Likewise.
21192         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
21193         undefined.
21194         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
21195         paragraph.
21197 2015-03-03  Martin Jambor  <mjambor@suse.cz>
21198             Eric Botcazou  <ebotcazou@adacore.com>
21200         * tree-sra.c (ipa_sra_check_caller_data): New type.
21201         (has_caller_p): Removed.
21202         (ipa_sra_check_caller): New function.
21203         (ipa_sra_preliminary_function_checks): Use it.
21205 2015-03-03  Martin Liska  <mliska@suse.cz>
21207         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
21208         instead of if branch.
21210 2015-03-03  Martin Liska  <mliska@suse.cz>
21212         PR ipa/65282
21213         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
21215 2015-03-23  Jeff Law  <law@redhat.com>
21217         PR tree-optimization/65241
21218         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
21219         hash table if INSERT is true.
21221 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21223         PR target/65296
21224         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
21226 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21228         PR target/64331
21229         * config/avr/avr.c (context.h, tree-pass.h): Include them.
21230         (avr_pass_data_recompute_notes): New static variable.
21231         (avr_pass_recompute_notes): New class.
21232         (avr_register_passes): New static function.
21233         (avr_option_override): Call it.
21235 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
21237         Fix various problems with specs file generation.
21239         PR target/65296
21240         * config.gcc (extra_gcc_objs) [avr]: Remove.
21241         * config/avr/driver-avr.c: Remove file.
21242         * config/avr/t-avr (driver-avr.o): Remove rule.
21243         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
21244         INCLUDES to build.  Depend on TM_H.
21245         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
21246         build warnings.  Fix non-matching types and non-existing %-codes.
21247         (tm.h): Include.
21248         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
21249         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
21250         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
21251         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
21252         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
21253         (LIBGCC_SPEC): Remove definitions.
21255 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21257         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
21258         to create a register in testing mode.
21260 2015-03-03  Martin Liska  <mliska@suse.cz>
21261             Jan Hubicka  <hubicka@ucw.cz>
21263         PR ipa/65263
21264         * cgraph.c (cgraph_node::has_thunk_p): New function.
21265         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
21266         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
21267         (sem_function::merge): Assert is changed.
21269 2015-03-03  Martin Liska  <mliska@suse.cz>
21270             Martin Jambor  <mjambor@suse.cz>
21272         PR ipa/65087
21273         * ipa-icf.c (sem_item_optimizer::execute): Change function
21274         return value to boolean.
21275         (sem_item_optimizer::merge_classes): Likewise.
21276         (ipa_icf_driver): Return TODO_remove_functions in case there's
21277         a merge operation processed.
21278         * ipa-icf.h: Change function return value to boolean.
21280 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21282         PR 65138/target
21283         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
21284         processor type for 64-bit little endian PowerPC.
21286         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21287         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
21288         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
21289         printing built-in mask so it does not pass NULL pointers.
21291         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
21292         -mcpu=powerpc64le.
21294 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
21296         PR target/58158
21297         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
21298         !ISA_HAS_FP_CONDMOVE.
21300 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
21302         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
21303         reload_completed.
21305 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
21307         * doc/invoke.texi (Options for Code Generation Conventions):
21308         Fix URL of DSO paper.
21310 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21312         PR ipa/65130
21313         * ipa-inline.c (check_callers): Looks for recursion.
21314         (inline_to_all_callers): Give up on uninlinable or recursive edges.
21315         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
21316         summary of inline clones.
21317         (do_estimate_growth_1): Fix recursion check.
21319 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21321         PR ipa/64988
21322         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
21323         comdat groups.
21325 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
21326             Aldy Hernandez  <aldyh@redhat.com>
21328         PR lto/65276
21329         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
21330         when checking TYPE_BINFO.
21332 2015-03-02  Richard Biener  <rguenther@suse.de>
21334         PR ipa/65270
21335         * ipa-icf-gimple.c: Include builtins.h.
21336         (func_checker::compare_memory_operand): Compare base alignment.
21338 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21340         PR target/65184
21341         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
21342         are never passed by reference.
21344 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
21346         PR target/65183
21347         * tree-chkp.c (chkp_check_lower): Don't check against
21348         zero bounds for already instrumented functions.
21349         (chkp_check_upper): Likewise.
21350         (chkp_fini): Clean pass local data to avoid wrong reusage.
21352 2015-02-28  Martin Liska  <mliska@suse.cz>
21353             Jan Hubicka  <hubicka@ucw.cz>
21355         * ipa-icf.c (sem_variable::equals): Improve debug output;
21356         get variable constructor.
21357         (sem_variable::parse): Do not filter out too early; give up on
21358         volatile and register vars.
21359         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
21360         variables.
21361         * ipa-icf.h (sem_variable::init): Do not set ctor.
21362         (sem_variable::ctor): Remove.
21364 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
21366         PR middle-end/65233
21367         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
21369 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21371         * ipa-icf.c: Include stor-layout.h
21372         (sem_function::compare_cgraph_references): Rename to ...
21373         (sem_item::compare_cgraph_references): ... this one.
21374         (sem_variable::equals_wpa): New function
21375         (sem_variable::equals): Do not check stuff already verified by
21376         equals_wpa.
21377         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
21378         * ipa-icf.h (sem_item): Add compare_cgraph_references.
21379         (sem_function): Remove compare_cgraph_references.
21380         (sem_variable): Turns equals_wpa into non-inline.
21382 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21384         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
21385         (sem_item::add_expr): New function.
21386         (sem_function::hash_stmt): Handle operands of most statements.
21387         (sem_variable::get_hash): Hash the actual constructor.
21388         * ipa-icf.h (sem_item): Add add_expr.
21389         (sem_function): Update prototype of hash_stmt
21391 2015-02-28  Martin Liska  <mliska@suse.cz>
21392             Jan Hubicka  <hubicka@ucw.cz>
21394         PR ipa/65245
21395         * ipa-icf-gimple.c (func_checker::compare_function_decl):
21396         Remove.
21397         (func_checker::compare_variable_decl): Skip symtab vars.
21398         (func_checker::compare_cst_or_decl): Update.
21399         * ipa-icf.c (sem_function::parse): Do not consider aliases.
21400         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
21401         use correct symtab predicates.
21402         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
21403         (sem_variable::parse):  Update comment.
21404         (sem_item_optimizer::build_graph): Consider ultimate aliases
21405         for references.
21407 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21409         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
21410         of OBJ_TYPE_REF.
21412 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21414         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
21415         (sem_variable::merge) Likewise.
21417 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21419         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
21420         target; also match flag_ipa_devirt.
21422 2015-03-01  Martin Liska  <mliska@suse.cz>
21423             Jan Hubicka  <hubicka@ucw.cz>
21425         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
21426         Validate variable alignment.
21427         * ipa-icf.c (sem_function::equals_private): Be more precise
21428         about non-common function attributes.
21429         (sem_variable::equals): Likewise.
21431 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21433         PR ipa/65237
21434         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
21435         across COMDAT group boundary.
21437 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21439         PR ipa/65232
21440         * ipa-icf.c (clear_decl_rtl): New function.
21441         (sem_function::merge): Clear RTL before forming alias.
21442         (sem_variable::merge): Clear RTL before forming alias.
21444 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
21446         PR ipa/65236
21447         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
21449 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
21451         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
21452         to neon_to_gp<q>.
21454 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21456         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
21457         a typo in the description.
21459 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21461         PR target/64317
21462         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21463         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
21464         * lra-constraints.c: Include "params.h".
21465         (EBB_PROBABILITY_CUTOFF): Use
21466         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
21467         (lra_inheritance): Use '<' instead of '<=' for
21468         EBB_PROBABILITY_CUTOFF.
21469         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
21470         Document change.
21472 2015-02-27  Martin Liska  <mliska@suse.cz>
21474         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
21475         vector length condition.
21477 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
21479         * doc/extend.texi (x86 transactional memory intrinsics):
21480         Reorganize discussion of _xbegin.  Clarify that the return
21481         value is a bit mask.  Expand example and move to end of section.
21483 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21484             Aldy Hernandez  <aldyh@redhat.com>
21486         PR rtl-optimization/65220
21487         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
21489 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
21491         PR target/65032
21492         * lra-remat.c (update_scratch_ops): New.
21493         (do_remat): Call it.
21494         * lra.c (lra_register_new_scratch_op): New. Take code from ...
21495         (remove_scratches): ... here.
21496         * lra-int.h (lra_register_new_scratch_op): New prototype.
21498 2015-02-27  Marek Polacek  <polacek@redhat.com>
21500         PR c/65040
21501         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
21502         -Wformat-signedness anymore.
21504 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21506         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
21507         function.
21508         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
21510 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21512         * config/s390/s390.c (enum s390_builtin):
21513         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
21514         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
21515         (s390_init_builtins): Generate new builtin functions.
21516         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
21517         (s390_sfpc, s390_efpc): New pattern definitions.
21519 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21521         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
21522         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
21523         (s390_builtin_decls): New array.
21524         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
21525         (s390_builtin_decl): New function.
21526         (TARGET_BUILTIN_DECL): Define macro.
21528 2015-02-27  Richard Biener  <rguenther@suse.de>
21530         PR middle-end/63175
21531         * builtins.c (get_object_alignment_2): Make sure to re-apply
21532         the ANDed mask after recursing to its operand gets us a new
21533         misalignment bit position.
21535 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
21536             Martin Liska  <mliska@suse.cz>
21538         PR bootstrap/65150
21539         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
21540         Use address_matters_p.
21541         (redirect_all_callers, set_addressable): New functions.
21542         (sem_function::merge): Reorganize and fix merging issues.
21543         (sem_variable::merge): Likewise.
21544         (sem_variable::compare_sections): Remove.
21545         * common.opt (fmerge-all-constants, fmerge-constants): Remove
21546         Optimization flag.
21547         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
21548         redirect them.
21549         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
21550         decl is used.
21551         (address_matters_1): New function.
21552         (symtab_node::address_matters_p): New function.
21553         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
21554         check for merged flag.
21555         * cgraph.h (address_matters_p): Declare.
21556         (symtab_node::address_taken_from_non_vtable_p): Remove.
21557         (symtab_node::address_can_be_compared_p): New method.
21558         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
21559         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
21560         Remove.
21561         (comdat_can_be_unshared_p_1) Use address_matters_p.
21562         (update_vtable_references): Fix formating.
21563         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
21564         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
21565         * cgraphclones.c: Preserve merged and icf_merged flags.
21567 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
21569         * doc/extend.texi (Function Attributes): Fix spelling and typos.
21570         (Label Attributes): Likewise.
21571         (Cilk Plus Builtins): Likewise.
21572         (ARC SIMD Built-in Functions): Likewise.
21573         (ARM C Language Extensions (ACLE)): Likewise.
21574         (PowerPC Built-in Functions): Likewise.
21575         (PowerPC Hardware Transactional Memory Built-in Functions):
21576         Likewise.
21578 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21580         PR tree-optimization/65216
21581         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
21582         new stmt and new SSA_NAME for lhs whenever the arguments have
21583         changed and weren't just swapped.  Fix comment typo.
21585         PR tree-optimization/65215
21586         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
21587         for PDP endian targets.
21588         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
21589         Fix up formatting issues.
21590         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
21591         size is smaller than the original, adjust MEM_REF offset by the
21592         difference of sizes.  Use is_gimple_mem_ref_addr instead of
21593         is_gimple_min_invariant test to avoid adding address temporaries.
21595 2015-02-26  Martin Liska  <mliska@suse.cz>
21596             Jan Hubicka  <hubicka@ucw.cz>
21598         PR ipa/64693
21599         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
21600         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
21601         (sem_item_optimizer::process_cong_reduction): Include division by
21602         sensitive references.
21603         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
21604         * ipa-ref.c (ipa_ref::address_matters_p): New function.
21605         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
21607 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
21609         PR target/65192
21610         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
21611         Remove.
21612         * config/avr/avr.c: Same.
21613         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
21614         Refuse any constant address not in 0..0xbf.
21615         * config/avr/avr.md (*mov<mode>, *movsf): Remove
21616         tiny_valid_direct_memory_access_range from insn conditions.
21617         (mov<mode>): Don't special-case expansion of avrtiny addresses.
21619 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
21621         PR target/61142
21622         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
21623         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
21624         * config/sh/predicates.md (const_logical_operand): New predicate.
21625         * config/sh/sh.md: Add new peephole2 patterns.
21627 2015-02-26  Marek Polacek  <polacek@redhat.com>
21629         PR ipa/65008
21630         * ipa-inline.c (early_inliner): Recompute inline parameters.
21632 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21634         PR target/65171
21635         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
21636         instructions with TImode operands are included in the analysis.
21638 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21640         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
21641         of an EDGE_FSM_THREAD.
21643 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21645         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
21647 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
21649         PR debug/46102
21650         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
21652 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
21654         PR tree-optimization/65048
21655         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
21656         (thread_through_all_blocks): Call valid_jump_thread_path.
21657         Remove invalid FSM jump-thread paths.
21659 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
21661         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
21662         (ipa_write_optimization_summaries): Likewise.
21663         * tree-streamer.h: Include data-streamer.h.
21664         (streamer_mode_table): Declare extern variable.
21665         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
21666         * lto-streamer-out.c (lto_output_init_mode_table,
21667         lto_write_mode_table): New functions.
21668         (produce_asm_for_decls): Call lto_write_mode_table when streaming
21669         offloading LTO.
21670         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
21671         (lto_create_simple_input_block): Add mode_table argument to the
21672         lto_input_block constructors.
21673         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
21674         Likewise.
21675         * data-streamer-in.c (string_for_index): Likewise.
21676         * ipa-inline-analysis.c (inline_read_section): Likewise.
21677         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
21678         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21679         * lto-streamer-in.c (lto_read_body_or_constructor,
21680         lto_input_toplevel_asms): Likewise.
21681         (lto_input_mode_table): New function.
21682         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
21683         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
21684         Use bp_pack_machine_mode.
21685         * real.h (struct real_format): Add name field.
21686         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
21687         (class lto_input_block): Add mode_table member.
21688         (lto_input_block::lto_input_block): Add mode_table_ argument,
21689         initialize mode_table.
21690         (struct lto_file_decl_data): Add mode_table field.
21691         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
21692         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
21693         unpack_ts_decl_common_value_fields,
21694         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
21695         * tree-streamer.c (streamer_mode_table): New variable.
21696         * real.c (ieee_single_format, mips_single_format,
21697         motorola_single_format, spu_single_format, ieee_double_format,
21698         mips_double_format, motorola_double_format,
21699         ieee_extended_motorola_format, ieee_extended_intel_96_format,
21700         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
21701         ibm_extended_format, mips_extended_format, ieee_quad_format,
21702         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
21703         decimal_single_format, decimal_double_format, decimal_quad_format,
21704         ieee_half_format, arm_half_format, real_internal_format): Add name
21705         field.
21706         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
21708 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
21710         PR target/65161
21711         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
21712         reordering for selective scheduling.
21714 2015-02-26  Terry Guo  <terry.guo@arm.com>
21716         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
21717         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
21718         (arm_arch_no_volatile_ce): Declare new global variable.
21719         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
21720         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
21721         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
21722         (TARGET_NO_VOLATILE_CE): New macro.
21723         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
21724         volatile memory access in IT block
21726 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21728         PR tree-optimization/61917
21729         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
21730         that reduc_def_stmt is null.
21732 2015-02-25  Martin Liska  <mliska@suse.cz>
21734         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
21735         hard register variables.
21737 2015-02-25  Kai Tietz  <ktietz@redhat.com>
21739         PR target/64212
21740         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
21741         (symtab::noninterposable_alias): Likewise.
21743 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
21745         PR target/65167
21746         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
21747         bounds registers.
21748         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
21750 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
21752         PR target/64997
21753         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
21754         as split condition; force split via '#' in output pattern.
21756 2015-02-25  Richard Biener  <rguenther@suse.de>
21757             Kai Tietz  <ktietz@redhat.com>
21759         PR tree-optimization/61917
21760         * tree-vect-loop.c (vectorizable_reduction): Allow
21761         vect_internal_def without reduction to exit graceful.
21763 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21765         PR target/65196
21766         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
21767         only with NONDEBUG_INSN_P.
21769 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
21771         Use variadic macros with avr-log.c.
21773         * config/avr/avr-protos.h (avr_vdump): New prototype.
21774         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
21775         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
21776         * config/avr/avr-log.c: Adjust comments.
21777         (avr_vdump): New function.
21778         (avr_vadump): Pass caller as 2nd argument instead of format string.
21779         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
21780         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
21782 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
21784         PR lto/64374
21785         * target.def (target_option_stream_in): New target hook.
21786         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
21787         targetm.target_option.post_stream_in if non-NULL.
21788         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
21789         * doc/tm.texi: Updated.
21790         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
21791         function.
21792         (TARGET_OPTION_POST_STREAM_IN): Redefine.
21794 2015-02-24  Jeff Law  <law@redhat.com>
21796         PR target/65117
21797         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
21798         of operand 0 and operand 2.
21799         (zero_cost_loop_end, loop_end): Similarly.
21801 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
21803         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
21804         CXX_MEM_STAT_INFO.
21806 2015-02-24  DJ Delorie  <dj@redhat.com>
21808         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
21809         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
21810         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
21811         instead of hardcoding SImode.
21813 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
21815         * omp-low.c (create_omp_child_function): Tag entrypoint
21816         functions with a special attribute.
21818 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21820         PR target/65058
21821         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
21823 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
21825         PR rtl-optimization/65123
21826         * lra-remat.c (operand_to_remat): Check hard regs in insn
21827         definition too.
21829 2015-02-24  Nick Clifton  <nickc@redhat.com>
21831         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
21832         to the assembler.
21834 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
21836         PR libgomp/64625
21837         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
21838         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
21839         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
21840         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
21841         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
21842         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
21843         (BUILT_IN_GOACC_PARALLEL): Specify as
21844         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
21845         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
21846         * builtin-types.def
21847         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21848         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21849         Remove function types.
21850         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
21851         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21852         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21853         New function types.
21855 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
21857         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
21859 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
21861         PR tree-optimization/65170
21862         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
21863         if val[1] < 0, clear also val[2] and return 3.
21865 2015-02-24  Alan Modra  <amodra@gmail.com>
21867         PR target/65172
21868         * config/rs6000/rs6000.c (get_memref_parts): Only return true
21869         when *base is a reg.  Handle nested plus addresses.  Simplify
21870         pre_modify test.
21872 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
21874         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
21875         use natural alignment when optimizing for size.
21877 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
21879         PR target/65153
21880         * config/sh/sh.md (movsicc_true+3): Remove peephole.
21881         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
21882         * config/sh/sh.c (replace_n_hard_rtx): Remove.
21884 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
21886         PR fortran/63427
21887         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
21888         too big for a wide_int.  Implement missing wrapping operation.
21890 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
21892         PR target/65163
21893         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
21894         instead of const_int 4294901760.
21896 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
21898         * config/avr/t-avr: Fix typo in comment.
21900 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
21902         * doc/rtl.texi (fma): Clarify documentation.
21904 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
21906         PR debug/58123
21907         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
21908         over input_location.
21910 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
21912         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
21913         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
21914         restrict alignments to absolute_biggest_alignment.
21915         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
21916         Define.
21917         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
21918         * doc/tm.texi: Regenerate.
21919         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
21921 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
21923         PR target/64172
21924         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
21926 2015-02-20  Richard Biener  <rguenther@suse.de>
21928         PR tree-optimization/65136
21929         * tree-ssa-propagate.c: Include cfgloop.h.
21930         (replace_phi_args_in): Avoid replacing loop latch edge PHI
21931         arguments with constants.
21933 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
21934             Martin Liska  <mliska@suse.cz>
21936         PR target/63892
21937         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
21938         don't try to create_thunk if stdarg_p.  If
21939         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
21940         redirect_callers if possible.
21941         (sem_item_optimizer::execute): Call unregister_hooks here...
21942         (ipa_icf_driver): ... instead of here.
21944 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21946         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
21947         Mark operand 0 as earlyclobber in 2nd alternative.
21948         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
21949         Write negated shift amount into QI lowpart operand 0 and use it
21950         in the shift step.
21951         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
21953 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
21955         * cgraph.h (clone_function_name_1): Declare.
21956         * cgraphclones.c (clone_function_name_1): New function.
21957         (clone_function_name): Use it.
21958         * lto-partition.c: Include "stringpool.h".
21959         (must_not_rename, maybe_rewrite_identifier)
21960         (validize_symbol_for_target): New static functions.
21961         (privatize_symbol_name): Use must_not_rename.
21962         (promote_symbol): Call validize_symbol_for_target.
21963         (lto_promote_cross_file_statics): Likewise.
21964         (lto_promote_statics_nonwpa): Likewise.
21966 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
21968         PR target/64452
21969         * config/avr/avr.md (pushhi_insn): New insn.
21970         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
21972 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
21973             Jakub Jelinek  <jakub@redhat.com>
21975         * tree-streamer.c (preload_common_nodes): Don't preload
21976         TI_VA_LIST* for offloading.
21977         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
21978         in_lto_p.
21980 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
21982         * config/pa/pa.c (pa_emit_move_sequence): Always force
21983         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
21984         note on insn.
21986         * config/pa/pa.c (pa_reloc_rw_mask): New function.
21987         (TARGET_ASM_RELOC_RW_MASK): Define.
21988         (pa_cannot_force_const_mem): Revert previous change.
21990 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
21991             Jan Hubicka  <hubicka@ucw.cz>
21993         PR ipa/65028
21994         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
21995         across jump functions.
21997 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
21999         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
22001 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
22003         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
22005 2015-02-19  Richard Henderson  <rth@redhat.com>
22007         PR middle-end/65074
22008         * varasm.c (default_binds_local_p_2): Don't test node->definition;
22009         test DECL_EXTERNAL independent of symtab_node.
22011 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
22013         PR lto/65012
22014         * varpool.c (varpool_node::get_constructor): Return early
22015         if this->lto_file_data is NULL.
22017 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22019         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
22020         (rank_for_schedule_debug): Update.
22021         (ready_sort): Make static.  Move sorting logic to ...
22022         (ready_sort_debug, ready_sort_real): New static functions.
22023         (schedule_block): Sort both debug insns and real insns in preparation
22024         for ready list trimming.  Improve debug output.
22025         * sched-int.h (ready_sort): Remove global declaration.
22027 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
22029         * ipa-icf.c (sem_function::equals_private): Adjust.
22030         (sem_function::bb_dict_test): Take a vec<int> * instead of
22031         auto_vec<int>.
22032         * ipa-icf.h (bb_dict_test): Likewise.
22034 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22036         PR gcov-profile/64634
22037         * tree-eh.c (frob_into_branch_around): Fix up typos
22038         in function comment.
22039         (lower_catch): Put eh_seq resulting from EH lowering of
22040         the cleanup sequence after the cleanup rather than before it.
22042 2015-02-18  Tom de Vries  <tom@codesourcery.com>
22044         * common.opt (fstdarg-opt): New option.
22045         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
22046         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22047         (@item -fstdarg-opt): New item.
22049 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22051         PR target/65064
22052         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
22053         for common symbols.
22055 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22057         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
22058         insn-modes.h.
22059         (ALL_HOST_OBJS): Add mkoffload.o.
22060         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
22062 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
22064         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
22065         (compare_virtual_tables): Be smarter about skipping typeinfos;
22066         do sane output on virtual table table mismatch.
22067         (warn_odr): Be ready for forward declarations of enums;
22068         output sane info on base mismatch and virtual table mismatch.
22069         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
22070         when only one type is polymorphic.
22071         (get_odr_type): Fix hashtable corruption.
22072         (dump_odr_type): Dump mangled names.
22074 2015-02-18  Richard Biener  <rguenther@suse.de>
22076         PR tree-optimization/65063
22077         * tree-predcom.c (determine_unroll_factor): Return 1 if we
22078         have replaced looparound PHIs.
22080 2015-02-18  Martin Liska  <mliska@suse.cz>
22082         * lto-streamer.c (lto_streamer_init): Encapsulate
22083         streamer_check_handled_ts_structures with checking macro.
22085 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22087         PR ipa/65087
22088         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
22089         section if !implicit_section.
22090         (cgraph_node::create_version_clone_with_body): Likewise.
22091         * trans-mem.c (ipa_tm_create_version): Likewise.
22093 2015-02-18  Richard Biener  <rguenther@suse.de>
22095         PR tree-optimization/62217
22096         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
22097         into BIVs.
22099 2015-02-18  Marek Polacek  <polacek@redhat.com>
22101         PR sanitizer/65081
22102         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
22103         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
22104         is in range [-16K, -1].  Don't issue run-time error if
22105         (ptr > ptr + offset).
22107 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
22109         * doc/install.texi (nvptx-*-none): New section.
22110         * doc/invoke.texi (Nvidia PTX Options): Likewise.
22111         * config/nvptx/nvptx.opt: Update.
22113         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
22114         (access_check): New functions, copied from
22115         config/i386/intelmic-mkoffload.c.
22116         (main): For non-installed testing, look in all COMPILER_PATHs for
22117         GCC_INSTALL_NAME.
22119         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
22121 2015-02-18  Andrew Pinski  <apinski@cavium.com>
22122             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22124         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
22125         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
22127 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
22129         * ipa-visibility.c (function_and_variable_visibility): Only
22130         check locality if node is not already local.
22131         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22132         call_for_symbol_and_aliases instead of
22133         call_for_symbol_thunks_and_aliases.
22134         (ipa_inline): Likewise.
22135         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22136         first walk aliases.
22137         * ipa.c (symbol_table::remove_unreachable_nodes): Use
22138         call_for_symbol_and_aliases.
22139         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22140         (ipa_propagate_frequency_1): Use it; use opt_for_fn
22141         (ipa_propagate_frequency): Update.
22142         (ipa_profile): Add opt_for_fn gueards.
22144 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
22146         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
22147         * doc/invoke.texi (SH options): Document it.
22148         * config/sh/sh.c (sh_insn_length_adjustment): Check
22149         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
22151 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
22153         * common.opt (fipa-cp-alignment): New.
22154         * ipa-cp.c (ipcp_store_alignment_results): Check
22155         flag_ipa_cp_alignment.
22156         * opts.c (default_options_table): Enable -fipa-cp-alignment for
22157         -O2.
22158         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
22159         * doc/invoke.texi: Document -fipa-cp-alignment.
22161 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
22163         PR target/64793
22164         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
22165         to nil.  Adjust comments.
22167 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
22169         * ipa-visibility.c (function_and_variable_visibility): Only
22170         check locality if node is not already local.
22171         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
22172         call_for_symbol_and_aliases instead of
22173         call_for_symbol_thunks_and_aliases.
22174         (ipa_inline): Likewise.
22175         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22176         first walk aliases.
22177         * ipa.c (symbol_table::remove_unreachable_nodes): Use
22178         call_for_symbol_and_aliases.
22179         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
22180         (ipa_propagate_frequency_1): Use it; use opt_for_fn
22181         (ipa_propagate_frequency): Update.
22182         (ipa_profile): Add opt_for_fn guards.
22184 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
22186         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
22187         skipping of "strange" tokens.
22189 2015-02-17  Jeff Law  <law@redhat.com>
22191         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
22192         obsolete comment.
22194 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
22196         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
22197         as forcing a HARD_DEP between instructions, thereby
22198         disallowing rewriting to break dependencies.
22200 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22202         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
22203         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
22204         variables in boundary that have no inlitalizer encoded and are
22205         not aliases.
22206         * varasm.c (default_binds_local_p_2): External definitions do not
22207         count as definitions here.
22209 2015-02-16  Jeff Law  <law@redhat.com>
22211         PR tree-optimization/64823
22212         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
22213         statements.
22214         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22215         threading through blocks with PHIs, but no statements.
22216         (thread_through_normal_block): Distinguish between blocks where
22217         we did not process all the statements and blocks with no statements.
22219 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
22220             James Greenhalgh  <james.greenhalgh@arm.com>
22222         PR ipa/64963
22223         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
22224         section if not linkonce.  Fix up formatting.
22225         (cgraph_node::create_version_clone_with_body): Copy section.
22226         * trans-mem.c (ipa_tm_create_version): Likewise.
22228 2015-02-16  Richard Biener  <rguenther@suse.de>
22230         PR tree-optimization/65077
22231         * tree-ssa-structalias.c (get_constraint_for_1): Handle
22232         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
22233         (find_func_aliases): Allow float values to carry pointers again.
22235 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22237         * doc/install.texi (Specific): Reorder targets list to put
22238         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
22239         from the top menu.
22241 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
22242             David Edelsohn  <dje.gcc@gmail.com>
22244         PR target/65058
22245         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
22246         mapping class to external variable or function reference.
22247         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
22248         mapping class.
22250 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
22252         PR target/53348
22253         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
22254         ASM_WEAKEN_DECL if defined.
22256 2015-02-16  Richard Biener  <rguenther@suse.de>
22258         PR lto/65015
22259         * varasm.c (default_file_start): For LTO produced units
22260         emit <artificial> as file directive.
22262 2015-02-16  Richard Biener  <rguenther@suse.de>
22264         PR tree-optimization/63593
22265         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
22266         stmts and releasing SSA names until...
22267         (execute_pred_commoning): ... after processing all chains.
22269 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
22271         PR ipa/65059
22272         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
22273         external functions.
22275 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
22277         * doc/bugreport.texi: Adjust section titles throughout the file
22278         to use "Title Case".
22279         * doc/extend.texi: Likewise.
22280         * doc/gcov.texi: Likewise.
22281         * doc/implement-c.texi: Likewise.
22282         * doc/implement-cxx.texi: Likewise.
22283         * doc/invoke.texi: Likewise.
22284         * doc/objc.texi: Likewise.
22285         * doc/standards.texi: Likewise.
22286         * doc/trouble.texi: Likewise.
22288 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
22290         * cgraph.h (symtab_node::has_aliases_p): Simplify.
22291         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
22292         * tree.c (lookup_binfo_at_offset): Make static.
22293         (get_binfo_at_offset): Do not shadow offset; add explanatory
22294         comment.
22296 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
22298         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
22299         for all floading point loads and stores except those using a register
22300         index address.
22301         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
22302         to a register.
22304 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22306         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
22307         (do_estimate_growth_1): Record if any uninlinable edge was seen.
22308         (estimate_growth): Handle uninlinable edges correctly.
22309         (check_callers): New.
22310         (growth_likely_positive): Handle aliases correctly.
22312 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
22314         * ipa-chkp.c: Use iterate_direct_aliases.
22315         * symtab.c (resolution_used_from_other_file_p): Move inline.
22316         (symtab_node::create_reference): Fix formating.
22317         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22318         (symtab_node::iterate_reference): Move inline.
22319         (symtab_node::iterate_referring): Move inline.
22320         (symtab_node::iterate_direct_aliases): Move inline.
22321         (symtab_node::used_from_object_file_p_worker): Inline into ...
22322         (symtab_node::used_from_object_file_p): ... this one; move inline.
22323         (symtab_node::call_for_symbol_and_aliases): Move inline;
22324         use iterate_direct_aliases.
22325         (symtab_node::call_for_symbol_and_aliases_1): New method.
22326         (cgraph_node::call_for_symbol_and_aliases): Move inline;
22327         use iterate_direct_aliases.
22328         (cgraph_node::call_for_symbol_and_aliases_1): New method.
22329         (varpool_node::call_for_node_and_aliases): Rename to ...
22330         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
22331         use iterate_direct_aliases.
22332         (varpool_node::call_for_symbol_and_aliases_1): New method.
22333         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
22334         (ipa_discover_readonly_nonaddressable_var): Update.
22335         * ipa-devirt.c: Fix formating.
22336         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
22337         Move inline.
22338         (cgraph_node::call_for_symbol_and_aliases): Move inline.
22339         (cgraph_node::call_for_symbol_and_aliases_1): New function..
22340         * cgraph.h (used_from_object_file_p_worker): Remove.
22341         (resolution_used_from_other_file_p): Move inline.
22342         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
22343         (symtab_node::iterate_reference): Move inline.
22344         (symtab_node::iterate_referring): Move inline.
22345         (symtab_node::iterate_direct_aliases): Move inline.
22346         (symtab_node::used_from_object_file_p_worker): Inline into ...
22347         (symtab_node::used_from_object_file_p): Move inline.
22348         * tree-emutls.c (ipa_lower_emutls): Update.
22349         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
22350         (varpool_node::call_for_node_and_aliases): Remove.
22352 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
22354         PR tree-optimization/62209
22355         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
22356         op == range->exp, insert seq and gimplified code after labels
22357         instead of after the phi.
22359 2015-02-13  Jeff Law  <law@redhat.com>
22361         PR bootstrap/65060
22362         Revert my change for tree-optimization/64823.
22364 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22366         PR tree-optimization/65053
22367         * tree-ssa-phiopt.c (value_replacement): When moving assign before
22368         cond, either reset VR on lhs or set it to phi result VR.
22370 2015-02-13  Jeff Law  <law@redhat.com>
22372         PR tree-optimization/64823
22373         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
22374         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22375         threading through blocks with PHIs, but no statements.
22376         (thread_through_normal_block): Distinguish between blocks where
22377         we did not process all the statements and blocks with no statements.
22379         PR rtl-optimization/47477
22380         * match.pd (convert (plus/minus (convert @0) (convert @1): New
22381         simplifier to narrow arithmetic.
22383 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
22385         PR ipa/65028
22386         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
22387         polymorphic call info when type is not known to be preserved.
22389 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
22391         PR ipa/65028
22392         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
22393         (inline_call): Use it.
22395 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
22397         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
22398         GOMP_DEVICE_NVIDIA_PTX.
22400 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
22402         PR ipa/65034
22403         * stmt.c (emit_case_nodes): Use void_type_node instead of
22404         NULL_TREE as LABEL_DECL type.
22406 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
22408         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22409         constraints.
22410         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
22411         symbolic references to data to be forced to constant memory on the
22412         SOM target.
22414 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22416         PR tree-optimization/65002
22417         * tree-cfg.c (pass_data_fixup_cfg): Don't update
22418         SSA on start.
22419         * tree-sra.c (some_callers_have_no_vuse_p): New.
22420         (ipa_early_sra): Reject functions whose callers
22421         assume function is read only.
22423 2015-02-13  Richard Biener  <rguenther@suse.de>
22425         PR lto/65015
22426         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
22427         for LTO produced CUs.
22429 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
22431         PR tree-optimization/64705
22432         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
22433         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
22434         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
22435         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
22436         expand_simple_operations.
22438 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22439             Richard Henderson  <rth@redhat.com>
22441         PR rtl/32219
22442         * cgraphunit.c (cgraph_node::finalize_function): Set definition
22443         before notice_global_symbol.
22444         (varpool_node::finalize_decl): Likewise.
22445         * varasm.c (default_binds_local_p_2): Rename from
22446         default_binds_local_p_1, add weak_dominate argument.  Use direct
22447         returns instead of assigning to local variable.  Unify varpool and
22448         cgraph paths via symtab_node.  Reject undef weak variables before
22449         testing visibility.  Reorder tests for simplicity.
22450         (default_binds_local_p): Use default_binds_local_p_2.
22451         (default_binds_local_p_1): Likewise.
22452         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
22453         via symtab_node.
22454         (default_elf_asm_output_external): Emit visibility when specified.
22456 2015-02-13  Alan Modra  <amodra@gmail.com>
22458         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
22459         code setting up r11 for out-of-line fp restore.
22461 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
22463         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
22464         (muser-mode): Likewise.
22466 2015-02-13  Alan Modra  <amodra@gmail.com>
22468         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
22469         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
22471 2015-02-12  David Howells  <dhowells@redhat.com>
22473         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
22474         warning.
22475         * tree-ssa-uninit.c (dump_predicates): Likewise.
22476         * opts.c (print_filtered_help): Likewise.
22478 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22480         * dwarf2out.c (output_die): Use "%s", name instead of name to
22481         avoid -Wformat-security warning.
22483         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
22484         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22485         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
22486         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
22488 2015-02-12  Jason Merrill  <jason@redhat.com>
22490         * common.opt (-flifetime-dse): New.
22492 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
22494         PR sanitizer/65019
22495         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
22497         PR tree-optimization/65014
22498         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
22499         use original second operand of arg0 or arg1 instead of
22500         that adjusted by STRIP_NOPS.
22502 2015-02-11  Jeff Law  <law@redhat.com>
22504         PR target/63347
22505         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
22506         that needs to be queued, just queue it for a single cycle.
22508 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
22510         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
22511         bodies of thunks; comment on why.
22512         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
22513         symbols are extern.
22515 2015-02-11  Richard Henderson  <rth@redhat.com>
22517         PR sanitize/65000
22518         * tree-eh.c (mark_reachable_handlers): Mark source and destination
22519         regions of __builtin_eh_copy_values.
22521 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22523         PR middle-end/65003
22524         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
22525         ultimate alias is MEM with SYMBOL_REF satisfying
22526         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
22527         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
22529 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
22531         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
22532         "diagnostic-core.h".
22533         (main): Initialize progname, and call diagnostic_initialize.
22535         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
22536         instead of __OPENMP_TARGET__.
22538         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
22539         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
22540         hard-coding PTX_ID.
22542 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
22544         * doc/sourcebuild.texi (pie_enabled): Document.
22546 2015-02-11  Martin Liska  <mliska@suse.cz>
22548         PR ipa/64813
22549         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
22550         a return value for call to a function that is noreturn.
22552 2015-02-11  Richard Biener  <rguenther@suse.de>
22554         PR lto/65015
22555         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
22556         and -fresolution.
22558 2015-02-11  Andrew Pinski  <apinski@cavium.com>
22560         PR target/64893
22561         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
22562         Change the first argument type to size_type_node and add another
22563         size_type_node.
22564         (aarch64_simd_expand_builtin): Handle the new argument to
22565         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
22566         print an out when the first two arguments are not
22567         nonzero integer constants.
22568         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
22569         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
22571 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
22573         PR target/61925
22574         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
22575         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
22576         (ix86_set_current_function): Rewritten.
22577         (ix86_add_new_builtins): Temporarily clear current_target_pragma
22578         when creating builtin fndecls.
22580 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22582         PR ipa/65005
22583         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
22584         function.
22585         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
22586         have no comdat group.
22587         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
22588         (lto_output_varpool_node): Always output alias info.
22589         (output_refs): Output refs of boundary aliases, too.
22590         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
22591         (output_symtab): Output call eges in thunks in boundary.
22592         (get_alias_symbol): Remove.
22593         (input_node, input_varpool_node): Do not special case weakrefs.
22594         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
22595         alias and thunks targets in the boundary; do not take removed symbols
22596         from their comdat groups.
22597         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
22598         (cgraph_node::global_info): Remove.
22599         (cgraph_node::rtl_info): Look through aliases and thunks.
22600         * cgrpah.h (global_info): Remove.
22601         (non_local_p): Remove.
22603 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22604             Sandra Loosemore  <sandra@codesourcery.com>
22606         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
22607         to inline asm.  List dialects in proper order.
22609 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22610             Sandra Loosemore  <sandra@codesourcery.com>
22612         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
22614 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
22616         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
22617         modified) reference to Solaris.
22619 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
22621         * doc/extend.texi (Extended Asm): Fix typos.
22623 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
22625         PR sanitizer/65004
22626         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
22628 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
22630         PR target/64661
22631         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
22632         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
22633         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
22634         * config/sh/constraints.md (Ara, Add): New constraints.
22635         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
22636         predicates.
22637         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
22638         atomic_mem_operand_0.  Don't use force_reg on the memory address.
22639         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
22640         Sra constraint.  Convert to insn_and_split.  Add workaround for
22641         PR 64974.
22642         (atomic_compare_and_swap<mode>_hard): Copy to
22643         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
22644         Use atomic_mem_operand_0 predicate.
22645         (atomic_compare_and_swap<mode>_soft_gusa,
22646         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
22647         AraAdd constraints.
22648         (atomic_compare_and_swap<mode>_soft_tcb,
22649         atomic_compare_and_swap<mode>_soft_imask,
22650         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
22651         atomic_mem_operand_0 predicate and SraSdd constraints.
22652         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
22653         constraint.
22654         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
22655         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
22656         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
22657         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
22658         force_reg on the memory address.
22659         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
22660         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
22661         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
22662         atomic_mem_operand_1 predicate and Sra constraint.
22663         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
22664         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22665         Use atomic_mem_operand_1 predicate.
22666         (atomic_<fetchop_name><mode>_hard): Copy to
22667         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
22668         Use atomic_mem_operand_1 predicate.
22669         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
22670         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22671         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
22672         insn_and_split.  Use atomic_mem_operand_1 predicate.
22673         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
22674         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
22675         Use atomic_mem_operand_1 predicate.
22676         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
22677         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
22678         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
22679         in generated insn with original mem operand before emitting the insn.
22680         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
22681         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
22682         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
22683         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
22684         Use atomic_mem_operand_1 predicate and AraAdd constraints.
22685         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
22686         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
22687         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
22688         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
22689         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
22690         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
22691         atomic_not_fetch<mode>_soft_tcb,
22692         atomic_<fetchop_name>_fetch<mode>_soft_imask,
22693         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
22694         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
22695         Use atomic_mem_operand_1 predicate and SraSdd constraints.
22697 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
22699         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
22700         and 3 earlyclobber operands.
22702 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22704         * common.opt (fstack-reuse): Mark as optimization.
22706 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
22708         PR ipa/64982
22709         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
22711 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
22713         PR tree-optimization/64326
22714         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
22716 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
22718         PR gcov-profile/61889
22719         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
22721 2015-02-10  Richard Biener  <rguenther@suse.de>
22723         PR tree-optimization/64995
22724         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
22725         value we use is final.
22726         (visit_reference_op_store): Always valueize op.
22727         (visit_use): Properly valueize vuses.
22729 2015-02-10  Richard Biener  <rguenther@suse.de>
22731         PR tree-optimization/64909
22732         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
22733         pass a scalar-stmt count estimate to the cost model.
22734         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
22736 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
22738         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
22739         enabled by default together with var-tracking.
22741 2015-02-10  Nick Clifton  <nickc@redhat.com>
22743         * config/rl78/rl78.c: Remove DIV attribute code accidentally
22744         included in previous rl78 commit.
22746 2015-02-10  Richard Biener  <rguenther@suse.de>
22748         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
22749         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
22750         return the bitpack.
22752 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22754         PR gcov-profile/61889
22755         * config.in: regenerate.
22756         * configure.in: Likewise.
22757         * configure.ac: Check for ftw.h.
22758         * gcov-tool.c: Check for ftw.h before using nftw.
22760 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
22762         PR lto/64076
22763         * ipa-visibility.c (update_visibility_by_resolution_info): Only
22764         assert when not in lto mode.
22766 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22768         * ira-color.c (setup_left_conflict_sizes_p): Simplify
22769         initialization/assignment of conflict_size.
22771 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
22773         PR ipa/64978
22774         * ipa-cp.c (gather_caller_stats): Skip thunks.
22775         (propagate_constants_topo): Skip aliases.
22777 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
22779         PR target/64761
22780         * config/sh/sh.c (sh_option_override): Don't change
22781         -freorder-blocks-and-partition to -freorder-blocks even when
22782         unwinding is enabled.
22783         (sh_can_follow_jump): Return false if the followee jump is
22784         a crossing jump when -freorder-blocks-and-partition is specified.
22785         * config/sh/sh.md (*jump_compact_crossing): New insn.
22787 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
22788             Kaz Kojima  <kkojima@gcc.gnu.org>
22790         PR target/64761
22791         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
22792         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
22793         (sh_can_redirect_branch): Rename to ...
22794         (sh_can_follow_jump): ... this.  Constify argument types.
22795         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
22796         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
22797         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
22798         * doc/tm.texi: Regenerate.
22800 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22802         PR sanitizer/64981
22803         * builtins.c (expand_builtin): Call targetm.expand_builtin
22804         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
22806 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22808         PR ipa/61548
22809         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
22811 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22813         PR ipa/63566
22814         * ipa-icf.c (set_local): New function.
22815         (sem_function::merge): Use it.
22817 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22819         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
22820         (add_type_duplicate): Fix comparison of BINFOs.
22822 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22824         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
22825         on getting VOID pointer.
22827 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
22829         PR target/64979
22830         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
22831         va_list escapes.
22833 2015-02-09  Richard Biener  <rguenther@suse.de>
22835         * genmatch.c (replace_id): Copy expr_type.
22837 2015-02-09  Richard Biener  <rguenther@suse.de>
22839         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
22840         (streamer_write_tree_bitfields): Declare.
22841         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
22842         properly unpack padding.
22843         (unpack_value_fields): Inline ...
22844         (streamer_read_tree_bitfields): ... here.
22845         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
22846         and properly add padding bits.
22847         (streamer_pack_tree_bitfields): Fold into ...
22848         (streamer_write_tree_bitfields): ... this new function,
22849         exposing the bitpack object.
22850         * lto-streamer-out.c (lto_write_tree_1): Call
22851         streamer_write_tree_bitfields.
22853 2015-02-09  Richard Biener  <rguenther@suse.de>
22855         PR tree-optimization/54000
22856         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
22857         (struct ivopts_data): Add loop_loc member.
22858         (tree_ssa_iv_optimize_loop): Dump loop location.
22859         (create_new_ivs): Likewise, also dump number of IVs generated.
22861 2015-02-09  Martin Liska  <mliska@suse.cz>
22863         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
22864         just if not yet registered.
22865         (ipa_icf_generate_summary): Register callgraph hooks.
22867 2015-02-08  Andrew Pinski  <apinski@cavium.com>
22869         * config/aarch64/aarch64.c (gty_dummy): Delete.
22871 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22873         PR ipa/63566
22874         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
22875         (cgraph_node::local_p): Remove thunk related FIXME.
22877 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22879         PR ipa/63566
22880         * i386.c (ix86_function_regparm): Look through aliases to see if callee
22881         is local and optimized.
22882         (ix86_function_sseregparm): Likewise; also use target's SSE math
22883         settings; error out instead of silently generating wrong code
22884         on mismatches.
22885         (init_cumulative_args): Look through aliases.
22887 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22889         PR ipa/63566
22890         * ipa-split.c (execute_split_functions): Split if function has aliases.
22892 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
22894         PR ipa/63566
22895         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
22896         aliases before trying to expand it.
22897         (cgraph_node::expand_thunk): Fix formating.
22899 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
22901         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
22902         (Using Assembly Language with C): Expand introduction.
22903         (Basic Asm): Copy-edit.  Add more information about uses of
22904         basic asm.
22905         (Extended Asm): Copy-edit.  Document new escape syntax and
22906         %l[label] syntax.
22907         (Global Reg Vars): Copy-edit.
22908         (Local Reg Vars): Likewise.
22910 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
22912         PR debug/2714
22913         PR bootstrap/64256
22914         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
22915         (DBX_CONTIN_CHAR): Define.
22917 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
22918             Brian Rzycki  <b.rzycki@samsung.com>
22920         PR tree-optimization/64878
22921         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
22922         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
22923         Stop recursion at loop phi nodes after having visited a loop phi node.
22925 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
22927         * toplev.c (process_options): Change flag_ipa_ra before creating
22928         optimization_{default,current}_node.
22930         PR ipa/64896
22931         * cgraphunit.c (cgraph_node::expand_thunk): If
22932         restype is not is_gimple_reg_type nor the thunk_fndecl
22933         returns aggregate_value_p, set restmp to a temporary variable
22934         instead of resdecl.
22936 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
22938         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
22940 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22942         PR target/64205
22943         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
22944         add a general secondary reload handler for SDmode, unless we have
22945         both read/write support for SDmode.
22947 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
22949         PR middle-end/64937
22950         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
22951         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
22952         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
22953         1 before, push it to abstract_vec.
22954         (dwarf2out_abstract_function): Adjust caller.  Don't call
22955         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
22956         DECL_ABSTRACT_P flags for all abstract_vec elts.
22958 2015-02-06  Renlin Li  <renlin.li@arm.com>
22960         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
22961         complex gimple.
22962         * tree-ssa.c (execute_update_addresses_taken): Likewise.
22964 2015-02-06  Jeff Law  <law@redhat.com>
22966         PR target/64889
22967         * config/h8300/h8300.c (push): New argument "in_prologue".
22968         Pass "in_prologue" along to "F".
22969         (h8300_push_pop): Corresponding changes.
22970         (h8300_expand_prologue): Likewise.
22971         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
22973 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
22975         PR rtl-optimization/64957
22976         PR debug/64817
22977         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
22978         IOR rather than for AND.
22980 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
22982         PR target/62631
22983         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
22984         of shift-add and (add + shift) operations.  Rename local variable.
22986 2015-02-05  Jeff Law  <law@redhat.com>
22988         PR target/17306
22989         * config/h8300/constraints.md (U): Correctly dectect
22990         "eightbit_data" memory addresses.
22991         * config/h8300/h8300.c (eightbit_constant_address_p): Also
22992         handle (const (plus (symbol_ref (x)))) where x is declared
22993         as an 8-bit data memory address.
22994         * config/h8300/h8300.md (call, call_value): Correctly detect
22995         "funcvec" functions.
22997         PR target/43264
22998         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
22999         24 to 28 bits for the H8/300.
23001 2015-02-06  Alan Modra  <amodra@gmail.com>
23003         PR target/64876
23004         * config/rs6000/rs6000.c (chain_already_loaded): New function.
23005         (rs6000_call_aix): Use it.
23007 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
23009         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
23010         check.
23012 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
23014         * config/h8300/constraints.md ("U" constraint): Use strict
23015         variant of REG_OK_FOR_BASE_P after reload has started.
23017 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
23019         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
23020         define to zero if !TARGET_NEON.
23021         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
23023 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23024             Trevor Saunders  <tsaunders@mozilla.com>
23026         PR ipa/61548
23027         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
23029 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23031         PR ipa/61548
23032         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
23033         when removing varpool nodes.
23035 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23037         PR ipa/61548
23038         * varpool.c (varpool_node::remove): Fix order of variables.
23040 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23042         PR ipa/64686
23043         * ipa-inline.c (inline_small_functions): Fix ordering issue between
23044         speculation resolution and key updates.
23046 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23048         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
23049         about not letting any speculative edges unupdated.
23051 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23053         PR gcov/64123
23054         * gcov-io.c (gcov_var): Export.
23056 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23058         PR middle-end/64922
23059         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
23060         edges that become speculative.
23062 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
23064         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
23065         or DW_LANG_Fortran08.
23066         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
23067         DW_LANG_Fortran08.
23068         (gen_compile_unit_die): Handle "GNU Fortran2003" and
23069         "GNU Fortran2008" language strings.
23070         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
23071         * langhooks.h (lang_GNU_Fortran): New prototype.
23072         * langhooks.c (lang_GNU_Fortran): New function.
23073         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
23074         lang_GNU_Fortran.
23076 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23078         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
23079         (RTX_OK_FOR_OLO10_P): Likewise.
23081 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23083         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
23085 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23087         PR middle-end/64922
23088         * gimple.c: Include gimple-ssa.h.
23089         (maybe_remove_unused_call_args): New function.
23090         * gimple.h (maybe_remove_unused_call_args): Declare.
23091         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
23092         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
23093         * gimple-fold.c (gimple_fold_call): Likewise.
23095 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
23097         PR rtl-optimization/64905
23098         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
23099         pointer alignment if it isn't needed.
23101 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
23103         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
23104         cortex-a72.cortex-a53.
23105         * config/aarch64/aarch64-tune.md: Regenerate.
23106         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
23108 2015-02-04  Nick Clifton  <nickc@redhat.com>
23110         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
23111         inside a MEM.
23113 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
23115         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
23116         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
23117         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
23118         of DEF_BUILTIN.
23119         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
23120         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
23121         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
23122         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
23123         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
23124         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
23125         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
23126         * tree-core.h (enum built_in_function): In between
23127         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
23128         for builtins that use DEF_BUILTIN_CHKP macro.
23130 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
23132         PR debug/64817
23133         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
23134         operands for tcc_comparison exprs.  Fix typos.
23136         PR debug/64817
23137         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
23138         of two XORs that have an intervening AND or IOR.
23140         PR debug/64817
23141         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
23142         simplification of XOR of AND to not allocate new rtx before
23143         committing to a simplification.
23145 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23147         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
23148         manual swaps in all peepholes.
23150 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23152         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
23153         of manual swapping implementation.
23154         (aarch64_expand_vec_perm_const_1): Likewise.
23156 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
23158         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
23159         (generic_addrcost_table): Remove NAMED_PARAM.
23160         (cortexa57_addrcost_table): Likewise.
23161         (xgene1_addrcost_table): Likewise.
23162         (generic_regmove_table): Likewise.
23163         (cortexa53_regmove_table): Likewise.
23164         (xgene1_regmove_table): Likewise.
23165         (generic_vector_table): Likewise.
23166         (cortexa57_vector_table): Likewise.
23167         (xgene1_vector_table): Likewise.
23168         (generic_tunings): Likewise.
23169         (cortexa53_tunings): Likewise.
23170         (cortexa57_tunings): Likewise.
23171         (xgene1_tunings): Likewise.
23173 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
23175         * config/arm/arm-cores.def: Add cortex-a72 and
23176         cortex-a72.cortex-a53.
23177         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
23178         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
23179         * config/arm/arm-tune.md: Regenerate.
23180         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
23181         "cortex-a72.cortex-a53".
23182         * doc/invoke.texi (ARM Options/-mtune): Likewise.
23184 2015-02-04  Nick Clifton  <nickc@redhat.com>
23186         PR target/64408
23187         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
23188         of accepted codes.
23189         (nonimmediate_di_operand): Likewise.
23191         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
23192         prefixes of known F5 using MSP430 MCUs.
23194 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23196         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
23197         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
23198         instead of __builtin_sqrt.
23200 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
23202         * varasm.c (do_assemble_alias): Follow transparent alias
23203         chain for target.
23204         (default_assemble_visibility): Follow transparent alias
23205         chain for decl name.
23207 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23209         PR middle-end/62103
23210         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
23211         to compute size of referenced value in the constant case.
23213 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23215         PR rtl-optimization/64756
23216         * cse.c (invalidate_dest): New function.
23217         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
23218         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
23219         invalidate and do not record it.
23221 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
23223         PR target/64660
23224         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
23225         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
23226         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
23227         atomic_nand<mode>_soft_tcb): New insns.
23228         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
23229         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
23230         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
23231         Split into atomic_not_fetchsi_hard if operands[0] is unused.
23232         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
23233         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23234         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
23235         atomic_not<mode>_hard if operands[0] is unused.
23236         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
23237         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
23238         if operands[0] is unused.
23239         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
23240         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
23241         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
23242         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23243         unused.
23244         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
23245         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23246         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
23247         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
23248         if operands[0] is unused.
23249         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
23250         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
23251         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
23252         atomic_nand_fetchsi_hard if operands[0] is unused.
23253         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
23254         atomic_nand<mode>_hard if operands[0] is unused.
23255         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
23256         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
23257         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
23258         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23259         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
23260         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
23261         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
23262         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
23263         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
23264         atomic_not<mode>_hard if operands[0] is unused.
23265         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
23266         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
23267         unused.
23268         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23269         into atomic_not<mode>_soft_tcb if operands[0] is unused.
23270         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
23271         atomic_nand<mode>_hard if operands[0] is unused.
23272         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
23273         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
23275 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
23277         PR jit/64810
23278         * Makefile.in (GCC_OBJS): Add gcc-main.o.
23279         * gcc-main.c: New file, containing "main" taken from gcc.c.
23280         * gcc.c (do_self_spec): Free decoded_options.
23281         (class driver): Move declaration to gcc.h.
23282         (main): Move declaration and implementation to new file
23283         gcc-main.c.
23284         (driver_get_configure_time_options): New function.
23285         * gcc.h (class driver): Move this declaration here, from
23286         gcc.c.
23287         (driver_get_configure_time_options): New declaration.
23289 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
23291         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
23292         cross-module inlining.
23293         * cgraph.h (cgraph_node): Add flag merged.
23294         * ipa-icf.c (sem_function::merge): Maintain it.
23296 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
23298         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
23299         instead of OBJECT_P.
23301 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
23303         PR target/62631
23304         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
23305         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
23306         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
23307         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
23309 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
23311         PR other/63504
23312         * combine.c (reg_n_sets_max): New variable.
23313         (can_change_dest_mode, reg_nonzero_bits_for_combine,
23314         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
23315         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
23316         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
23317         (rest_of_handle_combine): Initialize reg_n_sets_max.
23319 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
23321         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
23322         if some always_inline was inlined, apply changes before inlining
23323         heuristically.
23325 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
23327         PR jit/64810
23328         * config/arm/arm.c (arm_option_override): Set
23329         arm_selected_arch/cpu/tune to NULL on entry.
23331 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
23332             Andrew Pinski  <pinskia@gcc.gnu.org>
23333             Jakub Jelinek  <jakub@gcc.gnu.org>
23335         PR target/64231
23336         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
23337         integer typing for small model. Use IN_RANGE.
23339 2015-02-02  Richard Biener  <rguenther@suse.de>
23341         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
23342         * tree-vrp.c (vrp_valueize_1): Likewise.
23344 2015-02-02  Alan Modra  <amodra@gmail.com>
23346         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
23347         than mem for toc_restore.
23348         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
23349         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
23350         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
23352 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
23354         PR target/64047
23355         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
23356         explicit default options.
23358 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
23360         PR ipa/64872
23361         * ipa-utils.c (ipa_merge_profiles): Add release argument.
23362         * ipa-icf.c (sem_function::merge): Do not release body when merging.
23363         * ipa-utils.h (ipa_merge_profiles): Update prototype.
23365 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
23367         PR debug/64817
23368         * cfgexpand.c (deep_ter_debug_map): New variable.
23369         (avoid_deep_ter_for_debug): New function.
23370         (expand_debug_expr): If TERed SSA_NAME is in
23371         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
23372         instead of trying to expand SSA_NAME's def stmt.
23373         (expand_debug_locations): When expanding debug bind
23374         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
23375         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
23376         value.
23377         (pass_expand::execute): Call avoid_deep_ter_for_debug on
23378         all debug bind stmts.  Delete deep_ter_debug_map after
23379         expand_debug_location if non-NULL and clear it.
23381 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
23383         PR target/64851
23384         * config/sh/sync.md (atomic_fetch_notsi_hard,
23385         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
23386         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
23387         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
23388         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
23389         atomic_not_fetch<mode>_soft_imask): New insns.
23391 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
23393         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
23394         (rank_for_schedule_debug): Split from ...
23395         (rank_for_schedule): ... this.
23396         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
23397         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
23399 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23401         * doc/md.texi (Machine Constraints): Alphabetize table by target.
23402         * doc/extend.texi (x86 Variable Attributes): Move section to
23403         correct alphabetization after renaming.
23404         (x86 Type Attributes): Likewise.
23405         (Target Builtins): Re-alphabetize menu.
23406         (x86 Built-in Functions): Move section to correct alphabetization
23407         after renaming.
23408         (x86 transactional memory intrinsics): Likewise.
23409         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
23410         and x86 Windows Options in table and menu.
23411         (x86 Options): Move section to correct alphabetization after
23412         renaming.
23413         (x86 Windows Options): Likewise.
23415 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
23417         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
23418         preferred names of the architecture and its 32- and 64-bit
23419         variants.
23420         * doc/invoke.texi: Likewise.
23421         * doc/md.texi: Likewise.
23423 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23425         PR target/64882
23426         * config/i386/predicates.md (address_no_seg_operand): Reject
23427         non-CONST_INT_P operands in invalid mode.
23429 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
23431         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
23432         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
23433         * config/i386/predicates.md (address_no_seg_operand): Call
23434         address_operand with VOIDmode.
23435         (vsib_address_operand): Ditto.
23436         (address_mpx_no_base_operand): Ditto.
23437         (address_mpx_no_index_operand): Ditto.
23439 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23441         PR target/64688
23442         * lra-constraints.c (original_subreg_reg_mode): New.
23443         (simplify_operand_subreg): Try to simplify subreg of const.  Use
23444         original_subreg_reg_mode for it.
23445         (swap_operands): Update original_subreg_reg_mode.
23446         (curr_insn_transform): Set up original_subreg_reg_mode.
23448 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23450         PR target/64617
23451         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
23452         function.
23453         (process_alt_operands): Use it.
23454         (curr_insn_transform): Check the optional reload pseudo class is
23455         ok for the mode.
23457 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
23459         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
23460         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
23461         prototype.
23462         * toplev.h (init_asm_output): Update comment on use of
23463         UNKNOWN_LOCATION with fatal_error.
23464         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
23465         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
23466         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
23467         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
23468         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
23469         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
23470         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
23471         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
23472         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
23473         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
23474         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
23475         fatal_error changed to pass input_location as first argument.
23477 2015-01-30  Martin Liska  <mliska@suse.cz>
23479         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
23480         in #pragma GCC diagnostic guards.
23482 2015-01-30  Richard Biener  <rguenther@suse.de>
23484         PR tree-optimization/64829
23485         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
23486         not add a widening conversion pattern but hand off extra
23487         widenings to callers.
23488         (vect_recog_widen_mult_pattern): Handle extra widening produced
23489         by vect_handle_widen_op_by_const.
23490         (vect_recog_widen_shift_pattern): Likewise.
23491         (vect_pattern_recog_1): Remove excess vertical space in dumping.
23492         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
23493         (vect_init_vector_1): Likewise.
23494         (vect_get_vec_def_for_operand): Likewise.
23495         (vect_finish_stmt_generation): Likewise.
23496         (vectorizable_load): Likewise.
23497         (vect_analyze_stmt): Likewise.
23498         (vect_is_simple_use): Likewise.
23500 2015-01-29  Jeff Law  <law@redhat.com>
23502         * combine.c (try_combine): Fix typo in comment.
23504 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
23506         PR target/64580
23507         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
23508         (rs6000_stack_info): Add assert.
23509         (rs6000_output_savres_externs): New function, split off from...
23510         (rs6000_output_function_prologue): ... here.  Do not call it for
23511         thunks.
23513 2015-01-29  Jeff Law  <law@redhat.com>
23515         PR target/15184
23516         * combine.c (try_combine): If I0 is a memory load and I3 a store
23517         to a related address, increase the "goodness" of doing a 4-insn
23518         combination with I0-I3.
23519         (make_field_assignment): Handle SUBREGs in the ior+and case.
23521 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
23523         PR tree-optimization/64746
23524         * tree-if-conv.c (mask_exists): New function.
23525         (predicate_mem_writes): Save created mask with given size for further
23526         use.
23527         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
23528         (ifcvt_repair_bool_pattern): Collect all statements that are root
23529         of bool pattern and use iterative algorithm to remove multiple uses
23530         of predicates, display number of required iterations.
23532 2015-01-29  Richard Biener  <rguenther@suse.de>
23534         PR tree-optimization/64853
23535         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
23536         stmt will get simulated again.
23537         * tree-ssa-ccp.c (valueize_op_1): Likewise.
23539 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23541         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
23542         return_in_pc.  Remove redundant assignments.
23543         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
23544         (arm_expand_epilogue): Don't compare boolean with true in if condition.
23546 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
23548         * config/i386/i386.c (ix86_mode_after): Make static.
23550 2015-01-29  Richard Biener  <rguenther@suse.de>
23552         PR tree-optimization/64844
23553         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
23554         dump cost model analysis.
23555         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23556         Do not register adjusted load/store costs here.
23558 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23559             Uros Bizjak  <ubizjak@gmail.com>
23561         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
23562         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
23563         using x86_use_pseudo_pic_reg.
23564         * config/i386/i386.c (ix86_conditional_register_usage): Remove
23565         support for fixed PIC register.
23566         (ix86_use_pseudo_pic_reg): Not static any more.
23568 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23570         PR middle-end/64805
23571         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
23572         to avoid error in cgraph node verification.
23574 2015-01-29  Marek Polacek  <polacek@redhat.com>
23576         * doc/standards.texi: Reflect that the default for C is gnu11.
23578 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
23580         PR target/64761
23581         * reorg.c (switch_text_sections_between_p): New function.
23582         (relax_delay_slots): Call it when testing if the jump insn
23583         is removable.  Use targetm.can_follow_jump when testing if
23584         the conditional branch can follow an unconditional jump.
23586 2015-01-27  Caroline Tice  <cmtice@google.com>
23588         Committing VTV Cywin/Ming patch for Patrick Wollgast
23589         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
23590         if -fvtable-verify=preinit/std is used.
23591         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
23592         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
23593         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
23594         if -fvtable-verify=preinit/std is used.
23595         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23596         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
23597         if -fvtable-verify=preinit/std is used.
23598         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
23599         * config/i386/mingw32.h (LIB_SPEC): Likewise.
23600         * varasm.c (assemble_variable): Add code to properly set the comdat
23601         section and name for the .vtable_map_vars section in case the
23602         target is PE or COFF.
23604 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23606         PR ipa/64801
23607         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
23608         make sane BB profile.
23609         (cgraph_node::expand_thunk): Make sane BB profile.
23610         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
23611         * cgraph.h (init_lowered_empty_function): Update prototype.
23612         * config/i386/i386.c (make_resolver_func): Update call.
23613         * predict.c (gate): Disable branch prediction pass if
23614         profile is already there.
23616 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
23618         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
23619         * opth-gen.awk: Likewise.
23620         * common.opt: Mark flag_fp_contract_mode as Optimization.
23622 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23624         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
23625         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
23627 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
23629         PR target/64659
23630         * config/sh/predicates.md (atomic_arith_operand,
23631         atomic_logical_operand): Remove.
23632         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
23633         (atomic_arith_operand_0): New predicate.
23634         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
23635         Use atomic_arith_operand_0 for input values.
23636         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
23637         atomic_compare_and_swap<mode>_soft_gusa,
23638         atomic_compare_and_swap<mode>_soft_tcb,
23639         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
23640         arith_reg_operand instead of register_operand.
23641         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
23642         atomic_arith_operand_0 for newval input.
23643         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
23644         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
23645         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
23646         arith_reg_operand instead of register_operand.
23647         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
23648         fetchop_predicate_1, fetchop_constraint_1_llcs,
23649         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
23650         fetchop_constraint_1_imask): New code iterator attributes.
23651         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
23652         register_operand.  Use fetchop_predicate_1.
23653         (atomic_fetch_<fetchop_name>si_hard,
23654         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
23655         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
23656         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
23657         and arith_reg_operand instead of register_operand.  Use
23658         fetchop_predicate_1, fetchop_constraint_1_gusa.
23659         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
23660         and arith_reg_operand instead of register_operand.  Use
23661         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
23662         to allow R0 usage.
23663         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
23664         and arith_reg_operand instead of register_operand.  Use
23665         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
23666         to allow R0 usage.
23667         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
23668         register_operand.  Use atomic_logical_operand_1.
23669         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
23670         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
23671         arith_reg_operand instead of register_operand.
23672         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
23673         Use arith_reg_dest and arith_reg_operand instead of register_operand.
23674         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
23675         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
23676         register_operand.  Use fetchop_predicate_1.
23677         (atomic_<fetchop_name>_fetchsi_hard,
23678         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
23679         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23680         fetchop_constraint_1_llcs.
23681         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
23682         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23683         fetchop_constraint_1_gusa.
23684         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
23685         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23686         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
23687         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
23688         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
23689         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
23690         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
23691         register_operand.  Use atomic_logical_operand_1.
23692         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
23693         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
23694         arith_reg_operand instead of register_operand.
23695         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
23696         arith_reg_operand instead of register_operand.  Use logical_operand
23697         and K08.  Adjust asm sequence to allow R0 usage.
23698         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
23699         arith_reg_operand instead of register_operand.  Use logical_operand
23700         and K08.
23702 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23704         PR other/63504
23705         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
23706         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
23707         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
23708         only get_full_len HOST_WIDE_INTs from get_val () array rather than
23709         all bits in *val_wide.
23711 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
23713         * varpool.c (tls_model_names): Fix names.
23714         (varpool_node::dump): Dump tls- prefix for tls models.
23716 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
23717             Bernd Schmidt  <bernds@codesourcery.com>
23718             Nathan Sidwell  <nathan@codesourcery.com>
23720         * config/nvptx/mkoffload.c: New file.
23721         * config/nvptx/t-nvptx: Add build rules for it.
23722         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
23723         (extra_programs): Add mkoffload.
23724         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
23725         function.
23726         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
23728 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
23730         PR middle-end/64809
23731         * cfgexpand.c (reorder_operands): Skip debug gimples.
23733 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
23735         PR tree-optimization/64277
23736         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
23737         range info when possible to refine estimation.
23739 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23741         PR tree-optimization/64718
23742         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
23743         be a 16bit unsigned integer when n->range is 16.
23744         (bswap_replace): Convert src to that type if necessary for all bswap
23745         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
23746         set in pass_optimize_bswap::execute ().
23748 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
23750         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
23751         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
23752         integer and floating point variants.
23753         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
23755 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
23757         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
23758         for all vector modes.
23760 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
23762         PR bootstrap/64612
23763         * doc/sourcebuild.texi (comdat_group): Document.
23765 2015-01-28  Terry Guo  <terry.guo@arm.com>
23767         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
23769 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
23771         * toplev.c (print_version): Add param "show_global_state", and
23772         only print GGC and plugin information if it is true.
23773         (init_asm_output): Pass in "true" for the new param when calling
23774         print_version.
23775         (process_options): Likewise.
23776         (toplev::main): Likewise.
23777         * toplev.h (print_version): Add new param to decl.
23779 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23781         PR ipa/60871
23782         PR ipa/64139
23783         * tree.c (lookup_binfo_at_offset): New function.
23784         (get_binfo_at_offset): Use it.
23786 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
23788         PR ipa/64282
23789         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
23790         on vtable being vtable.
23792 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23794         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
23795         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
23796         -mhotpatch= option.
23797         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
23798         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
23799         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
23800         Renamed.
23801         (s390_hotpatch_trampoline_halfwords_max): Renamed.
23802         (s390_hotpatch_hw_max): New name.
23803         (s390_hotpatch_trampoline_halfwords): Renamed.
23804         (s390_hotpatch_hw_before_label): New name.
23805         (get_hotpatch_attribute): Removed.
23806         (s390_hotpatch_hw_after_label): New name.
23807         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
23808         attribute.
23809         (s390_attribute_table): Ditto.
23810         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
23811         (s390_function_num_hotpatch_hw): New name.
23812         Remove special handling of inline functions and hotpatching.
23813         Return number of nops before and after the function label.
23814         (s390_can_inline_p): Removed.
23815         (s390_asm_output_function_label): Emit a configurable number of nops
23816         after the function label.
23817         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
23818         (TARGET_CAN_INLINE_P) Removed.
23819         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
23821 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23822             Jiong Wang  <jiong.wang@arm.com>
23824         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
23825         of scratch reg.
23826         (cb<optab><mode>1): Likewise.
23827         * config/aarch64/iterators.md (bcond): New define_code_attr.
23829 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23831         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
23832         memory accesses.
23834 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23836         * config/s390/s390.c (s390_register_move_cost): Increase costs for
23837         FPR->GPR moves.
23839 2015-01-27  Richard Biener  <rguenther@suse.de>
23841         * tree-vrp.c (update_value_range): Intersect the range with
23842         old recorded SSA name range information.
23844 2015-01-27  Nick Clifton  <nickc@redhat.com>
23846         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
23847         BC, DE and HL registers directly, not via AX.
23848         When decrementing the stack pointer by a large amount, transfer SP
23849         into AX and perform the subtraction there.
23850         (rl78_expand_epilogue): Perform the inverse of the above
23851         enhancements.
23853 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23855         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
23857 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23858             Yury Gribov  <y.gribov@samsung.com>
23860         PR ubsan/64741
23861         * ubsan.c (ubsan_source_location): Refactor code.
23862         (ubsan_type_descriptor): Update type size. Refactor code.
23864 2015-01-27  Richard Biener  <rguenther@suse.de>
23866         PR tree-optimization/56273
23867         PR tree-optimization/59124
23868         PR tree-optimization/64277
23869         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
23870         from the first VRP pass.
23872 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23874         PR ipa/64776
23875         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
23876         handle the first argument in the same loop as all the other arguments.
23878         PR rtl-optimization/61058
23879         * jump.c (cleanup_barriers): Update basic block boundaries
23880         if BLOCK_FOR_INSN is non-NULL on PREV.
23882 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
23884         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
23885         bounds narrowing, already instrumented calls and calls to
23886         not instrumentable functions.
23888 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
23890         PR tree-optimization/64807
23891         * wide-int.cc (wi::divmod_internal): Clear
23892         b_dividend[dividend_blocks_needed].
23894 2015-01-26  DJ Delorie  <dj@redhat.com>
23896         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
23897         volatile memory references.
23899 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
23901         PR target/49263
23902         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
23903         remove_insn.
23904         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
23905         shifts if it already fits into K08.
23907 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
23909         PR ipa/64730
23910         * ipa-inline.c (inline_small_functions): Print "unknown" even
23911         if edge->call_stmt is non-NULL, but has builtins or unknown
23912         location.
23914         PR middle-end/64421
23915         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
23916         with asterisk, skip the first character.
23918 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
23920         PR target/64806
23921         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
23922         order change.
23924 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
23926         PR target/64795
23927         * config/i386/i386.md (*movdi_internal): Also check operand 0
23928         to determine TYPE_LEA operand.
23929         (*movsi_internal): Ditto.
23931 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
23933         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
23934         OPTION_MASK_QUAD_MEMORY_ATOMIC.
23936 2015-01-26  Renlin Li  <renlin.li@arm.com>
23938         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
23939         the comment.
23940         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
23941         for higher part.
23943 2015-01-26  Richard Biener  <rguenther@suse.de>
23945         PR middle-end/64764
23946         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
23947         combining two BIT_AND_EXPR predicates.
23949 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
23951         PR bootstrap/64754
23952         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
23954 2015-01-26  Terry Guo  <terry.guo@arm.com>
23956         * config/arm/arm.c (arm_file_start): Update the assignment of
23957         Tag_ABI_HardFP_use.
23959 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
23961         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
23962         pipeline model.
23963         config/arm/arm.md: Include the new Cortex-A57 model.
23964         (generic_sched): Don't use generic_sched when tuning for
23965         Cortex-A57.
23967 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
23968             Uros Bizjak  <ubizjak@gmail.com>
23970         * config/i386/i386.c (get_builtin_code_for_version): Add
23971         support for BMI and BMI2 multiversion functions.
23973 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23975         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
23976         (extract_bit_field): Likewise.
23977         (extract_low_bits): Likewise.
23978         (expand_mult): Likewise.
23979         (expand_mult_highpart_adjust): Likewise.
23981 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
23983         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
23984         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
23985         * config/i386/i386.c (processor_model): Add
23986         M_INTEL_COREI7_BROADWELL.
23987         (arch_names_table): Add "broadwell".
23989 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
23991         PR target/49263
23992         PR target/53987
23993         PR target/64345
23994         PR target/59533
23995         PR target/52933
23996         PR target/54236
23997         PR target/51244
23998         * config/sh/sh-protos.h
23999         (sh_extending_set_of_reg::can_use_as_unextended_reg,
24000         sh_extending_set_of_reg::use_as_unextended_reg,
24001         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
24002         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
24003         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
24004         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
24005         (sh_treg_insns): New class.
24006         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
24007         (scope_counter): New class.
24008         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
24009         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
24010         sh_extending_set_of_reg::can_use_as_unextended_reg,
24011         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
24012         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
24013         sh_split_treg_set_expr): New functions.
24014         (addsubcosts): Handle treg_set_expr.
24015         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
24016         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
24017         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
24018         (sh_insn_operands_modified_between_p): Make non-static.
24019         * config/sh/predicates.md (zero_extend_movu_operand): Allow
24020         simple_mem_operand in addition to displacement_mem_operand.
24021         (zero_extend_operand): Don't allow zero_extend_movu_operand.
24022         (treg_set_expr, treg_set_expr_not_const01,
24023         arith_reg_or_treg_set_expr): New predicates.
24024         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
24025         arith_or_int_operand instead of logical_operand.  Convert to
24026         insn_and_split.  Try to optimize constant operand in splitter.
24027         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
24028         (*tstqi_t_zero): Delete.
24029         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
24030         (tstsi_t_and_not): Delete.
24031         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
24032         Convert to insn_and_split.
24033         (unnamed split, tstsi_t_zero_extract_xor,
24034         tstsi_t_zero_extract_subreg_xor_little,
24035         tstsi_t_zero_extract_subreg_xor_big): Delete.
24036         (*tstsi_t_shift_mask): New insn_and_split.
24037         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
24038         to recombine with surrounding insns when splitting.
24039         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
24040         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
24041         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
24042         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
24043         (*cbranch_div0s: Delete.
24044         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24045         Try to recombine with surrounding insns when splitting.  Add operand
24046         order variants.
24047         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
24048         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
24049         *addc_r_r_msb, *addc_2r_msb): Delete.
24050         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
24051         order variant.
24052         (*addc_negreg_t): New insn_and_split.
24053         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24054         Try to recombine with surrounding insns when splitting.
24055         Add operand order variants.
24056         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
24057         insn_and_split patterns.
24058         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
24059         surrounding insns when splitting.
24060         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
24061         (*rotcl): Likewise.  Add zero_extract variant.
24062         (*ashrsi2_31): New insn_and_split.
24063         (*negc): Convert to insn_and_split.  Use treg_set_expr.
24064         (*zero_extend<mode>si2_disp_mem): Update comment.
24065         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
24066         condition.
24067         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
24068         with surrounding insns when splitting.
24069         (any_treg_expr_to_reg): New insn_and_split.
24070         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
24071         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
24072         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
24073         *zero_extract_2): New single bit zero extract patterns.
24074         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
24075         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
24076         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
24077         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
24078         set destination.
24079         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
24080         register_operand for set source.
24082 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
24084         * i386.opt (prefetch_sse): New targetsave.
24085         * i386.c (ix86_function_specific_save): Save prefetch_sse.
24086         (ix86_function_specific_restore): Restore prefetch_sse and initialize
24087         ix86_cost/ix86_tune_cost.
24089 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24091         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
24092         Support the JIT by using 0 as the language type.
24094 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
24096         PR target/64317
24097         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
24098         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
24099         (mark_regno_live, process_bb_lives): Pass new parameter value to
24100         make_hard_regno_born.
24102 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24104         PR rtl-optimization/63637
24105         PR rtl-optimization/60663
24106         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
24107         if elt->cost is MAX_COST for ASM_OPERANDS.
24108         (find_sets_in_insn): Fix up comment typo.
24109         (cse_insn): Don't set src_volatile for all non-volatile
24110         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
24111         or with "memory" clobber.  Set elt->cost to MAX_COST
24112         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
24113         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
24115 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
24117         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
24118         alternative 1.
24120 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
24122         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
24123         libgcc/config/i386/elf-lib.h.
24125 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24127         PR driver/64737
24128         * gcc.c (print_configuration): Don't print a blank line at the end
24129         here...
24130         (run_attempt): ... but here unstead.
24132         PR middle-end/64734
24133         * omp-low.c (scan_sharing_clauses): Don't ignore
24134         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
24135         on target data/update constructs.
24137 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24139         PR target/50928
24140         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
24141         (DEBUG_RELOAD): Removed define.
24142         (m32c_limit_reload_class): Enable traces with if DEBUG0.
24143         (m32c_function_arg): Added a type cast.
24144         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
24145         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
24146         * config/m32c/bitops.md (andqi3_16): Likewise.
24147         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
24148         (push_a01_l): Likewise.
24150 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24152         PR jit/64721
24153         * main.c (main): Construct toplev instances with init_signals=true.
24154         * toplev.c (general_init): Add param "init_signals", and use it to
24155         conditionalize the calls to signal and host_hooks.extra_signals.
24156         (toplev::toplev): Add param "init_signals".
24157         (toplev::main): When invoking general_init, pass m_init_signals
24158         to control whether signal-handlers are installed.
24159         * toplev.h (toplev::toplev): Add param "init_signals".
24160         (toplev::m_init_signals): New field.
24162 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
24164         PR jit/64722
24165         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
24166         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
24167         latter may be affected by the former (e.g. on i686).
24169 2015-01-23  Martin Liska  <mliska@suse.cz>
24171         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
24172         false positive during profiledbootstrap.
24174 2015-01-23  Tom de Vries  <tom@codesourcery.com>
24176         PR libgomp/64672
24177         * lto-opts.c (lto_write_options): Output non-explicit conservative
24178         -fno-openacc.
24179         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
24180         (append_compiler_options): Pass -fopenacc through.
24182 2015-01-23  Tom de Vries  <tom@codesourcery.com>
24184         PR libgomp/64707
24185         * lto-opts.c (lto_write_options): Output non-explicit conservative
24186         -fno-openmp.
24187         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
24188         (append_compiler_options): Pass -fopenmp through.
24190 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
24192         PR debug/64511
24193         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
24194         GTY markup.
24196         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
24197         * diagnostic.def (DK_ICE_NOBT): New kind.
24198         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
24199         like DK_ICE, but never print backtrace.
24200         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
24201         (internal_error_no_backtrace): New function.
24202         * gcc.c (execute): Use internal_error_no_backtrace instead of
24203         internal_error.
24205 2015-01-22  Jeff Law  <law@redhat.com>
24207         PR target/52076
24208         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
24209         improve code density for small immediate to memory case.
24210         (insv): Better handle bitfield assignments when the field is
24211         being set to all ones.
24212         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
24213         operand predicate.
24215 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24216             Jakub Jelinek  <jakub@redhat.com>
24218         PR middle-end/64729
24219         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
24220         for !TARGET_LIBC_PROVIDES_SSP version and
24221         -fstack-protector-{all,strong,explicit} otherwise.
24222         * config/freebsd.h (LINK_SSP_SPEC): Handle
24223         -fstack-protector-{strong,explicit}.
24225 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
24226             H.J. Lu  <hongjiu.lu@intel.com>
24228         PR ipa/64694
24229         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
24230         heap.
24232 2015-01-22  Wei Mi  <wmi@google.com>
24234         PR rtl-optimization/64557
24235         * dse.c (record_store): Call get_addr for mem_addr.
24236         (check_mem_read_rtx): Likewise.
24238 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24240         * fold-const.c (const_binop): Add early return for non-tcc_binary.
24242 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
24244         * toplev.c (init_local_tick): Process the failure when read
24245         fails for random_seed.
24247         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
24248         'pretty_name' to avoid memory overflow.
24250 2015-01-22  Richard Biener  <rguenther@suse.de>
24252         PR middle-end/64728
24253         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
24254         abnormal coalescing on undefined SSA names.
24256 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
24258         PR target/64688
24259         PR target/64477
24260         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
24261         for alternative 3.
24262         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
24264 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
24266         PR middle-end/63325
24267         * fold-const.c (fold_checksum_tree): Don't include value of
24268         expr->decl_with_vis.symtab_node in the checksum.
24270 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24272         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
24274 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24276         PR driver/64690
24277         * gcc.c (insert_comments): New function.
24278         (try_generate_repro): Call it.
24279         (append_text): Removed.
24281 2015-01-22  Richard Biener  <rguenther@suse.de>
24283         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
24284         with IL incompatible options.  Properly honor user optimize
24285         attributes.
24287 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
24289         PR rtl-optimization/64682
24290         * combine.c (distribute_notes): When moving a death note for
24291         a register that is set in the new I2, make sure to put it
24292         before that new I2.
24294 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
24296         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
24297         not TARGET_DEFAULT.
24299 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
24301         PR debug/64511
24302         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
24303         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
24304         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
24306         PR sanitizer/64706
24307         * doc/invoke.texi (-fsanitize=vptr): Document.
24309         PR rtl-optimization/62078
24310         * dse.c: Include cfgcleanup.h.
24311         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
24312         anything call purge_all_dead_edges and cleanup_cfg at the end
24313         of the pass.
24315 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
24317         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
24318         edges.
24320 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24322         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
24323         decl attribute.
24325 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24326             Tejas Belagod <Tejas.Belagod@arm.com>
24328         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
24329         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
24330         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
24331         Removed.
24333 2015-01-21  David Sherwood  <david.sherwood@arm.com>
24334             Tejas Belagod <Tejas.Belagod@arm.com>
24336         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
24337         (aarch64_reverse_mask): New decls.
24338         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
24339         (insn_count): New mode_attr.
24340         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
24341         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
24342         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
24343         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
24344         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
24345         (aarch64_simd_st4): New patterns.
24346         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
24347         (aarch64_reverse_mask): New functions.
24349 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
24351         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
24352         Declare.
24353         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
24354         addressing modes for BE.
24355         (aarch64_print_operand): Add 'R' specifier.
24356         (aarch64_simd_disambiguate_copy): Delete.
24357         (aarch64_simd_emit_reg_reg_move): New function.
24358         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
24359         in define_splits for structural moves.
24360         (mov<mode>): Use less restrictive predicates.
24361         (*aarch64_mov<mode>): Simplify and only allow for LE.
24362         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
24364 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
24366         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
24368 2015-01-21  Richard Henderson  <rth@redhat.com>
24370         PR target/64669
24371         * ccmp.c (used_in_cond_stmt_p): Remove.
24372         (expand_ccmp_expr): Don't use it.
24374 2015-01-21  Nick Clifton  <nickc@redhat.com>
24376         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
24377         PARALLELs.
24379 2015-01-21  Richard Biener  <rguenther@suse.de>
24381         PR middle-end/64313
24382         * tree-core.h (builtin_info, builtin_info_type): Turn from
24383         an object with two arrays into an array of an object with
24384         decl and two flags, implicit_p and declared_p.
24385         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
24386         set_builtin_decl, set_builtin_decl_implicit_p,
24387         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
24388         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
24389         * builtins.c (builtin_info): Adjust.
24390         * gimplify.c (gimplify_addr_expr): References to builtins
24391         that have been declared by the user makes them eligible for
24392         use by the compiler.  Call set_builtin_decl_implicit_p on them.
24394 2015-01-20  Jeff Law  <law@redhat.com>
24396         PR target/59946
24397         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
24398         allow pc-relative addresses in operand predicates or constraints.
24400 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
24402         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
24403         neon on aarch32 processors for stringops.
24405 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24407         PR ipa/63576
24408         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
24410 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24412         PR lto/45375
24413         * ipa-inline.c: Include lto-streamer.h
24414         (report_inline_failed_reason): Output source file differences and
24415         flags on optimization/target node mismatch.
24416         (can_inline_edge_p): Consider caller to be the outer inline function;
24417         be less restrictive about matching opimize and optimize_size attributes.
24418         (inline_account_function_p): Break out from ...
24419         (inline_small_functions): ... here.
24420         * ipa-inline-transform.c (clone_inlined_nodes): Use
24421         inline_account_function_p.
24422         (inline_call): Use optimize attribution; use inline_account_function_p.
24423         (inline_transform): Use opt_for_fn.
24424         * ipa-inline.h (inline_account_function_p): Declare.
24426 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
24428         PR debug/64663
24429         * dwarf2out.c (decl_piece_node): Don't put bitsize into
24430         mode if bitsize <= 0.
24431         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
24432         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
24433         sizes and positions.
24435 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
24437         * config/nios2/nios2.c (nios2_asm_file_end): Implement
24438         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
24439         needed.
24440         (TARGET_ASM_FILE_END): Define.
24442 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24444         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
24445         (struct tune_params): Use the enum.
24446         * arm.c (arm_*_tune): Update.
24447         (arm_option_override): Update.
24449 2015-01-20  Richard Biener  <rguenther@suse.de>
24451         PR ipa/64684
24452         * ipa-reference.c (add_static_var): Inline ...
24453         (analyze_function): ... here after splitting out from ...
24454         (is_proper_for_analysis): ... this.
24456 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
24458         PR target/64149
24459         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
24460         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
24461         replace the conditional with it's true branch.
24462         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
24463         (arm_lra_p): Remove.
24465 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
24467         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
24469 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24471         * config/tilegx/mul-tables.c: Move symtab.h include after
24472         coretypes.h include.
24473         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
24474         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
24475         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
24476         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
24477         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24479 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
24481         PR bootstrap/64676
24482         Revert:
24483         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24485         PR rtl-optimization/64081
24486         * loop-iv.c (def_pred_latch_p): New function.
24487         (latch_dominating_def): Allow specific cases with non-single
24488         definitions.
24489         (iv_get_reaching_def): Likewise.
24490         (check_complex_exit_p): New function.
24491         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24492         with exits not executing on any iteration.
24494 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24496         PR lto/45375
24497         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
24498         to set branch cost.
24500 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24502         PR lto/45375
24503         * i386.c (gate): Check flag_expensive_optimizations and
24504         optimize_size.
24505         (ix86_option_override_internal): Drop optimize_size condition
24506         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
24507         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
24508         MASK_PREFER_AVX128.
24509         (ix86_avx256_split_vector_move_misalign,
24510         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
24511         * sse.md (all uses of TARGET_PREFER_AVX128): Add
24512         optimize_insn_for_speed_p check.
24514 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
24516         * config/mips/mips.h (FP_ASM_SPEC): New define.
24517         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
24518         instead.
24520 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
24522         PR target/53988
24523         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
24524         nullptr for insn when reaching the first insn.
24525         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
24526         (sh_insn_operands_modified_between_p): Add nullptr check.
24527         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
24528         sign extending mem load if the insn contains any UNSPEC or
24529         UNSPEC_VOLATILE.
24531 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24533         * params.def (inline-unit-growth): Drop to 15%.
24534         * invoke.texi (inline-unit-growth): Document change.
24536 2015-01-19  Martin Liska  <mliska@suse.cz>
24538         PR ipa/64668
24539         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
24540         function for second argument of OBJ_TYPE_REF.
24542 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24544         PR ipa/64218
24545         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
24546         whether function is an alias.
24548 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
24550         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
24551         cases.
24553 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
24555         PR rtl-optimization/64671
24556         * lra-remat.c (operand_to_remat): Don't consider jump and call
24557         insns.
24559 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
24561         PR target/59828
24562         * config/rs6000/default64.h: Include rs6000-cpus.def.
24563         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
24564         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
24565         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
24566         and POWER8.
24567         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
24568         POWER8.
24569         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
24570         pseudo-op to specify assembler dialect.
24572 2015-01-19  Martin Liska  <mliska@suse.cz>
24574         PR ipa/64664
24575         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
24576         Handle safe potentially removed nodes during filtering.
24578 2015-01-19  Martin Liska  <mliska@suse.cz>
24580         * doc/extend.texi (no_icf): Add new attribute description.
24581         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
24582         where the pass attempts to merge a function with no_icf attribute.
24584 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24586         PR target/64532
24587         * doc/md.texi (ARM Options): Document register constraints.
24589 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
24590             Andrew Pinski  <apinski@cavium.com>
24592         PR target/64304
24593         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
24594         (ashl<mode>3): Don't expand if operands[2] is not constant.
24596 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24598         PR target/64448
24599         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
24600         Match xor-and-xor RTL pattern.
24602 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
24604         PR rtl-optimization/64081
24605         * loop-iv.c (def_pred_latch_p): New function.
24606         (latch_dominating_def): Allow specific cases with non-single
24607         definitions.
24608         (iv_get_reaching_def): Likewise.
24609         (check_complex_exit_p): New function.
24610         (check_simple_exit): Use check_complex_exit_p to allow certain cases
24611         with exits not executing on any iteration.
24613 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
24615         * common.opt (fgraphite): Fix a typo.
24617 2015-01-19  Felix Yang  <felix.yang@huawei.com>
24619         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
24620         pattern.
24621         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
24622         uminp, smax_nanp, smin_nanp): New builtins.
24623         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
24624         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
24625         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
24626         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
24627         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
24628         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
24629         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
24630         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
24631         vpminnms_f32): Rewrite using builtin functions.
24633 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
24635         PR libgomp/64625
24636         * omp-low.c (offload_symbol_decl): Remove variable.
24637         (get_offload_symbol_decl): Remove function.
24638         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
24639         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
24640         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
24641         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
24642         BUILT_IN_GOACC_UPDATE don't pass it at all.
24644 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24646         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
24647         callers.
24649 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24651         * ipa-chkp.c (chkp_produce_thunks): Add early param
24652         to split thunks production into two passes.  Keep
24653         'always_inline' function bodies after the first pass.
24654         (pass_data_ipa_chkp_early_produce_thunks): New.
24655         (pass_ipa_chkp_early_produce_thunks): New.
24656         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
24657         chkp_produce_thunks signature.
24658         (make_pass_ipa_chkp_early_produce_thunks): New.
24659         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
24660         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
24661         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
24663 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24665         * cgraph.c (cgraph_node::dump): Dump profile flags.
24667 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
24669         PR target/64652
24670         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
24671         reg appear first in the parallel.
24673 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24675         * ipa-reference.c (set_reference_optimization_summary,
24676         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
24677         disabled.
24678         (ignore_module_statics): New static var.
24679         (propagate_bits): If ipa-reference is disabled, do not look into local
24680         properties.
24681         (analyze_function): Disable analysis when ipa_reference is disabled.
24682         (generate_summary): Do not dump when reference is disabled;
24683         collect vars accessed from functions with ipa-reference disabled.
24684         (get_read_write_all_from_node): When ipa-reference is disabled, use the
24685         node flags.
24686         (gate): Enable for LTO.
24687         (ignore_edge_p): New function.
24688         (propagate): Skip functions w/o ipa-reference analysis.
24689         * optc-save-gen.awk: Handle optimize_debug correctly.
24690         * opth-gen.awk: Likewise.
24691         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
24692         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
24693         fira-share-save-slots, fira-share-spill-slots,
24694         fmodulo-sched-allow-regmoves, fpartial-inlining,
24695         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
24696         ftracer, ftree-parallelize-loops, fassociative-math,
24697         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
24698         Optimization
24699         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
24700         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
24701         Optimization.
24702         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
24703         Fix for IPA.
24705 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
24707         PR ipa/64378
24708         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
24709         flag correctly.
24710         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
24712 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
24714         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
24715         Remove duplicate option listings.
24717 2015-01-18  Felix Yang  <felix.yang@huawei.com>
24719         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
24720         (autofdo_source_profile::get_callsite_total_count,
24721         function_instance::get_function_instance_by_decl,
24722         string_table::get_index, string_table::get_index_by_decl,
24723         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
24724         Fix comment typos. Reformatting and minor code rearrangement.
24726 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24728         * config/rs6000/rs6000.md (probe_stack): Delete.
24729         (probe_stack_address): New.
24731 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24733         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
24734         to test for 32-bit ABIs, not !TARGET_POWERPC64.
24736 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
24738         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
24739         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
24740         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
24741         snafu.
24742         (rs6000_libcall_value): Use the new function.
24744 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
24746         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
24748 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24750         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
24751         implement a more precise life analysis for it during backward scan.
24753 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
24755         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
24757 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
24759         PR rtl-optimization/52773
24760         * calls.c (emit_library_call_value): When pushing arguments use
24761         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
24762         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
24763         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
24765 2015-01-17  Jeff Law  <law@redhat.com>
24767         PR rtl-optimization/32790
24768         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
24769         not ZERO_EXTEND in SET_DESTs.
24771 2015-01-17  Alan Modra  <amodra@gmail.com>
24773         * cprop.c (do_local_cprop): Revert last change.
24775 2015-01-16  DJ Delorie  <dj@redhat.com>
24776             Nick Clifton  <nickc@redhat.com>
24778         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
24779         (addhi3_real): Likewise.  Fix [HL+0] syntax.
24780         (subqi3_real): Likewise.
24781         (subhi3_real): Likewise.
24782         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
24783         (cbranchhi4_real): Likewise.
24784         (cbranchhi4_real_inverted): Likewise.
24785         (cbranchsi4_real_lt): Likewise.
24786         (cbranchsi4_real_ge): Likewise.
24787         (cbranchsi4_real_ge): Likewise.
24788         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
24789         (sub<mode>3_virt): Likewise.
24790         (cbranchqi4_virt): Likewise.
24791         (cbranchhi4_virt): Likewise.
24792         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
24793         always use '[reg+imm]' even when imm is zero.
24794         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
24795         (rl78_general_operand): New.
24796         (rl78_nonimmediate_operand): New.
24797         (rl78_nonfar_operand): Use them.
24798         (rl78_nonfar_nonimm_operand): Likewise.
24799         (rl78_stack_based_mem): Fix.
24800         * config/rl78/constraints.md (Ibqi): New.
24801         (IBqi): New.
24802         (Wsa): New.
24803         (Wsf): New.
24804         (Cs1): Fix.
24805         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
24806         (iorqi3): Likewise.
24807         (xorqi3): Likewise.
24808         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
24810         * config/rl78/constrains (Qs8): New constraint.
24811         * config/rl78/rl78.c (rl78_flags_already_set): New function.
24812         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
24813         * config/rl78/rl78-real.md (update_Z): New attribute.
24814         Update patterns to set it.
24815         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
24816         shorter compare and branch sequence can be used.
24817         (cbranchhi4_real): Likewise.
24818         (cbranchhi4_real_inverted): Likewise.
24820         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
24821         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
24822         address space.
24823         * config/rl78/rl78.c (rl78_get_name_encoding): New.
24824         (rl78_option_override): Allow -mes0 only if C.
24825         (characterize_address): Support subregs of symbol_refs.
24826         (rl78_addr_space_address_mode): Move.  Add __near.
24827         (rl78_far_p): Likewise.
24828         (rl78_addr_space_pointer_mode): Likewise.
24829         (rl78_as_legitimate_address): Likewise.
24830         (rl78_addr_space_subset_p): Likewise.
24831         (rl78_addr_space_convert): Likewise.
24832         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
24833         symbols with -mes0.
24834         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
24835         addressing.
24836         (rl78_alloc_physical_registers_op1): Change logic to prefer
24837         symbol[BC] addressing.
24838         (frodata_section): New.
24839         (rl78_asm_init_sections): Initialize it.
24840         (rl78_select_section): Put __far readonly symbols in .frodata.
24841         (rl78_make_type_far): New.
24842         (rl78_insert_attributes): Force all readonly symbols to be
24843         __far when -mes0.
24844         (rl78_asm_out_integer): New.
24845         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
24846         * config/rl78/rl78.opt (-mes0): New.
24848         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
24849         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24850         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24851         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
24852         (rl78_saddr_p): New.
24853         (rl78_output_aligned_common): New.
24854         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
24855         (rl78_handle_saddr_attribute): New.
24856         (rl78_handle_naked_attribute): New.
24857         (rl78_attribute_table): Add saddr.
24858         (rl78_print_operand_1): Don't print '!' on saddr operands.
24859         (rl78_print_operand_1): Strip encodings.
24860         (rl78_sfr_p): New.
24861         (rl78_strip_name_encoding): New.
24862         (rl78_attrlist_to_encoding): New.
24863         (rl78_encode_section_info): New.
24864         (rl78_asm_init_sections): New.
24865         (rl78_select_section): New.
24866         (rl78_output_labelref): New.
24867         (rl78_output_aligned_common): New.
24868         (rl78_asm_out_integer): New.
24869         (rl78_asm_ctor_dtor): New.
24870         (rl78_asm_constructor): New.
24871         (rl78_asm_destructor): New.
24873         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
24874         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
24875         (transcode_memory_rtx): Update.
24876         (rl78_expand_epilogue): Use A_REG instead of 0.
24878 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24880         * config/arm/arm-protos.h (struct tune_params): New field
24881         sched_autopref_queue_depth.
24882         * config/arm/arm.c (sched-int.h): Include header.
24883         (arm_first_cycle_multipass_dfa_lookahead_guard,)
24884         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
24885         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
24886         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
24887         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
24888         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
24889         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
24890         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
24891         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
24892         * config/arm/t-arm (arm.o): Update.
24893         * haifa-sched.c (update_insn_after_change): Update.
24894         (rank_for_schedule): Use auto-prefetcher model, if requested.
24895         (autopref_multipass_init): New static function.
24896         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
24897         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
24898         variable for debug dumps.
24899         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
24900         (autopref_multipass_dfa_lookahead_guard): New global function that
24901         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
24902         (init_h_i_d): Update.
24903         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
24904         * sched-int.h (enum autopref_multipass_data_status): New const enum.
24905         (autopref_multipass_data_): Structure for auto-prefetcher data.
24906         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
24907         (struct _haifa_insn_data:autopref_multipass_data): New field.
24908         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
24909         (autopref_multipass_dfa_lookahead_guard): Declare.
24911 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24913         * rtlanal.c (get_base_term): Handle SCRATCH.
24915 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24917         * config/aarch64/aarch64.c
24918         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
24919         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24920         * config/arm/arm.c
24921         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
24922         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
24924 2015-01-17  Alan Modra  <amodra@gmail.com>
24926         * cprop.c (do_local_cprop): Disallow replacement of fixed
24927         hard registers.
24929 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24931         PR target/62066
24932         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
24933         early return 0.
24935 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24937         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
24938         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
24940 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24942         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
24943         * config/arm/thumb1.md: ... Here.
24945 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24947         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
24948         TImode for TARGET_32BIT.
24950 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24952         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
24953         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
24954         as ...
24955         (rs6000_abi_word_mode): New function.
24957 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24959         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
24960         instead of UNITS_PER_WORD to describe the size of stack slots.
24962 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24964         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
24965         as rs6000_promote_function_mode.  Move comment to there.
24966         (rs6000_promote_function_mode): New function.
24968 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
24970         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
24971         -mpowerpc64 is active.
24973 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
24975         PR middle-end/64353
24976         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
24977         virtuals on start.
24979 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
24981         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
24982         introduced in revision 219724.
24984 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24985             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24987         PR target/64263
24988         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
24989         destination is not a GP reg.
24990         (*movdi_aarch64): Likewise.
24992 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
24994         PR target/64623
24995         * config/rs6000/default64.h: Revert ISA change.
24997 2015-01-16  Richard Biener  <rguenther@suse.de>
24999         PR middle-end/64614
25000         * tree-ssa-uninit.c: Include tree-cfg.h.
25001         (MAX_SWITCH_CASES): New define.
25002         (convert_control_dep_chain_into_preds): Handle switch statements.
25003         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
25004         (normalize_one_pred_1): Do not split bit-manipulations.
25005         Record (x & CST).
25007 2015-01-16  Richard Biener  <rguenther@suse.de>
25009         PR tree-optimization/64568
25010         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
25011         complex load rewriting for TARGET_MEM_REFs.
25013 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
25015         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
25017 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
25019         PR target/64149
25020         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
25021         variable.
25022         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
25023         (aarch64_lra_p): Remove.
25025 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25027         PR target/64363
25028         * ipa-chkp.h (chkp_instrumentable_p): New.
25029         * ipa-chkp.c: Include tree-inline.h.
25030         (chkp_instrumentable_p): New.
25031         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
25032         Fix processing of not instrumentable functions.
25033         (chkp_versioning): Use chkp_instrumentable_p. Warn about
25034         not instrumentable functions.
25035         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
25036         chkp_instrumentable_p.
25037         * tree-inline.h (copy_forbidden): New.
25038         * tree-inline.c (copy_forbidden): Not static anymore.
25040 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25042         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
25043         ptr1, ptr2 unused.
25045 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25047         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
25048         type OP_OUT to OP_INOUT.
25050 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25052         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
25053         (high x) y) to y if x and y have the same base.
25055 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25057         * config/arm/cortex-a57.md: New.
25058         * config/aarch64/aarch64.md: Include it.
25059         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
25060         * config/aarch64/aarch64-tune.md: Regenerate.
25062 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
25064         PR target/64015
25065         * ccmp.c (expand_ccmp_next): New function.
25066         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
25067         and compare insn sequence.
25068         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
25069         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
25070         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
25071         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
25072         (*ccmp_ior): Changed to ccmp_ior<mode>.
25073         (cmp<mode>): New pattern.
25074         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
25075         parameters.
25076         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
25078 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
25080         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
25081         _mm256_bsrli_epi128): New.
25082         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
25084 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
25086         * expmed.c (store_bit_field_using_insv): Improve warning message.
25087         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
25089 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
25091         PR rtl-optimization/64011
25092         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
25093         there is partial overflow.
25095 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25097         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
25098         prototype.
25099         (nds32_expand_epilogue_v3pop): Likewise.
25100         * config/nds32/nds32.md (sibcall): Define this for sibling call
25101         optimization.
25102         (sibcall_register): Likewise.
25103         (sibcall_immediate): Likewise.
25104         (sibcall_value): Likewise.
25105         (sibcall_value_register): Likewise.
25106         (sibcall_value_immediate): Likewise.
25107         (sibcall_epilogue): Likewise.
25108         (epilogue): Pass false to indicate this is not a sibcall epilogue.
25109         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
25110         (nds32_expand_epilogue_v3pop): Likewise.
25112 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25114         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
25115         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
25116         (return_internal): New.
25117         (return): Define this named pattern.
25118         (simple_return): Define this named pattern.
25119         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
25120         pattern instead of unspec_volatile_func_return.
25121         (nds32_expand_epilogue_v3pop): Likewise.
25122         (nds32_can_use_return_insn): New function.
25124 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25126         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
25127         * config/nds32/nds32.md (pop25return): New.
25128         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
25129         pop25return pattern.
25131 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25133         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
25134         -mforbid-fp-as-gp, and -mex9 options.
25136 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
25138         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
25139         remove -mgp-direct option.
25141 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25143         * doc/invoke.texi (--param early-inlining-insns): Update default value.
25144         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
25146 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25148         * ipa-inline.c (inline_small_functions): Work around hints
25149         cache issue.
25151 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
25153         PR target/59710
25154         * doc/invoke.texi (Option Summary): Document new Nios II
25155         -mgpopt= syntax.
25156         (Nios II Options): Likewise.
25157         * config/nios2/nios2.opt: Add -mgpopt= option support.
25158         Modify existing -mgpopt and -mno-gpopt options to be aliases.
25159         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
25160         * config/nios2/nios2.c (nios2_option_override): Adjust
25161         -mgpopt defaulting.
25162         (nios2_in_small_data_p): Return true for explicit small data
25163         sections even with -G0.
25164         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
25165         option choices.
25167 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25169         PR ipa/64612
25170         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
25171         of comdat locals.
25172         (inline_call): Fix removal of aliases.
25174 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
25176         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
25177         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
25178         * opts.c (common_handle_option): Add -fsanitize=vptr.
25179         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
25180         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
25181         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
25182         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
25183         (ubsan_expand_vptr_ifn): New prototype.
25184         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
25185         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
25186         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
25187         expand_LOOP_VECTORIZED): Make argument nameless, remove
25188         ATTRIBUTE_UNUSED.
25189         (expand_UBSAN_VPTR): New function.
25190         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
25191         in fn spec.
25192         (UBSAN_VPTR): New internal function.
25193         * sanopt.c (tree_map_traits): Renamed to ...
25194         (sanopt_tree_map_traits): ... this.
25195         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
25196         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
25197         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
25198         (maybe_optimize_ubsan_vptr_ifn): New function.
25199         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
25200         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
25201         -fsanitize=vptr.
25202         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
25203         internal calls like pure functions for aliasing, even when they
25204         have other side-effects that prevent making them ECF_PURE.
25205         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
25206         (ubsan_expand_vptr_ifn): New function.
25208 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
25210         PR rtl-optimization/64110
25211         * stmt.c (parse_output_constraint): Process '^' and '$'.
25212         (parse_input_constraint): Ditto.
25213         * lra-constraints.c (process_alt_operands): Process the new
25214         constraints.
25215         * ira-costs.c (record_reg_classes): Process the new constraint
25216         '^'.
25217         * genoutput.c (indep_constraints): Add '^' and '$'.
25218         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
25219         * doc/md.texi: Add description of the new constraints.
25221 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
25222             Bernd Schmidt  <bernds@codesourcery.com>
25223             Cesar Philippidis  <cesar@codesourcery.com>
25224             James Norris  <jnorris@codesourcery.com>
25225             Tom de Vries  <tom@codesourcery.com>
25226             Ilmir Usmanov  <i.usmanov@samsung.com>
25227             Dmitry Bocharnikov  <dmitry.b@samsung.com>
25228             Evgeny Gavrin  <e.gavrin@samsung.com>
25229             Jakub Jelinek  <jakub@redhat.com>
25231         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
25232         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
25233         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
25234         New function types.
25235         * builtins.c: Include "gomp-constants.h".
25236         (expand_builtin_acc_on_device): New function.
25237         (expand_builtin, is_inexpensive_builtin): Handle
25238         BUILT_IN_ACC_ON_DEVICE.
25239         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
25240         New macros.
25241         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
25242         flag_openmp.
25243         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
25244         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
25245         i386/intelmic-offload.h.
25246         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
25247         to libgomp and its dependencies.
25248         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
25249         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25250         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25251         * config/ia64/hpux.h (LIB_SPEC): Likewise.
25252         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25253         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25254         * doc/generic.texi: Update for OpenACC changes.
25255         * doc/gimple.texi: Likewise.
25256         * doc/invoke.texi: Likewise.
25257         * doc/sourcebuild.texi: Likewise.
25258         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
25259         GF_OMP_FOR_KIND_OACC_LOOP.
25260         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
25261         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
25262         GF_OMP_TARGET_KIND_OACC_UPDATE,
25263         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25264         Dump more data.
25265         * gimple.c: Update comments for OpenACC changes.
25266         * gimple.def: Likewise.
25267         * gimple.h: Likewise.
25268         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
25269         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25270         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
25271         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
25272         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
25273         appropriate place.
25274         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
25275         * gimplify.c: Include "gomp-constants.h".
25276         Update comments for OpenACC changes.
25277         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
25278         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
25279         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25280         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
25281         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25282         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25283         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
25284         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25285         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
25286         OMP_CLAUSE_SEQ.
25287         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
25288         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25289         OMP_CLAUSE_SET_MAP_KIND.
25290         (gimplify_oacc_cache): New function.
25291         (gimplify_omp_for): Handle OACC_LOOP.
25292         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
25293         OACC_DATA.
25294         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
25295         OACC_EXIT_DATA, OACC_UPDATE.
25296         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
25297         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
25298         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
25299         (gimplify_body): Consider flag_openacc next to flag_openmp.
25300         * lto-streamer-out.c: Include "gomp-constants.h".
25301         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
25302         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
25303         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
25304         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
25305         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
25306         (BUILT_IN_ACC_ON_DEVICE): New builtins.
25307         * omp-low.c: Include "gomp-constants.h".
25308         Update comments for OpenACC changes.
25309         (struct omp_context): Add reduction_map, gwv_below, gwv_this
25310         members.
25311         (extract_omp_for_data, use_pointer_for_field, install_var_field)
25312         (new_omp_context, delete_omp_context, scan_sharing_clauses)
25313         (create_omp_child_function, scan_omp_for, scan_omp_target)
25314         (check_omp_nesting_restrictions, lower_reduction_clauses)
25315         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
25316         Update for OpenACC changes.
25317         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
25318         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
25319         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
25320         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
25321         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
25322         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
25323         OMP_CLAUSE_MAP_*.
25324         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25325         Handle GF_OMP_FOR_KIND_OACC_LOOP.
25326         (expand_omp_target, lower_omp_target): Handle
25327         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
25328         GF_OMP_TARGET_KIND_OACC_UPDATE,
25329         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
25330         GF_OMP_TARGET_KIND_OACC_DATA.
25331         (pass_expand_omp::execute, execute_lower_omp)
25332         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
25333         flag_openmp.
25334         (offload_symbol_decl): New variable.
25335         (oacc_get_reduction_array_id, oacc_max_threads)
25336         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
25337         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
25338         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
25339         (oacc_gimple_assign, oacc_initialize_reduction_data)
25340         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
25341         functions.
25342         (is_targetreg_ctx): Remove function.
25343         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
25344         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
25345         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
25346         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
25347         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
25348         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
25349         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
25350         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
25351         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
25352         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
25353         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
25354         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
25355         * tree-core.h: Update comments for OpenACC changes.
25356         (enum omp_clause_map_kind): Remove.
25357         (struct tree_omp_clause): Change type of map_kind member from enum
25358         omp_clause_map_kind to unsigned char.
25359         * tree-inline.c: Update comments for OpenACC changes.
25360         * tree-nested.c: Likewise.  Include "gomp-constants.h".
25361         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
25362         (convert_tramp_reference_stmt, convert_gimple_call): Update for
25363         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
25364         OMP_CLAUSE_SET_MAP_KIND.
25365         * tree-pretty-print.c: Include "gomp-constants.h".
25366         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
25367         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
25368         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
25369         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
25370         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
25371         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
25372         instead of OMP_CLAUSE_MAP_*.
25373         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
25374         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
25375         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
25376         * tree-streamer-in.c: Include "gomp-constants.h".
25377         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
25378         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
25379         * tree-streamer-out.c: Include "gomp-constants.h".
25380         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
25381         OMP_CLAUSE_MAP_*.
25382         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
25383         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
25384         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
25385         * tree.c (omp_clause_num_ops): Update accordingly.
25386         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
25387         Likewise.
25388         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
25389         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
25390         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
25391         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
25392         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
25393         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
25394         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
25395         (OMP_CLAUSE_SET_MAP_KIND): New macro.
25396         * varpool.c (varpool_node::get_create): Consider flag_openacc next
25397         to flag_openmp.
25398         * config/i386/intelmic-offload.h: New file.
25399         * config/nvptx/offload.h: Likewise.
25401 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25403         * explow.h: Remove duplicate contents.
25404         * dojump.h: Likewise.
25406 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
25408         * arm.c (arm_xgene_tune): Add default initializer for instruction
25409         fusion.
25411 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
25413         PR ipa/64068
25414         PR ipa/64559
25415         * ipa.c (symbol_table::remove_unreachable_nodes):
25416         Do not put abstract origins into boundary.
25418 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
25420         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
25421         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
25423 2015-01-15  Steve Ellcey  <sellcey@mips.com>
25425         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
25426         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
25427         builtins.def, and chkp-builtins.def.
25429 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
25431         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
25432         ISA 2.7 (POWER8).
25434 2015-01-15  Richard Biener  <rguenther@suse.de>
25436         PR tree-optimization/61743
25437         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
25438         information on PHIs for some simple cases.
25440 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25442         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
25443         Include xgene1.md.
25444         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
25445         * config/arm/arm-cores.def (xgene1): New entry.
25446         * config/arm/arm-tables.opt: Regenerate.
25447         * config/arm/arm-tune.md: Regenerate.
25448         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
25450 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25452         * tree-if-conv.c: Include hash-map.h.
25453         (aggressive_if_conv): New variable.
25454         (fold_build_cond_expr): Add simplification of non-zero condition.
25455         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
25456         destination block is not always executed.
25457         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
25458         than two predecessors if AGGRESSIVE_IF_CONV is true.
25459         (if_convertible_stmt_p): Fix commentary.
25460         (all_preds_critical_p): New function.
25461         (has_pred_critical_p): New function.
25462         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
25463         BB can have more than two predecessors and all incoming edges can be
25464         critical.
25465         (predicate_bbs): Skip predication for loop exit block, use build2_loc
25466         to compute predicate for true edge.
25467         (find_phi_replacement_condition): Delete this function.
25468         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
25469         Allow interchange PHI arguments if EXTENDED is false.
25470         Change check that block containing reduction statement candidate
25471         is predecessor of phi-block since phi may have more than two arguments.
25472         (phi_args_hash_traits): New helper structure.
25473         (struct phi_args_hash_traits): New type.
25474         (phi_args_hash_traits::hash): New function.
25475         (phi_args_hash_traits::equal_keys): New function.
25476         (gen_phi_arg_condition): New function.
25477         (predicate_scalar_phi): Add handling of phi nodes with more than two
25478         arguments, delete COND and TRUE_BB arguments, insert body of
25479         find_phi_replacement_condition to predicate ordinary phi nodes.
25480         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
25481         delete call of find_phi_replacement_condition and invoke
25482         predicate_scalar_phi with two arguments.
25483         (insert_gimplified_predicates): Add assert that non-predicated block
25484         don't have statements to insert.
25485         (ifcvt_split_critical_edges): New function.
25486         (ifcvt_split_def_stmt): Likewise.
25487         (ifcvt_walk_pattern_tree): Likewise.
25488         (stmt_is_root_of_bool_pattern): Likewise.
25489         (ifcvt_repair_bool_pattern): Likewise.
25490         (ifcvt_local_dce): Likewise.
25491         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
25492         is copy of inner or outer loop force_vectorize field, invoke
25493         ifcvt_split_critical_edges, ifcvt_local_dce and
25494         ifcvt_repair_bool_pattern for aggressive if-conversion.
25496 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
25498         * config/aarch64/aarch64.md: Include xgene1.md.
25499         * config/aarch64/xgene1.md: New file.
25501 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25503         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
25504         xgene1 (APM XGene-1) core definition.
25505         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
25506         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
25507         * doc/invoke.texi: Document -mcpu=xgene1.
25509 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25511         * dojump.h: New header file.
25512         * explow.h: Likewise.
25513         * expr.h: Remove includes.
25514         Move expmed.c prototypes to expmed.h.
25515         Move dojump.c prototypes to dojump.h.
25516         Move alias.c prototypes to alias.h.
25517         Move explow.c prototypes to explow.h.
25518         Move calls.c prototypes to calls.h.
25519         Move emit-rtl.c prototypes to emit-rtl.h.
25520         Move varasm.c prototypes to varasm.h.
25521         Move stmt.c prototypes to stmt.h.
25522         (saved_pending_stack_adjust): Move to dojump.h.
25523         (adjust_address): Move to explow.h.
25524         (adjust_address_nv): Move to emit-rtl.h.
25525         (adjust_bitfield_address): Likewise.
25526         (adjust_bitfield_address_size): Likewise.
25527         (adjust_bitfield_address_nv): Likewise.
25528         (adjust_automodify_address_nv): Likewise.
25529         * explow.c (expr_size): Move to expr.c.
25530         (int_expr_size): Likewise.
25531         (tree_expr_size): Likewise.
25532         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25533         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25534         * genemit.c (main): Generate includes statistics.h, real.h,
25535         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
25536         stmt.h.
25537         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
25538         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
25539         explow.h, emit-rtl.h, stmt.h.
25540         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
25541         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
25542         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
25543         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
25544         emit-rtl.h, varasm.h, stmt.h.
25545         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
25546         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
25547         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
25548         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
25549         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25550         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
25551         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
25552         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
25553         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
25554         tm.h tree.h varasm.h vec.h wide-int.h.
25555         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25556         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25557         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
25558         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
25559         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
25560         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
25561         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
25562         * loop-iv.c: Likewise.
25563         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
25564         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
25565         statistics.h stmt.h tree.h varasm.h wide-int.h.
25566         * lra-constraints.c: Likewise.
25567         * lra-eliminations.c: Likewise.
25568         * lra-lives.c: Likewise.
25569         * lra-remat.c: Likewise.
25570         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25571         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
25572         statistics.h stmt.h tree.h varasm.h wide-int.h.
25573         * hw-doloop.c: Likewise.
25574         * ira-color.c: Likewise.
25575         * ira-emit.c: Likewise.
25576         * loop-doloop.c: Likewise.
25577         * loop-invariant.c: Likewise.
25578         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25579         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
25580         statistics.h stmt.h tree.h varasm.h wide-int.h.
25581         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
25582         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
25583         statistics.h stmt.h tree.h varasm.h wide-int.h.
25584         * combine-stack-adj.c: Likewise.
25585         * cse.c: Likewise.
25586         * ddg.c: Likewise.
25587         * ifcvt.c: Likewise.
25588         * ira-costs.c: Likewise.
25589         * jump.c: Likewise.
25590         * lra-coalesce.c: Likewise.
25591         * lra-spills.c: Likewise.
25592         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25593         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
25594         stmt.h varasm.h wide-int.h.
25595         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
25596         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25597         varasm.h.
25598         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
25599         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
25600         statistics.h stmt.h varasm.h wide-int.h.
25601         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
25602         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
25603         varasm.h wide-int.h.
25604         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
25605         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25606         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
25607         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
25608         statistics.h stmt.h.
25609         * config/tilepro/tilepro.c: Likewise.
25610         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
25611         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
25612         * config/pdp11/pdp11.c: Likewise.
25613         * config/xtensa/xtensa.c: Likewise.
25614         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
25615         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
25616         varasm.h.
25617         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25618         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25619         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
25620         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25621         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
25622         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
25623         * rtl-chkp.c: Likewise.
25624         * tree-chkp-opt.c: Likewise.
25625         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
25626         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
25627         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
25628         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25629         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25630         statistics.h stmt.h.
25631         * tree-vect-data-refs.c: Likewise.
25632         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
25633         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25634         rtl.h statistics.h stmt.h varasm.h.
25635         * internal-fn.c: Likewise.
25636         * ipa-icf-gimple.c: Likewise.
25637         * lto-section-out.c: Likewise.
25638         * tree-data-ref.c: Likewise.
25639         * tree-nested.c: Likewise.
25640         * tree-outof-ssa.c: Likewise.
25641         * tree-predcom.c: Likewise.
25642         * tree-pretty-print.c: Likewise.
25643         * tree-scalar-evolution.c: Likewise.
25644         * tree-ssa-strlen.c: Likewise.
25645         * tree-vect-loop.c: Likewise.
25646         * tree-vect-patterns.c: Likewise.
25647         * tree-vect-slp.c: Likewise.
25648         * tree-vect-stmts.c: Likewise.
25649         * tsan.c: Likewise.
25650         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25651         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
25652         stmt.h.
25653         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
25654         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25655         statistics.h stmt.h varasm.h.
25656         * loop-unroll.c: Likewise.
25657         * ubsan.c: Likewise.
25658         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
25659         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
25660         stmt.h varasm.h.
25661         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25662         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
25663         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
25664         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25665         statistics.h stmt.h.
25666         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
25667         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
25668         statistics.h stmt.h varasm.h.
25669         * gimple-match-head.c: Likewise.
25670         * lto-cgraph.c: Likewise.
25671         * lto-section-in.c: Likewise.
25672         * lto-streamer-in.c: Likewise.
25673         * lto-streamer-out.c: Likewise.
25674         * tree-affine.c: Likewise.
25675         * tree-cfg.c: Likewise.
25676         * tree-cfgcleanup.c: Likewise.
25677         * tree-if-conv.c: Likewise.
25678         * tree-into-ssa.c: Likewise.
25679         * tree-ssa-alias.c: Likewise.
25680         * tree-ssa-copyrename.c: Likewise.
25681         * tree-ssa-dse.c: Likewise.
25682         * tree-ssa-forwprop.c: Likewise.
25683         * tree-ssa-live.c: Likewise.
25684         * tree-ssa-math-opts.c: Likewise.
25685         * tree-ssa-pre.c: Likewise.
25686         * tree-ssa-sccvn.c: Likewise.
25687         * tree-tailcall.c: Likewise.
25688         * tree-vect-generic.c: Likewise.
25689         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25690         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
25691         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25692         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
25693         * varasm.c: Likewise.
25694         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25695         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
25696         varasm.h.
25697         * init-regs.c: Likewise.
25698         * ira.c: Likewise.
25699         * omp-low.c: Likewise.
25700         * stack-ptr-mod.c: Likewise.
25701         * tree-ssa-reassoc.c: Likewise.
25702         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25703         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
25704         varasm.h.
25705         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25706         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
25707         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25708         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
25709         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25710         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
25711         * tree-ssa-phiopt.c: Likewise.
25712         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25713         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25714         * config/fr30/fr30.c: Likewise.
25715         * config/frv/frv.c: Likewise.
25716         * expr.c: Likewise.
25717         * final.c: Likewise.
25718         * optabs.c: Likewise.
25719         * passes.c: Likewise.
25720         * simplify-rtx.c: Likewise.
25721         * stmt.c: Likewise.
25722         * toplev.c: Likewise.
25723         * var-tracking.c: Likewise.
25724         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25725         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25726         * lower-subreg.c: Likewise.
25727         * postreload-gcse.c: Likewise.
25728         * ree.c: Likewise.
25729         * reginfo.c: Likewise.
25730         * store-motion.c: Likewise.
25731         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25732         fixed-value.h hashtab.h real.h stmt.h varasm.h.
25733         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25734         fixed-value.h hashtab.h statistics.h stmt.h.
25735         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25736         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
25737         * except.c: Likewise.
25738         * explow.c: Likewise.
25739         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25740         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
25741         varasm.h.
25742         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25743         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
25744         * tree-ssa-structalias.c: Likewise.
25745         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25746         fixed-value.h insn-config.h real.h statistics.h.
25747         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25748         fixed-value.h insn-config.h real.h statistics.h stmt.h.
25749         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25750         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25751         * cfgbuild.c: Likewise.
25752         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25753         fixed-value.h real.h rtl.h statistics.h stmt.h.
25754         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25755         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25756         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25757         fixed-value.h real.h statistics.h stmt.h.
25758         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
25759         fixed-value.h real.h statistics.h stmt.h varasm.h.
25760         * cprop.c: Likewise.
25761         * modulo-sched.c: Likewise.
25762         * postreload.c: Likewise.
25763         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25764         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
25765         statistics.h stmt.h varasm.h.
25766         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
25767         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25768         rtl.h statistics.h stmt.h varasm.h.
25769         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
25770         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
25771         varasm.h.
25772         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
25773         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
25774         varasm.h.
25775         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
25776         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
25777         varasm.h.
25778         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
25779         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25780         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25781         function.h real.h statistics.h stmt.h varasm.h.
25782         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25783         insn-config.h real.h statistics.h stmt.h.
25784         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
25785         statistics.h stmt.h.
25786         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
25787         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
25788         statistics.h stmt.h varasm.h.
25789         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
25790         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
25791         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25792         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
25793         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
25794         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
25795         statistics.h stmt.h varasm.h.
25796         * ipa-polymorphic-call.c: Likewise.
25797         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
25798         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25799         statistics.h stmt.h.
25800         * config/c6x/c6x.c: Likewise.
25801         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
25802         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
25803         statistics.h stmt.h varasm.h.
25804         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
25805         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
25806         stmt.h varasm.h.
25807         * ipa-split.c: Likewise.
25808         * tree-eh.c: Likewise.
25809         * tree-ssa-dce.c: Likewise.
25810         * tree-ssa-loop-niter.c: Likewise.
25811         * tree-vrp.c: Likewise.
25812         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
25813         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
25814         stmt.h.
25815         * config/nds32/nds32-fp-as-gp.c: Likewise.
25816         * config/nds32/nds32-intrinsic.c: Likewise.
25817         * config/nds32/nds32-isr.c: Likewise.
25818         * config/nds32/nds32-md-auxiliary.c: Likewise.
25819         * config/nds32/nds32-memory-manipulation.c: Likewise.
25820         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25821         * config/nds32/nds32-predicates.c: Likewise.
25822         * config/nds32/nds32.c: Likewise.
25823         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
25824         fixed-value.h hashtab.h real.h statistics.h.
25825         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
25826         fixed-value.h hashtab.h real.h statistics.h stmt.h.
25827         * config/arm/arm.c: Likewise.
25828         * config/avr/avr.c: Likewise.
25829         * config/bfin/bfin.c: Likewise.
25830         * config/h8300/h8300.c: Likewise.
25831         * config/i386/i386.c: Likewise.
25832         * config/ia64/ia64.c: Likewise.
25833         * config/iq2000/iq2000.c: Likewise.
25834         * config/m32c/m32c.c: Likewise.
25835         * config/m32r/m32r.c: Likewise.
25836         * config/m68k/m68k.c: Likewise.
25837         * config/mcore/mcore.c: Likewise.
25838         * config/mep/mep.c: Likewise.
25839         * config/mips/mips.c: Likewise.
25840         * config/mn10300/mn10300.c: Likewise.
25841         * config/moxie/moxie.c: Likewise.
25842         * config/pa/pa.c: Likewise.
25843         * config/rl78/rl78.c: Likewise.
25844         * config/rx/rx.c: Likewise.
25845         * config/s390/s390.c: Likewise.
25846         * config/sh/sh.c: Likewise.
25847         * config/sparc/sparc.c: Likewise.
25848         * config/spu/spu.c: Likewise.
25849         * config/stormy16/stormy16.c: Likewise.
25850         * config/v850/v850.c: Likewise.
25851         * config/vax/vax.c: Likewise.
25852         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
25853         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
25854         * config/msp430/msp430.c: Likewise.
25855         * predict.c: Likewise.
25856         * value-prof.c: Likewise.
25857         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
25858         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
25859         * config/microblaze/microblaze.c: Likewise.
25860         * config/nios2/nios2.c: Likewise.
25861         * config/rs6000/rs6000.c: Likewise.
25862         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25863         insn-config.h real.h rtl.h statistics.h stmt.h.
25864         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
25865         insn-config.h real.h statistics.h stmt.h.
25866         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
25867         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
25868         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
25869         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
25870         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
25871         fixed-value.h real.h statistics.h stmt.h.
25872         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
25873         fixed-value.h statistics.h stmt.h.
25874         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
25875         stmt.h.
25877 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
25879         * gengtype.c (create_user_defined_type): Workaround
25880         -Wmaybe-uninitialized false positives.
25881         * cse.c (fold_rtx): Likewise.
25882         * loop-invariant.c (gain_for_invariant): Likewise.
25884 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25886         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
25887         set the memory attributes in all cases but clear MEM_EXPR if need be.
25889 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
25891         PR tree-optimization/64434
25892         * cfgexpand.c (reorder_operands): New function.
25893         (expand_gimple_basic_block): Insert call of reorder_operands if
25894         optimized is true.
25896 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
25898         * config/mips/micromips.md (*swp): Remove explicit parallel.
25899         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
25900         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
25901         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
25902         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
25903         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
25904         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
25905         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
25906         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
25907         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
25908         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
25909         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
25910         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
25911         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
25912         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
25913         (mips_wrdsp): Likewise.
25914         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
25915         parallel.
25916         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
25917         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
25918         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
25919         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
25920         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
25921         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
25922         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
25923         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
25924         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
25926 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
25928         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
25929         (mips_print_operand): Support 'y' to print exact log2 in decimal
25930         of a const_int.
25931         * config/mips/mips.h (ISA_HAS_LSA): New define.
25932         (ISA_HAS_DLSA): Likewise.
25933         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
25934         * config/mips/predicates.md (const_immlsa_operand): New predicate.
25936 2015-01-15  Martin Liska  <mliska@suse.cz>
25938         PR target/64377
25939         * optc-save-gen.awk: Add support for array types.
25941 2015-01-15  Richard Biener  <rguenther@suse.de>
25943         PR middle-end/64365
25944         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
25945         for MEM_REF access functions with the same base can never partially
25946         overlap.
25948 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
25950         * common.opt: New option -fstack-protector-explicit.
25951         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
25952         (stack_protect_decl_phase): Handle stack_protect attribute for
25953         explicit stack protection requests.
25954         (expand_used_vars): Similarly.
25955         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
25956         * doc/extend.texi: Add documentation for "stack_protect" attribute.
25957         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
25959 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
25961         PR target/53988
25962         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
25963         reg-reg copies.
25964         (sh_extending_set_of_reg): New struct.
25965         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
25966         sh_remove_reg_dead_or_unused_notes): New Declarations.
25967         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
25968         sh_find_extending_set_of_reg, sh_split_tst_subregs,
25969         sh_extending_set_of_reg::use_as_extended_reg): New functions.
25970         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
25971         convert to insn_and_split and use new function sh_split_tst_subregs.
25973 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
25975         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
25976         option.
25977         (Optimization Options): Move -fuse-ld documentation to...
25978         (Link Options): ...here.
25980 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
25982         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
25983         offsets.
25984         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
25985         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
25986         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
25987         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
25988         instead of ZR for the memory operand of LL/SC.
25989         (compare_and_swap_12, sync_add<mode>): Likewise.
25990         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
25991         (sync_new_<optab>_12, sync_nand_12): Likewise.
25992         (sync_old_nand_12, sync_new_nand_12): Likewise.
25993         (sync_sub<mode>, sync_old_add<mode>): Likewise.
25994         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
25995         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
25996         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
25997         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
25998         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
25999         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
26000         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
26001         * doc/md.texi (ZC): Update description.
26003 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26005         * builtins.c (expand_builtin_atomic_exchange): Remove error when
26006         memory model is CONSUME.
26007         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
26008         expand_builtin_atomic_store): Change invalid memory model errors to
26009         warnings.
26010         (expand_builtin_atomic_clear): Change invalid model errors to warnings
26011         and issue warning for CONSUME.
26013 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
26015         * lto-cgraph: Update function comments for
26016         lto_symtab_encoder_encode_*.
26018 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26020         * Makefile.in (site.exp): Do not set ENABLE_LTO.
26022 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26024         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
26025         * lto-cgraph.c (select_what_to_stream): Remove argument, use
26026         lto_stream_offload_p instead.
26027         * lto-streamer.h (select_what_to_stream): Remove argument.
26028         * passes.c (ipa_write_summaries): Likewise.
26029         * tree-pass.h (ipa_write_summaries): Likewise.
26031 2015-01-14  Richard Biener  <rguenther@suse.de>
26033         PR tree-optimization/59354
26034         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
26035         groups larger than the slp group size as having gaps.
26037 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26039         PR middle-end/59448
26040         * builtins.c (get_memmodel): Promote consume to acquire always.
26042 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26044         PR target/64386
26045         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
26046         V32HImode.
26048 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26050         PR target/64393
26051         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
26052         Enable AVX512BW.
26053         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
26054         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
26055         AVX512VBMI, as it implies AVX512BW.
26057 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26059         PR target/64387
26060         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
26061         (vec_unpacks_hi_v16sf): Ditto.
26063 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26065         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
26066         is not available.
26068 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26070         * doc/invoke.texi (mapcs): Mention deprecation.
26071         (mapcs-frame): Likewise.
26073 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26075         PR target/64453
26076         * config/arm/arm.c (callee_saved_reg_p): Define.
26077         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
26078         register is callee saved instead of !call_used_regs[reg].
26079         (thumb1_compute_save_reg_mask): Likewise.
26081 2015-01-14  Hale Wang  <hale.wang@arm.com>
26083         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
26084         Cortex-M7.
26086 2015-01-14  Richard Biener  <rguenther@suse.de>
26088         PR lto/64415
26089         * tree-inline.c (insert_debug_decl_map): Check destination
26090         function MAY_HAVE_DEBUG_STMTS.
26091         (insert_init_debug_bind): Likewise.
26092         (insert_init_stmt): Remove redundant check.
26093         (remap_gimple_stmt): Drop debug stmts if the destination
26094         function has var-tracking assignments disabled.
26096 2015-01-14  Martin Liska  <mliska@suse.cz>
26098         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
26099         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
26101 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26103         PR target/64460
26104         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
26105         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
26107 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26109         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
26110         level from an ARCH; do not inject the default.
26111         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
26112         MIPS_ISA_LEVEL_SPEC.
26113         (MIPS_ISA_NAN2008_SPEC): Update comment.
26114         (BASE_DRIVER_SELF_SPECS): Likewise.
26115         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
26116         MIPS_DEFAULT_ISA_LEVEL_SPEC.
26117         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
26118         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
26119         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
26121 2015-01-14  Richard Biener  <rguenther@suse.de>
26123         PR tree-optimization/64493
26124         PR tree-optimization/64495
26125         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
26126         assign the proper vectorized PHI to the inner loop exit PHIs.
26128 2015-01-14  Joey Ye  <joey.ye@arm.com>
26130         * config/arm/arm.c (arm_compute_save_reg_mask):
26131         Do not save lr in case of tail call.
26132         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
26134 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
26136         * tree-vrp.c (check_array_ref): Emit more warnings
26137         for warn_array_bounds >= 2.
26138         * common.opt: New option -Warray-bounds=.
26139         * doc/invoke.texi: Document -Warray-bounds=.
26141 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
26143         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
26144         (mforbid-fp-as-gp): Remove.
26145         (mex9): Remove.
26146         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
26147         (nds32_symbol_load_store_p): Remove.
26148         (nds32_fp_as_gp_check_available): Clean up implementation.
26149         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
26150         cases.
26151         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
26152         fp-as-gp and ex9 cases.
26154 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26156         * tree-profile.c (init_ic_make_global_vars): Drop workaround
26157         for bintuils bug 14342.
26158         (init_ic_make_global_vars): Likewise.
26159         (gimple_init_edge_profiler): Likewise.
26160         (gimple_gen_ic_func_profiler): Likewise.
26162 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26164         * ipa-inline.c (inline_small_functions): Swap the operands in
26165         enum.
26167 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26169         PR ipa/64481
26170         * ipa-inline-analysis.c (node_growth_cache): Remove.
26171         (initialize_growth_caches): Do not initialize it.
26172         (free_growth_caches): Do not free it.
26173         (do_estimate_growth): Rename to ...
26174         (estimate_growth): ... this one; drop growth cache code.
26175         (growth_likely_positive): Always go the heuristics way.
26176         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
26177         (reset_edge_caches): Do not reset node growth.
26178         (heap_edge_removal_hook): Do not maintain cache.
26179         (inline_small_functions): Likewise; strenghten sanity check.
26180         (ipa_inline): Do not maintain caches.
26181         * ipa-inline.h (node_growth_cache): Remove.
26182         (do_estimate_growth): Remove to ...
26183         (estimate_growth): this one; remove inline version.
26184         (reset_node_growth_cache): Remove.
26186 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
26188         PR ipa/64565
26189         * ipa-inline.c (inline_small_functions): Update callee keys after
26190         resolving speculation
26191         (inline_small_functions): Always check monotonicity of the queue.
26193 2015-01-13  Marek Polacek  <polacek@redhat.com>
26195         PR middle-end/64391
26196         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
26198 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
26200         PR rtl-optimization/64286
26201         * ree.c (combine_reaching_defs): Move part of comment earlier,
26202         remove !SCALAR_INT_MODE_P check.
26203         (add_removable_extension): Don't add vector mode
26204         extensions if all uses of the source register aren't the same
26205         vector extensions.
26207 2015-01-13  Renlin Li  <renlin.li@arm.com>
26209         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
26210         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
26212 2015-01-13  Martin Liska  <mliska@suse.cz>
26214         * ipa-icf.c (sem_function::equals_private): Call new functions
26215         cl_target_option_print_diff and cl_optimization_print_diff.
26216         * optc-save-gen.awk (cl_target_option_print_diff): New function.
26217         (cl_optimization_print_diff): Likewise.
26218         * opth-gen.awk: Likewise.
26220 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
26222         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
26223         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
26224         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
26225         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
26226         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
26227         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
26229 2015-01-13  Andrew Pinski  <apinski@cavium.com>
26231         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
26232         instead of src mode.
26234 2015-01-13  Richard Biener  <rguenther@suse.de>
26236         PR lto/64373
26237         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
26238         DECL_CONTEXT.
26240 2015-01-13  Andrew Pinski  <apinski@cavium.com>
26242         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
26243         volatile mems.
26244         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
26246 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
26248         PR middle-end/63974
26249         * cfgexpand.c (expand_computed_goto): Don't call
26250         convert_memory_address here.
26252 2015-01-13  Richard Biener  <rguenther@suse.de>
26254         PR tree-optimization/64406
26255         * tree-loop-distibution.c (pass_loop_distribution::execute):
26256         Reset the SCEV hashtable if we distributed anything.
26258 2015-01-13  Richard Biener  <rguenther@suse.de>
26260         PR tree-optimization/64404
26261         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
26262         SLP types for CSEd loads.
26264 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26266         PR tree-optimization/64436
26267         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
26268         merge of two symbolic numbers for a bitwise OR to ...
26269         (perform_symbolic_merge): This. Also fix computation of the range and
26270         end of the symbolic number corresponding to the result of a bitwise OR.
26272 2015-01-13  Richard Biener  <rguenther@suse.de>
26274         PR tree-optimization/64568
26275         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
26276         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
26278 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26280         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
26281         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
26283 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26285         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
26286         target-specific symbol_ref flag.
26287         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
26288         resides in rodata section.
26289         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
26290         (nds32_encode_section_info): New function.
26292 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26294         * config/nds32/nds32.md (call): Use pseudo instruction bal which
26295         clobbers TA_REGNUM if large code model is specified.
26296         (call_register): Likewise.
26297         (call_immediate): Likewise.
26298         (call_value): Likewise.
26299         (call_value_register): Likewise.
26300         (call_value_immediate): Likewise.
26302 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26304         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
26305         (TARGET_CMODEL_MEDIUM): New macro.
26306         (TARGET_CMODEL_LARGE): New macro.
26307         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
26308         code model setting in assembly code.
26310 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26312         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26313         Remove MASK_GP_DIRECT flag.
26314         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
26315         one of the multilib default options.
26316         * config/nds32/nds32.opt (mgp-direct): Remove.
26317         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
26318         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
26320 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
26322         * config/nds32/nds32.opt (mcmodel): Add new option.
26323         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
26324         to describe code model.
26326 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
26328         PR target/64479
26329         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
26331 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
26333         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
26334         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26335         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
26336         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
26337         __builtin_sh_set_fpscr.
26339 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26341         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
26342         after a funtion name just to indicate it is a function.
26343         ([-fsanitize-undefined-trap-on-error]): Likewise.
26344         ([-fdbg-cnt=]): Likewise.
26345         ([-mmemcpy]): Likewise.
26346         ([-mflush-func]): Likewise.
26347         ([-msynci]): Likewise.
26349 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
26351         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
26352         example.
26354 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
26356         PR tree-optimization/64563
26357         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
26358         instead of != VR_VARYING.
26360         PR target/64513
26361         * config/i386/i386.c (ix86_expand_prologue): Add
26362         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
26364         PR tree-optimization/64454
26365         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
26366         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
26367         for signed or [0, op1 - 1] for unsigned modulo.
26368         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
26369         even if op1 does not satisfy integer_pow2p.
26371         PR other/64370
26372         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
26374 2015-01-12  Jeff Law  <law@redhat.com>
26376         PR target/64461
26377         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
26378         (trunchiqi2, truncsihi2): Similarly.
26380         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
26381         rather than calling F.
26383 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26385         * tsan.c (instrument_expr): Use force_gimple_operand.
26386         Use may_be_nonaddressable_p instead of is_gimple_addressable.
26388 2015-01-12  Richard Biener  <rguenther@suse.de>
26390         PR tree-optimization/64530
26391         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
26392         back dr1.
26394 2015-01-12  Richard Biener  <rguenther@suse.de>
26396         PR middle-end/64357
26397         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
26398         latches properly.
26400 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26402         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
26403         Cortex-A17 tuning parameters.
26404         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
26406 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26408         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
26409         * config/arm/arm.c (arm_macro_fusion_p): New function.
26410         (arm_macro_fusion_pair_p): Likewise.
26411         (TARGET_SCHED_MACRO_FUSION_P): Define.
26412         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
26413         (ARM_FUSE_NOTHING): Likewise.
26414         (ARM_FUSE_MOVW_MOVT): Likewise.
26415         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
26416         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
26417         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
26418         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
26419         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
26420         arm_cortex_a5_tune): Specify fuseable_ops value.
26422 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
26424         PR bootstrap/64561
26425         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
26426         test for PIE with copy reloc.
26427         * configure: Regenerated.
26429 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26431         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
26432         in gen_rtx_REG.
26433         (arm_tls_descseq_addr): Likewise.
26434         (arm_gen_movmemqi): Likewise.
26435         (arm_expand_epilogue_apcs_frame): Likewise.
26436         (arm_expand_epilogue): Likewise.
26437         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
26438         in gen_rtx_REG.
26440 2015-01-12  Martin Liska  <mliska@suse.cz>
26442         PR ipa/64550
26443         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
26444         volatility for correct operands.
26446 2015-01-12  Martin Liska  <mliska@suse.cz>
26448         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
26449         indication that a function is not leaf.
26450         (sem_function::compare_polymorphic_p): Likewise.
26452 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26454         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
26455         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
26456         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
26457         fold-const.h, tree-check.h.
26459 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26461         PR ipa/63967
26462         PR ipa/64425
26463         * ipa-inline.c (compute_uninlined_call_time,
26464         compute_inlined_call_time): Use counts for extra precision when
26465         needed possible.
26466         (big_speedup_p): Fix formating.
26467         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
26468         (relative_time_benefit): Remove.
26469         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
26470         merge guessed and read profile paths.
26471         (inline_small_functions): Count only !optimize_size functions into
26472         initial size; be more lax about sanity check when profile is used;
26473         be sure to update inlined function profile when profile is read.
26475 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
26477         PR ipa/63470
26478         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
26479         cost when edge becomes direct.
26480         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
26481         is resolved or when introducing new speculation.
26483 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
26485         PR ipa/64551
26486         PR ipa/64552
26487         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
26488         '||' to fix typo issue.
26490         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
26491         accept and return NULL.
26493 2015-01-12  Martin Liska  <mliska@suse.cz>
26495         * cgraph.c (cgraph_edge::remove_callee): Move function to header
26496         file for being inlined.
26497         (cgraph_set_edge_callee): Delete.
26498         (cgraph_edge::redirect_callee): Move function to header file
26499         for being inlined.
26500         (cgraph_edge::make_direct): Use new function.
26501         (cgraph_edge::dump_edge_flags): New function created from
26502         static dump_edge_flags function.
26503         (cgraph_node::dump): Use new function.
26504         (cgraph_edge::verify_count_and_frequency): New function created
26505         from verify_edge_count_and_frequency.
26506         (cgraph_edge::verify_corresponds_to_fndecl): New function created
26507         from verify_edge_corresponds_to_fndecl.
26508         (verify_edge_corresponds_to_fndecl): Delete.
26509         (cgraph_node::verify_node): Use new function.
26510         * cgraph.h (cgraph_edge::set_callee): New function.
26511         (cgraph_edge::dump_edge_flags): Likewise.
26512         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
26514 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
26516         * ipa-utils.c (estimate_function_body_sizes): Do not
26517         free node params when called late with early=true.
26519 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
26521         * doc/md.texi (Instruction Patterns): Rewrite text for
26522         clarity.
26523         (Example): Likewise.
26525 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
26527         * doc/invoke.texi (Option Summary): Break long lines.
26528         [(-fdiagnostics-color)]: Put long literal in @smallexample
26529         instead of inline.
26530         [(-fsanitize-recover)]: Likewise.
26531         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
26532         [(-ffast-math)]: Likewise.
26533         [(--param max-inline-insns-recursive)]: Likewise.
26534         [(--param max-inline-recursive-depth)]: Likewise.
26535         [(-mno-text-section-literals)]: Likewise.
26537 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
26539         * doc/install.texi: Update for libgomp being renamed from "GNU
26540         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
26541         Runtime Library".
26542         * doc/sourcebuild.texi: Likewise.
26544 2015-01-10  Anthony Green  <green@moxielogic.com>
26546         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
26547         mul.x availability for moxiebox configuration.
26549 2015-01-09  Anthony Green  <green@moxielogic.com>
26551         * config/moxie/moxie.md: Tabify assembly output.
26553 2015-01-09  Anthony Green  <green@moxielogic.com>
26555         * config/moxie/moxie.md (CC_REG): Correct register definition.
26557 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
26559         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
26560         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
26561         of log files.
26563 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26565         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
26567 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
26568             Jakub Jelinek  <jakub@redhat.com>
26570         PR middle-end/64412
26571         * lto-streamer.h (lto_stream_offload_p): New declaration.
26572         * lto-streamer.c (lto_stream_offload_p): New variable.
26573         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
26574         at the same time as section_name_prefix.
26575         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
26576         if lto_stream_offload_p.
26577         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
26578         stream TREE_TARGET_OPTION if lto_stream_offload_p.
26579         (write_ts_function_decl_tree_pointers): Don't
26580         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
26581         * tree-streamer-in.c (unpack_value_fields): Don't stream
26582         TREE_TARGET_OPTION in if ACCEL_COMPILER.
26583         (lto_input_ts_function_decl_tree_pointers): Don't stream
26584         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
26585         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
26586         instead of section_name_prefix string comparisons.
26588 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
26590         PR rtl-optimization/64536
26591         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
26592         tablejumps.
26594 2015-01-09  Michael Collison  <michael.collison@linaro.org>
26596         PR tree-optimization/64322
26597         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
26598         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
26600 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26602         PR rtl-optimization/64539
26603         * regcprop.c (kill_clobbered_values): Factor out of ...
26604         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
26605         instead of note_stores with kill_clobbered_value.
26607 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26609          * ginclude/unwind-arm-common.h: Revert previous commit.
26611 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
26613         * config.gcc (arm*-*-freebsd*): New configuration.
26614         * config/arm/freebsd.h: New file.
26615         * config.host: Add extra components for arm*-*-freebsd*.
26616         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
26617         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
26619 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26621         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
26622         for -mcpu=e6500.
26623         * config/rs6000/t-rtems: Add e6500 multilibs.
26625 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26627         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
26628         MPC8540.
26630 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26632         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
26633         MULTILIB_EXCEPTIONS.
26635 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26637         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
26638         MULTILIB_EXCEPTIONS.
26640 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26642         * config/arm/t-rtems-eabi: Rename to...
26643         * config/arm/t-rtems: ...this.
26644         * config/arm/rtems-eabi.h: Rename to...
26645         * config/arm/rtems.h: ...this.
26646         * config.gcc (arm*-*-rtems*): Reflect changes above.
26648 2015-01-09  Richard Biener  <rguenther@suse.de>
26650         PR tree-optimization/64410
26651         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
26652         on the LHS.
26653         (execute_update_addresses_taken): Deal with that.
26654         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
26655         loads/stores for complex variables.
26657 2015-01-09  Martin Liska  <mliska@suse.cz>
26659         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
26660         name comparison.
26661         (func_checker::compare_memory_operand): New function.
26662         (func_checker::compare_operand): Split case to newly
26663         added functions.
26664         (func_checker::compare_cst_or_decl): New function.
26665         (func_checker::compare_gimple_call): Identify
26666         memory operands.
26667         (func_checker::compare_gimple_assign): Likewise.
26668         * ipa-icf-gimple.h: New function.
26670 2015-01-09  Martin Liska  <mliska@suse.cz>
26672         PR ipa/64503
26673         * sreal.c (sreal::dump): Change unsigned format to signed for
26674         m_exp value.
26675         (sreal::to_double): Replace exp2 with scalbln.
26677 2015-01-09  Martin Liska  <mliska@suse.cz>
26679         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
26680         * ipa-icf.c (sem_function::equals_private): Add support for target and
26681         (sem_item_optimizer::merge_classes): Remove redundant function
26682         optimization flags comparison.
26683         * tree.h (target_opts_for_fn): New function.
26685 2015-01-09  Tom de Vries  <tom@codesourcery.com>
26687         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
26689 2015-01-09  Kito Cheng  <kito@0xlab.org>
26691         PR rtl-optimization/64348
26692         * lra-constraints.c (split_reg): Fix caller-save store/restore
26693         instruction generation.
26695 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
26697         PR gcov-profile/61790
26698         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
26699         long long.  Fallback to int64_t if host doesn't have long long and
26700         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
26702 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26704         PR tree-optimization/63989
26705         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
26706         from 1000 to 10000.
26707         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
26708         (get_stridx): If we don't have a record for certain SSA_NAME,
26709         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
26710         constant offset, call get_stridx_plus_constant.
26711         (get_stridx_plus_constant): New function.
26712         (zero_length_string): Don't use get_stridx here.
26714         PR target/55023
26715         PR middle-end/64388
26716         * dse.c (struct insn_info): Mention frame_read set also
26717         before reload for tail calls on some targets.
26718         (scan_insn): Revert 2014-12-22 change.  Set frame_read
26719         also before reload for tail calls if
26720         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
26721         instead of add_non_frame_wild_read for non-const/memset
26722         tail calls after reload.
26724 2015-01-08  Jason Merrill  <jason@redhat.com>
26726         * ubsan.c (do_ubsan_in_current_function): New.
26727         (pass_ubsan::gate): Use it.
26728         * ubsan.h: Declare it.
26729         * convert.c (convert_to_integer): Use it.
26731 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26733         PR target/64338
26734         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
26735         compare_code when it is unconditionally overwritten afterwards.
26736         Use ix86_reverse_condition instead of reverse_condition.  Don't
26737         change code if *reverse_condition* returned UNKNOWN and don't
26738         swap ct/cf and negate diff in that case.
26740 2015-01-08  Mike Stump  <mikestump@comcast.net>
26742         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
26743         (pass_tsan_O0::gate): Likewise.
26744         * extend.texi (Function Attributes): Add no_sanitize_thread
26745         documentation.
26747 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
26749         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
26750         for registering builtins.
26751         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
26752         add -fopenmp to the argv_obstack used when invoking
26753         compile_for_target.
26755         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
26756         add "-m32" or "-m64" to argv_obstack.
26757         (generate_host_descr_file): Likewise, when invoking host_compiler.
26758         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
26759         ld.
26761 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26763         * config/sh/sh-mem.cc: Use constant as second operand when emitting
26764         tstsi_t insns.
26766 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
26768         PR target/55212
26769         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
26770         constant load if constant operand fits into I08.
26772 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
26774         PR sanitizer/64336
26775         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
26776         and TREE_THIS_VOLATILE for MEM_REFs.
26777         (build5_stat): Fix up initialization of TREE_READONLY and
26778         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
26780 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
26782         PR target/64533
26783         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
26784         of r for the second alternative of the destination operand.
26786 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
26788         PR target/36557
26789         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
26791 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26793         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
26794         keywords.
26795         ([-fivar-visibility], [-fvisibility]): Likewise.
26797 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26799         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
26800         the file where @code, @command, etc is more appropriate.
26802 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
26804         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
26805         of -mrecip= documentation.
26807 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26809         PR target/64505
26810         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
26811         correct reload handler if -m32 -mpowerpc64 is used.
26813 2015-01-06  Tom de Vries  <tom@codesourcery.com>
26815         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
26817 2015-01-08  Christian Bruel  <christian.bruel@st.com>
26819         PR target/64507
26820         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
26822 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26824         PR tree-optimization/63259
26825         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
26826         if optab exists for 16bit byteswap.
26828 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
26830         * opts.c (common_handle_option): Add support for
26831         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
26832         * doc/invoke.texi: Document -fno-sanitize=all,
26833         -f{,no-}sanitize-recover=all.  Document that
26834         -fsanitize=float-cast-overflow is not enabled
26835         by -fsanitize=undefined.  Fix up documentation
26836         of -f{,no-}sanitize-recover.
26838 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
26840         * config.gcc: Add Visium support.
26841         * configure.ac: Likewise.
26842         * configure: Regenerate.
26843         * doc/extend.texi (interrupt attribute): Add Visium.
26844         * doc/invoke.texi: Document Visium options.
26845         * doc/install.texi: Document Visium target.
26846         * doc/md.texi: Document Visium constraints.
26847         * common/config/visium: New directory.
26848         * config/visium: Likewise.
26850 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
26852         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
26853         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
26855 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
26857         * combine.c (combine_validate_cost): Do not count the cost of a
26858         split I2 twice.  Do not display it twice in the dump, either.
26860 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26862         Revert parts of r219199.
26863         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
26864         <inttypes.h>.
26865         ([-Wtraditional]): Restore markup on <limits.h>.
26867 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
26869         PR c++/31397
26870         * doc/invoke.texi: Document -Wsuggest-override.
26872 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
26874         PR rtl-optimization/64287
26875         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
26876         (process_options): Disable flag_ipa_ra if profiling.
26878 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
26880         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
26882 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
26884         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
26885         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
26886         put under #if TARGET_LOOPS guard.
26888 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
26890         * config/i386/i386.c (output_387_binary_op): Use std::swap.
26892 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
26894         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
26895         * rtl.h (refers_to_regno_p): Add overload.
26896         * cse.c: Use it.
26897         * bt-load.c: Likewise.
26898         * combine.c: Likewise.
26899         * df-scan.c: Likewise.
26900         * sched-deps.c: Likewise.
26901         * config/s390/s390.c: Likewise.
26902         * config/m32r/m32r.c: Likewise.
26903         * config/rs6000/spe.md: Likewise.
26904         * config/rs6000/rs6000.c: Likewise.
26905         * config/pa/pa.c: Likewise.
26906         * config/stormy16/stormy16.c: Likewise.
26907         * config/cris/cris.c: Likewise.
26908         * config/arc/arc.md: Likewise.
26909         * config/arc/arc.c: Likewise.
26910         * config/sh/sh.md: Likewise.
26911         * config/sh/sh.c: Likewise.
26912         * config/frv/frv.c: Likewise.
26914 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
26916         PR sanitizer/64265
26917         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
26918         call as cleanup of the whole body.
26919         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
26920         * tsan.c (replace_func_exit): New function.
26921         (instrument_func_exit): Moved earlier.
26922         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
26923         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
26924         been found.
26925         (tsan_pass): Don't call instrument_func_exit.
26926         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
26927         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
26928         inlining.
26930         PR sanitizer/64344
26931         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
26932         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
26933         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
26934         if the result is integer_zerop, return NULL_TREE.
26935         * convert.c (convert_to_integer): Pass expr as ARG.
26937         PR tree-optimization/64465
26938         * tree-inline.c (redirect_all_calls): During inlining
26939         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
26940         changed the stmt to a non-throwing call.
26942 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26944         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
26945         etc markup throughout the file.
26947 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26949         Enable experimental TSAN support for Ada.
26950         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
26952 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
26954         PR tree-optimization/64494
26955         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
26956         clear SSA_NAME_ANTI_RANGE_P flag.
26958 2015-01-05  Marek Polacek  <polacek@redhat.com>
26960         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
26962 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
26964         Update copyright years.
26966         * gcc.c (process_command): Update copyright notice dates.
26967         * gcov-dump.c: Ditto.
26968         * gcov.c: Ditto.
26969         * doc/cpp.texi: Bump @copying's copyright year.
26970         * doc/cppinternals.texi: Ditto.
26971         * doc/gcc.texi: Ditto.
26972         * doc/gccint.texi: Ditto.
26973         * doc/gcov.texi: Ditto.
26974         * doc/install.texi: Ditto.
26975         * doc/invoke.texi: Ditto.
26977         * auto-profile.c, auto-profile.h: Fix up Copyright line.
26979 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
26981         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
26982         verb tense, etc.
26983         ([-fvtable-verify], [-fvtv-debug]): Likewise.
26984         ([-Wabi]): Likewise.
26985         ([-fmessage-length]): Likewise.
26986         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
26987         ([-Wno-discarded-qualifiers]): Likewise.
26988         ([-Wnodiscarded-array-qualifiers]): Likewise.
26989         ([-Wno-virtual-move-assign]): Likewise.
26990         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
26991         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
26992         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
26993         ([-fsanitize-undefined-trap-on-error]): Likewise.
26994         ([-floop-interchange]): Likewise.
26995         ([-ftree-coalesce-inlined-vars]): Likewise.
26996         ([-fvect-cost-model]): Likewise.
26997         ([-flto]): Likewise.
26998         ([--param]): Likewise.
26999         (Spec Files): Likewise.
27000         ([-mstrict-align]): Likewise.
27001         ([-mfix-cortex-a53-835769]): Likewise.
27002         ([-march], [-mtune]): Likewise.
27003         ([-mpic-register]): Likewise.
27004         ([-munaligned-access]): Likewise.
27005         ([-msp8]): Likewise.
27006         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
27007         (AVR Built-in Macros): Likewise.
27008         ([-mpreferred-stack-boundary]): Likewise.
27009         ([-mtune-crtl]): Likewise.
27010         ([-mashf]): Likewise.
27011         ([-mmcu=]): Likewise.
27012         ([-minrt]): Likewise.
27013         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
27014         ([-mupper-regs]): Likewise.
27015         ([-matomic-model]): Likewise.
27016         ([-mdiv]): Likewise.
27017         ([-mzdcbranch]): Likewise.
27018         ([-mdisable-callt]): Likewise.
27019         ([-msoft-float]): Likewise.
27020         ([-m8byte-align]): Likewise.
27021         ([-fstack-reuse]): Likewise.
27023 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27025         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
27026         Fix markup, light copy-editing.
27027         ([-fauto-profile]): Rewrite to fix formatting and content
27028         problems.
27030 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27032         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
27033         Copy-edit description.
27034         ([-fisolate-erroneous-paths-attribute]): Likewise.
27035         * common.opt (fisolate-erroneous-paths-dereference):
27036         Copy-edit description.
27037         (fisolate-erroneous-paths-attribute): Likewise.
27039 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27041         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
27042         tidy grammar.
27044 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27046         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
27047         ([-fvtv-debug]): Likewise.
27048         ([-Wc++-compat]): Likewise.
27049         ([-Wc++11-compat]): Likewise.
27050         ([-Wc++14-compat]): Likewise.
27051         ([-Wno-sized-deallocation]): Likewise.
27052         ([-femit-class-debug-always]): Likewise.
27053         ([-femit-struct-debug-detailed]): Likewise.
27054         ([-fno-keep-inline-dllexport]): Likewise.
27055         ([-fira-algorithm]): Likewise.
27056         ([-fira-region]): Likewise.
27057         ([-flra-remat]): Likewise.
27058         ([-fipa-ra]): Likewise.
27059         ([-fhoist-adjacent-loads]): Likewise.
27060         ([-fisolate-erroneous-paths-dereference]): Likewise.
27061         ([-fisolate-erroneous-paths-attribute]): Likewise.
27062         ([-ftree-switch-conversion]): Likewise.
27063         ([-ftree-tail-merge]): Likewise.
27064         ([-ftree-loop-if-convert]): Likewise.
27065         ([-ftree-loop-if-convert-stores]): Likewise.
27066         ([-ftree-loop-distribution]): Likewise.
27067         ([-ftree-loop-distribute-patterns]): Likewise.
27068         ([-flto-compression-level]): Likewise.
27069         ([-flto-report]): Likewise.
27070         ([-flto-report-wpa]): Likewise.
27071         ([-fuse-linker-plugin]): Likewise.
27072         ([-mfix-cortex-a53-835769]): Likewise.
27073         ([-mno-fix-cortex-a53-835769]): Likewise.
27074         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
27075         explicit listing; add a note to the discussion indicating they
27076         exist.  Reorder table to group similar options.  Add missing
27077         @opindex entries.  Add @need commands throughout the table to
27078         allow it to be split across multiple pages.
27079         ([-m8bit-idiv]): Fix @opindex.
27080         ([-mavx256-split-unaligned-load]): Likewise.
27081         ([-mavx256-split-unaligned-store]): Likewise.
27082         ([-mstack-protector-guard]): Likewise.
27083         ([-mcpu=]): Likewise.
27084         ([-mcpu]): Likewise.
27085         ([-mpointer-size=]): Likewise.
27087 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
27089         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
27090         instead of `m' constraint.  Likewise for unnamed movb comparison
27091         patterns using reg_before_reload_operand predicate.
27092         * config/pa/predicates.md (reg_before_reload_operand): Tighten
27093         predicate to reject register index and LO_SUM DLT memory forms
27094         after reload.
27096 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
27098         * doc/invoke.texi (Option Summary): Fix spelling of
27099         -fdevirtualize-at-ltrans.
27100         ([-fdevirtualize]): Fix markup.
27101         ([-fdevirtualize-speculatively]): Fix typo.
27102         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
27103         implementor-speaky.
27104         * common.opt (fdevirtualize-at-ltrans): Likewise.
27105         * ipa-devirt.c: Fix typos in comments throughout the file.
27106         (ipa_devirt): Fix typos in format strings for dump output.
27108 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
27110         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
27111         discussion of defaults, light copy-editing.
27113 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27115         * tsan.c (instrument_expr): corrected previous checkin.
27117 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27119         Instrument bit field and unaligned accesses for TSAN.
27120         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
27121         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
27122         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
27123         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
27124         unaligned memory regions.
27126 2015-01-01  Anthony Green  <green@moxielogic.com>
27128         * config/moxie/predicates.md (moxie_general_movsrc_operand):
27129         Restrict move source register offsets to 16 bits.
27131 Copyright (C) 2015 Free Software Foundation, Inc.
27133 Copying and distribution of this file, with or without modification,
27134 are permitted in any medium without royalty provided the copyright
27135 notice and this notice are preserved.