add default for HAVE_store_multiple
[official-gcc.git] / gcc / ChangeLog
blob99ee6ddda40f8b26738d2d48a0a0367077c214d0
1 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3         * defaults.h (gen_store_multiple): New function.
4         (HAVE_store_multiple): Add default value.
5         * expr.c (move_block_from_reg): Adjust.
7 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9         * defaults.h (gen_load_multiple): New function.
10         (HAVE_load_multiple): Add default value.
11         * expr.c (move_block_to_reg): Adjust.
13 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15         * defaults.h (gen_mem_signal_fence): New function.
16         (HAVE_mem_signal_fence): Add default value.
17         * optabs.c: Adjust.
19 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21         * defaults.h (gen_memory_barrier): New function.
22         (HAVE_memory_barrier): Add default value.
23         * optabs.c: Adjust.
25 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27         * defaults.h (gen_mem_thread_fence): New function.
28         (HAVE_mem_thread_fence): Add default definition.
29         * optabs.c: Adjust.
31 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33         * combine.c (find_split_point): Check the value of HAVE_lo_sum
34         instead of if it is defined.
35         (combine_simplify_rtx): Likewise.
36         * lra-constraints.c (process_address_1): Likewise.
37         * config/darwin.c: Adjust.
38         * genconfig.c (main): Always define HAVE_lo_sum.
40 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
42         * genmatch.c (parser::parse_operation): Reject expanding operator-list inside 'for'.
44 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
46         * genmatch.c (parser::parse_for): Reject iterator if used as operator-list.
48 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
50         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN after end of id-list.
52 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
54         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
55         we do not try to compute canonical type for type that does not need
56         alias set.
57         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
58         FUNCITON_TYPE.
59         * tree.h (type_with_alias_set_p): New.
61 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
63         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
64         function attributes.
65         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
67 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
69         * Makefile.in (check_gcc_parallelize): Delete.
70         (lang_checks_parallelized): Update comment.
72 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
74         PR rtl-optimization/66237
75         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
76         location of an "as_a" cast.
78 2015-05-22  Jeff Law  <law@redhat.com>
80         * config/pa/pa.md (non-canonical shift-add insns): Remove.
81         (peepholes with non-canonical RTL sources): Remove.
82         (peepholes for indexed stores of FP regs in integer modes): Match and
83         generate canonical RTL.
85 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
87         PR tree-optimization/63387
88         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
89         ((x ord x) & (y ord y) -> (x ord y),
90         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
91         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
92         vectors like scalars.
94 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
96         * convert.c (convert_to_integer, convert_to_vector): Include the
97         types in the error message.
99 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
101         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
102         simplifications.
104 2015-05-22  Jeff Law  <law@redhat.com>
106         * config/pa/pa.md (integer_indexed_store splitters): Use
107         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
108         insns -- adjusting the constant 2nd operand accordingly.
110         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
111         (plus (ashift X log2) Y) if it is a split point.
113         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
114         out of hppa_legitimize_address to handle both forms of a multiply
115         by 2, 4 or 8.
116         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p. 
117         Always generate the ASHIFT variant as the result is not directly
118         used in a MEM.  Update comments and refactor slightly to improve
119         readability.
121 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
123         PR target/65491
124         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
125         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
126         (aarch64_composite_type_p): Return false if given type and mode are
127         for a short vector.
129 2015-05-22  Richard Biener  <rguenther@suse.de>
131         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
132         member.
133         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
134         patterns when determining whether SLP is pure.
135         (vect_is_slp_reduction): Remove check for pattern stmts.
136         (vect_is_simple_reduction_1): Remove dead code.
137         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
138         (vect_get_and_check_slp_defs): Pass in the stmt number.
139         Allow the first def in a reduction to be not a pattern stmt when
140         the rest of the stmts def are patterns.
141         (vect_build_slp_tree_1): Allow tcc_expression codes like
142         SAD_EXPR and DOT_PROD_EXPR.
143         (vect_build_slp_tree): Adjust.
144         (vect_analyze_slp): Refactor and move BB vect error message ...
145         (vect_slp_analyze_bb_1): ... here.
147 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
149         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
150         for CSWTCH temporary.
152 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
154         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
155         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
156         unknown unspecs.
158 2015-05-22  Richard Biener  <rguenther@suse.de>
160         PR tree-optimization/66251
161         * tree-vect-stmts.c (vectorizable_conversion): Properly
162         set STMT_VINFO_VEC_STMT even for the SLP case.
164 2015-05-22  Marek Polacek  <polacek@redhat.com>
166         * doc/extend.texi: Use @pxref instead of @xref.
168 2015-05-22  hiraditya  <hiraditya@msn.com>
170         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
171         redundant if.
173 2015-05-22  Richard Biener  <rguenther@suse.de>
175         PR tree-optimization/65701
176         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
177         Move peeling cost models into one place.  Peel for alignment
178         for single loads only if an aligned load is cheaper than
179         an unaligned load.
181 2015-05-22  Marek Polacek  <polacek@redhat.com>
183         PR c/47043
184         * doc/extend.texi (Enumerator Attributes): New section.
185         Document syntax of enumerator attributes.
187 2015-05-22  Richard Biener  <rguenther@suse.de>
189         * tree-vect-loop.c (get_reduction_op): New function.
190         (vect_model_reduction_cost): Use it, add reduc_index parameter.
191         Make ready for BB reductions.
192         (vect_create_epilog_for_reduction): Use get_reduction_op.
193         (vectorizable_reduction): Init reduc_index to a valid value.
194         Adjust vect_model_reduction_cost call.
195         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
196         operand for reduction defaults.  Add SAD_EXPR support.
197         Assert we have a neutral op for SLP reductions.
198         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
199         walking pattern stmt ops only recurse to SSA names.
201 2015-05-22  Richard Biener  <rguenther@suse.de>
203         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
204         assert with guard, remove check on detected reduction.
205         (vect_recog_sad_pattern): Likewise.
206         (vect_recog_widen_sum_pattern): Likewise.
208 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
210         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
211         __always_inline__ attribute.
212         (vaesdq_u8): Likewise.
213         (vaesmcq_u8): Likewise.
214         (vaesimcq_u8): Likewise.
215         (vsha1cq_u32): Likewise.
216         (vsha1mq_u32): Likewise.
217         (vsha1pq_u32): Likewise.
218         (vsha1h_u32): Likewise.
219         (vsha1su0q_u32): Likewise.
220         (vsha1su1q_u32): Likewise.
221         (vsha256hq_u32): Likewise.
222         (vsha256h2q_u32): Likewise.
223         (vsha256su0q_u32): Likewise.
224         (vsha256su1q_u32): Likewise.
225         (vmull_p64): Likewise.
226         (vmull_high_p64): Likewise.
228 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
230         * final.c (final_scan_insn): Don't check HAVE_peephole with the
231         preprocessor.
232         * output.h: Likewise.
233         * genconfig.c (main): Alwways define HAVE_peephole.
234         * genpeep.c: Don't emit checks of HAVE_peephole.
236 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
238         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
239         check HAVE_conditional_move with the preprocessor.
241 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
243         * genconfig.c (main): Always define HAVE_conditional_move.
244         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
245         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
246         is defined.
248 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
250         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
251         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
252         and FRAME_POINTER_REGNUM with the preprocessor.
254 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
256         * defaults.h: Add default for STACK_PUSH_CODE.
257         * expr.c: Don't redefine STACK_PUSH_CODE.
258         * recog.c: Likewise.
260 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
262         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
263         sched-deps.c: Use if instead of preprocessor checks with
264         STACK_GROWS_DOWNWARD.
266 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
268         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
269         is defined.
270         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
271         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
272         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
273         * doc/tm.texi: Regenerate.
275 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
277         PR target/66232
278         * config/i386/constraints.md (Bg): New constraint for GOT memory
279         operand.
280         * config/i386/i386.md (*call_got_x32): New pattern.
281         (*call_value_got_x32): Likewise.
282         * config/i386/predicates.md (GOT_memory_operand): New predicate.
284 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
286         PR tree-optimization/66233
287         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
288         Simplify.
290 2015-05-21  Jeff Law  <law@redhat.com>
292         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
293         than MULT for shadd sequences.
295 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
297         * alias.c (alias_stats): New static var.        
298         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
299         (dump_alias_stats_in_alias_c): New function.
300         * alias.h (dump_alias_stats_in_alias_c): Declare.
301         * tree-ssa-alias.c (dump_alias_stats): Call it.
303 2015-05-08  Michael Matz  <matz@suse.de>
305         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
306         to strided_p.
307         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
308         (STMT_VINFO_STRIDED_P): ... this.
309         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
310         (vect_verify_datarefs_alignment): Likewise.
311         (vect_enhance_data_refs_alignment): Likewise.
312         (vect_analyze_data_ref_access): Likewise.
313         (vect_analyze_data_refs): Accept strided stores.
314         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
315         (vect_model_load_cost): Adjust for macro rename.
316         (vectorizable_mask_load_store): Likewise.
317         (vectorizable_load): Likewise.
318         (vectorizable_store): Open code strided stores.
320 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
322         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
323         Document sqrt_insn.
325 2015-05-21  Richard Biener  <rguenther@suse.de>
327         PR c++/66211
328         * match.pd: Guard pattern optimzing (int)(float)int
329         conversions to apply only on GIMPLE.
331 2015-05-21  Jeff Law  <law@redhat.com>
333         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
334         multiply-accumulate/shift-add insn generation.
336 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
338         PR target/54236
339         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
340         operands[1] are the same.
342 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
344         PR middle-end/66221
345         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
346         build_distinct_type_copy to copy bounds.
348 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
350         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
351         Change to unsigned int.
353 2015-05-20  Jeff Law  <law@redhat.com>
355         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
356         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
357         (pa_shadd_constant_p): Allow constants for shadd insns rather
358         than valid scaling constants for memory addresses.
359         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
360         * config/pa/predicates.md (mem_shadd_operand): New predicate.
361         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
362         (shift-add insns using ASHIFT): New patterns.
364 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
366         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
367         feasible.
368         (fix_up_fall_thru_edges): Likewise.
369         (fix_crossing_conditional_branches): Likewise. Promote jump targets
370         from to rtx_insn to rtx_code_label where feasible.
371         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
372         gen_move_insn (returned type changed to rtx_insn).
373         * builtins.c (expand_errno_check): Fix arguments of
374         do_compare_rtx_and_jump (now expects rtx_code_label).
375         (expand_builtin_acc_on_device): Likewise.
376         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
377         invert_jump (now exprects rtx_jump_insn).
378         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
379         (construct_init_block): Use rtx_code_label.
380         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
381         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
382         calling redirect_jump.
383         (patch_jump_insn): Likewise.
384         (redirect_branch_edge): Likewise.
385         (force_nonfallthru_and_redirect): Likewise.
386         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
387         when suitable.
388         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
389         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
390         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
391         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
392         to store the value retured by gen_label_rtx.
393         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
394         rtx_jump_insn.
395         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
396         (split_branches): Fix calls of redirect_jump.
397         * dojump.c (jumpifnot): Promote argument type from rtx to rtx_code_label.
398         (jumpifnot_1): Likewise.
399         (jumpif): Likewise.
400         (jumpif_1): Likewise.
401         (do_jump_1): Likewise.
402         (do_jump): Likewise. Use rtx_code_label when feasible.
403         (do_jump_by_parts_greater_rtx): Likewise.
404         (do_jump_by_parts_zero_rtx): Likewise.
405         (do_jump_by_parts_equality_rtx): Likewise.
406         (do_compare_rtx_and_jump): Likewise.
407         * dojump.h: Update function prototypes.
408         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
409         returns rtx_insn).
410         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
411         rtx_jump_insn.
412         (emit_label_before): Likewise.
413         (emit_jump_insn_after_noloc): Likewise.
414         (emit_jump_insn_after_setloc): Likewise.
415         (emit_jump_insn_after): Likewise
416         (emit_jump_insn_before_setloc): Likewise.
417         (emit_jump_insn_before): Likewise.
418         (emit_label_before): Promote return type to rtx_code_label.
419         (emit_label): Likewise.
420         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
421         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
422         gen_move_insn.
423         (emit_stack_restore): Likewise.
424         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
425         (do_cmp_and_jump): Likewise.
426         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
427         from rtx to rtx_code_label.
428         (gen_move_insn_uncast): New function.
429         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
430         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
431         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
432         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
433         invert_jump_1 and redirect_jump_1.
434         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
435         do_compare_rtx_and_jump.
436         (expand_addsub_overflow): Likewise.
437         (expand_neg_overflow): Likewise.
438         (expand_mul_overflow): Likewise.
439         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
440         return value of gen_move_insn.
441         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
442         * loop-doloop.c (add_test): Use rtx_code_label.
443         (doloop_modify): Likewise.
444         (doloop_optimize): Likewise.
445         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
446         * lra-constraints.c (emit_spill_move): Remove cast of value returned
447         by gen_move_insn.
448         (inherit_reload_reg): Add cast when calling dump_insn_slim.
449         (split_reg): Likewise.
450         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
451         gen_move_insn.
452         * optabs.c (expand_binop_directly): Remove casts of values returned by
453         maybe_gen_insn.
454         (expand_unop_direct): Likewise.
455         (expand_abs): Likewise.
456         (maybe_emit_unop_insn): Likewise.
457         (maybe_gen_insn): Promote return type to rtx_insn.
458         * optabs.h: Update prototype of maybe_gen_insn.
459         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
460         redundant cast.
461         * recog.c (struct peep2_insn_data): Promote type of insn field to
462         rtx_insn.
463         (peep2_reinit_state): Use NULL instead of NULL_RTX.
464         (peep2_attempt): Remove casts of insn in peep2_insn_data.
465         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
466         * recog.h (struct insn_gen_fn): Promote return types of function
467         pointers and operator ().from rtx to rtx_insn.
468         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
469         (fill_eager_delay_slots): Likewise.
470         (relax_delay_slots): Likewise.
471         (make_return_insns): Likewise.
472         (dbr_schedule): Likewise.
473         (optimize_skips): Likewise.
474         (reorg_redirect_jump): Likewise.
475         (fill_slots_from_thread): Likewise.
476         * reorg.h: Update prototypes.
477         * resource.c (find_dead_or_set_registers): Use dyn_cast to
478         rtx_jump_insn instead of check.  Use it's jump_target method.
479         * rtl.h (rtx_jump_insn::jump_label): Define new method.
480         (rtx_jump_insn::jump_target): Define new method.
481         (rtx_jump_insn::set_jump_target): Define new method.
482         * rtlanal.c (tablejump_p): Promote type of one local variable.
483         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
484         (sched_analyze_insn): Likewise.
485         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
486         (print_insn): Likewise.
487         * stmt.c (label_rtx): Promote return type to rtx_insn.
488         (force_label_rtx): Likewise.
489         (jump_target_rtx): Define new function.
490         (expand_label): Use it, get rid of one cast.
491         (expand_naked_return): Promote rtx to rtx_code_label.
492         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
493         (expand_case): Use rtx_code_label instread of rtx where feasible.
494         (expand_sjlj_dispatch_table): Likewise.
495         (emit_case_nodes): Likewise.
496         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
497         * store-motion.c (insert_store): Make use of new return type of
498         gen_move_insn and remove a cast.
499         (replace_store_insn): Likewise.
501 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
503         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
504         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
506 2015-05-20  Jeff Law  <law@redhat.com>
508         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
509         dispose of the jump thread path when the jump threading
510         opportunity is cancelled.
512 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
514         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
515         when printing the caret character.
517 2015-05-20  Marek Polacek  <polacek@redhat.com>
519         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
521 2015-05-20  Marek Polacek  <polacek@redhat.com>
523         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
524         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
525         * gimple-fold.c (canonicalize_bool): Likewise.
526         (same_bool_result_p): Likewise.
527         * tree-if-conv.c (parse_predicate): Likewise.
529 2015-05-20  Marek Polacek  <polacek@redhat.com>
531         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
532         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
534 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
536         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
537         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
538         values.
540 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
542         * config/mips/mips.h (micromips_globals): Declare.
544 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
546         * timevar.def (TV_INITIALIZE_RTL): New.
547         * toplev.c (initialize_rtl): Use an auto_timevar to account this
548         function's time to TV_INITIALIZE_RTL.
550 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
552         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
553         gimple_build_nop calls.
554         (chkp_find_bounds_for_elem): Likewise.
555         (chkp_get_zero_bounds): Likewise.
556         (chkp_get_none_bounds): Likewise.
557         (chkp_get_bounds_by_definition): Likewise.
558         (chkp_generate_extern_var_bounds): Likewise.
559         (chkp_get_bounds_for_decl_addr): Likewise.
560         (chkp_get_bounds_for_string_cst): Likewise.
562 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
564         PR tree-optimization/65447
565         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
566         (dump_use, dump_uses): Support to dump sub use.
567         (record_use): New parameters to support sub use.  Remove call to
568         dump_use.
569         (record_sub_use, record_group_use): New functions.
570         (compute_max_addr_offset, split_all_small_groups): New functions.
571         (group_address_uses, rewrite_use_address): New functions.
572         (strip_offset): New declaration.
573         (find_interesting_uses_address): Call record_group_use.
574         (add_candidate): New assertion.
575         (infinite_cost_p): Move definition forward.
576         (add_costs): Check INFTY cost and return immediately.
577         (get_computation_cost_at): Clear setup cost and dependent bitmap
578         for sub uses.
579         (determine_use_iv_cost_address): Compute cost for sub uses.
580         (rewrite_use_address_1): Rename from old rewrite_use_address.
581         (free_loop_data): Free sub uses.
582         (tree_ssa_iv_optimize_loop): Call group_address_uses.
584 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
585             Jim Wilson  <jim.wilson@linaro.org>
587         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
588         new  fields loadv and storev.
589         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
590         Initialize loadv and storev.
591         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
592         (cortexa53_extra_costs): Likewise.
593         (cortexa57_extra_costs): Likewise.
594         (xgene1_extra_costs): Likewise.
595         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
596         rtx_costs.
598 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
600         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
601          storev.
602         (cortexa8_extra_costs): Likewise.
603         (cortexa5_extra_costs): Likewise.
604         (cortexa7_extra_costs): Likewise.
605         (cortexa12_extra_costs): Likewise.
606         (cortexa15_extra_costs): Likewise.
607         (v7m_extra_costs): Likewise.
609 2015-05-20  Jeff Law  <law@redhat.com>
611         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
612         instead of open-coded version.  Also delete the jump thread created
613         within this function.
615 2015-05-20  Alan Modra  <amodra@gmail.com>
617         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
618         stack adjusting insn.  Formatting.
619         (rs6000_emit_prologue): Track stack adjusting insn, and use of
620         r12.  If possible, emit first -fsplit-stack arg pointer insn
621         before stack adjust.  Don't use r12 to save cr if split-stack.
623 2015-05-20  Alan Modra  <amodra@gmail.com>
625         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
626         Define.
627         (rs6000_supports_split_stack): New function.
628         * gcc/config/rs6000/rs6000.c (machine_function): Add
629         split_stack_arg_pointer.
630         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
631         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
632         rather than virtual_incoming_args_rtx.
633         (rs6000_va_start): Likewise.
634         (split_stack_arg_pointer_used_p): New function.
635         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
636         (morestack_ref): New var.
637         (gen_add3_const, rs6000_expand_split_stack_prologue,
638         rs6000_internal_arg_pointer, rs6000_live_on_entry,
639         rs6000_split_stack_space_check): New functions.
640         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
641         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
642         (UNSPECV_SPLIT_STACK_RETURN): Define.
643         (split_stack_prologue, load_split_stack_limit,
644         load_split_stack_limit_di, load_split_stack_limit_si,
645         split_stack_return, split_stack_space_check): New expands and insns.
646         * gcc/config/rs6000/rs6000-protos.h
647         (rs6000_expand_split_stack_prologue): Declare.
648         (rs6000_split_stack_space_check): Declare.
650 2015-05-20  Alan Modra  <amodra@gmail.com>
652         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
653         (rs6000_stack_info): Don't zero offsets when not saving registers.
654         (debug_stack_info): Adjust to omit printing unused offsets,
655         as before.
656         (direct_return): Test vrsave_size rather than vrsave_mask.
657         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
658         (rs6000_emit_epilogue): Likewise.
660 2015-05-20  Alan Modra  <amodra@gmail.com>
662         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
663         when not saving registers.
664         (debug_stack_info): Adjust to omit printing unused offsets,
665         as before.
666         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
667         expression.
669 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
671         PR c++/65835
672         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
673         value_type to const char *.
675 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
677         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
678         to build a biarch toolchain again.
680 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
682         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
683         or implicit declarations.
684         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
685         into it.
686         (get_odr_type): Check type has linkage before adding bases.
687         (register_odr_type): Check that type has linkage before adding it.
688         (type_known_to_have_no_deriavations_p): Rename to ..
689         (type_known_to_have_no_derivations_p): This one.
690         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
691         (type_known_to_have_no_derivations_p): This one.
692         * ipa-polymorphic-call.c
693         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
694         type has linkage.
696 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
698         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
699         (layout_type): Use RECORD_OR_UNION_TYPE_P.
701 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
703         * config/s390/s390.c (s390_vector_bool_type_p): New function.
704         (s390_invalid_binary_op): New function.
705         (TARGET_INVALID_BINARY_OP): Define macro.
707 2015-05-19  David Sherwood  <david.sherwood@arm.com>
709         * loop-invariant.c (create_new_invariant): Don't calculate address cost
710         if mode is not a scalar integer.
711         (get_inv_cost): Increase computational cost for unused invariants.
713 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
715         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
716         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
717         * config/s390/s390-builtin-types.def: New file.
718         * config/s390/s390-builtins.def: New file.
719         * config/s390/s390-builtins.h: New file.
720         * config/s390/s390-c.c: New file.
721         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
722         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
723         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
724         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
725         prototypes.
726         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
727         Include.
728         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
729         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
730         variable definitions.
731         (s390_const_operand_ok): New function.
732         (s390_expand_builtin): Rewrite.
733         (s390_init_builtins): New function.
734         (s390_handle_vectorbool_attribute): New function.
735         (s390_attribute_table): Add s390_vector_bool attribute.
736         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
737         (s390_branch_condition_mask): Generate masks for new modes.
738         (s390_expand_vec_compare_cc): New function.
739         (s390_mangle_type): Add mangling for vector bool types.
740         (enum s390_builtin): Remove.
741         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
742         efpc builtins.
743         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
744         s390_cpu_cpp_builtins.
745         (REGISTER_TARGET_PRAGMAS): New macro.
746         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
747         (insn_cmp mode attribute): Add new CC modes.
748         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
749         (lcbb): New pattern definition.
750         * config/s390/s390intrin.h: Include vecintrin.h.
751         * config/s390/t-s390: New file.
752         * config/s390/vecintrin.h: New file.
753         * config/s390/vector.md: Include vx-builtins.md.
754         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
755         support.
757 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
759         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
760         CCVFHE.
761         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
762         (s390_select_ccmode): Likewise.
763         (s390_canonicalize_comparison): Swap operands if necessary.
764         (s390_expand_vec_compare_scalar): Expand DFmode compare using
765         single element vector instructions.
766         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
767         (s390_branch_condition_mask): Generate CC masks for the new modes.
768         * config/s390/s390.md (v0, vf, vd): New mode attributes.
769         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
770         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
771         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
772         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
773         (*extend<DSF:mode><BFP:mode>2): New insn definition.
774         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
775         (extend<DSF:mode><BFP:mode>2): Turn into expander.
776         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
777         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
778         (sqrt<mode>2): Add vector instruction.
780 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
782         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
783         constraints.
784         * config/s390/predicates.md (const0_operand, constm1_operand)
785         (constable_operand): Accept vector operands.
786         * config/s390/s390-modes.def: Add supported vector modes.
787         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
788         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
789         (s390_bytemask_vector_p, s390_expand_vec_strlen)
790         (s390_expand_vec_compare, s390_expand_vcond)
791         (s390_expand_vec_init): Add prototypes.
792         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
793         (s390_vector_mode_supported_p): New function.
794         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
795         (s390_contiguous_bitmask_vector_p): New function.
796         (s390_bytemask_vector_p): New function.
797         (s390_split_ok_p): Vector regs don't work either.
798         (regclass_map): Add VEC_REGS.
799         (s390_legitimate_constant_p): Handle vector constants.
800         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
801         (legitimate_reload_vector_constant_p): New function.
802         (s390_preferred_reload_class): Handle CONST_VECTOR.
803         (s390_reload_symref_address):  Likewise.
804         (s390_secondary_reload): Vector memory instructions only support
805         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
806         (s390_emit_ccraw_jump): New function.
807         (s390_expand_vec_strlen): New function.
808         (s390_expand_vec_compare): New function.
809         (s390_expand_vcond): New function.
810         (s390_expand_vec_init): New function.
811         (s390_dwarf_frame_reg_mode): New function.
812         (print_operand): Handle addresses with 'O' and 'R' constraints.
813         (NR_C_MODES, constant_modes): Add vector modes.
814         (s390_output_pool_entry): Handle vector constants.
815         (s390_hard_regno_mode_ok): Handle vector registers.
816         (s390_class_max_nregs): Likewise.
817         (s390_cannot_change_mode_class): New function.
818         (s390_invalid_arg_for_unprototyped_fn): New function.
819         (s390_function_arg_vector): New function.
820         (s390_function_arg_float): Remove size variable.
821         (s390_pass_by_reference): Handle vector arguments.
822         (s390_function_arg_advance): Likewise.
823         (s390_function_arg): Likewise.
824         (s390_return_in_memory): Vector values are returned in a VR if
825         possible.
826         (s390_function_and_libcall_value): Handle vector arguments.
827         (s390_gimplify_va_arg): Likewise.
828         (s390_call_saved_register_used): Consider the arguments named.
829         (s390_conditional_register_usage): Disable v16-v31 for non-vec
830         targets.
831         (s390_preferred_simd_mode): New function.
832         (s390_support_vector_misalignment): New function.
833         (s390_vector_alignment): New function.
834         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
835         (TARGET_VECTOR_MODE_SUPPORTED_P)
836         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
837         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
838         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
839         (TARGET_VECTOR_ALIGNMENT): Define target macro.
840         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
841         (FIRST_PSEUDO_REGISTER): Increase value.
842         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
843         (VECTOR_REG_P): Define macros.
844         (FIXED_REGISTERS, CALL_USED_REGISTERS)
845         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
846         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
847         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
848         Add vector registers.
849         (CANNOT_CHANGE_MODE_CLASS): Call C function.
850         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
851         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
852         memory.
853         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
854         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
855         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
856         (VR*_REGNUM): New constants.
857         (ALL): New mode iterator.
858         (INTALL): Remove mode iterator.
859         Include vector.md.
860         (movti): Implement TImode moves for VRs.
861         Disable TImode splitter for VR targets.
862         Implement splitting TImode GPR<->VR moves.
863         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
864         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
865         reload<mode>_la_in, reload<mode>_la_out.
866         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
867         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
868         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
869         (mov<mode> SF SD): Prefer lder, lde for loading.
870         Add lrl and strl instructions.
871         Add vector instructions.
872         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
873         Call s390_expand_vec_strlen on z13.
874         (*cc_to_int): Change predicate to nonimmediate_operand.
875         (addti3): Rename to *addti3.  New expander.
876         (subti3): Rename to *subti3.  New expander.
877         * config/s390/vector.md: New file.
879 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
881         * common/config/s390/s390-common.c (processor_flags_table): Add
882         z13.
883         * config.gcc: Add z13.
884         * config/s390/s390-opts.h (enum processor_type): Add
885         PROCESSOR_2964_Z13.
886         * config/s390/s390.c (s390_adjust_priority): Check for
887         PROCESSOR_2964_Z13.
888         (s390_reorg): Likewise.
889         (s390_sched_reorder): Likewise.
890         (s390_sched_variable_issue): Likewise.
891         (s390_loop_unroll_adjust): Likewise.
892         (s390_option_override): Likewise. Default to -mvx when available.
893         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
894         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
895         (TARGET_VX_ABI): Define macros.
896         macros.
897         (TARGET_DEFAULT): Add MASK_OPT_VX.
898         * config/s390/s390.md ("cpu" attribute): Add z13.
899         ("cpu_facility" attribute): Add vec.
900         * config/s390/s390.opt (processor_type): Add z13.
901         (mvx): New options.
902         * doc/invoke.texi: Add z13 option for -march.
904 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
906         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
907         mode check to make sure that only scalar integer values are
908         accepted.
910 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
912         * tree.c (verify_type_variant): Fix #undef.
913         (gimple_canonical_types_compatible_p): Move here from lto.c
914         (verify_type): Verify TYPE_CANONICAL compatibility.
915         * tree.h (gimple_canonical_types_compatible_p): Declare.
917 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
919         PR middle-end/66199
920         * tree.h (OMP_TEAMS_COMBINED): Define.
921         * gimplify.c (enum gimplify_omp_var_data): Add
922         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
923         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
924         (omp_notice_variable): Accept both ORT_TEAMS
925         and ORT_COMBINED_TEAMS.  Don't recurse if
926         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
927         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
928         GOVD_FIRSTPRIVATE.
929         (omp_no_lastprivate): New function.
930         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
931         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
932         notice_outer and set appropriate bits, otherwise make
933         sure default(none) combined constructs won't complain.
934         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
935         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
936         omp_no_lastprivate either remove the clause or turn it
937         into OMP_CLAUSE_PRIVATE.
938         (gimplify_omp_for): Fix up handling of implicit
939         lastprivate or linear iterators.
940         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
941         ORT_COMBINED_TEAMS.
942         * omp-low.c (lower_omp_for_lastprivate): For combined
943         for simd use fd.loop.n2 from the for rather than simd.
945 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
947         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
948         instead of gen_rtx_raw_REG.
949         (cris_expand_epilogue): Likewise.
950         * config/microblaze/microblaze.c (microblaze_classify_address):
951         Likewise.
952         * config/sparc/sparc.md: Likewise.
954 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
956         * config/alpha/alpha.c (alpha_legitimize_reload_address)
957         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
958         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
959         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
960         Use CASE_CONST_SCALAR_INT.
961         (print_operand) <case 'M'>: Use mode_width_operand to check the
962         value of the constant.
963         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
964         * config/alpha/predicates.md (input_operand): Use general_operand
965         instead of match_code as operand check.
966         (symbolic_operand): Use match_code with subexpression digits.
967         * config/alpha/constraints.md (Q): Ditto.
969 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
971         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
973 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
975         * config/s390/s390.c (s390_secondary_reload): Fix check for
976         load/store relative.
978 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
980         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
981         alternative_mask to uint64_t.
983 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
985         PR tree-optimization/66187
986         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
987         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
988         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
990 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
992         * diagnostic.c (diagnostic_report_current_module): Strengthen
993         local "new_map" from const line_map * to
994         const line_map_ordinary *.
995         * genmatch.c (error_cb): Likewise for local "map".
996         (output_line_directive): Likewise for local "map".
997         * input.c (expand_location_1): Likewise for local "map".
998         Pass NULL rather than &map to
999         linemap_unwind_to_first_non_reserved_loc, since the value is never
1000         read from there, and the value written back not read from here.
1001         (is_location_from_builtin_token): Strengthen local "map" from
1002         const line_map * to const line_map_ordinary *.
1003         (dump_location_info): Strengthen locals "map" from
1004         line_map *, one to const line_map_ordinary *, the other
1005         to const line_map_macro *.
1006         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
1007         const line_map * to const line_map_macro *.
1008         (maybe_unwind_expanded_macro_loc): Add a call to
1009         linemap_check_macro when writing to the "map" field of the
1010         loc_map_pair.
1011         Introduce local const line_map_ordinary * "ord_map", using it in
1012         place of "map" in the part of the function where we know we have
1013         an ordinary map.  Strengthen local "m" from const line_map * to
1014         const line_map_ordinary *.
1016 2015-05-19  Nick Clifton  <nickc@redhat.com>
1018         PR target/66156
1019         * config/msp430/msp430.md (zero_extendhisi2): Add support for
1020         separate source and destination registers.
1022 2015-05-19  Richard Biener  <rguenther@suse.de>
1024         PR tree-optimization/66165
1025         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
1026         for no load permutation.
1028         PR tree-optimization/66185
1029         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
1030         when building the SLP node from scalars.
1032 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
1033             Tristan Gingold  <gingold@adacore.com>
1035         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
1036         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
1037         (expand_stack_restore): Call record_new_stack_level.
1038         (expand_stack_save): Do not call do_pending_stack_adjust.
1039         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
1040         * calls.c (expand_call): Call record_new_stack_level for alloca.
1041         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
1042         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
1043         (update_sjlj_context): New global function.
1044         * except.h (update_sjlj_context): Declare.
1045         * explow.c (record_new_stack_level): New global function.
1046         (allocate_dynamic_stack_space): Call record_new_stack_level.
1047         * explow.h (record_new_stack_level): Declare.
1048         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
1049         * cfgrtl.c (duplicate_insn_chain): Likewise.
1051 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1053         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
1054         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
1055         STACK_GROWS_DOWNWARD as normal if.
1056         (expand_call): Likewise.
1058 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
1060         PR target/54236
1061         * config/sh/sh.md (*round_int_even): New insn_and_split and
1062         accompanying new unnamed split.
1064 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1066         * bitmap.c (bitmap_set_range): Handle count==1 specially.
1067         (bitmap_clear_range): Likewise.
1068         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
1069         bitmap_set_range unconditionally.
1070         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
1071         * df-scan.c (df_mark_reg): Likewise.
1072         * haifa-sched.c (setup_ref_regs): Likewise.
1073         * sched-rgn.c (update_live_1): Likewise.
1075 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1077         * regs.h (END_HARD_REGNO): Delete.
1078         (END_REGNO): Move to...
1079         * rtl.h: ...here.
1080         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
1081         * caller-save.c (mark_set_regs): Likewise.
1082         * combine.c (move_deaths, distribute_notes): Likewise.
1083         * cse.c (invalidate, invalidate_for_call): Likewise.
1084         * df-scan.c (df_ref_record): Likewise.
1085         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
1086         (record_last_reg_set_info): Likewise.
1087         * reg-stack.c (convert_regs_exit): Likewise.
1088         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
1089         * resource.c (update_live_status): Likewise.
1090         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
1092 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1094         * rtl.h (reg_info): Add an nregs field.
1095         (REG_NREGS): Use it.
1096         (SET_REGNO_RAW): Delete.
1097         (set_regno_raw): New function.
1098         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
1099         (END_REGNO): Redefine in terms of REG_NREGS.
1100         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
1101         SET_REGNO_RAW.
1102         * emit-rtl.c (set_mode_and_regno): Likewise.
1103         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
1104         instead of SET_REGNO_RAW.
1106 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1108         * rtl.h (PUT_MODE_RAW): New macro.
1109         (PUT_REG_NOTE_KIND): Use it.
1110         (set_mode_and_regno): Declare.
1111         (gen_raw_REG): Change regno to "unsigned int".
1112         (gen_rtx_REG): Change "unsigned" to "unsigned int".
1113         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
1114         use set_mode_and_regno to change the mode of registers.
1115         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
1116         * emit-rtl.c (set_mode_and_regno): New function.
1117         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
1118         * caller-save.c (reg_save_code): Use set_mode_and_regno.
1119         * expr.c (init_expr_target): Likewise.
1120         * ira.c (setup_prohibited_mode_move_regs): Likewise.
1121         * postreload.c (reload_cse_simplify_operands): Likewise.
1123 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1125         * caller-save.c (init_caller_save): Use word_mode and
1126         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
1127         * expr.c (init_expr_target): Likewise.
1128         * ira.c (setup_prohibited_mode_move_regs): Likewise.
1129         * postreload.c (reload_cse_regs_1): Likewise.
1131 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1133         * rtl.def (REG): Change format to "r".
1134         * rtl.h (rtunion): Remove rt_reg.
1135         (reg_info): New structure.
1136         (rtx_def): Add reg field to main union.
1137         (X0REGATTR): Delete.
1138         (REG_CHECK): New macro.
1139         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
1140         * rtl.c (rtx_format): Document "r".
1141         (rtx_code_size): Handle REG specially.
1142         * gengenrtl.c (special_format): Return true for formats
1143         that include 'r'.
1144         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
1145         Deal with REG_ATTRS after the field loop.
1146         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
1147         * expmed.c (init_expmed): Call gen_raw_REG instead of
1148         gen_rtx_raw_REG.
1149         * expr.c (init_expr_target): Likewise.
1150         * regcprop.c (maybe_mode_change): Likewise.
1151         * varasm.c (make_decl_rtl): Likewise.
1152         * final.c (leaf_renumber_regs_insn): Return early after
1153         handling REGs.
1154         * genemit.c (gen_exp): Handle 'r' fields.
1155         * genpeep.c (match_rtx): Likewise.
1156         * gensupport.c (subst_pattern_match): Likewise.
1157         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
1158         (alter_constraints, subst_dup): Likewise.
1159         * read-rtl.c (read_rtx_code): Likewise.
1160         * print-rtl.c (print_rtx): Likewise.
1161         * genrecog.c (find_operand, find_matching_operand): Likewise.
1162         (validate_pattern, match_pattern_2): Likewise.
1163         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
1164         (rtx_test::regno_field): New function.
1165         (operator ==, safe_to_hoist_p, transition_parameter_type)
1166         (parameter_type_string, print_parameter_value)
1167         (print_nonbool_test, print_test): Handle new enum values.
1168         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
1169         * lra-constraints.c (operands_match_p): Likewise.
1171 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1173         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
1174         Change type of new_regno to unsigned int.
1175         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
1176         new_regno to unsigned int.
1177         (df_ref_change_reg_with_loc): Remove old_regno parameter.
1178         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
1179         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
1180         (SET_REGNO_RAW): Add space after ",".
1182 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1184         * rtl.h (REG_NREGS): New macro
1185         * alias.c (record_set): Use it.
1186         * cfgcleanup.c (mark_effect): Likewise.
1187         * combine.c (likely_spilled_retval_1): Likewise.
1188         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
1189         (move_deaths, distribute_notes): Likewise.
1190         * cselib.c (cselib_record_set): Likewise.
1191         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
1192         * df-scan.c (df_mark_reg): Likewise.
1193         * dse.c (look_for_hardregs): Likewise.
1194         * dwarf2out.c (reg_loc_descriptor): Likewise.
1195         (multiple_reg_loc_descriptor): Likewise.
1196         * expr.c (write_complex_part, read_complex_part): Likewise.
1197         (emit_move_complex): Likewise.
1198         * haifa-sched.c (setup_ref_regs): Likewise.
1199         * ira-lives.c (mark_hard_reg_live): Likewise.
1200         * lra.c (lra_set_insn_recog_data): Likewise.
1201         * mode-switching.c (create_pre_exit): Likewise.
1202         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
1203         (reload_combine_recognize_pattern): Likewise.
1204         (reload_combine_note_use, move2add_record_mode): Likewise.
1205         (reload_cse_move2add): Likewise.
1206         * reg-stack.c (subst_stack_regs_pat): Likewise.
1207         * regcprop.c (kill_value, copy_value): Likewise.
1208         (copyprop_hardreg_forward_1): Likewise.
1209         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
1210         (build_def_use): Likewise.
1211         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
1212         (deps_analyze_insn): Likewise.
1213         * sched-rgn.c (check_live_1, update_live_1): Likewise.
1214         * sel-sched.c (count_occurrences_equiv): Likewise.
1215         * valtrack.c (dead_debug_insert_temp): Likewise.
1217 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1219         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
1220         * dse.c (note_add_store): Likewise.
1221         * ira-lives.c (mark_hard_reg_dead): Likewise.
1222         * loop-invariant.c (mark_reg_store): Likewise.
1223         (mark_reg_death): Likewise.
1224         * postreload.c (reload_combine): Likewise.
1225         (reload_combine_note_store): Likewise.
1226         (reload_combine_note_use): Likewise.
1227         * recog.c (peep2_reg_dead_p): Likewise.
1229 2015-05-19  Alan Modra  <amodra@gmail.com>
1231         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
1232         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
1233         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
1234         unused predicates.
1235         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
1236         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
1237         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
1238         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
1240 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
1242         * config/mips/mips.md (JOIN_MODE): New mode iterator.
1243         (join2_load_Store<JOIN_MODE:mode>): New pattern.
1244         (join2_loadhi): Likewise.
1245         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
1246         load-load and store-stores.
1247         * config/mips/mips.opt (mload-store-pairs): New option.
1248         (TARGET_LOAD_STORE_PAIRS): New macro.
1249         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
1250         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
1251         * config/mips/mips.c (mips_load_store_bonding_p): New function.
1253 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
1255         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
1256         explicit swaps.
1257         * dojump.c (do_compare_rtx_and_jump): Likewise.
1258         * expmed.c (emit_store_flag_1): Likewise.
1259         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
1260         * final.c (sprint_ul): Use std::reverse for reversing a string.
1261         * fold-const.c (extract_muldiv_1): Use std::swap.
1262         * genmodes.c (emit_mode_int_n): Likewise.
1263         * ifcvt.c (dead_or_predicable): Likewise.
1264         * ira-build.c (ira_merge_live_ranges): Likewise.
1265         (swap_allocno_copy_ends_if_necessary): Likewise.
1266         * ira.c (ira_setup_alts): Likewise.
1267         * loop-iv.c (iv_analyze_expr): Likewise.
1268         (implies_p): Likewise.
1269         (canon_condition): Likewise.
1270         * lra-constraints.c (swap_operands): Likewise.
1271         * lra-lives.c (lra_merge_live_ranges): Likewise.
1272         * omega.c (swap): Remove.
1273         (bswap): Remove.
1274         (omega_unprotect_1): Use std::swap.
1275         (omega_solve_geq): Likewise.
1276         * optabs.c (expand_binop_directly): Likewise.
1277         (expand_binop): Likewise.
1278         (emit_conditional_move): Likewise.
1279         (emit_conditional_add): Likewise.
1280         * postreload.c (reload_cse_simplify_operands): Likewise.
1281         * reg-stack.c (emit_swap_insn): Likewise.
1282         (swap_to_top): Likewise.
1283         (compare_for_stack_reg): Likewise.
1284         (subst_asm_stack_regs): Likewise.
1285         * reload.c (find_reloads): Likewise.
1286         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
1287         * sel-sched.c (invoke_reorder_hooks): Likewise.
1288         (create_block_for_bookkeeping): Likewise.
1289         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
1290         (lambda_matrix_right_hermite): Use std::swap.
1291         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
1292         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1293         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
1294         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
1295         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1296         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
1297         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1298         * tree-vrp.c (compare_ranges): Likewise.
1299         * var-tracking.c (add_with_sets): Likewise.
1300         (vt_find_locations): Likewise.
1302 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
1304         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
1305         pie executables.
1306         (FBSD_ENDFILE_SPEC): Likewise.
1307         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
1308         config/freebsd-spec.h.
1309         (ENDFILE_SPEC): Likewise.
1311 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
1312             Richard Henderson  <rth@redhat.com>
1314         PR target/57032
1315         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
1316         Check for a memory location that is not a reference (using an AND)
1317         to an unaligned location here.
1318         * config/alpha/predicates.md (normal_memory_operand): Remove.
1320 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
1322         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
1323         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
1325 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
1327         * config/mips/mips.c (micromips_globals): New variable.
1328         (mips_set_compression_mode): Save and reinitialize target-dependent
1329         state for microMIPS.
1331 2015-05-18  Martin Liska  <mliska@suse.cz>
1333         * dbgcnt.def: Add new counter.
1334         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
1336 2015-05-18  Martin Liska  <mliska@suse.cz>
1338         * dbgcnt.def: Sort counters.
1339         * opts.c (common_handle_option): Do not compile if
1340         -fdbg-cnt-list is enabled.
1342 2015-05-18  Tom de Vries  <tom@codesourcery.com>
1344         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
1345         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
1346         address operator to va_list operand.
1347         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
1348         unconditionally.
1349         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
1350         operand.
1351         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
1352         * config/s390/s390.c (s390_gimplify_va_arg): Same.
1353         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
1355 2015-05-18  Tom de Vries  <tom@codesourcery.com>
1357         * tree-ssa-tail-merge.c: Fix whitespace.
1359 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
1361         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
1362         cortex-a17, and cortex-a17.cortex-a7.
1364 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
1366         PR target/54236
1367         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
1369 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
1371         PR target/66174
1372         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
1373         QImode inner modes for TARGET_AVX512BW.  Force mask operand
1374         to a register for AVX512F modes.
1376 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
1378         * toplev.c (emit_debug_global_declarations): Do not output debug info
1379         when doing slim LTO objects.
1381 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
1383         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
1384         odr_types_equivalent_p): Declare.
1385         (odr_type_p): Use gcc_checking_assert.
1386         (type_in_anonymous_namespace_p) Declare.
1387         (type_with_linkage_p): Declare.
1388         * common.opt (Wlto-type-mismatch): New warning.
1389         * ipa-devirt.c (compound_type_base): New function.
1390         (odr_or_derived_type_p): New function.
1391         (odr_types_equivalent_p): New function.
1392         (add_type_duplicate): Simplify.
1393         (type_with_linkage_p): Add hack to prevent false positives on C types
1394         (type_in_anonymous_namespace_p): Likewise.
1395         * tree.c (need_assembler_name_p): Use type_with_linkage.
1396         * tree.h (type_in_anonymous_namespace_p): Remove.
1397         * doc/invoke.texi (-Wlto-type-mismatch): Document
1399 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
1401         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
1402         (verify_type): Verify STRING_FLAG.
1404 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1406         PR fortran/44054
1407         * tree-pretty-print.c (percent_K_format): Replace locus pointer
1408         with accessor function.
1409         * tree-diagnostic.c (diagnostic_report_current_function): Use
1410         diagnostic_location function.
1411         (maybe_unwind_expanded_macro_loc): Likewise.
1412         (virt_loc_aware_diagnostic_finalizer): Likewise.
1413         (default_tree_printer): Replace locus pointer with accessor function.
1414         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
1415         (diagnostic_set_info_translated): Initialize second location.
1416         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
1417         (diagnostic_show_locus): Handle two locations. Call
1418         diagnostic_print_caret_line.
1419         (diagnostic_print_caret_line): New.
1420         (default_diagnostic_starter): Use diagnostic_location function.
1421         (diagnostic_report_diagnostic): Use diagnostic_location function.
1422         (verbatim): Do not set text.locus.
1423         * diagnostic.h (struct diagnostic_info): Remove location field.
1424         (struct diagnostic_context): Make caret_chars an array of two.
1425         (diagnostic_location): New inline.
1426         (diagnostic_expand_location): Handle two locations.
1427         (diagnostic_same_line): New inline.
1428         (diagnostic_print_caret_line): Declare.
1429         (CARET_LINE_MARGIN): New constant.
1430         * pretty-print.c (pp_printf): Do not set text.locus.
1431         (pp_verbatim): Do not set text.locus.
1432         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
1433         (struct text_info): Replace locus pointer with locations
1434         array. Add accessor functions.
1436 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
1437             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1439         PR target/65768
1440         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
1441         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
1442          large constants in register instead of splitting them.
1444 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
1446         PR target/66140
1447         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
1448         replacements in memory addresses.
1449         (get_unaligned_address): Ditto.
1451 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
1453         PR tree-optimization/64454
1454         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
1455         (-1 - A -> ~A): Remove unnecessary condition.
1457 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
1459         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
1460         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
1461         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
1463 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
1465         * ipa-chkp.h (chkp_wrap_function): New.
1466         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
1467         (chkp_wrap_function_name): New.
1468         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
1469         to get wrapper name.
1470         * lto-cgraph.c: Include ipa-chkp.h.
1471         (input_cgraph_1): Avoid alias chain for wrappers.
1473 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
1475         PR middle-end/66134
1476         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
1477         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
1479 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1481         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
1482         (AARCH64_FL_SLOWMUL): Delete.
1483         (AARCH64_FL_CRC): Redefine to 1<<3.
1484         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
1486 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1488         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
1489         casting.
1491 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
1493         * config/alpha/alpha.md (extendqidi2): Use general_operand
1494         instead of some_operand for operand[1] predicate.
1495         (extendhidi2): Ditto.
1496         (cbranchdi4): Use general_operand instead of some_operand
1497         for operand[1] and operands[2] predicates.
1498         (cstoredi4): Ditto.
1499         * config/alpha/predicates.md (some_operand): Remove unused predicate.
1500         (some_ni_operand): Ditto.
1502 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
1504         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
1505         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
1506         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
1507         low part of the constant using alpha_emit_set_const_1.
1508         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
1510 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
1512         * varasm.c (output_constant_pool_1): Pass down alignment from
1513         constant pool entry's descriptor to output_constant_pool_2.
1514         (output_object_block): Add comment prior to call to
1515         output_constant_pool_1.
1517 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
1519         PR rtl-optimization/65862
1520         * target.def (ira_change_pseudo_allocno_class): New hook.
1521         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
1522         value of the hook.
1523         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
1524         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
1525         hook.
1526         * ira-costs.c (find_costs_and_classes): Call the hook and change
1527         classes when it is necessary.
1528         * doc/tm.texi: Update.
1530 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
1532         * config/i386/i386.md (sibcall_memory): Check that register with
1533         callee address is not also used as one of the arguments, instead
1534         of checking that it is not live after the sibcall.
1535         (sibcall_pop_memory): Ditto.
1536         (sibcall_value_memory): Ditto.
1537         (sibcall_value_pop_memory): Ditto.
1539 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
1541         * generic-match-head.c (types_match): Handle non-types.
1542         * gimple-match-head.c (types_match): Likewise.
1543         * match.pd: Remove unnecessary TREE_TYPE for types_match.
1545 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
1547         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
1548         (csneg3<mode>_insn): Enable expansion of pattern.
1550 2015-05-14  Nick Clifton  <nickc@redhat.com>
1552         * config/rl78/rl78.c (rl78_select_section): Select the correct
1553         default section based upon the category of the decl.
1555 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
1557         PR rtl-optimization/30967
1558         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
1559         destination mode for the cost of scc patterns.
1561 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
1563         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
1564         using SWIM248 mode iterator.
1565         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
1566         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
1567         for operand[2] constraint.
1568         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
1570 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
1572         PR middle-end/66133
1573         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
1574         make sure it is never noreturn, even when the task body does not
1575         return.
1576         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
1577         right before GIMPLE_OMP_RETURN.
1578         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
1579         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
1580         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
1582 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1584         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
1585         * tree-ssa-math-opts.c: Include params.h
1586         (pow_synth_sqrt_info): New struct.
1587         (representable_as_half_series_p): New function.
1588         (get_fn_chain): Likewise.
1589         (print_nested_fn): Likewise.
1590         (dump_fractional_sqrt_sequence): Likewise.
1591         (dump_integer_part): Likewise.
1592         (expand_pow_as_sqrts): Likewise.
1593         (gimple_expand_builtin_pow): Use above to attempt to expand
1594         pow as series of square roots.  Removed now unused variables.
1596 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
1598         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
1599         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
1600         Remove *p0 and *p1 arguments.  Rewrite function.
1601         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
1602         (alpha_split_const_mov): Update calls to alpha_extract_integer and
1603         alpha_emit_set_long_const.
1604         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
1605         (alpha_output_mi_thunk_osf): Ditto.
1606         * config/alpha/alpha.md (movti): Do not check operands[1]
1607         for CONST_DOUBLE.
1609 2015-05-13  Richard Biener  <rguenther@suse.de>
1611         PR tree-optimization/66129
1612         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
1613         commutative.
1614         (vect_schedule_slp_instance): Fix typo.
1616 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
1618         * common.opt (fdump-internal-locations): New option.
1619         * input.c: Include diagnostic-core.h.
1620         (get_end_location): New function.
1621         (write_digit): New function.
1622         (write_digit_row): New function.
1623         (dump_location_range): New function.
1624         (dump_labelled_location_range): New function.
1625         (dump_location_info): New function.
1626         * input.h (dump_location_info): New prototype.
1627         * toplev.c (compile_file): Handle flag_dump_locations.
1629 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1631         * gimple-expr.h (is_gimple_constant): Reorder.
1632         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
1634 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
1636         * combine.c (simplify_set): When generating a CC set, if the
1637         source already is in the correct mode, do not wrap it in a
1638         compare.  Simplify the rest of that code.
1640 2015-05-13  Richard Biener  <rguenther@suse.de>
1642         PR tree-optimization/66123
1643         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
1644         a taken edge.
1646 2015-05-13  Richard Biener  <rguenther@suse.de>
1648         PR middle-end/66110
1649         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
1650         specially.
1651         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
1653 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
1655         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
1656         * aclocal.m4: Regenerated with automake-1.11.6.
1658 2015-05-13  Tom de Vries  <tom@codesourcery.com>
1660         PR tree-optimization/66010
1661         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
1662         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
1663         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
1664         and rval based on do_deref.
1666 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1668         PR target/65103
1669         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
1670         link time constants into adress expressions and therefore set
1671         their cost to 0.
1673 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
1675         PR target/66112
1676         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
1677         Use SWI248 iterator instead of SWI.
1678         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
1679         Use eq_attr "alternative" "0" instead of match_test in
1680         length_immediate attribute computation.
1681         (*mulvhi4, *mulvhi4_1): New define_insns.
1683         PR target/66112
1684         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
1685         SIGNED to get precision of non-negative value.
1687 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1689         PR target/66048
1690         * function.c (diddle_return_value_1): Process bounds first.
1691         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
1692         register.
1694 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1696         PR rtl-optimization/64616
1697         * loop-invariant.c (can_move_invariant_reg): New.
1698         (move_invariant_reg): Call above new function to decide whether
1699         instruction can just be moved, skipping creation of temporary
1700         register.
1702 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
1704         PR target/pr66047.c
1705         * i386.c (ix86_function_sseregparm): Only return -1 if local function
1706         with implied regparm is called from -mno-sse function.
1707         (init_cumulative_args): Output error if ix86_function_sseregparm
1708         return -1 and SSE register would be needed.
1709         (function_arg_advance_32): Likewise.
1710         (function_arg_32): Likewise.
1711         * i386.h (ix86_args): Add decl field.
1713 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
1715         PR ipa/65873
1716         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
1717         inlines across optimization boundary.
1719 2015-05-12  Jason Merrill  <jason@redhat.com>
1721         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
1722         string literal and macro name.
1724 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
1726         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
1727         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
1728         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
1730 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
1732         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
1733         (-Wmisleading-indentation): New option.
1734         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
1736 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
1738         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
1739         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
1740         (alpha_extract_integer): Ditto.
1741         (alpha_legitimate_constant_p): Ditto.
1742         (alpha_split_tmode_pair): Ditto.
1743         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
1744         (alpha_expand_mov): Ditto.
1745         (print_operand): Remove handling of 'H' modifier.
1746         <case 'm'>: Remove CONST_DOUBLE handling.
1747         (summarize_insn): Handle CONST_WIDE_INT.
1748         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
1749         (anddi3): Ditto.
1750         (movti): Handle CONST_WIDE_INT.
1751         * config/alpha/constraints.md ('H'): Remove constraint definition.
1752         ('G'): Do not match MODE_FLOAT class.
1753         * config/alpha/predicates.md (const0_operand): Also match
1754         const_wide_int.
1755         (non_add_const_operand): Ditto.
1756         (non_zero_const_operand): Ditto.
1757         (some_operand): Ditto.
1758         (input_operand): Ditto.  Handle CONST_WIDE_INT.
1759         (and_operand): Do not match const_double.
1760         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
1762 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
1764         PR target/65697
1765         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
1766         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
1767         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
1768         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
1769         is_mm_seq_cst, is_mm_sync): New accessor functions.
1770         * builtins.c (expand_builtin_sync_operation,
1771         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
1772         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
1773         (get_memmodel,  expand_builtin_atomic_compare_exchange,
1774         expand_builtin_atomic_load, expand_builtin_atomic_store,
1775         expand_builtin_atomic_clear): Use new accessor routines.
1776         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
1777         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
1778         (maybe_emit_sync_lock_test_and_set): Use new accessors and
1779         MEMMODEL_SYNC_ACQUIRE.
1780         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
1781         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
1782         expand_atomic_store): Use new accessors.
1783         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
1784         * tsan.c (instrument_builtin_call): Update check for memory model beyond
1785         final enum to use MEMMODEL_LAST.
1786         * c-family/c-common.c: Use new accessor for memmodel_base.
1787         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
1788         accessors.
1789         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
1790         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
1791         mem_thread_fence, *dmb): Likewise.
1792         * config/alpha/alpha.c (alpha_split_compare_and_swap,
1793         alpha_split_compare_and_swap_12): Likewise.
1794         * config/arm/arm.c (arm_expand_compare_and_swap,
1795         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
1796         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
1797         atomic_loaddi): Likewise.
1798         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
1799         Likewise.
1800         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
1801         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
1802         use new accessors.
1803         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
1804         atomic_store<mode>, atomic_compare_and_swap<mode>,
1805         atomic_exchange<mode>): Use new accessors.
1806         * config/mips/mips.c (mips_process_sync_loop): Likewise.
1807         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
1808         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
1809         rs6000_post_atomic_barrier): Add new cases.
1810         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
1811         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
1812         (atomic_load<mode>): Add new cases and use new accessors.
1813         (store_quadpti): Add new cases.
1814         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
1815         accessors.
1816         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
1817         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
1818         model, not 8.
1820 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
1822         * ipa-devirt.c (type_with_linkage_p): New function.
1823         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
1824         type has linkage.
1825         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
1826         (can_be_name_hashed_p): Simplify.
1827         (hash_odr_name): Check that type has linkage before checking if it is
1828         anonymous.
1829         (types_same_for_odr): Likewise.
1830         (odr_name_hasher::equal): Likewise.
1831         (odr_subtypes_equivalent_p): Likewise.
1832         (warn_types_mismatch): Likewise.
1833         (get_odr_type): Likewise.
1834         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
1835         * ipa-utils.h (odr_type_p): Move offline.
1836         * tree.c (need_assembler_name_p): Fix handling of types
1837         without linkages.
1838         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
1840 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
1842         * timevar.c (timevar_enable): Delete in favor of...
1843         (g_timer): New global.
1844         (struct timevar_def): Move to timevar.h inside class timer.
1845         (struct timevar_stack_def): Likewise.
1846         (timevars): Delete global in favor of field "m_timevars" within
1847         class timer in timevar.h
1848         (stack): Likewise, in favor of field "m_stack".
1849         (unused_stack_instances): Likewise, in favor of field
1850         "m_unused_stack_instances".
1851         (start_time): Likewise, in favor of field "m_start_time".
1852         (get_time): Eliminate check for timevar_enable.
1853         (timer::timer): New function, built from part of timevar_init.
1854         (timevar_init): Rewrite idempotency test from using
1855         "timevar_enable" bool to using dynamic allocation of "g_timer".
1856         Move rest of implementation into timer's constructor.
1857         (timevar_push_1): Rename to...
1858         (timer::push): ...this, adding "m_" prefixes to variables that
1859         are now fields of timer.
1860         (timevar_pop_1): Likewise, rename to...
1861         (timer::pop): ...this, and add "m_" prefixes.
1862         (timevar_start): Replace test for "timevar_enable" with one for
1863         "g_timer", and move bulk of implementation to...
1864         (timer::start): ...here, adding "m_" prefixes.
1865         (timevar_stop): Likewise, from here...
1866         (timer::stop): ...to here.
1867         (timevar_cond_start): Likewise, from here...
1868         (timer::cond_start): ...to here.
1869         (timevar_cond_stop): Likewise, from here...
1870         (timer::cond_stop): ...to here.
1871         (validate_phases): Rename to...
1872         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
1873         locals "total" and "tv" const.
1874         (timevar_print): Rename to...
1875         (timer::print): ...this, and add "m_" prefixes.  Make locals
1876         "total" and "tv" const.  Eliminate test for timevar_enable.
1877         * timevar.h (timevar_enable): Eliminate.
1878         (g_timer): New declaration.
1879         (timevar_push_1): Eliminate.
1880         (timevar_pop_1): Eliminate.
1881         (timevar_print): Eliminate.
1882         (class timer): New class.
1883         (timevar_push): Rewrite to use g_timer.
1884         (timevar_pop): Likewise.
1885         * toplev.c (toplev::~toplev): Likewise.
1887 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
1889         * arm-protos.h (arm_sched_autopref): Delete.
1890         (tune_params): Re-organize, use enums for flag values.
1891         (FUSE_OPS): New macro.
1892         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
1893         (ARM_PREFETCH_BENEFICIAL): Likewise.
1894         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
1895         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1896         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
1897         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
1898         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
1899         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
1900         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
1901         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
1902         format.
1903         (arm_option_override, thumb2_reorg, arm_print_tune_info)
1904         (aarch_macro_fusion_pair_p): Update uses of current_tune.
1905         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
1907 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
1909         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
1910         "break".
1912 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
1913             Sandra Loosemore <sandra@codesourcery.com>
1915         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
1916         value.
1917         (REG_CLASS_NAMES): Add "IJMP_REGS".
1918         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
1919         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
1920         use new "c" register constraint.
1921         * config/nios2/constraint.md (c): New register constraint
1922         corresponding to IJMP_REGS.
1924 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1926         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
1927         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
1928         define_splits): Delete, revamp, transmogrify into ...
1929         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
1930         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
1931         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
1932         New.
1934 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1936         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
1937         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
1939 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1941         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
1942         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
1943         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
1944         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
1945         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
1946         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
1947         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
1948         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
1949         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
1950         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
1951         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
1952         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
1953         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
1954         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
1955         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
1956         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
1957         and 30 corresponding splitters): Delete.
1959 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1961         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
1962         zero_extract.
1964 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1966         * combine.c (recog_for_combine_1): New function, factored out
1967         from recog_for_combine.
1968         (change_zero_ext): New function.
1969         (recog_for_combine): If recog fails, try again with the pattern
1970         modified by change_zero_ext; if that still fails, restore the
1971         pattern.
1973 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1975         * combine.c (get_undo_marker): New function.
1976         (undo_to_marker): New function, largely factored out from ...
1977         (undo_all): ... this.  Adjust.
1979 2015-05-12  Richard Biener  <rguenther@suse.de>
1981         PR tree-optimization/66101
1982         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
1983         fixup if we turn a loop exit edge to a fallthru edge.
1985 2015-05-12  Richard Biener  <rguenther@suse.de>
1987         PR tree-optimization/37021
1988         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
1989         (SLP_TREE_TWO_OPERATORS): New define.
1990         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
1991         SLP_TREE_TWO_OPERATORS.
1992         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
1993         SLP node.
1994         (vect_build_slp_tree): Adjust.
1995         (vect_analyze_slp_cost_1): Likewise.
1996         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
1997         emitting two vector stmts and mixing the results.
1999 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2001         * call.c (print_z_candidates): Remove dead code.
2003 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2005         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
2006         and zEC12_simple_fp.
2007         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
2008         to 1.
2010 2015-05-12  Tom de Vries  <tom@codesourcery.com>
2012         PR tree-optimization/66010
2013         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
2014         ifn_va_arg.
2015         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
2016         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
2017         va_lists are passed, and remove corresponding handling.
2018         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
2019         do_deref argument to ifn_va_arg.
2020         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
2021         ifn_va_arg.
2023 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2025         PR target/65955
2026         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
2027         REG before taking its REGNO.
2029 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2031         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
2032         rsp->sign_bit_copies and rsp->nonzero_bits into ...
2033         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
2034         present to get more accurate information about the number of sign bit
2035         copies and non zero bits.
2037 2015-05-12  Richard Biener  <rguenther@suse.de>
2039         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
2040         do not allow unrolling.
2042 2015-05-11  Richard Henderson  <rth@redhat.com>
2044         * config/i386/i386-modes.def (CCP): New.
2045         * config/i386/i386.c (put_condition_code): Handle it.
2046         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
2048 2015-05-11  Richard Henderson  <rth@redhat.com>
2050         * target.def (md_asm_clobbers): Replace with...
2051         (md_asm_adjust): this.
2052         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
2053         (TARGET_MD_ASM_ADJUST): New.
2054         * tm.texi: Rebuild.
2055         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
2056         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
2057         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
2059         * cfgexpand.c (check_operand_nalternatives): Accept vector of
2060         constraints instead of lists of outputs and inputs.
2061         (expand_asm_stmt): Save and restore input_location around the
2062         body of the function.  Move asm data into vectors instead of
2063         building tree lists.  Generate cleanup sequences as needed,
2064         rather than waiting til the end.  Use new md_asm_adjust hook.
2066         * config/vxworks.c: Include vec.h before target.h.
2067         * gimple.c: Likewise.
2068         * incpath.c: Likewise.
2069         * mode-switching.c: Likewise.
2071         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
2072         (cris_md_asm_adjust): this.
2073         (TARGET_MD_ASM_CLOBBERS): Remove.
2074         (TARGET_MD_ASM_ADJUST): New.
2075         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
2076         (ix86_md_asm_adjust): this.
2077         (TARGET_MD_ASM_CLOBBERS): Remove.
2078         (TARGET_MD_ASM_ADJUST): New.
2079         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
2080         (mn10300_md_asm_adjust): this.
2081         (TARGET_MD_ASM_CLOBBERS): Remove.
2082         (TARGET_MD_ASM_ADJUST): New.
2083         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
2084         (rs6000_md_asm_adjust): this.
2085         (TARGET_MD_ASM_CLOBBERS): Remove.
2086         (TARGET_MD_ASM_ADJUST): New.
2087         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
2088         (visium_md_asm_adjust): this.
2089         (TARGET_MD_ASM_CLOBBERS): Remove.
2090         (TARGET_MD_ASM_ADJUST): New.
2092 2015-05-11  Richard Henderson  <rth@redhat.com>
2094         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
2095         if noutputs is zero.
2096         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
2098         * cfgexpand.c (expand_asm_operands): Merge into...
2099         (expand_asm_stmt): ... here.
2101         * cfgexpand.c (expand_asm_operands): Don't call
2102         resolve_asm_operand_names.
2103         * stmt.c (resolve_asm_operand_names): Clarify block comment.
2105 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
2107         * dwarf2out.c (gen_member_die): Sanity check that we access
2108         TYPE_MAIN_VARIANT for TYPE_METHODS.
2109         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
2110         checking TYPE_METHODS.
2111         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
2112         if non-null.
2113         (build_distinct_type_copy): Clear TYPE_METHODS.
2114         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
2115         (verify_type): Allow TYPE_METHODS to be error_mark_node.
2116         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
2118 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
2120         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
2121         (emit_pattern_before_setloc): Likewise.
2123 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
2125         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
2126         for define_peephole2s.
2127         (get_peephole2_pattern): New function.
2128         (main): Use it.  Call validate_pattern.
2130 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2132         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
2133         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
2134         (Last callee saved reg is different for AVR_TINY architecture)
2136 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
2138         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
2139         when looking for memory references.
2141 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
2143         PR target/65753
2144         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
2145         via function pointers.
2147 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
2149         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
2150         indirect call by forcing address into a pseudo with -fno-plt.
2151         * common.opt (flag_plt): New option.
2152         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
2153         ([-fno-plt]): Document.
2155 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
2157         PR bootstrap/66105
2158         * config/rs6000/option-defaults.h: Add space between string literal
2159         and macro name.
2161 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2163         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
2164         accross ARM targets.
2166 2015-05-11  Christian Bruel  <christian.bruel@st.com>
2168         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
2169         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
2171 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
2173         PR rtl-optimization/66076
2174         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
2175         Don't grow the heap array if it is already big enough from a
2176         previous iteration.
2178 2015-05-11  Christian Bruel  <christian.bruel@st.com>
2180         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
2181         (is_called_in_ARM_mode): Remove.
2182         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
2183         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
2184         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
2185          arm_declare_function_name.
2187 2015-05-11  Christian Bruel  <christian.bruel@st.com>
2189         * config/arm/arm.c (arm_option_override): Reoganized and split into :
2190         (arm_option_params_internal); New function.
2191         (arm_option_check_internal): New function.
2192         (arm_option_override_internal): New function.
2193         (thumb_code, thumb1_code): Remove.
2194         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
2195         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
2196         (thumb_code, thumb1_code): Remove.
2197         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
2199 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
2201         * config/alpha/alpha.c (alpha_emit_set_const_1)
2202         (alpha_emit_set_long_const, alpha_extract_integer)
2203         (alpha_legitimate_constant_p, alpha_split_const_mov)
2204         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
2205         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2206         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
2207         HOST_WIDE_INT_1U.
2208         * config/alpha/predicates.md (mode_mask_operand): Do not match
2209         const_double RTX.
2210         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2211         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
2212         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
2213         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2214         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
2216 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
2218         PR target/65780
2219         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
2220         default_binds_local_p_2.
2221         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
2222         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
2224 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2226         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
2228 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2230         Patch by Richard Biener
2231         * coverage.c (coverage_obj_init): Delay building of type variant
2232         until the type is finished.
2234 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2236         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
2237         mismatch between C and C++ type; compoare correctly ARG_TYPES
2238         for non-prototypes and output correctly parameter index for METHOD_TYPE.
2239         (odr_types_equivalent_p): Fix wording of warning about attributes;
2240         it is OK to match prototype and non-prototype.
2242 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2244         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
2245         TYPE_ARG_TYPES list.
2246         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
2247         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
2249 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2251         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
2252         * tree.h (is_lang_specific): Constify.
2254 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
2256         PR tree-optimization/64454
2257         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
2258         Rewrite.
2260 2015-05-08  Jason Merrill  <jason@redhat.com>
2262         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
2263         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
2264         config/darwin.h, config/darwin9.h, config/elfos.h,
2265         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
2266         config/microblaze/microblaze.h, config/mips/mips.h,
2267         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
2268         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
2269         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2270         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
2271         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
2272         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
2273         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
2274         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
2275         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
2276         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
2277         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
2278         between string literal and macro name.
2280 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2282         * jump.c: Change argument types to rtx_insn *.
2283         * rtl.h: Adjust.
2285 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2287         * lra-constraints.c: Change argument type to rtx_insn *.
2289 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2291         * df-problems.c: Change argument type to rtx_insn *.
2293 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2295         * combine.c: Change argument type to rtx_insn *.
2297 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2299         * rtl.h: Adjust.
2300         * rtlanal.c: Change argument type to rtx_insn *.
2302 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2304         * sched-deps.c: Change argument types to rtx_insn *.
2305         * sched-int.h: Adjust.
2307 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2309         * dwarf2cfi.c: Change argument type to rtx_insn *.
2311 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2313         * ira.c (decrease_live_ranges_number): Changetype of local
2314         variable to rtx_insn *.
2315         * recog.c: Change argument types to rtx_insn *.
2316         * recog.h: Adjust.
2318 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2320         * reorg.c: Change argument types to rtx_insn *.
2322 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2324         * ira-color.c: Change argument types to rtx_insn *.
2325         * lra-eliminations.c: Likewise.
2326         * ira.h: Adjust.
2328 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2330         * gcse.c: Change argument types to rtx_insn *.
2332 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2334         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
2336 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2338         * emit-rtl.c (emit_debug_insn_before): Change argument type to
2339         rtx_insn *.
2340         * rtl.h: Adjust.
2342 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2344         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
2345         * rtl.h: Adjust.
2347 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2349         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
2350         * rtl.h: Adjust.
2352 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2354         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
2355         * rtl.h: Adjust.
2357 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2359         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
2360         * rtl.h: Adjust.
2362 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2364         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
2365         to rtx_insn *.
2366         * rtl.h: Adjust.
2368 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2370         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
2371         to rtx_insn *.
2372         * rtl.h: Likewise.
2374 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2376         * except.c (can_nonlocal_goto): Change type of argument to
2377         rtx_insn *.
2378         * rtl.h: Adjust.
2380 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2382         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
2383         * rtl.h: Adjust.
2385 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2387         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
2388         * cfgrtl.c (can_delete_label_p): Adjust.
2389         * rtl.h: likewise.
2391 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2393         * reorg.c (stop_search_p): Change argument to rtx_insn *.
2395 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2397         * except.c (make_reg_eh_region_note): Change argument to
2398         rtx_insn *.
2399         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
2400         * except.h: Adjust.
2402 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2404         * mode-switching.c (commit_mode_sets): Change type of local
2405         variable from rtx to rtx_insn *.
2407 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
2409         * doc/install.texi (--enable-languages): Add missing jit and lto info.
2410         Add ^ to grep command.
2411         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
2412         arg to last gimple_simplify declaration.  Add missing gimple_build
2413         declaration for built-in function case with four tree args.
2415 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
2416             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2418         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2419         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
2420         (GNU_USER_DYNAMIC_LINKERN32): Update.
2422 2015-05-08  Richard Biener  <rguenther@suse.de>
2424         PR tree-optimization/66036
2425         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2426         Handle strided group loads.
2427         (vect_verify_datarefs_alignment): Likewise.
2428         (vect_enhance_data_refs_alignment): Likewise.
2429         (vect_analyze_group_access): Likewise.
2430         (vect_analyze_data_ref_access): Likewise.
2431         (vect_analyze_data_ref_accesses): Likewise.
2432         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
2433         (vectorizable_load): Likewise.
2435 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
2437         * config/rs6000/rs6000.md: Require operand inequality in one
2438         of the peepholes.
2440 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
2441             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2443         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
2444         from (set ...).
2445         * config/rx/rx.md (movdi, movdf): Likewise.
2446         Likewise for define_peephole2s.
2448 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
2450         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
2451         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
2452         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
2453         vtst_u64): Rewrite using gcc vector extensions.
2455 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
2457         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
2458         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
2460 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
2462         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
2464 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2466         * config/glibc-stdint.h (OPTION_MUSL): Define.
2467         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
2468         Change the definition based on OPTION_MUSL for 64 bit targets.
2469         * config/linux.h (OPTION_MUSL): Redefine.
2470         * config/alpha/linux.h (OPTION_MUSL): Redefine.
2471         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
2472         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
2474 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
2475             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2477         * config.gcc (LIBC_MUSL): New tm_defines macro.
2478         * config/linux.h (OPTION_MUSL): Define.
2479         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
2480         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
2481         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2482         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2483         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2484         * config/linux.opt (mmusl): New option.
2485         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
2486         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
2487         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
2488         * configure: Regenerate.
2490 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2491             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2493         PR target/48904
2494         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
2495         * config/i386/knetbsd-gnu64.h: New file.
2497 2015-05-08  Marek Polacek  <polacek@redhat.com>
2499         PR c/64918
2500         * doc/invoke.texi: Document -Woverride-init-side-effects.
2502 2015-05-07  Marek Polacek  <polacek@redhat.com>
2504         PR c/65179
2505         * doc/invoke.texi: Document -Wshift-negative-value.
2507 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
2509         * gcov-tool.c (do_merge): Refactore to remove int ret.
2510         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
2511         !type == FUNC to type != FUNC.
2512         * reload.h (struct target_reload): Changee to type of
2513         x_spill_indirect_levels from bool to unsigned char.
2515 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
2517         * rtl.h (always_void_p): New function.
2518         * gengenrtl.c (always_void_p): Likewise.
2519         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
2520         with code foo are always VOIDmode.
2521         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
2522         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
2523         compare-elim.c, config/aarch64/aarch64.c,
2524         config/aarch64/aarch64.md, config/alpha/alpha.c,
2525         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
2526         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
2527         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
2528         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2529         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
2530         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
2531         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
2532         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
2533         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
2534         config/ia64/vect.md, config/iq2000/iq2000.c,
2535         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
2536         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
2537         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
2538         config/mep/mep.c, config/microblaze/microblaze.c,
2539         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
2540         config/mn10300/mn10300.c, config/msp430/msp430.c,
2541         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
2542         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
2543         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
2544         config/rs6000/altivec.md, config/rs6000/rs6000.c,
2545         config/rs6000/rs6000.md, config/rs6000/vector.md,
2546         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
2547         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
2548         config/sh/sh.md, config/sh/sh_treg_combine.cc,
2549         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
2550         config/spu/spu.md, config/stormy16/stormy16.c,
2551         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
2552         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
2553         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
2554         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
2555         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
2556         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
2557         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
2558         var-tracking.c: Update calls accordingly.
2560 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
2562         PR middle-end/192
2563         PR middle-end/54303
2564         * varasm.c (function_mergeable_rodata_prefix): New function.
2565         (mergeable_string_section): Use it.
2566         (mergeable_constant_section): Use it.
2568 2015-05-07  Jeff Law  <law@redhat.com>
2570         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2571         simplifier to narrow arithmetic.
2572         * generic-match-head.c: (types_match, single_use): New functions.
2573         * gimple-match-head.c: (types_match, single_use): New functions.
2575 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2577         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
2578         rtx type.
2580 2015-05-07  Richard Biener  <rguenther@suse.de>
2582         PR tree-optimization/66002
2583         * passes.def: Schedule another pass_merge_phi after ifcombine, right
2584         before phiopt.
2586 2015-05-07  Marek Polacek  <polacek@redhat.com>
2587             Martin Uecker  <uecker@eecs.berkeley.edu>
2589         * doc/invoke.texi: Document -fsanitize=bounds-strict.
2590         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
2591         into SANITIZE_NONDEFAULT.
2592         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
2594 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
2596         PR target/66015
2597         * config/alpha/alpha.c (alpha_override_options_after_change): New.
2598         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
2599         (alpha_override_options): Move align_loops, align_jumps and
2600         align_functions handling into alpha_override_options_after_change.
2602 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
2603             Chris Jones  <chrisj@nvidia.com>
2604             Joshua Conner  <jconner@nvidia.com>
2606         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
2607         linking of crtfastmath.o.
2608         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
2610 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
2612         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
2613         (cstore<mode>4_unsigned_imm): New expander.
2614         (cstore<mode>4): Remove empty constraint strings.  Use the new
2615         expanders.
2617 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
2619         PR target/64208
2620         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
2621         alternatives.
2623 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2625         * config/aarch64/geniterators.sh: Use standard BRE in sed.
2627 2015-05-06  Alan Modra  <amodra@gmail.com>
2629         PR target/66033
2630         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
2631         (UNSPEC_NOP): Define.
2632         (reload_vsx_from_gpr<mode>): Add missing DONE.
2633         (reload_gpr_from_vsx<mode>): Likewise.
2634         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
2635         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
2637 2015-05-06  Christian Bruel  <christian.bruel@st.com>
2639         PR target/66015
2640         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
2641         align_jumps, align_functions into aarch64_override_options_after_change.
2643 2015-05-06  Richard Biener  <rguenther@suse.de>
2645         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
2646         vect_transform_slp_perm_load to check if we support a permutation
2647         for basic-block vectorization.
2649 2015-05-06  Nick Clifton  <nickc@redhat.com>
2651         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
2652         used, even if it is not being used as a frame pointer.
2654 2015-05-05  Jason Merrill  <jason@redhat.com>
2656         * dwarf2out.c (gen_member_die): Don't emit anything for an
2657         anonymous class constructor.
2659 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
2661         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
2662         that it reflects the block structure.
2663         (afdo_propagate_edge): Likewise.
2664         (afdo_calculate_branch_prob): Likewise.
2665         (afdo_annotate_cfg): Likewise.
2666         * cfgcleanup.c (equal_different_set_p): Likewise.
2667         (try_crossjump_to_edge): Likewise.
2668         * cgraph.c (cgraph_node::verify_node): Likewise.
2669         * cgraphunit.c (expand_all_functions): Likewise.
2670         * config/i386/i386.c (ix86_expand_copysign): Likewise.
2671         (exact_dependency_1): Likewise.
2672         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
2673         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
2674         * gensupport.c (process_define_subst): Likewise.
2675         * lto-wrapper.c (merge_and_complain): Likewise.
2676         * tree-if-conv.c (if_convertible_bb_p): Likewise.
2677         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
2678         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
2679         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2680         * tree-vect-loop.c (vectorizable_reduction): Likewise.
2681         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2682         * tree-vect-stmts.c (vectorizable_shift): Likewise.
2683         * tree-vrp.c (vrp_finalize): Likewise.
2684         * tree.c (variably_modified_type_p): Likewise.
2686 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
2688         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
2689         on darwin12 and later.
2690         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
2691         file to pass -rdynamic on darwin12 and later.
2692         * config/darwin.opt (rdynamic): Add.
2694 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
2696         * doc/extend.texi (C Extensions): Update menu for moved Variable
2697         Attributes and Type Attributes sections.
2699 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
2701         PR target/65990
2702         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
2703         if rep_8byte stringop strategy was specified for 32-bit target.
2705 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
2707         PR target/65915
2708         * config/i386/i386.md (vector convert to float spltiter): Check for
2709         xmm16+, when splitting scalar float conversion.
2710         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
2712 2015-05-05  Nick Clifton  <nickc@redhat.com>
2714         * config/msp430/msp430-opts.h (enum msp430_regions): New.
2715         * config/msp430/msp430.c (msp430_override_options): Complain if
2716         -mcode-region or -mdata-region is used on a non MSP430X.
2717         (msp430_section_attr): New function.  Checks lower, upper and
2718         either attributes.
2719         (msp430_attribute_table): Add lower, upper and either.
2720         (gen_prefix): New function.  Generates a prefix for a section
2721         name.
2722         (msp430_select_section): New function - handles the choice of
2723         section for an object.  Takes into account memory region
2724         attributes and options.
2725         (msp430_function_section): Use gen_prefix.
2726         (TARGET_SECTION_TYPE_FLAGS): Define.
2727         (msp430_section_type_flags): New function.
2728         (TARGET_ASM_UNIQUE_SECTION): Define.
2729         (msp430_unique_section): New function.
2730         (msp430_output_aligned_decl_common): New function.
2731         (msp430_do_not_relax_short_jumps): New function.
2732         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
2733         Define.
2734         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2735         * config/msp430/msp430-protos.h
2736         (msp430_do_not_relax_short_jumps): New prototype.
2737         (msp430_output_aligned_decl_common): New prototype.
2738         * config/msp430/msp430.md (length): New attribute.
2739         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
2740         then use a long code sequence for short jumps.
2741         * config/msp430/msp430.opt (mcode-region): New.
2742         (mdata-region): New.
2743         * doc/invoke.texi: Document new options.
2744         * doc/extend.texi: Document new attributes.
2746 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
2748         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
2749         (tune_params): Add field branch_costs.
2750         (aarch64_branch_cost): Declare.
2751         * gcc/config/aarch64.c (generic_branch_cost): New.
2752         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
2753         (cortexa53_tunings): Likewise.
2754         (cortexa57_tunings): Likewise.
2755         (thunderx_tunings): Likewise.
2756         (xgene1_tunings): Likewise.
2757         (aarch64_branch_cost): Define.
2758         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
2760 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
2762         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
2763         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
2764         * config/i386/i386.md: Ditto.
2765         * config/i386/winnt.c: Ditto.
2767 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
2769         * doc/extend.texi (__atomic Builtins): Move implementation details
2770         to the end of the description, rewrite opening paragraphs, state
2771         difference with __sync builtins, state C11/C++11 assumptions,
2772         weaken itemized descriptions, add explanation of memory model
2773         behaviour, expand description of compare-exchange, simplify text.
2775 2015-05-05  Renlin Li  <renlin.li@arm.com>
2777         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
2779 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
2781         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
2782         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2783         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
2784         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2785         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
2786         * configure: Regenerate.
2787         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
2788         * doc/install.texi (aarch64*-*-*): Document new
2789         --enable-fix-cortex-a53-843419 option.
2790         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
2791         and -mno-fix-cortex-a53-843419 options.
2793 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
2795         PR target/65871
2796         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
2798 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
2800         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
2801         fix overactive TYPE_MIN_VALUE check and add FIXME for type
2802         compatibility problems.
2804 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
2806         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
2807         constraints.
2808         (cbranchsi4_reg): New.
2809         * config/microblaze/microblaze.c
2810         (microblaze_expand_conditional_branch_reg): New.
2811         * config/microblaze/microblaze-protos.h
2812         (microblaze_expand_conditional_branch_reg): New prototype.
2814 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
2816         * config/microblaze/microblaze.md (peephole2): New.
2818 2015-05-04  Jeff Law  <law@redhat.com>
2820         Revert:
2821         2015-05-04  Jeff Law  <law@redhat.com>
2823         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2824         simplifier to narrow arithmetic.
2825         * generic-match-head.c: (types_match, single_use): New functions.
2826         * gimple-match-head.c: (types_match, single_use): New functions.
2828 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2830         PR target/65987
2831         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
2832         (split_branches): Likewise.
2834 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
2836         * common.opt (fdelete-null-pointer-checks): Init to -1.
2837         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
2838         override flag_delete_null_pointer_checks default.
2839         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
2840         behavior re address zero.  Better document target-specific behavior.
2841         (-fisolate-errneous-paths-dereference): Mention relationship to
2842         -fdelete-null-pointer-checks.
2844 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
2846         PR tree-optimization/65984
2847         * ubsan.c: Include tree-cfg.h.
2848         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
2849         stmt_could_throw_p test, rename can_throw variable to ends_bb.
2851 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
2853         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
2854         to CONST_DOUBLE_P predicate.
2855         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
2856         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
2857         allow only operands that satisfy standard_sse_constant_p predicate.
2858         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
2859         to CONST_DOUBLE_P predicate.
2861 2015-05-04  Jeff Law  <law@redhat.com>
2863         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2864         simplifier to narrow arithmetic.
2865         * generic-match-head.c: (types_match, single_use): New functions.
2866         * gimple-match-head.c: (types_match, single_use): New functions.
2868 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
2870         * config/arm/arm.c: Restore bootstrap.
2872 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
2874         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
2875         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
2876         as CONST_WIDE_INT, not CONST_DOUBLE.
2877         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
2878         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
2879         (ix86_find_base_term): Do not check for CONST_DOUBLE.
2880         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
2881         (ix86_build_signbit_mask): Rewrite using wide ints.
2882         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
2883         (ix86_rtx_costs): Handle CONST_WIDE_INT.
2884         (find_constant): Ditto.
2885         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
2886         using gen_int_mode.
2887         * config/i386/predicates.md (x86_64_immediate_operand)
2888         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
2889         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
2890         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
2891         (const0_operand): Also match const_wide_int.
2892         (constm1_operand): Ditto.
2893         (const1_operand): Ditto.
2895 2015-05-04  Richard Biener  <rguenther@suse.de>
2897         PR tree-optimization/65965
2898         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
2899         store groups at gaps.
2901 2015-05-04  Richard Biener  <rguenther@suse.de>
2903         PR tree-optimization/65935
2904         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
2905         then make sure to apply that swapping to the IL.
2907 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
2909         * Makefile.in (PATCHLEVEL_c): New variable.
2910         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
2911         expand the same way as if DEVPHASE_c was non-empty.
2913 2015-05-04  Kai Tietz  <ktietz@redhat.com>
2915         PR target/65559
2916         * lto-wrapper.c (run_gcc): Open filename
2917         in binary-mode.
2919 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
2921         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
2922         sections up in file, to immediately after the Function Attributes
2923         section.
2925 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
2927         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
2929 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2931         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
2932         (insert_partition_copy_on_edge): Adjust.
2933         (insert_rtx_to_part_on_edge): Likewise.
2934         (insert_part_to_rtx_on_edge): Likewise.
2936 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2938         * function.c (set_return_jump_label): Change type of argument to
2939         rtx_insn *.
2940         * function.h (set_return_jump_label): Adjust.
2942 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2944         * reload.h (struct reg_equivs_t): Change type of init to
2945         rtx_insn *.
2946         * ira.c (fix_reg_equiv_init): Adjust.
2947         * reload1.c (eliminate_regs_1): Likewise.
2948         (init_eliminable_invariants): Likewise.
2950 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2952         * cselib.c (fp_setter_insn): Take a rtx_insn *.
2953         * cselib.h (fp_setter_insn): Adjust.
2955 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2957         * recog.c (struct validate_replace_src_data): Change type of
2958         insn field to rtx_insn *.
2959         (validate_replace_src_group): Change type of argument to rtx_insn *.
2960         * recog.h (validate_replace_src_group): Adjust.
2962 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2964         * haifa-sched.c: Change the type of some variables to rtx_insn *.
2965         * sched-deps.c: Likewise.
2966         * sched-int.h: Likewise.
2967         * sched-rgn.c: Likewise.
2968         * sel-sched.c: Likewise.
2970 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2972         to rtx_insn *.
2973         * config/i386/i386.c: Change the type of some arguments to
2974         rtx_insn *.
2975         * config/arm/arm.c: Likewise.
2977 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2979         * lra-constraints.c: Change type of some arguments to rtx_insn *.
2981 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2983         * regcprop.c (kill_autoinc_value): Change type of argument to
2984         rtx_insn *.
2986 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2988         * genrecog.c (print_subroutine): Adjust.
2989         * recog.c (get_bool_attr_mask_uncached): Likewise.
2990         * recog.h (struct recog_data_d): Change the type of insn to
2991         rtx_insn *.
2993 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2995         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
2997 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2999         * df-problems.c (df_set_note): Change type of argument to
3000         rtx_insn *.
3002 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3004         * builtins.c (expand_builtin_trap): Change type of local
3005         variable to rtx_insn *.
3006         (add_sched_insns_for_speculation): Likewise.
3007         (ix86_emit_save_regs): Likewise.
3008         (get_scratch_register_on_entry): Likewise.
3009         (ix86_emit_restore_reg_using_pop): Likewise.
3010         (ix86_emit_leave): Likewise.
3011         (ix86_emit_restore_regs_using_mov): Likewise.
3012         (ix86_expand_epilogue): Likewise.
3013         Likewise.
3014         (rl78_alloc_physical_registers_umul): Likewise.
3015         * cselib.c (discard_useless_locs): Likewise.
3016         (cselib_invalidate_regno): Likewise.
3017         (cselib_invalidate_mem): Likewise.
3018         * function.c (expand_function_start): Likewise.
3019         (emit_use_return_register_into_block): Likewise.
3020         * gcse.c: Likewise.
3021         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
3022         * ifcvt.c (noce_get_alt_condition): Likewise.
3023         * loop-doloop.c (doloop_condition_get): Likewise.
3024         * lra-constraints.c (inherit_in_ebb): Likewise.
3025         * modulo-sched.c (sms_schedule_by_order): Likewise.
3026         * recog.c (next_insn_tests_no_inequality): Likewise.
3027         * reorg.c (emit_delay_sequence): Likewise.
3028         (update_reg_dead_notes): Likewise.
3029         (fix_reg_dead_note): Likewise.
3030         (fill_slots_from_thread): Likewise.
3031         (delete_computation): Likewise.
3033 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
3035         * doc/extend.texi (Variable Attributes): Add menu and proper
3036         @nodes to subsections.  Move Microsoft Windows attributes to
3037         their own subsection.
3038         (Type Attributes): Reorganize introduction to remove duplicate
3039         list of attributes.  Add menu and proper @nodes to subsections.
3040         Alphabetize the main table of common attributes.
3042 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
3044         * match.pd: New simplification patterns.
3045         (x + (x & 1))  -> ((x + 1) & ~1)
3046         (x & ~(x & y)) -> ((x & ~y))
3047         (x | ~(x | y)) -> ((x | ~y))
3049 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3051         * target.def (attribute_table): Mention that struct attribute_spec
3052         is defined in tree-core.h rather than tree.h
3053         * doc/tm.texi: Regenerate.
3055 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
3057         * genrecog.c (test): Rename to rtx_test.  Update rest of file
3058         accordingly.
3060 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3062         PR translation/65959
3063         * params.h (DEFPARAM): Rename msgid to nocmsgid.
3065 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
3067         * gcc/config/aarch64/aarch64-protos.h (tune_params):
3068         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
3069         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
3070         Return value depending on target.
3071         (generic_tunings): Initialize new target settings.
3072         (cortexa53_tunings): Likewise.
3073         (cortexa57_tunings): Likewise.
3074         (thunderx_tunings): Likewise.
3075         (xgene1_tunings): Likewise.
3077 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
3079         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
3080         Make Cortex-A53 shift costs more accurate.
3082 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3084         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
3085         UNSIGNED_FLOAT.
3087 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
3089         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
3090         Calculate cost of op0 and op1 in PLUS and MINUS cases.
3092 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3094         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3095         Add cost of op0 in the compare-with-fpzero case.
3097 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
3099         * builtins.c (fold_builtin_1): Remove spurious second
3100         semicolon.
3101         * cgraph.h (symtab_node::get_availability): Likewise.
3102         * opts.c (common_handle_option): Remove spurious second semicolon.
3103         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3104         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3106 2015-04-30  Caroline Tice  <cmtice@google.com>
3108         PR gcov-profile/65929
3109         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
3110         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
3111         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
3112         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
3113         * doc/tm.texi: Regenerate.
3114         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
3115         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
3116         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
3117         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
3119 2015-04-30  Marek Polacek  <polacek@redhat.com>
3121         * varasm.c (handle_cache_entry): Fix logic.
3123 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3125         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
3126         (*extrsi5_insn_uxtw_alt): Likewise.
3127         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
3128         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
3129         operations.
3131 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3133         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
3134         fabd in ABS case.
3136 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3138         * config/aarch64/aarch64.md
3139         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
3140         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
3141         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
3142         appropriately.  Handle alternative EON form.
3144 2015-04-30  Renlin Li  <renlin.li@arm.com>
3146         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
3147         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
3149 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
3151         PR ipa/65873
3152         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
3153         -fstrict-aliasing boundaries.
3155 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3157         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
3158         and [SU]MNEGL patterns.
3160 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3162         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
3163         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
3164         combined arithmetic-shift ops.  Properly handle all shift and extend
3165         operations that can occur in combination with PLUS/MINUS.
3166         Rename maybe_fma to compound_p.
3167         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
3168         arithmetic and shift operations.
3170 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3172         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
3173         rather than arith_shift cost when costing ADD/MINUS of an
3174         extended value.
3176 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
3178         PR lto/65948
3179         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
3180         to itself.
3182 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
3184         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
3185         are for the same position.
3187 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
3189         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
3190         vectorize_loops.
3191         (vectorize_loops): Use it.
3193 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
3195         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
3196         for aggregate types.
3197         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
3198         type to be non_ODR.
3199         * tree.c (need_assembler_name_p): Compute mangled name for
3200         non-fundamental types and integer types.
3202 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
3204         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
3205         manual swaps.
3206         * expr.c (expand_expr_real_2): Likewise.
3208 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
3210         * tree.c (build_common_builtin_nodes): Do not build
3211         __builtin_alloca_with_align as equivalent of library alloca.
3213 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
3215         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
3216         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
3217         bugus variants.
3218         * tree.c: Include print-tree.h and ipa-utils.h
3219         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
3220         (free_lang_data_in_cgraph): Call verify_type.
3221         (verify_type_variant): New function.
3222         (verify_type): New function.
3223         * tree.h (verify_type): Declare.
3225 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
3227         * config/mips/mips-cpus.def: (mips4): Change default processor
3228         from PROCESSOR_R8000 to PROCESSOR_R10000.
3230 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
3232         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
3233         la/jalr instead of jal.
3235 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
3237         PR target/65871
3238         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
3239         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
3240         (setcc+movzbl peephole2): Check also clobbered reg.
3241         (setcc+andl peephole2): Ditto.
3243 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3245         PR libgomp/65099
3246         * config/nvptx/mkoffload.c (target_ilp32): New variable.
3247         (main): Set it depending on "-foffload-abi=[...]".
3248         (compile_native, main): Use it to pass "-m32" or "-m64" to the
3249         compiler.
3251 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
3253         PR target/65770
3254         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
3255         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
3256         Flip lane index back at assembly time for bigendian.
3258 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3260         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
3261         * gimplify.c (gimplify_omp_workshare): Use it.
3263 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3265         * Makefile.in (build/genrecog.o): Depend on inchash.h.
3266         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
3267         build/inchash.o
3268         * genrecog.c: Rewrite most of the code except for the third page.
3270 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3272         * inchash.h, inchash.c: Include bconfig.h for build objects.
3273         * Makefile.in (build/inchash.o): New rule.
3275 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
3277         PR target/65924
3278         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
3279         number in type attribute expression.
3281 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3283         * loop-iv.c (canon_condition): Generalize to all types of integer
3284         constant.
3286 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
3288         * gimple-walk.c: Prune duplicate or unneeded includes.
3289         (walk_gimple_asm): Only call parse_input_constraint or
3290         parse_output_constraint if their findings are used.
3291         Honour parse_input_constraint and parse_output_constraint
3292         result.
3294 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
3296         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
3298 2015-04-29  Tom de Vries  <tom@codesourcery.com>
3300         PR tree-optimization/65893
3301         * passes.def (pass_all_optimizations): Move pass_stdarg to after
3302         pass_dce.
3304 2015-04-29  Richard Biener  <rguenther@suse.de>
3306         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3307         compute GROUP_SIZE for basic-block SLP.
3308         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
3309         take into account gaps.
3310         (vect_get_mask_element): Properly reject references to previous
3311         vectors.
3312         (vect_transform_slp_perm_load): Likewise.
3314 2015-04-29  Christian Bruel  <christian.bruel@st.com>
3316         PR target/64835
3317         * config/i386/i386.c (ix86_default_align): New function.
3318         (ix86_override_options_after_change): Call ix86_default_align.
3319         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
3320         (ix86_override_options_after_change): New function.
3322 2015-04-28  Jeff Law  <law@redhat.com>
3324         * tree-ssa-dom.c (record_equality); Fix comment typos.
3326 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3328         PR tree-optimization/65887
3329         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
3331 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
3333         * doc/extend.texi (Declaring Attributes of Functions): Split into
3334         subsections by target.  Alphabetize the table of common attributes.
3335         Rewrite some of the introductory text to reflect the new structure.
3336         Update some cross-references to point to the new subsections.
3337         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
3338         duplicate copies in the discussion of function, label, and type
3339         attributes.
3341 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
3343         PR bootstrap/65910
3344         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
3346 2015-04-28  Jason Merrill  <jason@redhat.com>
3348         PR c++/65734
3349         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
3350         (finalize_type_size): Respect TYPE_USER_ALIGN.
3351         (layout_type) [ARRAY_TYPE]: Likewise.
3353 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
3355         * config/arm/arm.md (*arm_movt): Fix type attribute.
3356         (*cmpsi_shiftsi): Likewise.
3357         (*cmpsi_shiftsi_swp): Likewise.
3358         (*movsicc_insn): Likewise.
3359         (*cond_move): Likewise.
3360         (*if_plus_move): Likewise.
3361         (*if_move_plus): Likewise.
3362         (*if_arith_move): Likewise.
3363         (*if_move_arith): Likewise.
3364         (*if_shift_move): Likewise.
3365         (*if_move_shift): Likewise.
3366         (*arm_movtas_ze): Likewise.
3367         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
3368         redundancy and type attribute.
3369         (*thumb2_movsi_insn): Fix type attribute.
3370         (*thumb2_addsi_short): Likewise.
3371         (thumb2_addsi3_compare0): Likewise.
3372         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
3373         attributes accordingly.
3375 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
3377         PR other/65911
3378         * function.c (pad_to_arg_alignment): Add parentheses.
3380 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
3382         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
3383         libgcc/config/frv/elf-lib.h.
3385 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3387         * tree-call-cdce.c: Fix example in header comment.
3389 2015-04-28  Richard Biener  <rguenther@suse.de>
3391         PR tree-optimization/62283
3392         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
3393         fails fatally and we are vectorizing a basic-block simply
3394         cause the child to be constructed piecewise.
3395         (vect_analyze_slp_cost_1): Adjust.
3396         (vect_detect_hybrid_slp_stmts): Likewise.
3397         (vect_bb_slp_scalar_cost): Likewise.
3398         (vect_get_constant_vectors): For piecewise constructed
3399         constants place them after the last def.
3400         (vect_get_slp_defs): Adjust.
3401         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
3402         externals for basic-block vectorization.
3404 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3406         PR target/63503
3407         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
3408         aarch64-*-*.
3409         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
3410         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
3411         (AARCH64_TUNE_FMA_STEERING): Likewise.
3412         * config/aarch64/aarch64-cores.def: Set
3413         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
3414         FMUL/FMADD instructions.
3415         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
3416         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
3417         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
3418         * config/aarch64/cortex-a57-fma-steering.h: New file.
3419         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3421 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
3423         * gensupport.c (std_preds): Add missing codes to address_operand entry.
3425 2015-04-28  Richard Biener  <rguenther@suse.de>
3427         PR tree-optimization/65851
3428         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
3429         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
3430         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
3431         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
3432         (ccp_visit_phi_node): Adjust.
3433         (evaluate_stmt): For simplifications to SSA names return its
3434         lattice value if that isn't VARYING.  Return immediately when
3435         simplified to a constant.
3436         (visit_assignment): Adjust.
3437         (ccp_visit_stmt): Likewise.
3439 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3441         PR tree-optimization/65818
3442         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
3443         evaluated.
3445 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3447         * calls.c (save_fixed_argument_area): Don't check
3448         ARGS_GROW_DOWNWARD with the preprocessor.
3449         (restore_fixed_argument_area): Likewise.
3450         (mem_overlaps_already_clobbered_arg_p): Likewise.
3451         (check_sibcall_argument_overlap): Likewise.
3452         (expand_call): Likewise.
3453         (emit_library_call_value_1): Likewise.
3454         (store_one_arg): Likewise.
3455         * function.c (assign_parms): Likewise.
3456         (locate_and_pad_parm): Likewise.
3457         (pad_to_arg_alignment): Likewise.
3458         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
3460 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3462         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
3463         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
3464         * calls.c (save_fixed_argument_area): Don't chekc if
3465         ARGS_GROW_DOWNWARD is defined.
3466         (restore_fixed_argument_area): Likewise.
3467         (mem_overlaps_already_clobbered_arg_p): Likewise.
3468         (check_sibcall_argument_overlap): Likewise.
3469         (expand_call): Likewise.
3470         (emit_library_call_value_1): Likewise.
3471         (store_one_arg): Likewise.
3472         * function.c (assign_parms): Likewise.
3473         (locate_and_pad_parm): Likewise.
3474         (pad_to_arg_alignment): Likewise.
3475         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
3477 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3479         * defaults.h (gen_epilogue): New function.
3480         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
3481         defined.
3482         * cfgrtl.c (cfg_layout_finalize): Likewise.
3483         * df-scan.c: Likewise.
3484         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3485         (reposition_prologue_and_epilogue_notes): Likewise.
3486         * reorg.c (find_end_label): Likewise.
3487         * toplev.c: Likewise.
3489 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3491         * bb-reorder.c (HAVE_return): Don't check if its undefined.
3492         * defaults.h (gen_simple_return): New function.
3493         (gen_simple_return): Likewise.
3494         (HAVE_return): Add default definition to false.
3495         (HAVE_simple_return): Likewise.
3496         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
3497         HAVE_return and HAVE_simple_return are defined.
3498         * function.c (gen_return_pattern): Likewise.
3499         (convert_jumps_to_returns): Likewise.
3500         (thread_prologue_and_epilogue_insns): Likewise.
3501         * reorg.c (find_end_label): Likewise.
3502         (dbr_schedule): Likewise.
3503         * shrink-wrap.c: Likewise.
3504         * shrink-wrap.h: Likewise.
3506 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3508         * defaults.h (EPILOGUE_USES): Add default definition of false.
3509         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
3510         * resource.c (init_resource_info): Likewise.
3512 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3514         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
3515         to false.
3516         * dwarf2out.c (field_byte_offset): REmove check if
3517         PCC_BITFIELD_TYPE_MATTERS is defined.
3518         * stor-layout.c (layout_decl): Likewise.
3519         (update_alignment_for_field): Likewise.
3520         (place_field): Likewise.
3522 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3524         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
3525         true.
3526         * regrename.c (check_new_reg_p): Remove check if
3527         HARD_REGNO_RENAME_OK is defined.
3528         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
3530 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3532         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
3533         * cse.c (fold_rtx): Likewise.
3534         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
3535         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
3536         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
3537         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
3538         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
3539         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
3540         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
3541         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
3542         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
3543         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
3544         * Likewise.
3545         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
3546         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
3547         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
3548         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
3549         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
3550         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
3551         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
3552         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
3553         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
3554         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
3555         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
3556         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
3557         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
3558         * doc/tm.texi: Regenerate.
3559         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
3560         either true or false.
3562 2015-04-27  Jeff Law  <law@redhat.com>
3564         PR tree-optimization/65217
3565         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
3566         of them has a single use, make sure it is the LHS of the implied
3567         copy.
3569 2015-04-28  Alan Modra  <amodra@gmail.com>
3571         PR target/65810
3572         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
3573         (offsettable_ok_by_alignment): Use minimum of decl and toc
3574         pointer alignment.  Replace dead code with assertion.
3575         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
3576         case if size exceeds toc pointer alignment.
3577         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
3578         (rs6000_emit_move): Likewise.
3579         * configure.ac: Add linker toc pointer alignment check.
3580         * configure: Regenerate.
3581         * config.in: Regenerate.
3583 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
3585         * config.gcc: Add h8300-*-linux.
3586         * config/h8300/linux.h: New.
3587         * config/h8300/t-linux: New.
3588         * config/h8300/h8300.c (h8300_option_override): Normal mode
3589         is not supported for h8300-*-linux.
3590         (h8300_file_start): Target priority change.
3591         (get_shift_alg): Likewise.
3592         (h8300_shift_need_scratch_p): Likewise.
3593         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3594         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
3596 2015-04-27  Caroline Tice  <cmtice@google.com>
3598         * final.c (final_scan_insn):  Output cold_function_name as function
3599         type.
3600         * varasm.c (cold_function_name):  Make global.
3601         (assemble_start_function):  Re-set cold_function_name.
3602         (assemble_end_function): Output cold partition size.
3603         * varasm.h (cold_function_name):  Declare global.
3605 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
3607         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
3608         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
3609         constraint.
3610         (*movxi_internal_avx512f): Ditto.
3611         (define_split): Check for xmm16+, when splitting scalar float_extend.
3612         (*extendsfdf2_mixed): Use "v" constraint.
3613         (define_split): Check for xmm16+, when splitting scalar float_truncate.
3614         (*truncdfsf_fast_sse): Use "v" constraint.
3615         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
3616         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
3617         (define_peephole2): Check for xmm16+, when converting scalar
3618         float_truncate.
3619         (define_peephole2): Check for xmm16+, when converting scalar
3620         float_extend.
3621         (*fop_<mode>_comm_mixed): Use "v" constraint.
3622         (*fop_<mode>_comm_sse): Ditto.
3623         (*fop_<mode>_1_mixed): Ditto.
3624         (*sqrt<mode>2_sse): Ditto.
3625         (*ieee_s<ieee_maxmin><mode>3): Ditto.
3627 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3629         * combine.c (simplify_if_then_else): Use std::swap instead
3630         of manually swapping.
3631         (known_cond): Likewise.
3632         (simplify_comparison): Likewise.
3634 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
3636         PR target/64579
3637         * config/rs6000/htm.md: Remove all define_expands.
3638         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
3639         UNSPECV_HTM_TABORTWCI): Remove.
3640         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
3641         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
3642         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
3643         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
3644         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
3645         tabortwci_internal): Remove define_insns.
3646         (tabort<wd>c, tabort<wd>ci): New define_insns.
3647         (tabort): Use gpc_reg_operand.
3648         (tcheck): Remove operand.
3649         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
3650         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
3651         expected value.
3652         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
3653         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
3654         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
3655         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
3656         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
3657         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
3658         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
3659         (tcheck): Remove builtin argument.
3660         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
3661         not TARGET_64BIT.
3662         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
3663         tabortdc and tabortdci builtins when not in 64-bit mode.
3664         Modify code to handle the loss of the HTM define_expands.
3665         Emit code to copy the CR register to TARGET.
3666         (htm_init_builtins): Modify code to handle the loss of the HTM
3667         define_expands.
3668         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
3669         (RS6000_BTC_64BIT): Likewise.
3670         (RS6000_BTC_CR): New macro.
3671         * doc/extend.texi: Update documentation for htm builtins.
3673 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3675         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
3676         of manually swapping.
3677         (simplify_associative_operation): Likewise.
3678         (simplify_binary_operation): Likewise.
3679         (simplify_plus_minus): Likewise.
3680         (simplify_relational_operation): Likewise.
3681         (simplify_ternary_operation): Likewise.
3683 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
3685         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
3686         (xs_hi_nonmemory_operand): Remove error.
3687         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
3688         general_operand rather than xs_hi_general_operand.
3690 2015-04-27  Richard Biener  <rguenther@suse.de>
3692         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
3693         (record_equivalences_from_stmt): Valueize rhs.
3694         (record_equality): Canonicalize x and y order via
3695         tree_swap_operands_p.  Do not swap operands for same loop depth.
3697 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
3699         PR target/65296
3700         PR target/65895
3701         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
3702         Add hint how to use own spec file.
3704 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
3706         PR tree-optimization/65875
3707         * tree-vrp.c (update_value_range): If in is_new case setting
3708         old_vr to VR_VARYING, also set new_vr to it.  Remove
3709         old_vr->type == VR_VARYING test.
3710         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
3711         SSA_PROP_INTERESTING if update_value_range returned true,
3712         but new range is VR_VARYING.
3714 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3716         * combine.c (sign_extend_short_imm): New.
3717         (set_nonzero_bits_and_sign_copies): Use above new function for sign
3718         extension of src short immediate.
3719         (reg_nonzero_bits_for_combine): Likewise for tem.
3721 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
3723         * stor-layout.c (self_referential_component_ref_p): New predicate.
3724         (copy_self_referential_tree_r): Use it.
3725         (self_referential_size): Punt for simple operations directly involving
3726         self-referential component references.
3727         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
3729 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
3731         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
3733 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
3735         * vec.h (vec): Make splice arguments const.  Update definitions
3736         accordingly.
3738 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
3740         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
3741         alternatives.
3743 2015-04-26  Tom de Vries  <tom@codesourcery.com>
3745         PR tree-optimization/65826
3746         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
3748 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
3750         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
3751         (*madd3<mode>): Ditto.
3752         (*msub4<mode>): Ditto.
3753         (*msub3<mode>): Ditto.
3754         (*nmadd4<mode>): Ditto.
3755         (*nmadd3<mode>): Ditto.
3756         (*nmadd4<mode>_fastmath): Ditto.
3757         (*nmadd3<mode>_fastmath): Ditto.
3758         (*nmsub4<mode>): Ditto.
3759         (*nmsub3<mode>): Ditto.
3760         (*nmsub4<mode>_fastmath): Ditto.
3761         (*nmsub3<mode>_fastmath): Ditto.
3763 2015-04-24  Jason Merrill  <jason@redhat.com>
3765         PR c++/50800
3766         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
3767         down when building TYPE_CANONICAL.
3768         (build_pointer_type_for_mode): Likewise.
3770 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
3772         * genrecog.c (validate_pattern): Check matching constraint refers
3773         to a lower numbered operand.
3775 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3777         PR target/65849
3778         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
3779         save to independent variables use the Save attribute.  This will
3780         allow these options to be modified with the #pragma/attribute
3781         target support.
3782         (-mallow-movmisalign): Likewise.
3783         (-mallow-df-permute): Likewise.
3784         (-msched-groups): Likewise.
3785         (-malways-hint): Likewise.
3786         (-malign-branch-targets): Likewise.
3787         (-mvectorize-builtins): Likewise.
3788         (-msave-toc-indirect): Likewise.
3790         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
3791         can be set via the #pragma/attribute target support.
3792         (rs6000_opt_vars): Likewise.
3793         (rs6000_inner_target_options): If VSX was set, also set
3794         -mno-avoid-indexed-addresses.
3796 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3798         * config/arm/iterators.md (shiftable_ops): Rename to...
3799         (SHIFTABLE_OPS): ... This.  Update use in comments.
3800         (ior_xor): Rename to...
3801         (IOR_XOR): ... This.
3802         (vqh_ops): Rename to...
3803         (VQH_OPS): ... This.
3804         (vqhs_ops): Rename to...
3805         (VQHS_OPS): ... This.
3806         (rshifts): Rename to...
3807         (RSHIFTS): ... This.
3808         (returns): Rename to...
3809         (RETURNS): ... This.
3810         * config/arm/arm.md: Update uses of the above.
3811         * config/arm/neon.md: Likewise.
3813 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3815         * config.host (case ${host}): Add aarch64*-*-linux case.
3816         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
3817         fields to all the cores.
3818         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
3819         Add MCPU_MTUNE_NATIVE_SPECS.
3820         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
3821         field to all extensions.
3822         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
3823         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
3824         Adjust definition of AARCH64_OPT_EXTENSION.
3825         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
3826         (MCPU_MTUNE_NATIVE_SPECS): Define.
3827         * config/aarch64/driver-aarch64.c: New file.
3828         * config/aarch64/x-arch64: New file.
3829         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
3830         -mtune and -march.
3832 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
3833             Wei Mi  <wmi@google.com>
3835         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
3836         * config/i386/i386.c (extract_base_offset_in_addr): New function.
3837         (ix86_operands_ok_for_move_multiple): Ditto.
3838         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
3839         (movlpd/movhpd to movupd peephole2): Ditto.
3841 2015-04-24  Marek Polacek  <polacek@redhat.com>
3843         PR c/61534
3844         * input.h (from_macro_expansion_at): Define.
3846         PR c/63357
3847         * doc/invoke.texi: Update description of -Wlogical-op.
3849 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3851         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
3852         ternary operator in fprintf and harmonize spacing.
3854 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
3856         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
3857         Mark operand1 commutative.
3859 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
3861         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
3862         input operands in memory.
3863         (*vec_concatv2si_sse4_1): Ditto.
3864         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
3865         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
3866         register_operand.
3867         (vec_extract_hi_v32hi): Ditto.
3868         (vec_extract_hi_v64hi): Ditto.
3869         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3871 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3872             Steven Bosscher <steven@gcc.gnu.org>
3874         PR rtl-optimization/34503
3875         * cprop.c (cprop_reg_p): New.
3876         (hash_scan_set): Use above function to check if register can be
3877         propagated.
3878         (find_avail_set): Return up to two sets, one whose source is a
3879         register and one whose source is a constant.  Sets are returned in an
3880         array passed as parameter rather than as a return value.
3881         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
3882         sets returned by find_avail_set, starting with the one whose source is
3883         a constant. Use cprop_reg_p to check if register can be propagated.
3884         (do_local_cprop): Use cprop_reg_p to check if register can be
3885         propagated.
3886         (implicit_set_cond_p): Likewise.
3888 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
3890         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
3891         (sem_function::equals): IGNORED_NODES parameter is now unused;
3892         update call of equals_private.
3893         (sem_function::equals_private): Do not call equals_wpa; skip
3894         gimple body matching if there is no body.
3895         (sem_function::init): Add logic to hash tthunk info.
3896         (sem_function::parse): Also parse thunks.
3897         * ipa-icf.h (equals_private): Update declaration.
3899 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3901         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
3902         asterisk from name so this can be generated directly.
3903         (*altivec_stvx_<mode>_internal): Likewise.
3904         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
3905         that this is never called during or after reload/lra.
3906         (rs6000_frame_related): Remove split_reg
3907         argument and logic that references it.
3908         (emit_frame_save): Remove last parameter from call to
3909         rs6000_frame_related.
3910         (rs6000_emit_prologue): Remove last parameter from eight calls to
3911         rs6000_frame_related.  Force generation of stvx instruction for
3912         Altivec register saves.  Remove split_reg handling, which is no
3913         longer needed.
3914         (rs6000_emit_epilogue):  Force generation of lvx instruction for
3915         Altivec register restores.
3917 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3919         * config/rs6000/rs6000.opt (mcrypto): Change option description to
3920         match category changes in ISA 2.07B.
3922 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3924         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
3925         iterators.
3926         (cmp_op, cmp_type): New code attributes.
3927         (NEON_VCMP, NEON_VACMP): New int iterators.
3928         (cmp_op_unsp): New int attribute.
3929         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
3930         (neon_vceq<mode>): Delete.
3931         (neon_vc<cmp_op><mode>_insn): New pattern.
3932         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
3933         (neon_vcgeu<mode>): Delete.
3934         (neon_vcle<mode>): Likewise.
3935         (neon_vclt<mode>: Likewise.
3936         (neon_vcage<mode>): Likewise.
3937         (neon_vcagt<mode>): Likewise.
3938         (neon_vca<cmp_op><mode>): New define_expand.
3939         (neon_vca<cmp_op><mode>_insn): New pattern.
3940         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
3942 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
3944         * tree.h (attribute_value_equal): Declare.
3945         * tree.c (attribute_value_equal): Export.
3947 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
3949         * ipa-icf.c (sem_item::compare_attributes): New function.
3950         (sem_item::compare_referenced_symbol_properties): Compare variable
3951         attributes.
3952         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
3953         (sem_function::param_used_p): New function.
3954         (sem_function::equals_wpa): Fix attribute comparsion; match
3955         parameter type codes; do not compare paremter flags when
3956         they are not used; compare edge flags; compare indirect calls.
3957         (sem_item::update_hash_by_addr_refs): Hash reference type.
3958         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
3959         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
3960         reference use type.
3961         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
3962         * ipa-icf.h (compare_attributes, param_used_p): Declare.
3964 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
3966         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
3967         cleanup.
3968         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
3969         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
3970         (sem_item::compare_referenced_symbol_properties): New.
3971         (sem_item::hash_referenced_symbol_properties): New.
3972         (sem_item::compare_cgraph_references): Rename to ...
3973         (sem_item::compare_symbol_references): ... this one; use
3974         compare_referenced_symbol_properties.
3975         (sem_function::equals_wpa): Do not compare
3976         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
3977         DECL_IS_OPERATOR_NEW; compare pointer sizes.
3978         (sem_item::update_hash_by_addr_refs): Call
3979         hash_referenced_symbol_properties.
3980         (sem_item::update_hash_by_local_refs): Cleanup.
3981         (sem_function::merge): Do not mix up symbol properties.
3982         (sem_variable::equals_wpa): Use compare_symbol_references.
3983         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
3984         (sem_item::hash_referenced_symbol_properties): New.
3985         (sem_item::compare_symbol_references): New.
3986         (sem_item::compare_cgraph_references): Remove.
3988 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
3990         PR target/26702
3991         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
3992         Emit size of local.
3994 2015-04-23  Nick Clifton  <nickc@redhat.com>
3996         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
3997         ATTRIBUTE_UNUSED to x parameter.
3998         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
4000 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4002         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
4003         TARGET_CRYPTO to TARGET_P8_VECTOR>
4004         (crypto_vpermxor_<mode>): Likewise.
4005         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
4006         (BU_CRYPTO_3A): Likewise.
4007         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
4008         (BU_CRYPTO_OVERLOAD_3A): New #define.
4009         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
4010         (VPMSUMH): Likewise.
4011         (VPMSUMW): Likewise.
4012         (VPMSUMD): Likewise.
4013         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
4014         (VPERMXOR_V4SI): Likewise.
4015         (VPERMXOR_V8HI): Likewise.
4016         (VPERMXOR_V16QI): Likewise.
4017         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
4018         BU_CRYPTO_OVERLOAD_2A.
4019         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
4020         BU_CRYPTO_OVERLOAD_3A.
4021         * config/rs6000/rs6000.opt (mcrypto): Change description of
4022         option.
4024 2015-04-23  Richard Biener  <rguenther@suse.de>
4026         * passes.def: Remove copy propagation passes run directly after CCP.
4027         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
4028         SSA names.
4029         (ccp_visit_phi_node): Rework to handle first executable edge
4030         specially.
4032 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
4034         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4035         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
4036         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
4037         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
4038         (thumb_legimitimize_reload_address): Remove.
4039         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
4040         Remove.
4041         (thumb_legimitimize_reload_address): Remove.
4043 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4045         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
4047 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4049         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
4050         MAX_LDM_STM_OPS.
4051         (store_multiple): Likewise.
4053 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4055         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
4056         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
4057         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
4058         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
4059         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
4060         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
4061         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
4062         Specify issue_rate value.
4063         (arm_issue_rate): Look up issue rate from tuning structs. Remove
4064         large switch statement.
4065         (arm_marvell_pj4_tune): New struct.
4066         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
4067         struct.
4069 2015-04-23  Richard Biener  <rguenther@suse.de>
4071         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
4072         (vect_find_last_store_in_slp_instance): Rename to ...
4073         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
4074         (vect_analyze_slp_cost_1): Use vector_load for constant defs
4075         and vec_construct for external defs when estimating prologue cost.
4076         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
4077         Compute costs here only when vectorizing loops.
4078         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
4079         have been determined.
4080         (vect_schedule_slp_instance): Simplify vectorized code placement
4081         and prepare for in-BB external defs.
4082         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
4083         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
4084         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
4085         guard.
4086         (vect_model_load_cost): Likewise.
4087         (vectorizable_store): Instead add it here.
4088         (vectorizable_load): Likewise.
4089         (vect_is_simple_use): Dump def type textually.
4091 2015-04-23  Richard Biener  <rguenther@suse.de>
4093         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
4094         * cfgloop.c (verify_loop_structure): Verify the root loop node.
4095         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
4096         instead of get_eh_region_from_lp_number.
4097         * loop-init.c (fix_loop_structure): If we removed a loop, reset
4098         the SCEV cache.
4100 2015-04-23  Anton Blanchard  <anton@samba.org>
4102         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
4103         need for -mprofile-kernel to save LR to stack.
4105 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4107         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
4108         adjustments.
4109         (insn_is_swappable_p): Return 1 for a convert from double to
4110         single precision when all of its uses are splats of BE element
4111         zero.
4113 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4115         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
4117 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4119         PR target/65456
4120         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
4121         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
4122         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
4123         option.
4124         (rs6000_builtin_mask_for_load): Return 0 for targets with
4125         efficient unaligned VSX accesses so that the vectorizer will use
4126         direct unaligned loads.
4127         (rs6000_builtin_support_vector_misalignment): Always return true
4128         for targets with efficient unaligned VSX accesses.
4129         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
4130         stores on targets with efficient unaligned VSX accesses is almost
4131         always the same as the cost of an aligned load or store, so model
4132         it that way.
4133         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
4134         unaligned vectors if we have efficient unaligned VSX accesses.
4135         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
4136         undocumented option.
4138 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4140         Revert:
4141         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
4143         * config.gcc (LIBC_MUSL): New tm_defines macro.
4144         * config/linux.h (OPTION_MUSL): Define.
4145         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4146         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4147         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4149         * config/linux.opt (mmusl): New option.
4150         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4151         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4153         * configure: Regenerate.
4155 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
4157         * config.gcc (LIBC_MUSL): New tm_defines macro.
4158         * config/linux.h (OPTION_MUSL): Define.
4159         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4160         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4161         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4163         * config/linux.opt (mmusl): New option.
4164         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4165         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4167         * configure: Regenerate.
4169 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
4171         * doc/invoke.texi (-fsanitize-sections): Update description.
4172         * asan.c (set_sanitized_sections): Parse incoming arg.
4173         (section_sanitized_p): Support wildcards.
4175 2015-04-22  Tom de Vries  <tom@codesourcery.com>
4177         PR tree-optimization/65823
4178         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
4179         equality between ap_copy and ap.
4181 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4183         PR target/47098
4184         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
4186 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4188         PR target/47122
4189         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
4191 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4193         PR target/55144
4194         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
4195         remove already contained t-files.
4197 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4199         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
4200         Remove unneeded forward declarations.
4201         (suitable_for_tail_call_opt_p): Commentary typo fix.
4203 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4205         * varasm.c (emit_bss): Remove redundant guard.
4207 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4209         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
4211 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4213         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
4215 2015-04-22  Hale Wang  <hale.wang@arm.com>
4216             Terry Guo  <terry.guo@arm.com>
4218         PR rtl-optimization/64818
4219         * combine.c (can_combine_p): Don't combine user-specified
4220         register if it is in an asm input.
4222 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
4224         PR ipa/65076
4225         * passes.def (early_optimizations): Add pass_dse.
4227 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4229         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
4230         * reorg.c (redundant_insn): Remove ifdef
4231         INSN_REFERENCES_ARE_DELAYED.
4232         * resource.c (mark_referenced_resources): Likewise.
4234 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4236         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
4237         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
4238         * resource.c (mark_set_resources): Likewise.
4240 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4242         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
4243         * cfgcleanup.c (flow_find_cross_jump): Likewise.
4244         (flow_find_head_matching_sequence): Likewise.
4245         (try_head_merge_bb): Likewise.
4246         * combine.c (can_combine_p): Likewise.
4247         (try_combine): Likewise.
4248         (distribute_notes): Likewise.
4249         * df-problems.c (can_move_insns_across): Likewise.
4250         * final.c (final): Likewise.
4251         * gcse.c (insert_insn_end_basic_block): Likewise.
4252         * ira.c (find_moveable_pseudos): Likewise.
4253         * reorg.c (try_merge_delay_insns): Likewise.
4254         (fill_simple_delay_slots): Likewise.
4255         (fill_slots_from_thread): Likewise.
4256         * sched-deps.c (sched_analyze_2): Likewise.
4258 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4260         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
4261         PIC_OFFSET_TABLE_REGNUM.
4263 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4265         * alias.c (init_alias_target): Remove ifdef
4266         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
4267         * df-scan.c (df_insn_refs_collect): Likewise.
4268         (df_get_regular_block_artificial_uses): Likewise.
4269         (df_get_eh_block_artificial_uses): Likewise.
4270         (df_get_entry_block_def_set): Likewise.
4271         (df_get_exit_block_use_set): Likewise.
4272         * emit-rtl.c (gen_rtx_REG): Likewise.
4273         * ira.c (ira_setup_eliminable_regset): Likewise.
4274         * reginfo.c (init_reg_sets_1): Likewise.
4275         * regrename.c (rename_chains): Likewise.
4276         * reload1.c (reload): Likewise.
4277         (eliminate_regs_in_insn): Likewise.
4278         * resource.c (mark_referenced_resources): Likewise.
4279         (init_resource_info): Likewise.
4281 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4283         * defaults.h (MASK_RETURN_ADDR): New definition.
4284         * except.c (expand_builtin_extract_return_addr): Remove ifdef
4285         MASK_RETURN_ADDR.
4287 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4289         * defaults.h (RETURN_ADDR_OFFSET): New definition.
4290         * except.c (expand_builtin_extract_return_addr): Remove ifdef
4291         RETURN_ADDR_OFFSET.
4292         (expand_builtin_frob_return_addr): Likewise.
4294 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4296         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
4297         (try_redirect_by_replacing_jump): Likewise.
4298         (rtl_tidy_fallthru_edge): Likewise.
4299         * combine.c (insn_a_feeds_b): Likewise.
4300         (find_split_point): Likewise.
4301         (simplify_set): Likewise.
4302         * cprop.c (cprop_jump): Likewise.
4303         * cse.c (cse_extended_basic_block): Likewise.
4304         * df-problems.c (can_move_insns_across): Likewise.
4305         * function.c (emit_use_return_register_into_block): Likewise.
4306         * haifa-sched.c (sched_init): Likewise.
4307         * ira.c (find_moveable_pseudos): Likewise.
4308         * loop-invariant.c (find_invariant_insn): Likewise.
4309         * lra-constraints.c (curr_insn_transform): Likewise.
4310         * postreload.c (reload_combine_recognize_const_pattern):
4311         * Likewise.
4312         * reload.c (find_reloads): Likewise.
4313         * reorg.c (delete_scheduled_jump): Likewise.
4314         (steal_delay_list_from_target): Likewise.
4315         (steal_delay_list_from_fallthrough): Likewise.
4316         (redundant_insn): Likewise.
4317         (fill_simple_delay_slots): Likewise.
4318         (fill_slots_from_thread): Likewise.
4319         (delete_computation): Likewise.
4320         * sched-rgn.c (add_branch_dependences): Likewise.
4322 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4324         * genconfig.c (main): Always define HAVE_cc0.
4325         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
4326         HAVE_cc0.
4327         * cfgcleanup.c (flow_find_cross_jump): Likewise.
4328         (flow_find_head_matching_sequence): Likewise.
4329         (try_head_merge_bb): Likewise.
4330         * cfgrtl.c (rtl_merge_blocks): Likewise.
4331         (try_redirect_by_replacing_jump): Likewise.
4332         (rtl_tidy_fallthru_edge): Likewise.
4333         * combine.c (do_SUBST_MODE): Likewise.
4334         (insn_a_feeds_b): Likewise.
4335         (combine_instructions): Likewise.
4336         (can_combine_p): Likewise.
4337         (try_combine): Likewise.
4338         (find_split_point): Likewise.
4339         (subst): Likewise.
4340         (simplify_set): Likewise.
4341         (distribute_notes): Likewise.
4342         * cprop.c (cprop_jump): Likewise.
4343         * cse.c (cse_extended_basic_block): Likewise.
4344         * df-problems.c (can_move_insns_across): Likewise.
4345         * final.c (final): Likewise.
4346         (final_scan_insn): Likewise.
4347         * function.c (emit_use_return_register_into_block): Likewise.
4348         * gcse.c (insert_insn_end_basic_block): Likewise.
4349         * haifa-sched.c (sched_init): Likewise.
4350         * ira.c (find_moveable_pseudos): Likewise.
4351         * loop-invariant.c (find_invariant_insn): Likewise.
4352         * lra-constraints.c (curr_insn_transform): Likewise.
4353         * optabs.c (prepare_cmp_insn): Likewise.
4354         * postreload.c (reload_combine_recognize_const_pattern):
4355         * Likewise.
4356         * reload.c (find_reloads): Likewise.
4357         (find_reloads_address_1): Likewise.
4358         * reorg.c (delete_scheduled_jump): Likewise.
4359         (steal_delay_list_from_target): Likewise.
4360         (steal_delay_list_from_fallthrough): Likewise.
4361         (try_merge_delay_insns): Likewise.
4362         (redundant_insn): Likewise.
4363         (fill_simple_delay_slots): Likewise.
4364         (fill_slots_from_thread): Likewise.
4365         (delete_computation): Likewise.
4366         (relax_delay_slots): Likewise.
4367         * sched-deps.c (sched_analyze_2): Likewise.
4368         * sched-rgn.c (add_branch_dependences): Likewise.
4370 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4372         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
4373         that is trivially ded on non cc0 targets.
4374         (simplify_set): Likewise.
4375         (mark_used_regs_combine): Likewise.
4376         * cse.c (new_basic_block): Likewise.
4377         (fold_rtx): Likewise.
4378         (cse_insn): Likewise.
4379         (cse_extended_basic_block): Likewise.
4380         (set_live_p): Likewise.
4381         * rtlanal.c (canonicalize_condition): Likewise.
4382         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4384 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4386         * conditions.h: Define macros even if HAVE_cc0 is undefined.
4387         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
4388         * final.c: Likewise.
4389         * jump.c: Likewise.
4390         * recog.c: Likewise.
4391         * recog.h: Declare functions even when HAVE_cc0 is undefined.
4392         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
4394 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4396         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
4397         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
4398         * builtins.c (expand_builtin): Remove check if
4399         EH_RETURN_DATA_REGNO is defined.
4400         * df-scan.c (df_bb_refs_collect): Likewise.
4401         (df_get_exit_block_use_set): Likewise.
4402         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
4403         * ira-lives.c (process_bb_node_lives): Likewise.
4404         * lra-lives.c (process_bb_lives): Likewise.
4406 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
4408         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
4409         FIRST_PSEUDO_REG): New.
4410         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
4411         (ARG_POINTER_REGNUM): Define to ARGP_REG.
4412         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
4413         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
4414         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
4415         (FIRST_INT_REG): New.
4416         (LAST_INT_REG): New.
4417         (FIRST_*_REG): Define using *_REG.
4418         (LAST_*_REG): Ditto.
4419         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
4420         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
4421         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
4423 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4425         * expmed.c: (synth_mult): Only assume overlapping
4426         shift with previous steps in alg_sub_t_m2 case.
4428 2015-04-21  Richard Biener  <rguenther@suse.de>
4430         PR tree-optimization/65650
4431         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
4432         transitions involving copies.
4433         (set_lattice_value): Adjust for copy lattice state.
4434         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
4435         if that doesn't dominate the merge point.
4436         (bit_value_unop): Adjust what we treat as varying mask.
4437         (bit_value_binop): Likewise.
4438         (bit_value_assume_aligned): Likewise.
4439         (evaluate_stmt): When we simplified to a SSA name record a copy
4440         instead of dropping to varying.
4441         (visit_assignment): Simplify.
4443         * gimple-match.h (gimple_simplify): Add another callback.
4444         * gimple-fold.c (fold_stmt_1): Adjust caller.
4445         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
4446         for the 2nd callback.
4447         * gimple-match-head.c (gimple_simplify): Add a callback that is
4448         used to valueize the stmt operands and use it that way.
4450 2015-04-21  Richard Biener  <rguenther@suse.de>
4452         PR tree-optimization/65788
4453         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
4455 2015-04-21  Richard Biener  <rguenther@suse.de>
4457         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
4458         vec_construct cost by vec_stmt_cost.
4460 2015-04-21  Richard Biener  <rguenther@suse.de>
4462         * cfghooks.h (create_basic_block): Replace with two overloads
4463         for RTL and GIMPLE.
4464         (split_block): Likewise.
4465         * cfghooks.c (split_block): Rename to ...
4466         (split_block_1): ... this.
4467         (split_block): Add two type-safe overloads for RTL and GIMPLE.
4468         (split_block_after_labels): Call split_block_1.
4469         (create_basic_block): Rename to ...
4470         (create_basic_block_1): ... this.
4471         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
4472         (create_empty_bb): Call create_basic_block_1.
4473         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
4474         split_block_after_labels.
4475         * omp-low.c (expand_parallel_call): Likewise.
4476         (expand_omp_target): Likewise.
4477         (simd_clone_adjust): Likewise.
4478         * tree-chkp.c (chkp_get_entry_block): Likewise.
4479         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
4480         create_basic_block overload.
4481         (cgraph_node::expand_thunk): Likewise.
4482         * tree-cfg.c (make_blocks): Likewise.
4483         (handle_abnormal_edges): Likewise.
4484         * tree-inline.c (copy_bb): Likewise.
4486 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4488         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
4489         New pattern.
4490         (*xor_one_cmplsidi3_ze): Likewise.
4492 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4494         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
4495         use df_remove_problem rather than manually removing problems, leaving
4496         holes in df->problems_in_order[].
4498 2015-04-21  Tom de Vries  <tom@codesourcery.com>
4500         PR tree-optimization/65802
4501         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
4503 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4505         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
4506         Increase to 128.
4507         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
4508         at '.'.  Assert that there's enough space for everything.
4510 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
4512         PR tree-optimization/64950
4513         Revert:
4514         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
4516         PR target/41089
4517         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4518         as volatile.
4520 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
4522         PR rtl-optimization/64916
4523         * cfgcleanup.c (values_equal_p): New function.
4524         (can_replace_by): Use it.
4526 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
4528         PR c++/65801
4529         * doc/invoke.texi ([-Wnarrowing]): Update.
4531 2015-04-20  Jeff Law  <law@redhat.com>
4533         PR tree-optimization/65658
4534         * tree-ssa-threadupdate.c (redirection_block_p): Remove
4535         redundant test for GIMPLE_ASSIGN in last change.
4537 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
4539         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
4540         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
4541         (legitimize_tls_address): Ditto.
4542         (ix86_expand_move): Ditto.
4543         (ix86_expand_binary_operator): Remove reload_in_progress checks.
4544         (ix86_expand_unary_operator): Ditto.
4545         * config/i386/predicates.md (index_register_operand): Ditto.
4547 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
4549         * reorg.c (try_merge_delay_insns): Improve correctness checking
4550         for targets with multiple delay slots.
4552 2015-04-20  Jeff Law  <law@redhat.com>
4554         PR tree-optimization/65658
4555         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
4556         statements too.
4558 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
4560         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
4561         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
4562         Delete.
4564 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
4566         PR debug/65807
4567         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
4569 2015-04-20  Richard Biener  <rguenther@suse.de>
4571         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
4572         * gimple-fold.c (gimple_build_valueize): New function.
4573         (gimple_build): Always use gimple_build_valueize as valueize hook.
4575 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
4577         PR target/64134
4578         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
4579         and overwrite variable parts if <= 1/2 the elements are variable.
4581 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
4583         PR rtl-optimization/65805
4584         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
4585         Don't use difference of offset and previous offset if
4586         update_sp_offset is non-zero.
4587         (eliminate_regs_in_insn): Ditto.
4588         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
4589         lra_eliminate_regs_1 call.
4590         * lra-constraints.c (get_equiv_with_elimination): Ditto.
4592 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
4594         * hash-table.h: Remove version of hash_table that stored value_type *.
4595         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
4596         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
4597         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
4598         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
4599         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
4600         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
4601         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
4602         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
4603         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
4604         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
4605         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
4606         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
4607         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4608         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
4609         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
4610         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
4612 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4613             Jakub Jelinek  <jakub@redhat.com>
4615         PR target/65787
4616         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
4617         subsequent SH_NONE operand does not overwrite an existing *special
4618         value.
4619         (adjust_extract): Handle case where a vec_extract operation is
4620         wrapped in a PARALLEL.
4622 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
4624         PR target/65780
4625         * config/i386/i386.c (ix86_binds_local_p): Define only if
4626         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
4628 2015-04-17  Jeff Law  <law@redhat.com>
4630         PR tree-optimization/47679
4631         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
4632         * tree-ssa-scopedtables.c: New file.
4633         * tree-ssa-scopedtables.h: New file.
4634         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
4635         (const_and_copies): Change name/type.
4636         (record_const_or_copy): Move into tree-ssa-scopedtables.c
4637         (record_const_or_copy_1): Similarly.
4638         (restore_vars_to_original_value): Similarly.
4639         (pass_dominator::execute): Create and destroy const_and_copies table.
4640         (thread_across_edge): Update passing of const_and_copies.
4641         (record_temporary_equivalence): Use method calls rather than
4642         manipulating const_and_copies directly.
4643         (record_equality, cprop_into_successor_phis): Similarly.
4644         (dom_opt_dom_walker::before_dom_children): Similarly.
4645         (dom_opt_dom_walker::after_dom_children): Similarly.
4646         (eliminate_redundant_computations): Similarly.
4647         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
4648         (record_temporary_equivalence): Likewise.
4649         (invalidate_equivalences): Likewise.
4650         (record_temporary_equivalences_from_phis): Update due to type
4651         change of const_and_copies.  Use method calls rather than
4652         manipulating the stack directly.
4653         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4654         (thread_through_normal_block, thread_across_edge): Likewise.
4655         (thread_across_edge): Likewise.
4656         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4657         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
4658         of equiv_stack.
4659         (identify_jump_threads): Update due to type change of equiv_stack.
4660         (finalize_jump_threads): Delete the equiv_stack when complete.
4662 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
4664         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4665         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
4666         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
4668 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
4670         PR target/65535
4671         * config.gcc: Exit with a comment when we do not have a major version
4672         number for the FreeBSD target.
4674 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
4676         PR target/65689
4677         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
4678         maybe_allows_mem bitfields.
4679         (maybe_allows_none_start, maybe_allows_none_end,
4680         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
4681         maybe_allows_mem_end): New variables.
4682         (compute_maybe_allows): New function.
4683         (add_constraint): Use it to initialize maybe_allows_reg and
4684         maybe_allows_mem fields.
4685         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
4686         is_address constraints such that those that allow neither mem nor
4687         reg come first, then those that only allow reg but not mem, then
4688         those that only allow mem but not reg, then the rest.
4689         (write_allows_reg_mem_function): New function.
4690         (write_tm_preds_h): Call it.
4691         * stmt.c (parse_output_constraint, parse_input_constraint): Use
4692         the generated insn_extra_constraint_allows_reg_mem function
4693         instead of always setting *allows_reg = true; *allows_mem = true;
4694         for unknown extra constraints.
4696 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
4698         PR target/65780
4699         * output.h (default_binds_local_p_3): New.
4700         * varasm.c (default_binds_local_p_3): Make it public.  Take an
4701         argument to indicate if common symbol may be local.  If common
4702         symbol may be local, treat non-external variable as defined
4703         locally.
4704         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
4705         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
4706         * config/i386/i386.c (ix86_binds_local_p): New.
4707         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
4708         ix86_binds_local_p.
4710 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
4712         PR debug/65771
4713         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
4714         trying mem_loc_descriptor on XEXP (rtl, 0).
4716 2015-04-17  Martin Liska  <mliska@suse.cz>
4718         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4719         Release symbol_compare_collection.
4720         * ipa-reference.c: Add TODO that a vector should be released.
4722 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
4724         PR target/65296
4725         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
4726         to new AVR-LibC file layout (bug #44574).
4727         (*avrlibc_devicelib): Same.
4728         * config/avr/avr-mcus.def: Adjust comments.
4729         * config/avr/avr.opt (nodevicelib): Adjust help.
4731 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
4733         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
4735 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
4737         PR c++/64527
4738         * gimplify.c (gimplify_init_constructor): Always emit a
4739         side-effecting constructor.
4741 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4743         PR tree-optimization/64950
4744         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
4745         in cfun->curr_properties.
4746         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
4747         if we generate an IFN_VA_ARG.
4748         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
4749         function if PROP_gimple_lva is not set in src function.
4751 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4752             Michael Matz  <matz@suse.de>
4754         PR tree-optimization/64950
4755         * gimple-iterator.c (update_modified_stmts): Remove static.
4756         * gimple-iterator.h (update_modified_stmts): Declare.
4757         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
4758         (gimplify_va_arg_internal): New function.
4759         (gimplify_va_arg_expr): Use IFN_VA_ARG.
4760         * gimplify.h (gimplify_va_arg_internal): Declare.
4761         * internal-fn.c (expand_VA_ARG): New unreachable function.
4762         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
4763         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
4764         (expand_ifn_va_arg): New function.
4765         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
4766         (pass_stdarg::execute): Call expand_ifn_va_arg.
4767         (pass_data_lower_vaarg): New pass_data.
4768         (pass_lower_vaarg): New gimple_opt_pass.
4769         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
4770         (make_pass_lower_vaarg): New function.
4771         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
4772         properties_required field.
4773         * passes.def (all_passes): Add pass_lower_vaarg.
4774         * tree-pass.h (PROP_gimple_lva): Add define.
4775         (make_pass_lower_vaarg): Declare.
4777 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4779         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
4780         * calls.c (call_expr_flags): Same.
4782 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4784         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
4785         (pass_stdarg::execute): ... here.
4787 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4788             Michael Matz  <matz@suse.de>
4790         * tree-cfg.c (make_blocks_1): Factor out of ...
4791         (make_blocks): ... here.
4792         (make_edges_bb): Factor out of ...
4793         (make_edges): ... here.
4794         (gimple_find_sub_bbs): New function.
4795         * tree-cfg.h (gimple_find_sub_bbs): Declare.
4797 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4799         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
4801 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
4803         * asan.c (set_sanitized_sections): New function.
4804         (section_sanitized_p): Ditto.
4805         (asan_protect_global): Optionally sanitize user-defined
4806         sections.
4807         * asan.h (set_sanitized_sections): Declare new function.
4808         * common.opt (fsanitize-sections): New option.
4809         * doc/invoke.texi (-fsanitize-sections): Document new option.
4810         * opts-global.c (handle_common_deferred_options): Handle new
4811         option.
4813 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
4815         PR debug/65771
4816         * dwarf2out.c (loc_list_from_tree): Return NULL
4817         for DEBUG_EXPR_DECL.
4819 2015-04-17  Christian Bruel  <christian.bruel@st.com>
4821         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
4822         same attributes.
4824 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
4826         * ira-color.c (setup_left_conflict_sizes_p): Do not process
4827         node itself when computing left conflict subnode size.
4829 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
4831         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
4832         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
4833         *fop_<mode>_1_sse using enabled attribute.  Use
4834         register_mixssei387nonimm_operand operand 1 predicate. Change
4835         alternative 3 constraints from "x" to "v".
4837 2015-04-16  Richard Biener  <rguenther@suse.de>
4839         PR tree-optimization/65774
4840         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
4841         bit-value tracking on.
4843 2015-04-16  Richard Biener  <rguenther@suse.de>
4845         PR tree-optimization/64277
4846         * tree-vrp.c (check_array_ref): Fix anti-range handling,
4847         simplify upper bound handling.
4848         (search_for_addr_array): Simplify.
4849         (check_array_bounds): Handle ADDR_EXPRs here.
4850         (check_all_array_refs): Simplify.
4852 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
4854         * config/i386/i386.c (print_reg): Rewrite function.
4856 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4858         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
4859         Invert the condition.
4861 2015-04-16  Renlin Li  <renlin.li@arm.com>
4863         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
4864         simplifications for UNSIGNED_FLOAT.
4866 2015-04-16  Nick Clifton  <nickc@redhat.com>
4868         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
4869         MUL_UNINIT.
4870         (enum rl78_cpu_type): New.
4871         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
4872         (umulhi3_shift_virt): Remove m constraint from operand 1.
4873         (umulqihi3_virt): Likewise.
4874         * config/rl78/rl78.c (rl78_option_override): Add code to process
4875         -mcpu and -mmul options.
4876         (rl78_alloc_physical_registers): Add code to handle divhi and
4877         divsi valloc attributes.
4878         (set_origin): Likewise.
4879         * config/rl78/rl78.h (RL78_MUL_G14): Define.
4880         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
4881         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
4882         __RL78_Gxx__.
4883         (ASM_SPEC): Pass -mcpu on to assembler.
4884         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
4885         (mulqi3_rl78): Likewise.
4886         (mulhi3_g13): Likewise.
4887         (mulhi3): Generate the G13 or G14 versions of the insn directly.
4888         (mulsi3): Likewise.
4889         (mulhi3_g14): Add clobbers of AX and BC.
4890         (mulsi3_g14): Likewise.
4891         (mulsi3_g13): Likewise.
4892         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
4893         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
4894         * config/rl78/rl78.opt (mmul): Initialise value to
4895         RL78_MUL_UNINIT.
4896         (mcpu): New option.
4897         (m13, m14, mrl78): New option aliases.
4898         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
4899         (MULTILIB_DIRNAMES): Add g13 and g14.
4900         * doc/invoke.texi: Document -mcpu and -mmul options.
4902 2015-04-16  Richard Biener  <rguenther@suse.de>
4904         * tree-ssa-ccp.c (likely_value): See if we have operands that
4905         are marked as never simulate again and return CONSTANT in this
4906         case.
4907         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
4908         not have any operands that will be simulated again as
4909         not being simulated again.
4911 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
4913         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
4914         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
4915         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
4916         attribute.
4917         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
4918         enabled attribute.
4919         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
4920         *float<SWI48:mode><MODEF:mode>2_sse.
4921         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
4922         enabled attribute.
4923         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
4924         enabled attribute.
4926 2015-04-15  Tom de Vries  <tom@codesourcery.com>
4928         PR other/65487
4929         * function.c (push_dummy_function): New function.
4930         (init_dummy_function_start): Use push_dummy_function.
4931         (pop_dummy_function): New function.  Factored out of ...
4932         (expand_dummy_function_end): ... here.
4933         * function.h (push_dummy_function, pop_dummy_function): Declare.
4934         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
4935         pop_dummy_function.
4936         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
4938 2015-04-15  Jeff Law  <law@redhat.com>
4940         PR tree-optimization/47679
4941         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
4942         need for forward declaration in upcoming changes.
4943         (record_conditions, record_edge_info): Likewise.
4945         PR rtl-optimization/42522
4946         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
4947         SIGN_EXTRACT as a whole object rather than simplifying
4948         its operand.
4950 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
4952         PR ipa/65765
4953         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
4954         and GIMPLE_PREDICT use break instead of return true. For
4955         GIMPLE_EH_DISPATCH, compare dispatch region.
4957 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
4959         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
4960         details about the implementation.  Make clear preference for
4961         __atomic builtins.  Reduce possibility of future change.
4963 2015-04-15  Nick Clifton  <nickc@redhat.com>
4965         * config/rx/rx.opt (mallow-string-insns): New option.
4966         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
4967         builtin if string instructions are denied.
4968         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
4969         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
4970         appropriate.
4971         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
4972         * config/rx/rx.md (movstr): Enable pattern only if string
4973         instructions are allowed.
4974         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
4975         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
4976         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
4977         (MULTILIB_DIRNAMES): Add no-strings.
4978         * doc/invoke.texi: Document -mno-allow-string-insns.
4980 2015-04-15  Alan Modra  <amodra@gmail.com>
4982         PR target/65408
4983         PR target/58744
4984         PR middle-end/36043
4985         * calls.c (load_register_parameters): Don't load past end of
4986         mem unless suitably aligned.
4988 2015-04-15  Nick Clifton  <nickc@redhat.com>
4990         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
4991         decrement instruction as being frame related.
4992         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
4993         based addresses.
4994         If zero extending a function address enclose the operation in
4995         %code(...).
4996         (rl78_preferred_reload_class): New function.
4997         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4998         * config/rl78/rl78.md: Remove useless constraints in expanders.
4999         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
5000         (mulhi3_rl78): Likewise.
5001         (mulhi3_g13): Likewise.
5002         (mulsi3_rl78): Likewise.
5003         (es_addr): Move to before the multiply patterns.
5005 2015-04-15  Alan Modra  <amodra@gmail.com>
5007         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
5008         and sequence_stack.  Add seq.
5009         (seq_stack): Delete.
5010         * function.c (prepare_function_start): Don't access x_last_insn.
5011         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
5012         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
5013         * emit_rtl.c (start_sequence, push_topmost_sequence,
5014         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
5015         sequence accessors.
5016         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
5017         remove_insn): Likewise.  Simplify.
5018         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
5019         and pop_topmost_sequence.
5020         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
5021         debug insns.
5022         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
5024 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
5026         PR target/65729
5027         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
5028         the assertiion.
5030 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
5032         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
5033         (LEGACY_INT_REGNO_P): Ditto.
5034         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
5035         (ANY_MASK_REG_P): Remove.
5036         (BND_REG_P): Rename from ANY_BND_REG_P.
5037         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
5038         legacy integer registers.  Do not handle MMX_REG_P in a special way.
5039         Merge 64byte and 32byte SSE handling.
5041 2015-04-14  Nick Clifton  <nickc@redhat.com>
5043         * expr.c (expand_assignment): Force an address offset computation
5044         into a register before changing its mode.
5045         (expand_expr_real_1): Likewise.
5047 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
5049         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
5050         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
5051         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
5052         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
5053         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
5054         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
5055         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
5056         and __aarch64_vget_lane_any.
5058 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
5060         PR rtl-optimization/65761
5061         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
5062         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
5064 2015-04-14  Richard Biener  <rguenther@suse.de>
5066         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
5067         (graphite_can_represent_scev): Use POINTER_TYPE_P.
5069 2015-04-14  Richard Biener  <rguenther@suse.de>
5071         PR tree-optimization/65758
5072         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
5073         against -1.
5074         (ccp_lattice_meet): Likewise.
5075         (bit_value_unop): Likewise.
5076         (bit_value_binop): Likewise.
5077         (bit_value_assume_aligned): Likewise.
5079 2015-04-14  Christian Bruel  <christian.bruel@st.com>
5081         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
5082         function.
5084 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
5086         PR tree-optimization/63387
5087         * match.pd ((x unord x) | (y unord y) -> (x unord y),
5088         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
5090 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
5092         * config/i386/predicates.md (any_QIreg_operand): Rename from
5093         q_regs_operand.  Do not process subregs.
5094         (QIreg_operand): Use QI_REGNO_P predicate.
5095         (ext_QIreg_operand): Ditto.
5096         (ext_register_operand): Ditto.
5097         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
5098         (AND splitters): Ditto.
5099         (AND with -65536 splitter): Add SWI48 mode for operand 0.
5100         (AND with -256 splitter): Use any_QIreg_operand predicate and
5101         SWI248 mode for operand 0.
5102         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
5103         mode for operand 0.
5104         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
5106 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
5108         * doc/plugins.texi: Rewrite first introductory paragraph.
5110 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5112         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
5113         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
5115 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5117         * ipa-profie.c (ipa_profile): Check number of parameters
5118         and possible polymorphic call targets before
5119         devirtualizing.
5121 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
5123         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
5124         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
5126 2015-04-13  Richard Biener  <rguenther@suse.de>
5128         PR tree-optimization/65204
5129         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
5130         takens for bit-CCP.
5132 2015-04-13  Richard Biener  <rguenther@suse.de>
5134         PR target/65660
5135         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
5136         and cond_not_taken_branch_cost to 4 and 2.
5137         (bdver2_cost): Likewise.
5138         (bdver3_cost): Likewise.
5139         (bdver4_cost): Likewise.
5141 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5143         * hash-table.h (hash_table constructor): Add mem stats.
5144         (alloc_entries): Likewise.
5146 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5148         * ipa-cp.c (ipcp_driver): Relase prev_edge.
5149         * passes.c (execute_one_pass): Only add transform if pass has one.
5151 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
5153         * config/i386/i386.c (ix86_option_override_internal): Don't set
5154         -fprefetch-loop-arrays if optimizing for size.
5156 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5157             Gerald Pfeifer  <gerald@pfeifer.com>
5159         * doc/contrib.texi (Contributors): Add Martin Jambor and
5160         Michael Matz.
5162 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
5164         * BASE-VER: Set to 6.0.0.
5166         PR tree-optimization/65747
5167         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
5168         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
5170 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
5172         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
5173         sentence.  Improve grammar.
5175 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
5177         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
5179 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
5181         PR ipa/65743
5182         * ipa-inline-transform.c (speculation_removed): Remove static var.
5183         (check_speculations): New function.
5184         (clone_inlined_nodes): Do not check spculations.
5185         (inline_call): Call check_speculations.
5186         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
5187         consider non-invariants.
5189 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
5190             Martin Liska  <mliska@suse.cz>
5192         PR ipa/65722
5193         * ipa-icf.c (sem_item::compare_cgraph_references): function and
5194         variable can not match.
5195         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
5196         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
5198 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
5200         PR tree-optimization/65735
5201         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
5202         Remove visited_phis argument, add visited_bbs, avoid recursing into the
5203         same bb rather than just into the same phi node.
5204         (thread_through_normal_block): Adjust caller.
5206 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
5208         * doc/contrib.texi (Contributors): Add Ira Rosen.
5210 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
5212         * gcov.c (find_source): Fix miswording in error message.
5213         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
5214         (ix86_expand_sse_comi_round): Fix typo in error message.
5216 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
5218         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
5220 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
5222         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
5224 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
5226         PR target/65710
5227         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
5228         Print bad_spills_num and insn_pseudos_num.
5230 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5232         PR target/65694
5233         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
5234         when creating +1 values for SImode.
5236 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
5238         PR target/65729
5239         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
5240         assert.
5242 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
5243             Iain Sandoe  <iain@codesourcery.com>
5245         PR target/65351
5246         * configure: Regenerate.
5248 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
5250         PR target/65671
5251         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
5253 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
5255         * doc/contrib.texi (Contributors): Add John Marino.
5257 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
5259         PR tree-optimization/65709
5260         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
5261         TREE_TYPE (TREE_TYPE (t)).
5263 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5265         PR target/65710
5266         * lra-int.h (lra_bad_spill_regno_start): New.
5267         * lra.c (lra_bad_spill_regno_start): New.
5268         (lra): Set up lra_bad_spill_regno_start.  Set up
5269         lra_constraint_new_regno_start unconditionally.
5270         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
5271         spill preferences.
5273 2015-04-09  Marek Polacek  <polacek@redhat.com>
5274             Jakub Jelinek  <jakub@redhat.com>
5276         PR middle-end/65554
5277         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
5278         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
5279         of STRIP_NOPS.
5281 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
5283         PR rtl-optimization/65693
5284         * combine.c (is_parallel_of_n_reg_sets): Move outside of
5285         #ifndef HAVE_cc0.
5287 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
5289         PR target/65296
5290         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
5291         device specs file if "device-specs%s" didn't resolve to a path.
5293 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
5295         PR target/65676
5296         * config/i386/i386.c (fixup_modeless_constant): New.
5297         (ix86_expand_args_builtin): Fixup modeless constant operand.
5298         (ix86_expand_round_builtin): Ditto.
5299         (ix86_expand_special_args_builtin): Ditto.
5300         (ix86_expand_builtin): Ditto.
5302 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
5304         PR target/65693
5305         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
5306         any pow2 integer in between 2 and 0x80000000U inclusive.
5308 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
5310         PR rtl-optimization/65693
5311         * combine.c (is_parallel_of_n_reg_sets): Change first argument
5312         from an rtx_insn * to an rtx.
5313         (try_combine): Adjust both callers.  Use it once more.
5315 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5317         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
5318         (chkp_make_static_const_bounds): Search existing
5319         symbol by assembler name.  Use make_decl_one_only.
5320         (chkp_get_zero_bounds_var): Remove node search which
5321         is now performed in chkp_make_static_const_bounds.
5322         (chkp_get_none_bounds_var): Likewise.
5324 2015-04-08  Michael Witten  <mfwitten@gmail.com>
5326         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
5327         to an example.
5329 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5331         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
5333 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
5335         * doc/extend.texi (__sync Builtins): Fix grammar.
5337 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5339         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
5341 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5343         * varasm.c (emit_local): Move definition of align.
5345 2015-04-08  Julian Brown  <julian@codesourcery.com>
5347         * config/nvptx/mkoffload.c (process): Support variable mapping.
5349 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
5351         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
5352         alpha_links **.
5353         (alpha_write_one_linkage): Correct typo.
5355 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5357         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
5359 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
5361         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
5363 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5365         * tree-chkp.h (chkp_insert_retbnd_call): New.
5366         * tree-chkp.c (chkp_insert_retbnd_call): New.
5367         * ipa-split.c (insert_bndret_call_after): Remove.
5368         (split_function): Use chkp_insert_retbnd_call.
5369         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
5370         bounds for instrumented functions.
5372 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
5374         PR ipa/65540
5375         * calls.c (initialize_argument_information): When producing tail
5376         call also turn SSA_NAMES passed by references to original PARM_DECLs
5378 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
5380         PR target/65648
5381         * lra-remat.c (do_remat): Process input and non-input insn
5382         registers separately.
5384 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
5386         PR debug/65678
5387         * valtrack.c (debug_lowpart_subreg): New function.
5388         (dead_debug_insert_temp): Use it.
5390         PR middle-end/65680
5391         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
5392         into signed HOST_WIDE_INT the same as negative bit_offset.
5394 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
5396         * ipa-comdats.c (ipa_comdats): Visit all thunks
5397         to set proper comdat group.
5399 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5401         PR target/65489
5402         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
5403         on constants for NEON VSTRUCT modes.
5405 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
5406             Iain Sandoe  <iain@codesourcery.com>
5408         PR target/65351
5409         * configure: Regenerate.
5411 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5413         PR target/65614
5414         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
5415         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
5416         that LFD is used to load double constants instead of LFS.  Add
5417         defaults for all costs structures.  Add comments for missing
5418         initialization fields.
5419         (size32_cost): Likewise.
5420         (size64_cost): Likewise.
5421         (rs64a_cost): Likewise.
5422         (mpccore_cost): Likewise.
5423         (ppc403_cost): Likewise.
5424         (ppc405_cost): Likewise.
5425         (ppc440_cost): Likewise.
5426         (ppc476_cost): Likewise.
5427         (ppc601_cost): Likewise.
5428         (ppc603_cost): Likewise.
5429         (ppc604_cost): Likewise.
5430         (ppc604e_cost): Likewise.
5431         (ppc620_cost): Likewise.
5432         (ppc630_cost): Likewise.
5433         (ppccell_cost): Likewise.
5434         (ppc750_cost): Likewise.
5435         (ppc7450_cost): Likewise.
5436         (ppc8540_cost): Likewise.
5437         (ppce300c2c3_cost): Likewise.
5438         (ppce500mc_cost): Likewise.
5439         (ppce500mc64_cost): Likewise.
5440         (ppce5500_cost): Likewise.
5441         (ppce6500_cost): Likewise.
5442         (titan_cost): Likewise.
5443         (power4_cost): Likewise.
5444         (power6_cost): Likewise.
5445         (power7_cost): Likewise.
5446         (power8_cost): Likewise.
5447         (ppca2_cost): Likewise.
5448         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
5450         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
5451         instead of XXLOR to copy SFmode to clear out dirty bits created
5452         when SFmode denormals are generated.
5453         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
5454         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
5456 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
5458         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
5459         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
5460         * config/aarch64/aarch64-tune.md: Regenerate.
5462 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
5464         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
5465         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
5466         * config/arm/arm-cores.def (exynos-m1): New core.
5467         * config/arm/arm-tune.md: Regenerate.
5468         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
5469         * config/arm/bpabi.h: Likewise.
5471 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
5473         * ipa-cp (set_single_call_flag): Remove too
5474         restrictive assert.
5476 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
5478         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
5479         GOMP_offload_unregister from the destructor.
5481 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
5483         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
5484         flags for instrumentation thunk.
5485         (chkp_produce_thunks): Likewise.
5487 2015-04-05  Martin Liska  <mliska@suse.cz>
5489         PR ipa/65665
5490         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
5491         has computed data structure.
5492         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5494 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
5496         * invoke.texi (inline-unit-growth): Increase growth to 20%
5497         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
5499 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5501         PR target/65647
5502         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
5503         value checking.
5504         (lra_rematerialization_iter): New.
5505         * lra.c (lra): Initialize lra_rematerialization_iter.
5506         Stop updating lra_constraint_new_regno_start after switching of
5507         inheritance and rematerialization.
5508         * lra-remat.c (lra_rematerialization_iter): New.
5509         (lra_remat): Add printing pass iteration.  Do rematerialization
5510         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
5512 2015-04-04  Richard Biener  <rguenther@suse.de>
5514         PR tree-optimization/64909
5515         PR tree-optimization/65660
5516         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
5517         to take a cost vector for scalar iteration cost.
5518         (vect_get_single_scalar_iteration_cost): Likewise.
5519         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
5520         Compute the scalar iteration cost into a cost vector.
5521         (vect_get_known_peeling_cost): Use the scalar cost vector to
5522         account for the cost of the peeled iterations.
5523         (vect_estimate_min_profitable_iters): Likewise.
5524         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5525         Likewise.
5527 2015-04-04  Alan Modra  <amodra@gmail.com>
5529         PR target/65576
5530         PR target/65240
5531         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
5532         0.0 constant unless TARGET_VSX.
5533         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
5534         alternative.
5536 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
5538         PR ipa/65654
5539         * ipa-inline-transform.c (inline_call): Skip sanity check to work
5540         around the ICE
5542 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
5544         PR ipa/65655
5545         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
5546         speculative indirect edges to avoid ordering issue.
5548 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
5550         PR ipa/65076
5551         * ipa-inline.c (edge_badness): Add combined size to the denominator.
5553 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
5555         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
5556         TYPE_ARTIFICIAL on the .omp_data* types.
5558 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
5560         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
5561         instrumentation thunks.
5563 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
5565         * config/i386/i386.c (ix86_expand_call): Avoid nested
5566         PARALLEL in returned call value.
5568 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
5570         * lto-cgraph.c (input_cgraph_1): Always link instrumented
5571         assembler name with original one.
5573 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
5575         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
5577 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
5579         Revert parts of r216820.
5580         * config/i386/i386.md (movqi_internal): Correct type calculation
5581         for alternatives 3 and 5.
5583 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
5585         PR preprocessor/61977
5586         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
5587         predefine __vector/__bool/__pixel macros nor context sensitive
5588         macros for CLK_ASM.
5589         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
5591 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
5593         * config/pa/pa.c (pa_output_move_double): Directly handle register
5594         indexed memory operand.  Simplify handling of scaled register indexed
5595         memory operands.
5597 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
5599         PR driver/65444
5600         * config/i386/linux-common.h (MPX_SPEC): New.
5601         (CHKP_SPEC): Add MPX_SPEC.
5602         * doc/invoke.texi (-fcheck-pointer-boudns): Document
5603         possible issues with '-z bndplt' support in linker.
5605 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
5607         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
5608         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
5609         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
5610         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
5611         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
5613 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
5615         * config/i386/sync.md (UNSPEC_MOVA): Remove.
5616         (atomic_load<mode>): Change operand 0 predicate to
5617         nonimmediate_operand and fix up the destination when needed.
5618         Use UNSPEC_LDA.
5619         (atomic_loaddi_fpu): Use UNSPEC_LDA.
5620         (atomic_store<mode>): Change operand 1 predicate to
5621         nonimmendate_operand and move the source to register when needed.
5622         Use UNSPEC_STA.
5623         (atomic_store<mode>_1): Use UNSPEC_STA.
5624         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
5625         Fix moves from memory operand.  Use UNSPEC_STA.
5627 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5629         * expmed.c (strict_volatile_bitfield_p): Check that the access will
5630         not cross a MODESIZE boundary.
5631         (store_bit_field, extract_bit_field): Added assertions in the
5632         strict volatile bitfields code path.
5634 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
5636         PR target/65624
5637         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
5638         Increase args array size by one to avoid buffer overflow.
5640 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
5642         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
5643         split_part.
5644         * ipa-inline.c (edge_badness): Add wrapper penalty.
5645         (sum_callers): Move up.
5646         (inline_small_functions): Set single_caller.
5647         * ipa-inline.h (inline_summary): Add single_caller.
5648         * ipa-split.c (split_function): Set split_part.
5649         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
5650         * cgraph.h (cgraph_node): Add split_part.
5652 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
5654         PR target/58945
5655         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5656         Do not split operands 0 and operands 2 to halfmode.
5657         (atomic_compare_and_swap<mode>): Update for
5658         atomic_compare_and_swap<dwi>_doubleword changes.
5660 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
5662         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
5663         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
5664         no caching is done.
5666 2015-03-31  Martin Liska  <mliska@suse.cz>
5668         PR ipa/65557
5669         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
5670         has already filled up function summary.
5671         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5673 2015-03-31  Richard Biener  <rguenther@suse.de>
5675         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
5676         of types.
5678 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5680         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
5681         nested functions.
5682         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
5683         (s390_asm_output_function_label): Adapt to new signature of
5684         s390_function_num_hotpatch_hw
5685         Optimise the code generating assembler output.
5686         Add comments to assembler file.
5688 2015-03-31  Richard Biener  <rguenther@suse.de>
5690         PR middle-end/65626
5691         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
5692         of the noreturn call so it is last and cleanup_control_flow_bb
5693         can do the CFG part.
5695 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
5697         PR target/65531
5698         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
5699         same_comdat_group for external symbols.
5700         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
5701         infinite same_comdat_group traversal loop.
5703 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
5705         PR plugins/61176
5706         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
5707         automatically to $headers.
5709 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
5711         PR ipa/65610
5712         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
5713         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
5714         function.
5715         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
5716         Use it.
5717         * ipa-prop.c (param_type_may_change_p): Likewise.
5718         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
5719         (remove_unused_scope_block_p): Add in_ctor_dtor_block
5720         argument.  Before inlining, preserve
5721         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
5722         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
5723         recursive calls.
5724         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
5726 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
5728         PR ipa/65076
5729         * ipa-inline.c (edge_badness): Base denominator on callee's
5730         grwoth squared.
5732 2015-03-27  Martin Jambor  <mjambor@suse.cz>
5734         PR ipa/65478
5735         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
5736         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
5737         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
5738         node_calling_single_call.
5739         * ipa-cp.c (count_callers): New function.
5740         (set_single_call_flag): Likewise.
5741         (initialize_node_lattices): Count callers and set single_flag_call if
5742         necessary.
5743         (incorporate_penalties): New function.
5744         (good_cloning_opportunity_p): Use it, dump new flags.
5745         (propagate_constants_topo): Set node_within_scc flag if appropriate.
5746         * doc/invoke.texi (ipa-cp-recursion-penalty,
5747         ipa-cp-single-call-pentalty): Document.
5749 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
5751         PR ipa/65588
5752         * symtab.c (symtab_node::get_partitioning_class): Register vars
5753         are duplicated.
5754         * varpool.c (symbol_table::output_variables) Do not assemble unefined
5755         decls for non-symbols.
5757 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5759         PR target/65248
5760         * output.h (default_binds_local_p_2): New.
5761         * varasm.c (default_binds_local_p_2): Renamed to ...
5762         (default_binds_local_p_3): This.  Don't return true on protected
5763         data symbol if protected data may be external.
5764         (default_binds_local_p): Use default_binds_local_p_3.
5765         (default_binds_local_p_1): Likewise.
5766         (default_binds_local_p_2): New.
5767         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
5768         default_binds_local_p_2 if TARGET_MACHO is undefined.
5770 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
5772         PR target/65593
5773         * config/i386/i386.c (legitimize_pic_address): If base
5774         is SYMBOL_REF or LABEL_REF using %rip addressing, force
5775         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
5777 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
5779         PR target/65531
5780         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
5781         comdat groups.
5783 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
5785         PR ipa/65600
5786         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
5787         of optimized out indirect call.
5788         (redirect_to_unreachable): Always build symbol table node for
5789         BUILT_IN_UNREACHABLE
5791 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
5793         PR target/65407
5794         * ira-costs.c (record_reg_classes): Process all constraint string
5795         containing 0-9.
5797 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
5799         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
5800         memory_operand.
5802         PR target/65052
5803         * config/c6x/constraints.md (S3): New constraint.
5804         * config/c6x/c6x.md (real_jump): Use it.
5806 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5808         PR middle-end/65595
5809         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
5810         do redirection if the call is not optimized out.
5812 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
5814         PR target/65495
5815         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
5816         (fchkp-check-incomplete-type): Add LTO.
5817         (fchkp-zero-input-bounds-for-main): Likewise.
5818         (fchkp-first-field-has-own-bounds): Likewise.
5819         (fchkp-narrow-bounds): Likewise.
5820         (fchkp-narrow-to-innermost-array): Likewise.
5821         (fchkp-use-static-bounds): Likewise.
5822         (fchkp-use-static-const-bounds): Likewise.
5823         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
5825 2015-03-27  Marek Polacek  <polacek@redhat.com>
5827         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
5829 2015-03-27  Marek Polacek  <polacek@redhat.com>
5831         PR sanitizer/65583
5832         * ubsan.c (ubsan_create_edge): New function.
5833         (instrument_bool_enum_load): Call it.
5834         (instrument_nonnull_arg): Likewise.
5835         (instrument_nonnull_return): Likewise.
5836         (instrument_object_size): Likewise.
5838 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5840         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
5841         auto_vec.
5843 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5845         PR lto/65536
5846         * lto-streamer.h (class lto_location_cache): New.
5847         (struct data_in): Add location_cache.
5848         (lto_input_location): Update prototype.
5849         (stream_input_location_now): New.
5850         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
5851         pointer to location.
5852         (stream_input_location): Update.
5853         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
5854         (warn_odr): Apply location cache before warning.
5855         (lto_input_location): Update prototype.
5856         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
5857         Use stream_input_location_now.
5858         * lto-streamer-in.c (lto_location_cache::current_cache): New static
5859         variable.
5860         (lto_location_cache::cmp_loc): New function.
5861         (lto_location_cache::apply_location_cache): New function.
5862         (lto_location_cache::accept_location_cache): New function.
5863         (lto_location_cache::revert_location_cache): New function.
5864         (lto_location_cache::input_location): New function.
5865         (lto_input_location): Do location caching.
5866         (stream_input_location_now): New function.
5867         (input_eh_region, input_struct_function_base): Use
5868         stream_input_location_now.
5869         (lto_data_in_create): use new.
5870         (lto_data_in_delete): Use delete.
5871         * tree-streamer-in.c (unpack_ts_block_value_fields,
5872         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
5873         lto_input_ts_exp_tree_pointers): Update for cached location api.
5875 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5877         PR ipa/65076
5878         * passes.def: Add pass_nothrow.
5879         * ipa-pure-const.c: (pass_data_nothrow): New.
5880         (pass_nothrow): New.
5881         (pass_nothrow::execute): New.
5882         (make_pass_nothrow): New.
5883         * tree-pass.h (make_pass_nothrow): Declare.
5885 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5887         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
5888         edge to change by speculation resolution or redirection.
5889         (edge_set_predicate): Likewise.
5890         (inline_summary_t::duplicate): Likewise.
5891         (remap_edge_summaries): Likewise.
5893 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5895         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
5896         New macros.
5897         (can_inline_edge_p): Relax option matching for always inline functions.
5899 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
5901         PR target/65561
5902         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
5903         Check operand 4 and operand 0 for equality.
5904         (avx512f_vextract<shuffletype>32x4_1_maskm):
5905         Check operand 6 and operand 0 for equality.
5906         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
5907         for equality.
5908         (vec_extract_hi_<mode>_maskm): Ditto.
5910 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5912         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
5913         dead calls back to live.
5914         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
5915         cross check to ...
5916         (cgraph_node::verify_node): ... here; verify only callee edges,
5917         not caller.
5918         * cif-code.def (CILK_SPAWN): New code.
5920 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5922         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
5923         (edge_set_predicate): Use it to mark unreachable edges.
5924         (inline_summary_t::duplicate): Remove unnecesary code.
5925         (remap_edge_summaries): Likewise.
5926         (dump_inline_summary): Report contains_cilk_spawn.
5927         (compute_inline_parameters): Compute contains_cilk_spawn.
5928         (inline_read_section, inline_write_summary): Stream
5929         contains_cilk_spawn.
5930         * ipa-inline.c (can_inline_edge_p): Do not touch
5931         DECL_STRUCT_FUNCTION that may not be available;
5932         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
5933         remove check for callee_fun->can_throw_non_call_exceptions and
5934         replace it by optimization attribute check; check for flag_exceptions.
5935         * ipa-inline-transform.c (inline_call): Maintain
5936         DECL_FUNCTION_PERSONALITY
5937         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
5939 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
5941         PR tree-optimization/65551
5942         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
5943         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
5945 2015-03-26  Richard Biener  <rguenther@suse.de>
5947         PR middle-end/65555
5948         * tree-cfg.c (verify_gimple_call): Do not require a call to
5949         have no LHS if it wasn't recognized as control altering yet.
5951 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
5953         PR tree-optimization/64715
5954         * passes.def: Add another instance of pass_object_sizes before ccp1.
5955         * tree-object-size.c (pass_object_sizes::execute): In
5956         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
5957         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
5958         __bos result and the computed constant.  Remove redundant
5959         checks, obsoleted by gimple_call_builtin_p test.
5961         * var-tracking.c (variable_tracking_main_1): Don't track
5962         variables for targetm.no_register_allocation targets.
5964 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
5966         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
5967         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
5969 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
5971         PR target/65569
5972         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
5973         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
5974         0.0 is correctly setup.
5975         (extenddftf2_internal): Likewise.
5977 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
5979         PR tree-optimization/65177
5980         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
5981         (bb_in_bbs): New.
5982         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
5983         edges not adjacent on the path to the original code.
5985 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
5987         PR bootstrap/65537
5988         * doc/install.texi (Building a native compiler): Document new
5989         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
5990         configuration assumes that the host supports the linker plugin.
5992 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
5994         PR target/65508
5995         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
5996         chain for generated call.
5998 2015-03-25  Richard Biener  <rguenther@suse.de>
6000         * passes.c (pass_manager::execute_early_local_passes): Guard
6001         execution of pass_chkp_instrumentation_passes with
6002         flag_check_pointer_bounds.
6003         (pass_chkp_instrumentation_passes::gate): Likewise.
6005 2015-03-25  Martin Liska  <mliska@suse.cz>
6007         PR tree-optimization/65538
6008         * symbol-summary.h (function_summary::~function_summary):
6009         Relese memory for allocated summaries.
6010         (function_summary::release): New function.
6012 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
6014         PR lto/65515
6015         * lto-streamer-out.c (DFS::worklist): New struct.
6016         (DFS::worklist_vec): New data member.
6017         (DFS::next_dfs_num): Remove.
6018         (DFS::DFS): Rewritten using worklist instead of recursion,
6019         using most of code from DFS::DFS_write_tree.
6020         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
6021         pass it to DFS_write_tree calls.
6022         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
6023         quick initial checks push it into worklist_vec and return.
6025 2015-03-25  Richard Biener  <rguenther@suse.de>
6027         PR middle-end/65519
6028         * genmatch.c (expr::gen_transform): Re-write to avoid
6029         using gimple_build.
6031 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
6033         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
6035 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
6037         * config/arm/arm.opt (print_tune_info): New option.
6038         * config/arm/arm.c (arm_print_tune_info): New function.
6039         (arm_file_start): Call arm_print_tune_info.
6040         * config/arm/arm-protos.h (struct tune_params): Add comment.
6041         * doc/invoke.texi (@item -mprint-tune-info): New item.
6042         (-mtune): mention it in ARM Option Summary.
6044 2015-03-25  DJ Delorie  <dj@redhat.com>
6046         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
6047         correct clause.
6049 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
6050             Martin Liska  <mliska@suse.cz>
6052         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
6053         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
6054         (sem_item::add_type): New function.
6055         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
6056         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
6057         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
6058         (sem_function::equals_wpa): Fix typo.
6059         * ipa-icf.h (sem_item::add_type): New function.
6060         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
6061         order.
6063 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
6065         PR tree-optimization/65533
6066         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
6067         with swapped operands, call vect_free_slp_tree on
6068         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
6069         vector.
6071 2015-03-24  Richard Biener  <rguenther@suse.de>
6073         PR middle-end/65517
6074         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
6075         for fixup if necessary.
6077 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
6079         * doc/extend.texi (Function Attributes): Add @cindex entries
6080         for all attributes and regularize their format.  Delete text
6081         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
6082         information about "eightbit_data", "tiny_data", and "model"
6083         variable attributes to the Variable Attributes section.  Fix
6084         some obvious typos and copy-editing issues.
6085         (Variable Attributes, Type Attributes): Likewise add/fix
6086         @cindex entries for all attributes.
6088 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
6090         PR target/65523
6091         * tree-chkp.c (chkp_build_returned_bound): Ignore
6092         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
6094 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
6096         PR target/65505
6097         * config/sh/predicates.md (simple_mem_operand,
6098         displacement_mem_operand): Add test for reg.
6099         (short_displacement_mem_operand): Test for displacement_mem_operand
6100         before invoking sh_disp_addr_displacement.
6101         * config/sh/constraints.md (Sdd, Sra): Simplify.
6102         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
6103         Remove redundant displacement_mem_operand tests.
6105 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
6107         PR target/65296
6108         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
6109         the same -mmcu=MCU more than once.
6111 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
6113         PR bootstrap/65522
6114         * ipa-devirt.c: Remove duplicate demangle.h include.
6116         PR target/65504
6117         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
6118         on the pseudo.
6119         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
6120         REG_POINTER on *destptr after adjusting it for prologue size.
6122         PR ipa/65521
6123         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
6124         ultimate_alias_target ()->order ints instead of
6125         ultimate_alias_target () pointers.
6127 2015-03-23  Richard Biener  <rguenther@suse.de>
6129         PR tree-optimization/65518
6130         * tree-vect-stmts.c (vectorizable_load): Reject single-element
6131         interleaving cases we generate absymal code for.
6133 2015-03-23  Richard Biener  <rguenther@suse.de>
6135         PR tree-optimization/65494
6136         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
6137         matches here.
6138         (vect_analyze_slp_instance): But do that here, always and once.
6140 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6142         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
6143         adding T or multiplying by T+1 and subracting T.
6145 2015-03-22  Jeff Law  <law@redhat.com>
6147         PR rtl-optimization/64317
6148         * Makefile.in (OBJS): Add gcse-common.c
6149         * gcse.c: Include gcse-common.h
6150         (struct modify_pair_s): Move structure definition to gcse-common.h
6151         (compute_transp): Move function to gcse-common.c.
6152         (canon_list_insert): Similarly.
6153         (record_last_mem_set_info): Break out some code and put it into
6154         gcse-common.c.  Call into the new common code.
6155         (compute_local_properties): Pass additional arguments to compute_transp.
6156         * postreload-gcse.c: Include gcse-common.h and df.h
6157         (modify_mem_list_set, blocks_with_calls): New variables.
6158         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
6159         (get_bb_avail_insn): Pass in the expression index too.
6160         (alloc_mem): Allocate memory for the new bitmaps and lists.
6161         (free_mem): Free memory for the new bitmaps and lists.
6162         (insert_expr_in_table): Record a bitmap index for each entry we
6163         add to the table.
6164         (record_last_mem_set_info): Call into common code in gcse-common.c.
6165         (get_bb_avail_insn): If no available insn was found in the requested
6166         BB.  If BB has a single predecessor, see if the expression is
6167         transparent in BB and available in that single predecessor.
6168         (compute_expr_transp): New wrapper for compute_transp.
6169         (eliminate_partially_redundant_load): Pass expression's bitmap_index
6170         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
6171         (gcse_after_reload_main): If there are elements in the hash table,
6172         then compute transparency for all the elements in the hash table.
6173         * gcse-common.h: New file.
6174         * gcse-common.c: New file.
6176 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
6178         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
6179         as an adjective.
6180         (System Headers): Likewise.
6181         (Ifdef): Likewise.
6182         (Traditional macros): Likewise.
6183         (Invocation): Likewise.
6184         (Option Index): Likewise.
6185         * doc/cppopts.texi (-M): Likewise.
6186         (-finput-charset): Likewise.
6187         (--help): Likewise.
6188         * doc.invoke.texi (AVR Options): Likewise.
6189         (V850 Options): Likewise.
6191 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
6193         PR ipa/65475
6194         * ipa-devirt.c: Include demangle.h
6195         (odr_type_d): Add field rtti_broken.
6196         (odr_subtypes_equivalent_p): Do not require name to match.
6197         (compare_virtual_tables): Fix typo; if type already has ODR violation,
6198         bypass the tests; be ready for function referneces in vtables that are
6199         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
6200         (warn_odr): Give up for nameless types.
6201         (warn_types_mismatch): Report mismatch in mangled names;
6202         report mismatch in anonymous namespaces; look into component types to
6203         give useful error; report when mismatch is dragged in from other ODR
6204         type.
6205         (odr_types_equivalent_p): Match types for being polymorphic; avoid
6206         duplicated diagnostics.
6207         (add_type_duplicate): Reorder checks so more informative ones come
6208         first; fix typo; do not output "the extra base is defined here" when
6209         we did not warn.
6210         (BINFO_N_BASE_BINFOS): Relax sanity check.
6212 2015-03-22  Martin Liska  <mliska@suse.cz>
6213             Jakub Jelinek  <jakub@redhat.com>
6215         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
6216         masks that can potentially include a builtin.
6217         (ix86_add_new_builtins): Introduce fast filter for isa values
6218         that cannot trigger builtin inclusion.
6220 2015-03-22  Martin Liska  <mliska@suse.cz>
6222         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
6223         (sem_item::update_hash_by_local_refs): Likewise.
6224         (sem_variable::get_hash): Empty line is fixed.
6225         (sem_item_optimizer::execute): Include adding of hash references.
6226         (sem_item_optimizer::update_hash_by_addr_refs): New function.
6227         (sem_item_optimizer::build_hash_based_classes): Use local hash.
6228         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
6229         (sem_item::update_hash_by_local_refs): Likewise.
6231 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
6233         PR ipa/65502
6234         * ipa-comdats.c (enqueue_references): Walk through thunks.
6235         (ipa_comdats): Likewise.
6236         (set_comdat_group_1): New function.
6238 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
6240         PR ipa/65475
6241         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
6242         non-polymorphic
6244 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
6245             Gerald Pfeifer  <gerald@pfeifer.com>
6247         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
6249 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6250             Sandra Loosemore  <sandra@codesourcery.com>
6252         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
6253         function parameter declaration.
6254         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
6255         Update arguments to nios2_adjust_call_address().
6256         (sibcall_internal): Rename from *sibcall.
6257         (sibcall_value_internal): Rename from *sibcall_value.
6258         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
6259         (nios2_large_got_address): Add target temp reg parameter.
6260         (nios2_got_address): Adjust call to nios2_large_got_address, add
6261         force_reg around it.
6262         (nios2_load_pic_address): Add target temp reg parameter, replace call
6263         to nios2_got_address with corresponding code.
6264         (nios2_legitimize_constant_address): Update call to
6265         nios2_load_pic_address.
6266         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
6267         to use temp reg for PIC loading purposes.
6268         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
6269         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
6270         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
6272 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6274         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
6275         usage of "the @option{...}".
6276         (-Wopenmp-simd): Likewise.
6277         (-fsanitize-recover): Likewise.
6278         (-fsanitize-undefined-trap-on-error): Likewise.
6279         (-flto): Likewise.
6280         (tracer-dynamic-coverage-feedback): Likewise.
6281         (reorder-block-duplicate-feedback): Likewise.
6282         (loop-unroll-jam-size): Likewise.
6283         (-B): Likewise.
6284         (-I-): Likewise.
6285         (-mabs=legacy): Likewise.
6286         (-mupper-regs-df): Likewise.
6287         (-mupper-regs-sf): Likewise.
6288         (-mpointers-to-nested-functions): Likewise.
6290 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6292         * doc/extend.texi (Cilk Plus Builtins): Add markup.
6294 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6296         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
6297         additional index entries and cross-references.
6298         (-fchkp-check-incomplete-type): Likewise.
6299         (-fchkp-first-field-has-own-bounds): Likewise.
6300         (-fchkp-narrow-to-innermost-array): Likewise.
6301         (-fchkp-use-fast-string-functions): Likewise.
6302         (-fchkp-use-nochk-string-functions): Likewise.
6303         (-fchkp-use-static-const-bounds): Likewise.
6304         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
6305         (-fchkp-instrument-marked-only): Likewise.
6306         (-fchkp-use-wrappers): Likewise.
6307         (-static-libmpx): Likewise.
6308         (-static-libmpxwrappers): Likewise.
6309         * doc/extend.texi (bnd_legacy): Likewise.
6310         (bnd_instrument): Likewise.
6311         (bnd_variable_size): Likewise.
6312         (Pointer Bounds Checker builtins): Likewise.
6314 2015-03-21  Tom de Vries  <tom@codesourcery.com>
6316         PR tree-optimization/65458
6317         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
6318         * cgraph.h (cgraph_node): Add parallelized_function field.
6319         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
6320         (input_overwrite_node): Read parallelized_function field.
6321         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
6322         parallelized_function on cgraph_node for child_fn.
6323         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
6324         Remove include of gt-tree-parloops.h.
6325         (parallelized_functions): Remove static variable.
6326         (parallelized_function_p): Rewrite using parallelized_function field of
6327         cgraph_node.
6328         (create_loop_fn): Remove adding to parallelized_functions.
6329         * Makefile.in (GTFILES): Remove tree-parloops.c
6331 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
6333         PR rtl-optimization/64366
6334         * lra.c (lra_update_insn_regno_info): Consider regs in
6335         CALL_INSN_FUNCTION_USAGE memory.
6337 2015-03-20  Richard Biener  <rguenther@suse.de>
6339         PR middle-end/64715
6340         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
6341         for type comparison and gcc_checking_assert.
6342         (chrec_fold_plus_poly_poly): Likewise.
6343         (chrec_fold_multiply_poly_poly): Likewise.
6344         (chrec_convert_1): Likewise.
6345         * gimplify.c (gimplify_expr): Remove premature folding of
6346         &X + CST to &MEM[&X, CST].
6348 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
6350         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
6351         already is final.
6352         (ipa_inline): Recompute inline_failed codes.
6353         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
6354         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
6355         CIF_FINAL_ERROR.
6357 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
6359         PR rtl-optimization/60851
6360         * recog.c (constrain_operands): Accept a pseudo register before reload
6361         for LRA enabled targets.
6363 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
6365         PR target/65240
6366         * config/rs6000/predicates.md (easy_fp_constant): Remove special
6367         -ffast-math handling that kept non-0 constants live in the RTL
6368         until reload.  Remove logic testing the number of instructions it
6369         took to create a constant in a GPR that was never used, due to a
6370         test for soft-float earlier.
6371         (memory_fp_constant): Delete, no longer used.
6373         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
6374         alternatives for loading non-0 constants into GPRs for hard
6375         floating point that is no longer needed due to changes in
6376         easy_fp_constant.  Add support for loading 0.0 into GPRs.
6377         (mov<mode>_hardfloat32): Likewise.
6378         (mov<mode>_hardfloat64): Likewise.
6379         (mov<mode>_64bit_dm): Likewise.
6380         (movtd_64bit_nodm): Likewise.
6381         (pre-reload move FP constant define_split): Delete define_split,
6382         since it is no longer used.
6383         (extenddftf2_internal): Remove GHF constraints that are not valid
6384         for extenddftf2.
6386 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
6388         PR rtl-optimization/63491
6389         * lra-constraints.c (check_and_process_move): Use src instead of
6390         sreg.  Remove some dead code.
6392 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
6394         PR ipa/65380
6395         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
6396         (sem_variable::merge): Likewise.
6398 2015-03-19  Martin Liska  <mliska@suse.cz>
6400         PR ipa/65465
6401         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
6402         all fields of cgraph_thunk_info.
6404 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6406         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
6407         clone instrumented thunks.
6409 2015-03-19  Richard Biener  <rguenther@suse.de>
6411         Revert
6412         2015-03-10  Richard Biener  <rguenther@suse.de>
6414         PR middle-end/63155
6415         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
6416         * tree-ssa-coalesce.c: Include timevar.h.
6417         (attempt_coalesce): Handle graph being NULL.
6418         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
6419         Split out abnormal coalescing to ...
6420         (perform_abnormal_coalescing): ... this function.
6421         (coalesce_ssa_name): Perform abnormal coalescing without computing
6422         live/conflict.
6423         (verify_ssa_coalescing_worker): New function.
6424         (verify_ssa_coalescing): Likewise.
6426 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6427             Jakub Jelinek  <jakub@redhat.com>
6429         PR sanitizer/65400
6430         * tsan.c (instrument_gimple): Clear tail call flag on
6431         calls.
6433 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
6435         PR sanitizer/65400
6436         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
6437         call in the return bb.
6438         (find_split_points): Add RETURN_BB argument, don't call
6439         find_return_bb.
6440         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
6441         if true append TSAN_FUNC_EXIT internal call after the call to
6442         the split off function.
6443         (execute_split_functions): Call find_return_bb here.
6444         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
6445         Adjust find_split_points and split_function calls.
6447 2015-03-18  DJ Delorie  <dj@redhat.com>
6449         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
6450         (iorqi3_virt): Likewise.
6452 2015-03-18  Tom de Vries  <tom@codesourcery.com>
6454         * tree-parloops.c (parallelize_loops): Make static.
6455         * tree-parloops.h (parallelize_loops): Remove extern declaration.
6457 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
6459         PR middle-end/64491
6460         Revert:
6461         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
6463         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
6464         condition would be removed due to undefined behaviour.
6466 2015-03-18  Martin Liska  <mliska@suse.cz>
6468         PR ipa/65432
6469         * cgraph.c (cgraph_node::get_create): Remove unnecessary
6470         xstrdup_for_dump wrapper.
6471         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
6472         sem_item::name.
6473         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
6474         with xstrdup_for_dump.
6475         (sem_variable::equals): Likewise.
6476         (sem_item_optimizer::read_section): Use symtab_node::name instead of
6477         sem_item::name.
6478         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
6479         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
6480         symtab_node::asm_name with xstrdup_for_dump.
6481         (congruence_class::dump): Use symtab_node::name instead of
6482         sem_item::name.
6483         * ipa-icf.h (symtab_node::name): Remove.
6484         (symtab_node::asm_name): Likewise.
6486 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
6488         PR tree-optimization/65450
6489         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
6490         function.
6491         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
6492         it instead of duplicate_ssa_name_ptr_info.
6494         PR target/65222
6495         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
6497 2015-03-18  Richard Biener  <rguenther@suse.de>
6499         * tree-data-ref.h (struct access_matrix): Remove.
6500         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6501         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6502         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
6503         (am_vector_index_for_loop): Likewise.
6504         (struct data_reference): Remove access_matrix member.
6505         (DR_ACCESS_MATRIX): Remove.
6506         (lambda_vector_new): Add comment.
6507         (lambda_matrix_new): Use XOBNEWVEC.
6509 2015-03-18  Richard Biener  <rguenther@suse.de>
6511         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
6512         (pass_ch::execute): Cleanup the CFG only if we did sth.
6513         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
6515 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6517         * expmed.c (synth_mult): Use std::swap instead of manually
6518         swapping algorithms.
6520 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
6522         PR target/65078
6523         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
6525 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
6527         PR target/65296
6528         * config/avr/avr.opt (-nodevicelib): New option.
6529         * doc/invoke.texi (AVR Options): Document it.
6530         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
6531         libgcc.a, libc.a, libm.a.
6532         * config/avr/specs.h: Same.
6533         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
6534         which don't (directly) depend on the device.  Print more help.
6535         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
6536         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
6537         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
6538         case of an error.
6539         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
6540         for specs file name.
6541         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
6542         * config/avr/avr-mcus.def: Adjust initializers and comments.
6544 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
6546         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
6547         DECL_ONE_ONLY to check if decl is one only.
6548         * ipa-split.c (consider_split): Limit splitt of one only functions.
6550 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
6552         PR tree-optimization/65427
6553         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
6554         functions.
6555         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
6557 2015-03-16  Marek Polacek  <polacek@redhat.com>
6559         * cgraph.h (add_new_static_var): Remove declaration.
6560         * varpool.c (add_new_static_var): Remove function.
6562 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
6564         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
6565         instead of vec<tree> * with vec_alloc and release for args.
6566         Adjust all users.
6568         PR middle-end/65431
6569         * omp-low.c (delete_omp_context): Only splay_tree_delete
6570         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
6571         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
6573 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
6575         PR sanitizer/64820
6576         * cfgexpand.c (align_base): New function.
6577         (alloc_stack_frame_space): Call it.
6578         (expand_stack_vars): Align prev_frame to be sure
6579         data->asan_vec elements aligned properly.
6581 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
6583         PR middle-end/65409
6584         * expr.c (store_field): Do not do a direct block copy if the source is
6585         a PARALLEL with BLKmode.
6587 2015-03-16  Tom de Vries  <tom@codesourcery.com>
6589         PR middle-end/65414
6590         Revert:
6591         2015-03-12  Tom de Vries  <tom@codesourcery.com>
6593         PR rtl-optimization/64895
6594         * lra-lives.c (check_pseudos_live_through_calls): Use
6595         actual_call_used_reg_set instead of call_used_reg_set, if available.
6597 2015-03-16  Alan Modra  <amodra@gmail.com>
6599         PR target/63150
6600         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
6601         Modify Z->r bswapdi splitter to use dest in place of scratch.
6602         In r->Z and Z->r bswapdi splitter rename word_high, word_low
6603         to word1, word2 and rearrange logic to suit.
6604         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
6605         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
6606         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
6607         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
6608         early clobber.
6610 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
6612         PR tree-optimization/65369
6613         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
6614         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
6615         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
6617         PR tree-optimization/65418
6618         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
6619         are casts in the first PLUS_EXPR operand, ensure tbias and
6620         *totallowp are in the inner type.
6622         PR rtl-optimization/65401
6623         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
6624         argument.  If true, adjust_address_nv of x with big-endian
6625         correction for the mode widening to GET_MODE (y).
6626         (make_field_assignment): Don't do MEM mode widening here.
6627         Use MEM_P instead of GET_CODE == MEM.
6629 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
6631         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
6632         the external decls.
6634 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6636         PR target/64600
6637         * config/arm/arm.c (arm_gen_constant, AND case): Use
6638         ARM_SIGN_EXTEND when constructing AND mask.
6640 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6642         * graph.c (print_graph_cfg): Make function names visible and append
6643         parenthesis to it.  Also make groups of basic blocks belonging to the
6644         same function visible.
6646 2015-03-12  Richard Biener  <rguenther@suse.de>
6648         PR middle-end/44563
6649         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
6650         to avoid quadratic behavior with inline expansion splitting blocks.
6651         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
6652         with the successor if the predecessor will be merged with it.
6653         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
6654         entry block with its successor.
6656 2015-03-13  Richard Biener  <rguenther@suse.de>
6658         PR middle-end/44563
6659         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
6660         (cleanup_tree_cfg_1): Do not call it.
6661         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
6662         (fixup_noreturn_call): Mark the stmt as control altering.
6663         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
6664         here.
6665         (pass_data_fixup_cfg): Produce a dump file.
6666         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
6667         (need_noreturn_fixup): New global.
6668         (pass_dominator::execute): Fixup queued noreturn calls.
6669         (optimize_stmt): Queue calls that became noreturn for fixup.
6670         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
6671         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
6672         (el_to_fixup): New global.
6673         (eliminate_dom_walker::before_dom_childre): Queue calls that
6674         became noreturn for fixup.
6675         (eliminate): Fixup queued noreturn calls.
6676         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
6677         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
6678         (substitute_and_fold_dom_walker::before_dom_children): Queue
6679         alls that became noreturn for fixup.
6680         (substitute_and_fold): Fixup queued noreturn calls.
6682 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
6684         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
6685         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
6686         are building; for methods check ODR type of class they belong to if
6687         they may lead to a polymorphic call.
6688         (sem_function::compare_polymorphic_p): Be bit smarter about testing
6689         when function may lead to a polymorphic call.
6690         (sem_function::compare_type_list): Remove.
6691         (sem_variable::equals): Update use of compatible_types_p.
6692         (sem_variable::parse_tree_refs): Remove.
6693         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
6694         cdtor.
6695         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
6696         matching here.
6697         (func_checker::compatible_polymorphic_types_p): Break out from ...
6698         (unc_checker::compatible_types_p): ... here.
6699         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
6700         Declare.
6701         (unc_checker::compatible_types_p): Update.
6702         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
6703         Remove.
6705 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6707         PR rtl-optimization/65235
6708         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
6709         When first element of vec_concat is const_int, calculate its size
6710         using second element.
6712 2015-03-12  Richard Biener  <rguenther@suse.de>
6714         PR middle-end/65270
6715         * fold-const.c (operand_equal_p): Fix ordering of resetting
6716         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
6718 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6720         * config/s390/s390.c (s390_reorg): Move code to output nops after label
6721         to s390_reorg ().
6722         (s390_asm_output_function_label): Likewise.
6723         * config/s390/s390.c (s390_asm_output_function_label):
6724         Fix function label alignment with -mhtopatch.
6725         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
6726         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
6727         ("nop_2_byte"): New define_insn.
6728         ("nop_4_byte"): Likewise.
6729         ("nop_6_byte"): Likewise.
6730         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
6731         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
6733 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6735         PR target/65103
6736         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
6737         register.
6739 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6741         PR target/65044
6742         * toplev.c (process_options): Restrict Pointer Bounds Checker
6743         usage with Address Sanitizer.
6745 2015-03-12  Richard Biener  <rguenther@suse.de>
6747         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
6748         to split on.
6749         * omp-low.c (expand_omp_taskreg): Split block before removing
6750         the stmt.
6751         (expand_omp_target): Likewise.
6752         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
6753         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
6754         stmt to split_block.
6756 2015-03-12  Tom de Vries  <tom@codesourcery.com>
6758         PR rtl-optimization/64895
6759         * lra-lives.c (check_pseudos_live_through_calls): Use
6760         actual_call_used_reg_set instead of call_used_reg_set, if available.
6762 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
6764         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
6765         (cgraph_node::remove): Likewise.
6766         (cgraph_node::get_untransformed_body): Likewise.
6767         * varpool.c (varpool_node::remove): Likewise.
6768         (varpool_node::get_constructor): Add sanity check.
6770 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
6772         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
6773         old GCC versions.
6774         (-fabi-compat-version): Likewise.
6775         (-ffriend-injection): Likewise.
6776         (-Wdeclaration-after-statement): Likewise.
6777         (-fomit-frame-pointer): Likewise.
6778         (-ftree-coalesce-inlined-vars): Likewise.
6779         (-fvisibility=): Likewise.
6780         * doc/extend.texi (Typeof): Likewise.
6781         (Zero Length): Likewise.
6782         (Escaped Newlines): Likewise.
6783         (Compound Literals): Likewise.
6784         (Function Attributes): Likewise.
6785         (Label Attributes): Likewise.
6786         (Type Attributes): Likewise.
6787         (Function Names): Likewise.
6788         (Other Builtins): Likewise.
6789         (Function Specific Option Pragmas): Likewise.
6790         (C++ Interface): Likewise.
6792 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
6794         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
6796 2015-03-11  Marek Polacek  <polacek@redhat.com>
6798         PR tree-optimization/65388
6799         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
6801 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
6803         PR target/65296
6804         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
6805         * configure: Regenerate.
6806         * config.in: Regenerate.
6807         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
6808         [-mn-flash]: Document it.
6809         [__AVR_ARCH__]: Document avrtiny.
6811         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
6812         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
6813         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
6815 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6817         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
6819 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6821         PR target/65242
6822         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
6823         allow reloads of PLUS in floating point/VSX registers.
6825 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
6827         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
6828         crypto_sha256_fast.
6829         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
6831 2015-03-11  Richard Biener  <rguenther@suse.de>
6833         PR tree-optimization/65310
6834         * tree-sra.c (build_ref_for_offset): Also preserve larger
6835         alignment.
6837 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
6839         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
6841 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
6843         PR target/65368
6844         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
6845         new define_expand.
6846         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
6848 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
6850         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
6851         (sem_function::equals_wpa): ... here.
6853 2015-03-10  Marek Polacek  <polacek@redhat.com>
6854             Jakub Jelinek  <jakub@redhat.com>
6856         PR sanitizer/65367
6857         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
6858         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
6859         separately.
6861 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
6863         PR target/65286
6864         * config/rs6000/t-linux: For powerpc64* target set
6865         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
6867 2015-03-10  Richard Biener  <rguenther@suse.de>
6869         PR middle-end/44563
6870         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
6871         for redirect_all_calls.
6873 2015-03-10  Marek Polacek  <polacek@redhat.com>
6875         * gdbinit.in (pcfun): Define and document.
6877 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
6879         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
6880         of libgomp-plugin.h.
6881         (find_target_compiler): Support a case when the path to gcc is
6882         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
6883         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
6884         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
6885         libgomp-plugin.h.
6886         (main): Use GCC_INSTALL_NAME as target_driver_name.
6887         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
6888         define.
6889         (mkoffload.o): Remove obsolete include path and defines.
6890         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
6892 2015-03-10  Richard Biener  <rguenther@suse.de>
6894         PR middle-end/63155
6895         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
6896         * tree-ssa-coalesce.c: Include timevar.h.
6897         (attempt_coalesce): Handle graph being NULL.
6898         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
6899         Split out abnormal coalescing to ...
6900         (perform_abnormal_coalescing): ... this function.
6901         (coalesce_ssa_name): Perform abnormal coalescing without computing
6902         live/conflict.
6903         (verify_ssa_coalescing_worker): New function.
6904         (verify_ssa_coalescing): Likewise.
6906 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
6908         PR target/65296
6909         * config.gcc (extra_options) [avr]: Remove.
6910         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
6911         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
6912         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
6914         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
6915         (-mmcu=): Add Var and MissingArgError properties.
6916         (-march=): Remove.
6917         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
6918         * config/avr/t-multilib: Regenerate.
6919         * config/avr/specs.h: New file.
6920         * config/avr/driver-avr.c: New file.
6921         * config/avr/genopt.sh: Remove file.
6922         * config/avr/avr-tables.opt: Remove file.
6923         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
6924         * config/avr/avr-c.c: Same.
6925         * avr-arch.h: Same.
6926         (avr_current_device): Remove proto.
6927         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
6928         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
6929         (EXTRA_SPEC_FUNCTIONS): Define.
6930         (avr_devicespecs_file): New specs function proto.
6931         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
6932         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
6933         (avr_current_device): Remove definition and usage.
6934         (avr_set_core_architecture): New static function.
6935         (avr_option_override): Use it.
6936         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
6937         (mcu_name): New static array.
6938         (comparator, avr_archs_str, avr_mcus_str): New static functions.
6939         (avr_inform_devices, avr_inform_core_architectures): New functions.
6940         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
6941         (avrlibc.h) [WITH_AVRLIBC]: Include.
6942         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
6943         (print_mcu): Rewrite from scratch.
6944         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
6945         Forward to avr-specific specs defined in device-specs file.
6946         * config/avr/t-avr (driver-avr.o): New rule.
6947         (avr-devices.o): Depend on avr-arch.h.
6948         (avr-mcus): No more depend on avr-tables.opt.
6949         (avr-tables.opt): Remove rule.
6950         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
6952 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6954         * c-family/c.opt (fchkp-use-wrappers): New.
6955         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
6956         (chkp_wrap_function): New.
6957         (chkp_build_instrumented_fndecl): Support wrapped
6958         functions.
6959         * doc/invoke.texi (-fcheck-pointer-bounds): New.
6960         (-fchkp-check-incomplete-type): New.
6961         (-fchkp-first-field-has-own-bounds): New.
6962         (-fchkp-narrow-bounds): New.
6963         (-fchkp-narrow-to-innermost-array): New.
6964         (-fchkp-optimize): New.
6965         (-fchkp-use-fast-string-functions): New.
6966         (-fchkp-use-nochk-string-functions): New.
6967         (-fchkp-use-static-bounds): New.
6968         (-fchkp-use-static-const-bounds): New.
6969         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
6970         (-fchkp-check-read): New.
6971         (-fchkp-check-write): New.
6972         (-fchkp-store-bounds): New.
6973         (-fchkp-instrument-calls): New.
6974         (-fchkp-instrument-marked-only): New.
6975         (-fchkp-use-wrappers): New.
6976         (-static-libmpx): New.
6977         (-static-libmpxwrappers): New.
6979 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6981         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
6982         (CHKP_SPEC): Add wrappers library.
6983         * c-family/c.opt (static-libmpxwrappers): New.
6985 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6987         * config/i386/linux-common.h (LIBMPX_LIBS): New.
6988         (LIBMPX_SPEC): New.
6989         (CHKP_SPEC): New.
6990         * gcc.c (CHKP_SPEC): New.
6991         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
6992         * c-family/c.opt (static-libmpx): New.
6994 2015-03-10  Richard Biener  <rguenther@suse.de>
6996         PR middle-end/44563
6997         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
6998         for compare_type.
6999         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
7000         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
7001         (cgraph_add_edge_to_call_site_hash): Likewise.
7002         (cgraph_node::get_edge): Likewise.
7003         (cgraph_edge::set_call_stmt): Likewise.
7004         (cgraph_edge::remove_caller): Likewise.
7006 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7008         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
7009         (callee_saved_gpr_regs_size): ... this.
7010         (callee_saved_regs_first_regno): Rename to ...
7011         (callee_saved_first_gpr_regno): ... this.
7012         (callee_saved_regs_last_regno) Rename to ...
7013         (callee_saved_last_gpr_regno): ... this.
7014         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
7015         variables.
7016         (nds32_initial_elimination_offset): Likewise.
7017         (nds32_expand_prologue): Likewise.
7018         (nds32_expand_epilogue): Likewise.
7019         (nds32_expand_prologue_v3push): Likewise.
7020         (nds32_expand_epilogue_v3pop): Likewise.
7021         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7022         Adjust renamed variables.
7023         (nds32_output_stack_pop): Likewise.
7025 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7027         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
7028         code in comment.
7030 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
7032         PR rtl-optimization/65321
7033         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
7034         than shift mode.
7035         * var-tracking.c (use_narrower_mode): Likewise.
7037 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
7039         PR tree-optimization/65355
7040         * varasm.c (notice_global_symbol): Do not produce RTL.
7041         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
7042         anchor.
7043         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
7044         check for section anchors.
7046 2015-03-10  Alan Modra  <amodra@gmail.com>
7048         PR target/65286
7049         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
7050         to be single-arch by default.  Set cpu_is_64bit for powerpc64
7051         given --with-cpu=native.
7052         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
7053         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
7054         and powerpc64le.
7055         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
7056         rs6000_isa_flags rather than TARGET_64BIT.
7058 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
7059             Kaz Kojima  <kkojima@gcc.gnu.org>
7061         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
7063 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
7065         PR lto/65361
7066         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
7067         on a TREE_BINFO, instead use BINFO_TYPE.
7069 2015-03-09  Richard Biener  <rguenther@suse.de>
7071         PR middle-end/65270
7072         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
7073         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
7074         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
7075         of that.  When comparing dereferences compare alignment.
7076         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
7078 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
7080         * ipa-inline-analysis.c (check_callers): Check
7081         node->can_remove_if_no_direct_calls_and_refs_p.
7082         (growth_likely_positive): Reorganize to call
7083         can_remove_if_no_direct_calls_p later.
7084         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
7085         will_be_removed_from_program_if_no_direct_calls_p): Add
7086         will_inline parameter.
7087         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
7088         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7089         Handle inliner case correctly.
7091 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7093         PR tree-optimization/63743
7094         * cfgexpand.c (reorder_operands): Also reorder if only second operand
7095         had its definition forwarded by TER.
7097 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
7099         PR lto/65316
7100         * ipa-utils.h (types_odr_comparable): Add strict argument.
7101         * ipa-devirt.c: Fix whitespace;
7102         (odr_hasher): Remove.
7103         (odr_name_hasher, odr_vtable_hasher): New hashers.
7104         (can_be_name_hashed_p): New predicate.
7105         (hash_type_name): remove.
7106         (hash_odr_name): New.
7107         (odr_name_hasher::hash): new.
7108         (can_be_vtable_hashed_p): New.
7109         (hash_odr_vtable): New.
7110         (odr_vtable_hasher::hash): New.
7111         (types_same_for_odr): Add strict parameter.
7112         (types_odr_comparable): Likewise.
7113         (odr_name_hasher::equal): New.
7114         (odr_vtable_hasher::equal): New.
7115         (odr_name_hasher::remove): New.
7116         (odr_hash_type): Change to hash_table<odr_name_hasher>.
7117         (odr_vtable_hash_type): New.
7118         (odr_vtable_hash): New.
7119         (odr_subtypes_equivalent_p): Do strict comparsion.
7120         (add_type_duplicate): Merge type names; cleanup; avoid type
7121         duplicates.
7122         (register_odr_type): Initialize vtable hash.
7123         (build_type_inheritance_graph): Likewise
7124         (get_odr_type): Reorg to use two hashes.
7125         (dump_possible_polymorphic_call_targets): Move sanity check after debug
7126         output.
7127         (ipa_devirt): Dump type_inheritance_graph.
7128         (types_same_for_odr): Add strict mode.
7130 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
7132         PR ipa/65334
7133         * cgraph.h (symtab_node): Add definition_alignment,
7134         can_increase_alignment_p and increase_alignment.
7135         * symtab.c (symtab_node::can_increase_alignment_p,
7136         increase_alignment_1, symtab_node::increase_alignment,
7137         symtab_node::definition_alignment): New.
7138         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
7139         can_increase_alignment_p.
7140         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
7141         * tree-vect-stmts.c (ensure_base_align): Likewise.
7142         * varasm.c (function_section_1): Use definition_alignment.
7143         (assemble_start_function): Likewise.
7144         (emit_local): likewise.
7145         (build_constant_desc): Likewsie.
7146         (output_constant_def_contents): Likewise.
7147         (place_block_symbol): Likewise.
7148         (output_object_block): Likewise.
7150 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
7152         PR ipa/65316
7153         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
7154         when outputting debug.
7156 2015-03-07  Marek Polacek  <polacek@redhat.com>
7157             Martin Uecker  <uecker@eecs.berkeley.edu>
7159         PR sanitizer/65280
7160         * doc/invoke.texi: Update description of -fsanitize=bounds.
7162 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
7164         * tree-ssa-phiopt.c (neg_replacement): Remove.
7165         (tree_ssa_phiopt_worker): Remove negate optimization.
7167 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
7169         PR ipa/65302
7170         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
7172 2015-03-06  Richard Biener  <rguenther@suse.de>
7174         PR middle-end/64928
7175         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
7176         and liveout_obstack members.
7177         (calculate_live_on_exit): Remove.
7178         (calculate_live_ranges): Change declaration.
7179         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
7180         (new_tree_live_info): Adjust.
7181         (calculate_live_ranges): Delete livein when not wanted.
7182         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
7183         Deal with partly deleted live info.
7184         (loe_visit_block): Remove temporary bitmap by using
7185         bitmap_ior_and_compl_into.
7186         (live_worklist): Adjust accordingly.
7187         (calculate_live_on_exit): Make static.
7188         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
7189         we do not need livein.
7191 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
7193         * real.c (real_from_string): Fix typo in assertion.
7195 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
7197         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
7198         the patch.
7200 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
7202         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
7204 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
7206         PR target/64342
7207         * lra-assigns.c (find_hard_regno_for): Rename to
7208         find_hard_regno_for_1.  Add a new parameter.
7209         (find_hard_regno_for): New function using find_hard_regno_for_1.
7211 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7213         PR rtl-optimization/65067
7214         * expmed.c (store_bit_field, extract_bit_field): Reworked the
7215         strict volatile bitfield handling.
7217 2015-03-05  Martin Liska  <mliska@suse.cz>
7219         PR ipa/65318
7220         * ipa-icf.c (sem_variable::equals): Compare variables types.
7222 2015-03-05  Richard Henderson  <rth@redhat.com>
7224         PR target/65121
7225         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
7226         correctly check weak symbol binding.
7228 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
7230         PR middle-end/65315
7231         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
7232         needed alignment.
7234 2015-03-05  Martin Liska  <mliska@suse.cz>
7236         * ipa-inline.c (inline_small_functions): Set default value to
7237         prevent warning during bootstrap.
7238         * tree.h: Add pragma guard that ignores false positives during
7239         bootstrap.
7241 2015-03-05  Richard Biener  <rguenther@suse.de>
7243         PR tree-optimization/65310
7244         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7245         Properly preserve alignment of the base of the access.
7247 2015-03-05  Richard Biener  <rguenther@suse.de>
7249         PR ipa/65270
7250         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
7251         Compare dependence info.
7253 2015-03-05  Richard Biener  <rguenther@suse.de>
7255         PR middle-end/65233
7256         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
7257         tree-into-ssa.h.
7258         (walk_ssa_copies): Revert last chage.  Instead do not walk
7259         SSA names registered for SSA update.
7261 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
7263         PR ipa/65270
7264         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
7265         vtable references for their containing type.
7266         (sem_function::equals_wpa): Compare TYPE_RESTRICT
7267         and type attributes.
7269 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
7271         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
7272         before negating it.
7273         * stor-layout.c (finalize_record_size): Revert latest change.
7275 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
7277         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
7279 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
7281         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
7282         for correct comdat handling.
7283         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7284         Likewise.
7285         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
7286         (used_from_object_file_p_worker): Remove.
7287         (cgraph_node::only_called_directly_or_alised): Add
7288         used_from_object_file_p.
7289         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
7290         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
7291         can_remove_if_no_direct_calls_and_refs_p.
7293 2015-03-04  Nick Clifton  <nickc@redhat.com>
7295         * config/rl78/rl78.h (enum reg_class): Remove real registers from
7296         General register class.
7297         * config/rl78/rl78-real.md: Replace general register constraints
7298         with real+virtual register constraints.
7300 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7302         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
7303         from checking for -mhtm option.
7305 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
7307         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
7308         (struct ipa_sra_check_caller_data): Add has_thunk field.
7309         (ipa_sra_check_caller): Check for thunk.
7310         (ipa_sra_preliminary_function_checks): Give up on function with
7311         thunks.
7312         (ipa_early_sra): Use call_for_symbol_and_aliases.
7314 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
7316         PR target/65249
7317         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
7318         called for __stack_chk_guard symbol.
7320 2015-03-03  DJ Delorie  <dj@redhat.com>
7322         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
7323         inc/dec.
7324         (*addhi3_real): Likewise.
7325         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
7326         pattern to match incrementing memory.
7327         * config/rl78/predicates.md (rl78_1_2_operand): New.
7328         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
7329         it's the same and only mem.
7330         (rl78_alloc_physical_registers_op2): If there's effectively only
7331         one MEM, transcode it into HL.
7332         (rl78_far_p): Reject addresses that aren't legitimate.
7334 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
7336         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
7337         negating it.
7339         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
7341 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
7343         Implement call0 ABI for xtensa
7344         * config/xtensa/constraints.md ("a" constraint): Include stack
7345         pointer in case of call0 ABI.
7346         ("q" constraint): Make empty in case of call0 ABI.
7347         ("D" constraint): Include stack pointer in case of call0 ABI.
7348         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
7349         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
7350         prototypes.
7351         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
7352         variable.
7353         (xtensa_regno_to_class): Make it a local variable in the
7354         function xtensa_regno_to_class.
7355         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
7356         macro, function prototype and implementation.
7357         (reg_nonleaf_alloc_order): Make it a local variable in the
7358         function order_regs_for_local_alloc.
7359         (xtensa_conditional_register_usage): New function.
7360         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
7361         (xtensa_valid_move): Allow direct moves to stack pointer
7362         register in call0 ABI.
7363         (xtensa_setup_frame_addresses): Only spill register windows in
7364         windowed ABI.
7365         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
7366         call0 ABI respectively.
7367         (xtensa_function_arg_1): Only mark a7 register for copying in
7368         windowed ABI.
7369         (xtensa_call_save_reg): New function.
7370         (compute_frame_size): Add space for callee saved register
7371         storage to the frame size in call0 ABI.
7372         (xtensa_expand_prologue): Generate code to set up stack frame
7373         and save callee-saved registers in call0 ABI.
7374         (xtensa_expand_epilogue): New function.
7375         (xtensa_set_return_address): New function.
7376         (xtensa_return_addr): Calculate return address in call0 ABI.
7377         (xtensa_builtin_saveregs): Only mark a7 register for copying and
7378         emit copying code in windowed ABI.
7379         (order_regs_for_local_alloc): Add preferred register allocation
7380         order for non-leaf function in call0 ABI.
7381         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
7382         (xtensa_asm_trampoline_template): Add trampoline generation for
7383         call0 ABI.
7384         (xtensa_trampoline_init): Add trampoline initialization for
7385         call0 ABI.
7386         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
7387         functions.
7388         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
7389         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
7390         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
7391         ABI call-used registers.
7392         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
7393         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
7394         call0 ABI.
7395         (REG_CLASS_CONTENTS): Include all registers into the preferred
7396         reload registers set, adjust the set in the
7397         xtensa_conditional_register_usage.
7398         (xtensa_regno_to_class): Drop variable declaration.
7399         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
7400         function.
7401         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
7402         respectively.
7403         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
7404         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
7405         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
7406         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
7407         location in call0 ABI.
7408         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
7409         stack adjustment size when handling exception.
7410         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
7411         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
7412         definitions.
7413         ("return" pattern): Generate ret.n/ret in call0 ABI.
7414         ("epilogue" pattern): Expand epilogue.
7415         ("nonlocal_goto" pattern): Use default in call0 ABI.
7416         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
7417         emit eh_set_a0_* depending on ABI.
7418         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
7419         ("eh_set_a0_call0", "blockage"): New patterns.
7421 2015-03-03  Martin Liska  <mliska@suse.cz>
7423         PR ipa/65287
7424         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
7426 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7428         PR 65138/target
7429         * config/rs6000/rs6000-tables.opt: Regenerate table.
7431 2015-03-03  Renlin Li  <renlin.li@arm.com>
7433         * doc/md.texi (@item ^): Change ? into ^.
7435 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
7437         * doc/tm.texi: Regenerated.
7439 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
7441         * builtins.c (expand_builtin_return_addr): Add
7442         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
7443         surrounding #ifdef.
7444         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
7445         definition to 1.
7446         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
7447         Likewise.
7448         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
7449         undefined.
7450         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
7451         paragraph.
7453 2015-03-03  Martin Jambor  <mjambor@suse.cz>
7454             Eric Botcazou  <ebotcazou@adacore.com>
7456         * tree-sra.c (ipa_sra_check_caller_data): New type.
7457         (has_caller_p): Removed.
7458         (ipa_sra_check_caller): New function.
7459         (ipa_sra_preliminary_function_checks): Use it.
7461 2015-03-03  Martin Liska  <mliska@suse.cz>
7463         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
7464         instead of if branch.
7466 2015-03-03  Martin Liska  <mliska@suse.cz>
7468         PR ipa/65282
7469         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
7471 2015-03-23  Jeff Law  <law@redhat.com>
7473         PR tree-optimization/65241
7474         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
7475         hash table if INSERT is true.
7477 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
7479         PR target/65296
7480         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
7482 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
7484         PR target/64331
7485         * config/avr/avr.c (context.h, tree-pass.h): Include them.
7486         (avr_pass_data_recompute_notes): New static variable.
7487         (avr_pass_recompute_notes): New class.
7488         (avr_register_passes): New static function.
7489         (avr_option_override): Call it.
7491 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
7493         Fix various problems with specs file generation.
7495         PR target/65296
7496         * config.gcc (extra_gcc_objs) [avr]: Remove.
7497         * config/avr/driver-avr.c: Remove file.
7498         * config/avr/t-avr (driver-avr.o): Remove rule.
7499         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
7500         INCLUDES to build.  Depend on TM_H.
7501         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
7502         build warnings.  Fix non-matching types and non-existing %-codes.
7503         (tm.h): Include.
7504         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
7505         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
7506         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
7507         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
7508         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
7509         (LIBGCC_SPEC): Remove definitions.
7511 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
7513         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
7514         to create a register in testing mode.
7516 2015-03-03  Martin Liska  <mliska@suse.cz>
7517             Jan Hubicka  <hubicka@ucw.cz>
7519         PR ipa/65263
7520         * cgraph.c (cgraph_node::has_thunk_p): New function.
7521         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
7522         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
7523         (sem_function::merge): Assert is changed.
7525 2015-03-03  Martin Liska  <mliska@suse.cz>
7526             Martin Jambor  <mjambor@suse.cz>
7528         PR ipa/65087
7529         * ipa-icf.c (sem_item_optimizer::execute): Change function
7530         return value to boolean.
7531         (sem_item_optimizer::merge_classes): Likewise.
7532         (ipa_icf_driver): Return TODO_remove_functions in case there's
7533         a merge operation processed.
7534         * ipa-icf.h: Change function return value to boolean.
7536 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7538         PR 65138/target
7539         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
7540         processor type for 64-bit little endian PowerPC.
7542         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7543         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
7544         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
7545         printing built-in mask so it does not pass NULL pointers.
7547         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
7548         -mcpu=powerpc64le.
7550 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
7552         PR target/58158
7553         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
7554         !ISA_HAS_FP_CONDMOVE.
7556 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
7558         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
7559         reload_completed.
7561 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
7563         * doc/invoke.texi (Options for Code Generation Conventions):
7564         Fix URL of DSO paper.
7566 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
7568         PR ipa/65130
7569         * ipa-inline.c (check_callers): Looks for recursion.
7570         (inline_to_all_callers): Give up on uninlinable or recursive edges.
7571         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
7572         summary of inline clones.
7573         (do_estimate_growth_1): Fix recursion check.
7575 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
7577         PR ipa/64988
7578         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
7579         comdat groups.
7581 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
7582             Aldy Hernandez  <aldyh@redhat.com>
7584         PR lto/65276
7585         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
7586         when checking TYPE_BINFO.
7588 2015-03-02  Richard Biener  <rguenther@suse.de>
7590         PR ipa/65270
7591         * ipa-icf-gimple.c: Include builtins.h.
7592         (func_checker::compare_memory_operand): Compare base alignment.
7594 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
7596         PR target/65184
7597         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
7598         are never passed by reference.
7600 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
7602         PR target/65183
7603         * tree-chkp.c (chkp_check_lower): Don't check against
7604         zero bounds for already instrumented functions.
7605         (chkp_check_upper): Likewise.
7606         (chkp_fini): Clean pass local data to avoid wrong reusage.
7608 2015-02-28  Martin Liska  <mliska@suse.cz>
7609             Jan Hubicka  <hubicka@ucw.cz>
7611         * ipa-icf.c (sem_variable::equals): Improve debug output;
7612         get variable constructor.
7613         (sem_variable::parse): Do not filter out too early; give up on
7614         volatile and register vars.
7615         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
7616         variables.
7617         * ipa-icf.h (sem_variable::init): Do not set ctor.
7618         (sem_variable::ctor): Remove.
7620 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
7622         PR middle-end/65233
7623         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
7625 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7627         * ipa-icf.c: Include stor-layout.h
7628         (sem_function::compare_cgraph_references): Rename to ...
7629         (sem_item::compare_cgraph_references): ... this one.
7630         (sem_variable::equals_wpa): New function
7631         (sem_variable::equals): Do not check stuff already verified by
7632         equals_wpa.
7633         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
7634         * ipa-icf.h (sem_item): Add compare_cgraph_references.
7635         (sem_function): Remove compare_cgraph_references.
7636         (sem_variable): Turns equals_wpa into non-inline.
7638 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7640         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
7641         (sem_item::add_expr): New function.
7642         (sem_function::hash_stmt): Handle operands of most statements.
7643         (sem_variable::get_hash): Hash the actual constructor.
7644         * ipa-icf.h (sem_item): Add add_expr.
7645         (sem_function): Update prototype of hash_stmt
7647 2015-02-28  Martin Liska  <mliska@suse.cz>
7648             Jan Hubicka  <hubicka@ucw.cz>
7650         PR ipa/65245
7651         * ipa-icf-gimple.c (func_checker::compare_function_decl):
7652         Remove.
7653         (func_checker::compare_variable_decl): Skip symtab vars.
7654         (func_checker::compare_cst_or_decl): Update.
7655         * ipa-icf.c (sem_function::parse): Do not consider aliases.
7656         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
7657         use correct symtab predicates.
7658         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
7659         (sem_variable::parse):  Update comment.
7660         (sem_item_optimizer::build_graph): Consider ultimate aliases
7661         for references.
7663 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7665         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
7666         of OBJ_TYPE_REF.
7668 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7670         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
7671         (sem_variable::merge) Likewise.
7673 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7675         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
7676         target; also match flag_ipa_devirt.
7678 2015-03-01  Martin Liska  <mliska@suse.cz>
7679             Jan Hubicka  <hubicka@ucw.cz>
7681         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
7682         Validate variable alignment.
7683         * ipa-icf.c (sem_function::equals_private): Be more precise
7684         about non-common function attributes.
7685         (sem_variable::equals): Likewise.
7687 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7689         PR ipa/65237
7690         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
7691         across COMDAT group boundary.
7693 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7695         PR ipa/65232
7696         * ipa-icf.c (clear_decl_rtl): New function.
7697         (sem_function::merge): Clear RTL before forming alias.
7698         (sem_variable::merge): Clear RTL before forming alias.
7700 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7702         PR ipa/65236
7703         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
7705 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
7707         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
7708         to neon_to_gp<q>.
7710 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
7712         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
7713         a typo in the description.
7715 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
7717         PR target/64317
7718         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
7719         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
7720         * lra-constraints.c: Include "params.h".
7721         (EBB_PROBABILITY_CUTOFF): Use
7722         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
7723         (lra_inheritance): Use '<' instead of '<=' for
7724         EBB_PROBABILITY_CUTOFF.
7725         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
7726         Document change.
7728 2015-02-27  Martin Liska  <mliska@suse.cz>
7730         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
7731         vector length condition.
7733 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
7735         * doc/extend.texi (x86 transactional memory intrinsics):
7736         Reorganize discussion of _xbegin.  Clarify that the return
7737         value is a bit mask.  Expand example and move to end of section.
7739 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
7740             Aldy Hernandez  <aldyh@redhat.com>
7742         PR rtl-optimization/65220
7743         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
7745 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
7747         PR target/65032
7748         * lra-remat.c (update_scratch_ops): New.
7749         (do_remat): Call it.
7750         * lra.c (lra_register_new_scratch_op): New. Take code from ...
7751         (remove_scratches): ... here.
7752         * lra-int.h (lra_register_new_scratch_op): New prototype.
7754 2015-02-27  Marek Polacek  <polacek@redhat.com>
7756         PR c/65040
7757         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
7758         -Wformat-signedness anymore.
7760 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7762         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
7763         function.
7764         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
7766 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7768         * config/s390/s390.c (enum s390_builtin):
7769         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
7770         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
7771         (s390_init_builtins): Generate new builtin functions.
7772         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
7773         (s390_sfpc, s390_efpc): New pattern definitions.
7775 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7777         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
7778         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
7779         (s390_builtin_decls): New array.
7780         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
7781         (s390_builtin_decl): New function.
7782         (TARGET_BUILTIN_DECL): Define macro.
7784 2015-02-27  Richard Biener  <rguenther@suse.de>
7786         PR middle-end/63175
7787         * builtins.c (get_object_alignment_2): Make sure to re-apply
7788         the ANDed mask after recursing to its operand gets us a new
7789         misalignment bit position.
7791 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
7792             Martin Liska  <mliska@suse.cz>
7794         PR bootstrap/65150
7795         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
7796         Use address_matters_p.
7797         (redirect_all_callers, set_addressable): New functions.
7798         (sem_function::merge): Reorganize and fix merging issues.
7799         (sem_variable::merge): Likewise.
7800         (sem_variable::compare_sections): Remove.
7801         * common.opt (fmerge-all-constants, fmerge-constants): Remove
7802         Optimization flag.
7803         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
7804         redirect them.
7805         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
7806         decl is used.
7807         (address_matters_1): New function.
7808         (symtab_node::address_matters_p): New function.
7809         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
7810         check for merged flag.
7811         * cgraph.h (address_matters_p): Declare.
7812         (symtab_node::address_taken_from_non_vtable_p): Remove.
7813         (symtab_node::address_can_be_compared_p): New method.
7814         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
7815         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
7816         Remove.
7817         (comdat_can_be_unshared_p_1) Use address_matters_p.
7818         (update_vtable_references): Fix formating.
7819         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
7820         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
7821         * cgraphclones.c: Preserve merged and icf_merged flags.
7823 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
7825         * doc/extend.texi (Function Attributes): Fix spelling and typos.
7826         (Label Attributes): Likewise.
7827         (Cilk Plus Builtins): Likewise.
7828         (ARC SIMD Built-in Functions): Likewise.
7829         (ARM C Language Extensions (ACLE)): Likewise.
7830         (PowerPC Built-in Functions): Likewise.
7831         (PowerPC Hardware Transactional Memory Built-in Functions):
7832         Likewise.
7834 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
7836         PR tree-optimization/65216
7837         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
7838         new stmt and new SSA_NAME for lhs whenever the arguments have
7839         changed and weren't just swapped.  Fix comment typo.
7841         PR tree-optimization/65215
7842         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
7843         for PDP endian targets.
7844         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
7845         Fix up formatting issues.
7846         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
7847         size is smaller than the original, adjust MEM_REF offset by the
7848         difference of sizes.  Use is_gimple_mem_ref_addr instead of
7849         is_gimple_min_invariant test to avoid adding address temporaries.
7851 2015-02-26  Martin Liska  <mliska@suse.cz>
7852             Jan Hubicka  <hubicka@ucw.cz>
7854         PR ipa/64693
7855         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
7856         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
7857         (sem_item_optimizer::process_cong_reduction): Include division by
7858         sensitive references.
7859         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
7860         * ipa-ref.c (ipa_ref::address_matters_p): New function.
7861         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
7863 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
7865         PR target/65192
7866         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
7867         Remove.
7868         * config/avr/avr.c: Same.
7869         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
7870         Refuse any constant address not in 0..0xbf.
7871         * config/avr/avr.md (*mov<mode>, *movsf): Remove
7872         tiny_valid_direct_memory_access_range from insn conditions.
7873         (mov<mode>): Don't special-case expansion of avrtiny addresses.
7875 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
7877         PR target/61142
7878         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
7879         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
7880         * config/sh/predicates.md (const_logical_operand): New predicate.
7881         * config/sh/sh.md: Add new peephole2 patterns.
7883 2015-02-26  Marek Polacek  <polacek@redhat.com>
7885         PR ipa/65008
7886         * ipa-inline.c (early_inliner): Recompute inline parameters.
7888 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7890         PR target/65171
7891         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
7892         instructions with TImode operands are included in the analysis.
7894 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
7896         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
7897         of an EDGE_FSM_THREAD.
7899 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7901         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
7903 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
7905         PR debug/46102
7906         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
7908 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
7910         PR tree-optimization/65048
7911         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
7912         (thread_through_all_blocks): Call valid_jump_thread_path.
7913         Remove invalid FSM jump-thread paths.
7915 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
7917         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
7918         (ipa_write_optimization_summaries): Likewise.
7919         * tree-streamer.h: Include data-streamer.h.
7920         (streamer_mode_table): Declare extern variable.
7921         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
7922         * lto-streamer-out.c (lto_output_init_mode_table,
7923         lto_write_mode_table): New functions.
7924         (produce_asm_for_decls): Call lto_write_mode_table when streaming
7925         offloading LTO.
7926         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
7927         (lto_create_simple_input_block): Add mode_table argument to the
7928         lto_input_block constructors.
7929         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
7930         Likewise.
7931         * data-streamer-in.c (string_for_index): Likewise.
7932         * ipa-inline-analysis.c (inline_read_section): Likewise.
7933         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
7934         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7935         * lto-streamer-in.c (lto_read_body_or_constructor,
7936         lto_input_toplevel_asms): Likewise.
7937         (lto_input_mode_table): New function.
7938         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
7939         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
7940         Use bp_pack_machine_mode.
7941         * real.h (struct real_format): Add name field.
7942         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
7943         (class lto_input_block): Add mode_table member.
7944         (lto_input_block::lto_input_block): Add mode_table_ argument,
7945         initialize mode_table.
7946         (struct lto_file_decl_data): Add mode_table field.
7947         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
7948         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
7949         unpack_ts_decl_common_value_fields,
7950         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
7951         * tree-streamer.c (streamer_mode_table): New variable.
7952         * real.c (ieee_single_format, mips_single_format,
7953         motorola_single_format, spu_single_format, ieee_double_format,
7954         mips_double_format, motorola_double_format,
7955         ieee_extended_motorola_format, ieee_extended_intel_96_format,
7956         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
7957         ibm_extended_format, mips_extended_format, ieee_quad_format,
7958         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
7959         decimal_single_format, decimal_double_format, decimal_quad_format,
7960         ieee_half_format, arm_half_format, real_internal_format): Add name
7961         field.
7962         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
7964 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
7966         PR target/65161
7967         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
7968         reordering for selective scheduling.
7970 2015-02-26  Terry Guo  <terry.guo@arm.com>
7972         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
7973         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
7974         (arm_arch_no_volatile_ce): Declare new global variable.
7975         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
7976         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
7977         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
7978         (TARGET_NO_VOLATILE_CE): New macro.
7979         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
7980         volatile memory access in IT block
7982 2015-02-25  Kai Tietz  <ktietz@redhat.com>
7984         PR tree-optimization/61917
7985         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
7986         that reduc_def_stmt is null.
7988 2015-02-25  Martin Liska  <mliska@suse.cz>
7990         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
7991         hard register variables.
7993 2015-02-25  Kai Tietz  <ktietz@redhat.com>
7995         PR target/64212
7996         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
7997         (symtab::noninterposable_alias): Likewise.
7999 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
8001         PR target/65167
8002         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
8003         bounds registers.
8004         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
8006 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
8008         PR target/64997
8009         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
8010         as split condition; force split via '#' in output pattern.
8012 2015-02-25  Richard Biener  <rguenther@suse.de>
8013             Kai Tietz  <ktietz@redhat.com>
8015         PR tree-optimization/61917
8016         * tree-vect-loop.c (vectorizable_reduction): Allow
8017         vect_internal_def without reduction to exit graceful.
8019 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
8021         PR target/65196
8022         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
8023         only with NONDEBUG_INSN_P.
8025 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
8027         Use variadic macros with avr-log.c.
8029         * config/avr/avr-protos.h (avr_vdump): New prototype.
8030         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
8031         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
8032         * config/avr/avr-log.c: Adjust comments.
8033         (avr_vdump): New function.
8034         (avr_vadump): Pass caller as 2nd argument instead of format string.
8035         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
8036         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
8038 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
8040         PR lto/64374
8041         * target.def (target_option_stream_in): New target hook.
8042         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
8043         targetm.target_option.post_stream_in if non-NULL.
8044         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
8045         * doc/tm.texi: Updated.
8046         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
8047         function.
8048         (TARGET_OPTION_POST_STREAM_IN): Redefine.
8050 2015-02-24  Jeff Law  <law@redhat.com>
8052         PR target/65117
8053         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
8054         of operand 0 and operand 2.
8055         (zero_cost_loop_end, loop_end): Similarly.
8057 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
8059         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
8060         CXX_MEM_STAT_INFO.
8062 2015-02-24  DJ Delorie  <dj@redhat.com>
8064         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
8065         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
8066         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
8067         instead of hardcoding SImode.
8069 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
8071         * omp-low.c (create_omp_child_function): Tag entrypoint
8072         functions with a special attribute.
8074 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8076         PR target/65058
8077         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
8079 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
8081         PR rtl-optimization/65123
8082         * lra-remat.c (operand_to_remat): Check hard regs in insn
8083         definition too.
8085 2015-02-24  Nick Clifton  <nickc@redhat.com>
8087         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
8088         to the assembler.
8090 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
8092         PR libgomp/64625
8093         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
8094         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
8095         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
8096         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
8097         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
8098         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
8099         (BUILT_IN_GOACC_PARALLEL): Specify as
8100         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
8101         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
8102         * builtin-types.def
8103         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8104         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8105         Remove function types.
8106         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
8107         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8108         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8109         New function types.
8111 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
8113         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
8115 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
8117         PR tree-optimization/65170
8118         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
8119         if val[1] < 0, clear also val[2] and return 3.
8121 2015-02-24  Alan Modra  <amodra@gmail.com>
8123         PR target/65172
8124         * config/rs6000/rs6000.c (get_memref_parts): Only return true
8125         when *base is a reg.  Handle nested plus addresses.  Simplify
8126         pre_modify test.
8128 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
8130         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
8131         use natural alignment when optimizing for size.
8133 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
8135         PR target/65153
8136         * config/sh/sh.md (movsicc_true+3): Remove peephole.
8137         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
8138         * config/sh/sh.c (replace_n_hard_rtx): Remove.
8140 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
8142         PR fortran/63427
8143         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
8144         too big for a wide_int.  Implement missing wrapping operation.
8146 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
8148         PR target/65163
8149         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
8150         instead of const_int 4294901760.
8152 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
8154         * config/avr/t-avr: Fix typo in comment.
8156 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
8158         * doc/rtl.texi (fma): Clarify documentation.
8160 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
8162         PR debug/58123
8163         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
8164         over input_location.
8166 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
8168         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
8169         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
8170         restrict alignments to absolute_biggest_alignment.
8171         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
8172         Define.
8173         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
8174         * doc/tm.texi: Regenerate.
8175         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
8177 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
8179         PR target/64172
8180         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
8182 2015-02-20  Richard Biener  <rguenther@suse.de>
8184         PR tree-optimization/65136
8185         * tree-ssa-propagate.c: Include cfgloop.h.
8186         (replace_phi_args_in): Avoid replacing loop latch edge PHI
8187         arguments with constants.
8189 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
8190             Martin Liska  <mliska@suse.cz>
8192         PR target/63892
8193         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
8194         don't try to create_thunk if stdarg_p.  If
8195         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
8196         redirect_callers if possible.
8197         (sem_item_optimizer::execute): Call unregister_hooks here...
8198         (ipa_icf_driver): ... instead of here.
8200 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8202         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
8203         Mark operand 0 as earlyclobber in 2nd alternative.
8204         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
8205         Write negated shift amount into QI lowpart operand 0 and use it
8206         in the shift step.
8207         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
8209 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
8211         * cgraph.h (clone_function_name_1): Declare.
8212         * cgraphclones.c (clone_function_name_1): New function.
8213         (clone_function_name): Use it.
8214         * lto-partition.c: Include "stringpool.h".
8215         (must_not_rename, maybe_rewrite_identifier)
8216         (validize_symbol_for_target): New static functions.
8217         (privatize_symbol_name): Use must_not_rename.
8218         (promote_symbol): Call validize_symbol_for_target.
8219         (lto_promote_cross_file_statics): Likewise.
8220         (lto_promote_statics_nonwpa): Likewise.
8222 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
8224         PR target/64452
8225         * config/avr/avr.md (pushhi_insn): New insn.
8226         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
8228 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
8229             Jakub Jelinek  <jakub@redhat.com>
8231         * tree-streamer.c (preload_common_nodes): Don't preload
8232         TI_VA_LIST* for offloading.
8233         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
8234         in_lto_p.
8236 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
8238         * config/pa/pa.c (pa_emit_move_sequence): Always force
8239         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
8240         note on insn.
8242         * config/pa/pa.c (pa_reloc_rw_mask): New function.
8243         (TARGET_ASM_RELOC_RW_MASK): Define.
8244         (pa_cannot_force_const_mem): Revert previous change.
8246 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
8247             Jan Hubicka  <hubicka@ucw.cz>
8249         PR ipa/65028
8250         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
8251         across jump functions.
8253 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
8255         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
8257 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
8259         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
8261 2015-02-19  Richard Henderson  <rth@redhat.com>
8263         PR middle-end/65074
8264         * varasm.c (default_binds_local_p_2): Don't test node->definition;
8265         test DECL_EXTERNAL independent of symtab_node.
8267 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
8269         PR lto/65012
8270         * varpool.c (varpool_node::get_constructor): Return early
8271         if this->lto_file_data is NULL.
8273 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8275         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
8276         (rank_for_schedule_debug): Update.
8277         (ready_sort): Make static.  Move sorting logic to ...
8278         (ready_sort_debug, ready_sort_real): New static functions.
8279         (schedule_block): Sort both debug insns and real insns in preparation
8280         for ready list trimming.  Improve debug output.
8281         * sched-int.h (ready_sort): Remove global declaration.
8283 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
8285         * ipa-icf.c (sem_function::equals_private): Adjust.
8286         (sem_function::bb_dict_test): Take a vec<int> * instead of
8287         auto_vec<int>.
8288         * ipa-icf.h (bb_dict_test): Likewise.
8290 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
8292         PR gcov-profile/64634
8293         * tree-eh.c (frob_into_branch_around): Fix up typos
8294         in function comment.
8295         (lower_catch): Put eh_seq resulting from EH lowering of
8296         the cleanup sequence after the cleanup rather than before it.
8298 2015-02-18  Tom de Vries  <tom@codesourcery.com>
8300         * common.opt (fstdarg-opt): New option.
8301         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
8302         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
8303         (@item -fstdarg-opt): New item.
8305 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8307         PR target/65064
8308         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
8309         for common symbols.
8311 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
8313         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
8314         insn-modes.h.
8315         (ALL_HOST_OBJS): Add mkoffload.o.
8316         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
8318 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
8320         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
8321         (compare_virtual_tables): Be smarter about skipping typeinfos;
8322         do sane output on virtual table table mismatch.
8323         (warn_odr): Be ready for forward declarations of enums;
8324         output sane info on base mismatch and virtual table mismatch.
8325         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
8326         when only one type is polymorphic.
8327         (get_odr_type): Fix hashtable corruption.
8328         (dump_odr_type): Dump mangled names.
8330 2015-02-18  Richard Biener  <rguenther@suse.de>
8332         PR tree-optimization/65063
8333         * tree-predcom.c (determine_unroll_factor): Return 1 if we
8334         have replaced looparound PHIs.
8336 2015-02-18  Martin Liska  <mliska@suse.cz>
8338         * lto-streamer.c (lto_streamer_init): Encapsulate
8339         streamer_check_handled_ts_structures with checking macro.
8341 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
8343         PR ipa/65087
8344         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
8345         section if !implicit_section.
8346         (cgraph_node::create_version_clone_with_body): Likewise.
8347         * trans-mem.c (ipa_tm_create_version): Likewise.
8349 2015-02-18  Richard Biener  <rguenther@suse.de>
8351         PR tree-optimization/62217
8352         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
8353         into BIVs.
8355 2015-02-18  Marek Polacek  <polacek@redhat.com>
8357         PR sanitizer/65081
8358         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
8359         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
8360         is in range [-16K, -1].  Don't issue run-time error if
8361         (ptr > ptr + offset).
8363 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
8365         * doc/install.texi (nvptx-*-none): New section.
8366         * doc/invoke.texi (Nvidia PTX Options): Likewise.
8367         * config/nvptx/nvptx.opt: Update.
8369         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
8370         (access_check): New functions, copied from
8371         config/i386/intelmic-mkoffload.c.
8372         (main): For non-installed testing, look in all COMPILER_PATHs for
8373         GCC_INSTALL_NAME.
8375         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
8377 2015-02-18  Andrew Pinski  <apinski@cavium.com>
8378             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8380         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
8381         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
8383 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
8385         * ipa-visibility.c (function_and_variable_visibility): Only
8386         check locality if node is not already local.
8387         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
8388         call_for_symbol_and_aliases instead of
8389         call_for_symbol_thunks_and_aliases.
8390         (ipa_inline): Likewise.
8391         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8392         first walk aliases.
8393         * ipa.c (symbol_table::remove_unreachable_nodes): Use
8394         call_for_symbol_and_aliases.
8395         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
8396         (ipa_propagate_frequency_1): Use it; use opt_for_fn
8397         (ipa_propagate_frequency): Update.
8398         (ipa_profile): Add opt_for_fn gueards.
8400 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
8402         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
8403         * doc/invoke.texi (SH options): Document it.
8404         * config/sh/sh.c (sh_insn_length_adjustment): Check
8405         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
8407 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
8409         * common.opt (fipa-cp-alignment): New.
8410         * ipa-cp.c (ipcp_store_alignment_results): Check
8411         flag_ipa_cp_alignment.
8412         * opts.c (default_options_table): Enable -fipa-cp-alignment for
8413         -O2.
8414         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
8415         * doc/invoke.texi: Document -fipa-cp-alignment.
8417 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
8419         PR target/64793
8420         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
8421         to nil.  Adjust comments.
8423 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
8425         * ipa-visibility.c (function_and_variable_visibility): Only
8426         check locality if node is not already local.
8427         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
8428         call_for_symbol_and_aliases instead of
8429         call_for_symbol_thunks_and_aliases.
8430         (ipa_inline): Likewise.
8431         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8432         first walk aliases.
8433         * ipa.c (symbol_table::remove_unreachable_nodes): Use
8434         call_for_symbol_and_aliases.
8435         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
8436         (ipa_propagate_frequency_1): Use it; use opt_for_fn
8437         (ipa_propagate_frequency): Update.
8438         (ipa_profile): Add opt_for_fn guards.
8440 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
8442         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
8443         skipping of "strange" tokens.
8445 2015-02-17  Jeff Law  <law@redhat.com>
8447         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
8448         obsolete comment.
8450 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
8452         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
8453         as forcing a HARD_DEP between instructions, thereby
8454         disallowing rewriting to break dependencies.
8456 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
8458         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
8459         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
8460         variables in boundary that have no inlitalizer encoded and are
8461         not aliases.
8462         * varasm.c (default_binds_local_p_2): External definitions do not
8463         count as definitions here.
8465 2015-02-16  Jeff Law  <law@redhat.com>
8467         PR tree-optimization/64823
8468         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
8469         statements.
8470         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8471         threading through blocks with PHIs, but no statements.
8472         (thread_through_normal_block): Distinguish between blocks where
8473         we did not process all the statements and blocks with no statements.
8475 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
8476             James Greenhalgh  <james.greenhalgh@arm.com>
8478         PR ipa/64963
8479         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
8480         section if not linkonce.  Fix up formatting.
8481         (cgraph_node::create_version_clone_with_body): Copy section.
8482         * trans-mem.c (ipa_tm_create_version): Likewise.
8484 2015-02-16  Richard Biener  <rguenther@suse.de>
8486         PR tree-optimization/65077
8487         * tree-ssa-structalias.c (get_constraint_for_1): Handle
8488         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
8489         (find_func_aliases): Allow float values to carry pointers again.
8491 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
8493         * doc/install.texi (Specific): Reorder targets list to put
8494         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
8495         from the top menu.
8497 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
8498             David Edelsohn  <dje.gcc@gmail.com>
8500         PR target/65058
8501         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
8502         mapping class to external variable or function reference.
8503         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
8504         mapping class.
8506 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
8508         PR target/53348
8509         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
8510         ASM_WEAKEN_DECL if defined.
8512 2015-02-16  Richard Biener  <rguenther@suse.de>
8514         PR lto/65015
8515         * varasm.c (default_file_start): For LTO produced units
8516         emit <artificial> as file directive.
8518 2015-02-16  Richard Biener  <rguenther@suse.de>
8520         PR tree-optimization/63593
8521         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
8522         stmts and releasing SSA names until...
8523         (execute_pred_commoning): ... after processing all chains.
8525 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
8527         PR ipa/65059
8528         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
8529         external functions.
8531 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
8533         * doc/bugreport.texi: Adjust section titles throughout the file
8534         to use "Title Case".
8535         * doc/extend.texi: Likewise.
8536         * doc/gcov.texi: Likewise.
8537         * doc/implement-c.texi: Likewise.
8538         * doc/implement-cxx.texi: Likewise.
8539         * doc/invoke.texi: Likewise.
8540         * doc/objc.texi: Likewise.
8541         * doc/standards.texi: Likewise.
8542         * doc/trouble.texi: Likewise.
8544 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
8546         * cgraph.h (symtab_node::has_aliases_p): Simplify.
8547         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
8548         * tree.c (lookup_binfo_at_offset): Make static.
8549         (get_binfo_at_offset): Do not shadow offset; add explanatory
8550         comment.
8552 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
8554         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
8555         for all floading point loads and stores except those using a register
8556         index address.
8557         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
8558         to a register.
8560 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
8562         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
8563         (do_estimate_growth_1): Record if any uninlinable edge was seen.
8564         (estimate_growth): Handle uninlinable edges correctly.
8565         (check_callers): New.
8566         (growth_likely_positive): Handle aliases correctly.
8568 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
8570         * ipa-chkp.c: Use iterate_direct_aliases.
8571         * symtab.c (resolution_used_from_other_file_p): Move inline.
8572         (symtab_node::create_reference): Fix formating.
8573         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8574         (symtab_node::iterate_reference): Move inline.
8575         (symtab_node::iterate_referring): Move inline.
8576         (symtab_node::iterate_direct_aliases): Move inline.
8577         (symtab_node::used_from_object_file_p_worker): Inline into ...
8578         (symtab_node::used_from_object_file_p): ... this one; move inline.
8579         (symtab_node::call_for_symbol_and_aliases): Move inline;
8580         use iterate_direct_aliases.
8581         (symtab_node::call_for_symbol_and_aliases_1): New method.
8582         (cgraph_node::call_for_symbol_and_aliases): Move inline;
8583         use iterate_direct_aliases.
8584         (cgraph_node::call_for_symbol_and_aliases_1): New method.
8585         (varpool_node::call_for_node_and_aliases): Rename to ...
8586         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
8587         use iterate_direct_aliases.
8588         (varpool_node::call_for_symbol_and_aliases_1): New method.
8589         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
8590         (ipa_discover_readonly_nonaddressable_var): Update.
8591         * ipa-devirt.c: Fix formating.
8592         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
8593         Move inline.
8594         (cgraph_node::call_for_symbol_and_aliases): Move inline.
8595         (cgraph_node::call_for_symbol_and_aliases_1): New function..
8596         * cgraph.h (used_from_object_file_p_worker): Remove.
8597         (resolution_used_from_other_file_p): Move inline.
8598         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8599         (symtab_node::iterate_reference): Move inline.
8600         (symtab_node::iterate_referring): Move inline.
8601         (symtab_node::iterate_direct_aliases): Move inline.
8602         (symtab_node::used_from_object_file_p_worker): Inline into ...
8603         (symtab_node::used_from_object_file_p): Move inline.
8604         * tree-emutls.c (ipa_lower_emutls): Update.
8605         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
8606         (varpool_node::call_for_node_and_aliases): Remove.
8608 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
8610         PR tree-optimization/62209
8611         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
8612         op == range->exp, insert seq and gimplified code after labels
8613         instead of after the phi.
8615 2015-02-13  Jeff Law  <law@redhat.com>
8617         PR bootstrap/65060
8618         Revert my change for tree-optimization/64823.
8620 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
8622         PR tree-optimization/65053
8623         * tree-ssa-phiopt.c (value_replacement): When moving assign before
8624         cond, either reset VR on lhs or set it to phi result VR.
8626 2015-02-13  Jeff Law  <law@redhat.com>
8628         PR tree-optimization/64823
8629         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
8630         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8631         threading through blocks with PHIs, but no statements.
8632         (thread_through_normal_block): Distinguish between blocks where
8633         we did not process all the statements and blocks with no statements.
8635         PR rtl-optimization/47477
8636         * match.pd (convert (plus/minus (convert @0) (convert @1): New
8637         simplifier to narrow arithmetic.
8639 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
8641         PR ipa/65028
8642         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
8643         polymorphic call info when type is not known to be preserved.
8645 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
8647         PR ipa/65028
8648         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
8649         (inline_call): Use it.
8651 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
8653         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
8654         GOMP_DEVICE_NVIDIA_PTX.
8656 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
8658         PR ipa/65034
8659         * stmt.c (emit_case_nodes): Use void_type_node instead of
8660         NULL_TREE as LABEL_DECL type.
8662 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
8664         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
8665         constraints.
8666         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
8667         symbolic references to data to be forced to constant memory on the
8668         SOM target.
8670 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8672         PR tree-optimization/65002
8673         * tree-cfg.c (pass_data_fixup_cfg): Don't update
8674         SSA on start.
8675         * tree-sra.c (some_callers_have_no_vuse_p): New.
8676         (ipa_early_sra): Reject functions whose callers
8677         assume function is read only.
8679 2015-02-13  Richard Biener  <rguenther@suse.de>
8681         PR lto/65015
8682         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
8683         for LTO produced CUs.
8685 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
8687         PR tree-optimization/64705
8688         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
8689         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
8690         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
8691         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
8692         expand_simple_operations.
8694 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
8695             Richard Henderson  <rth@redhat.com>
8697         PR rtl/32219
8698         * cgraphunit.c (cgraph_node::finalize_function): Set definition
8699         before notice_global_symbol.
8700         (varpool_node::finalize_decl): Likewise.
8701         * varasm.c (default_binds_local_p_2): Rename from
8702         default_binds_local_p_1, add weak_dominate argument.  Use direct
8703         returns instead of assigning to local variable.  Unify varpool and
8704         cgraph paths via symtab_node.  Reject undef weak variables before
8705         testing visibility.  Reorder tests for simplicity.
8706         (default_binds_local_p): Use default_binds_local_p_2.
8707         (default_binds_local_p_1): Likewise.
8708         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
8709         via symtab_node.
8710         (default_elf_asm_output_external): Emit visibility when specified.
8712 2015-02-13  Alan Modra  <amodra@gmail.com>
8714         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
8715         code setting up r11 for out-of-line fp restore.
8717 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
8719         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
8720         (muser-mode): Likewise.
8722 2015-02-13  Alan Modra  <amodra@gmail.com>
8724         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
8725         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
8727 2015-02-12  David Howells  <dhowells@redhat.com>
8729         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
8730         warning.
8731         * tree-ssa-uninit.c (dump_predicates): Likewise.
8732         * opts.c (print_filtered_help): Likewise.
8734 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
8736         * dwarf2out.c (output_die): Use "%s", name instead of name to
8737         avoid -Wformat-security warning.
8739         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
8740         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
8741         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
8742         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
8744 2015-02-12  Jason Merrill  <jason@redhat.com>
8746         * common.opt (-flifetime-dse): New.
8748 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
8750         PR sanitizer/65019
8751         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
8753         PR tree-optimization/65014
8754         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
8755         use original second operand of arg0 or arg1 instead of
8756         that adjusted by STRIP_NOPS.
8758 2015-02-11  Jeff Law  <law@redhat.com>
8760         PR target/63347
8761         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
8762         that needs to be queued, just queue it for a single cycle.
8764 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
8766         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
8767         bodies of thunks; comment on why.
8768         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
8769         symbols are extern.
8771 2015-02-11  Richard Henderson  <rth@redhat.com>
8773         PR sanitize/65000
8774         * tree-eh.c (mark_reachable_handlers): Mark source and destination
8775         regions of __builtin_eh_copy_values.
8777 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
8779         PR middle-end/65003
8780         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
8781         ultimate alias is MEM with SYMBOL_REF satisfying
8782         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
8783         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
8785 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
8787         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
8788         "diagnostic-core.h".
8789         (main): Initialize progname, and call diagnostic_initialize.
8791         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
8792         instead of __OPENMP_TARGET__.
8794         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
8795         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
8796         hard-coding PTX_ID.
8798 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
8800         * doc/sourcebuild.texi (pie_enabled): Document.
8802 2015-02-11  Martin Liska  <mliska@suse.cz>
8804         PR ipa/64813
8805         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
8806         a return value for call to a function that is noreturn.
8808 2015-02-11  Richard Biener  <rguenther@suse.de>
8810         PR lto/65015
8811         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
8812         and -fresolution.
8814 2015-02-11  Andrew Pinski  <apinski@cavium.com>
8816         PR target/64893
8817         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8818         Change the first argument type to size_type_node and add another
8819         size_type_node.
8820         (aarch64_simd_expand_builtin): Handle the new argument to
8821         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
8822         print an out when the first two arguments are not
8823         nonzero integer constants.
8824         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
8825         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
8827 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
8829         PR target/61925
8830         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
8831         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
8832         (ix86_set_current_function): Rewritten.
8833         (ix86_add_new_builtins): Temporarily clear current_target_pragma
8834         when creating builtin fndecls.
8836 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
8838         PR ipa/65005
8839         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
8840         function.
8841         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
8842         have no comdat group.
8843         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
8844         (lto_output_varpool_node): Always output alias info.
8845         (output_refs): Output refs of boundary aliases, too.
8846         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
8847         (output_symtab): Output call eges in thunks in boundary.
8848         (get_alias_symbol): Remove.
8849         (input_node, input_varpool_node): Do not special case weakrefs.
8850         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
8851         alias and thunks targets in the boundary; do not take removed symbols
8852         from their comdat groups.
8853         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
8854         (cgraph_node::global_info): Remove.
8855         (cgraph_node::rtl_info): Look through aliases and thunks.
8856         * cgrpah.h (global_info): Remove.
8857         (non_local_p): Remove.
8859 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
8860             Sandra Loosemore  <sandra@codesourcery.com>
8862         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
8863         to inline asm.  List dialects in proper order.
8865 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
8866             Sandra Loosemore  <sandra@codesourcery.com>
8868         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
8870 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
8872         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
8873         modified) reference to Solaris.
8875 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
8877         * doc/extend.texi (Extended Asm): Fix typos.
8879 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
8881         PR sanitizer/65004
8882         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
8884 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
8886         PR target/64661
8887         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
8888         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
8889         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
8890         * config/sh/constraints.md (Ara, Add): New constraints.
8891         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
8892         predicates.
8893         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
8894         atomic_mem_operand_0.  Don't use force_reg on the memory address.
8895         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
8896         Sra constraint.  Convert to insn_and_split.  Add workaround for
8897         PR 64974.
8898         (atomic_compare_and_swap<mode>_hard): Copy to
8899         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
8900         Use atomic_mem_operand_0 predicate.
8901         (atomic_compare_and_swap<mode>_soft_gusa,
8902         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
8903         AraAdd constraints.
8904         (atomic_compare_and_swap<mode>_soft_tcb,
8905         atomic_compare_and_swap<mode>_soft_imask,
8906         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
8907         atomic_mem_operand_0 predicate and SraSdd constraints.
8908         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
8909         constraint.
8910         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
8911         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
8912         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
8913         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
8914         force_reg on the memory address.
8915         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
8916         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
8917         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
8918         atomic_mem_operand_1 predicate and Sra constraint.
8919         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
8920         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
8921         Use atomic_mem_operand_1 predicate.
8922         (atomic_<fetchop_name><mode>_hard): Copy to
8923         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
8924         Use atomic_mem_operand_1 predicate.
8925         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
8926         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
8927         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
8928         insn_and_split.  Use atomic_mem_operand_1 predicate.
8929         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
8930         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
8931         Use atomic_mem_operand_1 predicate.
8932         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
8933         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
8934         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
8935         in generated insn with original mem operand before emitting the insn.
8936         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
8937         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
8938         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
8939         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
8940         Use atomic_mem_operand_1 predicate and AraAdd constraints.
8941         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
8942         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
8943         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
8944         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
8945         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
8946         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
8947         atomic_not_fetch<mode>_soft_tcb,
8948         atomic_<fetchop_name>_fetch<mode>_soft_imask,
8949         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
8950         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
8951         Use atomic_mem_operand_1 predicate and SraSdd constraints.
8953 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
8955         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
8956         and 3 earlyclobber operands.
8958 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
8960         * common.opt (fstack-reuse): Mark as optimization.
8962 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
8964         PR ipa/64982
8965         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
8967 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
8969         PR tree-optimization/64326
8970         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
8972 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
8974         PR gcov-profile/61889
8975         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
8977 2015-02-10  Richard Biener  <rguenther@suse.de>
8979         PR tree-optimization/64995
8980         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
8981         value we use is final.
8982         (visit_reference_op_store): Always valueize op.
8983         (visit_use): Properly valueize vuses.
8985 2015-02-10  Richard Biener  <rguenther@suse.de>
8987         PR tree-optimization/64909
8988         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
8989         pass a scalar-stmt count estimate to the cost model.
8990         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
8992 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
8994         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
8995         enabled by default together with var-tracking.
8997 2015-02-10  Nick Clifton  <nickc@redhat.com>
8999         * config/rl78/rl78.c: Remove DIV attribute code accidentally
9000         included in previous rl78 commit.
9002 2015-02-10  Richard Biener  <rguenther@suse.de>
9004         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
9005         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
9006         return the bitpack.
9008 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
9010         PR gcov-profile/61889
9011         * config.in: regenerate.
9012         * configure.in: Likewise.
9013         * configure.ac: Check for ftw.h.
9014         * gcov-tool.c: Check for ftw.h before using nftw.
9016 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
9018         PR lto/64076
9019         * ipa-visibility.c (update_visibility_by_resolution_info): Only
9020         assert when not in lto mode.
9022 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9024         * ira-color.c (setup_left_conflict_sizes_p): Simplify
9025         initialization/assignment of conflict_size.
9027 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
9029         PR ipa/64978
9030         * ipa-cp.c (gather_caller_stats): Skip thunks.
9031         (propagate_constants_topo): Skip aliases.
9033 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
9035         PR target/64761
9036         * config/sh/sh.c (sh_option_override): Don't change
9037         -freorder-blocks-and-partition to -freorder-blocks even when
9038         unwinding is enabled.
9039         (sh_can_follow_jump): Return false if the followee jump is
9040         a crossing jump when -freorder-blocks-and-partition is specified.
9041         * config/sh/sh.md (*jump_compact_crossing): New insn.
9043 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
9044             Kaz Kojima  <kkojima@gcc.gnu.org>
9046         PR target/64761
9047         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
9048         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
9049         (sh_can_redirect_branch): Rename to ...
9050         (sh_can_follow_jump): ... this.  Constify argument types.
9051         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
9052         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
9053         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
9054         * doc/tm.texi: Regenerate.
9056 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
9058         PR sanitizer/64981
9059         * builtins.c (expand_builtin): Call targetm.expand_builtin
9060         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
9062 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9064         PR ipa/61548
9065         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
9067 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9069         PR ipa/63566
9070         * ipa-icf.c (set_local): New function.
9071         (sem_function::merge): Use it.
9073 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9075         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
9076         (add_type_duplicate): Fix comparison of BINFOs.
9078 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9080         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
9081         on getting VOID pointer.
9083 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
9085         PR target/64979
9086         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
9087         va_list escapes.
9089 2015-02-09  Richard Biener  <rguenther@suse.de>
9091         * genmatch.c (replace_id): Copy expr_type.
9093 2015-02-09  Richard Biener  <rguenther@suse.de>
9095         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
9096         (streamer_write_tree_bitfields): Declare.
9097         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
9098         properly unpack padding.
9099         (unpack_value_fields): Inline ...
9100         (streamer_read_tree_bitfields): ... here.
9101         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
9102         and properly add padding bits.
9103         (streamer_pack_tree_bitfields): Fold into ...
9104         (streamer_write_tree_bitfields): ... this new function,
9105         exposing the bitpack object.
9106         * lto-streamer-out.c (lto_write_tree_1): Call
9107         streamer_write_tree_bitfields.
9109 2015-02-09  Richard Biener  <rguenther@suse.de>
9111         PR tree-optimization/54000
9112         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
9113         (struct ivopts_data): Add loop_loc member.
9114         (tree_ssa_iv_optimize_loop): Dump loop location.
9115         (create_new_ivs): Likewise, also dump number of IVs generated.
9117 2015-02-09  Martin Liska  <mliska@suse.cz>
9119         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
9120         just if not yet registered.
9121         (ipa_icf_generate_summary): Register callgraph hooks.
9123 2015-02-08  Andrew Pinski  <apinski@cavium.com>
9125         * config/aarch64/aarch64.c (gty_dummy): Delete.
9127 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9129         PR ipa/63566
9130         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
9131         (cgraph_node::local_p): Remove thunk related FIXME.
9133 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9135         PR ipa/63566
9136         * i386.c (ix86_function_regparm): Look through aliases to see if callee
9137         is local and optimized.
9138         (ix86_function_sseregparm): Likewise; also use target's SSE math
9139         settings; error out instead of silently generating wrong code
9140         on mismatches.
9141         (init_cumulative_args): Look through aliases.
9143 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9145         PR ipa/63566
9146         * ipa-split.c (execute_split_functions): Split if function has aliases.
9148 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9150         PR ipa/63566
9151         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
9152         aliases before trying to expand it.
9153         (cgraph_node::expand_thunk): Fix formating.
9155 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
9157         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
9158         (Using Assembly Language with C): Expand introduction.
9159         (Basic Asm): Copy-edit.  Add more information about uses of
9160         basic asm.
9161         (Extended Asm): Copy-edit.  Document new escape syntax and
9162         %l[label] syntax.
9163         (Global Reg Vars): Copy-edit.
9164         (Local Reg Vars): Likewise.
9166 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
9168         PR debug/2714
9169         PR bootstrap/64256
9170         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
9171         (DBX_CONTIN_CHAR): Define.
9173 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
9174             Brian Rzycki  <b.rzycki@samsung.com>
9176         PR tree-optimization/64878
9177         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
9178         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
9179         Stop recursion at loop phi nodes after having visited a loop phi node.
9181 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
9183         * toplev.c (process_options): Change flag_ipa_ra before creating
9184         optimization_{default,current}_node.
9186         PR ipa/64896
9187         * cgraphunit.c (cgraph_node::expand_thunk): If
9188         restype is not is_gimple_reg_type nor the thunk_fndecl
9189         returns aggregate_value_p, set restmp to a temporary variable
9190         instead of resdecl.
9192 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
9194         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
9196 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9198         PR target/64205
9199         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
9200         add a general secondary reload handler for SDmode, unless we have
9201         both read/write support for SDmode.
9203 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
9205         PR middle-end/64937
9206         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
9207         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
9208         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
9209         1 before, push it to abstract_vec.
9210         (dwarf2out_abstract_function): Adjust caller.  Don't call
9211         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
9212         DECL_ABSTRACT_P flags for all abstract_vec elts.
9214 2015-02-06  Renlin Li  <renlin.li@arm.com>
9216         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
9217         complex gimple.
9218         * tree-ssa.c (execute_update_addresses_taken): Likewise.
9220 2015-02-06  Jeff Law  <law@redhat.com>
9222         PR target/64889
9223         * config/h8300/h8300.c (push): New argument "in_prologue".
9224         Pass "in_prologue" along to "F".
9225         (h8300_push_pop): Corresponding changes.
9226         (h8300_expand_prologue): Likewise.
9227         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
9229 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
9231         PR rtl-optimization/64957
9232         PR debug/64817
9233         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
9234         IOR rather than for AND.
9236 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
9238         PR target/62631
9239         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
9240         of shift-add and (add + shift) operations.  Rename local variable.
9242 2015-02-05  Jeff Law  <law@redhat.com>
9244         PR target/17306
9245         * config/h8300/constraints.md (U): Correctly dectect
9246         "eightbit_data" memory addresses.
9247         * config/h8300/h8300.c (eightbit_constant_address_p): Also
9248         handle (const (plus (symbol_ref (x)))) where x is declared
9249         as an 8-bit data memory address.
9250         * config/h8300/h8300.md (call, call_value): Correctly detect
9251         "funcvec" functions.
9253         PR target/43264
9254         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
9255         24 to 28 bits for the H8/300.
9257 2015-02-06  Alan Modra  <amodra@gmail.com>
9259         PR target/64876
9260         * config/rs6000/rs6000.c (chain_already_loaded): New function.
9261         (rs6000_call_aix): Use it.
9263 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
9265         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
9266         check.
9268 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
9270         * config/h8300/constraints.md ("U" constraint): Use strict
9271         variant of REG_OK_FOR_BASE_P after reload has started.
9273 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
9275         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
9276         define to zero if !TARGET_NEON.
9277         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
9279 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9280             Trevor Saunders  <tsaunders@mozilla.com>
9282         PR ipa/61548
9283         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
9285 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9287         PR ipa/61548
9288         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
9289         when removing varpool nodes.
9291 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9293         PR ipa/61548
9294         * varpool.c (varpool_node::remove): Fix order of variables.
9296 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9298         PR ipa/64686
9299         * ipa-inline.c (inline_small_functions): Fix ordering issue between
9300         speculation resolution and key updates.
9302 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9304         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
9305         about not letting any speculative edges unupdated.
9307 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9309         PR gcov/64123
9310         * gcov-io.c (gcov_var): Export.
9312 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9314         PR middle-end/64922
9315         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
9316         edges that become speculative.
9318 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
9320         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
9321         or DW_LANG_Fortran08.
9322         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
9323         DW_LANG_Fortran08.
9324         (gen_compile_unit_die): Handle "GNU Fortran2003" and
9325         "GNU Fortran2008" language strings.
9326         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
9327         * langhooks.h (lang_GNU_Fortran): New prototype.
9328         * langhooks.c (lang_GNU_Fortran): New function.
9329         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
9330         lang_GNU_Fortran.
9332 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
9334         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
9335         (RTX_OK_FOR_OLO10_P): Likewise.
9337 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
9339         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
9341 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9343         PR middle-end/64922
9344         * gimple.c: Include gimple-ssa.h.
9345         (maybe_remove_unused_call_args): New function.
9346         * gimple.h (maybe_remove_unused_call_args): Declare.
9347         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
9348         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9349         * gimple-fold.c (gimple_fold_call): Likewise.
9351 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
9353         PR rtl-optimization/64905
9354         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
9355         pointer alignment if it isn't needed.
9357 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
9359         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
9360         cortex-a72.cortex-a53.
9361         * config/aarch64/aarch64-tune.md: Regenerate.
9362         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
9364 2015-02-04  Nick Clifton  <nickc@redhat.com>
9366         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
9367         inside a MEM.
9369 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
9371         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
9372         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
9373         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
9374         of DEF_BUILTIN.
9375         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
9376         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
9377         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
9378         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
9379         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
9380         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
9381         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
9382         * tree-core.h (enum built_in_function): In between
9383         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
9384         for builtins that use DEF_BUILTIN_CHKP macro.
9386 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
9388         PR debug/64817
9389         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
9390         operands for tcc_comparison exprs.  Fix typos.
9392         PR debug/64817
9393         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
9394         of two XORs that have an intervening AND or IOR.
9396         PR debug/64817
9397         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
9398         simplification of XOR of AND to not allocate new rtx before
9399         committing to a simplification.
9401 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9403         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
9404         manual swaps in all peepholes.
9406 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9408         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
9409         of manual swapping implementation.
9410         (aarch64_expand_vec_perm_const_1): Likewise.
9412 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
9414         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
9415         (generic_addrcost_table): Remove NAMED_PARAM.
9416         (cortexa57_addrcost_table): Likewise.
9417         (xgene1_addrcost_table): Likewise.
9418         (generic_regmove_table): Likewise.
9419         (cortexa53_regmove_table): Likewise.
9420         (xgene1_regmove_table): Likewise.
9421         (generic_vector_table): Likewise.
9422         (cortexa57_vector_table): Likewise.
9423         (xgene1_vector_table): Likewise.
9424         (generic_tunings): Likewise.
9425         (cortexa53_tunings): Likewise.
9426         (cortexa57_tunings): Likewise.
9427         (xgene1_tunings): Likewise.
9429 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
9431         * config/arm/arm-cores.def: Add cortex-a72 and
9432         cortex-a72.cortex-a53.
9433         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
9434         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
9435         * config/arm/arm-tune.md: Regenerate.
9436         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
9437         "cortex-a72.cortex-a53".
9438         * doc/invoke.texi (ARM Options/-mtune): Likewise.
9440 2015-02-04  Nick Clifton  <nickc@redhat.com>
9442         PR target/64408
9443         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
9444         of accepted codes.
9445         (nonimmediate_di_operand): Likewise.
9447         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
9448         prefixes of known F5 using MSP430 MCUs.
9450 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9452         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
9453         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
9454         instead of __builtin_sqrt.
9456 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
9458         * varasm.c (do_assemble_alias): Follow transparent alias
9459         chain for target.
9460         (default_assemble_visibility): Follow transparent alias
9461         chain for decl name.
9463 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9465         PR middle-end/62103
9466         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
9467         to compute size of referenced value in the constant case.
9469 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
9471         PR rtl-optimization/64756
9472         * cse.c (invalidate_dest): New function.
9473         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
9474         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
9475         invalidate and do not record it.
9477 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
9479         PR target/64660
9480         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
9481         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
9482         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
9483         atomic_nand<mode>_soft_tcb): New insns.
9484         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
9485         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
9486         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
9487         Split into atomic_not_fetchsi_hard if operands[0] is unused.
9488         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
9489         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9490         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
9491         atomic_not<mode>_hard if operands[0] is unused.
9492         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
9493         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
9494         if operands[0] is unused.
9495         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
9496         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
9497         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
9498         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9499         unused.
9500         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
9501         into atomic_not<mode>_soft_tcb if operands[0] is unused.
9502         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
9503         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
9504         if operands[0] is unused.
9505         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
9506         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
9507         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
9508         atomic_nand_fetchsi_hard if operands[0] is unused.
9509         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
9510         atomic_nand<mode>_hard if operands[0] is unused.
9511         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
9512         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
9513         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
9514         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9515         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
9516         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
9517         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
9518         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9519         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
9520         atomic_not<mode>_hard if operands[0] is unused.
9521         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
9522         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9523         unused.
9524         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
9525         into atomic_not<mode>_soft_tcb if operands[0] is unused.
9526         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
9527         atomic_nand<mode>_hard if operands[0] is unused.
9528         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
9529         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9531 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
9533         PR jit/64810
9534         * Makefile.in (GCC_OBJS): Add gcc-main.o.
9535         * gcc-main.c: New file, containing "main" taken from gcc.c.
9536         * gcc.c (do_self_spec): Free decoded_options.
9537         (class driver): Move declaration to gcc.h.
9538         (main): Move declaration and implementation to new file
9539         gcc-main.c.
9540         (driver_get_configure_time_options): New function.
9541         * gcc.h (class driver): Move this declaration here, from
9542         gcc.c.
9543         (driver_get_configure_time_options): New declaration.
9545 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
9547         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
9548         cross-module inlining.
9549         * cgraph.h (cgraph_node): Add flag merged.
9550         * ipa-icf.c (sem_function::merge): Maintain it.
9552 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
9554         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
9555         instead of OBJECT_P.
9557 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
9559         PR target/62631
9560         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
9561         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
9562         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
9563         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
9565 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
9567         PR other/63504
9568         * combine.c (reg_n_sets_max): New variable.
9569         (can_change_dest_mode, reg_nonzero_bits_for_combine,
9570         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
9571         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
9572         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
9573         (rest_of_handle_combine): Initialize reg_n_sets_max.
9575 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
9577         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
9578         if some always_inline was inlined, apply changes before inlining
9579         heuristically.
9581 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
9583         PR jit/64810
9584         * config/arm/arm.c (arm_option_override): Set
9585         arm_selected_arch/cpu/tune to NULL on entry.
9587 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
9588             Andrew Pinski  <pinskia@gcc.gnu.org>
9589             Jakub Jelinek  <jakub@gcc.gnu.org>
9591         PR target/64231
9592         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
9593         integer typing for small model. Use IN_RANGE.
9595 2015-02-02  Richard Biener  <rguenther@suse.de>
9597         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
9598         * tree-vrp.c (vrp_valueize_1): Likewise.
9600 2015-02-02  Alan Modra  <amodra@gmail.com>
9602         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
9603         than mem for toc_restore.
9604         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
9605         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
9606         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
9608 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
9610         PR target/64047
9611         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
9612         explicit default options.
9614 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
9616         PR ipa/64872
9617         * ipa-utils.c (ipa_merge_profiles): Add release argument.
9618         * ipa-icf.c (sem_function::merge): Do not release body when merging.
9619         * ipa-utils.h (ipa_merge_profiles): Update prototype.
9621 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
9623         PR debug/64817
9624         * cfgexpand.c (deep_ter_debug_map): New variable.
9625         (avoid_deep_ter_for_debug): New function.
9626         (expand_debug_expr): If TERed SSA_NAME is in
9627         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
9628         instead of trying to expand SSA_NAME's def stmt.
9629         (expand_debug_locations): When expanding debug bind
9630         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
9631         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
9632         value.
9633         (pass_expand::execute): Call avoid_deep_ter_for_debug on
9634         all debug bind stmts.  Delete deep_ter_debug_map after
9635         expand_debug_location if non-NULL and clear it.
9637 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
9639         PR target/64851
9640         * config/sh/sync.md (atomic_fetch_notsi_hard,
9641         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
9642         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
9643         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
9644         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
9645         atomic_not_fetch<mode>_soft_imask): New insns.
9647 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9649         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
9650         (rank_for_schedule_debug): Split from ...
9651         (rank_for_schedule): ... this.
9652         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
9653         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
9655 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
9657         * doc/md.texi (Machine Constraints): Alphabetize table by target.
9658         * doc/extend.texi (x86 Variable Attributes): Move section to
9659         correct alphabetization after renaming.
9660         (x86 Type Attributes): Likewise.
9661         (Target Builtins): Re-alphabetize menu.
9662         (x86 Built-in Functions): Move section to correct alphabetization
9663         after renaming.
9664         (x86 transactional memory intrinsics): Likewise.
9665         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
9666         and x86 Windows Options in table and menu.
9667         (x86 Options): Move section to correct alphabetization after
9668         renaming.
9669         (x86 Windows Options): Likewise.
9671 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
9673         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
9674         preferred names of the architecture and its 32- and 64-bit
9675         variants.
9676         * doc/invoke.texi: Likewise.
9677         * doc/md.texi: Likewise.
9679 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
9681         PR target/64882
9682         * config/i386/predicates.md (address_no_seg_operand): Reject
9683         non-CONST_INT_P operands in invalid mode.
9685 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
9687         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
9688         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
9689         * config/i386/predicates.md (address_no_seg_operand): Call
9690         address_operand with VOIDmode.
9691         (vsib_address_operand): Ditto.
9692         (address_mpx_no_base_operand): Ditto.
9693         (address_mpx_no_index_operand): Ditto.
9695 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
9697         PR target/64688
9698         * lra-constraints.c (original_subreg_reg_mode): New.
9699         (simplify_operand_subreg): Try to simplify subreg of const.  Use
9700         original_subreg_reg_mode for it.
9701         (swap_operands): Update original_subreg_reg_mode.
9702         (curr_insn_transform): Set up original_subreg_reg_mode.
9704 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
9706         PR target/64617
9707         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
9708         function.
9709         (process_alt_operands): Use it.
9710         (curr_insn_transform): Check the optional reload pseudo class is
9711         ok for the mode.
9713 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
9715         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
9716         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
9717         prototype.
9718         * toplev.h (init_asm_output): Update comment on use of
9719         UNKNOWN_LOCATION with fatal_error.
9720         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
9721         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
9722         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
9723         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
9724         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
9725         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
9726         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
9727         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
9728         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
9729         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
9730         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
9731         fatal_error changed to pass input_location as first argument.
9733 2015-01-30  Martin Liska  <mliska@suse.cz>
9735         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
9736         in #pragma GCC diagnostic guards.
9738 2015-01-30  Richard Biener  <rguenther@suse.de>
9740         PR tree-optimization/64829
9741         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
9742         not add a widening conversion pattern but hand off extra
9743         widenings to callers.
9744         (vect_recog_widen_mult_pattern): Handle extra widening produced
9745         by vect_handle_widen_op_by_const.
9746         (vect_recog_widen_shift_pattern): Likewise.
9747         (vect_pattern_recog_1): Remove excess vertical space in dumping.
9748         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9749         (vect_init_vector_1): Likewise.
9750         (vect_get_vec_def_for_operand): Likewise.
9751         (vect_finish_stmt_generation): Likewise.
9752         (vectorizable_load): Likewise.
9753         (vect_analyze_stmt): Likewise.
9754         (vect_is_simple_use): Likewise.
9756 2015-01-29  Jeff Law  <law@redhat.com>
9758         * combine.c (try_combine): Fix typo in comment.
9760 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
9762         PR target/64580
9763         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
9764         (rs6000_stack_info): Add assert.
9765         (rs6000_output_savres_externs): New function, split off from...
9766         (rs6000_output_function_prologue): ... here.  Do not call it for
9767         thunks.
9769 2015-01-29  Jeff Law  <law@redhat.com>
9771         PR target/15184
9772         * combine.c (try_combine): If I0 is a memory load and I3 a store
9773         to a related address, increase the "goodness" of doing a 4-insn
9774         combination with I0-I3.
9775         (make_field_assignment): Handle SUBREGs in the ior+and case.
9777 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
9779         PR tree-optimization/64746
9780         * tree-if-conv.c (mask_exists): New function.
9781         (predicate_mem_writes): Save created mask with given size for further
9782         use.
9783         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
9784         (ifcvt_repair_bool_pattern): Collect all statements that are root
9785         of bool pattern and use iterative algorithm to remove multiple uses
9786         of predicates, display number of required iterations.
9788 2015-01-29  Richard Biener  <rguenther@suse.de>
9790         PR tree-optimization/64853
9791         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
9792         stmt will get simulated again.
9793         * tree-ssa-ccp.c (valueize_op_1): Likewise.
9795 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9797         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
9798         return_in_pc.  Remove redundant assignments.
9799         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
9800         (arm_expand_epilogue): Don't compare boolean with true in if condition.
9802 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
9804         * config/i386/i386.c (ix86_mode_after): Make static.
9806 2015-01-29  Richard Biener  <rguenther@suse.de>
9808         PR tree-optimization/64844
9809         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
9810         dump cost model analysis.
9811         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9812         Do not register adjusted load/store costs here.
9814 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9815             Uros Bizjak  <ubizjak@gmail.com>
9817         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
9818         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
9819         using x86_use_pseudo_pic_reg.
9820         * config/i386/i386.c (ix86_conditional_register_usage): Remove
9821         support for fixed PIC register.
9822         (ix86_use_pseudo_pic_reg): Not static any more.
9824 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9826         PR middle-end/64805
9827         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
9828         to avoid error in cgraph node verification.
9830 2015-01-29  Marek Polacek  <polacek@redhat.com>
9832         * doc/standards.texi: Reflect that the default for C is gnu11.
9834 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9836         PR target/64761
9837         * reorg.c (switch_text_sections_between_p): New function.
9838         (relax_delay_slots): Call it when testing if the jump insn
9839         is removable.  Use targetm.can_follow_jump when testing if
9840         the conditional branch can follow an unconditional jump.
9842 2015-01-27  Caroline Tice  <cmtice@google.com>
9844         Committing VTV Cywin/Ming patch for Patrick Wollgast
9845         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
9846         if -fvtable-verify=preinit/std is used.
9847         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
9848         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
9849         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
9850         if -fvtable-verify=preinit/std is used.
9851         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
9852         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
9853         if -fvtable-verify=preinit/std is used.
9854         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
9855         * config/i386/mingw32.h (LIB_SPEC): Likewise.
9856         * varasm.c (assemble_variable): Add code to properly set the comdat
9857         section and name for the .vtable_map_vars section in case the
9858         target is PE or COFF.
9860 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
9862         PR ipa/64801
9863         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
9864         make sane BB profile.
9865         (cgraph_node::expand_thunk): Make sane BB profile.
9866         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
9867         * cgraph.h (init_lowered_empty_function): Update prototype.
9868         * config/i386/i386.c (make_resolver_func): Update call.
9869         * predict.c (gate): Disable branch prediction pass if
9870         profile is already there.
9872 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
9874         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
9875         * opth-gen.awk: Likewise.
9876         * common.opt: Mark flag_fp_contract_mode as Optimization.
9878 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9880         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
9881         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
9883 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
9885         PR target/64659
9886         * config/sh/predicates.md (atomic_arith_operand,
9887         atomic_logical_operand): Remove.
9888         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
9889         (atomic_arith_operand_0): New predicate.
9890         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
9891         Use atomic_arith_operand_0 for input values.
9892         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
9893         atomic_compare_and_swap<mode>_soft_gusa,
9894         atomic_compare_and_swap<mode>_soft_tcb,
9895         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
9896         arith_reg_operand instead of register_operand.
9897         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
9898         atomic_arith_operand_0 for newval input.
9899         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
9900         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
9901         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
9902         arith_reg_operand instead of register_operand.
9903         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
9904         fetchop_predicate_1, fetchop_constraint_1_llcs,
9905         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
9906         fetchop_constraint_1_imask): New code iterator attributes.
9907         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
9908         register_operand.  Use fetchop_predicate_1.
9909         (atomic_fetch_<fetchop_name>si_hard,
9910         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
9911         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
9912         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
9913         and arith_reg_operand instead of register_operand.  Use
9914         fetchop_predicate_1, fetchop_constraint_1_gusa.
9915         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
9916         and arith_reg_operand instead of register_operand.  Use
9917         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
9918         to allow R0 usage.
9919         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
9920         and arith_reg_operand instead of register_operand.  Use
9921         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
9922         to allow R0 usage.
9923         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
9924         register_operand.  Use atomic_logical_operand_1.
9925         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
9926         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
9927         arith_reg_operand instead of register_operand.
9928         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
9929         Use arith_reg_dest and arith_reg_operand instead of register_operand.
9930         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
9931         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
9932         register_operand.  Use fetchop_predicate_1.
9933         (atomic_<fetchop_name>_fetchsi_hard,
9934         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
9935         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
9936         fetchop_constraint_1_llcs.
9937         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
9938         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
9939         fetchop_constraint_1_gusa.
9940         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
9941         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
9942         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
9943         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
9944         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
9945         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
9946         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
9947         register_operand.  Use atomic_logical_operand_1.
9948         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
9949         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
9950         arith_reg_operand instead of register_operand.
9951         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
9952         arith_reg_operand instead of register_operand.  Use logical_operand
9953         and K08.  Adjust asm sequence to allow R0 usage.
9954         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
9955         arith_reg_operand instead of register_operand.  Use logical_operand
9956         and K08.
9958 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
9960         PR other/63504
9961         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
9962         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
9963         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
9964         only get_full_len HOST_WIDE_INTs from get_val () array rather than
9965         all bits in *val_wide.
9967 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
9969         * varpool.c (tls_model_names): Fix names.
9970         (varpool_node::dump): Dump tls- prefix for tls models.
9972 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
9973             Bernd Schmidt  <bernds@codesourcery.com>
9974             Nathan Sidwell  <nathan@codesourcery.com>
9976         * config/nvptx/mkoffload.c: New file.
9977         * config/nvptx/t-nvptx: Add build rules for it.
9978         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
9979         (extra_programs): Add mkoffload.
9980         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
9981         function.
9982         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
9984 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
9986         PR middle-end/64809
9987         * cfgexpand.c (reorder_operands): Skip debug gimples.
9989 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
9991         PR tree-optimization/64277
9992         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
9993         range info when possible to refine estimation.
9995 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9997         PR tree-optimization/64718
9998         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
9999         be a 16bit unsigned integer when n->range is 16.
10000         (bswap_replace): Convert src to that type if necessary for all bswap
10001         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
10002         set in pass_optimize_bswap::execute ().
10004 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
10006         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
10007         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
10008         integer and floating point variants.
10009         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
10011 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
10013         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
10014         for all vector modes.
10016 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
10018         PR bootstrap/64612
10019         * doc/sourcebuild.texi (comdat_group): Document.
10021 2015-01-28  Terry Guo  <terry.guo@arm.com>
10023         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
10025 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
10027         * toplev.c (print_version): Add param "show_global_state", and
10028         only print GGC and plugin information if it is true.
10029         (init_asm_output): Pass in "true" for the new param when calling
10030         print_version.
10031         (process_options): Likewise.
10032         (toplev::main): Likewise.
10033         * toplev.h (print_version): Add new param to decl.
10035 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
10037         PR ipa/60871
10038         PR ipa/64139
10039         * tree.c (lookup_binfo_at_offset): New function.
10040         (get_binfo_at_offset): Use it.
10042 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
10044         PR ipa/64282
10045         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
10046         on vtable being vtable.
10048 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10050         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
10051         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
10052         -mhotpatch= option.
10053         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
10054         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
10055         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
10056         Renamed.
10057         (s390_hotpatch_trampoline_halfwords_max): Renamed.
10058         (s390_hotpatch_hw_max): New name.
10059         (s390_hotpatch_trampoline_halfwords): Renamed.
10060         (s390_hotpatch_hw_before_label): New name.
10061         (get_hotpatch_attribute): Removed.
10062         (s390_hotpatch_hw_after_label): New name.
10063         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
10064         attribute.
10065         (s390_attribute_table): Ditto.
10066         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
10067         (s390_function_num_hotpatch_hw): New name.
10068         Remove special handling of inline functions and hotpatching.
10069         Return number of nops before and after the function label.
10070         (s390_can_inline_p): Removed.
10071         (s390_asm_output_function_label): Emit a configurable number of nops
10072         after the function label.
10073         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
10074         (TARGET_CAN_INLINE_P) Removed.
10075         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
10077 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10078             Jiong Wang  <jiong.wang@arm.com>
10080         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
10081         of scratch reg.
10082         (cb<optab><mode>1): Likewise.
10083         * config/aarch64/iterators.md (bcond): New define_code_attr.
10085 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10087         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
10088         memory accesses.
10090 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10092         * config/s390/s390.c (s390_register_move_cost): Increase costs for
10093         FPR->GPR moves.
10095 2015-01-27  Richard Biener  <rguenther@suse.de>
10097         * tree-vrp.c (update_value_range): Intersect the range with
10098         old recorded SSA name range information.
10100 2015-01-27  Nick Clifton  <nickc@redhat.com>
10102         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
10103         BC, DE and HL registers directly, not via AX.
10104         When decrementing the stack pointer by a large amount, transfer SP
10105         into AX and perform the subtraction there.
10106         (rl78_expand_epilogue): Perform the inverse of the above
10107         enhancements.
10109 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10111         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
10113 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
10114             Yury Gribov  <y.gribov@samsung.com>
10116         PR ubsan/64741
10117         * ubsan.c (ubsan_source_location): Refactor code.
10118         (ubsan_type_descriptor): Update type size. Refactor code.
10120 2015-01-27  Richard Biener  <rguenther@suse.de>
10122         PR tree-optimization/56273
10123         PR tree-optimization/59124
10124         PR tree-optimization/64277
10125         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
10126         from the first VRP pass.
10128 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
10130         PR ipa/64776
10131         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
10132         handle the first argument in the same loop as all the other arguments.
10134         PR rtl-optimization/61058
10135         * jump.c (cleanup_barriers): Update basic block boundaries
10136         if BLOCK_FOR_INSN is non-NULL on PREV.
10138 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
10140         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
10141         bounds narrowing, already instrumented calls and calls to
10142         not instrumentable functions.
10144 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
10146         PR tree-optimization/64807
10147         * wide-int.cc (wi::divmod_internal): Clear
10148         b_dividend[dividend_blocks_needed].
10150 2015-01-26  DJ Delorie  <dj@redhat.com>
10152         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
10153         volatile memory references.
10155 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
10157         PR target/49263
10158         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
10159         remove_insn.
10160         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
10161         shifts if it already fits into K08.
10163 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
10165         PR ipa/64730
10166         * ipa-inline.c (inline_small_functions): Print "unknown" even
10167         if edge->call_stmt is non-NULL, but has builtins or unknown
10168         location.
10170         PR middle-end/64421
10171         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
10172         with asterisk, skip the first character.
10174 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
10176         PR target/64806
10177         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
10178         order change.
10180 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
10182         PR target/64795
10183         * config/i386/i386.md (*movdi_internal): Also check operand 0
10184         to determine TYPE_LEA operand.
10185         (*movsi_internal): Ditto.
10187 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
10189         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
10190         OPTION_MASK_QUAD_MEMORY_ATOMIC.
10192 2015-01-26  Renlin Li  <renlin.li@arm.com>
10194         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
10195         the comment.
10196         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
10197         for higher part.
10199 2015-01-26  Richard Biener  <rguenther@suse.de>
10201         PR middle-end/64764
10202         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
10203         combining two BIT_AND_EXPR predicates.
10205 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
10207         PR bootstrap/64754
10208         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
10210 2015-01-26  Terry Guo  <terry.guo@arm.com>
10212         * config/arm/arm.c (arm_file_start): Update the assignment of
10213         Tag_ABI_HardFP_use.
10215 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
10217         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
10218         pipeline model.
10219         config/arm/arm.md: Include the new Cortex-A57 model.
10220         (generic_sched): Don't use generic_sched when tuning for
10221         Cortex-A57.
10223 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
10224             Uros Bizjak  <ubizjak@gmail.com>
10226         * config/i386/i386.c (get_builtin_code_for_version): Add
10227         support for BMI and BMI2 multiversion functions.
10229 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10231         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
10232         (extract_bit_field): Likewise.
10233         (extract_low_bits): Likewise.
10234         (expand_mult): Likewise.
10235         (expand_mult_highpart_adjust): Likewise.
10237 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10239         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
10240         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
10241         * config/i386/i386.c (processor_model): Add
10242         M_INTEL_COREI7_BROADWELL.
10243         (arch_names_table): Add "broadwell".
10245 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
10247         PR target/49263
10248         PR target/53987
10249         PR target/64345
10250         PR target/59533
10251         PR target/52933
10252         PR target/54236
10253         PR target/51244
10254         * config/sh/sh-protos.h
10255         (sh_extending_set_of_reg::can_use_as_unextended_reg,
10256         sh_extending_set_of_reg::use_as_unextended_reg,
10257         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
10258         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
10259         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
10260         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
10261         (sh_treg_insns): New class.
10262         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
10263         (scope_counter): New class.
10264         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
10265         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
10266         sh_extending_set_of_reg::can_use_as_unextended_reg,
10267         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
10268         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
10269         sh_split_treg_set_expr): New functions.
10270         (addsubcosts): Handle treg_set_expr.
10271         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
10272         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
10273         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
10274         (sh_insn_operands_modified_between_p): Make non-static.
10275         * config/sh/predicates.md (zero_extend_movu_operand): Allow
10276         simple_mem_operand in addition to displacement_mem_operand.
10277         (zero_extend_operand): Don't allow zero_extend_movu_operand.
10278         (treg_set_expr, treg_set_expr_not_const01,
10279         arith_reg_or_treg_set_expr): New predicates.
10280         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
10281         arith_or_int_operand instead of logical_operand.  Convert to
10282         insn_and_split.  Try to optimize constant operand in splitter.
10283         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
10284         (*tstqi_t_zero): Delete.
10285         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
10286         (tstsi_t_and_not): Delete.
10287         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
10288         Convert to insn_and_split.
10289         (unnamed split, tstsi_t_zero_extract_xor,
10290         tstsi_t_zero_extract_subreg_xor_little,
10291         tstsi_t_zero_extract_subreg_xor_big): Delete.
10292         (*tstsi_t_shift_mask): New insn_and_split.
10293         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
10294         to recombine with surrounding insns when splitting.
10295         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
10296         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
10297         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
10298         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
10299         (*cbranch_div0s: Delete.
10300         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
10301         Try to recombine with surrounding insns when splitting.  Add operand
10302         order variants.
10303         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
10304         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
10305         *addc_r_r_msb, *addc_2r_msb): Delete.
10306         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
10307         order variant.
10308         (*addc_negreg_t): New insn_and_split.
10309         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
10310         Try to recombine with surrounding insns when splitting.
10311         Add operand order variants.
10312         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
10313         insn_and_split patterns.
10314         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
10315         surrounding insns when splitting.
10316         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
10317         (*rotcl): Likewise.  Add zero_extract variant.
10318         (*ashrsi2_31): New insn_and_split.
10319         (*negc): Convert to insn_and_split.  Use treg_set_expr.
10320         (*zero_extend<mode>si2_disp_mem): Update comment.
10321         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
10322         condition.
10323         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
10324         with surrounding insns when splitting.
10325         (any_treg_expr_to_reg): New insn_and_split.
10326         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
10327         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
10328         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
10329         *zero_extract_2): New single bit zero extract patterns.
10330         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
10331         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
10332         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
10333         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
10334         set destination.
10335         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
10336         register_operand for set source.
10338 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
10340         * i386.opt (prefetch_sse): New targetsave.
10341         * i386.c (ix86_function_specific_save): Save prefetch_sse.
10342         (ix86_function_specific_restore): Restore prefetch_sse and initialize
10343         ix86_cost/ix86_tune_cost.
10345 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
10347         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10348         Support the JIT by using 0 as the language type.
10350 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
10352         PR target/64317
10353         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
10354         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
10355         (mark_regno_live, process_bb_lives): Pass new parameter value to
10356         make_hard_regno_born.
10358 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
10360         PR rtl-optimization/63637
10361         PR rtl-optimization/60663
10362         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
10363         if elt->cost is MAX_COST for ASM_OPERANDS.
10364         (find_sets_in_insn): Fix up comment typo.
10365         (cse_insn): Don't set src_volatile for all non-volatile
10366         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
10367         or with "memory" clobber.  Set elt->cost to MAX_COST
10368         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
10369         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
10371 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
10373         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
10374         alternative 1.
10376 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
10378         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
10379         libgcc/config/i386/elf-lib.h.
10381 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
10383         PR driver/64737
10384         * gcc.c (print_configuration): Don't print a blank line at the end
10385         here...
10386         (run_attempt): ... but here unstead.
10388         PR middle-end/64734
10389         * omp-low.c (scan_sharing_clauses): Don't ignore
10390         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
10391         on target data/update constructs.
10393 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10395         PR target/50928
10396         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
10397         (DEBUG_RELOAD): Removed define.
10398         (m32c_limit_reload_class): Enable traces with if DEBUG0.
10399         (m32c_function_arg): Added a type cast.
10400         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
10401         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
10402         * config/m32c/bitops.md (andqi3_16): Likewise.
10403         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
10404         (push_a01_l): Likewise.
10406 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
10408         PR jit/64721
10409         * main.c (main): Construct toplev instances with init_signals=true.
10410         * toplev.c (general_init): Add param "init_signals", and use it to
10411         conditionalize the calls to signal and host_hooks.extra_signals.
10412         (toplev::toplev): Add param "init_signals".
10413         (toplev::main): When invoking general_init, pass m_init_signals
10414         to control whether signal-handlers are installed.
10415         * toplev.h (toplev::toplev): Add param "init_signals".
10416         (toplev::m_init_signals): New field.
10418 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
10420         PR jit/64722
10421         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
10422         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
10423         latter may be affected by the former (e.g. on i686).
10425 2015-01-23  Martin Liska  <mliska@suse.cz>
10427         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
10428         false positive during profiledbootstrap.
10430 2015-01-23  Tom de Vries  <tom@codesourcery.com>
10432         PR libgomp/64672
10433         * lto-opts.c (lto_write_options): Output non-explicit conservative
10434         -fno-openacc.
10435         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
10436         (append_compiler_options): Pass -fopenacc through.
10438 2015-01-23  Tom de Vries  <tom@codesourcery.com>
10440         PR libgomp/64707
10441         * lto-opts.c (lto_write_options): Output non-explicit conservative
10442         -fno-openmp.
10443         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
10444         (append_compiler_options): Pass -fopenmp through.
10446 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
10448         PR debug/64511
10449         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
10450         GTY markup.
10452         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
10453         * diagnostic.def (DK_ICE_NOBT): New kind.
10454         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
10455         like DK_ICE, but never print backtrace.
10456         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
10457         (internal_error_no_backtrace): New function.
10458         * gcc.c (execute): Use internal_error_no_backtrace instead of
10459         internal_error.
10461 2015-01-22  Jeff Law  <law@redhat.com>
10463         PR target/52076
10464         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
10465         improve code density for small immediate to memory case.
10466         (insv): Better handle bitfield assignments when the field is
10467         being set to all ones.
10468         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
10469         operand predicate.
10471 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10472             Jakub Jelinek  <jakub@redhat.com>
10474         PR middle-end/64729
10475         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
10476         for !TARGET_LIBC_PROVIDES_SSP version and
10477         -fstack-protector-{all,strong,explicit} otherwise.
10478         * config/freebsd.h (LINK_SSP_SPEC): Handle
10479         -fstack-protector-{strong,explicit}.
10481 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
10482             H.J. Lu  <hongjiu.lu@intel.com>
10484         PR ipa/64694
10485         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
10486         heap.
10488 2015-01-22  Wei Mi  <wmi@google.com>
10490         PR rtl-optimization/64557
10491         * dse.c (record_store): Call get_addr for mem_addr.
10492         (check_mem_read_rtx): Likewise.
10494 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10496         * fold-const.c (const_binop): Add early return for non-tcc_binary.
10498 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
10500         * toplev.c (init_local_tick): Process the failure when read
10501         fails for random_seed.
10503         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
10504         'pretty_name' to avoid memory overflow.
10506 2015-01-22  Richard Biener  <rguenther@suse.de>
10508         PR middle-end/64728
10509         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
10510         abnormal coalescing on undefined SSA names.
10512 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
10514         PR target/64688
10515         PR target/64477
10516         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
10517         for alternative 3.
10518         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
10520 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
10522         PR middle-end/63325
10523         * fold-const.c (fold_checksum_tree): Don't include value of
10524         expr->decl_with_vis.symtab_node in the checksum.
10526 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10528         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
10530 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10532         PR driver/64690
10533         * gcc.c (insert_comments): New function.
10534         (try_generate_repro): Call it.
10535         (append_text): Removed.
10537 2015-01-22  Richard Biener  <rguenther@suse.de>
10539         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
10540         with IL incompatible options.  Properly honor user optimize
10541         attributes.
10543 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
10545         PR rtl-optimization/64682
10546         * combine.c (distribute_notes): When moving a death note for
10547         a register that is set in the new I2, make sure to put it
10548         before that new I2.
10550 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
10552         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
10553         not TARGET_DEFAULT.
10555 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
10557         PR debug/64511
10558         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
10559         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
10560         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
10562         PR sanitizer/64706
10563         * doc/invoke.texi (-fsanitize=vptr): Document.
10565         PR rtl-optimization/62078
10566         * dse.c: Include cfgcleanup.h.
10567         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
10568         anything call purge_all_dead_edges and cleanup_cfg at the end
10569         of the pass.
10571 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
10573         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
10574         edges.
10576 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10578         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
10579         decl attribute.
10581 2015-01-21  David Sherwood  <david.sherwood@arm.com>
10582             Tejas Belagod <Tejas.Belagod@arm.com>
10584         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
10585         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
10586         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
10587         Removed.
10589 2015-01-21  David Sherwood  <david.sherwood@arm.com>
10590             Tejas Belagod <Tejas.Belagod@arm.com>
10592         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
10593         (aarch64_reverse_mask): New decls.
10594         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
10595         (insn_count): New mode_attr.
10596         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
10597         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
10598         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
10599         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
10600         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
10601         (aarch64_simd_st4): New patterns.
10602         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
10603         (aarch64_reverse_mask): New functions.
10605 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
10607         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
10608         Declare.
10609         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
10610         addressing modes for BE.
10611         (aarch64_print_operand): Add 'R' specifier.
10612         (aarch64_simd_disambiguate_copy): Delete.
10613         (aarch64_simd_emit_reg_reg_move): New function.
10614         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
10615         in define_splits for structural moves.
10616         (mov<mode>): Use less restrictive predicates.
10617         (*aarch64_mov<mode>): Simplify and only allow for LE.
10618         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
10620 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
10622         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
10624 2015-01-21  Richard Henderson  <rth@redhat.com>
10626         PR target/64669
10627         * ccmp.c (used_in_cond_stmt_p): Remove.
10628         (expand_ccmp_expr): Don't use it.
10630 2015-01-21  Nick Clifton  <nickc@redhat.com>
10632         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
10633         PARALLELs.
10635 2015-01-21  Richard Biener  <rguenther@suse.de>
10637         PR middle-end/64313
10638         * tree-core.h (builtin_info, builtin_info_type): Turn from
10639         an object with two arrays into an array of an object with
10640         decl and two flags, implicit_p and declared_p.
10641         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
10642         set_builtin_decl, set_builtin_decl_implicit_p,
10643         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
10644         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
10645         * builtins.c (builtin_info): Adjust.
10646         * gimplify.c (gimplify_addr_expr): References to builtins
10647         that have been declared by the user makes them eligible for
10648         use by the compiler.  Call set_builtin_decl_implicit_p on them.
10650 2015-01-20  Jeff Law  <law@redhat.com>
10652         PR target/59946
10653         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
10654         allow pc-relative addresses in operand predicates or constraints.
10656 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
10658         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
10659         neon on aarch32 processors for stringops.
10661 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10663         PR ipa/63576
10664         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
10666 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10668         PR lto/45375
10669         * ipa-inline.c: Include lto-streamer.h
10670         (report_inline_failed_reason): Output source file differences and
10671         flags on optimization/target node mismatch.
10672         (can_inline_edge_p): Consider caller to be the outer inline function;
10673         be less restrictive about matching opimize and optimize_size attributes.
10674         (inline_account_function_p): Break out from ...
10675         (inline_small_functions): ... here.
10676         * ipa-inline-transform.c (clone_inlined_nodes): Use
10677         inline_account_function_p.
10678         (inline_call): Use optimize attribution; use inline_account_function_p.
10679         (inline_transform): Use opt_for_fn.
10680         * ipa-inline.h (inline_account_function_p): Declare.
10682 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
10684         PR debug/64663
10685         * dwarf2out.c (decl_piece_node): Don't put bitsize into
10686         mode if bitsize <= 0.
10687         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
10688         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
10689         sizes and positions.
10691 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
10693         * config/nios2/nios2.c (nios2_asm_file_end): Implement
10694         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
10695         needed.
10696         (TARGET_ASM_FILE_END): Define.
10698 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10700         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
10701         (struct tune_params): Use the enum.
10702         * arm.c (arm_*_tune): Update.
10703         (arm_option_override): Update.
10705 2015-01-20  Richard Biener  <rguenther@suse.de>
10707         PR ipa/64684
10708         * ipa-reference.c (add_static_var): Inline ...
10709         (analyze_function): ... here after splitting out from ...
10710         (is_proper_for_analysis): ... this.
10712 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
10714         PR target/64149
10715         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
10716         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
10717         replace the conditional with it's true branch.
10718         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
10719         (arm_lra_p): Remove.
10721 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
10723         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
10725 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10727         * config/tilegx/mul-tables.c: Move symtab.h include after
10728         coretypes.h include.
10729         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
10730         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
10731         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
10732         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
10733         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
10735 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10737         PR bootstrap/64676
10738         Revert:
10739         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
10741         PR rtl-optimization/64081
10742         * loop-iv.c (def_pred_latch_p): New function.
10743         (latch_dominating_def): Allow specific cases with non-single
10744         definitions.
10745         (iv_get_reaching_def): Likewise.
10746         (check_complex_exit_p): New function.
10747         (check_simple_exit): Use check_complex_exit_p to allow certain cases
10748         with exits not executing on any iteration.
10750 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10752         PR lto/45375
10753         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
10754         to set branch cost.
10756 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10758         PR lto/45375
10759         * i386.c (gate): Check flag_expensive_optimizations and
10760         optimize_size.
10761         (ix86_option_override_internal): Drop optimize_size condition
10762         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
10763         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
10764         MASK_PREFER_AVX128.
10765         (ix86_avx256_split_vector_move_misalign,
10766         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
10767         * sse.md (all uses of TARGET_PREFER_AVX128): Add
10768         optimize_insn_for_speed_p check.
10770 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
10772         * config/mips/mips.h (FP_ASM_SPEC): New define.
10773         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
10774         instead.
10776 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
10778         PR target/53988
10779         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
10780         nullptr for insn when reaching the first insn.
10781         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
10782         (sh_insn_operands_modified_between_p): Add nullptr check.
10783         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
10784         sign extending mem load if the insn contains any UNSPEC or
10785         UNSPEC_VOLATILE.
10787 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10789         * params.def (inline-unit-growth): Drop to 15%.
10790         * invoke.texi (inline-unit-growth): Document change.
10792 2015-01-19  Martin Liska  <mliska@suse.cz>
10794         PR ipa/64668
10795         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
10796         function for second argument of OBJ_TYPE_REF.
10798 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10800         PR ipa/64218
10801         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
10802         whether function is an alias.
10804 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10806         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
10807         cases.
10809 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
10811         PR rtl-optimization/64671
10812         * lra-remat.c (operand_to_remat): Don't consider jump and call
10813         insns.
10815 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
10817         PR target/59828
10818         * config/rs6000/default64.h: Include rs6000-cpus.def.
10819         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
10820         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
10821         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
10822         and POWER8.
10823         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
10824         POWER8.
10825         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
10826         pseudo-op to specify assembler dialect.
10828 2015-01-19  Martin Liska  <mliska@suse.cz>
10830         PR ipa/64664
10831         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
10832         Handle safe potentially removed nodes during filtering.
10834 2015-01-19  Martin Liska  <mliska@suse.cz>
10836         * doc/extend.texi (no_icf): Add new attribute description.
10837         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
10838         where the pass attempts to merge a function with no_icf attribute.
10840 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10842         PR target/64532
10843         * doc/md.texi (ARM Options): Document register constraints.
10845 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
10846             Andrew Pinski  <apinski@cavium.com>
10848         PR target/64304
10849         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
10850         (ashl<mode>3): Don't expand if operands[2] is not constant.
10852 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10854         PR target/64448
10855         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
10856         Match xor-and-xor RTL pattern.
10858 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
10860         PR rtl-optimization/64081
10861         * loop-iv.c (def_pred_latch_p): New function.
10862         (latch_dominating_def): Allow specific cases with non-single
10863         definitions.
10864         (iv_get_reaching_def): Likewise.
10865         (check_complex_exit_p): New function.
10866         (check_simple_exit): Use check_complex_exit_p to allow certain cases
10867         with exits not executing on any iteration.
10869 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
10871         * common.opt (fgraphite): Fix a typo.
10873 2015-01-19  Felix Yang  <felix.yang@huawei.com>
10875         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
10876         pattern.
10877         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
10878         uminp, smax_nanp, smin_nanp): New builtins.
10879         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
10880         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
10881         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
10882         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
10883         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
10884         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
10885         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
10886         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
10887         vpminnms_f32): Rewrite using builtin functions.
10889 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
10891         PR libgomp/64625
10892         * omp-low.c (offload_symbol_decl): Remove variable.
10893         (get_offload_symbol_decl): Remove function.
10894         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
10895         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
10896         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
10897         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
10898         BUILT_IN_GOACC_UPDATE don't pass it at all.
10900 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
10902         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
10903         callers.
10905 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
10907         * ipa-chkp.c (chkp_produce_thunks): Add early param
10908         to split thunks production into two passes.  Keep
10909         'always_inline' function bodies after the first pass.
10910         (pass_data_ipa_chkp_early_produce_thunks): New.
10911         (pass_ipa_chkp_early_produce_thunks): New.
10912         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
10913         chkp_produce_thunks signature.
10914         (make_pass_ipa_chkp_early_produce_thunks): New.
10915         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
10916         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
10917         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
10919 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
10921         * cgraph.c (cgraph_node::dump): Dump profile flags.
10923 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
10925         PR target/64652
10926         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
10927         reg appear first in the parallel.
10929 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
10931         * ipa-reference.c (set_reference_optimization_summary,
10932         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
10933         disabled.
10934         (ignore_module_statics): New static var.
10935         (propagate_bits): If ipa-reference is disabled, do not look into local
10936         properties.
10937         (analyze_function): Disable analysis when ipa_reference is disabled.
10938         (generate_summary): Do not dump when reference is disabled;
10939         collect vars accessed from functions with ipa-reference disabled.
10940         (get_read_write_all_from_node): When ipa-reference is disabled, use the
10941         node flags.
10942         (gate): Enable for LTO.
10943         (ignore_edge_p): New function.
10944         (propagate): Skip functions w/o ipa-reference analysis.
10945         * optc-save-gen.awk: Handle optimize_debug correctly.
10946         * opth-gen.awk: Likewise.
10947         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
10948         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
10949         fira-share-save-slots, fira-share-spill-slots,
10950         fmodulo-sched-allow-regmoves, fpartial-inlining,
10951         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
10952         ftracer, ftree-parallelize-loops, fassociative-math,
10953         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
10954         Optimization
10955         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
10956         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
10957         Optimization.
10958         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
10959         Fix for IPA.
10961 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
10963         PR ipa/64378
10964         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
10965         flag correctly.
10966         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
10968 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
10970         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
10971         Remove duplicate option listings.
10973 2015-01-18  Felix Yang  <felix.yang@huawei.com>
10975         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
10976         (autofdo_source_profile::get_callsite_total_count,
10977         function_instance::get_function_instance_by_decl,
10978         string_table::get_index, string_table::get_index_by_decl,
10979         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
10980         Fix comment typos. Reformatting and minor code rearrangement.
10982 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
10984         * config/rs6000/rs6000.md (probe_stack): Delete.
10985         (probe_stack_address): New.
10987 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
10989         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
10990         to test for 32-bit ABIs, not !TARGET_POWERPC64.
10992 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
10994         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
10995         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
10996         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
10997         snafu.
10998         (rs6000_libcall_value): Use the new function.
11000 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
11002         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
11004 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
11006         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
11007         implement a more precise life analysis for it during backward scan.
11009 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11011         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
11013 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
11015         PR rtl-optimization/52773
11016         * calls.c (emit_library_call_value): When pushing arguments use
11017         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
11018         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
11019         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
11021 2015-01-17  Jeff Law  <law@redhat.com>
11023         PR rtl-optimization/32790
11024         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
11025         not ZERO_EXTEND in SET_DESTs.
11027 2015-01-17  Alan Modra  <amodra@gmail.com>
11029         * cprop.c (do_local_cprop): Revert last change.
11031 2015-01-16  DJ Delorie  <dj@redhat.com>
11032             Nick Clifton  <nickc@redhat.com>
11034         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
11035         (addhi3_real): Likewise.  Fix [HL+0] syntax.
11036         (subqi3_real): Likewise.
11037         (subhi3_real): Likewise.
11038         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
11039         (cbranchhi4_real): Likewise.
11040         (cbranchhi4_real_inverted): Likewise.
11041         (cbranchsi4_real_lt): Likewise.
11042         (cbranchsi4_real_ge): Likewise.
11043         (cbranchsi4_real_ge): Likewise.
11044         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
11045         (sub<mode>3_virt): Likewise.
11046         (cbranchqi4_virt): Likewise.
11047         (cbranchhi4_virt): Likewise.
11048         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
11049         always use '[reg+imm]' even when imm is zero.
11050         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
11051         (rl78_general_operand): New.
11052         (rl78_nonimmediate_operand): New.
11053         (rl78_nonfar_operand): Use them.
11054         (rl78_nonfar_nonimm_operand): Likewise.
11055         (rl78_stack_based_mem): Fix.
11056         * config/rl78/constraints.md (Ibqi): New.
11057         (IBqi): New.
11058         (Wsa): New.
11059         (Wsf): New.
11060         (Cs1): Fix.
11061         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
11062         (iorqi3): Likewise.
11063         (xorqi3): Likewise.
11064         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
11066         * config/rl78/constrains (Qs8): New constraint.
11067         * config/rl78/rl78.c (rl78_flags_already_set): New function.
11068         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
11069         * config/rl78/rl78-real.md (update_Z): New attribute.
11070         Update patterns to set it.
11071         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
11072         shorter compare and branch sequence can be used.
11073         (cbranchhi4_real): Likewise.
11074         (cbranchhi4_real_inverted): Likewise.
11076         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
11077         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
11078         address space.
11079         * config/rl78/rl78.c (rl78_get_name_encoding): New.
11080         (rl78_option_override): Allow -mes0 only if C.
11081         (characterize_address): Support subregs of symbol_refs.
11082         (rl78_addr_space_address_mode): Move.  Add __near.
11083         (rl78_far_p): Likewise.
11084         (rl78_addr_space_pointer_mode): Likewise.
11085         (rl78_as_legitimate_address): Likewise.
11086         (rl78_addr_space_subset_p): Likewise.
11087         (rl78_addr_space_convert): Likewise.
11088         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
11089         symbols with -mes0.
11090         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
11091         addressing.
11092         (rl78_alloc_physical_registers_op1): Change logic to prefer
11093         symbol[BC] addressing.
11094         (frodata_section): New.
11095         (rl78_asm_init_sections): Initialize it.
11096         (rl78_select_section): Put __far readonly symbols in .frodata.
11097         (rl78_make_type_far): New.
11098         (rl78_insert_attributes): Force all readonly symbols to be
11099         __far when -mes0.
11100         (rl78_asm_out_integer): New.
11101         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
11102         * config/rl78/rl78.opt (-mes0): New.
11104         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
11105         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
11106         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11107         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
11108         (rl78_saddr_p): New.
11109         (rl78_output_aligned_common): New.
11110         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
11111         (rl78_handle_saddr_attribute): New.
11112         (rl78_handle_naked_attribute): New.
11113         (rl78_attribute_table): Add saddr.
11114         (rl78_print_operand_1): Don't print '!' on saddr operands.
11115         (rl78_print_operand_1): Strip encodings.
11116         (rl78_sfr_p): New.
11117         (rl78_strip_name_encoding): New.
11118         (rl78_attrlist_to_encoding): New.
11119         (rl78_encode_section_info): New.
11120         (rl78_asm_init_sections): New.
11121         (rl78_select_section): New.
11122         (rl78_output_labelref): New.
11123         (rl78_output_aligned_common): New.
11124         (rl78_asm_out_integer): New.
11125         (rl78_asm_ctor_dtor): New.
11126         (rl78_asm_constructor): New.
11127         (rl78_asm_destructor): New.
11129         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
11130         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
11131         (transcode_memory_rtx): Update.
11132         (rl78_expand_epilogue): Use A_REG instead of 0.
11134 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11136         * config/arm/arm-protos.h (struct tune_params): New field
11137         sched_autopref_queue_depth.
11138         * config/arm/arm.c (sched-int.h): Include header.
11139         (arm_first_cycle_multipass_dfa_lookahead_guard,)
11140         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
11141         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
11142         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
11143         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
11144         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
11145         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
11146         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
11147         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
11148         * config/arm/t-arm (arm.o): Update.
11149         * haifa-sched.c (update_insn_after_change): Update.
11150         (rank_for_schedule): Use auto-prefetcher model, if requested.
11151         (autopref_multipass_init): New static function.
11152         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
11153         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
11154         variable for debug dumps.
11155         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
11156         (autopref_multipass_dfa_lookahead_guard): New global function that
11157         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
11158         (init_h_i_d): Update.
11159         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
11160         * sched-int.h (enum autopref_multipass_data_status): New const enum.
11161         (autopref_multipass_data_): Structure for auto-prefetcher data.
11162         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
11163         (struct _haifa_insn_data:autopref_multipass_data): New field.
11164         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
11165         (autopref_multipass_dfa_lookahead_guard): Declare.
11167 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11169         * rtlanal.c (get_base_term): Handle SCRATCH.
11171 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11173         * config/aarch64/aarch64.c
11174         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
11175         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11176         * config/arm/arm.c
11177         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
11178         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11180 2015-01-17  Alan Modra  <amodra@gmail.com>
11182         * cprop.c (do_local_cprop): Disallow replacement of fixed
11183         hard registers.
11185 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11187         PR target/62066
11188         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
11189         early return 0.
11191 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11193         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
11194         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
11196 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11198         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
11199         * config/arm/thumb1.md: ... Here.
11201 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11203         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
11204         TImode for TARGET_32BIT.
11206 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11208         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
11209         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
11210         as ...
11211         (rs6000_abi_word_mode): New function.
11213 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11215         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
11216         instead of UNITS_PER_WORD to describe the size of stack slots.
11218 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11220         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
11221         as rs6000_promote_function_mode.  Move comment to there.
11222         (rs6000_promote_function_mode): New function.
11224 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11226         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
11227         -mpowerpc64 is active.
11229 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
11231         PR middle-end/64353
11232         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
11233         virtuals on start.
11235 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
11237         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
11238         introduced in revision 219724.
11240 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11241             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11243         PR target/64263
11244         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
11245         destination is not a GP reg.
11246         (*movdi_aarch64): Likewise.
11248 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
11250         PR target/64623
11251         * config/rs6000/default64.h: Revert ISA change.
11253 2015-01-16  Richard Biener  <rguenther@suse.de>
11255         PR middle-end/64614
11256         * tree-ssa-uninit.c: Include tree-cfg.h.
11257         (MAX_SWITCH_CASES): New define.
11258         (convert_control_dep_chain_into_preds): Handle switch statements.
11259         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
11260         (normalize_one_pred_1): Do not split bit-manipulations.
11261         Record (x & CST).
11263 2015-01-16  Richard Biener  <rguenther@suse.de>
11265         PR tree-optimization/64568
11266         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
11267         complex load rewriting for TARGET_MEM_REFs.
11269 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
11271         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
11273 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
11275         PR target/64149
11276         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
11277         variable.
11278         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
11279         (aarch64_lra_p): Remove.
11281 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
11283         PR target/64363
11284         * ipa-chkp.h (chkp_instrumentable_p): New.
11285         * ipa-chkp.c: Include tree-inline.h.
11286         (chkp_instrumentable_p): New.
11287         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
11288         Fix processing of not instrumentable functions.
11289         (chkp_versioning): Use chkp_instrumentable_p. Warn about
11290         not instrumentable functions.
11291         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
11292         chkp_instrumentable_p.
11293         * tree-inline.h (copy_forbidden): New.
11294         * tree-inline.c (copy_forbidden): Not static anymore.
11296 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11298         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
11299         ptr1, ptr2 unused.
11301 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
11303         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
11304         type OP_OUT to OP_INOUT.
11306 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
11308         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
11309         (high x) y) to y if x and y have the same base.
11311 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
11313         * config/arm/cortex-a57.md: New.
11314         * config/aarch64/aarch64.md: Include it.
11315         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
11316         * config/aarch64/aarch64-tune.md: Regenerate.
11318 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11320         PR target/64015
11321         * ccmp.c (expand_ccmp_next): New function.
11322         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
11323         and compare insn sequence.
11324         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
11325         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
11326         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
11327         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
11328         (*ccmp_ior): Changed to ccmp_ior<mode>.
11329         (cmp<mode>): New pattern.
11330         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
11331         parameters.
11332         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
11334 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
11336         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
11337         _mm256_bsrli_epi128): New.
11338         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
11340 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
11342         * expmed.c (store_bit_field_using_insv): Improve warning message.
11343         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
11345 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
11347         PR rtl-optimization/64011
11348         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
11349         there is partial overflow.
11351 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11353         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
11354         prototype.
11355         (nds32_expand_epilogue_v3pop): Likewise.
11356         * config/nds32/nds32.md (sibcall): Define this for sibling call
11357         optimization.
11358         (sibcall_register): Likewise.
11359         (sibcall_immediate): Likewise.
11360         (sibcall_value): Likewise.
11361         (sibcall_value_register): Likewise.
11362         (sibcall_value_immediate): Likewise.
11363         (sibcall_epilogue): Likewise.
11364         (epilogue): Pass false to indicate this is not a sibcall epilogue.
11365         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
11366         (nds32_expand_epilogue_v3pop): Likewise.
11368 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11370         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
11371         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
11372         (return_internal): New.
11373         (return): Define this named pattern.
11374         (simple_return): Define this named pattern.
11375         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
11376         pattern instead of unspec_volatile_func_return.
11377         (nds32_expand_epilogue_v3pop): Likewise.
11378         (nds32_can_use_return_insn): New function.
11380 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11382         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
11383         * config/nds32/nds32.md (pop25return): New.
11384         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
11385         pop25return pattern.
11387 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11389         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
11390         -mforbid-fp-as-gp, and -mex9 options.
11392 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11394         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
11395         remove -mgp-direct option.
11397 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
11399         * doc/invoke.texi (--param early-inlining-insns): Update default value.
11400         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
11402 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
11404         * ipa-inline.c (inline_small_functions): Work around hints
11405         cache issue.
11407 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
11409         PR target/59710
11410         * doc/invoke.texi (Option Summary): Document new Nios II
11411         -mgpopt= syntax.
11412         (Nios II Options): Likewise.
11413         * config/nios2/nios2.opt: Add -mgpopt= option support.
11414         Modify existing -mgpopt and -mno-gpopt options to be aliases.
11415         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
11416         * config/nios2/nios2.c (nios2_option_override): Adjust
11417         -mgpopt defaulting.
11418         (nios2_in_small_data_p): Return true for explicit small data
11419         sections even with -G0.
11420         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
11421         option choices.
11423 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
11425         PR ipa/64612
11426         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
11427         of comdat locals.
11428         (inline_call): Fix removal of aliases.
11430 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
11432         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
11433         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
11434         * opts.c (common_handle_option): Add -fsanitize=vptr.
11435         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
11436         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
11437         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
11438         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
11439         (ubsan_expand_vptr_ifn): New prototype.
11440         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
11441         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
11442         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
11443         expand_LOOP_VECTORIZED): Make argument nameless, remove
11444         ATTRIBUTE_UNUSED.
11445         (expand_UBSAN_VPTR): New function.
11446         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
11447         in fn spec.
11448         (UBSAN_VPTR): New internal function.
11449         * sanopt.c (tree_map_traits): Renamed to ...
11450         (sanopt_tree_map_traits): ... this.
11451         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
11452         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
11453         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
11454         (maybe_optimize_ubsan_vptr_ifn): New function.
11455         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
11456         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
11457         -fsanitize=vptr.
11458         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
11459         internal calls like pure functions for aliasing, even when they
11460         have other side-effects that prevent making them ECF_PURE.
11461         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
11462         (ubsan_expand_vptr_ifn): New function.
11464 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
11466         PR rtl-optimization/64110
11467         * stmt.c (parse_output_constraint): Process '^' and '$'.
11468         (parse_input_constraint): Ditto.
11469         * lra-constraints.c (process_alt_operands): Process the new
11470         constraints.
11471         * ira-costs.c (record_reg_classes): Process the new constraint
11472         '^'.
11473         * genoutput.c (indep_constraints): Add '^' and '$'.
11474         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
11475         * doc/md.texi: Add description of the new constraints.
11477 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11478             Bernd Schmidt  <bernds@codesourcery.com>
11479             Cesar Philippidis  <cesar@codesourcery.com>
11480             James Norris  <jnorris@codesourcery.com>
11481             Tom de Vries  <tom@codesourcery.com>
11482             Ilmir Usmanov  <i.usmanov@samsung.com>
11483             Dmitry Bocharnikov  <dmitry.b@samsung.com>
11484             Evgeny Gavrin  <e.gavrin@samsung.com>
11485             Jakub Jelinek  <jakub@redhat.com>
11487         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
11488         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
11489         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
11490         New function types.
11491         * builtins.c: Include "gomp-constants.h".
11492         (expand_builtin_acc_on_device): New function.
11493         (expand_builtin, is_inexpensive_builtin): Handle
11494         BUILT_IN_ACC_ON_DEVICE.
11495         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
11496         New macros.
11497         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
11498         flag_openmp.
11499         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
11500         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
11501         i386/intelmic-offload.h.
11502         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
11503         to libgomp and its dependencies.
11504         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
11505         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11506         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11507         * config/ia64/hpux.h (LIB_SPEC): Likewise.
11508         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11509         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11510         * doc/generic.texi: Update for OpenACC changes.
11511         * doc/gimple.texi: Likewise.
11512         * doc/invoke.texi: Likewise.
11513         * doc/sourcebuild.texi: Likewise.
11514         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11515         GF_OMP_FOR_KIND_OACC_LOOP.
11516         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
11517         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
11518         GF_OMP_TARGET_KIND_OACC_UPDATE,
11519         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11520         Dump more data.
11521         * gimple.c: Update comments for OpenACC changes.
11522         * gimple.def: Likewise.
11523         * gimple.h: Likewise.
11524         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
11525         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11526         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
11527         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11528         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
11529         appropriate place.
11530         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
11531         * gimplify.c: Include "gomp-constants.h".
11532         Update comments for OpenACC changes.
11533         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
11534         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
11535         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11536         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11537         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11538         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11539         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
11540         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11541         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11542         OMP_CLAUSE_SEQ.
11543         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
11544         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
11545         OMP_CLAUSE_SET_MAP_KIND.
11546         (gimplify_oacc_cache): New function.
11547         (gimplify_omp_for): Handle OACC_LOOP.
11548         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
11549         OACC_DATA.
11550         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
11551         OACC_EXIT_DATA, OACC_UPDATE.
11552         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
11553         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
11554         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
11555         (gimplify_body): Consider flag_openacc next to flag_openmp.
11556         * lto-streamer-out.c: Include "gomp-constants.h".
11557         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
11558         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
11559         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
11560         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
11561         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
11562         (BUILT_IN_ACC_ON_DEVICE): New builtins.
11563         * omp-low.c: Include "gomp-constants.h".
11564         Update comments for OpenACC changes.
11565         (struct omp_context): Add reduction_map, gwv_below, gwv_this
11566         members.
11567         (extract_omp_for_data, use_pointer_for_field, install_var_field)
11568         (new_omp_context, delete_omp_context, scan_sharing_clauses)
11569         (create_omp_child_function, scan_omp_for, scan_omp_target)
11570         (check_omp_nesting_restrictions, lower_reduction_clauses)
11571         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
11572         Update for OpenACC changes.
11573         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
11574         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
11575         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
11576         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11577         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
11578         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
11579         OMP_CLAUSE_MAP_*.
11580         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11581         Handle GF_OMP_FOR_KIND_OACC_LOOP.
11582         (expand_omp_target, lower_omp_target): Handle
11583         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11584         GF_OMP_TARGET_KIND_OACC_UPDATE,
11585         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
11586         GF_OMP_TARGET_KIND_OACC_DATA.
11587         (pass_expand_omp::execute, execute_lower_omp)
11588         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
11589         flag_openmp.
11590         (offload_symbol_decl): New variable.
11591         (oacc_get_reduction_array_id, oacc_max_threads)
11592         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
11593         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
11594         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
11595         (oacc_gimple_assign, oacc_initialize_reduction_data)
11596         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
11597         functions.
11598         (is_targetreg_ctx): Remove function.
11599         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
11600         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
11601         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11602         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
11603         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
11604         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
11605         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
11606         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
11607         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
11608         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
11609         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
11610         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
11611         * tree-core.h: Update comments for OpenACC changes.
11612         (enum omp_clause_map_kind): Remove.
11613         (struct tree_omp_clause): Change type of map_kind member from enum
11614         omp_clause_map_kind to unsigned char.
11615         * tree-inline.c: Update comments for OpenACC changes.
11616         * tree-nested.c: Likewise.  Include "gomp-constants.h".
11617         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
11618         (convert_tramp_reference_stmt, convert_gimple_call): Update for
11619         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
11620         OMP_CLAUSE_SET_MAP_KIND.
11621         * tree-pretty-print.c: Include "gomp-constants.h".
11622         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
11623         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
11624         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
11625         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
11626         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11627         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
11628         instead of OMP_CLAUSE_MAP_*.
11629         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
11630         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
11631         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11632         * tree-streamer-in.c: Include "gomp-constants.h".
11633         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
11634         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
11635         * tree-streamer-out.c: Include "gomp-constants.h".
11636         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
11637         OMP_CLAUSE_MAP_*.
11638         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
11639         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
11640         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
11641         * tree.c (omp_clause_num_ops): Update accordingly.
11642         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
11643         Likewise.
11644         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
11645         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
11646         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
11647         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
11648         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
11649         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
11650         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
11651         (OMP_CLAUSE_SET_MAP_KIND): New macro.
11652         * varpool.c (varpool_node::get_create): Consider flag_openacc next
11653         to flag_openmp.
11654         * config/i386/intelmic-offload.h: New file.
11655         * config/nvptx/offload.h: Likewise.
11657 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11659         * explow.h: Remove duplicate contents.
11660         * dojump.h: Likewise.
11662 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
11664         * arm.c (arm_xgene_tune): Add default initializer for instruction
11665         fusion.
11667 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
11669         PR ipa/64068
11670         PR ipa/64559
11671         * ipa.c (symbol_table::remove_unreachable_nodes):
11672         Do not put abstract origins into boundary.
11674 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
11676         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
11677         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
11679 2015-01-15  Steve Ellcey  <sellcey@mips.com>
11681         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
11682         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
11683         builtins.def, and chkp-builtins.def.
11685 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
11687         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
11688         ISA 2.7 (POWER8).
11690 2015-01-15  Richard Biener  <rguenther@suse.de>
11692         PR tree-optimization/61743
11693         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
11694         information on PHIs for some simple cases.
11696 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
11698         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
11699         Include xgene1.md.
11700         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
11701         * config/arm/arm-cores.def (xgene1): New entry.
11702         * config/arm/arm-tables.opt: Regenerate.
11703         * config/arm/arm-tune.md: Regenerate.
11704         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
11706 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
11708         * tree-if-conv.c: Include hash-map.h.
11709         (aggressive_if_conv): New variable.
11710         (fold_build_cond_expr): Add simplification of non-zero condition.
11711         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
11712         destination block is not always executed.
11713         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
11714         than two predecessors if AGGRESSIVE_IF_CONV is true.
11715         (if_convertible_stmt_p): Fix commentary.
11716         (all_preds_critical_p): New function.
11717         (has_pred_critical_p): New function.
11718         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
11719         BB can have more than two predecessors and all incoming edges can be
11720         critical.
11721         (predicate_bbs): Skip predication for loop exit block, use build2_loc
11722         to compute predicate for true edge.
11723         (find_phi_replacement_condition): Delete this function.
11724         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
11725         Allow interchange PHI arguments if EXTENDED is false.
11726         Change check that block containing reduction statement candidate
11727         is predecessor of phi-block since phi may have more than two arguments.
11728         (phi_args_hash_traits): New helper structure.
11729         (struct phi_args_hash_traits): New type.
11730         (phi_args_hash_traits::hash): New function.
11731         (phi_args_hash_traits::equal_keys): New function.
11732         (gen_phi_arg_condition): New function.
11733         (predicate_scalar_phi): Add handling of phi nodes with more than two
11734         arguments, delete COND and TRUE_BB arguments, insert body of
11735         find_phi_replacement_condition to predicate ordinary phi nodes.
11736         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
11737         delete call of find_phi_replacement_condition and invoke
11738         predicate_scalar_phi with two arguments.
11739         (insert_gimplified_predicates): Add assert that non-predicated block
11740         don't have statements to insert.
11741         (ifcvt_split_critical_edges): New function.
11742         (ifcvt_split_def_stmt): Likewise.
11743         (ifcvt_walk_pattern_tree): Likewise.
11744         (stmt_is_root_of_bool_pattern): Likewise.
11745         (ifcvt_repair_bool_pattern): Likewise.
11746         (ifcvt_local_dce): Likewise.
11747         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
11748         is copy of inner or outer loop force_vectorize field, invoke
11749         ifcvt_split_critical_edges, ifcvt_local_dce and
11750         ifcvt_repair_bool_pattern for aggressive if-conversion.
11752 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
11754         * config/aarch64/aarch64.md: Include xgene1.md.
11755         * config/aarch64/xgene1.md: New file.
11757 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
11759         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
11760         xgene1 (APM XGene-1) core definition.
11761         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
11762         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
11763         * doc/invoke.texi: Document -mcpu=xgene1.
11765 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11767         * dojump.h: New header file.
11768         * explow.h: Likewise.
11769         * expr.h: Remove includes.
11770         Move expmed.c prototypes to expmed.h.
11771         Move dojump.c prototypes to dojump.h.
11772         Move alias.c prototypes to alias.h.
11773         Move explow.c prototypes to explow.h.
11774         Move calls.c prototypes to calls.h.
11775         Move emit-rtl.c prototypes to emit-rtl.h.
11776         Move varasm.c prototypes to varasm.h.
11777         Move stmt.c prototypes to stmt.h.
11778         (saved_pending_stack_adjust): Move to dojump.h.
11779         (adjust_address): Move to explow.h.
11780         (adjust_address_nv): Move to emit-rtl.h.
11781         (adjust_bitfield_address): Likewise.
11782         (adjust_bitfield_address_size): Likewise.
11783         (adjust_bitfield_address_nv): Likewise.
11784         (adjust_automodify_address_nv): Likewise.
11785         * explow.c (expr_size): Move to expr.c.
11786         (int_expr_size): Likewise.
11787         (tree_expr_size): Likewise.
11788         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11789         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
11790         * genemit.c (main): Generate includes statistics.h, real.h,
11791         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
11792         stmt.h.
11793         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
11794         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
11795         explow.h, emit-rtl.h, stmt.h.
11796         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
11797         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
11798         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
11799         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
11800         emit-rtl.h, varasm.h, stmt.h.
11801         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
11802         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
11803         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
11804         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
11805         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
11806         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
11807         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
11808         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
11809         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
11810         tm.h tree.h varasm.h vec.h wide-int.h.
11811         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11812         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
11813         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
11814         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
11815         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
11816         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
11817         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
11818         * loop-iv.c: Likewise.
11819         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
11820         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
11821         statistics.h stmt.h tree.h varasm.h wide-int.h.
11822         * lra-constraints.c: Likewise.
11823         * lra-eliminations.c: Likewise.
11824         * lra-lives.c: Likewise.
11825         * lra-remat.c: Likewise.
11826         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11827         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
11828         statistics.h stmt.h tree.h varasm.h wide-int.h.
11829         * hw-doloop.c: Likewise.
11830         * ira-color.c: Likewise.
11831         * ira-emit.c: Likewise.
11832         * loop-doloop.c: Likewise.
11833         * loop-invariant.c: Likewise.
11834         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11835         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
11836         statistics.h stmt.h tree.h varasm.h wide-int.h.
11837         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
11838         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
11839         statistics.h stmt.h tree.h varasm.h wide-int.h.
11840         * combine-stack-adj.c: Likewise.
11841         * cse.c: Likewise.
11842         * ddg.c: Likewise.
11843         * ifcvt.c: Likewise.
11844         * ira-costs.c: Likewise.
11845         * jump.c: Likewise.
11846         * lra-coalesce.c: Likewise.
11847         * lra-spills.c: Likewise.
11848         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11849         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
11850         stmt.h varasm.h wide-int.h.
11851         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11852         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
11853         varasm.h.
11854         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
11855         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
11856         statistics.h stmt.h varasm.h wide-int.h.
11857         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
11858         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
11859         varasm.h wide-int.h.
11860         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
11861         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11862         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
11863         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
11864         statistics.h stmt.h.
11865         * config/tilepro/tilepro.c: Likewise.
11866         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
11867         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
11868         * config/pdp11/pdp11.c: Likewise.
11869         * config/xtensa/xtensa.c: Likewise.
11870         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
11871         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
11872         varasm.h.
11873         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11874         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
11875         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
11876         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11877         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
11878         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
11879         * rtl-chkp.c: Likewise.
11880         * tree-chkp-opt.c: Likewise.
11881         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
11882         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
11883         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
11884         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11885         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
11886         statistics.h stmt.h.
11887         * tree-vect-data-refs.c: Likewise.
11888         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
11889         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11890         rtl.h statistics.h stmt.h varasm.h.
11891         * internal-fn.c: Likewise.
11892         * ipa-icf-gimple.c: Likewise.
11893         * lto-section-out.c: Likewise.
11894         * tree-data-ref.c: Likewise.
11895         * tree-nested.c: Likewise.
11896         * tree-outof-ssa.c: Likewise.
11897         * tree-predcom.c: Likewise.
11898         * tree-pretty-print.c: Likewise.
11899         * tree-scalar-evolution.c: Likewise.
11900         * tree-ssa-strlen.c: Likewise.
11901         * tree-vect-loop.c: Likewise.
11902         * tree-vect-patterns.c: Likewise.
11903         * tree-vect-slp.c: Likewise.
11904         * tree-vect-stmts.c: Likewise.
11905         * tsan.c: Likewise.
11906         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11907         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
11908         stmt.h.
11909         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
11910         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11911         statistics.h stmt.h varasm.h.
11912         * loop-unroll.c: Likewise.
11913         * ubsan.c: Likewise.
11914         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
11915         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
11916         stmt.h varasm.h.
11917         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11918         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
11919         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
11920         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
11921         statistics.h stmt.h.
11922         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
11923         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
11924         statistics.h stmt.h varasm.h.
11925         * gimple-match-head.c: Likewise.
11926         * lto-cgraph.c: Likewise.
11927         * lto-section-in.c: Likewise.
11928         * lto-streamer-in.c: Likewise.
11929         * lto-streamer-out.c: Likewise.
11930         * tree-affine.c: Likewise.
11931         * tree-cfg.c: Likewise.
11932         * tree-cfgcleanup.c: Likewise.
11933         * tree-if-conv.c: Likewise.
11934         * tree-into-ssa.c: Likewise.
11935         * tree-ssa-alias.c: Likewise.
11936         * tree-ssa-copyrename.c: Likewise.
11937         * tree-ssa-dse.c: Likewise.
11938         * tree-ssa-forwprop.c: Likewise.
11939         * tree-ssa-live.c: Likewise.
11940         * tree-ssa-math-opts.c: Likewise.
11941         * tree-ssa-pre.c: Likewise.
11942         * tree-ssa-sccvn.c: Likewise.
11943         * tree-tailcall.c: Likewise.
11944         * tree-vect-generic.c: Likewise.
11945         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11946         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
11947         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11948         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
11949         * varasm.c: Likewise.
11950         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11951         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
11952         varasm.h.
11953         * init-regs.c: Likewise.
11954         * ira.c: Likewise.
11955         * omp-low.c: Likewise.
11956         * stack-ptr-mod.c: Likewise.
11957         * tree-ssa-reassoc.c: Likewise.
11958         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11959         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
11960         varasm.h.
11961         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11962         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
11963         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11964         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
11965         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11966         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
11967         * tree-ssa-phiopt.c: Likewise.
11968         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11969         fixed-value.h hashtab.h real.h statistics.h stmt.h.
11970         * config/fr30/fr30.c: Likewise.
11971         * config/frv/frv.c: Likewise.
11972         * expr.c: Likewise.
11973         * final.c: Likewise.
11974         * optabs.c: Likewise.
11975         * passes.c: Likewise.
11976         * simplify-rtx.c: Likewise.
11977         * stmt.c: Likewise.
11978         * toplev.c: Likewise.
11979         * var-tracking.c: Likewise.
11980         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11981         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11982         * lower-subreg.c: Likewise.
11983         * postreload-gcse.c: Likewise.
11984         * ree.c: Likewise.
11985         * reginfo.c: Likewise.
11986         * store-motion.c: Likewise.
11987         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11988         fixed-value.h hashtab.h real.h stmt.h varasm.h.
11989         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11990         fixed-value.h hashtab.h statistics.h stmt.h.
11991         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11992         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
11993         * except.c: Likewise.
11994         * explow.c: Likewise.
11995         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11996         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
11997         varasm.h.
11998         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11999         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
12000         * tree-ssa-structalias.c: Likewise.
12001         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12002         fixed-value.h insn-config.h real.h statistics.h.
12003         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12004         fixed-value.h insn-config.h real.h statistics.h stmt.h.
12005         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12006         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12007         * cfgbuild.c: Likewise.
12008         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12009         fixed-value.h real.h rtl.h statistics.h stmt.h.
12010         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12011         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12012         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12013         fixed-value.h real.h statistics.h stmt.h.
12014         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12015         fixed-value.h real.h statistics.h stmt.h varasm.h.
12016         * cprop.c: Likewise.
12017         * modulo-sched.c: Likewise.
12018         * postreload.c: Likewise.
12019         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
12020         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
12021         statistics.h stmt.h varasm.h.
12022         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
12023         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12024         rtl.h statistics.h stmt.h varasm.h.
12025         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
12026         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
12027         varasm.h.
12028         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
12029         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
12030         varasm.h.
12031         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
12032         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
12033         varasm.h.
12034         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
12035         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12036         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12037         function.h real.h statistics.h stmt.h varasm.h.
12038         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12039         insn-config.h real.h statistics.h stmt.h.
12040         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12041         statistics.h stmt.h.
12042         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
12043         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
12044         statistics.h stmt.h varasm.h.
12045         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
12046         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
12047         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12048         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
12049         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
12050         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
12051         statistics.h stmt.h varasm.h.
12052         * ipa-polymorphic-call.c: Likewise.
12053         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
12054         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12055         statistics.h stmt.h.
12056         * config/c6x/c6x.c: Likewise.
12057         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
12058         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12059         statistics.h stmt.h varasm.h.
12060         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
12061         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
12062         stmt.h varasm.h.
12063         * ipa-split.c: Likewise.
12064         * tree-eh.c: Likewise.
12065         * tree-ssa-dce.c: Likewise.
12066         * tree-ssa-loop-niter.c: Likewise.
12067         * tree-vrp.c: Likewise.
12068         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
12069         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
12070         stmt.h.
12071         * config/nds32/nds32-fp-as-gp.c: Likewise.
12072         * config/nds32/nds32-intrinsic.c: Likewise.
12073         * config/nds32/nds32-isr.c: Likewise.
12074         * config/nds32/nds32-md-auxiliary.c: Likewise.
12075         * config/nds32/nds32-memory-manipulation.c: Likewise.
12076         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12077         * config/nds32/nds32-predicates.c: Likewise.
12078         * config/nds32/nds32.c: Likewise.
12079         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
12080         fixed-value.h hashtab.h real.h statistics.h.
12081         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
12082         fixed-value.h hashtab.h real.h statistics.h stmt.h.
12083         * config/arm/arm.c: Likewise.
12084         * config/avr/avr.c: Likewise.
12085         * config/bfin/bfin.c: Likewise.
12086         * config/h8300/h8300.c: Likewise.
12087         * config/i386/i386.c: Likewise.
12088         * config/ia64/ia64.c: Likewise.
12089         * config/iq2000/iq2000.c: Likewise.
12090         * config/m32c/m32c.c: Likewise.
12091         * config/m32r/m32r.c: Likewise.
12092         * config/m68k/m68k.c: Likewise.
12093         * config/mcore/mcore.c: Likewise.
12094         * config/mep/mep.c: Likewise.
12095         * config/mips/mips.c: Likewise.
12096         * config/mn10300/mn10300.c: Likewise.
12097         * config/moxie/moxie.c: Likewise.
12098         * config/pa/pa.c: Likewise.
12099         * config/rl78/rl78.c: Likewise.
12100         * config/rx/rx.c: Likewise.
12101         * config/s390/s390.c: Likewise.
12102         * config/sh/sh.c: Likewise.
12103         * config/sparc/sparc.c: Likewise.
12104         * config/spu/spu.c: Likewise.
12105         * config/stormy16/stormy16.c: Likewise.
12106         * config/v850/v850.c: Likewise.
12107         * config/vax/vax.c: Likewise.
12108         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
12109         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12110         * config/msp430/msp430.c: Likewise.
12111         * predict.c: Likewise.
12112         * value-prof.c: Likewise.
12113         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
12114         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
12115         * config/microblaze/microblaze.c: Likewise.
12116         * config/nios2/nios2.c: Likewise.
12117         * config/rs6000/rs6000.c: Likewise.
12118         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12119         insn-config.h real.h rtl.h statistics.h stmt.h.
12120         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12121         insn-config.h real.h statistics.h stmt.h.
12122         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
12123         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12124         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
12125         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12126         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
12127         fixed-value.h real.h statistics.h stmt.h.
12128         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
12129         fixed-value.h statistics.h stmt.h.
12130         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
12131         stmt.h.
12133 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
12135         * gengtype.c (create_user_defined_type): Workaround
12136         -Wmaybe-uninitialized false positives.
12137         * cse.c (fold_rtx): Likewise.
12138         * loop-invariant.c (gain_for_invariant): Likewise.
12140 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12142         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
12143         set the memory attributes in all cases but clear MEM_EXPR if need be.
12145 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
12147         PR tree-optimization/64434
12148         * cfgexpand.c (reorder_operands): New function.
12149         (expand_gimple_basic_block): Insert call of reorder_operands if
12150         optimized is true.
12152 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
12154         * config/mips/micromips.md (*swp): Remove explicit parallel.
12155         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
12156         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
12157         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
12158         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
12159         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
12160         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
12161         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
12162         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
12163         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
12164         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
12165         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
12166         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
12167         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
12168         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
12169         (mips_wrdsp): Likewise.
12170         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
12171         parallel.
12172         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
12173         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
12174         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
12175         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
12176         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
12177         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
12178         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
12179         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
12180         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
12182 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
12184         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
12185         (mips_print_operand): Support 'y' to print exact log2 in decimal
12186         of a const_int.
12187         * config/mips/mips.h (ISA_HAS_LSA): New define.
12188         (ISA_HAS_DLSA): Likewise.
12189         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
12190         * config/mips/predicates.md (const_immlsa_operand): New predicate.
12192 2015-01-15  Martin Liska  <mliska@suse.cz>
12194         PR target/64377
12195         * optc-save-gen.awk: Add support for array types.
12197 2015-01-15  Richard Biener  <rguenther@suse.de>
12199         PR middle-end/64365
12200         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
12201         for MEM_REF access functions with the same base can never partially
12202         overlap.
12204 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
12206         * common.opt: New option -fstack-protector-explicit.
12207         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
12208         (stack_protect_decl_phase): Handle stack_protect attribute for
12209         explicit stack protection requests.
12210         (expand_used_vars): Similarly.
12211         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
12212         * doc/extend.texi: Add documentation for "stack_protect" attribute.
12213         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
12215 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
12217         PR target/53988
12218         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
12219         reg-reg copies.
12220         (sh_extending_set_of_reg): New struct.
12221         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
12222         sh_remove_reg_dead_or_unused_notes): New Declarations.
12223         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
12224         sh_find_extending_set_of_reg, sh_split_tst_subregs,
12225         sh_extending_set_of_reg::use_as_extended_reg): New functions.
12226         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
12227         convert to insn_and_split and use new function sh_split_tst_subregs.
12229 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
12231         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
12232         option.
12233         (Optimization Options): Move -fuse-ld documentation to...
12234         (Link Options): ...here.
12236 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
12238         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
12239         offsets.
12240         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
12241         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
12242         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
12243         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
12244         instead of ZR for the memory operand of LL/SC.
12245         (compare_and_swap_12, sync_add<mode>): Likewise.
12246         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
12247         (sync_new_<optab>_12, sync_nand_12): Likewise.
12248         (sync_old_nand_12, sync_new_nand_12): Likewise.
12249         (sync_sub<mode>, sync_old_add<mode>): Likewise.
12250         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
12251         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
12252         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
12253         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
12254         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
12255         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
12256         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
12257         * doc/md.texi (ZC): Update description.
12259 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
12261         * builtins.c (expand_builtin_atomic_exchange): Remove error when
12262         memory model is CONSUME.
12263         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
12264         expand_builtin_atomic_store): Change invalid memory model errors to
12265         warnings.
12266         (expand_builtin_atomic_clear): Change invalid model errors to warnings
12267         and issue warning for CONSUME.
12269 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
12271         * lto-cgraph: Update function comments for
12272         lto_symtab_encoder_encode_*.
12274 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
12276         * Makefile.in (site.exp): Do not set ENABLE_LTO.
12278 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
12280         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
12281         * lto-cgraph.c (select_what_to_stream): Remove argument, use
12282         lto_stream_offload_p instead.
12283         * lto-streamer.h (select_what_to_stream): Remove argument.
12284         * passes.c (ipa_write_summaries): Likewise.
12285         * tree-pass.h (ipa_write_summaries): Likewise.
12287 2015-01-14  Richard Biener  <rguenther@suse.de>
12289         PR tree-optimization/59354
12290         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
12291         groups larger than the slp group size as having gaps.
12293 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
12295         PR middle-end/59448
12296         * builtins.c (get_memmodel): Promote consume to acquire always.
12298 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12300         PR target/64386
12301         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
12302         V32HImode.
12304 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12306         PR target/64393
12307         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
12308         Enable AVX512BW.
12309         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
12310         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
12311         AVX512VBMI, as it implies AVX512BW.
12313 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12315         PR target/64387
12316         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
12317         (vec_unpacks_hi_v16sf): Ditto.
12319 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12321         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
12322         is not available.
12324 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12326         * doc/invoke.texi (mapcs): Mention deprecation.
12327         (mapcs-frame): Likewise.
12329 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12331         PR target/64453
12332         * config/arm/arm.c (callee_saved_reg_p): Define.
12333         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
12334         register is callee saved instead of !call_used_regs[reg].
12335         (thumb1_compute_save_reg_mask): Likewise.
12337 2015-01-14  Hale Wang  <hale.wang@arm.com>
12339         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
12340         Cortex-M7.
12342 2015-01-14  Richard Biener  <rguenther@suse.de>
12344         PR lto/64415
12345         * tree-inline.c (insert_debug_decl_map): Check destination
12346         function MAY_HAVE_DEBUG_STMTS.
12347         (insert_init_debug_bind): Likewise.
12348         (insert_init_stmt): Remove redundant check.
12349         (remap_gimple_stmt): Drop debug stmts if the destination
12350         function has var-tracking assignments disabled.
12352 2015-01-14  Martin Liska  <mliska@suse.cz>
12354         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
12355         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
12357 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12359         PR target/64460
12360         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
12361         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
12363 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
12365         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
12366         level from an ARCH; do not inject the default.
12367         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
12368         MIPS_ISA_LEVEL_SPEC.
12369         (MIPS_ISA_NAN2008_SPEC): Update comment.
12370         (BASE_DRIVER_SELF_SPECS): Likewise.
12371         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
12372         MIPS_DEFAULT_ISA_LEVEL_SPEC.
12373         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
12374         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
12375         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
12377 2015-01-14  Richard Biener  <rguenther@suse.de>
12379         PR tree-optimization/64493
12380         PR tree-optimization/64495
12381         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
12382         assign the proper vectorized PHI to the inner loop exit PHIs.
12384 2015-01-14  Joey Ye  <joey.ye@arm.com>
12386         * config/arm/arm.c (arm_compute_save_reg_mask):
12387         Do not save lr in case of tail call.
12388         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
12390 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
12392         * tree-vrp.c (check_array_ref): Emit more warnings
12393         for warn_array_bounds >= 2.
12394         * common.opt: New option -Warray-bounds=.
12395         * doc/invoke.texi: Document -Warray-bounds=.
12397 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
12399         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
12400         (mforbid-fp-as-gp): Remove.
12401         (mex9): Remove.
12402         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
12403         (nds32_symbol_load_store_p): Remove.
12404         (nds32_fp_as_gp_check_available): Clean up implementation.
12405         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
12406         cases.
12407         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
12408         fp-as-gp and ex9 cases.
12410 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
12412         * tree-profile.c (init_ic_make_global_vars): Drop workaround
12413         for bintuils bug 14342.
12414         (init_ic_make_global_vars): Likewise.
12415         (gimple_init_edge_profiler): Likewise.
12416         (gimple_gen_ic_func_profiler): Likewise.
12418 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12420         * ipa-inline.c (inline_small_functions): Swap the operands in
12421         enum.
12423 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
12425         PR ipa/64481
12426         * ipa-inline-analysis.c (node_growth_cache): Remove.
12427         (initialize_growth_caches): Do not initialize it.
12428         (free_growth_caches): Do not free it.
12429         (do_estimate_growth): Rename to ...
12430         (estimate_growth): ... this one; drop growth cache code.
12431         (growth_likely_positive): Always go the heuristics way.
12432         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
12433         (reset_edge_caches): Do not reset node growth.
12434         (heap_edge_removal_hook): Do not maintain cache.
12435         (inline_small_functions): Likewise; strenghten sanity check.
12436         (ipa_inline): Do not maintain caches.
12437         * ipa-inline.h (node_growth_cache): Remove.
12438         (do_estimate_growth): Remove to ...
12439         (estimate_growth): this one; remove inline version.
12440         (reset_node_growth_cache): Remove.
12442 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
12444         PR ipa/64565
12445         * ipa-inline.c (inline_small_functions): Update callee keys after
12446         resolving speculation
12447         (inline_small_functions): Always check monotonicity of the queue.
12449 2015-01-13  Marek Polacek  <polacek@redhat.com>
12451         PR middle-end/64391
12452         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
12454 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
12456         PR rtl-optimization/64286
12457         * ree.c (combine_reaching_defs): Move part of comment earlier,
12458         remove !SCALAR_INT_MODE_P check.
12459         (add_removable_extension): Don't add vector mode
12460         extensions if all uses of the source register aren't the same
12461         vector extensions.
12463 2015-01-13  Renlin Li  <renlin.li@arm.com>
12465         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
12466         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
12468 2015-01-13  Martin Liska  <mliska@suse.cz>
12470         * ipa-icf.c (sem_function::equals_private): Call new functions
12471         cl_target_option_print_diff and cl_optimization_print_diff.
12472         * optc-save-gen.awk (cl_target_option_print_diff): New function.
12473         (cl_optimization_print_diff): Likewise.
12474         * opth-gen.awk: Likewise.
12476 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
12478         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
12479         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
12480         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
12481         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
12482         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
12483         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
12485 2015-01-13  Andrew Pinski  <apinski@cavium.com>
12487         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
12488         instead of src mode.
12490 2015-01-13  Richard Biener  <rguenther@suse.de>
12492         PR lto/64373
12493         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
12494         DECL_CONTEXT.
12496 2015-01-13  Andrew Pinski  <apinski@cavium.com>
12498         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
12499         volatile mems.
12500         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12502 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
12504         PR middle-end/63974
12505         * cfgexpand.c (expand_computed_goto): Don't call
12506         convert_memory_address here.
12508 2015-01-13  Richard Biener  <rguenther@suse.de>
12510         PR tree-optimization/64406
12511         * tree-loop-distibution.c (pass_loop_distribution::execute):
12512         Reset the SCEV hashtable if we distributed anything.
12514 2015-01-13  Richard Biener  <rguenther@suse.de>
12516         PR tree-optimization/64404
12517         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
12518         SLP types for CSEd loads.
12520 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12522         PR tree-optimization/64436
12523         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
12524         merge of two symbolic numbers for a bitwise OR to ...
12525         (perform_symbolic_merge): This. Also fix computation of the range and
12526         end of the symbolic number corresponding to the result of a bitwise OR.
12528 2015-01-13  Richard Biener  <rguenther@suse.de>
12530         PR tree-optimization/64568
12531         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
12532         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
12534 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12536         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
12537         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
12539 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12541         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
12542         target-specific symbol_ref flag.
12543         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
12544         resides in rodata section.
12545         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
12546         (nds32_encode_section_info): New function.
12548 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12550         * config/nds32/nds32.md (call): Use pseudo instruction bal which
12551         clobbers TA_REGNUM if large code model is specified.
12552         (call_register): Likewise.
12553         (call_immediate): Likewise.
12554         (call_value): Likewise.
12555         (call_value_register): Likewise.
12556         (call_value_immediate): Likewise.
12558 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12560         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
12561         (TARGET_CMODEL_MEDIUM): New macro.
12562         (TARGET_CMODEL_LARGE): New macro.
12563         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
12564         code model setting in assembly code.
12566 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12568         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
12569         Remove MASK_GP_DIRECT flag.
12570         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
12571         one of the multilib default options.
12572         * config/nds32/nds32.opt (mgp-direct): Remove.
12573         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
12574         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
12576 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12578         * config/nds32/nds32.opt (mcmodel): Add new option.
12579         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
12580         to describe code model.
12582 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
12584         PR target/64479
12585         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
12587 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12589         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
12590         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
12591         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
12592         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
12593         __builtin_sh_set_fpscr.
12595 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
12597         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
12598         after a funtion name just to indicate it is a function.
12599         ([-fsanitize-undefined-trap-on-error]): Likewise.
12600         ([-fdbg-cnt=]): Likewise.
12601         ([-mmemcpy]): Likewise.
12602         ([-mflush-func]): Likewise.
12603         ([-msynci]): Likewise.
12605 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
12607         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
12608         example.
12610 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
12612         PR tree-optimization/64563
12613         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
12614         instead of != VR_VARYING.
12616         PR target/64513
12617         * config/i386/i386.c (ix86_expand_prologue): Add
12618         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
12620         PR tree-optimization/64454
12621         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
12622         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
12623         for signed or [0, op1 - 1] for unsigned modulo.
12624         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
12625         even if op1 does not satisfy integer_pow2p.
12627         PR other/64370
12628         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
12630 2015-01-12  Jeff Law  <law@redhat.com>
12632         PR target/64461
12633         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
12634         (trunchiqi2, truncsihi2): Similarly.
12636         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
12637         rather than calling F.
12639 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12641         * tsan.c (instrument_expr): Use force_gimple_operand.
12642         Use may_be_nonaddressable_p instead of is_gimple_addressable.
12644 2015-01-12  Richard Biener  <rguenther@suse.de>
12646         PR tree-optimization/64530
12647         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
12648         back dr1.
12650 2015-01-12  Richard Biener  <rguenther@suse.de>
12652         PR middle-end/64357
12653         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
12654         latches properly.
12656 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12658         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
12659         Cortex-A17 tuning parameters.
12660         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
12662 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12664         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
12665         * config/arm/arm.c (arm_macro_fusion_p): New function.
12666         (arm_macro_fusion_pair_p): Likewise.
12667         (TARGET_SCHED_MACRO_FUSION_P): Define.
12668         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
12669         (ARM_FUSE_NOTHING): Likewise.
12670         (ARM_FUSE_MOVW_MOVT): Likewise.
12671         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
12672         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
12673         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
12674         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
12675         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
12676         arm_cortex_a5_tune): Specify fuseable_ops value.
12678 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
12680         PR bootstrap/64561
12681         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
12682         test for PIE with copy reloc.
12683         * configure: Regenerated.
12685 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12687         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
12688         in gen_rtx_REG.
12689         (arm_tls_descseq_addr): Likewise.
12690         (arm_gen_movmemqi): Likewise.
12691         (arm_expand_epilogue_apcs_frame): Likewise.
12692         (arm_expand_epilogue): Likewise.
12693         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
12694         in gen_rtx_REG.
12696 2015-01-12  Martin Liska  <mliska@suse.cz>
12698         PR ipa/64550
12699         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
12700         volatility for correct operands.
12702 2015-01-12  Martin Liska  <mliska@suse.cz>
12704         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
12705         that a function is not leaf.
12706         (sem_function::compare_polymorphic_p): Likewise.
12708 2015-01-12  Martin Liska  <mliska@suse.cz>
12710         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
12711         that a function is not leaf.
12712         (sem_function::compare_polymorphic_p): Likewise.
12714 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12716         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
12717         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
12718         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
12719         fold-const.h, tree-check.h.
12721 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
12723         PR ipa/63967
12724         PR ipa/64425
12725         * ipa-inline.c (compute_uninlined_call_time,
12726         compute_inlined_call_time): Use counts for extra precision when
12727         needed possible.
12728         (big_speedup_p): Fix formating.
12729         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
12730         (relative_time_benefit): Remove.
12731         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
12732         merge guessed and read profile paths.
12733         (inline_small_functions): Count only !optimize_size functions into
12734         initial size; be more lax about sanity check when profile is used;
12735         be sure to update inlined function profile when profile is read.
12737 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
12739         PR ipa/63470
12740         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
12741         cost when edge becomes direct.
12742         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
12743         is resolved or when introducing new speculation.
12745 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
12747         PR ipa/64551
12748         PR ipa/64552
12749         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
12750         '||' to fix typo issue.
12752         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
12753         accept and return NULL.
12755 2015-01-12  Martin Liska  <mliska@suse.cz>
12757         * cgraph.c (cgraph_edge::remove_callee): Move function to header
12758         file for being inlined.
12759         (cgraph_set_edge_callee): Delete.
12760         (cgraph_edge::redirect_callee): Move function to header file
12761         for being inlined.
12762         (cgraph_edge::make_direct): Use new function.
12763         (cgraph_edge::dump_edge_flags): New function created from
12764         static dump_edge_flags function.
12765         (cgraph_node::dump): Use new function.
12766         (cgraph_edge::verify_count_and_frequency): New function created
12767         from verify_edge_count_and_frequency.
12768         (cgraph_edge::verify_corresponds_to_fndecl): New function created
12769         from verify_edge_corresponds_to_fndecl.
12770         (verify_edge_corresponds_to_fndecl): Delete.
12771         (cgraph_node::verify_node): Use new function.
12772         * cgraph.h (cgraph_edge::set_callee): New function.
12773         (cgraph_edge::dump_edge_flags): Likewise.
12774         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
12776 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
12778         * ipa-utils.c (estimate_function_body_sizes): Do not
12779         free node params when called late with early=true.
12781 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
12783         * doc/md.texi (Instruction Patterns): Rewrite text for
12784         clarity.
12785         (Example): Likewise.
12787 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
12789         * doc/invoke.texi (Option Summary): Break long lines.
12790         [(-fdiagnostics-color)]: Put long literal in @smallexample
12791         instead of inline.
12792         [(-fsanitize-recover)]: Likewise.
12793         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
12794         [(-ffast-math)]: Likewise.
12795         [(--param max-inline-insns-recursive)]: Likewise.
12796         [(--param max-inline-recursive-depth)]: Likewise.
12797         [(-mno-text-section-literals)]: Likewise.
12799 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
12801         * doc/install.texi: Update for libgomp being renamed from "GNU
12802         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
12803         Runtime Library".
12804         * doc/sourcebuild.texi: Likewise.
12806 2015-01-10  Anthony Green  <green@moxielogic.com>
12808         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
12809         mul.x availability for moxiebox configuration.
12811 2015-01-09  Anthony Green  <green@moxielogic.com>
12813         * config/moxie/moxie.md: Tabify assembly output.
12815 2015-01-09  Anthony Green  <green@moxielogic.com>
12817         * config/moxie/moxie.md (CC_REG): Correct register definition.
12819 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
12821         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
12822         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
12823         of log files.
12825 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
12827         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
12829 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
12830             Jakub Jelinek  <jakub@redhat.com>
12832         PR middle-end/64412
12833         * lto-streamer.h (lto_stream_offload_p): New declaration.
12834         * lto-streamer.c (lto_stream_offload_p): New variable.
12835         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
12836         at the same time as section_name_prefix.
12837         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
12838         if lto_stream_offload_p.
12839         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
12840         stream TREE_TARGET_OPTION if lto_stream_offload_p.
12841         (write_ts_function_decl_tree_pointers): Don't
12842         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
12843         * tree-streamer-in.c (unpack_value_fields): Don't stream
12844         TREE_TARGET_OPTION in if ACCEL_COMPILER.
12845         (lto_input_ts_function_decl_tree_pointers): Don't stream
12846         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
12847         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
12848         instead of section_name_prefix string comparisons.
12850 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
12852         PR rtl-optimization/64536
12853         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
12854         tablejumps.
12856 2015-01-09  Michael Collison  <michael.collison@linaro.org>
12858         PR tree-optimization/64322
12859         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
12860         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
12862 2015-01-09  Tom de Vries  <tom@codesourcery.com>
12864         PR rtl-optimization/64539
12865         * regcprop.c (kill_clobbered_values): Factor out of ...
12866         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
12867         instead of note_stores with kill_clobbered_value.
12869 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
12871          * ginclude/unwind-arm-common.h: Revert previous commit.
12873 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
12875         * config.gcc (arm*-*-freebsd*): New configuration.
12876         * config/arm/freebsd.h: New file.
12877         * config.host: Add extra components for arm*-*-freebsd*.
12878         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
12879         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
12881 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12883         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
12884         for -mcpu=e6500.
12885         * config/rs6000/t-rtems: Add e6500 multilibs.
12887 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12889         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
12890         MPC8540.
12892 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12894         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
12895         MULTILIB_EXCEPTIONS.
12897 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12899         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
12900         MULTILIB_EXCEPTIONS.
12902 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12904         * config/arm/t-rtems-eabi: Rename to...
12905         * config/arm/t-rtems: ...this.
12906         * config/arm/rtems-eabi.h: Rename to...
12907         * config/arm/rtems.h: ...this.
12908         * config.gcc (arm*-*-rtems*): Reflect changes above.
12910 2015-01-09  Richard Biener  <rguenther@suse.de>
12912         PR tree-optimization/64410
12913         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
12914         on the LHS.
12915         (execute_update_addresses_taken): Deal with that.
12916         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
12917         loads/stores for complex variables.
12919 2015-01-09  Martin Liska  <mliska@suse.cz>
12921         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
12922         name comparison.
12923         (func_checker::compare_memory_operand): New function.
12924         (func_checker::compare_operand): Split case to newly
12925         added functions.
12926         (func_checker::compare_cst_or_decl): New function.
12927         (func_checker::compare_gimple_call): Identify
12928         memory operands.
12929         (func_checker::compare_gimple_assign): Likewise.
12930         * ipa-icf-gimple.h: New function.
12932 2015-01-09  Martin Liska  <mliska@suse.cz>
12934         PR ipa/64503
12935         * sreal.c (sreal::dump): Change unsigned format to signed for
12936         m_exp value.
12937         (sreal::to_double): Replace exp2 with scalbln.
12939 2015-01-09  Martin Liska  <mliska@suse.cz>
12941         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
12942         * ipa-icf.c (sem_function::equals_private): Add support for target and
12943         (sem_item_optimizer::merge_classes): Remove redundant function
12944         optimization flags comparison.
12945         * tree.h (target_opts_for_fn): New function.
12947 2015-01-09  Tom de Vries  <tom@codesourcery.com>
12949         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
12951 2015-01-09  Kito Cheng  <kito@0xlab.org>
12953         PR rtl-optimization/64348
12954         * lra-constraints.c (split_reg): Fix caller-save store/restore
12955         instruction generation.
12957 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
12959         PR gcov-profile/61790
12960         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
12961         long long.  Fallback to int64_t if host doesn't have long long and
12962         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
12964 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
12966         PR tree-optimization/63989
12967         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
12968         from 1000 to 10000.
12969         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
12970         (get_stridx): If we don't have a record for certain SSA_NAME,
12971         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
12972         constant offset, call get_stridx_plus_constant.
12973         (get_stridx_plus_constant): New function.
12974         (zero_length_string): Don't use get_stridx here.
12976         PR target/55023
12977         PR middle-end/64388
12978         * dse.c (struct insn_info): Mention frame_read set also
12979         before reload for tail calls on some targets.
12980         (scan_insn): Revert 2014-12-22 change.  Set frame_read
12981         also before reload for tail calls if
12982         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
12983         instead of add_non_frame_wild_read for non-const/memset
12984         tail calls after reload.
12986 2015-01-08  Jason Merrill  <jason@redhat.com>
12988         * ubsan.c (do_ubsan_in_current_function): New.
12989         (pass_ubsan::gate): Use it.
12990         * ubsan.h: Declare it.
12991         * convert.c (convert_to_integer): Use it.
12993 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
12995         PR target/64338
12996         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
12997         compare_code when it is unconditionally overwritten afterwards.
12998         Use ix86_reverse_condition instead of reverse_condition.  Don't
12999         change code if *reverse_condition* returned UNKNOWN and don't
13000         swap ct/cf and negate diff in that case.
13002 2015-01-08  Mike Stump  <mikestump@comcast.net>
13004         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
13005         (pass_tsan_O0::gate): Likewise.
13006         * extend.texi (Function Attributes): Add no_sanitize_thread
13007         documentation.
13009 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
13011         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
13012         for registering builtins.
13013         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
13014         add -fopenmp to the argv_obstack used when invoking
13015         compile_for_target.
13017         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
13018         add "-m32" or "-m64" to argv_obstack.
13019         (generate_host_descr_file): Likewise, when invoking host_compiler.
13020         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
13021         ld.
13023 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
13025         * config/sh/sh-mem.cc: Use constant as second operand when emitting
13026         tstsi_t insns.
13028 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
13030         PR target/55212
13031         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
13032         constant load if constant operand fits into I08.
13034 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
13036         PR sanitizer/64336
13037         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
13038         and TREE_THIS_VOLATILE for MEM_REFs.
13039         (build5_stat): Fix up initialization of TREE_READONLY and
13040         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
13042 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13044         PR target/64533
13045         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
13046         of r for the second alternative of the destination operand.
13048 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
13050         PR target/36557
13051         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
13053 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
13055         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
13056         keywords.
13057         ([-fivar-visibility], [-fvisibility]): Likewise.
13059 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
13061         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
13062         the file where @code, @command, etc is more appropriate.
13064 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
13066         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
13067         of -mrecip= documentation.
13069 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
13071         PR target/64505
13072         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
13073         correct reload handler if -m32 -mpowerpc64 is used.
13075 2015-01-06  Tom de Vries  <tom@codesourcery.com>
13077         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
13079 2015-01-08  Christian Bruel  <christian.bruel@st.com>
13081         PR target/64507
13082         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
13084 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13086         PR tree-optimization/63259
13087         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
13088         if optab exists for 16bit byteswap.
13090 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
13092         * opts.c (common_handle_option): Add support for
13093         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
13094         * doc/invoke.texi: Document -fno-sanitize=all,
13095         -f{,no-}sanitize-recover=all.  Document that
13096         -fsanitize=float-cast-overflow is not enabled
13097         by -fsanitize=undefined.  Fix up documentation
13098         of -f{,no-}sanitize-recover.
13100 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13102         * config.gcc: Add Visium support.
13103         * configure.ac: Likewise.
13104         * configure: Regenerate.
13105         * doc/extend.texi (interrupt attribute): Add Visium.
13106         * doc/invoke.texi: Document Visium options.
13107         * doc/install.texi: Document Visium target.
13108         * doc/md.texi: Document Visium constraints.
13109         * common/config/visium: New directory.
13110         * config/visium: Likewise.
13112 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
13114         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
13115         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
13117 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
13119         * combine.c (combine_validate_cost): Do not count the cost of a
13120         split I2 twice.  Do not display it twice in the dump, either.
13122 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
13124         Revert parts of r219199.
13125         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
13126         <inttypes.h>.
13127         ([-Wtraditional]): Restore markup on <limits.h>.
13129 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
13131         PR c++/31397
13132         * doc/invoke.texi: Document -Wsuggest-override.
13134 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
13136         PR rtl-optimization/64287
13137         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
13138         (process_options): Disable flag_ipa_ra if profiling.
13140 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13142         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
13144 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
13146         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
13147         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
13148         put under #if TARGET_LOOPS guard.
13150 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
13152         * config/i386/i386.c (output_387_binary_op): Use std::swap.
13154 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
13156         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
13157         * rtl.h (refers_to_regno_p): Add overload.
13158         * cse.c: Use it.
13159         * bt-load.c: Likewise.
13160         * combine.c: Likewise.
13161         * df-scan.c: Likewise.
13162         * sched-deps.c: Likewise.
13163         * config/s390/s390.c: Likewise.
13164         * config/m32r/m32r.c: Likewise.
13165         * config/rs6000/spe.md: Likewise.
13166         * config/rs6000/rs6000.c: Likewise.
13167         * config/pa/pa.c: Likewise.
13168         * config/stormy16/stormy16.c: Likewise.
13169         * config/cris/cris.c: Likewise.
13170         * config/arc/arc.md: Likewise.
13171         * config/arc/arc.c: Likewise.
13172         * config/sh/sh.md: Likewise.
13173         * config/sh/sh.c: Likewise.
13174         * config/frv/frv.c: Likewise.
13176 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
13178         PR sanitizer/64265
13179         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
13180         call as cleanup of the whole body.
13181         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
13182         * tsan.c (replace_func_exit): New function.
13183         (instrument_func_exit): Moved earlier.
13184         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
13185         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
13186         been found.
13187         (tsan_pass): Don't call instrument_func_exit.
13188         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
13189         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
13190         inlining.
13192         PR sanitizer/64344
13193         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
13194         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
13195         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
13196         if the result is integer_zerop, return NULL_TREE.
13197         * convert.c (convert_to_integer): Pass expr as ARG.
13199         PR tree-optimization/64465
13200         * tree-inline.c (redirect_all_calls): During inlining
13201         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
13202         changed the stmt to a non-throwing call.
13204 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
13206         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
13207         etc markup throughout the file.
13209 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13211         Enable experimental TSAN support for Ada.
13212         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
13214 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
13216         PR tree-optimization/64494
13217         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
13218         clear SSA_NAME_ANTI_RANGE_P flag.
13220 2015-01-05  Marek Polacek  <polacek@redhat.com>
13222         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
13224 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
13226         Update copyright years.
13228         * gcc.c (process_command): Update copyright notice dates.
13229         * gcov-dump.c: Ditto.
13230         * gcov.c: Ditto.
13231         * doc/cpp.texi: Bump @copying's copyright year.
13232         * doc/cppinternals.texi: Ditto.
13233         * doc/gcc.texi: Ditto.
13234         * doc/gccint.texi: Ditto.
13235         * doc/gcov.texi: Ditto.
13236         * doc/install.texi: Ditto.
13237         * doc/invoke.texi: Ditto.
13239         * auto-profile.c, auto-profile.h: Fix up Copyright line.
13241 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
13243         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
13244         verb tense, etc.
13245         ([-fvtable-verify], [-fvtv-debug]): Likewise.
13246         ([-Wabi]): Likewise.
13247         ([-fmessage-length]): Likewise.
13248         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
13249         ([-Wno-discarded-qualifiers]): Likewise.
13250         ([-Wnodiscarded-array-qualifiers]): Likewise.
13251         ([-Wno-virtual-move-assign]): Likewise.
13252         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
13253         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
13254         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
13255         ([-fsanitize-undefined-trap-on-error]): Likewise.
13256         ([-floop-interchange]): Likewise.
13257         ([-ftree-coalesce-inlined-vars]): Likewise.
13258         ([-fvect-cost-model]): Likewise.
13259         ([-flto]): Likewise.
13260         ([--param]): Likewise.
13261         (Spec Files): Likewise.
13262         ([-mstrict-align]): Likewise.
13263         ([-mfix-cortex-a53-835769]): Likewise.
13264         ([-march], [-mtune]): Likewise.
13265         ([-mpic-register]): Likewise.
13266         ([-munaligned-access]): Likewise.
13267         ([-msp8]): Likewise.
13268         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
13269         (AVR Built-in Macros): Likewise.
13270         ([-mpreferred-stack-boundary]): Likewise.
13271         ([-mtune-crtl]): Likewise.
13272         ([-mashf]): Likewise.
13273         ([-mmcu=]): Likewise.
13274         ([-minrt]): Likewise.
13275         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
13276         ([-mupper-regs]): Likewise.
13277         ([-matomic-model]): Likewise.
13278         ([-mdiv]): Likewise.
13279         ([-mzdcbranch]): Likewise.
13280         ([-mdisable-callt]): Likewise.
13281         ([-msoft-float]): Likewise.
13282         ([-m8byte-align]): Likewise.
13283         ([-fstack-reuse]): Likewise.
13285 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13287         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
13288         Fix markup, light copy-editing.
13289         ([-fauto-profile]): Rewrite to fix formatting and content
13290         problems.
13292 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13294         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
13295         Copy-edit description.
13296         ([-fisolate-erroneous-paths-attribute]): Likewise.
13297         * common.opt (fisolate-erroneous-paths-dereference):
13298         Copy-edit description.
13299         (fisolate-erroneous-paths-attribute): Likewise.
13301 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13303         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
13304         tidy grammar.
13306 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13308         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
13309         ([-fvtv-debug]): Likewise.
13310         ([-Wc++-compat]): Likewise.
13311         ([-Wc++11-compat]): Likewise.
13312         ([-Wc++14-compat]): Likewise.
13313         ([-Wno-sized-deallocation]): Likewise.
13314         ([-femit-class-debug-always]): Likewise.
13315         ([-femit-struct-debug-detailed]): Likewise.
13316         ([-fno-keep-inline-dllexport]): Likewise.
13317         ([-fira-algorithm]): Likewise.
13318         ([-fira-region]): Likewise.
13319         ([-flra-remat]): Likewise.
13320         ([-fipa-ra]): Likewise.
13321         ([-fhoist-adjacent-loads]): Likewise.
13322         ([-fisolate-erroneous-paths-dereference]): Likewise.
13323         ([-fisolate-erroneous-paths-attribute]): Likewise.
13324         ([-ftree-switch-conversion]): Likewise.
13325         ([-ftree-tail-merge]): Likewise.
13326         ([-ftree-loop-if-convert]): Likewise.
13327         ([-ftree-loop-if-convert-stores]): Likewise.
13328         ([-ftree-loop-distribution]): Likewise.
13329         ([-ftree-loop-distribute-patterns]): Likewise.
13330         ([-flto-compression-level]): Likewise.
13331         ([-flto-report]): Likewise.
13332         ([-flto-report-wpa]): Likewise.
13333         ([-fuse-linker-plugin]): Likewise.
13334         ([-mfix-cortex-a53-835769]): Likewise.
13335         ([-mno-fix-cortex-a53-835769]): Likewise.
13336         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
13337         explicit listing; add a note to the discussion indicating they
13338         exist.  Reorder table to group similar options.  Add missing
13339         @opindex entries.  Add @need commands throughout the table to
13340         allow it to be split across multiple pages.
13341         ([-m8bit-idiv]): Fix @opindex.
13342         ([-mavx256-split-unaligned-load]): Likewise.
13343         ([-mavx256-split-unaligned-store]): Likewise.
13344         ([-mstack-protector-guard]): Likewise.
13345         ([-mcpu=]): Likewise.
13346         ([-mcpu]): Likewise.
13347         ([-mpointer-size=]): Likewise.
13349 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
13351         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
13352         instead of `m' constraint.  Likewise for unnamed movb comparison
13353         patterns using reg_before_reload_operand predicate.
13354         * config/pa/predicates.md (reg_before_reload_operand): Tighten
13355         predicate to reject register index and LO_SUM DLT memory forms
13356         after reload.
13358 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
13360         * doc/invoke.texi (Option Summary): Fix spelling of
13361         -fdevirtualize-at-ltrans.
13362         ([-fdevirtualize]): Fix markup.
13363         ([-fdevirtualize-speculatively]): Fix typo.
13364         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
13365         implementor-speaky.
13366         * common.opt (fdevirtualize-at-ltrans): Likewise.
13367         * ipa-devirt.c: Fix typos in comments throughout the file.
13368         (ipa_devirt): Fix typos in format strings for dump output.
13370 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
13372         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
13373         discussion of defaults, light copy-editing.
13375 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13377         * tsan.c (instrument_expr): corrected previous checkin.
13379 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13381         Instrument bit field and unaligned accesses for TSAN.
13382         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
13383         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
13384         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
13385         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
13386         unaligned memory regions.
13388 2015-01-01  Anthony Green  <green@moxielogic.com>
13390         * config/moxie/predicates.md (moxie_general_movsrc_operand):
13391         Restrict move source register offsets to 16 bits.
13393 Copyright (C) 2015 Free Software Foundation, Inc.
13395 Copying and distribution of this file, with or without modification,
13396 are permitted in any medium without royalty provided the copyright
13397 notice and this notice are preserved.