1 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
3 PR tree-optimization/63387
4 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
5 ((x ord x) & (y ord y) -> (x ord y),
6 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
7 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
10 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12 * convert.c (convert_to_integer, convert_to_vector): Include the
13 types in the error message.
15 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
17 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20 2015-05-22 Jeff Law <law@redhat.com>
22 * config/pa/pa.md (integer_indexed_store splitters): Use
23 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
24 insns -- adjusting the constant 2nd operand accordingly.
26 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
27 (plus (ashift X log2) Y) if it is a split point.
29 * pa.c (mem_shadd_or_shadd_rtx_p): New function factored out
30 of hppa_legitimize_address to handle both forms of a multiply
32 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
33 Always generate the ASHIFT variant as the result is not directly
34 used in a MEM. Update comments and refactor slightly to improve
37 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
41 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
42 (aarch64_composite_type_p): Return false if given type and mode are
45 2015-05-22 Richard Biener <rguenther@suse.de>
47 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
49 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
50 patterns when determining whether SLP is pure.
51 (vect_is_slp_reduction): Remove check for pattern stmts.
52 (vect_is_simple_reduction_1): Remove dead code.
53 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
54 (vect_get_and_check_slp_defs): Pass in the stmt number.
55 Allow the first def in a reduction to be not a pattern stmt when
56 the rest of the stmts def are patterns.
57 (vect_build_slp_tree_1): Allow tcc_expression codes like
58 SAD_EXPR and DOT_PROD_EXPR.
59 (vect_build_slp_tree): Adjust.
60 (vect_analyze_slp): Refactor and move BB vect error message ...
61 (vect_slp_analyze_bb_1): ... here.
63 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
65 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
68 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
70 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
71 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
74 2015-05-22 Richard Biener <rguenther@suse.de>
76 PR tree-optimization/66251
77 * tree-vect-stmts.c (vectorizable_conversion): Properly
78 set STMT_VINFO_VEC_STMT even for the SLP case.
80 2015-05-22 Marek Polacek <polacek@redhat.com>
82 * doc/extend.texi: Use @pxref instead of @xref.
84 2015-05-22 hiraditya <hiraditya@msn.com>
86 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
89 2015-05-22 Richard Biener <rguenther@suse.de>
91 PR tree-optimization/65701
92 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
93 Move peeling cost models into one place. Peel for alignment
94 for single loads only if an aligned load is cheaper than
97 2015-05-22 Marek Polacek <polacek@redhat.com>
100 * doc/extend.texi (Enumerator Attributes): New section.
101 Document syntax of enumerator attributes.
103 2015-05-22 Richard Biener <rguenther@suse.de>
105 * tree-vect-loop.c (get_reduction_op): New function.
106 (vect_model_reduction_cost): Use it, add reduc_index parameter.
107 Make ready for BB reductions.
108 (vect_create_epilog_for_reduction): Use get_reduction_op.
109 (vectorizable_reduction): Init reduc_index to a valid value.
110 Adjust vect_model_reduction_cost call.
111 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
112 operand for reduction defaults. Add SAD_EXPR support.
113 Assert we have a neutral op for SLP reductions.
114 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
115 walking pattern stmt ops only recurse to SSA names.
117 2015-05-22 Richard Biener <rguenther@suse.de>
119 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
120 assert with guard, remove check on detected reduction.
121 (vect_recog_sad_pattern): Likewise.
122 (vect_recog_widen_sum_pattern): Likewise.
124 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
126 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
127 __always_inline__ attribute.
128 (vaesdq_u8): Likewise.
129 (vaesmcq_u8): Likewise.
130 (vaesimcq_u8): Likewise.
131 (vsha1cq_u32): Likewise.
132 (vsha1mq_u32): Likewise.
133 (vsha1pq_u32): Likewise.
134 (vsha1h_u32): Likewise.
135 (vsha1su0q_u32): Likewise.
136 (vsha1su1q_u32): Likewise.
137 (vsha256hq_u32): Likewise.
138 (vsha256h2q_u32): Likewise.
139 (vsha256su0q_u32): Likewise.
140 (vsha256su1q_u32): Likewise.
141 (vmull_p64): Likewise.
142 (vmull_high_p64): Likewise.
144 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
146 * final.c (final_scan_insn): Don't check HAVE_peephole with the
148 * output.h: Likewise.
149 * genconfig.c (main): Alwways define HAVE_peephole.
150 * genpeep.c: Don't emit checks of HAVE_peephole.
152 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
154 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
155 check HAVE_conditional_move with the preprocessor.
157 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
159 * genconfig.c (main): Always define HAVE_conditional_move.
160 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
161 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
164 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
166 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
167 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
168 and FRAME_POINTER_REGNUM with the preprocessor.
170 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
172 * defaults.h: Add default for STACK_PUSH_CODE.
173 * expr.c: Don't redefine STACK_PUSH_CODE.
176 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
178 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
179 sched-deps.c: Use if instead of preprocessor checks with
180 STACK_GROWS_DOWNWARD.
182 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
184 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
186 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
187 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
188 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
189 * doc/tm.texi: Regenerate.
191 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
194 * config/i386/constraints.md (Bg): New constraint for GOT memory
196 * config/i386/i386.md (*call_got_x32): New pattern.
197 (*call_value_got_x32): Likewise.
198 * config/i386/predicates.md (GOT_memory_operand): New predicate.
200 2015-05-21 Jakub Jelinek <jakub@redhat.com>
202 PR tree-optimization/66233
203 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
206 2015-05-21 Jeff Law <law@redhat.com>
208 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
209 than MULT for shadd sequences.
211 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
213 * alias.c (alias_stats): New static var.
214 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
215 (dump_alias_stats_in_alias_c): New function.
216 * alias.h (dump_alias_stats_in_alias_c): Declare.
217 * tree-ssa-alias.c (dump_alias_stats): Call it.
219 2015-05-08 Michael Matz <matz@suse.de>
221 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
223 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
224 (STMT_VINFO_STRIDED_P): ... this.
225 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
226 (vect_verify_datarefs_alignment): Likewise.
227 (vect_enhance_data_refs_alignment): Likewise.
228 (vect_analyze_data_ref_access): Likewise.
229 (vect_analyze_data_refs): Accept strided stores.
230 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
231 (vect_model_load_cost): Adjust for macro rename.
232 (vectorizable_mask_load_store): Likewise.
233 (vectorizable_load): Likewise.
234 (vectorizable_store): Open code strided stores.
236 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
238 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
241 2015-05-21 Richard Biener <rguenther@suse.de>
244 * match.pd: Guard pattern optimzing (int)(float)int
245 conversions to apply only on GIMPLE.
247 2015-05-21 Jeff Law <law@redhat.com>
249 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
250 multiply-accumulate/shift-add insn generation.
252 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
255 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
256 operands[1] are the same.
258 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
261 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
262 build_distinct_type_copy to copy bounds.
264 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
266 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
267 Change to unsigned int.
269 2015-05-20 Jeff Law <law@redhat.com>
271 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
272 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
273 (pa_shadd_constant_p): Allow constants for shadd insns rather
274 than valid scaling constants for memory addresses.
275 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
276 * config/pa/predicates.md (mem_shadd_operand): New predicate.
277 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
278 (shift-add insns using ASHIFT): New patterns.
280 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
282 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
284 (fix_up_fall_thru_edges): Likewise.
285 (fix_crossing_conditional_branches): Likewise. Promote jump targets
286 from to rtx_insn to rtx_code_label where feasible.
287 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
288 gen_move_insn (returned type changed to rtx_insn).
289 * builtins.c (expand_errno_check): Fix arguments of
290 do_compare_rtx_and_jump (now expects rtx_code_label).
291 (expand_builtin_acc_on_device): Likewise.
292 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
293 invert_jump (now exprects rtx_jump_insn).
294 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
295 (construct_init_block): Use rtx_code_label.
296 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
297 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
298 calling redirect_jump.
299 (patch_jump_insn): Likewise.
300 (redirect_branch_edge): Likewise.
301 (force_nonfallthru_and_redirect): Likewise.
302 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
304 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
305 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
306 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
307 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
308 to store the value retured by gen_label_rtx.
309 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
311 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
312 (split_branches): Fix calls of redirect_jump.
313 * dojump.c (jumpifnot): Promote argument type from rtx to rtx_code_label.
314 (jumpifnot_1): Likewise.
316 (jumpif_1): Likewise.
317 (do_jump_1): Likewise.
318 (do_jump): Likewise. Use rtx_code_label when feasible.
319 (do_jump_by_parts_greater_rtx): Likewise.
320 (do_jump_by_parts_zero_rtx): Likewise.
321 (do_jump_by_parts_equality_rtx): Likewise.
322 (do_compare_rtx_and_jump): Likewise.
323 * dojump.h: Update function prototypes.
324 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
326 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
328 (emit_label_before): Likewise.
329 (emit_jump_insn_after_noloc): Likewise.
330 (emit_jump_insn_after_setloc): Likewise.
331 (emit_jump_insn_after): Likewise
332 (emit_jump_insn_before_setloc): Likewise.
333 (emit_jump_insn_before): Likewise.
334 (emit_label_before): Promote return type to rtx_code_label.
335 (emit_label): Likewise.
336 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
337 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
339 (emit_stack_restore): Likewise.
340 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
341 (do_cmp_and_jump): Likewise.
342 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
343 from rtx to rtx_code_label.
344 (gen_move_insn_uncast): New function.
345 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
346 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
347 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
348 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
349 invert_jump_1 and redirect_jump_1.
350 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
351 do_compare_rtx_and_jump.
352 (expand_addsub_overflow): Likewise.
353 (expand_neg_overflow): Likewise.
354 (expand_mul_overflow): Likewise.
355 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
356 return value of gen_move_insn.
357 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
358 * loop-doloop.c (add_test): Use rtx_code_label.
359 (doloop_modify): Likewise.
360 (doloop_optimize): Likewise.
361 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
362 * lra-constraints.c (emit_spill_move): Remove cast of value returned
364 (inherit_reload_reg): Add cast when calling dump_insn_slim.
365 (split_reg): Likewise.
366 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
368 * optabs.c (expand_binop_directly): Remove casts of values returned by
370 (expand_unop_direct): Likewise.
371 (expand_abs): Likewise.
372 (maybe_emit_unop_insn): Likewise.
373 (maybe_gen_insn): Promote return type to rtx_insn.
374 * optabs.h: Update prototype of maybe_gen_insn.
375 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
377 * recog.c (struct peep2_insn_data): Promote type of insn field to
379 (peep2_reinit_state): Use NULL instead of NULL_RTX.
380 (peep2_attempt): Remove casts of insn in peep2_insn_data.
381 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
382 * recog.h (struct insn_gen_fn): Promote return types of function
383 pointers and operator ().from rtx to rtx_insn.
384 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
385 (fill_eager_delay_slots): Likewise.
386 (relax_delay_slots): Likewise.
387 (make_return_insns): Likewise.
388 (dbr_schedule): Likewise.
389 (optimize_skips): Likewise.
390 (reorg_redirect_jump): Likewise.
391 (fill_slots_from_thread): Likewise.
392 * reorg.h: Update prototypes.
393 * resource.c (find_dead_or_set_registers): Use dyn_cast to
394 rtx_jump_insn instead of check. Use it's jump_target method.
395 * rtl.h (rtx_jump_insn::jump_label): Define new method.
396 (rtx_jump_insn::jump_target): Define new method.
397 (rtx_jump_insn::set_jump_target): Define new method.
398 * rtlanal.c (tablejump_p): Promote type of one local variable.
399 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
400 (sched_analyze_insn): Likewise.
401 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
402 (print_insn): Likewise.
403 * stmt.c (label_rtx): Promote return type to rtx_insn.
404 (force_label_rtx): Likewise.
405 (jump_target_rtx): Define new function.
406 (expand_label): Use it, get rid of one cast.
407 (expand_naked_return): Promote rtx to rtx_code_label.
408 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
409 (expand_case): Use rtx_code_label instread of rtx where feasible.
410 (expand_sjlj_dispatch_table): Likewise.
411 (emit_case_nodes): Likewise.
412 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
413 * store-motion.c (insert_store): Make use of new return type of
414 gen_move_insn and remove a cast.
415 (replace_store_insn): Likewise.
417 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
419 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
420 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
422 2015-05-20 Jeff Law <law@redhat.com>
424 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
425 dispose of the jump thread path when the jump threading
426 opportunity is cancelled.
428 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
430 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
431 when printing the caret character.
433 2015-05-20 Marek Polacek <polacek@redhat.com>
435 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
437 2015-05-20 Marek Polacek <polacek@redhat.com>
439 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
440 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
441 * gimple-fold.c (canonicalize_bool): Likewise.
442 (same_bool_result_p): Likewise.
443 * tree-if-conv.c (parse_predicate): Likewise.
445 2015-05-20 Marek Polacek <polacek@redhat.com>
447 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
448 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
450 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
452 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
453 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
456 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
458 * config/mips/mips.h (micromips_globals): Declare.
460 2015-05-20 David Malcolm <dmalcolm@redhat.com>
462 * timevar.def (TV_INITIALIZE_RTL): New.
463 * toplev.c (initialize_rtl): Use an auto_timevar to account this
464 function's time to TV_INITIALIZE_RTL.
466 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
468 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
469 gimple_build_nop calls.
470 (chkp_find_bounds_for_elem): Likewise.
471 (chkp_get_zero_bounds): Likewise.
472 (chkp_get_none_bounds): Likewise.
473 (chkp_get_bounds_by_definition): Likewise.
474 (chkp_generate_extern_var_bounds): Likewise.
475 (chkp_get_bounds_for_decl_addr): Likewise.
476 (chkp_get_bounds_for_string_cst): Likewise.
478 2015-05-20 Bin Cheng <bin.cheng@arm.com>
480 PR tree-optimization/65447
481 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
482 (dump_use, dump_uses): Support to dump sub use.
483 (record_use): New parameters to support sub use. Remove call to
485 (record_sub_use, record_group_use): New functions.
486 (compute_max_addr_offset, split_all_small_groups): New functions.
487 (group_address_uses, rewrite_use_address): New functions.
488 (strip_offset): New declaration.
489 (find_interesting_uses_address): Call record_group_use.
490 (add_candidate): New assertion.
491 (infinite_cost_p): Move definition forward.
492 (add_costs): Check INFTY cost and return immediately.
493 (get_computation_cost_at): Clear setup cost and dependent bitmap
495 (determine_use_iv_cost_address): Compute cost for sub uses.
496 (rewrite_use_address_1): Rename from old rewrite_use_address.
497 (free_loop_data): Free sub uses.
498 (tree_ssa_iv_optimize_loop): Call group_address_uses.
500 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
501 Jim Wilson <jim.wilson@linaro.org>
503 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
504 new fields loadv and storev.
505 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
506 Initialize loadv and storev.
507 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
508 (cortexa53_extra_costs): Likewise.
509 (cortexa57_extra_costs): Likewise.
510 (xgene1_extra_costs): Likewise.
511 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
514 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
516 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
518 (cortexa8_extra_costs): Likewise.
519 (cortexa5_extra_costs): Likewise.
520 (cortexa7_extra_costs): Likewise.
521 (cortexa12_extra_costs): Likewise.
522 (cortexa15_extra_costs): Likewise.
523 (v7m_extra_costs): Likewise.
525 2015-05-20 Jeff Law <law@redhat.com>
527 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
528 instead of open-coded version. Also delete the jump thread created
529 within this function.
531 2015-05-20 Alan Modra <amodra@gmail.com>
533 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
534 stack adjusting insn. Formatting.
535 (rs6000_emit_prologue): Track stack adjusting insn, and use of
536 r12. If possible, emit first -fsplit-stack arg pointer insn
537 before stack adjust. Don't use r12 to save cr if split-stack.
539 2015-05-20 Alan Modra <amodra@gmail.com>
541 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
543 (rs6000_supports_split_stack): New function.
544 * gcc/config/rs6000/rs6000.c (machine_function): Add
545 split_stack_arg_pointer.
546 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
547 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
548 rather than virtual_incoming_args_rtx.
549 (rs6000_va_start): Likewise.
550 (split_stack_arg_pointer_used_p): New function.
551 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
552 (morestack_ref): New var.
553 (gen_add3_const, rs6000_expand_split_stack_prologue,
554 rs6000_internal_arg_pointer, rs6000_live_on_entry,
555 rs6000_split_stack_space_check): New functions.
556 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
557 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
558 (UNSPECV_SPLIT_STACK_RETURN): Define.
559 (split_stack_prologue, load_split_stack_limit,
560 load_split_stack_limit_di, load_split_stack_limit_si,
561 split_stack_return, split_stack_space_check): New expands and insns.
562 * gcc/config/rs6000/rs6000-protos.h
563 (rs6000_expand_split_stack_prologue): Declare.
564 (rs6000_split_stack_space_check): Declare.
566 2015-05-20 Alan Modra <amodra@gmail.com>
568 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
569 (rs6000_stack_info): Don't zero offsets when not saving registers.
570 (debug_stack_info): Adjust to omit printing unused offsets,
572 (direct_return): Test vrsave_size rather than vrsave_mask.
573 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
574 (rs6000_emit_epilogue): Likewise.
576 2015-05-20 Alan Modra <amodra@gmail.com>
578 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
579 when not saving registers.
580 (debug_stack_info): Adjust to omit printing unused offsets,
582 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
585 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
588 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
589 value_type to const char *.
591 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
593 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
594 to build a biarch toolchain again.
596 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
598 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
599 or implicit declarations.
600 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
602 (get_odr_type): Check type has linkage before adding bases.
603 (register_odr_type): Check that type has linkage before adding it.
604 (type_known_to_have_no_deriavations_p): Rename to ..
605 (type_known_to_have_no_derivations_p): This one.
606 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
607 (type_known_to_have_no_derivations_p): This one.
608 * ipa-polymorphic-call.c
609 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
612 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
614 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
615 (layout_type): Use RECORD_OR_UNION_TYPE_P.
617 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
619 * config/s390/s390.c (s390_vector_bool_type_p): New function.
620 (s390_invalid_binary_op): New function.
621 (TARGET_INVALID_BINARY_OP): Define macro.
623 2015-05-19 David Sherwood <david.sherwood@arm.com>
625 * loop-invariant.c (create_new_invariant): Don't calculate address cost
626 if mode is not a scalar integer.
627 (get_inv_cost): Increase computational cost for unused invariants.
629 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
631 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
632 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
633 * config/s390/s390-builtin-types.def: New file.
634 * config/s390/s390-builtins.def: New file.
635 * config/s390/s390-builtins.h: New file.
636 * config/s390/s390-c.c: New file.
637 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
638 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
639 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
640 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
642 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
644 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
645 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
646 variable definitions.
647 (s390_const_operand_ok): New function.
648 (s390_expand_builtin): Rewrite.
649 (s390_init_builtins): New function.
650 (s390_handle_vectorbool_attribute): New function.
651 (s390_attribute_table): Add s390_vector_bool attribute.
652 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
653 (s390_branch_condition_mask): Generate masks for new modes.
654 (s390_expand_vec_compare_cc): New function.
655 (s390_mangle_type): Add mangling for vector bool types.
656 (enum s390_builtin): Remove.
657 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
659 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
660 s390_cpu_cpp_builtins.
661 (REGISTER_TARGET_PRAGMAS): New macro.
662 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
663 (insn_cmp mode attribute): Add new CC modes.
664 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
665 (lcbb): New pattern definition.
666 * config/s390/s390intrin.h: Include vecintrin.h.
667 * config/s390/t-s390: New file.
668 * config/s390/vecintrin.h: New file.
669 * config/s390/vector.md: Include vx-builtins.md.
670 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
673 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
675 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
677 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
678 (s390_select_ccmode): Likewise.
679 (s390_canonicalize_comparison): Swap operands if necessary.
680 (s390_expand_vec_compare_scalar): Expand DFmode compare using
681 single element vector instructions.
682 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
683 (s390_branch_condition_mask): Generate CC masks for the new modes.
684 * config/s390/s390.md (v0, vf, vd): New mode attributes.
685 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
686 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
687 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
688 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
689 (*extend<DSF:mode><BFP:mode>2): New insn definition.
690 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
691 (extend<DSF:mode><BFP:mode>2): Turn into expander.
692 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
693 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
694 (sqrt<mode>2): Add vector instruction.
696 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
698 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
700 * config/s390/predicates.md (const0_operand, constm1_operand)
701 (constable_operand): Accept vector operands.
702 * config/s390/s390-modes.def: Add supported vector modes.
703 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
704 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
705 (s390_bytemask_vector_p, s390_expand_vec_strlen)
706 (s390_expand_vec_compare, s390_expand_vcond)
707 (s390_expand_vec_init): Add prototypes.
708 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
709 (s390_vector_mode_supported_p): New function.
710 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
711 (s390_contiguous_bitmask_vector_p): New function.
712 (s390_bytemask_vector_p): New function.
713 (s390_split_ok_p): Vector regs don't work either.
714 (regclass_map): Add VEC_REGS.
715 (s390_legitimate_constant_p): Handle vector constants.
716 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
717 (legitimate_reload_vector_constant_p): New function.
718 (s390_preferred_reload_class): Handle CONST_VECTOR.
719 (s390_reload_symref_address): Likewise.
720 (s390_secondary_reload): Vector memory instructions only support
721 short displacements. Rename reload*_nonoffmem* to reload*_la*.
722 (s390_emit_ccraw_jump): New function.
723 (s390_expand_vec_strlen): New function.
724 (s390_expand_vec_compare): New function.
725 (s390_expand_vcond): New function.
726 (s390_expand_vec_init): New function.
727 (s390_dwarf_frame_reg_mode): New function.
728 (print_operand): Handle addresses with 'O' and 'R' constraints.
729 (NR_C_MODES, constant_modes): Add vector modes.
730 (s390_output_pool_entry): Handle vector constants.
731 (s390_hard_regno_mode_ok): Handle vector registers.
732 (s390_class_max_nregs): Likewise.
733 (s390_cannot_change_mode_class): New function.
734 (s390_invalid_arg_for_unprototyped_fn): New function.
735 (s390_function_arg_vector): New function.
736 (s390_function_arg_float): Remove size variable.
737 (s390_pass_by_reference): Handle vector arguments.
738 (s390_function_arg_advance): Likewise.
739 (s390_function_arg): Likewise.
740 (s390_return_in_memory): Vector values are returned in a VR if
742 (s390_function_and_libcall_value): Handle vector arguments.
743 (s390_gimplify_va_arg): Likewise.
744 (s390_call_saved_register_used): Consider the arguments named.
745 (s390_conditional_register_usage): Disable v16-v31 for non-vec
747 (s390_preferred_simd_mode): New function.
748 (s390_support_vector_misalignment): New function.
749 (s390_vector_alignment): New function.
750 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
751 (TARGET_VECTOR_MODE_SUPPORTED_P)
752 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
753 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
754 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
755 (TARGET_VECTOR_ALIGNMENT): Define target macro.
756 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
757 (FIRST_PSEUDO_REGISTER): Increase value.
758 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
759 (VECTOR_REG_P): Define macros.
760 (FIXED_REGISTERS, CALL_USED_REGISTERS)
761 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
762 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
763 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
764 Add vector registers.
765 (CANNOT_CHANGE_MODE_CLASS): Call C function.
766 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
767 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
769 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
770 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
771 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
772 (VR*_REGNUM): New constants.
773 (ALL): New mode iterator.
774 (INTALL): Remove mode iterator.
776 (movti): Implement TImode moves for VRs.
777 Disable TImode splitter for VR targets.
778 Implement splitting TImode GPR<->VR moves.
779 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
780 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
781 reload<mode>_la_in, reload<mode>_la_out.
782 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
783 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
784 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
785 (mov<mode> SF SD): Prefer lder, lde for loading.
786 Add lrl and strl instructions.
787 Add vector instructions.
788 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
789 Call s390_expand_vec_strlen on z13.
790 (*cc_to_int): Change predicate to nonimmediate_operand.
791 (addti3): Rename to *addti3. New expander.
792 (subti3): Rename to *subti3. New expander.
793 * config/s390/vector.md: New file.
795 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
797 * common/config/s390/s390-common.c (processor_flags_table): Add
799 * config.gcc: Add z13.
800 * config/s390/s390-opts.h (enum processor_type): Add
802 * config/s390/s390.c (s390_adjust_priority): Check for
804 (s390_reorg): Likewise.
805 (s390_sched_reorder): Likewise.
806 (s390_sched_variable_issue): Likewise.
807 (s390_loop_unroll_adjust): Likewise.
808 (s390_option_override): Likewise. Default to -mvx when available.
809 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
810 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
811 (TARGET_VX_ABI): Define macros.
813 (TARGET_DEFAULT): Add MASK_OPT_VX.
814 * config/s390/s390.md ("cpu" attribute): Add z13.
815 ("cpu_facility" attribute): Add vec.
816 * config/s390/s390.opt (processor_type): Add z13.
818 * doc/invoke.texi: Add z13 option for -march.
820 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
822 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
823 mode check to make sure that only scalar integer values are
826 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
828 * tree.c (verify_type_variant): Fix #undef.
829 (gimple_canonical_types_compatible_p): Move here from lto.c
830 (verify_type): Verify TYPE_CANONICAL compatibility.
831 * tree.h (gimple_canonical_types_compatible_p): Declare.
833 2015-05-19 Jakub Jelinek <jakub@redhat.com>
836 * tree.h (OMP_TEAMS_COMBINED): Define.
837 * gimplify.c (enum gimplify_omp_var_data): Add
838 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
839 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
840 (omp_notice_variable): Accept both ORT_TEAMS
841 and ORT_COMBINED_TEAMS. Don't recurse if
842 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
843 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
845 (omp_no_lastprivate): New function.
846 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
847 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
848 notice_outer and set appropriate bits, otherwise make
849 sure default(none) combined constructs won't complain.
850 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
851 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
852 omp_no_lastprivate either remove the clause or turn it
853 into OMP_CLAUSE_PRIVATE.
854 (gimplify_omp_for): Fix up handling of implicit
855 lastprivate or linear iterators.
856 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
858 * omp-low.c (lower_omp_for_lastprivate): For combined
859 for simd use fd.loop.n2 from the for rather than simd.
861 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
863 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
864 instead of gen_rtx_raw_REG.
865 (cris_expand_epilogue): Likewise.
866 * config/microblaze/microblaze.c (microblaze_classify_address):
868 * config/sparc/sparc.md: Likewise.
870 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
872 * config/alpha/alpha.c (alpha_legitimize_reload_address)
873 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
874 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
875 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
876 Use CASE_CONST_SCALAR_INT.
877 (print_operand) <case 'M'>: Use mode_width_operand to check the
878 value of the constant.
879 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
880 * config/alpha/predicates.md (input_operand): Use general_operand
881 instead of match_code as operand check.
882 (symbolic_operand): Use match_code with subexpression digits.
883 * config/alpha/constraints.md (Q): Ditto.
885 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
887 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
889 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
891 * config/s390/s390.c (s390_secondary_reload): Fix check for
894 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
896 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
897 alternative_mask to uint64_t.
899 2015-05-19 Jakub Jelinek <jakub@redhat.com>
901 PR tree-optimization/66187
902 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
903 Pass TYPE_SIGN to tree_int_cst_min_precision. If
904 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
906 2015-05-19 David Malcolm <dmalcolm@redhat.com>
908 * diagnostic.c (diagnostic_report_current_module): Strengthen
909 local "new_map" from const line_map * to
910 const line_map_ordinary *.
911 * genmatch.c (error_cb): Likewise for local "map".
912 (output_line_directive): Likewise for local "map".
913 * input.c (expand_location_1): Likewise for local "map".
914 Pass NULL rather than &map to
915 linemap_unwind_to_first_non_reserved_loc, since the value is never
916 read from there, and the value written back not read from here.
917 (is_location_from_builtin_token): Strengthen local "map" from
918 const line_map * to const line_map_ordinary *.
919 (dump_location_info): Strengthen locals "map" from
920 line_map *, one to const line_map_ordinary *, the other
921 to const line_map_macro *.
922 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
923 const line_map * to const line_map_macro *.
924 (maybe_unwind_expanded_macro_loc): Add a call to
925 linemap_check_macro when writing to the "map" field of the
927 Introduce local const line_map_ordinary * "ord_map", using it in
928 place of "map" in the part of the function where we know we have
929 an ordinary map. Strengthen local "m" from const line_map * to
930 const line_map_ordinary *.
932 2015-05-19 Nick Clifton <nickc@redhat.com>
935 * config/msp430/msp430.md (zero_extendhisi2): Add support for
936 separate source and destination registers.
938 2015-05-19 Richard Biener <rguenther@suse.de>
940 PR tree-optimization/66165
941 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
942 for no load permutation.
944 PR tree-optimization/66185
945 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
946 when building the SLP node from scalars.
948 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
949 Tristan Gingold <gingold@adacore.com>
951 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
952 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
953 (expand_stack_restore): Call record_new_stack_level.
954 (expand_stack_save): Do not call do_pending_stack_adjust.
955 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
956 * calls.c (expand_call): Call record_new_stack_level for alloca.
957 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
958 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
959 (update_sjlj_context): New global function.
960 * except.h (update_sjlj_context): Declare.
961 * explow.c (record_new_stack_level): New global function.
962 (allocate_dynamic_stack_space): Call record_new_stack_level.
963 * explow.h (record_new_stack_level): Declare.
964 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
965 * cfgrtl.c (duplicate_insn_chain): Likewise.
967 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
969 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
970 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
971 STACK_GROWS_DOWNWARD as normal if.
972 (expand_call): Likewise.
974 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
977 * config/sh/sh.md (*round_int_even): New insn_and_split and
978 accompanying new unnamed split.
980 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
982 * bitmap.c (bitmap_set_range): Handle count==1 specially.
983 (bitmap_clear_range): Likewise.
984 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
985 bitmap_set_range unconditionally.
986 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
987 * df-scan.c (df_mark_reg): Likewise.
988 * haifa-sched.c (setup_ref_regs): Likewise.
989 * sched-rgn.c (update_live_1): Likewise.
991 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
993 * regs.h (END_HARD_REGNO): Delete.
994 (END_REGNO): Move to...
996 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
997 * caller-save.c (mark_set_regs): Likewise.
998 * combine.c (move_deaths, distribute_notes): Likewise.
999 * cse.c (invalidate, invalidate_for_call): Likewise.
1000 * df-scan.c (df_ref_record): Likewise.
1001 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
1002 (record_last_reg_set_info): Likewise.
1003 * reg-stack.c (convert_regs_exit): Likewise.
1004 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
1005 * resource.c (update_live_status): Likewise.
1006 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
1008 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1010 * rtl.h (reg_info): Add an nregs field.
1011 (REG_NREGS): Use it.
1012 (SET_REGNO_RAW): Delete.
1013 (set_regno_raw): New function.
1014 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
1015 (END_REGNO): Redefine in terms of REG_NREGS.
1016 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
1018 * emit-rtl.c (set_mode_and_regno): Likewise.
1019 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
1020 instead of SET_REGNO_RAW.
1022 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1024 * rtl.h (PUT_MODE_RAW): New macro.
1025 (PUT_REG_NOTE_KIND): Use it.
1026 (set_mode_and_regno): Declare.
1027 (gen_raw_REG): Change regno to "unsigned int".
1028 (gen_rtx_REG): Change "unsigned" to "unsigned int".
1029 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
1030 use set_mode_and_regno to change the mode of registers.
1031 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
1032 * emit-rtl.c (set_mode_and_regno): New function.
1033 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
1034 * caller-save.c (reg_save_code): Use set_mode_and_regno.
1035 * expr.c (init_expr_target): Likewise.
1036 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1037 * postreload.c (reload_cse_simplify_operands): Likewise.
1039 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1041 * caller-save.c (init_caller_save): Use word_mode and
1042 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
1043 * expr.c (init_expr_target): Likewise.
1044 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1045 * postreload.c (reload_cse_regs_1): Likewise.
1047 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1049 * rtl.def (REG): Change format to "r".
1050 * rtl.h (rtunion): Remove rt_reg.
1051 (reg_info): New structure.
1052 (rtx_def): Add reg field to main union.
1053 (X0REGATTR): Delete.
1054 (REG_CHECK): New macro.
1055 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
1056 * rtl.c (rtx_format): Document "r".
1057 (rtx_code_size): Handle REG specially.
1058 * gengenrtl.c (special_format): Return true for formats
1060 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
1061 Deal with REG_ATTRS after the field loop.
1062 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
1063 * expmed.c (init_expmed): Call gen_raw_REG instead of
1065 * expr.c (init_expr_target): Likewise.
1066 * regcprop.c (maybe_mode_change): Likewise.
1067 * varasm.c (make_decl_rtl): Likewise.
1068 * final.c (leaf_renumber_regs_insn): Return early after
1070 * genemit.c (gen_exp): Handle 'r' fields.
1071 * genpeep.c (match_rtx): Likewise.
1072 * gensupport.c (subst_pattern_match): Likewise.
1073 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
1074 (alter_constraints, subst_dup): Likewise.
1075 * read-rtl.c (read_rtx_code): Likewise.
1076 * print-rtl.c (print_rtx): Likewise.
1077 * genrecog.c (find_operand, find_matching_operand): Likewise.
1078 (validate_pattern, match_pattern_2): Likewise.
1079 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
1080 (rtx_test::regno_field): New function.
1081 (operator ==, safe_to_hoist_p, transition_parameter_type)
1082 (parameter_type_string, print_parameter_value)
1083 (print_nonbool_test, print_test): Handle new enum values.
1084 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
1085 * lra-constraints.c (operands_match_p): Likewise.
1087 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1089 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
1090 Change type of new_regno to unsigned int.
1091 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
1092 new_regno to unsigned int.
1093 (df_ref_change_reg_with_loc): Remove old_regno parameter.
1094 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
1095 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
1096 (SET_REGNO_RAW): Add space after ",".
1098 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1100 * rtl.h (REG_NREGS): New macro
1101 * alias.c (record_set): Use it.
1102 * cfgcleanup.c (mark_effect): Likewise.
1103 * combine.c (likely_spilled_retval_1): Likewise.
1104 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
1105 (move_deaths, distribute_notes): Likewise.
1106 * cselib.c (cselib_record_set): Likewise.
1107 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
1108 * df-scan.c (df_mark_reg): Likewise.
1109 * dse.c (look_for_hardregs): Likewise.
1110 * dwarf2out.c (reg_loc_descriptor): Likewise.
1111 (multiple_reg_loc_descriptor): Likewise.
1112 * expr.c (write_complex_part, read_complex_part): Likewise.
1113 (emit_move_complex): Likewise.
1114 * haifa-sched.c (setup_ref_regs): Likewise.
1115 * ira-lives.c (mark_hard_reg_live): Likewise.
1116 * lra.c (lra_set_insn_recog_data): Likewise.
1117 * mode-switching.c (create_pre_exit): Likewise.
1118 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
1119 (reload_combine_recognize_pattern): Likewise.
1120 (reload_combine_note_use, move2add_record_mode): Likewise.
1121 (reload_cse_move2add): Likewise.
1122 * reg-stack.c (subst_stack_regs_pat): Likewise.
1123 * regcprop.c (kill_value, copy_value): Likewise.
1124 (copyprop_hardreg_forward_1): Likewise.
1125 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
1126 (build_def_use): Likewise.
1127 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
1128 (deps_analyze_insn): Likewise.
1129 * sched-rgn.c (check_live_1, update_live_1): Likewise.
1130 * sel-sched.c (count_occurrences_equiv): Likewise.
1131 * valtrack.c (dead_debug_insert_temp): Likewise.
1133 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1135 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
1136 * dse.c (note_add_store): Likewise.
1137 * ira-lives.c (mark_hard_reg_dead): Likewise.
1138 * loop-invariant.c (mark_reg_store): Likewise.
1139 (mark_reg_death): Likewise.
1140 * postreload.c (reload_combine): Likewise.
1141 (reload_combine_note_store): Likewise.
1142 (reload_combine_note_use): Likewise.
1143 * recog.c (peep2_reg_dead_p): Likewise.
1145 2015-05-19 Alan Modra <amodra@gmail.com>
1147 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
1148 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
1149 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
1151 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
1152 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
1153 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
1154 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
1156 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
1158 * config/mips/mips.md (JOIN_MODE): New mode iterator.
1159 (join2_load_Store<JOIN_MODE:mode>): New pattern.
1160 (join2_loadhi): Likewise.
1161 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
1162 load-load and store-stores.
1163 * config/mips/mips.opt (mload-store-pairs): New option.
1164 (TARGET_LOAD_STORE_PAIRS): New macro.
1165 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
1166 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
1167 * config/mips/mips.c (mips_load_store_bonding_p): New function.
1169 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1171 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
1173 * dojump.c (do_compare_rtx_and_jump): Likewise.
1174 * expmed.c (emit_store_flag_1): Likewise.
1175 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
1176 * final.c (sprint_ul): Use std::reverse for reversing a string.
1177 * fold-const.c (extract_muldiv_1): Use std::swap.
1178 * genmodes.c (emit_mode_int_n): Likewise.
1179 * ifcvt.c (dead_or_predicable): Likewise.
1180 * ira-build.c (ira_merge_live_ranges): Likewise.
1181 (swap_allocno_copy_ends_if_necessary): Likewise.
1182 * ira.c (ira_setup_alts): Likewise.
1183 * loop-iv.c (iv_analyze_expr): Likewise.
1184 (implies_p): Likewise.
1185 (canon_condition): Likewise.
1186 * lra-constraints.c (swap_operands): Likewise.
1187 * lra-lives.c (lra_merge_live_ranges): Likewise.
1188 * omega.c (swap): Remove.
1190 (omega_unprotect_1): Use std::swap.
1191 (omega_solve_geq): Likewise.
1192 * optabs.c (expand_binop_directly): Likewise.
1193 (expand_binop): Likewise.
1194 (emit_conditional_move): Likewise.
1195 (emit_conditional_add): Likewise.
1196 * postreload.c (reload_cse_simplify_operands): Likewise.
1197 * reg-stack.c (emit_swap_insn): Likewise.
1198 (swap_to_top): Likewise.
1199 (compare_for_stack_reg): Likewise.
1200 (subst_asm_stack_regs): Likewise.
1201 * reload.c (find_reloads): Likewise.
1202 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
1203 * sel-sched.c (invoke_reorder_hooks): Likewise.
1204 (create_block_for_bookkeeping): Likewise.
1205 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
1206 (lambda_matrix_right_hermite): Use std::swap.
1207 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
1208 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1209 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
1210 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
1211 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1212 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
1213 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1214 * tree-vrp.c (compare_ranges): Likewise.
1215 * var-tracking.c (add_with_sets): Likewise.
1216 (vt_find_locations): Likewise.
1218 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
1220 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
1222 (FBSD_ENDFILE_SPEC): Likewise.
1223 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
1224 config/freebsd-spec.h.
1225 (ENDFILE_SPEC): Likewise.
1227 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
1228 Richard Henderson <rth@redhat.com>
1231 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
1232 Check for a memory location that is not a reference (using an AND)
1233 to an unaligned location here.
1234 * config/alpha/predicates.md (normal_memory_operand): Remove.
1236 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
1238 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
1239 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
1241 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
1243 * config/mips/mips.c (micromips_globals): New variable.
1244 (mips_set_compression_mode): Save and reinitialize target-dependent
1245 state for microMIPS.
1247 2015-05-18 Martin Liska <mliska@suse.cz>
1249 * dbgcnt.def: Add new counter.
1250 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
1252 2015-05-18 Martin Liska <mliska@suse.cz>
1254 * dbgcnt.def: Sort counters.
1255 * opts.c (common_handle_option): Do not compile if
1256 -fdbg-cnt-list is enabled.
1258 2015-05-18 Tom de Vries <tom@codesourcery.com>
1260 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
1261 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
1262 address operator to va_list operand.
1263 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
1265 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
1267 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
1268 * config/s390/s390.c (s390_gimplify_va_arg): Same.
1269 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
1271 2015-05-18 Tom de Vries <tom@codesourcery.com>
1273 * tree-ssa-tail-merge.c: Fix whitespace.
1275 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
1277 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
1278 cortex-a17, and cortex-a17.cortex-a7.
1280 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
1283 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
1285 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
1288 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
1289 QImode inner modes for TARGET_AVX512BW. Force mask operand
1290 to a register for AVX512F modes.
1292 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
1294 * toplev.c (emit_debug_global_declarations): Do not output debug info
1295 when doing slim LTO objects.
1297 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
1299 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
1300 odr_types_equivalent_p): Declare.
1301 (odr_type_p): Use gcc_checking_assert.
1302 (type_in_anonymous_namespace_p) Declare.
1303 (type_with_linkage_p): Declare.
1304 * common.opt (Wlto-type-mismatch): New warning.
1305 * ipa-devirt.c (compound_type_base): New function.
1306 (odr_or_derived_type_p): New function.
1307 (odr_types_equivalent_p): New function.
1308 (add_type_duplicate): Simplify.
1309 (type_with_linkage_p): Add hack to prevent false positives on C types
1310 (type_in_anonymous_namespace_p): Likewise.
1311 * tree.c (need_assembler_name_p): Use type_with_linkage.
1312 * tree.h (type_in_anonymous_namespace_p): Remove.
1313 * doc/invoke.texi (-Wlto-type-mismatch): Document
1315 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
1317 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
1318 (verify_type): Verify STRING_FLAG.
1320 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1323 * tree-pretty-print.c (percent_K_format): Replace locus pointer
1324 with accessor function.
1325 * tree-diagnostic.c (diagnostic_report_current_function): Use
1326 diagnostic_location function.
1327 (maybe_unwind_expanded_macro_loc): Likewise.
1328 (virt_loc_aware_diagnostic_finalizer): Likewise.
1329 (default_tree_printer): Replace locus pointer with accessor function.
1330 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
1331 (diagnostic_set_info_translated): Initialize second location.
1332 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
1333 (diagnostic_show_locus): Handle two locations. Call
1334 diagnostic_print_caret_line.
1335 (diagnostic_print_caret_line): New.
1336 (default_diagnostic_starter): Use diagnostic_location function.
1337 (diagnostic_report_diagnostic): Use diagnostic_location function.
1338 (verbatim): Do not set text.locus.
1339 * diagnostic.h (struct diagnostic_info): Remove location field.
1340 (struct diagnostic_context): Make caret_chars an array of two.
1341 (diagnostic_location): New inline.
1342 (diagnostic_expand_location): Handle two locations.
1343 (diagnostic_same_line): New inline.
1344 (diagnostic_print_caret_line): Declare.
1345 (CARET_LINE_MARGIN): New constant.
1346 * pretty-print.c (pp_printf): Do not set text.locus.
1347 (pp_verbatim): Do not set text.locus.
1348 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
1349 (struct text_info): Replace locus pointer with locations
1350 array. Add accessor functions.
1352 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1353 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1356 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
1357 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
1358 large constants in register instead of splitting them.
1360 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
1363 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
1364 replacements in memory addresses.
1365 (get_unaligned_address): Ditto.
1367 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
1369 PR tree-optimization/64454
1370 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
1371 (-1 - A -> ~A): Remove unnecessary condition.
1373 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
1375 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
1376 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
1377 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
1379 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
1381 * ipa-chkp.h (chkp_wrap_function): New.
1382 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
1383 (chkp_wrap_function_name): New.
1384 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
1385 to get wrapper name.
1386 * lto-cgraph.c: Include ipa-chkp.h.
1387 (input_cgraph_1): Avoid alias chain for wrappers.
1389 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
1392 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
1393 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
1395 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1397 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
1398 (AARCH64_FL_SLOWMUL): Delete.
1399 (AARCH64_FL_CRC): Redefine to 1<<3.
1400 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
1402 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1404 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
1407 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
1409 * config/alpha/alpha.md (extendqidi2): Use general_operand
1410 instead of some_operand for operand[1] predicate.
1411 (extendhidi2): Ditto.
1412 (cbranchdi4): Use general_operand instead of some_operand
1413 for operand[1] and operands[2] predicates.
1415 * config/alpha/predicates.md (some_operand): Remove unused predicate.
1416 (some_ni_operand): Ditto.
1418 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
1420 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
1421 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
1422 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
1423 low part of the constant using alpha_emit_set_const_1.
1424 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
1426 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
1428 * varasm.c (output_constant_pool_1): Pass down alignment from
1429 constant pool entry's descriptor to output_constant_pool_2.
1430 (output_object_block): Add comment prior to call to
1431 output_constant_pool_1.
1433 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
1435 PR rtl-optimization/65862
1436 * target.def (ira_change_pseudo_allocno_class): New hook.
1437 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
1439 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
1440 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
1442 * ira-costs.c (find_costs_and_classes): Call the hook and change
1443 classes when it is necessary.
1444 * doc/tm.texi: Update.
1446 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
1448 * config/i386/i386.md (sibcall_memory): Check that register with
1449 callee address is not also used as one of the arguments, instead
1450 of checking that it is not live after the sibcall.
1451 (sibcall_pop_memory): Ditto.
1452 (sibcall_value_memory): Ditto.
1453 (sibcall_value_pop_memory): Ditto.
1455 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
1457 * generic-match-head.c (types_match): Handle non-types.
1458 * gimple-match-head.c (types_match): Likewise.
1459 * match.pd: Remove unnecessary TREE_TYPE for types_match.
1461 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
1463 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
1464 (csneg3<mode>_insn): Enable expansion of pattern.
1466 2015-05-14 Nick Clifton <nickc@redhat.com>
1468 * config/rl78/rl78.c (rl78_select_section): Select the correct
1469 default section based upon the category of the decl.
1471 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
1473 PR rtl-optimization/30967
1474 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
1475 destination mode for the cost of scc patterns.
1477 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
1479 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
1480 using SWIM248 mode iterator.
1481 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
1482 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
1483 for operand[2] constraint.
1484 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
1486 2015-05-13 Jakub Jelinek <jakub@redhat.com>
1489 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
1490 make sure it is never noreturn, even when the task body does not
1492 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
1493 right before GIMPLE_OMP_RETURN.
1494 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
1495 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
1496 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
1498 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1500 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
1501 * tree-ssa-math-opts.c: Include params.h
1502 (pow_synth_sqrt_info): New struct.
1503 (representable_as_half_series_p): New function.
1504 (get_fn_chain): Likewise.
1505 (print_nested_fn): Likewise.
1506 (dump_fractional_sqrt_sequence): Likewise.
1507 (dump_integer_part): Likewise.
1508 (expand_pow_as_sqrts): Likewise.
1509 (gimple_expand_builtin_pow): Use above to attempt to expand
1510 pow as series of square roots. Removed now unused variables.
1512 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
1514 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
1515 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
1516 Remove *p0 and *p1 arguments. Rewrite function.
1517 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
1518 (alpha_split_const_mov): Update calls to alpha_extract_integer and
1519 alpha_emit_set_long_const.
1520 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
1521 (alpha_output_mi_thunk_osf): Ditto.
1522 * config/alpha/alpha.md (movti): Do not check operands[1]
1525 2015-05-13 Richard Biener <rguenther@suse.de>
1527 PR tree-optimization/66129
1528 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
1530 (vect_schedule_slp_instance): Fix typo.
1532 2015-05-13 David Malcolm <dmalcolm@redhat.com>
1534 * common.opt (fdump-internal-locations): New option.
1535 * input.c: Include diagnostic-core.h.
1536 (get_end_location): New function.
1537 (write_digit): New function.
1538 (write_digit_row): New function.
1539 (dump_location_range): New function.
1540 (dump_labelled_location_range): New function.
1541 (dump_location_info): New function.
1542 * input.h (dump_location_info): New prototype.
1543 * toplev.c (compile_file): Handle flag_dump_locations.
1545 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
1547 * gimple-expr.h (is_gimple_constant): Reorder.
1548 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
1550 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
1552 * combine.c (simplify_set): When generating a CC set, if the
1553 source already is in the correct mode, do not wrap it in a
1554 compare. Simplify the rest of that code.
1556 2015-05-13 Richard Biener <rguenther@suse.de>
1558 PR tree-optimization/66123
1559 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
1562 2015-05-13 Richard Biener <rguenther@suse.de>
1565 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
1567 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
1569 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1571 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
1572 * aclocal.m4: Regenerated with automake-1.11.6.
1574 2015-05-13 Tom de Vries <tom@codesourcery.com>
1576 PR tree-optimization/66010
1577 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
1578 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
1579 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
1580 and rval based on do_deref.
1582 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
1585 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
1586 link time constants into adress expressions and therefore set
1589 2015-05-13 Jakub Jelinek <jakub@redhat.com>
1592 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
1593 Use SWI248 iterator instead of SWI.
1594 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
1595 Use eq_attr "alternative" "0" instead of match_test in
1596 length_immediate attribute computation.
1597 (*mulvhi4, *mulvhi4_1): New define_insns.
1600 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
1601 SIGNED to get precision of non-negative value.
1603 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
1606 * function.c (diddle_return_value_1): Process bounds first.
1607 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
1610 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1612 PR rtl-optimization/64616
1613 * loop-invariant.c (can_move_invariant_reg): New.
1614 (move_invariant_reg): Call above new function to decide whether
1615 instruction can just be moved, skipping creation of temporary
1618 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
1621 * i386.c (ix86_function_sseregparm): Only return -1 if local function
1622 with implied regparm is called from -mno-sse function.
1623 (init_cumulative_args): Output error if ix86_function_sseregparm
1624 return -1 and SSE register would be needed.
1625 (function_arg_advance_32): Likewise.
1626 (function_arg_32): Likewise.
1627 * i386.h (ix86_args): Add decl field.
1629 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
1632 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
1633 inlines across optimization boundary.
1635 2015-05-12 Jason Merrill <jason@redhat.com>
1637 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
1638 string literal and macro name.
1640 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
1642 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
1643 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
1644 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
1646 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1648 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
1649 (-Wmisleading-indentation): New option.
1650 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
1652 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
1654 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
1655 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
1656 (alpha_extract_integer): Ditto.
1657 (alpha_legitimate_constant_p): Ditto.
1658 (alpha_split_tmode_pair): Ditto.
1659 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
1660 (alpha_expand_mov): Ditto.
1661 (print_operand): Remove handling of 'H' modifier.
1662 <case 'm'>: Remove CONST_DOUBLE handling.
1663 (summarize_insn): Handle CONST_WIDE_INT.
1664 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
1666 (movti): Handle CONST_WIDE_INT.
1667 * config/alpha/constraints.md ('H'): Remove constraint definition.
1668 ('G'): Do not match MODE_FLOAT class.
1669 * config/alpha/predicates.md (const0_operand): Also match
1671 (non_add_const_operand): Ditto.
1672 (non_zero_const_operand): Ditto.
1673 (some_operand): Ditto.
1674 (input_operand): Ditto. Handle CONST_WIDE_INT.
1675 (and_operand): Do not match const_double.
1676 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
1678 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
1681 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
1682 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
1683 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
1684 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
1685 is_mm_seq_cst, is_mm_sync): New accessor functions.
1686 * builtins.c (expand_builtin_sync_operation,
1687 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
1688 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
1689 (get_memmodel, expand_builtin_atomic_compare_exchange,
1690 expand_builtin_atomic_load, expand_builtin_atomic_store,
1691 expand_builtin_atomic_clear): Use new accessor routines.
1692 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
1693 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
1694 (maybe_emit_sync_lock_test_and_set): Use new accessors and
1695 MEMMODEL_SYNC_ACQUIRE.
1696 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
1697 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
1698 expand_atomic_store): Use new accessors.
1699 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
1700 * tsan.c (instrument_builtin_call): Update check for memory model beyond
1701 final enum to use MEMMODEL_LAST.
1702 * c-family/c-common.c: Use new accessor for memmodel_base.
1703 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
1705 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
1706 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
1707 mem_thread_fence, *dmb): Likewise.
1708 * config/alpha/alpha.c (alpha_split_compare_and_swap,
1709 alpha_split_compare_and_swap_12): Likewise.
1710 * config/arm/arm.c (arm_expand_compare_and_swap,
1711 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
1712 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
1713 atomic_loaddi): Likewise.
1714 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
1716 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
1717 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
1719 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
1720 atomic_store<mode>, atomic_compare_and_swap<mode>,
1721 atomic_exchange<mode>): Use new accessors.
1722 * config/mips/mips.c (mips_process_sync_loop): Likewise.
1723 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
1724 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
1725 rs6000_post_atomic_barrier): Add new cases.
1726 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
1727 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
1728 (atomic_load<mode>): Add new cases and use new accessors.
1729 (store_quadpti): Add new cases.
1730 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
1732 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
1733 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
1736 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
1738 * ipa-devirt.c (type_with_linkage_p): New function.
1739 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
1741 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
1742 (can_be_name_hashed_p): Simplify.
1743 (hash_odr_name): Check that type has linkage before checking if it is
1745 (types_same_for_odr): Likewise.
1746 (odr_name_hasher::equal): Likewise.
1747 (odr_subtypes_equivalent_p): Likewise.
1748 (warn_types_mismatch): Likewise.
1749 (get_odr_type): Likewise.
1750 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
1751 * ipa-utils.h (odr_type_p): Move offline.
1752 * tree.c (need_assembler_name_p): Fix handling of types
1754 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
1756 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1758 * timevar.c (timevar_enable): Delete in favor of...
1759 (g_timer): New global.
1760 (struct timevar_def): Move to timevar.h inside class timer.
1761 (struct timevar_stack_def): Likewise.
1762 (timevars): Delete global in favor of field "m_timevars" within
1763 class timer in timevar.h
1764 (stack): Likewise, in favor of field "m_stack".
1765 (unused_stack_instances): Likewise, in favor of field
1766 "m_unused_stack_instances".
1767 (start_time): Likewise, in favor of field "m_start_time".
1768 (get_time): Eliminate check for timevar_enable.
1769 (timer::timer): New function, built from part of timevar_init.
1770 (timevar_init): Rewrite idempotency test from using
1771 "timevar_enable" bool to using dynamic allocation of "g_timer".
1772 Move rest of implementation into timer's constructor.
1773 (timevar_push_1): Rename to...
1774 (timer::push): ...this, adding "m_" prefixes to variables that
1775 are now fields of timer.
1776 (timevar_pop_1): Likewise, rename to...
1777 (timer::pop): ...this, and add "m_" prefixes.
1778 (timevar_start): Replace test for "timevar_enable" with one for
1779 "g_timer", and move bulk of implementation to...
1780 (timer::start): ...here, adding "m_" prefixes.
1781 (timevar_stop): Likewise, from here...
1782 (timer::stop): ...to here.
1783 (timevar_cond_start): Likewise, from here...
1784 (timer::cond_start): ...to here.
1785 (timevar_cond_stop): Likewise, from here...
1786 (timer::cond_stop): ...to here.
1787 (validate_phases): Rename to...
1788 (timer::validate_phases): ...this, and add "m_" prefixes. Make
1789 locals "total" and "tv" const.
1790 (timevar_print): Rename to...
1791 (timer::print): ...this, and add "m_" prefixes. Make locals
1792 "total" and "tv" const. Eliminate test for timevar_enable.
1793 * timevar.h (timevar_enable): Eliminate.
1794 (g_timer): New declaration.
1795 (timevar_push_1): Eliminate.
1796 (timevar_pop_1): Eliminate.
1797 (timevar_print): Eliminate.
1798 (class timer): New class.
1799 (timevar_push): Rewrite to use g_timer.
1800 (timevar_pop): Likewise.
1801 * toplev.c (toplev::~toplev): Likewise.
1803 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
1805 * arm-protos.h (arm_sched_autopref): Delete.
1806 (tune_params): Re-organize, use enums for flag values.
1807 (FUSE_OPS): New macro.
1808 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
1809 (ARM_PREFETCH_BENEFICIAL): Likewise.
1810 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
1811 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1812 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
1813 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
1814 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
1815 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
1816 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
1817 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
1819 (arm_option_override, thumb2_reorg, arm_print_tune_info)
1820 (aarch_macro_fusion_pair_p): Update uses of current_tune.
1821 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
1823 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
1825 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
1828 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
1829 Sandra Loosemore <sandra@codesourcery.com>
1831 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
1833 (REG_CLASS_NAMES): Add "IJMP_REGS".
1834 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
1835 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
1836 use new "c" register constraint.
1837 * config/nios2/constraint.md (c): New register constraint
1838 corresponding to IJMP_REGS.
1840 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1842 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
1843 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
1844 define_splits): Delete, revamp, transmogrify into ...
1845 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
1846 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
1847 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
1850 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1852 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
1853 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
1855 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1857 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
1858 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
1859 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
1860 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
1861 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
1862 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
1863 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
1864 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
1865 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
1866 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
1867 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
1868 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
1869 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
1870 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
1871 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
1872 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
1873 and 30 corresponding splitters): Delete.
1875 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1877 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
1880 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1882 * combine.c (recog_for_combine_1): New function, factored out
1883 from recog_for_combine.
1884 (change_zero_ext): New function.
1885 (recog_for_combine): If recog fails, try again with the pattern
1886 modified by change_zero_ext; if that still fails, restore the
1889 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
1891 * combine.c (get_undo_marker): New function.
1892 (undo_to_marker): New function, largely factored out from ...
1893 (undo_all): ... this. Adjust.
1895 2015-05-12 Richard Biener <rguenther@suse.de>
1897 PR tree-optimization/66101
1898 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
1899 fixup if we turn a loop exit edge to a fallthru edge.
1901 2015-05-12 Richard Biener <rguenther@suse.de>
1903 PR tree-optimization/37021
1904 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
1905 (SLP_TREE_TWO_OPERATORS): New define.
1906 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
1907 SLP_TREE_TWO_OPERATORS.
1908 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
1910 (vect_build_slp_tree): Adjust.
1911 (vect_analyze_slp_cost_1): Likewise.
1912 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
1913 emitting two vector stmts and mixing the results.
1915 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1917 * call.c (print_z_candidates): Remove dead code.
1919 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1921 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
1922 and zEC12_simple_fp.
1923 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
1926 2015-05-12 Tom de Vries <tom@codesourcery.com>
1928 PR tree-optimization/66010
1929 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
1931 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
1932 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
1933 va_lists are passed, and remove corresponding handling.
1934 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
1935 do_deref argument to ifn_va_arg.
1936 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
1939 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1942 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
1943 REG before taking its REGNO.
1945 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1947 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
1948 rsp->sign_bit_copies and rsp->nonzero_bits into ...
1949 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
1950 present to get more accurate information about the number of sign bit
1951 copies and non zero bits.
1953 2015-05-12 Richard Biener <rguenther@suse.de>
1955 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
1956 do not allow unrolling.
1958 2015-05-11 Richard Henderson <rth@redhat.com>
1960 * config/i386/i386-modes.def (CCP): New.
1961 * config/i386/i386.c (put_condition_code): Handle it.
1962 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
1964 2015-05-11 Richard Henderson <rth@redhat.com>
1966 * target.def (md_asm_clobbers): Replace with...
1967 (md_asm_adjust): this.
1968 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
1969 (TARGET_MD_ASM_ADJUST): New.
1971 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
1972 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
1973 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
1975 * cfgexpand.c (check_operand_nalternatives): Accept vector of
1976 constraints instead of lists of outputs and inputs.
1977 (expand_asm_stmt): Save and restore input_location around the
1978 body of the function. Move asm data into vectors instead of
1979 building tree lists. Generate cleanup sequences as needed,
1980 rather than waiting til the end. Use new md_asm_adjust hook.
1982 * config/vxworks.c: Include vec.h before target.h.
1983 * gimple.c: Likewise.
1984 * incpath.c: Likewise.
1985 * mode-switching.c: Likewise.
1987 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
1988 (cris_md_asm_adjust): this.
1989 (TARGET_MD_ASM_CLOBBERS): Remove.
1990 (TARGET_MD_ASM_ADJUST): New.
1991 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
1992 (ix86_md_asm_adjust): this.
1993 (TARGET_MD_ASM_CLOBBERS): Remove.
1994 (TARGET_MD_ASM_ADJUST): New.
1995 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
1996 (mn10300_md_asm_adjust): this.
1997 (TARGET_MD_ASM_CLOBBERS): Remove.
1998 (TARGET_MD_ASM_ADJUST): New.
1999 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
2000 (rs6000_md_asm_adjust): this.
2001 (TARGET_MD_ASM_CLOBBERS): Remove.
2002 (TARGET_MD_ASM_ADJUST): New.
2003 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
2004 (visium_md_asm_adjust): this.
2005 (TARGET_MD_ASM_CLOBBERS): Remove.
2006 (TARGET_MD_ASM_ADJUST): New.
2008 2015-05-11 Richard Henderson <rth@redhat.com>
2010 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
2011 if noutputs is zero.
2012 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
2014 * cfgexpand.c (expand_asm_operands): Merge into...
2015 (expand_asm_stmt): ... here.
2017 * cfgexpand.c (expand_asm_operands): Don't call
2018 resolve_asm_operand_names.
2019 * stmt.c (resolve_asm_operand_names): Clarify block comment.
2021 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
2023 * dwarf2out.c (gen_member_die): Sanity check that we access
2024 TYPE_MAIN_VARIANT for TYPE_METHODS.
2025 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
2026 checking TYPE_METHODS.
2027 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
2029 (build_distinct_type_copy): Clear TYPE_METHODS.
2030 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
2031 (verify_type): Allow TYPE_METHODS to be error_mark_node.
2032 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
2034 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
2036 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
2037 (emit_pattern_before_setloc): Likewise.
2039 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
2041 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
2042 for define_peephole2s.
2043 (get_peephole2_pattern): New function.
2044 (main): Use it. Call validate_pattern.
2046 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2048 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
2049 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
2050 (Last callee saved reg is different for AVR_TINY architecture)
2052 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
2054 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
2055 when looking for memory references.
2057 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
2060 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
2061 via function pointers.
2063 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
2065 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
2066 indirect call by forcing address into a pseudo with -fno-plt.
2067 * common.opt (flag_plt): New option.
2068 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
2069 ([-fno-plt]): Document.
2071 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
2074 * config/rs6000/option-defaults.h: Add space between string literal
2077 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
2079 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
2080 accross ARM targets.
2082 2015-05-11 Christian Bruel <christian.bruel@st.com>
2084 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
2085 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
2087 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
2089 PR rtl-optimization/66076
2090 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
2091 Don't grow the heap array if it is already big enough from a
2094 2015-05-11 Christian Bruel <christian.bruel@st.com>
2096 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
2097 (is_called_in_ARM_mode): Remove.
2098 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
2099 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
2100 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
2101 arm_declare_function_name.
2103 2015-05-11 Christian Bruel <christian.bruel@st.com>
2105 * config/arm/arm.c (arm_option_override): Reoganized and split into :
2106 (arm_option_params_internal); New function.
2107 (arm_option_check_internal): New function.
2108 (arm_option_override_internal): New function.
2109 (thumb_code, thumb1_code): Remove.
2110 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
2111 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
2112 (thumb_code, thumb1_code): Remove.
2113 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
2115 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
2117 * config/alpha/alpha.c (alpha_emit_set_const_1)
2118 (alpha_emit_set_long_const, alpha_extract_integer)
2119 (alpha_legitimate_constant_p, alpha_split_const_mov)
2120 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
2121 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2122 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
2124 * config/alpha/predicates.md (mode_mask_operand): Do not match
2126 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2127 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
2128 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
2129 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2130 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
2132 2015-05-11 Jakub Jelinek <jakub@redhat.com>
2135 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
2136 default_binds_local_p_2.
2137 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
2138 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
2140 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2142 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
2144 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2146 Patch by Richard Biener
2147 * coverage.c (coverage_obj_init): Delay building of type variant
2148 until the type is finished.
2150 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2152 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
2153 mismatch between C and C++ type; compoare correctly ARG_TYPES
2154 for non-prototypes and output correctly parameter index for METHOD_TYPE.
2155 (odr_types_equivalent_p): Fix wording of warning about attributes;
2156 it is OK to match prototype and non-prototype.
2158 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2160 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
2161 TYPE_ARG_TYPES list.
2162 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
2163 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
2165 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2167 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
2168 * tree.h (is_lang_specific): Constify.
2170 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
2172 PR tree-optimization/64454
2173 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
2176 2015-05-08 Jason Merrill <jason@redhat.com>
2178 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
2179 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
2180 config/darwin.h, config/darwin9.h, config/elfos.h,
2181 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
2182 config/microblaze/microblaze.h, config/mips/mips.h,
2183 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
2184 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
2185 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2186 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
2187 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
2188 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
2189 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
2190 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
2191 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
2192 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
2193 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
2194 between string literal and macro name.
2196 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2198 * jump.c: Change argument types to rtx_insn *.
2201 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2203 * lra-constraints.c: Change argument type to rtx_insn *.
2205 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2207 * df-problems.c: Change argument type to rtx_insn *.
2209 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2211 * combine.c: Change argument type to rtx_insn *.
2213 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2216 * rtlanal.c: Change argument type to rtx_insn *.
2218 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2220 * sched-deps.c: Change argument types to rtx_insn *.
2221 * sched-int.h: Adjust.
2223 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2225 * dwarf2cfi.c: Change argument type to rtx_insn *.
2227 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2229 * ira.c (decrease_live_ranges_number): Changetype of local
2230 variable to rtx_insn *.
2231 * recog.c: Change argument types to rtx_insn *.
2234 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2236 * reorg.c: Change argument types to rtx_insn *.
2238 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2240 * ira-color.c: Change argument types to rtx_insn *.
2241 * lra-eliminations.c: Likewise.
2244 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2246 * gcse.c: Change argument types to rtx_insn *.
2248 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2250 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
2252 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2254 * emit-rtl.c (emit_debug_insn_before): Change argument type to
2258 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2260 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
2263 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2265 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
2268 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2270 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
2273 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2275 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
2278 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2280 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
2284 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2286 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
2290 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2292 * except.c (can_nonlocal_goto): Change type of argument to
2296 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2298 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
2301 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2303 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
2304 * cfgrtl.c (can_delete_label_p): Adjust.
2307 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2309 * reorg.c (stop_search_p): Change argument to rtx_insn *.
2311 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2313 * except.c (make_reg_eh_region_note): Change argument to
2315 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
2318 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2320 * mode-switching.c (commit_mode_sets): Change type of local
2321 variable from rtx to rtx_insn *.
2323 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
2325 * doc/install.texi (--enable-languages): Add missing jit and lto info.
2326 Add ^ to grep command.
2327 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
2328 arg to last gimple_simplify declaration. Add missing gimple_build
2329 declaration for built-in function case with four tree args.
2331 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
2332 Szabolcs Nagy <szabolcs.nagy@arm.com>
2334 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2335 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
2336 (GNU_USER_DYNAMIC_LINKERN32): Update.
2338 2015-05-08 Richard Biener <rguenther@suse.de>
2340 PR tree-optimization/66036
2341 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2342 Handle strided group loads.
2343 (vect_verify_datarefs_alignment): Likewise.
2344 (vect_enhance_data_refs_alignment): Likewise.
2345 (vect_analyze_group_access): Likewise.
2346 (vect_analyze_data_ref_access): Likewise.
2347 (vect_analyze_data_ref_accesses): Likewise.
2348 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
2349 (vectorizable_load): Likewise.
2351 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
2353 * config/rs6000/rs6000.md: Require operand inequality in one
2356 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
2357 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2359 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
2361 * config/rx/rx.md (movdi, movdf): Likewise.
2362 Likewise for define_peephole2s.
2364 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
2366 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
2367 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
2368 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
2369 vtst_u64): Rewrite using gcc vector extensions.
2371 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
2373 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
2374 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
2376 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
2378 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
2380 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2382 * config/glibc-stdint.h (OPTION_MUSL): Define.
2383 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
2384 Change the definition based on OPTION_MUSL for 64 bit targets.
2385 * config/linux.h (OPTION_MUSL): Redefine.
2386 * config/alpha/linux.h (OPTION_MUSL): Redefine.
2387 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
2388 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
2390 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
2391 Szabolcs Nagy <szabolcs.nagy@arm.com>
2393 * config.gcc (LIBC_MUSL): New tm_defines macro.
2394 * config/linux.h (OPTION_MUSL): Define.
2395 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
2396 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
2397 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2398 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2399 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2400 * config/linux.opt (mmusl): New option.
2401 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
2402 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
2403 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
2404 * configure: Regenerate.
2406 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
2407 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2410 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
2411 * config/i386/knetbsd-gnu64.h: New file.
2413 2015-05-08 Marek Polacek <polacek@redhat.com>
2416 * doc/invoke.texi: Document -Woverride-init-side-effects.
2418 2015-05-07 Marek Polacek <polacek@redhat.com>
2421 * doc/invoke.texi: Document -Wshift-negative-value.
2423 2015-05-06 Aditya Kumar <hiraditya@msn.com>
2425 * gcov-tool.c (do_merge): Refactore to remove int ret.
2426 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
2427 !type == FUNC to type != FUNC.
2428 * reload.h (struct target_reload): Changee to type of
2429 x_spill_indirect_levels from bool to unsigned char.
2431 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
2433 * rtl.h (always_void_p): New function.
2434 * gengenrtl.c (always_void_p): Likewise.
2435 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
2436 with code foo are always VOIDmode.
2437 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
2438 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
2439 compare-elim.c, config/aarch64/aarch64.c,
2440 config/aarch64/aarch64.md, config/alpha/alpha.c,
2441 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
2442 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
2443 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
2444 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2445 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
2446 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
2447 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
2448 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
2449 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
2450 config/ia64/vect.md, config/iq2000/iq2000.c,
2451 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
2452 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
2453 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
2454 config/mep/mep.c, config/microblaze/microblaze.c,
2455 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
2456 config/mn10300/mn10300.c, config/msp430/msp430.c,
2457 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
2458 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
2459 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
2460 config/rs6000/altivec.md, config/rs6000/rs6000.c,
2461 config/rs6000/rs6000.md, config/rs6000/vector.md,
2462 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
2463 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
2464 config/sh/sh.md, config/sh/sh_treg_combine.cc,
2465 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
2466 config/spu/spu.md, config/stormy16/stormy16.c,
2467 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
2468 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
2469 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
2470 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
2471 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
2472 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
2473 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
2474 var-tracking.c: Update calls accordingly.
2476 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
2480 * varasm.c (function_mergeable_rodata_prefix): New function.
2481 (mergeable_string_section): Use it.
2482 (mergeable_constant_section): Use it.
2484 2015-05-07 Jeff Law <law@redhat.com>
2486 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2487 simplifier to narrow arithmetic.
2488 * generic-match-head.c: (types_match, single_use): New functions.
2489 * gimple-match-head.c: (types_match, single_use): New functions.
2491 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2493 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
2496 2015-05-07 Richard Biener <rguenther@suse.de>
2498 PR tree-optimization/66002
2499 * passes.def: Schedule another pass_merge_phi after ifcombine, right
2502 2015-05-07 Marek Polacek <polacek@redhat.com>
2503 Martin Uecker <uecker@eecs.berkeley.edu>
2505 * doc/invoke.texi: Document -fsanitize=bounds-strict.
2506 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
2507 into SANITIZE_NONDEFAULT.
2508 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
2510 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
2513 * config/alpha/alpha.c (alpha_override_options_after_change): New.
2514 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
2515 (alpha_override_options): Move align_loops, align_jumps and
2516 align_functions handling into alpha_override_options_after_change.
2518 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
2519 Chris Jones <chrisj@nvidia.com>
2520 Joshua Conner <jconner@nvidia.com>
2522 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
2523 linking of crtfastmath.o.
2524 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
2526 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2528 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
2529 (cstore<mode>4_unsigned_imm): New expander.
2530 (cstore<mode>4): Remove empty constraint strings. Use the new
2533 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
2536 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
2539 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
2541 * config/aarch64/geniterators.sh: Use standard BRE in sed.
2543 2015-05-06 Alan Modra <amodra@gmail.com>
2546 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
2547 (UNSPEC_NOP): Define.
2548 (reload_vsx_from_gpr<mode>): Add missing DONE.
2549 (reload_gpr_from_vsx<mode>): Likewise.
2550 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
2551 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
2553 2015-05-06 Christian Bruel <christian.bruel@st.com>
2556 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
2557 align_jumps, align_functions into aarch64_override_options_after_change.
2559 2015-05-06 Richard Biener <rguenther@suse.de>
2561 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
2562 vect_transform_slp_perm_load to check if we support a permutation
2563 for basic-block vectorization.
2565 2015-05-06 Nick Clifton <nickc@redhat.com>
2567 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
2568 used, even if it is not being used as a frame pointer.
2570 2015-05-05 Jason Merrill <jason@redhat.com>
2572 * dwarf2out.c (gen_member_die): Don't emit anything for an
2573 anonymous class constructor.
2575 2015-05-05 David Malcolm <dmalcolm@redhat.com>
2577 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
2578 that it reflects the block structure.
2579 (afdo_propagate_edge): Likewise.
2580 (afdo_calculate_branch_prob): Likewise.
2581 (afdo_annotate_cfg): Likewise.
2582 * cfgcleanup.c (equal_different_set_p): Likewise.
2583 (try_crossjump_to_edge): Likewise.
2584 * cgraph.c (cgraph_node::verify_node): Likewise.
2585 * cgraphunit.c (expand_all_functions): Likewise.
2586 * config/i386/i386.c (ix86_expand_copysign): Likewise.
2587 (exact_dependency_1): Likewise.
2588 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
2589 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
2590 * gensupport.c (process_define_subst): Likewise.
2591 * lto-wrapper.c (merge_and_complain): Likewise.
2592 * tree-if-conv.c (if_convertible_bb_p): Likewise.
2593 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
2594 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
2595 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2596 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2597 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2598 * tree-vect-stmts.c (vectorizable_shift): Likewise.
2599 * tree-vrp.c (vrp_finalize): Likewise.
2600 * tree.c (variably_modified_type_p): Likewise.
2602 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
2604 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
2605 on darwin12 and later.
2606 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
2607 file to pass -rdynamic on darwin12 and later.
2608 * config/darwin.opt (rdynamic): Add.
2610 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
2612 * doc/extend.texi (C Extensions): Update menu for moved Variable
2613 Attributes and Type Attributes sections.
2615 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
2618 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
2619 if rep_8byte stringop strategy was specified for 32-bit target.
2621 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
2624 * config/i386/i386.md (vector convert to float spltiter): Check for
2625 xmm16+, when splitting scalar float conversion.
2626 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
2628 2015-05-05 Nick Clifton <nickc@redhat.com>
2630 * config/msp430/msp430-opts.h (enum msp430_regions): New.
2631 * config/msp430/msp430.c (msp430_override_options): Complain if
2632 -mcode-region or -mdata-region is used on a non MSP430X.
2633 (msp430_section_attr): New function. Checks lower, upper and
2635 (msp430_attribute_table): Add lower, upper and either.
2636 (gen_prefix): New function. Generates a prefix for a section
2638 (msp430_select_section): New function - handles the choice of
2639 section for an object. Takes into account memory region
2640 attributes and options.
2641 (msp430_function_section): Use gen_prefix.
2642 (TARGET_SECTION_TYPE_FLAGS): Define.
2643 (msp430_section_type_flags): New function.
2644 (TARGET_ASM_UNIQUE_SECTION): Define.
2645 (msp430_unique_section): New function.
2646 (msp430_output_aligned_decl_common): New function.
2647 (msp430_do_not_relax_short_jumps): New function.
2648 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
2650 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2651 * config/msp430/msp430-protos.h
2652 (msp430_do_not_relax_short_jumps): New prototype.
2653 (msp430_output_aligned_decl_common): New prototype.
2654 * config/msp430/msp430.md (length): New attribute.
2655 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
2656 then use a long code sequence for short jumps.
2657 * config/msp430/msp430.opt (mcode-region): New.
2658 (mdata-region): New.
2659 * doc/invoke.texi: Document new options.
2660 * doc/extend.texi: Document new attributes.
2662 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
2664 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
2665 (tune_params): Add field branch_costs.
2666 (aarch64_branch_cost): Declare.
2667 * gcc/config/aarch64.c (generic_branch_cost): New.
2668 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
2669 (cortexa53_tunings): Likewise.
2670 (cortexa57_tunings): Likewise.
2671 (thunderx_tunings): Likewise.
2672 (xgene1_tunings): Likewise.
2673 (aarch64_branch_cost): Define.
2674 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
2676 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
2678 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
2679 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
2680 * config/i386/i386.md: Ditto.
2681 * config/i386/winnt.c: Ditto.
2683 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
2685 * doc/extend.texi (__atomic Builtins): Move implementation details
2686 to the end of the description, rewrite opening paragraphs, state
2687 difference with __sync builtins, state C11/C++11 assumptions,
2688 weaken itemized descriptions, add explanation of memory model
2689 behaviour, expand description of compare-exchange, simplify text.
2691 2015-05-05 Renlin Li <renlin.li@arm.com>
2693 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
2695 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
2697 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
2698 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2699 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
2700 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2701 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
2702 * configure: Regenerate.
2703 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
2704 * doc/install.texi (aarch64*-*-*): Document new
2705 --enable-fix-cortex-a53-843419 option.
2706 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
2707 and -mno-fix-cortex-a53-843419 options.
2709 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
2712 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
2714 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
2716 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
2717 fix overactive TYPE_MIN_VALUE check and add FIXME for type
2718 compatibility problems.
2720 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
2722 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
2724 (cbranchsi4_reg): New.
2725 * config/microblaze/microblaze.c
2726 (microblaze_expand_conditional_branch_reg): New.
2727 * config/microblaze/microblaze-protos.h
2728 (microblaze_expand_conditional_branch_reg): New prototype.
2730 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
2732 * config/microblaze/microblaze.md (peephole2): New.
2734 2015-05-04 Jeff Law <law@redhat.com>
2737 2015-05-04 Jeff Law <law@redhat.com>
2739 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2740 simplifier to narrow arithmetic.
2741 * generic-match-head.c: (types_match, single_use): New functions.
2742 * gimple-match-head.c: (types_match, single_use): New functions.
2744 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
2747 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
2748 (split_branches): Likewise.
2750 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
2752 * common.opt (fdelete-null-pointer-checks): Init to -1.
2753 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
2754 override flag_delete_null_pointer_checks default.
2755 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
2756 behavior re address zero. Better document target-specific behavior.
2757 (-fisolate-errneous-paths-dereference): Mention relationship to
2758 -fdelete-null-pointer-checks.
2760 2015-05-04 Jakub Jelinek <jakub@redhat.com>
2762 PR tree-optimization/65984
2763 * ubsan.c: Include tree-cfg.h.
2764 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
2765 stmt_could_throw_p test, rename can_throw variable to ends_bb.
2767 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
2769 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
2770 to CONST_DOUBLE_P predicate.
2771 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
2772 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
2773 allow only operands that satisfy standard_sse_constant_p predicate.
2774 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
2775 to CONST_DOUBLE_P predicate.
2777 2015-05-04 Jeff Law <law@redhat.com>
2779 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2780 simplifier to narrow arithmetic.
2781 * generic-match-head.c: (types_match, single_use): New functions.
2782 * gimple-match-head.c: (types_match, single_use): New functions.
2784 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
2786 * config/arm/arm.c: Restore bootstrap.
2788 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
2790 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
2791 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
2792 as CONST_WIDE_INT, not CONST_DOUBLE.
2793 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
2794 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
2795 (ix86_find_base_term): Do not check for CONST_DOUBLE.
2796 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
2797 (ix86_build_signbit_mask): Rewrite using wide ints.
2798 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
2799 (ix86_rtx_costs): Handle CONST_WIDE_INT.
2800 (find_constant): Ditto.
2801 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
2803 * config/i386/predicates.md (x86_64_immediate_operand)
2804 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
2805 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
2806 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
2807 (const0_operand): Also match const_wide_int.
2808 (constm1_operand): Ditto.
2809 (const1_operand): Ditto.
2811 2015-05-04 Richard Biener <rguenther@suse.de>
2813 PR tree-optimization/65965
2814 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
2815 store groups at gaps.
2817 2015-05-04 Richard Biener <rguenther@suse.de>
2819 PR tree-optimization/65935
2820 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
2821 then make sure to apply that swapping to the IL.
2823 2015-05-04 Jakub Jelinek <jakub@redhat.com>
2825 * Makefile.in (PATCHLEVEL_c): New variable.
2826 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
2827 expand the same way as if DEVPHASE_c was non-empty.
2829 2015-05-04 Kai Tietz <ktietz@redhat.com>
2832 * lto-wrapper.c (run_gcc): Open filename
2835 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
2837 * doc/extend.texi (Variable Attributes, Type Attributes): Move
2838 sections up in file, to immediately after the Function Attributes
2841 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
2843 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
2845 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2847 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
2848 (insert_partition_copy_on_edge): Adjust.
2849 (insert_rtx_to_part_on_edge): Likewise.
2850 (insert_part_to_rtx_on_edge): Likewise.
2852 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2854 * function.c (set_return_jump_label): Change type of argument to
2856 * function.h (set_return_jump_label): Adjust.
2858 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2860 * reload.h (struct reg_equivs_t): Change type of init to
2862 * ira.c (fix_reg_equiv_init): Adjust.
2863 * reload1.c (eliminate_regs_1): Likewise.
2864 (init_eliminable_invariants): Likewise.
2866 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2868 * cselib.c (fp_setter_insn): Take a rtx_insn *.
2869 * cselib.h (fp_setter_insn): Adjust.
2871 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2873 * recog.c (struct validate_replace_src_data): Change type of
2874 insn field to rtx_insn *.
2875 (validate_replace_src_group): Change type of argument to rtx_insn *.
2876 * recog.h (validate_replace_src_group): Adjust.
2878 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2880 * haifa-sched.c: Change the type of some variables to rtx_insn *.
2881 * sched-deps.c: Likewise.
2882 * sched-int.h: Likewise.
2883 * sched-rgn.c: Likewise.
2884 * sel-sched.c: Likewise.
2886 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2889 * config/i386/i386.c: Change the type of some arguments to
2891 * config/arm/arm.c: Likewise.
2893 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2895 * lra-constraints.c: Change type of some arguments to rtx_insn *.
2897 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2899 * regcprop.c (kill_autoinc_value): Change type of argument to
2902 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2904 * genrecog.c (print_subroutine): Adjust.
2905 * recog.c (get_bool_attr_mask_uncached): Likewise.
2906 * recog.h (struct recog_data_d): Change the type of insn to
2909 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2911 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
2913 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2915 * df-problems.c (df_set_note): Change type of argument to
2918 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2920 * builtins.c (expand_builtin_trap): Change type of local
2921 variable to rtx_insn *.
2922 (add_sched_insns_for_speculation): Likewise.
2923 (ix86_emit_save_regs): Likewise.
2924 (get_scratch_register_on_entry): Likewise.
2925 (ix86_emit_restore_reg_using_pop): Likewise.
2926 (ix86_emit_leave): Likewise.
2927 (ix86_emit_restore_regs_using_mov): Likewise.
2928 (ix86_expand_epilogue): Likewise.
2930 (rl78_alloc_physical_registers_umul): Likewise.
2931 * cselib.c (discard_useless_locs): Likewise.
2932 (cselib_invalidate_regno): Likewise.
2933 (cselib_invalidate_mem): Likewise.
2934 * function.c (expand_function_start): Likewise.
2935 (emit_use_return_register_into_block): Likewise.
2937 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
2938 * ifcvt.c (noce_get_alt_condition): Likewise.
2939 * loop-doloop.c (doloop_condition_get): Likewise.
2940 * lra-constraints.c (inherit_in_ebb): Likewise.
2941 * modulo-sched.c (sms_schedule_by_order): Likewise.
2942 * recog.c (next_insn_tests_no_inequality): Likewise.
2943 * reorg.c (emit_delay_sequence): Likewise.
2944 (update_reg_dead_notes): Likewise.
2945 (fix_reg_dead_note): Likewise.
2946 (fill_slots_from_thread): Likewise.
2947 (delete_computation): Likewise.
2949 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
2951 * doc/extend.texi (Variable Attributes): Add menu and proper
2952 @nodes to subsections. Move Microsoft Windows attributes to
2953 their own subsection.
2954 (Type Attributes): Reorganize introduction to remove duplicate
2955 list of attributes. Add menu and proper @nodes to subsections.
2956 Alphabetize the main table of common attributes.
2958 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
2960 * match.pd: New simplification patterns.
2961 (x + (x & 1)) -> ((x + 1) & ~1)
2962 (x & ~(x & y)) -> ((x & ~y))
2963 (x | ~(x | y)) -> ((x | ~y))
2965 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2967 * target.def (attribute_table): Mention that struct attribute_spec
2968 is defined in tree-core.h rather than tree.h
2969 * doc/tm.texi: Regenerate.
2971 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
2973 * genrecog.c (test): Rename to rtx_test. Update rest of file
2976 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
2978 PR translation/65959
2979 * params.h (DEFPARAM): Rename msgid to nocmsgid.
2981 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
2983 * gcc/config/aarch64/aarch64-protos.h (tune_params):
2984 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
2985 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
2986 Return value depending on target.
2987 (generic_tunings): Initialize new target settings.
2988 (cortexa53_tunings): Likewise.
2989 (cortexa57_tunings): Likewise.
2990 (thunderx_tunings): Likewise.
2991 (xgene1_tunings): Likewise.
2993 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
2995 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
2996 Make Cortex-A53 shift costs more accurate.
2998 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3000 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
3003 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
3005 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
3006 Calculate cost of op0 and op1 in PLUS and MINUS cases.
3008 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3010 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3011 Add cost of op0 in the compare-with-fpzero case.
3013 2015-04-30 David Malcolm <dmalcolm@redhat.com>
3015 * builtins.c (fold_builtin_1): Remove spurious second
3017 * cgraph.h (symtab_node::get_availability): Likewise.
3018 * opts.c (common_handle_option): Remove spurious second semicolon.
3019 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3020 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3022 2015-04-30 Caroline Tice <cmtice@google.com>
3024 PR gcov-profile/65929
3025 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
3026 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
3027 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
3028 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
3029 * doc/tm.texi: Regenerate.
3030 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
3031 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
3032 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
3033 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
3035 2015-04-30 Marek Polacek <polacek@redhat.com>
3037 * varasm.c (handle_cache_entry): Fix logic.
3039 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3041 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
3042 (*extrsi5_insn_uxtw_alt): Likewise.
3043 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
3044 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
3047 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3049 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
3052 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3054 * config/aarch64/aarch64.md
3055 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
3056 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
3057 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
3058 appropriately. Handle alternative EON form.
3060 2015-04-30 Renlin Li <renlin.li@arm.com>
3062 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
3063 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
3065 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
3068 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
3069 -fstrict-aliasing boundaries.
3071 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3073 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
3074 and [SU]MNEGL patterns.
3076 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3078 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
3079 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
3080 combined arithmetic-shift ops. Properly handle all shift and extend
3081 operations that can occur in combination with PLUS/MINUS.
3082 Rename maybe_fma to compound_p.
3083 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
3084 arithmetic and shift operations.
3086 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3088 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
3089 rather than arith_shift cost when costing ADD/MINUS of an
3092 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
3095 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
3098 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
3100 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
3101 are for the same position.
3103 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
3105 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
3107 (vectorize_loops): Use it.
3109 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
3111 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
3112 for aggregate types.
3113 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
3115 * tree.c (need_assembler_name_p): Compute mangled name for
3116 non-fundamental types and integer types.
3118 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
3120 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
3122 * expr.c (expand_expr_real_2): Likewise.
3124 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
3126 * tree.c (build_common_builtin_nodes): Do not build
3127 __builtin_alloca_with_align as equivalent of library alloca.
3129 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
3131 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
3132 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
3134 * tree.c: Include print-tree.h and ipa-utils.h
3135 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
3136 (free_lang_data_in_cgraph): Call verify_type.
3137 (verify_type_variant): New function.
3138 (verify_type): New function.
3139 * tree.h (verify_type): Declare.
3141 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
3143 * config/mips/mips-cpus.def: (mips4): Change default processor
3144 from PROCESSOR_R8000 to PROCESSOR_R10000.
3146 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
3148 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
3149 la/jalr instead of jal.
3151 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
3154 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
3155 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
3156 (setcc+movzbl peephole2): Check also clobbered reg.
3157 (setcc+andl peephole2): Ditto.
3159 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
3162 * config/nvptx/mkoffload.c (target_ilp32): New variable.
3163 (main): Set it depending on "-foffload-abi=[...]".
3164 (compile_native, main): Use it to pass "-m32" or "-m64" to the
3167 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
3170 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
3171 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
3172 Flip lane index back at assembly time for bigendian.
3174 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
3176 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
3177 * gimplify.c (gimplify_omp_workshare): Use it.
3179 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
3181 * Makefile.in (build/genrecog.o): Depend on inchash.h.
3182 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
3184 * genrecog.c: Rewrite most of the code except for the third page.
3186 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
3188 * inchash.h, inchash.c: Include bconfig.h for build objects.
3189 * Makefile.in (build/inchash.o): New rule.
3191 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
3194 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
3195 number in type attribute expression.
3197 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
3199 * loop-iv.c (canon_condition): Generalize to all types of integer
3202 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
3204 * gimple-walk.c: Prune duplicate or unneeded includes.
3205 (walk_gimple_asm): Only call parse_input_constraint or
3206 parse_output_constraint if their findings are used.
3207 Honour parse_input_constraint and parse_output_constraint
3210 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
3212 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
3214 2015-04-29 Tom de Vries <tom@codesourcery.com>
3216 PR tree-optimization/65893
3217 * passes.def (pass_all_optimizations): Move pass_stdarg to after
3220 2015-04-29 Richard Biener <rguenther@suse.de>
3222 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3223 compute GROUP_SIZE for basic-block SLP.
3224 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
3225 take into account gaps.
3226 (vect_get_mask_element): Properly reject references to previous
3228 (vect_transform_slp_perm_load): Likewise.
3230 2015-04-29 Christian Bruel <christian.bruel@st.com>
3233 * config/i386/i386.c (ix86_default_align): New function.
3234 (ix86_override_options_after_change): Call ix86_default_align.
3235 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
3236 (ix86_override_options_after_change): New function.
3238 2015-04-28 Jeff Law <law@redhat.com>
3240 * tree-ssa-dom.c (record_equality); Fix comment typos.
3242 2015-04-28 Tom de Vries <tom@codesourcery.com>
3244 PR tree-optimization/65887
3245 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
3247 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
3249 * doc/extend.texi (Declaring Attributes of Functions): Split into
3250 subsections by target. Alphabetize the table of common attributes.
3251 Rewrite some of the introductory text to reflect the new structure.
3252 Update some cross-references to point to the new subsections.
3253 (Attribute Syntax): Put paragraph about "__" naming here. Remove
3254 duplicate copies in the discussion of function, label, and type
3257 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
3260 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
3262 2015-04-28 Jason Merrill <jason@redhat.com>
3265 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
3266 (finalize_type_size): Respect TYPE_USER_ALIGN.
3267 (layout_type) [ARRAY_TYPE]: Likewise.
3269 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
3271 * config/arm/arm.md (*arm_movt): Fix type attribute.
3272 (*cmpsi_shiftsi): Likewise.
3273 (*cmpsi_shiftsi_swp): Likewise.
3274 (*movsicc_insn): Likewise.
3275 (*cond_move): Likewise.
3276 (*if_plus_move): Likewise.
3277 (*if_move_plus): Likewise.
3278 (*if_arith_move): Likewise.
3279 (*if_move_arith): Likewise.
3280 (*if_shift_move): Likewise.
3281 (*if_move_shift): Likewise.
3282 (*arm_movtas_ze): Likewise.
3283 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
3284 redundancy and type attribute.
3285 (*thumb2_movsi_insn): Fix type attribute.
3286 (*thumb2_addsi_short): Likewise.
3287 (thumb2_addsi3_compare0): Likewise.
3288 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
3289 attributes accordingly.
3291 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
3294 * function.c (pad_to_arg_alignment): Add parentheses.
3296 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
3298 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
3299 libgcc/config/frv/elf-lib.h.
3301 2015-04-28 Tom de Vries <tom@codesourcery.com>
3303 * tree-call-cdce.c: Fix example in header comment.
3305 2015-04-28 Richard Biener <rguenther@suse.de>
3307 PR tree-optimization/62283
3308 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
3309 fails fatally and we are vectorizing a basic-block simply
3310 cause the child to be constructed piecewise.
3311 (vect_analyze_slp_cost_1): Adjust.
3312 (vect_detect_hybrid_slp_stmts): Likewise.
3313 (vect_bb_slp_scalar_cost): Likewise.
3314 (vect_get_constant_vectors): For piecewise constructed
3315 constants place them after the last def.
3316 (vect_get_slp_defs): Adjust.
3317 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
3318 externals for basic-block vectorization.
3320 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
3323 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
3325 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
3326 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
3327 (AARCH64_TUNE_FMA_STEERING): Likewise.
3328 * config/aarch64/aarch64-cores.def: Set
3329 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
3330 FMUL/FMADD instructions.
3331 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
3332 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
3333 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
3334 * config/aarch64/cortex-a57-fma-steering.h: New file.
3335 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3337 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
3339 * gensupport.c (std_preds): Add missing codes to address_operand entry.
3341 2015-04-28 Richard Biener <rguenther@suse.de>
3343 PR tree-optimization/65851
3344 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
3345 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
3346 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
3347 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
3348 (ccp_visit_phi_node): Adjust.
3349 (evaluate_stmt): For simplifications to SSA names return its
3350 lattice value if that isn't VARYING. Return immediately when
3351 simplified to a constant.
3352 (visit_assignment): Adjust.
3353 (ccp_visit_stmt): Likewise.
3355 2015-04-28 Tom de Vries <tom@codesourcery.com>
3357 PR tree-optimization/65818
3358 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
3361 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3363 * calls.c (save_fixed_argument_area): Don't check
3364 ARGS_GROW_DOWNWARD with the preprocessor.
3365 (restore_fixed_argument_area): Likewise.
3366 (mem_overlaps_already_clobbered_arg_p): Likewise.
3367 (check_sibcall_argument_overlap): Likewise.
3368 (expand_call): Likewise.
3369 (emit_library_call_value_1): Likewise.
3370 (store_one_arg): Likewise.
3371 * function.c (assign_parms): Likewise.
3372 (locate_and_pad_parm): Likewise.
3373 (pad_to_arg_alignment): Likewise.
3374 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
3376 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3378 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
3379 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
3380 * calls.c (save_fixed_argument_area): Don't chekc if
3381 ARGS_GROW_DOWNWARD is defined.
3382 (restore_fixed_argument_area): Likewise.
3383 (mem_overlaps_already_clobbered_arg_p): Likewise.
3384 (check_sibcall_argument_overlap): Likewise.
3385 (expand_call): Likewise.
3386 (emit_library_call_value_1): Likewise.
3387 (store_one_arg): Likewise.
3388 * function.c (assign_parms): Likewise.
3389 (locate_and_pad_parm): Likewise.
3390 (pad_to_arg_alignment): Likewise.
3391 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
3393 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3395 * defaults.h (gen_epilogue): New function.
3396 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
3398 * cfgrtl.c (cfg_layout_finalize): Likewise.
3399 * df-scan.c: Likewise.
3400 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3401 (reposition_prologue_and_epilogue_notes): Likewise.
3402 * reorg.c (find_end_label): Likewise.
3403 * toplev.c: Likewise.
3405 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3407 * bb-reorder.c (HAVE_return): Don't check if its undefined.
3408 * defaults.h (gen_simple_return): New function.
3409 (gen_simple_return): Likewise.
3410 (HAVE_return): Add default definition to false.
3411 (HAVE_simple_return): Likewise.
3412 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
3413 HAVE_return and HAVE_simple_return are defined.
3414 * function.c (gen_return_pattern): Likewise.
3415 (convert_jumps_to_returns): Likewise.
3416 (thread_prologue_and_epilogue_insns): Likewise.
3417 * reorg.c (find_end_label): Likewise.
3418 (dbr_schedule): Likewise.
3419 * shrink-wrap.c: Likewise.
3420 * shrink-wrap.h: Likewise.
3422 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3424 * defaults.h (EPILOGUE_USES): Add default definition of false.
3425 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
3426 * resource.c (init_resource_info): Likewise.
3428 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3430 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
3432 * dwarf2out.c (field_byte_offset): REmove check if
3433 PCC_BITFIELD_TYPE_MATTERS is defined.
3434 * stor-layout.c (layout_decl): Likewise.
3435 (update_alignment_for_field): Likewise.
3436 (place_field): Likewise.
3438 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3440 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
3442 * regrename.c (check_new_reg_p): Remove check if
3443 HARD_REGNO_RENAME_OK is defined.
3444 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
3446 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3448 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
3449 * cse.c (fold_rtx): Likewise.
3450 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
3451 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
3452 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
3453 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
3454 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
3455 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
3456 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
3457 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
3458 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
3459 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
3461 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
3462 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
3463 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
3464 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
3465 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
3466 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
3467 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
3468 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
3469 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
3470 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
3471 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
3472 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
3473 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
3474 * doc/tm.texi: Regenerate.
3475 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
3476 either true or false.
3478 2015-04-27 Jeff Law <law@redhat.com>
3480 PR tree-optimization/65217
3481 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
3482 of them has a single use, make sure it is the LHS of the implied
3485 2015-04-28 Alan Modra <amodra@gmail.com>
3488 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
3489 (offsettable_ok_by_alignment): Use minimum of decl and toc
3490 pointer alignment. Replace dead code with assertion.
3491 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
3492 case if size exceeds toc pointer alignment.
3493 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
3494 (rs6000_emit_move): Likewise.
3495 * configure.ac: Add linker toc pointer alignment check.
3496 * configure: Regenerate.
3497 * config.in: Regenerate.
3499 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
3501 * config.gcc: Add h8300-*-linux.
3502 * config/h8300/linux.h: New.
3503 * config/h8300/t-linux: New.
3504 * config/h8300/h8300.c (h8300_option_override): Normal mode
3505 is not supported for h8300-*-linux.
3506 (h8300_file_start): Target priority change.
3507 (get_shift_alg): Likewise.
3508 (h8300_shift_need_scratch_p): Likewise.
3509 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3510 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
3512 2015-04-27 Caroline Tice <cmtice@google.com>
3514 * final.c (final_scan_insn): Output cold_function_name as function
3516 * varasm.c (cold_function_name): Make global.
3517 (assemble_start_function): Re-set cold_function_name.
3518 (assemble_end_function): Output cold partition size.
3519 * varasm.h (cold_function_name): Declare global.
3521 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
3523 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
3524 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
3526 (*movxi_internal_avx512f): Ditto.
3527 (define_split): Check for xmm16+, when splitting scalar float_extend.
3528 (*extendsfdf2_mixed): Use "v" constraint.
3529 (define_split): Check for xmm16+, when splitting scalar float_truncate.
3530 (*truncdfsf_fast_sse): Use "v" constraint.
3531 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
3532 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
3533 (define_peephole2): Check for xmm16+, when converting scalar
3535 (define_peephole2): Check for xmm16+, when converting scalar
3537 (*fop_<mode>_comm_mixed): Use "v" constraint.
3538 (*fop_<mode>_comm_sse): Ditto.
3539 (*fop_<mode>_1_mixed): Ditto.
3540 (*sqrt<mode>2_sse): Ditto.
3541 (*ieee_s<ieee_maxmin><mode>3): Ditto.
3543 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3545 * combine.c (simplify_if_then_else): Use std::swap instead
3546 of manually swapping.
3547 (known_cond): Likewise.
3548 (simplify_comparison): Likewise.
3550 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
3553 * config/rs6000/htm.md: Remove all define_expands.
3554 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
3555 UNSPECV_HTM_TABORTWCI): Remove.
3556 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
3557 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
3558 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
3559 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
3560 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
3561 tabortwci_internal): Remove define_insns.
3562 (tabort<wd>c, tabort<wd>ci): New define_insns.
3563 (tabort): Use gpc_reg_operand.
3564 (tcheck): Remove operand.
3565 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
3566 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
3568 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
3569 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
3570 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
3571 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
3572 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
3573 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
3574 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
3575 (tcheck): Remove builtin argument.
3576 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
3578 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
3579 tabortdc and tabortdci builtins when not in 64-bit mode.
3580 Modify code to handle the loss of the HTM define_expands.
3581 Emit code to copy the CR register to TARGET.
3582 (htm_init_builtins): Modify code to handle the loss of the HTM
3584 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
3585 (RS6000_BTC_64BIT): Likewise.
3586 (RS6000_BTC_CR): New macro.
3587 * doc/extend.texi: Update documentation for htm builtins.
3589 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3591 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
3592 of manually swapping.
3593 (simplify_associative_operation): Likewise.
3594 (simplify_binary_operation): Likewise.
3595 (simplify_plus_minus): Likewise.
3596 (simplify_relational_operation): Likewise.
3597 (simplify_ternary_operation): Likewise.
3599 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
3601 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
3602 (xs_hi_nonmemory_operand): Remove error.
3603 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
3604 general_operand rather than xs_hi_general_operand.
3606 2015-04-27 Richard Biener <rguenther@suse.de>
3608 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
3609 (record_equivalences_from_stmt): Valueize rhs.
3610 (record_equality): Canonicalize x and y order via
3611 tree_swap_operands_p. Do not swap operands for same loop depth.
3613 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
3617 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
3618 Add hint how to use own spec file.
3620 2015-04-27 Jakub Jelinek <jakub@redhat.com>
3622 PR tree-optimization/65875
3623 * tree-vrp.c (update_value_range): If in is_new case setting
3624 old_vr to VR_VARYING, also set new_vr to it. Remove
3625 old_vr->type == VR_VARYING test.
3626 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
3627 SSA_PROP_INTERESTING if update_value_range returned true,
3628 but new range is VR_VARYING.
3630 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
3632 * combine.c (sign_extend_short_imm): New.
3633 (set_nonzero_bits_and_sign_copies): Use above new function for sign
3634 extension of src short immediate.
3635 (reg_nonzero_bits_for_combine): Likewise for tem.
3637 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
3639 * stor-layout.c (self_referential_component_ref_p): New predicate.
3640 (copy_self_referential_tree_r): Use it.
3641 (self_referential_size): Punt for simple operations directly involving
3642 self-referential component references.
3643 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
3645 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
3647 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
3649 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
3651 * vec.h (vec): Make splice arguments const. Update definitions
3654 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
3656 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
3659 2015-04-26 Tom de Vries <tom@codesourcery.com>
3661 PR tree-optimization/65826
3662 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
3664 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
3666 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
3667 (*madd3<mode>): Ditto.
3668 (*msub4<mode>): Ditto.
3669 (*msub3<mode>): Ditto.
3670 (*nmadd4<mode>): Ditto.
3671 (*nmadd3<mode>): Ditto.
3672 (*nmadd4<mode>_fastmath): Ditto.
3673 (*nmadd3<mode>_fastmath): Ditto.
3674 (*nmsub4<mode>): Ditto.
3675 (*nmsub3<mode>): Ditto.
3676 (*nmsub4<mode>_fastmath): Ditto.
3677 (*nmsub3<mode>_fastmath): Ditto.
3679 2015-04-24 Jason Merrill <jason@redhat.com>
3682 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
3683 down when building TYPE_CANONICAL.
3684 (build_pointer_type_for_mode): Likewise.
3686 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
3688 * genrecog.c (validate_pattern): Check matching constraint refers
3689 to a lower numbered operand.
3691 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3694 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
3695 save to independent variables use the Save attribute. This will
3696 allow these options to be modified with the #pragma/attribute
3698 (-mallow-movmisalign): Likewise.
3699 (-mallow-df-permute): Likewise.
3700 (-msched-groups): Likewise.
3701 (-malways-hint): Likewise.
3702 (-malign-branch-targets): Likewise.
3703 (-mvectorize-builtins): Likewise.
3704 (-msave-toc-indirect): Likewise.
3706 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
3707 can be set via the #pragma/attribute target support.
3708 (rs6000_opt_vars): Likewise.
3709 (rs6000_inner_target_options): If VSX was set, also set
3710 -mno-avoid-indexed-addresses.
3712 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3714 * config/arm/iterators.md (shiftable_ops): Rename to...
3715 (SHIFTABLE_OPS): ... This. Update use in comments.
3716 (ior_xor): Rename to...
3717 (IOR_XOR): ... This.
3718 (vqh_ops): Rename to...
3719 (VQH_OPS): ... This.
3720 (vqhs_ops): Rename to...
3721 (VQHS_OPS): ... This.
3722 (rshifts): Rename to...
3723 (RSHIFTS): ... This.
3724 (returns): Rename to...
3725 (RETURNS): ... This.
3726 * config/arm/arm.md: Update uses of the above.
3727 * config/arm/neon.md: Likewise.
3729 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3731 * config.host (case ${host}): Add aarch64*-*-linux case.
3732 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
3733 fields to all the cores.
3734 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
3735 Add MCPU_MTUNE_NATIVE_SPECS.
3736 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
3737 field to all extensions.
3738 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
3739 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
3740 Adjust definition of AARCH64_OPT_EXTENSION.
3741 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
3742 (MCPU_MTUNE_NATIVE_SPECS): Define.
3743 * config/aarch64/driver-aarch64.c: New file.
3744 * config/aarch64/x-arch64: New file.
3745 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
3748 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
3749 Wei Mi <wmi@google.com>
3751 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
3752 * config/i386/i386.c (extract_base_offset_in_addr): New function.
3753 (ix86_operands_ok_for_move_multiple): Ditto.
3754 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
3755 (movlpd/movhpd to movupd peephole2): Ditto.
3757 2015-04-24 Marek Polacek <polacek@redhat.com>
3760 * input.h (from_macro_expansion_at): Define.
3763 * doc/invoke.texi: Update description of -Wlogical-op.
3765 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3767 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
3768 ternary operator in fprintf and harmonize spacing.
3770 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
3772 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
3773 Mark operand1 commutative.
3775 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
3777 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
3778 input operands in memory.
3779 (*vec_concatv2si_sse4_1): Ditto.
3780 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
3781 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
3783 (vec_extract_hi_v32hi): Ditto.
3784 (vec_extract_hi_v64hi): Ditto.
3785 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3787 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3788 Steven Bosscher <steven@gcc.gnu.org>
3790 PR rtl-optimization/34503
3791 * cprop.c (cprop_reg_p): New.
3792 (hash_scan_set): Use above function to check if register can be
3794 (find_avail_set): Return up to two sets, one whose source is a
3795 register and one whose source is a constant. Sets are returned in an
3796 array passed as parameter rather than as a return value.
3797 (cprop_insn): Use a do while loop rather than a goto. Try each of the
3798 sets returned by find_avail_set, starting with the one whose source is
3799 a constant. Use cprop_reg_p to check if register can be propagated.
3800 (do_local_cprop): Use cprop_reg_p to check if register can be
3802 (implicit_set_cond_p): Likewise.
3804 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
3806 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
3807 (sem_function::equals): IGNORED_NODES parameter is now unused;
3808 update call of equals_private.
3809 (sem_function::equals_private): Do not call equals_wpa; skip
3810 gimple body matching if there is no body.
3811 (sem_function::init): Add logic to hash tthunk info.
3812 (sem_function::parse): Also parse thunks.
3813 * ipa-icf.h (equals_private): Update declaration.
3815 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3817 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
3818 asterisk from name so this can be generated directly.
3819 (*altivec_stvx_<mode>_internal): Likewise.
3820 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
3821 that this is never called during or after reload/lra.
3822 (rs6000_frame_related): Remove split_reg
3823 argument and logic that references it.
3824 (emit_frame_save): Remove last parameter from call to
3825 rs6000_frame_related.
3826 (rs6000_emit_prologue): Remove last parameter from eight calls to
3827 rs6000_frame_related. Force generation of stvx instruction for
3828 Altivec register saves. Remove split_reg handling, which is no
3830 (rs6000_emit_epilogue): Force generation of lvx instruction for
3831 Altivec register restores.
3833 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3835 * config/rs6000/rs6000.opt (mcrypto): Change option description to
3836 match category changes in ISA 2.07B.
3838 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3840 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
3842 (cmp_op, cmp_type): New code attributes.
3843 (NEON_VCMP, NEON_VACMP): New int iterators.
3844 (cmp_op_unsp): New int attribute.
3845 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
3846 (neon_vceq<mode>): Delete.
3847 (neon_vc<cmp_op><mode>_insn): New pattern.
3848 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
3849 (neon_vcgeu<mode>): Delete.
3850 (neon_vcle<mode>): Likewise.
3851 (neon_vclt<mode>: Likewise.
3852 (neon_vcage<mode>): Likewise.
3853 (neon_vcagt<mode>): Likewise.
3854 (neon_vca<cmp_op><mode>): New define_expand.
3855 (neon_vca<cmp_op><mode>_insn): New pattern.
3856 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
3858 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
3860 * tree.h (attribute_value_equal): Declare.
3861 * tree.c (attribute_value_equal): Export.
3863 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
3865 * ipa-icf.c (sem_item::compare_attributes): New function.
3866 (sem_item::compare_referenced_symbol_properties): Compare variable
3868 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
3869 (sem_function::param_used_p): New function.
3870 (sem_function::equals_wpa): Fix attribute comparsion; match
3871 parameter type codes; do not compare paremter flags when
3872 they are not used; compare edge flags; compare indirect calls.
3873 (sem_item::update_hash_by_addr_refs): Hash reference type.
3874 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
3875 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
3877 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
3878 * ipa-icf.h (compare_attributes, param_used_p): Declare.
3880 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
3882 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
3884 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
3885 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
3886 (sem_item::compare_referenced_symbol_properties): New.
3887 (sem_item::hash_referenced_symbol_properties): New.
3888 (sem_item::compare_cgraph_references): Rename to ...
3889 (sem_item::compare_symbol_references): ... this one; use
3890 compare_referenced_symbol_properties.
3891 (sem_function::equals_wpa): Do not compare
3892 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
3893 DECL_IS_OPERATOR_NEW; compare pointer sizes.
3894 (sem_item::update_hash_by_addr_refs): Call
3895 hash_referenced_symbol_properties.
3896 (sem_item::update_hash_by_local_refs): Cleanup.
3897 (sem_function::merge): Do not mix up symbol properties.
3898 (sem_variable::equals_wpa): Use compare_symbol_references.
3899 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
3900 (sem_item::hash_referenced_symbol_properties): New.
3901 (sem_item::compare_symbol_references): New.
3902 (sem_item::compare_cgraph_references): Remove.
3904 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
3907 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
3910 2015-04-23 Nick Clifton <nickc@redhat.com>
3912 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
3913 ATTRIBUTE_UNUSED to x parameter.
3914 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
3916 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3918 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
3919 TARGET_CRYPTO to TARGET_P8_VECTOR>
3920 (crypto_vpermxor_<mode>): Likewise.
3921 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
3922 (BU_CRYPTO_3A): Likewise.
3923 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
3924 (BU_CRYPTO_OVERLOAD_3A): New #define.
3925 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
3926 (VPMSUMH): Likewise.
3927 (VPMSUMW): Likewise.
3928 (VPMSUMD): Likewise.
3929 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
3930 (VPERMXOR_V4SI): Likewise.
3931 (VPERMXOR_V8HI): Likewise.
3932 (VPERMXOR_V16QI): Likewise.
3933 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
3934 BU_CRYPTO_OVERLOAD_2A.
3935 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
3936 BU_CRYPTO_OVERLOAD_3A.
3937 * config/rs6000/rs6000.opt (mcrypto): Change description of
3940 2015-04-23 Richard Biener <rguenther@suse.de>
3942 * passes.def: Remove copy propagation passes run directly after CCP.
3943 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
3945 (ccp_visit_phi_node): Rework to handle first executable edge
3948 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
3950 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
3951 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
3952 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
3953 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
3954 (thumb_legimitimize_reload_address): Remove.
3955 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
3957 (thumb_legimitimize_reload_address): Remove.
3959 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3961 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
3963 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3965 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
3967 (store_multiple): Likewise.
3969 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3971 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
3972 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
3973 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
3974 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
3975 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
3976 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
3977 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
3978 Specify issue_rate value.
3979 (arm_issue_rate): Look up issue rate from tuning structs. Remove
3980 large switch statement.
3981 (arm_marvell_pj4_tune): New struct.
3982 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
3985 2015-04-23 Richard Biener <rguenther@suse.de>
3987 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
3988 (vect_find_last_store_in_slp_instance): Rename to ...
3989 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
3990 (vect_analyze_slp_cost_1): Use vector_load for constant defs
3991 and vec_construct for external defs when estimating prologue cost.
3992 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
3993 Compute costs here only when vectorizing loops.
3994 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
3995 have been determined.
3996 (vect_schedule_slp_instance): Simplify vectorized code placement
3997 and prepare for in-BB external defs.
3998 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
3999 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
4000 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
4002 (vect_model_load_cost): Likewise.
4003 (vectorizable_store): Instead add it here.
4004 (vectorizable_load): Likewise.
4005 (vect_is_simple_use): Dump def type textually.
4007 2015-04-23 Richard Biener <rguenther@suse.de>
4009 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
4010 * cfgloop.c (verify_loop_structure): Verify the root loop node.
4011 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
4012 instead of get_eh_region_from_lp_number.
4013 * loop-init.c (fix_loop_structure): If we removed a loop, reset
4016 2015-04-23 Anton Blanchard <anton@samba.org>
4018 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
4019 need for -mprofile-kernel to save LR to stack.
4021 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4023 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
4025 (insn_is_swappable_p): Return 1 for a convert from double to
4026 single precision when all of its uses are splats of BE element
4029 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4031 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
4033 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4036 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
4037 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
4038 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
4040 (rs6000_builtin_mask_for_load): Return 0 for targets with
4041 efficient unaligned VSX accesses so that the vectorizer will use
4042 direct unaligned loads.
4043 (rs6000_builtin_support_vector_misalignment): Always return true
4044 for targets with efficient unaligned VSX accesses.
4045 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
4046 stores on targets with efficient unaligned VSX accesses is almost
4047 always the same as the cost of an aligned load or store, so model
4049 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
4050 unaligned vectors if we have efficient unaligned VSX accesses.
4051 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
4052 undocumented option.
4054 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4057 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
4059 * config.gcc (LIBC_MUSL): New tm_defines macro.
4060 * config/linux.h (OPTION_MUSL): Define.
4061 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4062 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4063 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4065 * config/linux.opt (mmusl): New option.
4066 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4067 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4069 * configure: Regenerate.
4071 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
4073 * config.gcc (LIBC_MUSL): New tm_defines macro.
4074 * config/linux.h (OPTION_MUSL): Define.
4075 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4076 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4077 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4079 * config/linux.opt (mmusl): New option.
4080 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4081 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4083 * configure: Regenerate.
4085 2015-04-22 Yury Gribov <y.gribov@samsung.com>
4087 * doc/invoke.texi (-fsanitize-sections): Update description.
4088 * asan.c (set_sanitized_sections): Parse incoming arg.
4089 (section_sanitized_p): Support wildcards.
4091 2015-04-22 Tom de Vries <tom@codesourcery.com>
4093 PR tree-optimization/65823
4094 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
4095 equality between ap_copy and ap.
4097 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4100 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
4102 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4105 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
4107 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4110 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
4111 remove already contained t-files.
4113 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4115 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
4116 Remove unneeded forward declarations.
4117 (suitable_for_tail_call_opt_p): Commentary typo fix.
4119 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4121 * varasm.c (emit_bss): Remove redundant guard.
4123 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4125 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
4127 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4129 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
4131 2015-04-22 Hale Wang <hale.wang@arm.com>
4132 Terry Guo <terry.guo@arm.com>
4134 PR rtl-optimization/64818
4135 * combine.c (can_combine_p): Don't combine user-specified
4136 register if it is in an asm input.
4138 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
4141 * passes.def (early_optimizations): Add pass_dse.
4143 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4145 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
4146 * reorg.c (redundant_insn): Remove ifdef
4147 INSN_REFERENCES_ARE_DELAYED.
4148 * resource.c (mark_referenced_resources): Likewise.
4150 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4152 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
4153 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
4154 * resource.c (mark_set_resources): Likewise.
4156 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4158 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
4159 * cfgcleanup.c (flow_find_cross_jump): Likewise.
4160 (flow_find_head_matching_sequence): Likewise.
4161 (try_head_merge_bb): Likewise.
4162 * combine.c (can_combine_p): Likewise.
4163 (try_combine): Likewise.
4164 (distribute_notes): Likewise.
4165 * df-problems.c (can_move_insns_across): Likewise.
4166 * final.c (final): Likewise.
4167 * gcse.c (insert_insn_end_basic_block): Likewise.
4168 * ira.c (find_moveable_pseudos): Likewise.
4169 * reorg.c (try_merge_delay_insns): Likewise.
4170 (fill_simple_delay_slots): Likewise.
4171 (fill_slots_from_thread): Likewise.
4172 * sched-deps.c (sched_analyze_2): Likewise.
4174 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4176 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
4177 PIC_OFFSET_TABLE_REGNUM.
4179 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4181 * alias.c (init_alias_target): Remove ifdef
4182 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
4183 * df-scan.c (df_insn_refs_collect): Likewise.
4184 (df_get_regular_block_artificial_uses): Likewise.
4185 (df_get_eh_block_artificial_uses): Likewise.
4186 (df_get_entry_block_def_set): Likewise.
4187 (df_get_exit_block_use_set): Likewise.
4188 * emit-rtl.c (gen_rtx_REG): Likewise.
4189 * ira.c (ira_setup_eliminable_regset): Likewise.
4190 * reginfo.c (init_reg_sets_1): Likewise.
4191 * regrename.c (rename_chains): Likewise.
4192 * reload1.c (reload): Likewise.
4193 (eliminate_regs_in_insn): Likewise.
4194 * resource.c (mark_referenced_resources): Likewise.
4195 (init_resource_info): Likewise.
4197 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4199 * defaults.h (MASK_RETURN_ADDR): New definition.
4200 * except.c (expand_builtin_extract_return_addr): Remove ifdef
4203 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4205 * defaults.h (RETURN_ADDR_OFFSET): New definition.
4206 * except.c (expand_builtin_extract_return_addr): Remove ifdef
4208 (expand_builtin_frob_return_addr): Likewise.
4210 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4212 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
4213 (try_redirect_by_replacing_jump): Likewise.
4214 (rtl_tidy_fallthru_edge): Likewise.
4215 * combine.c (insn_a_feeds_b): Likewise.
4216 (find_split_point): Likewise.
4217 (simplify_set): Likewise.
4218 * cprop.c (cprop_jump): Likewise.
4219 * cse.c (cse_extended_basic_block): Likewise.
4220 * df-problems.c (can_move_insns_across): Likewise.
4221 * function.c (emit_use_return_register_into_block): Likewise.
4222 * haifa-sched.c (sched_init): Likewise.
4223 * ira.c (find_moveable_pseudos): Likewise.
4224 * loop-invariant.c (find_invariant_insn): Likewise.
4225 * lra-constraints.c (curr_insn_transform): Likewise.
4226 * postreload.c (reload_combine_recognize_const_pattern):
4228 * reload.c (find_reloads): Likewise.
4229 * reorg.c (delete_scheduled_jump): Likewise.
4230 (steal_delay_list_from_target): Likewise.
4231 (steal_delay_list_from_fallthrough): Likewise.
4232 (redundant_insn): Likewise.
4233 (fill_simple_delay_slots): Likewise.
4234 (fill_slots_from_thread): Likewise.
4235 (delete_computation): Likewise.
4236 * sched-rgn.c (add_branch_dependences): Likewise.
4238 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4240 * genconfig.c (main): Always define HAVE_cc0.
4241 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
4243 * cfgcleanup.c (flow_find_cross_jump): Likewise.
4244 (flow_find_head_matching_sequence): Likewise.
4245 (try_head_merge_bb): Likewise.
4246 * cfgrtl.c (rtl_merge_blocks): Likewise.
4247 (try_redirect_by_replacing_jump): Likewise.
4248 (rtl_tidy_fallthru_edge): Likewise.
4249 * combine.c (do_SUBST_MODE): Likewise.
4250 (insn_a_feeds_b): Likewise.
4251 (combine_instructions): Likewise.
4252 (can_combine_p): Likewise.
4253 (try_combine): Likewise.
4254 (find_split_point): Likewise.
4256 (simplify_set): Likewise.
4257 (distribute_notes): Likewise.
4258 * cprop.c (cprop_jump): Likewise.
4259 * cse.c (cse_extended_basic_block): Likewise.
4260 * df-problems.c (can_move_insns_across): Likewise.
4261 * final.c (final): Likewise.
4262 (final_scan_insn): Likewise.
4263 * function.c (emit_use_return_register_into_block): Likewise.
4264 * gcse.c (insert_insn_end_basic_block): Likewise.
4265 * haifa-sched.c (sched_init): Likewise.
4266 * ira.c (find_moveable_pseudos): Likewise.
4267 * loop-invariant.c (find_invariant_insn): Likewise.
4268 * lra-constraints.c (curr_insn_transform): Likewise.
4269 * optabs.c (prepare_cmp_insn): Likewise.
4270 * postreload.c (reload_combine_recognize_const_pattern):
4272 * reload.c (find_reloads): Likewise.
4273 (find_reloads_address_1): Likewise.
4274 * reorg.c (delete_scheduled_jump): Likewise.
4275 (steal_delay_list_from_target): Likewise.
4276 (steal_delay_list_from_fallthrough): Likewise.
4277 (try_merge_delay_insns): Likewise.
4278 (redundant_insn): Likewise.
4279 (fill_simple_delay_slots): Likewise.
4280 (fill_slots_from_thread): Likewise.
4281 (delete_computation): Likewise.
4282 (relax_delay_slots): Likewise.
4283 * sched-deps.c (sched_analyze_2): Likewise.
4284 * sched-rgn.c (add_branch_dependences): Likewise.
4286 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4288 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
4289 that is trivially ded on non cc0 targets.
4290 (simplify_set): Likewise.
4291 (mark_used_regs_combine): Likewise.
4292 * cse.c (new_basic_block): Likewise.
4293 (fold_rtx): Likewise.
4294 (cse_insn): Likewise.
4295 (cse_extended_basic_block): Likewise.
4296 (set_live_p): Likewise.
4297 * rtlanal.c (canonicalize_condition): Likewise.
4298 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4300 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4302 * conditions.h: Define macros even if HAVE_cc0 is undefined.
4303 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
4304 * final.c: Likewise.
4306 * recog.c: Likewise.
4307 * recog.h: Declare functions even when HAVE_cc0 is undefined.
4308 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
4310 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4312 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
4313 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
4314 * builtins.c (expand_builtin): Remove check if
4315 EH_RETURN_DATA_REGNO is defined.
4316 * df-scan.c (df_bb_refs_collect): Likewise.
4317 (df_get_exit_block_use_set): Likewise.
4318 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
4319 * ira-lives.c (process_bb_node_lives): Likewise.
4320 * lra-lives.c (process_bb_lives): Likewise.
4322 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
4324 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
4325 FIRST_PSEUDO_REG): New.
4326 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
4327 (ARG_POINTER_REGNUM): Define to ARGP_REG.
4328 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
4329 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
4330 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
4331 (FIRST_INT_REG): New.
4332 (LAST_INT_REG): New.
4333 (FIRST_*_REG): Define using *_REG.
4334 (LAST_*_REG): Ditto.
4335 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
4336 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
4337 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
4339 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4341 * expmed.c: (synth_mult): Only assume overlapping
4342 shift with previous steps in alg_sub_t_m2 case.
4344 2015-04-21 Richard Biener <rguenther@suse.de>
4346 PR tree-optimization/65650
4347 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
4348 transitions involving copies.
4349 (set_lattice_value): Adjust for copy lattice state.
4350 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
4351 if that doesn't dominate the merge point.
4352 (bit_value_unop): Adjust what we treat as varying mask.
4353 (bit_value_binop): Likewise.
4354 (bit_value_assume_aligned): Likewise.
4355 (evaluate_stmt): When we simplified to a SSA name record a copy
4356 instead of dropping to varying.
4357 (visit_assignment): Simplify.
4359 * gimple-match.h (gimple_simplify): Add another callback.
4360 * gimple-fold.c (fold_stmt_1): Adjust caller.
4361 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
4362 for the 2nd callback.
4363 * gimple-match-head.c (gimple_simplify): Add a callback that is
4364 used to valueize the stmt operands and use it that way.
4366 2015-04-21 Richard Biener <rguenther@suse.de>
4368 PR tree-optimization/65788
4369 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
4371 2015-04-21 Richard Biener <rguenther@suse.de>
4373 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
4374 vec_construct cost by vec_stmt_cost.
4376 2015-04-21 Richard Biener <rguenther@suse.de>
4378 * cfghooks.h (create_basic_block): Replace with two overloads
4380 (split_block): Likewise.
4381 * cfghooks.c (split_block): Rename to ...
4382 (split_block_1): ... this.
4383 (split_block): Add two type-safe overloads for RTL and GIMPLE.
4384 (split_block_after_labels): Call split_block_1.
4385 (create_basic_block): Rename to ...
4386 (create_basic_block_1): ... this.
4387 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
4388 (create_empty_bb): Call create_basic_block_1.
4389 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
4390 split_block_after_labels.
4391 * omp-low.c (expand_parallel_call): Likewise.
4392 (expand_omp_target): Likewise.
4393 (simd_clone_adjust): Likewise.
4394 * tree-chkp.c (chkp_get_entry_block): Likewise.
4395 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
4396 create_basic_block overload.
4397 (cgraph_node::expand_thunk): Likewise.
4398 * tree-cfg.c (make_blocks): Likewise.
4399 (handle_abnormal_edges): Likewise.
4400 * tree-inline.c (copy_bb): Likewise.
4402 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4404 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
4406 (*xor_one_cmplsidi3_ze): Likewise.
4408 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
4410 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
4411 use df_remove_problem rather than manually removing problems, leaving
4412 holes in df->problems_in_order[].
4414 2015-04-21 Tom de Vries <tom@codesourcery.com>
4416 PR tree-optimization/65802
4417 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
4419 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4421 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
4423 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
4424 at '.'. Assert that there's enough space for everything.
4426 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
4428 PR tree-optimization/64950
4430 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
4433 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4436 2015-04-20 Shiva Chen <shiva0217@gmail.com>
4438 PR rtl-optimization/64916
4439 * cfgcleanup.c (values_equal_p): New function.
4440 (can_replace_by): Use it.
4442 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
4445 * doc/invoke.texi ([-Wnarrowing]): Update.
4447 2015-04-20 Jeff Law <law@redhat.com>
4449 PR tree-optimization/65658
4450 * tree-ssa-threadupdate.c (redirection_block_p): Remove
4451 redundant test for GIMPLE_ASSIGN in last change.
4453 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
4455 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
4456 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
4457 (legitimize_tls_address): Ditto.
4458 (ix86_expand_move): Ditto.
4459 (ix86_expand_binary_operator): Remove reload_in_progress checks.
4460 (ix86_expand_unary_operator): Ditto.
4461 * config/i386/predicates.md (index_register_operand): Ditto.
4463 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
4465 * reorg.c (try_merge_delay_insns): Improve correctness checking
4466 for targets with multiple delay slots.
4468 2015-04-20 Jeff Law <law@redhat.com>
4470 PR tree-optimization/65658
4471 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
4474 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
4476 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
4477 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
4480 2015-04-20 Jakub Jelinek <jakub@redhat.com>
4483 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
4485 2015-04-20 Richard Biener <rguenther@suse.de>
4487 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
4488 * gimple-fold.c (gimple_build_valueize): New function.
4489 (gimple_build): Always use gimple_build_valueize as valueize hook.
4491 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
4494 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
4495 and overwrite variable parts if <= 1/2 the elements are variable.
4497 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
4499 PR rtl-optimization/65805
4500 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
4501 Don't use difference of offset and previous offset if
4502 update_sp_offset is non-zero.
4503 (eliminate_regs_in_insn): Ditto.
4504 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
4505 lra_eliminate_regs_1 call.
4506 * lra-constraints.c (get_equiv_with_elimination): Ditto.
4508 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
4510 * hash-table.h: Remove version of hash_table that stored value_type *.
4511 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
4512 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
4513 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
4514 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
4515 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
4516 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
4517 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
4518 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
4519 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
4520 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
4521 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
4522 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
4523 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4524 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
4525 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
4526 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
4528 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4529 Jakub Jelinek <jakub@redhat.com>
4532 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
4533 subsequent SH_NONE operand does not overwrite an existing *special
4535 (adjust_extract): Handle case where a vec_extract operation is
4536 wrapped in a PARALLEL.
4538 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
4541 * config/i386/i386.c (ix86_binds_local_p): Define only if
4542 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
4544 2015-04-17 Jeff Law <law@redhat.com>
4546 PR tree-optimization/47679
4547 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
4548 * tree-ssa-scopedtables.c: New file.
4549 * tree-ssa-scopedtables.h: New file.
4550 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
4551 (const_and_copies): Change name/type.
4552 (record_const_or_copy): Move into tree-ssa-scopedtables.c
4553 (record_const_or_copy_1): Similarly.
4554 (restore_vars_to_original_value): Similarly.
4555 (pass_dominator::execute): Create and destroy const_and_copies table.
4556 (thread_across_edge): Update passing of const_and_copies.
4557 (record_temporary_equivalence): Use method calls rather than
4558 manipulating const_and_copies directly.
4559 (record_equality, cprop_into_successor_phis): Similarly.
4560 (dom_opt_dom_walker::before_dom_children): Similarly.
4561 (dom_opt_dom_walker::after_dom_children): Similarly.
4562 (eliminate_redundant_computations): Similarly.
4563 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
4564 (record_temporary_equivalence): Likewise.
4565 (invalidate_equivalences): Likewise.
4566 (record_temporary_equivalences_from_phis): Update due to type
4567 change of const_and_copies. Use method calls rather than
4568 manipulating the stack directly.
4569 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4570 (thread_through_normal_block, thread_across_edge): Likewise.
4571 (thread_across_edge): Likewise.
4572 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4573 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
4575 (identify_jump_threads): Update due to type change of equiv_stack.
4576 (finalize_jump_threads): Delete the equiv_stack when complete.
4578 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
4580 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4581 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
4582 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
4584 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
4587 * config.gcc: Exit with a comment when we do not have a major version
4588 number for the FreeBSD target.
4590 2015-04-17 Jakub Jelinek <jakub@redhat.com>
4593 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
4594 maybe_allows_mem bitfields.
4595 (maybe_allows_none_start, maybe_allows_none_end,
4596 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
4597 maybe_allows_mem_end): New variables.
4598 (compute_maybe_allows): New function.
4599 (add_constraint): Use it to initialize maybe_allows_reg and
4600 maybe_allows_mem fields.
4601 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
4602 is_address constraints such that those that allow neither mem nor
4603 reg come first, then those that only allow reg but not mem, then
4604 those that only allow mem but not reg, then the rest.
4605 (write_allows_reg_mem_function): New function.
4606 (write_tm_preds_h): Call it.
4607 * stmt.c (parse_output_constraint, parse_input_constraint): Use
4608 the generated insn_extra_constraint_allows_reg_mem function
4609 instead of always setting *allows_reg = true; *allows_mem = true;
4610 for unknown extra constraints.
4612 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
4615 * output.h (default_binds_local_p_3): New.
4616 * varasm.c (default_binds_local_p_3): Make it public. Take an
4617 argument to indicate if common symbol may be local. If common
4618 symbol may be local, treat non-external variable as defined
4620 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
4621 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
4622 * config/i386/i386.c (ix86_binds_local_p): New.
4623 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
4626 2015-04-17 Jakub Jelinek <jakub@redhat.com>
4629 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
4630 trying mem_loc_descriptor on XEXP (rtl, 0).
4632 2015-04-17 Martin Liska <mliska@suse.cz>
4634 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4635 Release symbol_compare_collection.
4636 * ipa-reference.c: Add TODO that a vector should be released.
4638 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
4641 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
4642 to new AVR-LibC file layout (bug #44574).
4643 (*avrlibc_devicelib): Same.
4644 * config/avr/avr-mcus.def: Adjust comments.
4645 * config/avr/avr.opt (nodevicelib): Adjust help.
4647 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
4649 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
4651 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
4654 * gimplify.c (gimplify_init_constructor): Always emit a
4655 side-effecting constructor.
4657 2015-04-17 Tom de Vries <tom@codesourcery.com>
4659 PR tree-optimization/64950
4660 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
4661 in cfun->curr_properties.
4662 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
4663 if we generate an IFN_VA_ARG.
4664 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
4665 function if PROP_gimple_lva is not set in src function.
4667 2015-04-17 Tom de Vries <tom@codesourcery.com>
4668 Michael Matz <matz@suse.de>
4670 PR tree-optimization/64950
4671 * gimple-iterator.c (update_modified_stmts): Remove static.
4672 * gimple-iterator.h (update_modified_stmts): Declare.
4673 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
4674 (gimplify_va_arg_internal): New function.
4675 (gimplify_va_arg_expr): Use IFN_VA_ARG.
4676 * gimplify.h (gimplify_va_arg_internal): Declare.
4677 * internal-fn.c (expand_VA_ARG): New unreachable function.
4678 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
4679 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
4680 (expand_ifn_va_arg): New function.
4681 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
4682 (pass_stdarg::execute): Call expand_ifn_va_arg.
4683 (pass_data_lower_vaarg): New pass_data.
4684 (pass_lower_vaarg): New gimple_opt_pass.
4685 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
4686 (make_pass_lower_vaarg): New function.
4687 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
4688 properties_required field.
4689 * passes.def (all_passes): Add pass_lower_vaarg.
4690 * tree-pass.h (PROP_gimple_lva): Add define.
4691 (make_pass_lower_vaarg): Declare.
4693 2015-04-17 Tom de Vries <tom@codesourcery.com>
4695 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
4696 * calls.c (call_expr_flags): Same.
4698 2015-04-17 Tom de Vries <tom@codesourcery.com>
4700 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
4701 (pass_stdarg::execute): ... here.
4703 2015-04-17 Tom de Vries <tom@codesourcery.com>
4704 Michael Matz <matz@suse.de>
4706 * tree-cfg.c (make_blocks_1): Factor out of ...
4707 (make_blocks): ... here.
4708 (make_edges_bb): Factor out of ...
4709 (make_edges): ... here.
4710 (gimple_find_sub_bbs): New function.
4711 * tree-cfg.h (gimple_find_sub_bbs): Declare.
4713 2015-04-17 Tom de Vries <tom@codesourcery.com>
4715 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
4717 2015-04-17 Yury Gribov <y.gribov@samsung.com>
4719 * asan.c (set_sanitized_sections): New function.
4720 (section_sanitized_p): Ditto.
4721 (asan_protect_global): Optionally sanitize user-defined
4723 * asan.h (set_sanitized_sections): Declare new function.
4724 * common.opt (fsanitize-sections): New option.
4725 * doc/invoke.texi (-fsanitize-sections): Document new option.
4726 * opts-global.c (handle_common_deferred_options): Handle new
4729 2015-04-17 Jakub Jelinek <jakub@redhat.com>
4732 * dwarf2out.c (loc_list_from_tree): Return NULL
4733 for DEBUG_EXPR_DECL.
4735 2015-04-17 Christian Bruel <christian.bruel@st.com>
4737 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
4740 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4742 * ira-color.c (setup_left_conflict_sizes_p): Do not process
4743 node itself when computing left conflict subnode size.
4745 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
4747 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
4748 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
4749 *fop_<mode>_1_sse using enabled attribute. Use
4750 register_mixssei387nonimm_operand operand 1 predicate. Change
4751 alternative 3 constraints from "x" to "v".
4753 2015-04-16 Richard Biener <rguenther@suse.de>
4755 PR tree-optimization/65774
4756 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
4757 bit-value tracking on.
4759 2015-04-16 Richard Biener <rguenther@suse.de>
4761 PR tree-optimization/64277
4762 * tree-vrp.c (check_array_ref): Fix anti-range handling,
4763 simplify upper bound handling.
4764 (search_for_addr_array): Simplify.
4765 (check_array_bounds): Handle ADDR_EXPRs here.
4766 (check_all_array_refs): Simplify.
4768 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
4770 * config/i386/i386.c (print_reg): Rewrite function.
4772 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4774 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
4775 Invert the condition.
4777 2015-04-16 Renlin Li <renlin.li@arm.com>
4779 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
4780 simplifications for UNSIGNED_FLOAT.
4782 2015-04-16 Nick Clifton <nickc@redhat.com>
4784 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
4786 (enum rl78_cpu_type): New.
4787 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
4788 (umulhi3_shift_virt): Remove m constraint from operand 1.
4789 (umulqihi3_virt): Likewise.
4790 * config/rl78/rl78.c (rl78_option_override): Add code to process
4791 -mcpu and -mmul options.
4792 (rl78_alloc_physical_registers): Add code to handle divhi and
4793 divsi valloc attributes.
4794 (set_origin): Likewise.
4795 * config/rl78/rl78.h (RL78_MUL_G14): Define.
4796 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
4797 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
4799 (ASM_SPEC): Pass -mcpu on to assembler.
4800 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
4801 (mulqi3_rl78): Likewise.
4802 (mulhi3_g13): Likewise.
4803 (mulhi3): Generate the G13 or G14 versions of the insn directly.
4805 (mulhi3_g14): Add clobbers of AX and BC.
4806 (mulsi3_g14): Likewise.
4807 (mulsi3_g13): Likewise.
4808 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
4809 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
4810 * config/rl78/rl78.opt (mmul): Initialise value to
4813 (m13, m14, mrl78): New option aliases.
4814 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
4815 (MULTILIB_DIRNAMES): Add g13 and g14.
4816 * doc/invoke.texi: Document -mcpu and -mmul options.
4818 2015-04-16 Richard Biener <rguenther@suse.de>
4820 * tree-ssa-ccp.c (likely_value): See if we have operands that
4821 are marked as never simulate again and return CONSTANT in this
4823 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
4824 not have any operands that will be simulated again as
4825 not being simulated again.
4827 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
4829 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
4830 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
4831 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
4833 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
4835 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
4836 *float<SWI48:mode><MODEF:mode>2_sse.
4837 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
4839 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
4842 2015-04-15 Tom de Vries <tom@codesourcery.com>
4845 * function.c (push_dummy_function): New function.
4846 (init_dummy_function_start): Use push_dummy_function.
4847 (pop_dummy_function): New function. Factored out of ...
4848 (expand_dummy_function_end): ... here.
4849 * function.h (push_dummy_function, pop_dummy_function): Declare.
4850 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
4852 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
4854 2015-04-15 Jeff Law <law@redhat.com>
4856 PR tree-optimization/47679
4857 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
4858 need for forward declaration in upcoming changes.
4859 (record_conditions, record_edge_info): Likewise.
4861 PR rtl-optimization/42522
4862 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
4863 SIGN_EXTRACT as a whole object rather than simplifying
4866 2015-04-15 Jakub Jelinek <jakub@redhat.com>
4869 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
4870 and GIMPLE_PREDICT use break instead of return true. For
4871 GIMPLE_EH_DISPATCH, compare dispatch region.
4873 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
4875 * doc/extend.texi (__sync Builtins): Simplify some text. Update
4876 details about the implementation. Make clear preference for
4877 __atomic builtins. Reduce possibility of future change.
4879 2015-04-15 Nick Clifton <nickc@redhat.com>
4881 * config/rx/rx.opt (mallow-string-insns): New option.
4882 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
4883 builtin if string instructions are denied.
4884 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
4885 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
4887 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
4888 * config/rx/rx.md (movstr): Enable pattern only if string
4889 instructions are allowed.
4890 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
4891 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
4892 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
4893 (MULTILIB_DIRNAMES): Add no-strings.
4894 * doc/invoke.texi: Document -mno-allow-string-insns.
4896 2015-04-15 Alan Modra <amodra@gmail.com>
4901 * calls.c (load_register_parameters): Don't load past end of
4902 mem unless suitably aligned.
4904 2015-04-15 Nick Clifton <nickc@redhat.com>
4906 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
4907 decrement instruction as being frame related.
4908 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
4910 If zero extending a function address enclose the operation in
4912 (rl78_preferred_reload_class): New function.
4913 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4914 * config/rl78/rl78.md: Remove useless constraints in expanders.
4915 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
4916 (mulhi3_rl78): Likewise.
4917 (mulhi3_g13): Likewise.
4918 (mulsi3_rl78): Likewise.
4919 (es_addr): Move to before the multiply patterns.
4921 2015-04-15 Alan Modra <amodra@gmail.com>
4923 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
4924 and sequence_stack. Add seq.
4925 (seq_stack): Delete.
4926 * function.c (prepare_function_start): Don't access x_last_insn.
4927 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
4928 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
4929 * emit_rtl.c (start_sequence, push_topmost_sequence,
4930 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
4932 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
4933 remove_insn): Likewise. Simplify.
4934 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
4935 and pop_topmost_sequence.
4936 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
4938 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
4940 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
4943 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
4946 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
4948 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
4949 (LEGACY_INT_REGNO_P): Ditto.
4950 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
4951 (ANY_MASK_REG_P): Remove.
4952 (BND_REG_P): Rename from ANY_BND_REG_P.
4953 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
4954 legacy integer registers. Do not handle MMX_REG_P in a special way.
4955 Merge 64byte and 32byte SSE handling.
4957 2015-04-14 Nick Clifton <nickc@redhat.com>
4959 * expr.c (expand_assignment): Force an address offset computation
4960 into a register before changing its mode.
4961 (expand_expr_real_1): Likewise.
4963 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
4965 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
4966 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
4967 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
4968 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
4969 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
4970 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
4971 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
4972 and __aarch64_vget_lane_any.
4974 2015-04-14 Jakub Jelinek <jakub@redhat.com>
4976 PR rtl-optimization/65761
4977 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
4978 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
4980 2015-04-14 Richard Biener <rguenther@suse.de>
4982 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
4983 (graphite_can_represent_scev): Use POINTER_TYPE_P.
4985 2015-04-14 Richard Biener <rguenther@suse.de>
4987 PR tree-optimization/65758
4988 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
4990 (ccp_lattice_meet): Likewise.
4991 (bit_value_unop): Likewise.
4992 (bit_value_binop): Likewise.
4993 (bit_value_assume_aligned): Likewise.
4995 2015-04-14 Christian Bruel <christian.bruel@st.com>
4997 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
5000 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
5002 PR tree-optimization/63387
5003 * match.pd ((x unord x) | (y unord y) -> (x unord y),
5004 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
5006 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
5008 * config/i386/predicates.md (any_QIreg_operand): Rename from
5009 q_regs_operand. Do not process subregs.
5010 (QIreg_operand): Use QI_REGNO_P predicate.
5011 (ext_QIreg_operand): Ditto.
5012 (ext_register_operand): Ditto.
5013 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
5014 (AND splitters): Ditto.
5015 (AND with -65536 splitter): Add SWI48 mode for operand 0.
5016 (AND with -256 splitter): Use any_QIreg_operand predicate and
5017 SWI248 mode for operand 0.
5018 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
5020 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
5022 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
5024 * doc/plugins.texi: Rewrite first introductory paragraph.
5026 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5028 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
5029 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
5031 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5033 * ipa-profie.c (ipa_profile): Check number of parameters
5034 and possible polymorphic call targets before
5037 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
5039 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
5040 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
5042 2015-04-13 Richard Biener <rguenther@suse.de>
5044 PR tree-optimization/65204
5045 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
5048 2015-04-13 Richard Biener <rguenther@suse.de>
5051 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
5052 and cond_not_taken_branch_cost to 4 and 2.
5053 (bdver2_cost): Likewise.
5054 (bdver3_cost): Likewise.
5055 (bdver4_cost): Likewise.
5057 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5059 * hash-table.h (hash_table constructor): Add mem stats.
5060 (alloc_entries): Likewise.
5062 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5064 * ipa-cp.c (ipcp_driver): Relase prev_edge.
5065 * passes.c (execute_one_pass): Only add transform if pass has one.
5067 2015-04-12 Joseph Myers <joseph@codesourcery.com>
5069 * config/i386/i386.c (ix86_option_override_internal): Don't set
5070 -fprefetch-loop-arrays if optimizing for size.
5072 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5073 Gerald Pfeifer <gerald@pfeifer.com>
5075 * doc/contrib.texi (Contributors): Add Martin Jambor and
5078 2015-04-12 Jakub Jelinek <jakub@redhat.com>
5080 * BASE-VER: Set to 6.0.0.
5082 PR tree-optimization/65747
5083 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
5084 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
5086 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
5088 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
5089 sentence. Improve grammar.
5091 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
5093 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
5095 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
5098 * ipa-inline-transform.c (speculation_removed): Remove static var.
5099 (check_speculations): New function.
5100 (clone_inlined_nodes): Do not check spculations.
5101 (inline_call): Call check_speculations.
5102 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
5103 consider non-invariants.
5105 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
5106 Martin Liska <mliska@suse.cz>
5109 * ipa-icf.c (sem_item::compare_cgraph_references): function and
5110 variable can not match.
5111 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
5112 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
5114 2015-04-11 Jakub Jelinek <jakub@redhat.com>
5116 PR tree-optimization/65735
5117 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
5118 Remove visited_phis argument, add visited_bbs, avoid recursing into the
5119 same bb rather than just into the same phi node.
5120 (thread_through_normal_block): Adjust caller.
5122 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
5124 * doc/contrib.texi (Contributors): Add Ira Rosen.
5126 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
5128 * gcov.c (find_source): Fix miswording in error message.
5129 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
5130 (ix86_expand_sse_comi_round): Fix typo in error message.
5132 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
5134 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
5136 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
5138 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
5140 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
5143 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
5144 Print bad_spills_num and insn_pseudos_num.
5146 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5149 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
5150 when creating +1 values for SImode.
5152 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
5155 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
5158 2015-04-10 Jakub Jelinek <jakub@redhat.com>
5159 Iain Sandoe <iain@codesourcery.com>
5162 * configure: Regenerate.
5164 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
5167 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
5169 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
5171 * doc/contrib.texi (Contributors): Add John Marino.
5173 2015-04-09 Jakub Jelinek <jakub@redhat.com>
5175 PR tree-optimization/65709
5176 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
5177 TREE_TYPE (TREE_TYPE (t)).
5179 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
5182 * lra-int.h (lra_bad_spill_regno_start): New.
5183 * lra.c (lra_bad_spill_regno_start): New.
5184 (lra): Set up lra_bad_spill_regno_start. Set up
5185 lra_constraint_new_regno_start unconditionally.
5186 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
5189 2015-04-09 Marek Polacek <polacek@redhat.com>
5190 Jakub Jelinek <jakub@redhat.com>
5193 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
5194 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
5197 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
5199 PR rtl-optimization/65693
5200 * combine.c (is_parallel_of_n_reg_sets): Move outside of
5203 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
5206 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
5207 device specs file if "device-specs%s" didn't resolve to a path.
5209 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
5212 * config/i386/i386.c (fixup_modeless_constant): New.
5213 (ix86_expand_args_builtin): Fixup modeless constant operand.
5214 (ix86_expand_round_builtin): Ditto.
5215 (ix86_expand_special_args_builtin): Ditto.
5216 (ix86_expand_builtin): Ditto.
5218 2015-04-09 Jakub Jelinek <jakub@redhat.com>
5221 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
5222 any pow2 integer in between 2 and 0x80000000U inclusive.
5224 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
5226 PR rtl-optimization/65693
5227 * combine.c (is_parallel_of_n_reg_sets): Change first argument
5228 from an rtx_insn * to an rtx.
5229 (try_combine): Adjust both callers. Use it once more.
5231 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
5233 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
5234 (chkp_make_static_const_bounds): Search existing
5235 symbol by assembler name. Use make_decl_one_only.
5236 (chkp_get_zero_bounds_var): Remove node search which
5237 is now performed in chkp_make_static_const_bounds.
5238 (chkp_get_none_bounds_var): Likewise.
5240 2015-04-08 Michael Witten <mfwitten@gmail.com>
5242 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
5245 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5247 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
5249 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
5251 * doc/extend.texi (__sync Builtins): Fix grammar.
5253 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5255 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
5257 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5259 * varasm.c (emit_local): Move definition of align.
5261 2015-04-08 Julian Brown <julian@codesourcery.com>
5263 * config/nvptx/mkoffload.c (process): Support variable mapping.
5265 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
5267 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
5269 (alpha_write_one_linkage): Correct typo.
5271 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
5273 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
5275 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
5277 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
5279 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
5281 * tree-chkp.h (chkp_insert_retbnd_call): New.
5282 * tree-chkp.c (chkp_insert_retbnd_call): New.
5283 * ipa-split.c (insert_bndret_call_after): Remove.
5284 (split_function): Use chkp_insert_retbnd_call.
5285 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
5286 bounds for instrumented functions.
5288 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
5291 * calls.c (initialize_argument_information): When producing tail
5292 call also turn SSA_NAMES passed by references to original PARM_DECLs
5294 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
5297 * lra-remat.c (do_remat): Process input and non-input insn
5298 registers separately.
5300 2015-04-07 Jakub Jelinek <jakub@redhat.com>
5303 * valtrack.c (debug_lowpart_subreg): New function.
5304 (dead_debug_insert_temp): Use it.
5307 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
5308 into signed HOST_WIDE_INT the same as negative bit_offset.
5310 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
5312 * ipa-comdats.c (ipa_comdats): Visit all thunks
5313 to set proper comdat group.
5315 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5318 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
5319 on constants for NEON VSTRUCT modes.
5321 2015-04-07 Jakub Jelinek <jakub@redhat.com>
5322 Iain Sandoe <iain@codesourcery.com>
5325 * configure: Regenerate.
5327 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5330 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
5331 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
5332 that LFD is used to load double constants instead of LFS. Add
5333 defaults for all costs structures. Add comments for missing
5334 initialization fields.
5335 (size32_cost): Likewise.
5336 (size64_cost): Likewise.
5337 (rs64a_cost): Likewise.
5338 (mpccore_cost): Likewise.
5339 (ppc403_cost): Likewise.
5340 (ppc405_cost): Likewise.
5341 (ppc440_cost): Likewise.
5342 (ppc476_cost): Likewise.
5343 (ppc601_cost): Likewise.
5344 (ppc603_cost): Likewise.
5345 (ppc604_cost): Likewise.
5346 (ppc604e_cost): Likewise.
5347 (ppc620_cost): Likewise.
5348 (ppc630_cost): Likewise.
5349 (ppccell_cost): Likewise.
5350 (ppc750_cost): Likewise.
5351 (ppc7450_cost): Likewise.
5352 (ppc8540_cost): Likewise.
5353 (ppce300c2c3_cost): Likewise.
5354 (ppce500mc_cost): Likewise.
5355 (ppce500mc64_cost): Likewise.
5356 (ppce5500_cost): Likewise.
5357 (ppce6500_cost): Likewise.
5358 (titan_cost): Likewise.
5359 (power4_cost): Likewise.
5360 (power6_cost): Likewise.
5361 (power7_cost): Likewise.
5362 (power8_cost): Likewise.
5363 (ppca2_cost): Likewise.
5364 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
5366 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
5367 instead of XXLOR to copy SFmode to clear out dirty bits created
5368 when SFmode denormals are generated.
5369 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
5370 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
5372 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
5374 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
5375 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
5376 * config/aarch64/aarch64-tune.md: Regenerate.
5378 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
5380 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
5381 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
5382 * config/arm/arm-cores.def (exynos-m1): New core.
5383 * config/arm/arm-tune.md: Regenerate.
5384 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
5385 * config/arm/bpabi.h: Likewise.
5387 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
5389 * ipa-cp (set_single_call_flag): Remove too
5392 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
5394 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
5395 GOMP_offload_unregister from the destructor.
5397 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
5399 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
5400 flags for instrumentation thunk.
5401 (chkp_produce_thunks): Likewise.
5403 2015-04-05 Martin Liska <mliska@suse.cz>
5406 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
5407 has computed data structure.
5408 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5410 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
5412 * invoke.texi (inline-unit-growth): Increase growth to 20%
5413 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
5415 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
5418 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
5420 (lra_rematerialization_iter): New.
5421 * lra.c (lra): Initialize lra_rematerialization_iter.
5422 Stop updating lra_constraint_new_regno_start after switching of
5423 inheritance and rematerialization.
5424 * lra-remat.c (lra_rematerialization_iter): New.
5425 (lra_remat): Add printing pass iteration. Do rematerialization
5426 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
5428 2015-04-04 Richard Biener <rguenther@suse.de>
5430 PR tree-optimization/64909
5431 PR tree-optimization/65660
5432 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
5433 to take a cost vector for scalar iteration cost.
5434 (vect_get_single_scalar_iteration_cost): Likewise.
5435 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
5436 Compute the scalar iteration cost into a cost vector.
5437 (vect_get_known_peeling_cost): Use the scalar cost vector to
5438 account for the cost of the peeled iterations.
5439 (vect_estimate_min_profitable_iters): Likewise.
5440 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5443 2015-04-04 Alan Modra <amodra@gmail.com>
5447 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
5448 0.0 constant unless TARGET_VSX.
5449 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
5452 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5455 * ipa-inline-transform.c (inline_call): Skip sanity check to work
5458 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5461 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
5462 speculative indirect edges to avoid ordering issue.
5464 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5467 * ipa-inline.c (edge_badness): Add combined size to the denominator.
5469 2015-04-03 Jakub Jelinek <jakub@redhat.com>
5471 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
5472 TYPE_ARTIFICIAL on the .omp_data* types.
5474 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5476 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
5477 instrumentation thunks.
5479 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5481 * config/i386/i386.c (ix86_expand_call): Avoid nested
5482 PARALLEL in returned call value.
5484 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5486 * lto-cgraph.c (input_cgraph_1): Always link instrumented
5487 assembler name with original one.
5489 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5491 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
5493 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5495 Revert parts of r216820.
5496 * config/i386/i386.md (movqi_internal): Correct type calculation
5497 for alternatives 3 and 5.
5499 2015-04-02 Jakub Jelinek <jakub@redhat.com>
5501 PR preprocessor/61977
5502 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
5503 predefine __vector/__bool/__pixel macros nor context sensitive
5505 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
5507 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
5509 * config/pa/pa.c (pa_output_move_double): Directly handle register
5510 indexed memory operand. Simplify handling of scaled register indexed
5513 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5516 * config/i386/linux-common.h (MPX_SPEC): New.
5517 (CHKP_SPEC): Add MPX_SPEC.
5518 * doc/invoke.texi (-fcheck-pointer-boudns): Document
5519 possible issues with '-z bndplt' support in linker.
5521 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5523 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
5524 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
5525 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
5526 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
5527 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
5529 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
5531 * config/i386/sync.md (UNSPEC_MOVA): Remove.
5532 (atomic_load<mode>): Change operand 0 predicate to
5533 nonimmediate_operand and fix up the destination when needed.
5535 (atomic_loaddi_fpu): Use UNSPEC_LDA.
5536 (atomic_store<mode>): Change operand 1 predicate to
5537 nonimmendate_operand and move the source to register when needed.
5539 (atomic_store<mode>_1): Use UNSPEC_STA.
5540 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
5541 Fix moves from memory operand. Use UNSPEC_STA.
5543 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5545 * expmed.c (strict_volatile_bitfield_p): Check that the access will
5546 not cross a MODESIZE boundary.
5547 (store_bit_field, extract_bit_field): Added assertions in the
5548 strict volatile bitfields code path.
5550 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
5553 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
5554 Increase args array size by one to avoid buffer overflow.
5556 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
5558 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
5560 * ipa-inline.c (edge_badness): Add wrapper penalty.
5561 (sum_callers): Move up.
5562 (inline_small_functions): Set single_caller.
5563 * ipa-inline.h (inline_summary): Add single_caller.
5564 * ipa-split.c (split_function): Set split_part.
5565 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
5566 * cgraph.h (cgraph_node): Add split_part.
5568 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
5571 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5572 Do not split operands 0 and operands 2 to halfmode.
5573 (atomic_compare_and_swap<mode>): Update for
5574 atomic_compare_and_swap<dwi>_doubleword changes.
5576 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
5578 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
5579 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
5582 2015-03-31 Martin Liska <mliska@suse.cz>
5585 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
5586 has already filled up function summary.
5587 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5589 2015-03-31 Richard Biener <rguenther@suse.de>
5591 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
5594 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
5596 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
5598 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
5599 (s390_asm_output_function_label): Adapt to new signature of
5600 s390_function_num_hotpatch_hw
5601 Optimise the code generating assembler output.
5602 Add comments to assembler file.
5604 2015-03-31 Richard Biener <rguenther@suse.de>
5607 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
5608 of the noreturn call so it is last and cleanup_control_flow_bb
5609 can do the CFG part.
5611 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
5614 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
5615 same_comdat_group for external symbols.
5616 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
5617 infinite same_comdat_group traversal loop.
5619 2015-03-31 Jakub Jelinek <jakub@redhat.com>
5622 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
5623 automatically to $headers.
5625 2015-03-30 Jakub Jelinek <jakub@redhat.com>
5628 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
5629 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
5631 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
5633 * ipa-prop.c (param_type_may_change_p): Likewise.
5634 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
5635 (remove_unused_scope_block_p): Add in_ctor_dtor_block
5636 argument. Before inlining, preserve
5637 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
5638 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
5640 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
5642 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
5645 * ipa-inline.c (edge_badness): Base denominator on callee's
5648 2015-03-27 Martin Jambor <mjambor@suse.cz>
5651 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
5652 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
5653 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
5654 node_calling_single_call.
5655 * ipa-cp.c (count_callers): New function.
5656 (set_single_call_flag): Likewise.
5657 (initialize_node_lattices): Count callers and set single_flag_call if
5659 (incorporate_penalties): New function.
5660 (good_cloning_opportunity_p): Use it, dump new flags.
5661 (propagate_constants_topo): Set node_within_scc flag if appropriate.
5662 * doc/invoke.texi (ipa-cp-recursion-penalty,
5663 ipa-cp-single-call-pentalty): Document.
5665 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
5668 * symtab.c (symtab_node::get_partitioning_class): Register vars
5670 * varpool.c (symbol_table::output_variables) Do not assemble unefined
5671 decls for non-symbols.
5673 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
5676 * output.h (default_binds_local_p_2): New.
5677 * varasm.c (default_binds_local_p_2): Renamed to ...
5678 (default_binds_local_p_3): This. Don't return true on protected
5679 data symbol if protected data may be external.
5680 (default_binds_local_p): Use default_binds_local_p_3.
5681 (default_binds_local_p_1): Likewise.
5682 (default_binds_local_p_2): New.
5683 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
5684 default_binds_local_p_2 if TARGET_MACHO is undefined.
5686 2015-03-27 Jakub Jelinek <jakub@redhat.com>
5689 * config/i386/i386.c (legitimize_pic_address): If base
5690 is SYMBOL_REF or LABEL_REF using %rip addressing, force
5691 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
5693 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
5696 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
5699 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
5702 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
5703 of optimized out indirect call.
5704 (redirect_to_unreachable): Always build symbol table node for
5705 BUILT_IN_UNREACHABLE
5707 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
5710 * ira-costs.c (record_reg_classes): Process all constraint string
5713 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
5715 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
5719 * config/c6x/constraints.md (S3): New constraint.
5720 * config/c6x/c6x.md (real_jump): Use it.
5722 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5725 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
5726 do redirection if the call is not optimized out.
5728 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
5731 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
5732 (fchkp-check-incomplete-type): Add LTO.
5733 (fchkp-zero-input-bounds-for-main): Likewise.
5734 (fchkp-first-field-has-own-bounds): Likewise.
5735 (fchkp-narrow-bounds): Likewise.
5736 (fchkp-narrow-to-innermost-array): Likewise.
5737 (fchkp-use-static-bounds): Likewise.
5738 (fchkp-use-static-const-bounds): Likewise.
5739 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
5741 2015-03-27 Marek Polacek <polacek@redhat.com>
5743 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
5745 2015-03-27 Marek Polacek <polacek@redhat.com>
5748 * ubsan.c (ubsan_create_edge): New function.
5749 (instrument_bool_enum_load): Call it.
5750 (instrument_nonnull_arg): Likewise.
5751 (instrument_nonnull_return): Likewise.
5752 (instrument_object_size): Likewise.
5754 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5756 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
5759 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5762 * lto-streamer.h (class lto_location_cache): New.
5763 (struct data_in): Add location_cache.
5764 (lto_input_location): Update prototype.
5765 (stream_input_location_now): New.
5766 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
5767 pointer to location.
5768 (stream_input_location): Update.
5769 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
5770 (warn_odr): Apply location cache before warning.
5771 (lto_input_location): Update prototype.
5772 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
5773 Use stream_input_location_now.
5774 * lto-streamer-in.c (lto_location_cache::current_cache): New static
5776 (lto_location_cache::cmp_loc): New function.
5777 (lto_location_cache::apply_location_cache): New function.
5778 (lto_location_cache::accept_location_cache): New function.
5779 (lto_location_cache::revert_location_cache): New function.
5780 (lto_location_cache::input_location): New function.
5781 (lto_input_location): Do location caching.
5782 (stream_input_location_now): New function.
5783 (input_eh_region, input_struct_function_base): Use
5784 stream_input_location_now.
5785 (lto_data_in_create): use new.
5786 (lto_data_in_delete): Use delete.
5787 * tree-streamer-in.c (unpack_ts_block_value_fields,
5788 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
5789 lto_input_ts_exp_tree_pointers): Update for cached location api.
5791 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5794 * passes.def: Add pass_nothrow.
5795 * ipa-pure-const.c: (pass_data_nothrow): New.
5796 (pass_nothrow): New.
5797 (pass_nothrow::execute): New.
5798 (make_pass_nothrow): New.
5799 * tree-pass.h (make_pass_nothrow): Declare.
5801 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5803 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
5804 edge to change by speculation resolution or redirection.
5805 (edge_set_predicate): Likewise.
5806 (inline_summary_t::duplicate): Likewise.
5807 (remap_edge_summaries): Likewise.
5809 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5811 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
5813 (can_inline_edge_p): Relax option matching for always inline functions.
5815 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
5818 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
5819 Check operand 4 and operand 0 for equality.
5820 (avx512f_vextract<shuffletype>32x4_1_maskm):
5821 Check operand 6 and operand 0 for equality.
5822 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
5824 (vec_extract_hi_<mode>_maskm): Ditto.
5826 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5828 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
5829 dead calls back to live.
5830 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
5832 (cgraph_node::verify_node): ... here; verify only callee edges,
5834 * cif-code.def (CILK_SPAWN): New code.
5836 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
5838 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
5839 (edge_set_predicate): Use it to mark unreachable edges.
5840 (inline_summary_t::duplicate): Remove unnecesary code.
5841 (remap_edge_summaries): Likewise.
5842 (dump_inline_summary): Report contains_cilk_spawn.
5843 (compute_inline_parameters): Compute contains_cilk_spawn.
5844 (inline_read_section, inline_write_summary): Stream
5845 contains_cilk_spawn.
5846 * ipa-inline.c (can_inline_edge_p): Do not touch
5847 DECL_STRUCT_FUNCTION that may not be available;
5848 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
5849 remove check for callee_fun->can_throw_non_call_exceptions and
5850 replace it by optimization attribute check; check for flag_exceptions.
5851 * ipa-inline-transform.c (inline_call): Maintain
5852 DECL_FUNCTION_PERSONALITY
5853 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
5855 2015-03-26 Jakub Jelinek <jakub@redhat.com>
5857 PR tree-optimization/65551
5858 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
5859 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
5861 2015-03-26 Richard Biener <rguenther@suse.de>
5864 * tree-cfg.c (verify_gimple_call): Do not require a call to
5865 have no LHS if it wasn't recognized as control altering yet.
5867 2015-03-26 Jakub Jelinek <jakub@redhat.com>
5869 PR tree-optimization/64715
5870 * passes.def: Add another instance of pass_object_sizes before ccp1.
5871 * tree-object-size.c (pass_object_sizes::execute): In
5872 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
5873 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
5874 __bos result and the computed constant. Remove redundant
5875 checks, obsoleted by gimple_call_builtin_p test.
5877 * var-tracking.c (variable_tracking_main_1): Don't track
5878 variables for targetm.no_register_allocation targets.
5880 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
5882 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
5883 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
5885 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5888 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
5889 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
5890 0.0 is correctly setup.
5891 (extenddftf2_internal): Likewise.
5893 2015-03-25 Sebastian Pop <s.pop@samsung.com>
5895 PR tree-optimization/65177
5896 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
5898 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
5899 edges not adjacent on the path to the original code.
5901 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
5904 * doc/install.texi (Building a native compiler): Document new
5905 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
5906 configuration assumes that the host supports the linker plugin.
5908 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
5911 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
5912 chain for generated call.
5914 2015-03-25 Richard Biener <rguenther@suse.de>
5916 * passes.c (pass_manager::execute_early_local_passes): Guard
5917 execution of pass_chkp_instrumentation_passes with
5918 flag_check_pointer_bounds.
5919 (pass_chkp_instrumentation_passes::gate): Likewise.
5921 2015-03-25 Martin Liska <mliska@suse.cz>
5923 PR tree-optimization/65538
5924 * symbol-summary.h (function_summary::~function_summary):
5925 Relese memory for allocated summaries.
5926 (function_summary::release): New function.
5928 2015-03-25 Jakub Jelinek <jakub@redhat.com>
5931 * lto-streamer-out.c (DFS::worklist): New struct.
5932 (DFS::worklist_vec): New data member.
5933 (DFS::next_dfs_num): Remove.
5934 (DFS::DFS): Rewritten using worklist instead of recursion,
5935 using most of code from DFS::DFS_write_tree.
5936 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
5937 pass it to DFS_write_tree calls.
5938 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
5939 quick initial checks push it into worklist_vec and return.
5941 2015-03-25 Richard Biener <rguenther@suse.de>
5944 * genmatch.c (expr::gen_transform): Re-write to avoid
5947 2015-03-25 Bin Cheng <bin.cheng@arm.com>
5949 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
5951 2015-03-25 Bin Cheng <bin.cheng@arm.com>
5953 * config/arm/arm.opt (print_tune_info): New option.
5954 * config/arm/arm.c (arm_print_tune_info): New function.
5955 (arm_file_start): Call arm_print_tune_info.
5956 * config/arm/arm-protos.h (struct tune_params): Add comment.
5957 * doc/invoke.texi (@item -mprint-tune-info): New item.
5958 (-mtune): mention it in ARM Option Summary.
5960 2015-03-25 DJ Delorie <dj@redhat.com>
5962 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
5965 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
5966 Martin Liska <mliska@suse.cz>
5968 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
5969 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
5970 (sem_item::add_type): New function.
5971 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
5972 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
5973 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
5974 (sem_function::equals_wpa): Fix typo.
5975 * ipa-icf.h (sem_item::add_type): New function.
5976 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
5979 2015-03-24 Jakub Jelinek <jakub@redhat.com>
5981 PR tree-optimization/65533
5982 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
5983 with swapped operands, call vect_free_slp_tree on
5984 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
5987 2015-03-24 Richard Biener <rguenther@suse.de>
5990 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
5991 for fixup if necessary.
5993 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
5995 * doc/extend.texi (Function Attributes): Add @cindex entries
5996 for all attributes and regularize their format. Delete text
5997 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
5998 information about "eightbit_data", "tiny_data", and "model"
5999 variable attributes to the Variable Attributes section. Fix
6000 some obvious typos and copy-editing issues.
6001 (Variable Attributes, Type Attributes): Likewise add/fix
6002 @cindex entries for all attributes.
6004 2015-03-23 Jakub Jelinek <jakub@redhat.com>
6007 * tree-chkp.c (chkp_build_returned_bound): Ignore
6008 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
6010 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
6013 * config/sh/predicates.md (simple_mem_operand,
6014 displacement_mem_operand): Add test for reg.
6015 (short_displacement_mem_operand): Test for displacement_mem_operand
6016 before invoking sh_disp_addr_displacement.
6017 * config/sh/constraints.md (Sdd, Sra): Simplify.
6018 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
6019 Remove redundant displacement_mem_operand tests.
6021 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
6024 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
6025 the same -mmcu=MCU more than once.
6027 2015-03-23 Jakub Jelinek <jakub@redhat.com>
6030 * ipa-devirt.c: Remove duplicate demangle.h include.
6033 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
6035 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
6036 REG_POINTER on *destptr after adjusting it for prologue size.
6039 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
6040 ultimate_alias_target ()->order ints instead of
6041 ultimate_alias_target () pointers.
6043 2015-03-23 Richard Biener <rguenther@suse.de>
6045 PR tree-optimization/65518
6046 * tree-vect-stmts.c (vectorizable_load): Reject single-element
6047 interleaving cases we generate absymal code for.
6049 2015-03-23 Richard Biener <rguenther@suse.de>
6051 PR tree-optimization/65494
6052 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
6054 (vect_analyze_slp_instance): But do that here, always and once.
6056 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6058 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
6059 adding T or multiplying by T+1 and subracting T.
6061 2015-03-22 Jeff Law <law@redhat.com>
6063 PR rtl-optimization/64317
6064 * Makefile.in (OBJS): Add gcse-common.c
6065 * gcse.c: Include gcse-common.h
6066 (struct modify_pair_s): Move structure definition to gcse-common.h
6067 (compute_transp): Move function to gcse-common.c.
6068 (canon_list_insert): Similarly.
6069 (record_last_mem_set_info): Break out some code and put it into
6070 gcse-common.c. Call into the new common code.
6071 (compute_local_properties): Pass additional arguments to compute_transp.
6072 * postreload-gcse.c: Include gcse-common.h and df.h
6073 (modify_mem_list_set, blocks_with_calls): New variables.
6074 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
6075 (get_bb_avail_insn): Pass in the expression index too.
6076 (alloc_mem): Allocate memory for the new bitmaps and lists.
6077 (free_mem): Free memory for the new bitmaps and lists.
6078 (insert_expr_in_table): Record a bitmap index for each entry we
6080 (record_last_mem_set_info): Call into common code in gcse-common.c.
6081 (get_bb_avail_insn): If no available insn was found in the requested
6082 BB. If BB has a single predecessor, see if the expression is
6083 transparent in BB and available in that single predecessor.
6084 (compute_expr_transp): New wrapper for compute_transp.
6085 (eliminate_partially_redundant_load): Pass expression's bitmap_index
6086 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
6087 (gcse_after_reload_main): If there are elements in the hash table,
6088 then compute transparency for all the elements in the hash table.
6089 * gcse-common.h: New file.
6090 * gcse-common.c: New file.
6092 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
6094 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
6096 (System Headers): Likewise.
6098 (Traditional macros): Likewise.
6099 (Invocation): Likewise.
6100 (Option Index): Likewise.
6101 * doc/cppopts.texi (-M): Likewise.
6102 (-finput-charset): Likewise.
6104 * doc.invoke.texi (AVR Options): Likewise.
6105 (V850 Options): Likewise.
6107 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
6110 * ipa-devirt.c: Include demangle.h
6111 (odr_type_d): Add field rtti_broken.
6112 (odr_subtypes_equivalent_p): Do not require name to match.
6113 (compare_virtual_tables): Fix typo; if type already has ODR violation,
6114 bypass the tests; be ready for function referneces in vtables that are
6115 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
6116 (warn_odr): Give up for nameless types.
6117 (warn_types_mismatch): Report mismatch in mangled names;
6118 report mismatch in anonymous namespaces; look into component types to
6119 give useful error; report when mismatch is dragged in from other ODR
6121 (odr_types_equivalent_p): Match types for being polymorphic; avoid
6122 duplicated diagnostics.
6123 (add_type_duplicate): Reorder checks so more informative ones come
6124 first; fix typo; do not output "the extra base is defined here" when
6126 (BINFO_N_BASE_BINFOS): Relax sanity check.
6128 2015-03-22 Martin Liska <mliska@suse.cz>
6129 Jakub Jelinek <jakub@redhat.com>
6131 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
6132 masks that can potentially include a builtin.
6133 (ix86_add_new_builtins): Introduce fast filter for isa values
6134 that cannot trigger builtin inclusion.
6136 2015-03-22 Martin Liska <mliska@suse.cz>
6138 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
6139 (sem_item::update_hash_by_local_refs): Likewise.
6140 (sem_variable::get_hash): Empty line is fixed.
6141 (sem_item_optimizer::execute): Include adding of hash references.
6142 (sem_item_optimizer::update_hash_by_addr_refs): New function.
6143 (sem_item_optimizer::build_hash_based_classes): Use local hash.
6144 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
6145 (sem_item::update_hash_by_local_refs): Likewise.
6147 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
6150 * ipa-comdats.c (enqueue_references): Walk through thunks.
6151 (ipa_comdats): Likewise.
6152 (set_comdat_group_1): New function.
6154 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
6157 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
6160 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
6161 Gerald Pfeifer <gerald@pfeifer.com>
6163 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
6165 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6166 Sandra Loosemore <sandra@codesourcery.com>
6168 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
6169 function parameter declaration.
6170 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
6171 Update arguments to nios2_adjust_call_address().
6172 (sibcall_internal): Rename from *sibcall.
6173 (sibcall_value_internal): Rename from *sibcall_value.
6174 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
6175 (nios2_large_got_address): Add target temp reg parameter.
6176 (nios2_got_address): Adjust call to nios2_large_got_address, add
6177 force_reg around it.
6178 (nios2_load_pic_address): Add target temp reg parameter, replace call
6179 to nios2_got_address with corresponding code.
6180 (nios2_legitimize_constant_address): Update call to
6181 nios2_load_pic_address.
6182 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
6183 to use temp reg for PIC loading purposes.
6184 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
6185 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
6186 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
6188 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
6190 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
6191 usage of "the @option{...}".
6192 (-Wopenmp-simd): Likewise.
6193 (-fsanitize-recover): Likewise.
6194 (-fsanitize-undefined-trap-on-error): Likewise.
6196 (tracer-dynamic-coverage-feedback): Likewise.
6197 (reorder-block-duplicate-feedback): Likewise.
6198 (loop-unroll-jam-size): Likewise.
6201 (-mabs=legacy): Likewise.
6202 (-mupper-regs-df): Likewise.
6203 (-mupper-regs-sf): Likewise.
6204 (-mpointers-to-nested-functions): Likewise.
6206 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
6208 * doc/extend.texi (Cilk Plus Builtins): Add markup.
6210 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
6212 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
6213 additional index entries and cross-references.
6214 (-fchkp-check-incomplete-type): Likewise.
6215 (-fchkp-first-field-has-own-bounds): Likewise.
6216 (-fchkp-narrow-to-innermost-array): Likewise.
6217 (-fchkp-use-fast-string-functions): Likewise.
6218 (-fchkp-use-nochk-string-functions): Likewise.
6219 (-fchkp-use-static-const-bounds): Likewise.
6220 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
6221 (-fchkp-instrument-marked-only): Likewise.
6222 (-fchkp-use-wrappers): Likewise.
6223 (-static-libmpx): Likewise.
6224 (-static-libmpxwrappers): Likewise.
6225 * doc/extend.texi (bnd_legacy): Likewise.
6226 (bnd_instrument): Likewise.
6227 (bnd_variable_size): Likewise.
6228 (Pointer Bounds Checker builtins): Likewise.
6230 2015-03-21 Tom de Vries <tom@codesourcery.com>
6232 PR tree-optimization/65458
6233 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
6234 * cgraph.h (cgraph_node): Add parallelized_function field.
6235 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
6236 (input_overwrite_node): Read parallelized_function field.
6237 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
6238 parallelized_function on cgraph_node for child_fn.
6239 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
6240 Remove include of gt-tree-parloops.h.
6241 (parallelized_functions): Remove static variable.
6242 (parallelized_function_p): Rewrite using parallelized_function field of
6244 (create_loop_fn): Remove adding to parallelized_functions.
6245 * Makefile.in (GTFILES): Remove tree-parloops.c
6247 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
6249 PR rtl-optimization/64366
6250 * lra.c (lra_update_insn_regno_info): Consider regs in
6251 CALL_INSN_FUNCTION_USAGE memory.
6253 2015-03-20 Richard Biener <rguenther@suse.de>
6256 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
6257 for type comparison and gcc_checking_assert.
6258 (chrec_fold_plus_poly_poly): Likewise.
6259 (chrec_fold_multiply_poly_poly): Likewise.
6260 (chrec_convert_1): Likewise.
6261 * gimplify.c (gimplify_expr): Remove premature folding of
6262 &X + CST to &MEM[&X, CST].
6264 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
6266 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
6268 (ipa_inline): Recompute inline_failed codes.
6269 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
6270 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
6273 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
6275 PR rtl-optimization/60851
6276 * recog.c (constrain_operands): Accept a pseudo register before reload
6277 for LRA enabled targets.
6279 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
6282 * config/rs6000/predicates.md (easy_fp_constant): Remove special
6283 -ffast-math handling that kept non-0 constants live in the RTL
6284 until reload. Remove logic testing the number of instructions it
6285 took to create a constant in a GPR that was never used, due to a
6286 test for soft-float earlier.
6287 (memory_fp_constant): Delete, no longer used.
6289 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
6290 alternatives for loading non-0 constants into GPRs for hard
6291 floating point that is no longer needed due to changes in
6292 easy_fp_constant. Add support for loading 0.0 into GPRs.
6293 (mov<mode>_hardfloat32): Likewise.
6294 (mov<mode>_hardfloat64): Likewise.
6295 (mov<mode>_64bit_dm): Likewise.
6296 (movtd_64bit_nodm): Likewise.
6297 (pre-reload move FP constant define_split): Delete define_split,
6298 since it is no longer used.
6299 (extenddftf2_internal): Remove GHF constraints that are not valid
6302 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
6304 PR rtl-optimization/63491
6305 * lra-constraints.c (check_and_process_move): Use src instead of
6306 sreg. Remove some dead code.
6308 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
6311 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
6312 (sem_variable::merge): Likewise.
6314 2015-03-19 Martin Liska <mliska@suse.cz>
6317 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
6318 all fields of cgraph_thunk_info.
6320 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
6322 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
6323 clone instrumented thunks.
6325 2015-03-19 Richard Biener <rguenther@suse.de>
6328 2015-03-10 Richard Biener <rguenther@suse.de>
6331 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
6332 * tree-ssa-coalesce.c: Include timevar.h.
6333 (attempt_coalesce): Handle graph being NULL.
6334 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
6335 Split out abnormal coalescing to ...
6336 (perform_abnormal_coalescing): ... this function.
6337 (coalesce_ssa_name): Perform abnormal coalescing without computing
6339 (verify_ssa_coalescing_worker): New function.
6340 (verify_ssa_coalescing): Likewise.
6342 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6343 Jakub Jelinek <jakub@redhat.com>
6346 * tsan.c (instrument_gimple): Clear tail call flag on
6349 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6352 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
6353 call in the return bb.
6354 (find_split_points): Add RETURN_BB argument, don't call
6356 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
6357 if true append TSAN_FUNC_EXIT internal call after the call to
6358 the split off function.
6359 (execute_split_functions): Call find_return_bb here.
6360 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
6361 Adjust find_split_points and split_function calls.
6363 2015-03-18 DJ Delorie <dj@redhat.com>
6365 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
6366 (iorqi3_virt): Likewise.
6368 2015-03-18 Tom de Vries <tom@codesourcery.com>
6370 * tree-parloops.c (parallelize_loops): Make static.
6371 * tree-parloops.h (parallelize_loops): Remove extern declaration.
6373 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
6377 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
6379 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
6380 condition would be removed due to undefined behaviour.
6382 2015-03-18 Martin Liska <mliska@suse.cz>
6385 * cgraph.c (cgraph_node::get_create): Remove unnecessary
6386 xstrdup_for_dump wrapper.
6387 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
6389 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
6390 with xstrdup_for_dump.
6391 (sem_variable::equals): Likewise.
6392 (sem_item_optimizer::read_section): Use symtab_node::name instead of
6394 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
6395 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
6396 symtab_node::asm_name with xstrdup_for_dump.
6397 (congruence_class::dump): Use symtab_node::name instead of
6399 * ipa-icf.h (symtab_node::name): Remove.
6400 (symtab_node::asm_name): Likewise.
6402 2015-03-18 Jakub Jelinek <jakub@redhat.com>
6404 PR tree-optimization/65450
6405 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
6407 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
6408 it instead of duplicate_ssa_name_ptr_info.
6411 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
6413 2015-03-18 Richard Biener <rguenther@suse.de>
6415 * tree-data-ref.h (struct access_matrix): Remove.
6416 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6417 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6418 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
6419 (am_vector_index_for_loop): Likewise.
6420 (struct data_reference): Remove access_matrix member.
6421 (DR_ACCESS_MATRIX): Remove.
6422 (lambda_vector_new): Add comment.
6423 (lambda_matrix_new): Use XOBNEWVEC.
6425 2015-03-18 Richard Biener <rguenther@suse.de>
6427 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
6428 (pass_ch::execute): Cleanup the CFG only if we did sth.
6429 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
6431 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6433 * expmed.c (synth_mult): Use std::swap instead of manually
6434 swapping algorithms.
6436 2015-03-18 Jakub Jelinek <jakub@redhat.com>
6439 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
6441 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
6444 * config/avr/avr.opt (-nodevicelib): New option.
6445 * doc/invoke.texi (AVR Options): Document it.
6446 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
6447 libgcc.a, libc.a, libm.a.
6448 * config/avr/specs.h: Same.
6449 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
6450 which don't (directly) depend on the device. Print more help.
6451 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
6452 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
6453 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
6455 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
6456 for specs file name.
6457 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
6458 * config/avr/avr-mcus.def: Adjust initializers and comments.
6460 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
6462 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
6463 DECL_ONE_ONLY to check if decl is one only.
6464 * ipa-split.c (consider_split): Limit splitt of one only functions.
6466 2015-03-16 Jakub Jelinek <jakub@redhat.com>
6468 PR tree-optimization/65427
6469 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
6471 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
6473 2015-03-16 Marek Polacek <polacek@redhat.com>
6475 * cgraph.h (add_new_static_var): Remove declaration.
6476 * varpool.c (add_new_static_var): Remove function.
6478 2015-03-16 Jakub Jelinek <jakub@redhat.com>
6480 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
6481 instead of vec<tree> * with vec_alloc and release for args.
6485 * omp-low.c (delete_omp_context): Only splay_tree_delete
6486 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
6487 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
6489 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
6492 * cfgexpand.c (align_base): New function.
6493 (alloc_stack_frame_space): Call it.
6494 (expand_stack_vars): Align prev_frame to be sure
6495 data->asan_vec elements aligned properly.
6497 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
6500 * expr.c (store_field): Do not do a direct block copy if the source is
6501 a PARALLEL with BLKmode.
6503 2015-03-16 Tom de Vries <tom@codesourcery.com>
6507 2015-03-12 Tom de Vries <tom@codesourcery.com>
6509 PR rtl-optimization/64895
6510 * lra-lives.c (check_pseudos_live_through_calls): Use
6511 actual_call_used_reg_set instead of call_used_reg_set, if available.
6513 2015-03-16 Alan Modra <amodra@gmail.com>
6516 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
6517 Modify Z->r bswapdi splitter to use dest in place of scratch.
6518 In r->Z and Z->r bswapdi splitter rename word_high, word_low
6519 to word1, word2 and rearrange logic to suit.
6520 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
6521 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
6522 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
6523 Add one '?' on r->r. Modify Z->r splitter to avoid need for
6526 2015-03-14 Jakub Jelinek <jakub@redhat.com>
6528 PR tree-optimization/65369
6529 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
6530 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
6531 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
6533 PR tree-optimization/65418
6534 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
6535 are casts in the first PLUS_EXPR operand, ensure tbias and
6536 *totallowp are in the inner type.
6538 PR rtl-optimization/65401
6539 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
6540 argument. If true, adjust_address_nv of x with big-endian
6541 correction for the mode widening to GET_MODE (y).
6542 (make_field_assignment): Don't do MEM mode widening here.
6543 Use MEM_P instead of GET_CODE == MEM.
6545 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6547 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
6550 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6553 * config/arm/arm.c (arm_gen_constant, AND case): Use
6554 ARM_SIGN_EXTEND when constructing AND mask.
6556 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6558 * graph.c (print_graph_cfg): Make function names visible and append
6559 parenthesis to it. Also make groups of basic blocks belonging to the
6560 same function visible.
6562 2015-03-12 Richard Biener <rguenther@suse.de>
6565 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
6566 to avoid quadratic behavior with inline expansion splitting blocks.
6567 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
6568 with the successor if the predecessor will be merged with it.
6569 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
6570 entry block with its successor.
6572 2015-03-13 Richard Biener <rguenther@suse.de>
6575 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
6576 (cleanup_tree_cfg_1): Do not call it.
6577 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
6578 (fixup_noreturn_call): Mark the stmt as control altering.
6579 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
6581 (pass_data_fixup_cfg): Produce a dump file.
6582 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
6583 (need_noreturn_fixup): New global.
6584 (pass_dominator::execute): Fixup queued noreturn calls.
6585 (optimize_stmt): Queue calls that became noreturn for fixup.
6586 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
6587 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
6588 (el_to_fixup): New global.
6589 (eliminate_dom_walker::before_dom_childre): Queue calls that
6590 became noreturn for fixup.
6591 (eliminate): Fixup queued noreturn calls.
6592 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
6593 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
6594 (substitute_and_fold_dom_walker::before_dom_children): Queue
6595 alls that became noreturn for fixup.
6596 (substitute_and_fold): Fixup queued noreturn calls.
6598 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
6600 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
6601 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
6602 are building; for methods check ODR type of class they belong to if
6603 they may lead to a polymorphic call.
6604 (sem_function::compare_polymorphic_p): Be bit smarter about testing
6605 when function may lead to a polymorphic call.
6606 (sem_function::compare_type_list): Remove.
6607 (sem_variable::equals): Update use of compatible_types_p.
6608 (sem_variable::parse_tree_refs): Remove.
6609 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
6611 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
6613 (func_checker::compatible_polymorphic_types_p): Break out from ...
6614 (unc_checker::compatible_types_p): ... here.
6615 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
6617 (unc_checker::compatible_types_p): Update.
6618 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
6621 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6623 PR rtl-optimization/65235
6624 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
6625 When first element of vec_concat is const_int, calculate its size
6626 using second element.
6628 2015-03-12 Richard Biener <rguenther@suse.de>
6631 * fold-const.c (operand_equal_p): Fix ordering of resetting
6632 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
6634 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
6636 * config/s390/s390.c (s390_reorg): Move code to output nops after label
6638 (s390_asm_output_function_label): Likewise.
6639 * config/s390/s390.c (s390_asm_output_function_label):
6640 Fix function label alignment with -mhtopatch.
6641 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
6642 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
6643 ("nop_2_byte"): New define_insn.
6644 ("nop_4_byte"): Likewise.
6645 ("nop_6_byte"): Likewise.
6646 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
6647 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
6649 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
6652 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
6655 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
6658 * toplev.c (process_options): Restrict Pointer Bounds Checker
6659 usage with Address Sanitizer.
6661 2015-03-12 Richard Biener <rguenther@suse.de>
6663 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
6665 * omp-low.c (expand_omp_taskreg): Split block before removing
6667 (expand_omp_target): Likewise.
6668 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
6669 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
6670 stmt to split_block.
6672 2015-03-12 Tom de Vries <tom@codesourcery.com>
6674 PR rtl-optimization/64895
6675 * lra-lives.c (check_pseudos_live_through_calls): Use
6676 actual_call_used_reg_set instead of call_used_reg_set, if available.
6678 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
6680 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
6681 (cgraph_node::remove): Likewise.
6682 (cgraph_node::get_untransformed_body): Likewise.
6683 * varpool.c (varpool_node::remove): Likewise.
6684 (varpool_node::get_constructor): Add sanity check.
6686 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
6688 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
6690 (-fabi-compat-version): Likewise.
6691 (-ffriend-injection): Likewise.
6692 (-Wdeclaration-after-statement): Likewise.
6693 (-fomit-frame-pointer): Likewise.
6694 (-ftree-coalesce-inlined-vars): Likewise.
6695 (-fvisibility=): Likewise.
6696 * doc/extend.texi (Typeof): Likewise.
6697 (Zero Length): Likewise.
6698 (Escaped Newlines): Likewise.
6699 (Compound Literals): Likewise.
6700 (Function Attributes): Likewise.
6701 (Label Attributes): Likewise.
6702 (Type Attributes): Likewise.
6703 (Function Names): Likewise.
6704 (Other Builtins): Likewise.
6705 (Function Specific Option Pragmas): Likewise.
6706 (C++ Interface): Likewise.
6708 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
6710 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
6712 2015-03-11 Marek Polacek <polacek@redhat.com>
6714 PR tree-optimization/65388
6715 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
6717 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
6720 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
6721 * configure: Regenerate.
6722 * config.in: Regenerate.
6723 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
6724 [-mn-flash]: Document it.
6725 [__AVR_ARCH__]: Document avrtiny.
6727 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
6728 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
6729 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
6731 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6733 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
6735 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6738 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
6739 allow reloads of PLUS in floating point/VSX registers.
6741 2015-03-11 Junmo Park <junmoz.park@samsung.com>
6743 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
6745 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
6747 2015-03-11 Richard Biener <rguenther@suse.de>
6749 PR tree-optimization/65310
6750 * tree-sra.c (build_ref_for_offset): Also preserve larger
6753 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
6755 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
6757 2015-03-10 Jakub Jelinek <jakub@redhat.com>
6760 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
6762 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
6764 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
6766 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
6767 (sem_function::equals_wpa): ... here.
6769 2015-03-10 Marek Polacek <polacek@redhat.com>
6770 Jakub Jelinek <jakub@redhat.com>
6773 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
6774 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
6777 2015-03-10 Jakub Jelinek <jakub@redhat.com>
6780 * config/rs6000/t-linux: For powerpc64* target set
6781 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
6783 2015-03-10 Richard Biener <rguenther@suse.de>
6786 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
6787 for redirect_all_calls.
6789 2015-03-10 Marek Polacek <polacek@redhat.com>
6791 * gdbinit.in (pcfun): Define and document.
6793 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
6795 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
6796 of libgomp-plugin.h.
6797 (find_target_compiler): Support a case when the path to gcc is
6798 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
6799 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
6800 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
6802 (main): Use GCC_INSTALL_NAME as target_driver_name.
6803 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
6805 (mkoffload.o): Remove obsolete include path and defines.
6806 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
6808 2015-03-10 Richard Biener <rguenther@suse.de>
6811 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
6812 * tree-ssa-coalesce.c: Include timevar.h.
6813 (attempt_coalesce): Handle graph being NULL.
6814 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
6815 Split out abnormal coalescing to ...
6816 (perform_abnormal_coalescing): ... this function.
6817 (coalesce_ssa_name): Perform abnormal coalescing without computing
6819 (verify_ssa_coalescing_worker): New function.
6820 (verify_ssa_coalescing): Likewise.
6822 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
6825 * config.gcc (extra_options) [avr]: Remove.
6826 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
6827 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
6828 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
6830 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
6831 (-mmcu=): Add Var and MissingArgError properties.
6833 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
6834 * config/avr/t-multilib: Regenerate.
6835 * config/avr/specs.h: New file.
6836 * config/avr/driver-avr.c: New file.
6837 * config/avr/genopt.sh: Remove file.
6838 * config/avr/avr-tables.opt: Remove file.
6839 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
6840 * config/avr/avr-c.c: Same.
6842 (avr_current_device): Remove proto.
6843 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
6844 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
6845 (EXTRA_SPEC_FUNCTIONS): Define.
6846 (avr_devicespecs_file): New specs function proto.
6847 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
6848 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
6849 (avr_current_device): Remove definition and usage.
6850 (avr_set_core_architecture): New static function.
6851 (avr_option_override): Use it.
6852 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
6853 (mcu_name): New static array.
6854 (comparator, avr_archs_str, avr_mcus_str): New static functions.
6855 (avr_inform_devices, avr_inform_core_architectures): New functions.
6856 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
6857 (avrlibc.h) [WITH_AVRLIBC]: Include.
6858 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
6859 (print_mcu): Rewrite from scratch.
6860 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
6861 Forward to avr-specific specs defined in device-specs file.
6862 * config/avr/t-avr (driver-avr.o): New rule.
6863 (avr-devices.o): Depend on avr-arch.h.
6864 (avr-mcus): No more depend on avr-tables.opt.
6865 (avr-tables.opt): Remove rule.
6866 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
6868 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
6870 * c-family/c.opt (fchkp-use-wrappers): New.
6871 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
6872 (chkp_wrap_function): New.
6873 (chkp_build_instrumented_fndecl): Support wrapped
6875 * doc/invoke.texi (-fcheck-pointer-bounds): New.
6876 (-fchkp-check-incomplete-type): New.
6877 (-fchkp-first-field-has-own-bounds): New.
6878 (-fchkp-narrow-bounds): New.
6879 (-fchkp-narrow-to-innermost-array): New.
6880 (-fchkp-optimize): New.
6881 (-fchkp-use-fast-string-functions): New.
6882 (-fchkp-use-nochk-string-functions): New.
6883 (-fchkp-use-static-bounds): New.
6884 (-fchkp-use-static-const-bounds): New.
6885 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
6886 (-fchkp-check-read): New.
6887 (-fchkp-check-write): New.
6888 (-fchkp-store-bounds): New.
6889 (-fchkp-instrument-calls): New.
6890 (-fchkp-instrument-marked-only): New.
6891 (-fchkp-use-wrappers): New.
6892 (-static-libmpx): New.
6893 (-static-libmpxwrappers): New.
6895 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
6897 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
6898 (CHKP_SPEC): Add wrappers library.
6899 * c-family/c.opt (static-libmpxwrappers): New.
6901 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
6903 * config/i386/linux-common.h (LIBMPX_LIBS): New.
6906 * gcc.c (CHKP_SPEC): New.
6907 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
6908 * c-family/c.opt (static-libmpx): New.
6910 2015-03-10 Richard Biener <rguenther@suse.de>
6913 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
6915 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
6916 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
6917 (cgraph_add_edge_to_call_site_hash): Likewise.
6918 (cgraph_node::get_edge): Likewise.
6919 (cgraph_edge::set_call_stmt): Likewise.
6920 (cgraph_edge::remove_caller): Likewise.
6922 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
6924 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
6925 (callee_saved_gpr_regs_size): ... this.
6926 (callee_saved_regs_first_regno): Rename to ...
6927 (callee_saved_first_gpr_regno): ... this.
6928 (callee_saved_regs_last_regno) Rename to ...
6929 (callee_saved_last_gpr_regno): ... this.
6930 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
6932 (nds32_initial_elimination_offset): Likewise.
6933 (nds32_expand_prologue): Likewise.
6934 (nds32_expand_epilogue): Likewise.
6935 (nds32_expand_prologue_v3push): Likewise.
6936 (nds32_expand_epilogue_v3pop): Likewise.
6937 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6938 Adjust renamed variables.
6939 (nds32_output_stack_pop): Likewise.
6941 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
6943 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
6946 2015-03-10 Jakub Jelinek <jakub@redhat.com>
6948 PR rtl-optimization/65321
6949 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
6951 * var-tracking.c (use_narrower_mode): Likewise.
6953 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
6955 PR tree-optimization/65355
6956 * varasm.c (notice_global_symbol): Do not produce RTL.
6957 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
6959 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6960 check for section anchors.
6962 2015-03-10 Alan Modra <amodra@gmail.com>
6965 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
6966 to be single-arch by default. Set cpu_is_64bit for powerpc64
6967 given --with-cpu=native.
6968 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
6969 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
6971 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
6972 rs6000_isa_flags rather than TARGET_64BIT.
6974 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
6975 Kaz Kojima <kkojima@gcc.gnu.org>
6977 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
6979 2015-03-09 Jakub Jelinek <jakub@redhat.com>
6982 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
6983 on a TREE_BINFO, instead use BINFO_TYPE.
6985 2015-03-09 Richard Biener <rguenther@suse.de>
6988 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
6989 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
6990 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
6991 of that. When comparing dereferences compare alignment.
6992 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
6994 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
6996 * ipa-inline-analysis.c (check_callers): Check
6997 node->can_remove_if_no_direct_calls_and_refs_p.
6998 (growth_likely_positive): Reorganize to call
6999 can_remove_if_no_direct_calls_p later.
7000 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
7001 will_be_removed_from_program_if_no_direct_calls_p): Add
7002 will_inline parameter.
7003 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
7004 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7005 Handle inliner case correctly.
7007 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7009 PR tree-optimization/63743
7010 * cfgexpand.c (reorder_operands): Also reorder if only second operand
7011 had its definition forwarded by TER.
7013 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
7016 * ipa-utils.h (types_odr_comparable): Add strict argument.
7017 * ipa-devirt.c: Fix whitespace;
7018 (odr_hasher): Remove.
7019 (odr_name_hasher, odr_vtable_hasher): New hashers.
7020 (can_be_name_hashed_p): New predicate.
7021 (hash_type_name): remove.
7022 (hash_odr_name): New.
7023 (odr_name_hasher::hash): new.
7024 (can_be_vtable_hashed_p): New.
7025 (hash_odr_vtable): New.
7026 (odr_vtable_hasher::hash): New.
7027 (types_same_for_odr): Add strict parameter.
7028 (types_odr_comparable): Likewise.
7029 (odr_name_hasher::equal): New.
7030 (odr_vtable_hasher::equal): New.
7031 (odr_name_hasher::remove): New.
7032 (odr_hash_type): Change to hash_table<odr_name_hasher>.
7033 (odr_vtable_hash_type): New.
7034 (odr_vtable_hash): New.
7035 (odr_subtypes_equivalent_p): Do strict comparsion.
7036 (add_type_duplicate): Merge type names; cleanup; avoid type
7038 (register_odr_type): Initialize vtable hash.
7039 (build_type_inheritance_graph): Likewise
7040 (get_odr_type): Reorg to use two hashes.
7041 (dump_possible_polymorphic_call_targets): Move sanity check after debug
7043 (ipa_devirt): Dump type_inheritance_graph.
7044 (types_same_for_odr): Add strict mode.
7046 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7049 * cgraph.h (symtab_node): Add definition_alignment,
7050 can_increase_alignment_p and increase_alignment.
7051 * symtab.c (symtab_node::can_increase_alignment_p,
7052 increase_alignment_1, symtab_node::increase_alignment,
7053 symtab_node::definition_alignment): New.
7054 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
7055 can_increase_alignment_p.
7056 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
7057 * tree-vect-stmts.c (ensure_base_align): Likewise.
7058 * varasm.c (function_section_1): Use definition_alignment.
7059 (assemble_start_function): Likewise.
7060 (emit_local): likewise.
7061 (build_constant_desc): Likewsie.
7062 (output_constant_def_contents): Likewise.
7063 (place_block_symbol): Likewise.
7064 (output_object_block): Likewise.
7066 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7069 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
7070 when outputting debug.
7072 2015-03-07 Marek Polacek <polacek@redhat.com>
7073 Martin Uecker <uecker@eecs.berkeley.edu>
7076 * doc/invoke.texi: Update description of -fsanitize=bounds.
7078 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
7080 * tree-ssa-phiopt.c (neg_replacement): Remove.
7081 (tree_ssa_phiopt_worker): Remove negate optimization.
7083 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7086 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
7088 2015-03-06 Richard Biener <rguenther@suse.de>
7091 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
7092 and liveout_obstack members.
7093 (calculate_live_on_exit): Remove.
7094 (calculate_live_ranges): Change declaration.
7095 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
7096 (new_tree_live_info): Adjust.
7097 (calculate_live_ranges): Delete livein when not wanted.
7098 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
7099 Deal with partly deleted live info.
7100 (loe_visit_block): Remove temporary bitmap by using
7101 bitmap_ior_and_compl_into.
7102 (live_worklist): Adjust accordingly.
7103 (calculate_live_on_exit): Make static.
7104 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
7105 we do not need livein.
7107 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
7109 * real.c (real_from_string): Fix typo in assertion.
7111 2015-03-06 Alex Velenko <alex.velenko@arm.com>
7113 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
7116 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7118 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
7120 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
7123 * lra-assigns.c (find_hard_regno_for): Rename to
7124 find_hard_regno_for_1. Add a new parameter.
7125 (find_hard_regno_for): New function using find_hard_regno_for_1.
7127 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
7129 PR rtl-optimization/65067
7130 * expmed.c (store_bit_field, extract_bit_field): Reworked the
7131 strict volatile bitfield handling.
7133 2015-03-05 Martin Liska <mliska@suse.cz>
7136 * ipa-icf.c (sem_variable::equals): Compare variables types.
7138 2015-03-05 Richard Henderson <rth@redhat.com>
7141 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
7142 correctly check weak symbol binding.
7144 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
7147 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
7150 2015-03-05 Martin Liska <mliska@suse.cz>
7152 * ipa-inline.c (inline_small_functions): Set default value to
7153 prevent warning during bootstrap.
7154 * tree.h: Add pragma guard that ignores false positives during
7157 2015-03-05 Richard Biener <rguenther@suse.de>
7159 PR tree-optimization/65310
7160 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7161 Properly preserve alignment of the base of the access.
7163 2015-03-05 Richard Biener <rguenther@suse.de>
7166 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
7167 Compare dependence info.
7169 2015-03-05 Richard Biener <rguenther@suse.de>
7172 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
7174 (walk_ssa_copies): Revert last chage. Instead do not walk
7175 SSA names registered for SSA update.
7177 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
7180 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
7181 vtable references for their containing type.
7182 (sem_function::equals_wpa): Compare TYPE_RESTRICT
7183 and type attributes.
7185 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
7187 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
7189 * stor-layout.c (finalize_record_size): Revert latest change.
7191 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
7193 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
7195 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
7197 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
7198 for correct comdat handling.
7199 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7201 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
7202 (used_from_object_file_p_worker): Remove.
7203 (cgraph_node::only_called_directly_or_alised): Add
7204 used_from_object_file_p.
7205 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
7206 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
7207 can_remove_if_no_direct_calls_and_refs_p.
7209 2015-03-04 Nick Clifton <nickc@redhat.com>
7211 * config/rl78/rl78.h (enum reg_class): Remove real registers from
7212 General register class.
7213 * config/rl78/rl78-real.md: Replace general register constraints
7214 with real+virtual register constraints.
7216 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7218 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
7219 from checking for -mhtm option.
7221 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
7223 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
7224 (struct ipa_sra_check_caller_data): Add has_thunk field.
7225 (ipa_sra_check_caller): Check for thunk.
7226 (ipa_sra_preliminary_function_checks): Give up on function with
7228 (ipa_early_sra): Use call_for_symbol_and_aliases.
7230 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
7233 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
7234 called for __stack_chk_guard symbol.
7236 2015-03-03 DJ Delorie <dj@redhat.com>
7238 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
7240 (*addhi3_real): Likewise.
7241 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
7242 pattern to match incrementing memory.
7243 * config/rl78/predicates.md (rl78_1_2_operand): New.
7244 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
7245 it's the same and only mem.
7246 (rl78_alloc_physical_registers_op2): If there's effectively only
7247 one MEM, transcode it into HL.
7248 (rl78_far_p): Reject addresses that aren't legitimate.
7250 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
7252 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
7255 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
7257 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
7259 Implement call0 ABI for xtensa
7260 * config/xtensa/constraints.md ("a" constraint): Include stack
7261 pointer in case of call0 ABI.
7262 ("q" constraint): Make empty in case of call0 ABI.
7263 ("D" constraint): Include stack pointer in case of call0 ABI.
7264 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
7265 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
7267 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
7269 (xtensa_regno_to_class): Make it a local variable in the
7270 function xtensa_regno_to_class.
7271 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
7272 macro, function prototype and implementation.
7273 (reg_nonleaf_alloc_order): Make it a local variable in the
7274 function order_regs_for_local_alloc.
7275 (xtensa_conditional_register_usage): New function.
7276 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
7277 (xtensa_valid_move): Allow direct moves to stack pointer
7278 register in call0 ABI.
7279 (xtensa_setup_frame_addresses): Only spill register windows in
7281 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
7282 call0 ABI respectively.
7283 (xtensa_function_arg_1): Only mark a7 register for copying in
7285 (xtensa_call_save_reg): New function.
7286 (compute_frame_size): Add space for callee saved register
7287 storage to the frame size in call0 ABI.
7288 (xtensa_expand_prologue): Generate code to set up stack frame
7289 and save callee-saved registers in call0 ABI.
7290 (xtensa_expand_epilogue): New function.
7291 (xtensa_set_return_address): New function.
7292 (xtensa_return_addr): Calculate return address in call0 ABI.
7293 (xtensa_builtin_saveregs): Only mark a7 register for copying and
7294 emit copying code in windowed ABI.
7295 (order_regs_for_local_alloc): Add preferred register allocation
7296 order for non-leaf function in call0 ABI.
7297 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
7298 (xtensa_asm_trampoline_template): Add trampoline generation for
7300 (xtensa_trampoline_init): Add trampoline initialization for
7302 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
7304 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
7305 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
7306 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
7307 ABI call-used registers.
7308 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
7309 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
7311 (REG_CLASS_CONTENTS): Include all registers into the preferred
7312 reload registers set, adjust the set in the
7313 xtensa_conditional_register_usage.
7314 (xtensa_regno_to_class): Drop variable declaration.
7315 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
7317 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
7319 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
7320 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
7321 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
7322 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
7323 location in call0 ABI.
7324 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
7325 stack adjustment size when handling exception.
7326 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
7327 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
7329 ("return" pattern): Generate ret.n/ret in call0 ABI.
7330 ("epilogue" pattern): Expand epilogue.
7331 ("nonlocal_goto" pattern): Use default in call0 ABI.
7332 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
7333 emit eh_set_a0_* depending on ABI.
7334 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
7335 ("eh_set_a0_call0", "blockage"): New patterns.
7337 2015-03-03 Martin Liska <mliska@suse.cz>
7340 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
7342 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7345 * config/rs6000/rs6000-tables.opt: Regenerate table.
7347 2015-03-03 Renlin Li <renlin.li@arm.com>
7349 * doc/md.texi (@item ^): Change ? into ^.
7351 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
7353 * doc/tm.texi: Regenerated.
7355 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
7357 * builtins.c (expand_builtin_return_addr): Add
7358 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
7360 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
7362 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
7364 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
7366 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
7369 2015-03-03 Martin Jambor <mjambor@suse.cz>
7370 Eric Botcazou <ebotcazou@adacore.com>
7372 * tree-sra.c (ipa_sra_check_caller_data): New type.
7373 (has_caller_p): Removed.
7374 (ipa_sra_check_caller): New function.
7375 (ipa_sra_preliminary_function_checks): Use it.
7377 2015-03-03 Martin Liska <mliska@suse.cz>
7379 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
7380 instead of if branch.
7382 2015-03-03 Martin Liska <mliska@suse.cz>
7385 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
7387 2015-03-23 Jeff Law <law@redhat.com>
7389 PR tree-optimization/65241
7390 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
7391 hash table if INSERT is true.
7393 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
7396 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
7398 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
7401 * config/avr/avr.c (context.h, tree-pass.h): Include them.
7402 (avr_pass_data_recompute_notes): New static variable.
7403 (avr_pass_recompute_notes): New class.
7404 (avr_register_passes): New static function.
7405 (avr_option_override): Call it.
7407 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
7409 Fix various problems with specs file generation.
7412 * config.gcc (extra_gcc_objs) [avr]: Remove.
7413 * config/avr/driver-avr.c: Remove file.
7414 * config/avr/t-avr (driver-avr.o): Remove rule.
7415 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
7416 INCLUDES to build. Depend on TM_H.
7417 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
7418 build warnings. Fix non-matching types and non-existing %-codes.
7420 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
7421 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
7422 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
7423 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
7424 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
7425 (LIBGCC_SPEC): Remove definitions.
7427 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
7429 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
7430 to create a register in testing mode.
7432 2015-03-03 Martin Liska <mliska@suse.cz>
7433 Jan Hubicka <hubicka@ucw.cz>
7436 * cgraph.c (cgraph_node::has_thunk_p): New function.
7437 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
7438 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
7439 (sem_function::merge): Assert is changed.
7441 2015-03-03 Martin Liska <mliska@suse.cz>
7442 Martin Jambor <mjambor@suse.cz>
7445 * ipa-icf.c (sem_item_optimizer::execute): Change function
7446 return value to boolean.
7447 (sem_item_optimizer::merge_classes): Likewise.
7448 (ipa_icf_driver): Return TODO_remove_functions in case there's
7449 a merge operation processed.
7450 * ipa-icf.h: Change function return value to boolean.
7452 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7455 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
7456 processor type for 64-bit little endian PowerPC.
7458 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7459 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
7460 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
7461 printing built-in mask so it does not pass NULL pointers.
7463 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
7466 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
7469 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
7470 !ISA_HAS_FP_CONDMOVE.
7472 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
7474 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
7477 2015-03-02 Ulrich Drepper <drepper@gmail.com>
7479 * doc/invoke.texi (Options for Code Generation Conventions):
7480 Fix URL of DSO paper.
7482 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7485 * ipa-inline.c (check_callers): Looks for recursion.
7486 (inline_to_all_callers): Give up on uninlinable or recursive edges.
7487 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
7488 summary of inline clones.
7489 (do_estimate_growth_1): Fix recursion check.
7491 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7494 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
7497 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7498 Aldy Hernandez <aldyh@redhat.com>
7501 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
7502 when checking TYPE_BINFO.
7504 2015-03-02 Richard Biener <rguenther@suse.de>
7507 * ipa-icf-gimple.c: Include builtins.h.
7508 (func_checker::compare_memory_operand): Compare base alignment.
7510 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
7513 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
7514 are never passed by reference.
7516 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
7519 * tree-chkp.c (chkp_check_lower): Don't check against
7520 zero bounds for already instrumented functions.
7521 (chkp_check_upper): Likewise.
7522 (chkp_fini): Clean pass local data to avoid wrong reusage.
7524 2015-02-28 Martin Liska <mliska@suse.cz>
7525 Jan Hubicka <hubicka@ucw.cz>
7527 * ipa-icf.c (sem_variable::equals): Improve debug output;
7528 get variable constructor.
7529 (sem_variable::parse): Do not filter out too early; give up on
7530 volatile and register vars.
7531 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
7533 * ipa-icf.h (sem_variable::init): Do not set ctor.
7534 (sem_variable::ctor): Remove.
7536 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
7539 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
7541 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7543 * ipa-icf.c: Include stor-layout.h
7544 (sem_function::compare_cgraph_references): Rename to ...
7545 (sem_item::compare_cgraph_references): ... this one.
7546 (sem_variable::equals_wpa): New function
7547 (sem_variable::equals): Do not check stuff already verified by
7549 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
7550 * ipa-icf.h (sem_item): Add compare_cgraph_references.
7551 (sem_function): Remove compare_cgraph_references.
7552 (sem_variable): Turns equals_wpa into non-inline.
7554 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7556 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
7557 (sem_item::add_expr): New function.
7558 (sem_function::hash_stmt): Handle operands of most statements.
7559 (sem_variable::get_hash): Hash the actual constructor.
7560 * ipa-icf.h (sem_item): Add add_expr.
7561 (sem_function): Update prototype of hash_stmt
7563 2015-02-28 Martin Liska <mliska@suse.cz>
7564 Jan Hubicka <hubicka@ucw.cz>
7567 * ipa-icf-gimple.c (func_checker::compare_function_decl):
7569 (func_checker::compare_variable_decl): Skip symtab vars.
7570 (func_checker::compare_cst_or_decl): Update.
7571 * ipa-icf.c (sem_function::parse): Do not consider aliases.
7572 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
7573 use correct symtab predicates.
7574 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
7575 (sem_variable::parse): Update comment.
7576 (sem_item_optimizer::build_graph): Consider ultimate aliases
7579 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7581 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
7584 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7586 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
7587 (sem_variable::merge) Likewise.
7589 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7591 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
7592 target; also match flag_ipa_devirt.
7594 2015-03-01 Martin Liska <mliska@suse.cz>
7595 Jan Hubicka <hubicka@ucw.cz>
7597 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
7598 Validate variable alignment.
7599 * ipa-icf.c (sem_function::equals_private): Be more precise
7600 about non-common function attributes.
7601 (sem_variable::equals): Likewise.
7603 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7606 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
7607 across COMDAT group boundary.
7609 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7612 * ipa-icf.c (clear_decl_rtl): New function.
7613 (sem_function::merge): Clear RTL before forming alias.
7614 (sem_variable::merge): Clear RTL before forming alias.
7616 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7619 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
7621 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
7623 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
7626 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
7628 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
7629 a typo in the description.
7631 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
7634 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
7635 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
7636 * lra-constraints.c: Include "params.h".
7637 (EBB_PROBABILITY_CUTOFF): Use
7638 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
7639 (lra_inheritance): Use '<' instead of '<=' for
7640 EBB_PROBABILITY_CUTOFF.
7641 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
7644 2015-02-27 Martin Liska <mliska@suse.cz>
7646 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
7647 vector length condition.
7649 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
7651 * doc/extend.texi (x86 transactional memory intrinsics):
7652 Reorganize discussion of _xbegin. Clarify that the return
7653 value is a bit mask. Expand example and move to end of section.
7655 2015-02-26 Jakub Jelinek <jakub@redhat.com>
7656 Aldy Hernandez <aldyh@redhat.com>
7658 PR rtl-optimization/65220
7659 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
7661 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
7664 * lra-remat.c (update_scratch_ops): New.
7665 (do_remat): Call it.
7666 * lra.c (lra_register_new_scratch_op): New. Take code from ...
7667 (remove_scratches): ... here.
7668 * lra-int.h (lra_register_new_scratch_op): New prototype.
7670 2015-02-27 Marek Polacek <polacek@redhat.com>
7673 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
7674 -Wformat-signedness anymore.
7676 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7678 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
7680 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
7682 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7684 * config/s390/s390.c (enum s390_builtin):
7685 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
7686 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
7687 (s390_init_builtins): Generate new builtin functions.
7688 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
7689 (s390_sfpc, s390_efpc): New pattern definitions.
7691 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7693 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
7694 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
7695 (s390_builtin_decls): New array.
7696 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
7697 (s390_builtin_decl): New function.
7698 (TARGET_BUILTIN_DECL): Define macro.
7700 2015-02-27 Richard Biener <rguenther@suse.de>
7703 * builtins.c (get_object_alignment_2): Make sure to re-apply
7704 the ANDed mask after recursing to its operand gets us a new
7705 misalignment bit position.
7707 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
7708 Martin Liska <mliska@suse.cz>
7711 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
7712 Use address_matters_p.
7713 (redirect_all_callers, set_addressable): New functions.
7714 (sem_function::merge): Reorganize and fix merging issues.
7715 (sem_variable::merge): Likewise.
7716 (sem_variable::compare_sections): Remove.
7717 * common.opt (fmerge-all-constants, fmerge-constants): Remove
7719 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
7721 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
7723 (address_matters_1): New function.
7724 (symtab_node::address_matters_p): New function.
7725 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
7726 check for merged flag.
7727 * cgraph.h (address_matters_p): Declare.
7728 (symtab_node::address_taken_from_non_vtable_p): Remove.
7729 (symtab_node::address_can_be_compared_p): New method.
7730 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
7731 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
7733 (comdat_can_be_unshared_p_1) Use address_matters_p.
7734 (update_vtable_references): Fix formating.
7735 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
7736 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
7737 * cgraphclones.c: Preserve merged and icf_merged flags.
7739 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
7741 * doc/extend.texi (Function Attributes): Fix spelling and typos.
7742 (Label Attributes): Likewise.
7743 (Cilk Plus Builtins): Likewise.
7744 (ARC SIMD Built-in Functions): Likewise.
7745 (ARM C Language Extensions (ACLE)): Likewise.
7746 (PowerPC Built-in Functions): Likewise.
7747 (PowerPC Hardware Transactional Memory Built-in Functions):
7750 2015-02-26 Jakub Jelinek <jakub@redhat.com>
7752 PR tree-optimization/65216
7753 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
7754 new stmt and new SSA_NAME for lhs whenever the arguments have
7755 changed and weren't just swapped. Fix comment typo.
7757 PR tree-optimization/65215
7758 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
7759 for PDP endian targets.
7760 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
7761 Fix up formatting issues.
7762 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
7763 size is smaller than the original, adjust MEM_REF offset by the
7764 difference of sizes. Use is_gimple_mem_ref_addr instead of
7765 is_gimple_min_invariant test to avoid adding address temporaries.
7767 2015-02-26 Martin Liska <mliska@suse.cz>
7768 Jan Hubicka <hubicka@ucw.cz>
7771 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
7772 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
7773 (sem_item_optimizer::process_cong_reduction): Include division by
7774 sensitive references.
7775 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
7776 * ipa-ref.c (ipa_ref::address_matters_p): New function.
7777 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
7779 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
7782 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
7784 * config/avr/avr.c: Same.
7785 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
7786 Refuse any constant address not in 0..0xbf.
7787 * config/avr/avr.md (*mov<mode>, *movsf): Remove
7788 tiny_valid_direct_memory_access_range from insn conditions.
7789 (mov<mode>): Don't special-case expansion of avrtiny addresses.
7791 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
7794 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
7795 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
7796 * config/sh/predicates.md (const_logical_operand): New predicate.
7797 * config/sh/sh.md: Add new peephole2 patterns.
7799 2015-02-26 Marek Polacek <polacek@redhat.com>
7802 * ipa-inline.c (early_inliner): Recompute inline parameters.
7804 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7807 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
7808 instructions with TImode operands are included in the analysis.
7810 2015-02-26 Sebastian Pop <s.pop@samsung.com>
7812 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
7813 of an EDGE_FSM_THREAD.
7815 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
7817 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
7819 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
7822 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
7824 2015-02-26 Sebastian Pop <s.pop@samsung.com>
7826 PR tree-optimization/65048
7827 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
7828 (thread_through_all_blocks): Call valid_jump_thread_path.
7829 Remove invalid FSM jump-thread paths.
7831 2015-02-26 Jakub Jelinek <jakub@redhat.com>
7833 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
7834 (ipa_write_optimization_summaries): Likewise.
7835 * tree-streamer.h: Include data-streamer.h.
7836 (streamer_mode_table): Declare extern variable.
7837 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
7838 * lto-streamer-out.c (lto_output_init_mode_table,
7839 lto_write_mode_table): New functions.
7840 (produce_asm_for_decls): Call lto_write_mode_table when streaming
7842 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
7843 (lto_create_simple_input_block): Add mode_table argument to the
7844 lto_input_block constructors.
7845 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
7847 * data-streamer-in.c (string_for_index): Likewise.
7848 * ipa-inline-analysis.c (inline_read_section): Likewise.
7849 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
7850 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7851 * lto-streamer-in.c (lto_read_body_or_constructor,
7852 lto_input_toplevel_asms): Likewise.
7853 (lto_input_mode_table): New function.
7854 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
7855 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
7856 Use bp_pack_machine_mode.
7857 * real.h (struct real_format): Add name field.
7858 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
7859 (class lto_input_block): Add mode_table member.
7860 (lto_input_block::lto_input_block): Add mode_table_ argument,
7861 initialize mode_table.
7862 (struct lto_file_decl_data): Add mode_table field.
7863 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
7864 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
7865 unpack_ts_decl_common_value_fields,
7866 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
7867 * tree-streamer.c (streamer_mode_table): New variable.
7868 * real.c (ieee_single_format, mips_single_format,
7869 motorola_single_format, spu_single_format, ieee_double_format,
7870 mips_double_format, motorola_double_format,
7871 ieee_extended_motorola_format, ieee_extended_intel_96_format,
7872 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
7873 ibm_extended_format, mips_extended_format, ieee_quad_format,
7874 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
7875 decimal_single_format, decimal_double_format, decimal_quad_format,
7876 ieee_half_format, arm_half_format, real_internal_format): Add name
7878 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
7880 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
7883 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
7884 reordering for selective scheduling.
7886 2015-02-26 Terry Guo <terry.guo@arm.com>
7888 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
7889 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
7890 (arm_arch_no_volatile_ce): Declare new global variable.
7891 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
7892 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
7893 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
7894 (TARGET_NO_VOLATILE_CE): New macro.
7895 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
7896 volatile memory access in IT block
7898 2015-02-25 Kai Tietz <ktietz@redhat.com>
7900 PR tree-optimization/61917
7901 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
7902 that reduc_def_stmt is null.
7904 2015-02-25 Martin Liska <mliska@suse.cz>
7906 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
7907 hard register variables.
7909 2015-02-25 Kai Tietz <ktietz@redhat.com>
7912 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
7913 (symtab::noninterposable_alias): Likewise.
7915 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
7918 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
7920 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
7922 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
7925 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
7926 as split condition; force split via '#' in output pattern.
7928 2015-02-25 Richard Biener <rguenther@suse.de>
7929 Kai Tietz <ktietz@redhat.com>
7931 PR tree-optimization/61917
7932 * tree-vect-loop.c (vectorizable_reduction): Allow
7933 vect_internal_def without reduction to exit graceful.
7935 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
7938 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
7939 only with NONDEBUG_INSN_P.
7941 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
7943 Use variadic macros with avr-log.c.
7945 * config/avr/avr-protos.h (avr_vdump): New prototype.
7946 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
7947 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
7948 * config/avr/avr-log.c: Adjust comments.
7949 (avr_vdump): New function.
7950 (avr_vadump): Pass caller as 2nd argument instead of format string.
7951 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
7952 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
7954 2015-02-25 Jakub Jelinek <jakub@redhat.com>
7957 * target.def (target_option_stream_in): New target hook.
7958 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
7959 targetm.target_option.post_stream_in if non-NULL.
7960 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
7961 * doc/tm.texi: Updated.
7962 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
7964 (TARGET_OPTION_POST_STREAM_IN): Redefine.
7966 2015-02-24 Jeff Law <law@redhat.com>
7969 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
7970 of operand 0 and operand 2.
7971 (zero_cost_loop_end, loop_end): Similarly.
7973 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
7975 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
7978 2015-02-24 DJ Delorie <dj@redhat.com>
7980 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
7981 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
7982 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
7983 instead of hardcoding SImode.
7985 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
7987 * omp-low.c (create_omp_child_function): Tag entrypoint
7988 functions with a special attribute.
7990 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7993 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
7995 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
7997 PR rtl-optimization/65123
7998 * lra-remat.c (operand_to_remat): Check hard regs in insn
8001 2015-02-24 Nick Clifton <nickc@redhat.com>
8003 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
8006 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
8009 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
8010 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
8011 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
8012 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
8013 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
8014 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
8015 (BUILT_IN_GOACC_PARALLEL): Specify as
8016 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
8017 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
8019 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8020 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8021 Remove function types.
8022 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
8023 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8024 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8027 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
8029 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
8031 2015-02-24 Jakub Jelinek <jakub@redhat.com>
8033 PR tree-optimization/65170
8034 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
8035 if val[1] < 0, clear also val[2] and return 3.
8037 2015-02-24 Alan Modra <amodra@gmail.com>
8040 * config/rs6000/rs6000.c (get_memref_parts): Only return true
8041 when *base is a reg. Handle nested plus addresses. Simplify
8044 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
8046 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
8047 use natural alignment when optimizing for size.
8049 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
8052 * config/sh/sh.md (movsicc_true+3): Remove peephole.
8053 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
8054 * config/sh/sh.c (replace_n_hard_rtx): Remove.
8056 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
8059 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
8060 too big for a wide_int. Implement missing wrapping operation.
8062 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
8065 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
8066 instead of const_int 4294901760.
8068 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
8070 * config/avr/t-avr: Fix typo in comment.
8072 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
8074 * doc/rtl.texi (fma): Clarify documentation.
8076 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
8079 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
8080 over input_location.
8082 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
8084 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
8085 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
8086 restrict alignments to absolute_biggest_alignment.
8087 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
8089 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
8090 * doc/tm.texi: Regenerate.
8091 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
8093 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
8096 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
8098 2015-02-20 Richard Biener <rguenther@suse.de>
8100 PR tree-optimization/65136
8101 * tree-ssa-propagate.c: Include cfgloop.h.
8102 (replace_phi_args_in): Avoid replacing loop latch edge PHI
8103 arguments with constants.
8105 2015-02-20 Jakub Jelinek <jakub@redhat.com>
8106 Martin Liska <mliska@suse.cz>
8109 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
8110 don't try to create_thunk if stdarg_p. If
8111 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
8112 redirect_callers if possible.
8113 (sem_item_optimizer::execute): Call unregister_hooks here...
8114 (ipa_icf_driver): ... instead of here.
8116 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8118 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
8119 Mark operand 0 as earlyclobber in 2nd alternative.
8120 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
8121 Write negated shift amount into QI lowpart operand 0 and use it
8123 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
8125 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
8127 * cgraph.h (clone_function_name_1): Declare.
8128 * cgraphclones.c (clone_function_name_1): New function.
8129 (clone_function_name): Use it.
8130 * lto-partition.c: Include "stringpool.h".
8131 (must_not_rename, maybe_rewrite_identifier)
8132 (validize_symbol_for_target): New static functions.
8133 (privatize_symbol_name): Use must_not_rename.
8134 (promote_symbol): Call validize_symbol_for_target.
8135 (lto_promote_cross_file_statics): Likewise.
8136 (lto_promote_statics_nonwpa): Likewise.
8138 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
8141 * config/avr/avr.md (pushhi_insn): New insn.
8142 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
8144 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
8145 Jakub Jelinek <jakub@redhat.com>
8147 * tree-streamer.c (preload_common_nodes): Don't preload
8148 TI_VA_LIST* for offloading.
8149 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
8152 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
8154 * config/pa/pa.c (pa_emit_move_sequence): Always force
8155 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
8158 * config/pa/pa.c (pa_reloc_rw_mask): New function.
8159 (TARGET_ASM_RELOC_RW_MASK): Define.
8160 (pa_cannot_force_const_mem): Revert previous change.
8162 2015-02-19 Martin Jambor <mjmabor@suse.cz>
8163 Jan Hubicka <hubicka@ucw.cz>
8166 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
8167 across jump functions.
8169 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
8171 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
8173 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
8175 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
8177 2015-02-19 Richard Henderson <rth@redhat.com>
8180 * varasm.c (default_binds_local_p_2): Don't test node->definition;
8181 test DECL_EXTERNAL independent of symtab_node.
8183 2015-02-19 Jakub Jelinek <jakub@redhat.com>
8186 * varpool.c (varpool_node::get_constructor): Return early
8187 if this->lto_file_data is NULL.
8189 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8191 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
8192 (rank_for_schedule_debug): Update.
8193 (ready_sort): Make static. Move sorting logic to ...
8194 (ready_sort_debug, ready_sort_real): New static functions.
8195 (schedule_block): Sort both debug insns and real insns in preparation
8196 for ready list trimming. Improve debug output.
8197 * sched-int.h (ready_sort): Remove global declaration.
8199 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
8201 * ipa-icf.c (sem_function::equals_private): Adjust.
8202 (sem_function::bb_dict_test): Take a vec<int> * instead of
8204 * ipa-icf.h (bb_dict_test): Likewise.
8206 2015-02-18 Jakub Jelinek <jakub@redhat.com>
8208 PR gcov-profile/64634
8209 * tree-eh.c (frob_into_branch_around): Fix up typos
8210 in function comment.
8211 (lower_catch): Put eh_seq resulting from EH lowering of
8212 the cleanup sequence after the cleanup rather than before it.
8214 2015-02-18 Tom de Vries <tom@codesourcery.com>
8216 * common.opt (fstdarg-opt): New option.
8217 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
8218 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
8219 (@item -fstdarg-opt): New item.
8221 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
8224 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
8227 2015-02-18 Jakub Jelinek <jakub@redhat.com>
8229 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
8231 (ALL_HOST_OBJS): Add mkoffload.o.
8232 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
8234 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
8236 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
8237 (compare_virtual_tables): Be smarter about skipping typeinfos;
8238 do sane output on virtual table table mismatch.
8239 (warn_odr): Be ready for forward declarations of enums;
8240 output sane info on base mismatch and virtual table mismatch.
8241 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
8242 when only one type is polymorphic.
8243 (get_odr_type): Fix hashtable corruption.
8244 (dump_odr_type): Dump mangled names.
8246 2015-02-18 Richard Biener <rguenther@suse.de>
8248 PR tree-optimization/65063
8249 * tree-predcom.c (determine_unroll_factor): Return 1 if we
8250 have replaced looparound PHIs.
8252 2015-02-18 Martin Liska <mliska@suse.cz>
8254 * lto-streamer.c (lto_streamer_init): Encapsulate
8255 streamer_check_handled_ts_structures with checking macro.
8257 2015-02-18 Jakub Jelinek <jakub@redhat.com>
8260 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
8261 section if !implicit_section.
8262 (cgraph_node::create_version_clone_with_body): Likewise.
8263 * trans-mem.c (ipa_tm_create_version): Likewise.
8265 2015-02-18 Richard Biener <rguenther@suse.de>
8267 PR tree-optimization/62217
8268 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
8271 2015-02-18 Marek Polacek <polacek@redhat.com>
8274 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
8275 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
8276 is in range [-16K, -1]. Don't issue run-time error if
8277 (ptr > ptr + offset).
8279 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
8281 * doc/install.texi (nvptx-*-none): New section.
8282 * doc/invoke.texi (Nvidia PTX Options): Likewise.
8283 * config/nvptx/nvptx.opt: Update.
8285 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
8286 (access_check): New functions, copied from
8287 config/i386/intelmic-mkoffload.c.
8288 (main): For non-installed testing, look in all COMPILER_PATHs for
8291 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
8293 2015-02-18 Andrew Pinski <apinski@cavium.com>
8294 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8296 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
8297 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
8299 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
8301 * ipa-visibility.c (function_and_variable_visibility): Only
8302 check locality if node is not already local.
8303 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
8304 call_for_symbol_and_aliases instead of
8305 call_for_symbol_thunks_and_aliases.
8306 (ipa_inline): Likewise.
8307 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8309 * ipa.c (symbol_table::remove_unreachable_nodes): Use
8310 call_for_symbol_and_aliases.
8311 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
8312 (ipa_propagate_frequency_1): Use it; use opt_for_fn
8313 (ipa_propagate_frequency): Update.
8314 (ipa_profile): Add opt_for_fn gueards.
8316 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
8318 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
8319 * doc/invoke.texi (SH options): Document it.
8320 * config/sh/sh.c (sh_insn_length_adjustment): Check
8321 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
8323 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
8325 * common.opt (fipa-cp-alignment): New.
8326 * ipa-cp.c (ipcp_store_alignment_results): Check
8327 flag_ipa_cp_alignment.
8328 * opts.c (default_options_table): Enable -fipa-cp-alignment for
8330 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
8331 * doc/invoke.texi: Document -fipa-cp-alignment.
8333 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
8336 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
8337 to nil. Adjust comments.
8339 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
8341 * ipa-visibility.c (function_and_variable_visibility): Only
8342 check locality if node is not already local.
8343 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
8344 call_for_symbol_and_aliases instead of
8345 call_for_symbol_thunks_and_aliases.
8346 (ipa_inline): Likewise.
8347 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8349 * ipa.c (symbol_table::remove_unreachable_nodes): Use
8350 call_for_symbol_and_aliases.
8351 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
8352 (ipa_propagate_frequency_1): Use it; use opt_for_fn
8353 (ipa_propagate_frequency): Update.
8354 (ipa_profile): Add opt_for_fn guards.
8356 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8358 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
8359 skipping of "strange" tokens.
8361 2015-02-17 Jeff Law <law@redhat.com>
8363 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
8366 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
8368 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
8369 as forcing a HARD_DEP between instructions, thereby
8370 disallowing rewriting to break dependencies.
8372 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
8374 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
8375 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
8376 variables in boundary that have no inlitalizer encoded and are
8378 * varasm.c (default_binds_local_p_2): External definitions do not
8379 count as definitions here.
8381 2015-02-16 Jeff Law <law@redhat.com>
8383 PR tree-optimization/64823
8384 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
8386 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8387 threading through blocks with PHIs, but no statements.
8388 (thread_through_normal_block): Distinguish between blocks where
8389 we did not process all the statements and blocks with no statements.
8391 2015-02-16 Jakub Jelinek <jakub@redhat.com>
8392 James Greenhalgh <james.greenhalgh@arm.com>
8395 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
8396 section if not linkonce. Fix up formatting.
8397 (cgraph_node::create_version_clone_with_body): Copy section.
8398 * trans-mem.c (ipa_tm_create_version): Likewise.
8400 2015-02-16 Richard Biener <rguenther@suse.de>
8402 PR tree-optimization/65077
8403 * tree-ssa-structalias.c (get_constraint_for_1): Handle
8404 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
8405 (find_func_aliases): Allow float values to carry pointers again.
8407 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
8409 * doc/install.texi (Specific): Reorder targets list to put
8410 aarch64 in alphabetical order. Add a link to aarch64*-*-*
8413 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8414 David Edelsohn <dje.gcc@gmail.com>
8417 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
8418 mapping class to external variable or function reference.
8419 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
8422 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
8425 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
8426 ASM_WEAKEN_DECL if defined.
8428 2015-02-16 Richard Biener <rguenther@suse.de>
8431 * varasm.c (default_file_start): For LTO produced units
8432 emit <artificial> as file directive.
8434 2015-02-16 Richard Biener <rguenther@suse.de>
8436 PR tree-optimization/63593
8437 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
8438 stmts and releasing SSA names until...
8439 (execute_pred_commoning): ... after processing all chains.
8441 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
8444 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
8447 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
8449 * doc/bugreport.texi: Adjust section titles throughout the file
8450 to use "Title Case".
8451 * doc/extend.texi: Likewise.
8452 * doc/gcov.texi: Likewise.
8453 * doc/implement-c.texi: Likewise.
8454 * doc/implement-cxx.texi: Likewise.
8455 * doc/invoke.texi: Likewise.
8456 * doc/objc.texi: Likewise.
8457 * doc/standards.texi: Likewise.
8458 * doc/trouble.texi: Likewise.
8460 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
8462 * cgraph.h (symtab_node::has_aliases_p): Simplify.
8463 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
8464 * tree.c (lookup_binfo_at_offset): Make static.
8465 (get_binfo_at_offset): Do not shadow offset; add explanatory
8468 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
8470 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
8471 for all floading point loads and stores except those using a register
8473 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
8476 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
8478 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
8479 (do_estimate_growth_1): Record if any uninlinable edge was seen.
8480 (estimate_growth): Handle uninlinable edges correctly.
8481 (check_callers): New.
8482 (growth_likely_positive): Handle aliases correctly.
8484 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
8486 * ipa-chkp.c: Use iterate_direct_aliases.
8487 * symtab.c (resolution_used_from_other_file_p): Move inline.
8488 (symtab_node::create_reference): Fix formating.
8489 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8490 (symtab_node::iterate_reference): Move inline.
8491 (symtab_node::iterate_referring): Move inline.
8492 (symtab_node::iterate_direct_aliases): Move inline.
8493 (symtab_node::used_from_object_file_p_worker): Inline into ...
8494 (symtab_node::used_from_object_file_p): ... this one; move inline.
8495 (symtab_node::call_for_symbol_and_aliases): Move inline;
8496 use iterate_direct_aliases.
8497 (symtab_node::call_for_symbol_and_aliases_1): New method.
8498 (cgraph_node::call_for_symbol_and_aliases): Move inline;
8499 use iterate_direct_aliases.
8500 (cgraph_node::call_for_symbol_and_aliases_1): New method.
8501 (varpool_node::call_for_node_and_aliases): Rename to ...
8502 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
8503 use iterate_direct_aliases.
8504 (varpool_node::call_for_symbol_and_aliases_1): New method.
8505 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
8506 (ipa_discover_readonly_nonaddressable_var): Update.
8507 * ipa-devirt.c: Fix formating.
8508 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
8510 (cgraph_node::call_for_symbol_and_aliases): Move inline.
8511 (cgraph_node::call_for_symbol_and_aliases_1): New function..
8512 * cgraph.h (used_from_object_file_p_worker): Remove.
8513 (resolution_used_from_other_file_p): Move inline.
8514 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8515 (symtab_node::iterate_reference): Move inline.
8516 (symtab_node::iterate_referring): Move inline.
8517 (symtab_node::iterate_direct_aliases): Move inline.
8518 (symtab_node::used_from_object_file_p_worker): Inline into ...
8519 (symtab_node::used_from_object_file_p): Move inline.
8520 * tree-emutls.c (ipa_lower_emutls): Update.
8521 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
8522 (varpool_node::call_for_node_and_aliases): Remove.
8524 2015-02-14 Jakub Jelinek <jakub@redhat.com>
8526 PR tree-optimization/62209
8527 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
8528 op == range->exp, insert seq and gimplified code after labels
8529 instead of after the phi.
8531 2015-02-13 Jeff Law <law@redhat.com>
8534 Revert my change for tree-optimization/64823.
8536 2015-02-13 Jakub Jelinek <jakub@redhat.com>
8538 PR tree-optimization/65053
8539 * tree-ssa-phiopt.c (value_replacement): When moving assign before
8540 cond, either reset VR on lhs or set it to phi result VR.
8542 2015-02-13 Jeff Law <law@redhat.com>
8544 PR tree-optimization/64823
8545 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
8546 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8547 threading through blocks with PHIs, but no statements.
8548 (thread_through_normal_block): Distinguish between blocks where
8549 we did not process all the statements and blocks with no statements.
8551 PR rtl-optimization/47477
8552 * match.pd (convert (plus/minus (convert @0) (convert @1): New
8553 simplifier to narrow arithmetic.
8555 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
8558 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
8559 polymorphic call info when type is not known to be preserved.
8561 2015-02-13 Maritn Jambor <mjambor@suse.cz>
8564 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
8565 (inline_call): Use it.
8567 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
8569 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
8570 GOMP_DEVICE_NVIDIA_PTX.
8572 2015-02-13 Jakub Jelinek <jakub@redhat.com>
8575 * stmt.c (emit_case_nodes): Use void_type_node instead of
8576 NULL_TREE as LABEL_DECL type.
8578 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
8580 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
8582 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
8583 symbolic references to data to be forced to constant memory on the
8586 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
8588 PR tree-optimization/65002
8589 * tree-cfg.c (pass_data_fixup_cfg): Don't update
8591 * tree-sra.c (some_callers_have_no_vuse_p): New.
8592 (ipa_early_sra): Reject functions whose callers
8593 assume function is read only.
8595 2015-02-13 Richard Biener <rguenther@suse.de>
8598 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
8599 for LTO produced CUs.
8601 2015-02-13 Bin Cheng <bin.cheng@arm.com>
8603 PR tree-optimization/64705
8604 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
8605 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
8606 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
8607 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
8608 expand_simple_operations.
8610 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
8611 Richard Henderson <rth@redhat.com>
8614 * cgraphunit.c (cgraph_node::finalize_function): Set definition
8615 before notice_global_symbol.
8616 (varpool_node::finalize_decl): Likewise.
8617 * varasm.c (default_binds_local_p_2): Rename from
8618 default_binds_local_p_1, add weak_dominate argument. Use direct
8619 returns instead of assigning to local variable. Unify varpool and
8620 cgraph paths via symtab_node. Reject undef weak variables before
8621 testing visibility. Reorder tests for simplicity.
8622 (default_binds_local_p): Use default_binds_local_p_2.
8623 (default_binds_local_p_1): Likewise.
8624 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
8626 (default_elf_asm_output_external): Emit visibility when specified.
8628 2015-02-13 Alan Modra <amodra@gmail.com>
8630 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
8631 code setting up r11 for out-of-line fp restore.
8633 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
8635 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
8636 (muser-mode): Likewise.
8638 2015-02-13 Alan Modra <amodra@gmail.com>
8640 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
8641 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
8643 2015-02-12 David Howells <dhowells@redhat.com>
8645 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
8647 * tree-ssa-uninit.c (dump_predicates): Likewise.
8648 * opts.c (print_filtered_help): Likewise.
8650 2015-02-12 Jakub Jelinek <jakub@redhat.com>
8652 * dwarf2out.c (output_die): Use "%s", name instead of name to
8653 avoid -Wformat-security warning.
8655 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
8656 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
8657 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
8658 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
8660 2015-02-12 Jason Merrill <jason@redhat.com>
8662 * common.opt (-flifetime-dse): New.
8664 2015-02-12 Jakub Jelinek <jakub@redhat.com>
8667 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
8669 PR tree-optimization/65014
8670 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
8671 use original second operand of arg0 or arg1 instead of
8672 that adjusted by STRIP_NOPS.
8674 2015-02-11 Jeff Law <law@redhat.com>
8677 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
8678 that needs to be queued, just queue it for a single cycle.
8680 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
8682 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
8683 bodies of thunks; comment on why.
8684 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
8687 2015-02-11 Richard Henderson <rth@redhat.com>
8690 * tree-eh.c (mark_reachable_handlers): Mark source and destination
8691 regions of __builtin_eh_copy_values.
8693 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8696 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
8697 ultimate alias is MEM with SYMBOL_REF satisfying
8698 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
8699 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
8701 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
8703 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
8704 "diagnostic-core.h".
8705 (main): Initialize progname, and call diagnostic_initialize.
8707 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
8708 instead of __OPENMP_TARGET__.
8710 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
8711 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
8714 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
8716 * doc/sourcebuild.texi (pie_enabled): Document.
8718 2015-02-11 Martin Liska <mliska@suse.cz>
8721 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
8722 a return value for call to a function that is noreturn.
8724 2015-02-11 Richard Biener <rguenther@suse.de>
8727 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
8730 2015-02-11 Andrew Pinski <apinski@cavium.com>
8733 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8734 Change the first argument type to size_type_node and add another
8736 (aarch64_simd_expand_builtin): Handle the new argument to
8737 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
8738 print an out when the first two arguments are not
8739 nonzero integer constants.
8740 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
8741 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
8743 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8746 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
8747 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
8748 (ix86_set_current_function): Rewritten.
8749 (ix86_add_new_builtins): Temporarily clear current_target_pragma
8750 when creating builtin fndecls.
8752 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
8755 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
8757 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
8758 have no comdat group.
8759 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
8760 (lto_output_varpool_node): Always output alias info.
8761 (output_refs): Output refs of boundary aliases, too.
8762 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
8763 (output_symtab): Output call eges in thunks in boundary.
8764 (get_alias_symbol): Remove.
8765 (input_node, input_varpool_node): Do not special case weakrefs.
8766 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
8767 alias and thunks targets in the boundary; do not take removed symbols
8768 from their comdat groups.
8769 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
8770 (cgraph_node::global_info): Remove.
8771 (cgraph_node::rtl_info): Look through aliases and thunks.
8772 * cgrpah.h (global_info): Remove.
8773 (non_local_p): Remove.
8775 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
8776 Sandra Loosemore <sandra@codesourcery.com>
8778 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
8779 to inline asm. List dialects in proper order.
8781 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
8782 Sandra Loosemore <sandra@codesourcery.com>
8784 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
8786 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
8788 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
8789 modified) reference to Solaris.
8791 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
8793 * doc/extend.texi (Extended Asm): Fix typos.
8795 2015-02-10 Jakub Jelinek <jakub@redhat.com>
8798 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
8800 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
8803 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
8804 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
8805 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
8806 * config/sh/constraints.md (Ara, Add): New constraints.
8807 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
8809 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
8810 atomic_mem_operand_0. Don't use force_reg on the memory address.
8811 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
8812 Sra constraint. Convert to insn_and_split. Add workaround for
8814 (atomic_compare_and_swap<mode>_hard): Copy to
8815 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
8816 Use atomic_mem_operand_0 predicate.
8817 (atomic_compare_and_swap<mode>_soft_gusa,
8818 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
8820 (atomic_compare_and_swap<mode>_soft_tcb,
8821 atomic_compare_and_swap<mode>_soft_imask,
8822 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
8823 atomic_mem_operand_0 predicate and SraSdd constraints.
8824 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
8826 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
8827 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
8828 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
8829 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
8830 force_reg on the memory address.
8831 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
8832 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
8833 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
8834 atomic_mem_operand_1 predicate and Sra constraint.
8835 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
8836 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
8837 Use atomic_mem_operand_1 predicate.
8838 (atomic_<fetchop_name><mode>_hard): Copy to
8839 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
8840 Use atomic_mem_operand_1 predicate.
8841 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
8842 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
8843 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
8844 insn_and_split. Use atomic_mem_operand_1 predicate.
8845 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
8846 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
8847 Use atomic_mem_operand_1 predicate.
8848 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
8849 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
8850 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
8851 in generated insn with original mem operand before emitting the insn.
8852 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
8853 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
8854 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
8855 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
8856 Use atomic_mem_operand_1 predicate and AraAdd constraints.
8857 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
8858 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
8859 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
8860 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
8861 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
8862 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
8863 atomic_not_fetch<mode>_soft_tcb,
8864 atomic_<fetchop_name>_fetch<mode>_soft_imask,
8865 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
8866 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
8867 Use atomic_mem_operand_1 predicate and SraSdd constraints.
8869 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
8871 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
8872 and 3 earlyclobber operands.
8874 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
8876 * common.opt (fstack-reuse): Mark as optimization.
8878 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
8881 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
8883 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
8885 PR tree-optimization/64326
8886 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
8888 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
8890 PR gcov-profile/61889
8891 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
8893 2015-02-10 Richard Biener <rguenther@suse.de>
8895 PR tree-optimization/64995
8896 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
8897 value we use is final.
8898 (visit_reference_op_store): Always valueize op.
8899 (visit_use): Properly valueize vuses.
8901 2015-02-10 Richard Biener <rguenther@suse.de>
8903 PR tree-optimization/64909
8904 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
8905 pass a scalar-stmt count estimate to the cost model.
8906 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
8908 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
8910 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
8911 enabled by default together with var-tracking.
8913 2015-02-10 Nick Clifton <nickc@redhat.com>
8915 * config/rl78/rl78.c: Remove DIV attribute code accidentally
8916 included in previous rl78 commit.
8918 2015-02-10 Richard Biener <rguenther@suse.de>
8920 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
8921 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
8924 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
8926 PR gcov-profile/61889
8927 * config.in: regenerate.
8928 * configure.in: Likewise.
8929 * configure.ac: Check for ftw.h.
8930 * gcov-tool.c: Check for ftw.h before using nftw.
8932 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
8935 * ipa-visibility.c (update_visibility_by_resolution_info): Only
8936 assert when not in lto mode.
8938 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8940 * ira-color.c (setup_left_conflict_sizes_p): Simplify
8941 initialization/assignment of conflict_size.
8943 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
8946 * ipa-cp.c (gather_caller_stats): Skip thunks.
8947 (propagate_constants_topo): Skip aliases.
8949 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
8952 * config/sh/sh.c (sh_option_override): Don't change
8953 -freorder-blocks-and-partition to -freorder-blocks even when
8954 unwinding is enabled.
8955 (sh_can_follow_jump): Return false if the followee jump is
8956 a crossing jump when -freorder-blocks-and-partition is specified.
8957 * config/sh/sh.md (*jump_compact_crossing): New insn.
8959 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
8960 Kaz Kojima <kkojima@gcc.gnu.org>
8963 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
8964 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
8965 (sh_can_redirect_branch): Rename to ...
8966 (sh_can_follow_jump): ... this. Constify argument types.
8967 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
8968 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
8969 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
8970 * doc/tm.texi: Regenerate.
8972 2015-02-09 Jakub Jelinek <jakub@redhat.com>
8975 * builtins.c (expand_builtin): Call targetm.expand_builtin
8976 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
8978 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8981 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
8983 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8986 * ipa-icf.c (set_local): New function.
8987 (sem_function::merge): Use it.
8989 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8991 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
8992 (add_type_duplicate): Fix comparison of BINFOs.
8994 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
8996 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
8997 on getting VOID pointer.
8999 2015-02-09 Jakub Jelinek <jakub@redhat.com>
9002 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
9005 2015-02-09 Richard Biener <rguenther@suse.de>
9007 * genmatch.c (replace_id): Copy expr_type.
9009 2015-02-09 Richard Biener <rguenther@suse.de>
9011 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
9012 (streamer_write_tree_bitfields): Declare.
9013 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
9014 properly unpack padding.
9015 (unpack_value_fields): Inline ...
9016 (streamer_read_tree_bitfields): ... here.
9017 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
9018 and properly add padding bits.
9019 (streamer_pack_tree_bitfields): Fold into ...
9020 (streamer_write_tree_bitfields): ... this new function,
9021 exposing the bitpack object.
9022 * lto-streamer-out.c (lto_write_tree_1): Call
9023 streamer_write_tree_bitfields.
9025 2015-02-09 Richard Biener <rguenther@suse.de>
9027 PR tree-optimization/54000
9028 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
9029 (struct ivopts_data): Add loop_loc member.
9030 (tree_ssa_iv_optimize_loop): Dump loop location.
9031 (create_new_ivs): Likewise, also dump number of IVs generated.
9033 2015-02-09 Martin Liska <mliska@suse.cz>
9035 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
9036 just if not yet registered.
9037 (ipa_icf_generate_summary): Register callgraph hooks.
9039 2015-02-08 Andrew Pinski <apinski@cavium.com>
9041 * config/aarch64/aarch64.c (gty_dummy): Delete.
9043 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9046 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
9047 (cgraph_node::local_p): Remove thunk related FIXME.
9049 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9052 * i386.c (ix86_function_regparm): Look through aliases to see if callee
9053 is local and optimized.
9054 (ix86_function_sseregparm): Likewise; also use target's SSE math
9055 settings; error out instead of silently generating wrong code
9057 (init_cumulative_args): Look through aliases.
9059 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9062 * ipa-split.c (execute_split_functions): Split if function has aliases.
9064 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9067 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
9068 aliases before trying to expand it.
9069 (cgraph_node::expand_thunk): Fix formating.
9071 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
9073 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
9074 (Using Assembly Language with C): Expand introduction.
9075 (Basic Asm): Copy-edit. Add more information about uses of
9077 (Extended Asm): Copy-edit. Document new escape syntax and
9079 (Global Reg Vars): Copy-edit.
9080 (Local Reg Vars): Likewise.
9082 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
9086 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
9087 (DBX_CONTIN_CHAR): Define.
9089 2015-02-06 Sebastian Pop <s.pop@samsung.com>
9090 Brian Rzycki <b.rzycki@samsung.com>
9092 PR tree-optimization/64878
9093 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
9094 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
9095 Stop recursion at loop phi nodes after having visited a loop phi node.
9097 2015-02-06 Jakub Jelinek <jakub@redhat.com>
9099 * toplev.c (process_options): Change flag_ipa_ra before creating
9100 optimization_{default,current}_node.
9103 * cgraphunit.c (cgraph_node::expand_thunk): If
9104 restype is not is_gimple_reg_type nor the thunk_fndecl
9105 returns aggregate_value_p, set restmp to a temporary variable
9108 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
9110 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
9112 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9115 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
9116 add a general secondary reload handler for SDmode, unless we have
9117 both read/write support for SDmode.
9119 2015-02-06 Jakub Jelinek <jakub@redhat.com>
9122 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
9123 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
9124 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
9125 1 before, push it to abstract_vec.
9126 (dwarf2out_abstract_function): Adjust caller. Don't call
9127 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
9128 DECL_ABSTRACT_P flags for all abstract_vec elts.
9130 2015-02-06 Renlin Li <renlin.li@arm.com>
9132 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
9134 * tree-ssa.c (execute_update_addresses_taken): Likewise.
9136 2015-02-06 Jeff Law <law@redhat.com>
9139 * config/h8300/h8300.c (push): New argument "in_prologue".
9140 Pass "in_prologue" along to "F".
9141 (h8300_push_pop): Corresponding changes.
9142 (h8300_expand_prologue): Likewise.
9143 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
9145 2015-02-06 Jakub Jelinek <jakub@redhat.com>
9147 PR rtl-optimization/64957
9149 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
9150 IOR rather than for AND.
9152 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
9155 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
9156 of shift-add and (add + shift) operations. Rename local variable.
9158 2015-02-05 Jeff Law <law@redhat.com>
9161 * config/h8300/constraints.md (U): Correctly dectect
9162 "eightbit_data" memory addresses.
9163 * config/h8300/h8300.c (eightbit_constant_address_p): Also
9164 handle (const (plus (symbol_ref (x)))) where x is declared
9165 as an 8-bit data memory address.
9166 * config/h8300/h8300.md (call, call_value): Correctly detect
9167 "funcvec" functions.
9170 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
9171 24 to 28 bits for the H8/300.
9173 2015-02-06 Alan Modra <amodra@gmail.com>
9176 * config/rs6000/rs6000.c (chain_already_loaded): New function.
9177 (rs6000_call_aix): Use it.
9179 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
9181 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
9184 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
9186 * config/h8300/constraints.md ("U" constraint): Use strict
9187 variant of REG_OK_FOR_BASE_P after reload has started.
9189 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
9191 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
9192 define to zero if !TARGET_NEON.
9193 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
9195 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9196 Trevor Saunders <tsaunders@mozilla.com>
9199 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
9201 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9204 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
9205 when removing varpool nodes.
9207 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9210 * varpool.c (varpool_node::remove): Fix order of variables.
9212 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9215 * ipa-inline.c (inline_small_functions): Fix ordering issue between
9216 speculation resolution and key updates.
9218 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9220 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
9221 about not letting any speculative edges unupdated.
9223 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9226 * gcov-io.c (gcov_var): Export.
9228 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9231 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
9232 edges that become speculative.
9234 2015-02-04 Jakub Jelinek <jakub@redhat.com>
9236 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
9237 or DW_LANG_Fortran08.
9238 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
9240 (gen_compile_unit_die): Handle "GNU Fortran2003" and
9241 "GNU Fortran2008" language strings.
9242 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
9243 * langhooks.h (lang_GNU_Fortran): New prototype.
9244 * langhooks.c (lang_GNU_Fortran): New function.
9245 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
9248 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
9250 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
9251 (RTX_OK_FOR_OLO10_P): Likewise.
9253 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
9255 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
9257 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9260 * gimple.c: Include gimple-ssa.h.
9261 (maybe_remove_unused_call_args): New function.
9262 * gimple.h (maybe_remove_unused_call_args): Declare.
9263 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
9264 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9265 * gimple-fold.c (gimple_fold_call): Likewise.
9267 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
9269 PR rtl-optimization/64905
9270 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
9271 pointer alignment if it isn't needed.
9273 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
9275 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
9276 cortex-a72.cortex-a53.
9277 * config/aarch64/aarch64-tune.md: Regenerate.
9278 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
9280 2015-02-04 Nick Clifton <nickc@redhat.com>
9282 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
9285 2015-02-04 Jakub Jelinek <jakub@redhat.com>
9287 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
9288 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
9289 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
9291 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
9292 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
9293 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
9294 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
9295 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
9296 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
9297 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
9298 * tree-core.h (enum built_in_function): In between
9299 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
9300 for builtins that use DEF_BUILTIN_CHKP macro.
9302 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
9305 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
9306 operands for tcc_comparison exprs. Fix typos.
9309 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
9310 of two XORs that have an intervening AND or IOR.
9313 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
9314 simplification of XOR of AND to not allocate new rtx before
9315 committing to a simplification.
9317 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9319 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
9320 manual swaps in all peepholes.
9322 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9324 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
9325 of manual swapping implementation.
9326 (aarch64_expand_vec_perm_const_1): Likewise.
9328 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
9330 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
9331 (generic_addrcost_table): Remove NAMED_PARAM.
9332 (cortexa57_addrcost_table): Likewise.
9333 (xgene1_addrcost_table): Likewise.
9334 (generic_regmove_table): Likewise.
9335 (cortexa53_regmove_table): Likewise.
9336 (xgene1_regmove_table): Likewise.
9337 (generic_vector_table): Likewise.
9338 (cortexa57_vector_table): Likewise.
9339 (xgene1_vector_table): Likewise.
9340 (generic_tunings): Likewise.
9341 (cortexa53_tunings): Likewise.
9342 (cortexa57_tunings): Likewise.
9343 (xgene1_tunings): Likewise.
9345 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
9347 * config/arm/arm-cores.def: Add cortex-a72 and
9348 cortex-a72.cortex-a53.
9349 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
9350 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
9351 * config/arm/arm-tune.md: Regenerate.
9352 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
9353 "cortex-a72.cortex-a53".
9354 * doc/invoke.texi (ARM Options/-mtune): Likewise.
9356 2015-02-04 Nick Clifton <nickc@redhat.com>
9359 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
9361 (nonimmediate_di_operand): Likewise.
9363 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
9364 prefixes of known F5 using MSP430 MCUs.
9366 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9368 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
9369 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
9370 instead of __builtin_sqrt.
9372 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
9374 * varasm.c (do_assemble_alias): Follow transparent alias
9376 (default_assemble_visibility): Follow transparent alias
9377 chain for decl name.
9379 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9382 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
9383 to compute size of referenced value in the constant case.
9385 2015-02-03 Jakub Jelinek <jakub@redhat.com>
9387 PR rtl-optimization/64756
9388 * cse.c (invalidate_dest): New function.
9389 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
9390 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
9391 invalidate and do not record it.
9393 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9396 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
9397 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
9398 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
9399 atomic_nand<mode>_soft_tcb): New insns.
9400 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
9401 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
9402 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
9403 Split into atomic_not_fetchsi_hard if operands[0] is unused.
9404 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
9405 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9406 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
9407 atomic_not<mode>_hard if operands[0] is unused.
9408 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
9409 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
9410 if operands[0] is unused.
9411 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
9412 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
9413 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
9414 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9416 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
9417 into atomic_not<mode>_soft_tcb if operands[0] is unused.
9418 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
9419 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
9420 if operands[0] is unused.
9421 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
9422 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
9423 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
9424 atomic_nand_fetchsi_hard if operands[0] is unused.
9425 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
9426 atomic_nand<mode>_hard if operands[0] is unused.
9427 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
9428 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
9429 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
9430 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9431 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
9432 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
9433 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
9434 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9435 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
9436 atomic_not<mode>_hard if operands[0] is unused.
9437 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
9438 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9440 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
9441 into atomic_not<mode>_soft_tcb if operands[0] is unused.
9442 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
9443 atomic_nand<mode>_hard if operands[0] is unused.
9444 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
9445 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9447 2015-02-03 David Malcolm <dmalcolm@redhat.com>
9450 * Makefile.in (GCC_OBJS): Add gcc-main.o.
9451 * gcc-main.c: New file, containing "main" taken from gcc.c.
9452 * gcc.c (do_self_spec): Free decoded_options.
9453 (class driver): Move declaration to gcc.h.
9454 (main): Move declaration and implementation to new file
9456 (driver_get_configure_time_options): New function.
9457 * gcc.h (class driver): Move this declaration here, from
9459 (driver_get_configure_time_options): New declaration.
9461 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
9463 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
9464 cross-module inlining.
9465 * cgraph.h (cgraph_node): Add flag merged.
9466 * ipa-icf.c (sem_function::merge): Maintain it.
9468 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
9470 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
9471 instead of OBJECT_P.
9473 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
9476 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
9477 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
9478 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
9479 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
9481 2015-02-03 Jakub Jelinek <jakub@redhat.com>
9484 * combine.c (reg_n_sets_max): New variable.
9485 (can_change_dest_mode, reg_nonzero_bits_for_combine,
9486 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
9487 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
9488 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
9489 (rest_of_handle_combine): Initialize reg_n_sets_max.
9491 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
9493 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
9494 if some always_inline was inlined, apply changes before inlining
9497 2015-02-02 David Malcolm <dmalcolm@redhat.com>
9500 * config/arm/arm.c (arm_option_override): Set
9501 arm_selected_arch/cpu/tune to NULL on entry.
9503 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
9504 Andrew Pinski <pinskia@gcc.gnu.org>
9505 Jakub Jelinek <jakub@gcc.gnu.org>
9508 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
9509 integer typing for small model. Use IN_RANGE.
9511 2015-02-02 Richard Biener <rguenther@suse.de>
9513 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
9514 * tree-vrp.c (vrp_valueize_1): Likewise.
9516 2015-02-02 Alan Modra <amodra@gmail.com>
9518 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
9519 than mem for toc_restore.
9520 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
9521 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
9522 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
9524 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
9527 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
9528 explicit default options.
9530 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
9533 * ipa-utils.c (ipa_merge_profiles): Add release argument.
9534 * ipa-icf.c (sem_function::merge): Do not release body when merging.
9535 * ipa-utils.h (ipa_merge_profiles): Update prototype.
9537 2015-02-01 Jakub Jelinek <jakub@redhat.com>
9540 * cfgexpand.c (deep_ter_debug_map): New variable.
9541 (avoid_deep_ter_for_debug): New function.
9542 (expand_debug_expr): If TERed SSA_NAME is in
9543 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
9544 instead of trying to expand SSA_NAME's def stmt.
9545 (expand_debug_locations): When expanding debug bind
9546 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
9547 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
9549 (pass_expand::execute): Call avoid_deep_ter_for_debug on
9550 all debug bind stmts. Delete deep_ter_debug_map after
9551 expand_debug_location if non-NULL and clear it.
9553 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
9556 * config/sh/sync.md (atomic_fetch_notsi_hard,
9557 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
9558 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
9559 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
9560 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
9561 atomic_not_fetch<mode>_soft_imask): New insns.
9563 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9565 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
9566 (rank_for_schedule_debug): Split from ...
9567 (rank_for_schedule): ... this.
9568 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
9569 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
9571 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
9573 * doc/md.texi (Machine Constraints): Alphabetize table by target.
9574 * doc/extend.texi (x86 Variable Attributes): Move section to
9575 correct alphabetization after renaming.
9576 (x86 Type Attributes): Likewise.
9577 (Target Builtins): Re-alphabetize menu.
9578 (x86 Built-in Functions): Move section to correct alphabetization
9580 (x86 transactional memory intrinsics): Likewise.
9581 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
9582 and x86 Windows Options in table and menu.
9583 (x86 Options): Move section to correct alphabetization after
9585 (x86 Windows Options): Likewise.
9587 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
9589 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
9590 preferred names of the architecture and its 32- and 64-bit
9592 * doc/invoke.texi: Likewise.
9593 * doc/md.texi: Likewise.
9595 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
9598 * config/i386/predicates.md (address_no_seg_operand): Reject
9599 non-CONST_INT_P operands in invalid mode.
9601 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
9603 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
9604 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
9605 * config/i386/predicates.md (address_no_seg_operand): Call
9606 address_operand with VOIDmode.
9607 (vsib_address_operand): Ditto.
9608 (address_mpx_no_base_operand): Ditto.
9609 (address_mpx_no_index_operand): Ditto.
9611 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
9614 * lra-constraints.c (original_subreg_reg_mode): New.
9615 (simplify_operand_subreg): Try to simplify subreg of const. Use
9616 original_subreg_reg_mode for it.
9617 (swap_operands): Update original_subreg_reg_mode.
9618 (curr_insn_transform): Set up original_subreg_reg_mode.
9620 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
9623 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
9625 (process_alt_operands): Use it.
9626 (curr_insn_transform): Check the optional reload pseudo class is
9629 2015-01-30 Joseph Myers <joseph@codesourcery.com>
9631 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
9632 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
9634 * toplev.h (init_asm_output): Update comment on use of
9635 UNKNOWN_LOCATION with fatal_error.
9636 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
9637 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
9638 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
9639 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
9640 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
9641 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
9642 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
9643 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
9644 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
9645 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
9646 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
9647 fatal_error changed to pass input_location as first argument.
9649 2015-01-30 Martin Liska <mliska@suse.cz>
9651 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
9652 in #pragma GCC diagnostic guards.
9654 2015-01-30 Richard Biener <rguenther@suse.de>
9656 PR tree-optimization/64829
9657 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
9658 not add a widening conversion pattern but hand off extra
9659 widenings to callers.
9660 (vect_recog_widen_mult_pattern): Handle extra widening produced
9661 by vect_handle_widen_op_by_const.
9662 (vect_recog_widen_shift_pattern): Likewise.
9663 (vect_pattern_recog_1): Remove excess vertical space in dumping.
9664 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9665 (vect_init_vector_1): Likewise.
9666 (vect_get_vec_def_for_operand): Likewise.
9667 (vect_finish_stmt_generation): Likewise.
9668 (vectorizable_load): Likewise.
9669 (vect_analyze_stmt): Likewise.
9670 (vect_is_simple_use): Likewise.
9672 2015-01-29 Jeff Law <law@redhat.com>
9674 * combine.c (try_combine): Fix typo in comment.
9676 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
9679 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
9680 (rs6000_stack_info): Add assert.
9681 (rs6000_output_savres_externs): New function, split off from...
9682 (rs6000_output_function_prologue): ... here. Do not call it for
9685 2015-01-29 Jeff Law <law@redhat.com>
9688 * combine.c (try_combine): If I0 is a memory load and I3 a store
9689 to a related address, increase the "goodness" of doing a 4-insn
9690 combination with I0-I3.
9691 (make_field_assignment): Handle SUBREGs in the ior+and case.
9693 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
9695 PR tree-optimization/64746
9696 * tree-if-conv.c (mask_exists): New function.
9697 (predicate_mem_writes): Save created mask with given size for further
9699 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
9700 (ifcvt_repair_bool_pattern): Collect all statements that are root
9701 of bool pattern and use iterative algorithm to remove multiple uses
9702 of predicates, display number of required iterations.
9704 2015-01-29 Richard Biener <rguenther@suse.de>
9706 PR tree-optimization/64853
9707 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
9708 stmt will get simulated again.
9709 * tree-ssa-ccp.c (valueize_op_1): Likewise.
9711 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9713 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
9714 return_in_pc. Remove redundant assignments.
9715 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
9716 (arm_expand_epilogue): Don't compare boolean with true in if condition.
9718 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
9720 * config/i386/i386.c (ix86_mode_after): Make static.
9722 2015-01-29 Richard Biener <rguenther@suse.de>
9724 PR tree-optimization/64844
9725 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
9726 dump cost model analysis.
9727 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9728 Do not register adjusted load/store costs here.
9730 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
9731 Uros Bizjak <ubizjak@gmail.com>
9733 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
9734 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
9735 using x86_use_pseudo_pic_reg.
9736 * config/i386/i386.c (ix86_conditional_register_usage): Remove
9737 support for fixed PIC register.
9738 (ix86_use_pseudo_pic_reg): Not static any more.
9740 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
9743 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
9744 to avoid error in cgraph node verification.
9746 2015-01-29 Marek Polacek <polacek@redhat.com>
9748 * doc/standards.texi: Reflect that the default for C is gnu11.
9750 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
9753 * reorg.c (switch_text_sections_between_p): New function.
9754 (relax_delay_slots): Call it when testing if the jump insn
9755 is removable. Use targetm.can_follow_jump when testing if
9756 the conditional branch can follow an unconditional jump.
9758 2015-01-27 Caroline Tice <cmtice@google.com>
9760 Committing VTV Cywin/Ming patch for Patrick Wollgast
9761 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
9762 if -fvtable-verify=preinit/std is used.
9763 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
9764 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
9765 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
9766 if -fvtable-verify=preinit/std is used.
9767 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
9768 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
9769 if -fvtable-verify=preinit/std is used.
9770 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
9771 * config/i386/mingw32.h (LIB_SPEC): Likewise.
9772 * varasm.c (assemble_variable): Add code to properly set the comdat
9773 section and name for the .vtable_map_vars section in case the
9774 target is PE or COFF.
9776 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
9779 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
9780 make sane BB profile.
9781 (cgraph_node::expand_thunk): Make sane BB profile.
9782 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
9783 * cgraph.h (init_lowered_empty_function): Update prototype.
9784 * config/i386/i386.c (make_resolver_func): Update call.
9785 * predict.c (gate): Disable branch prediction pass if
9786 profile is already there.
9788 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
9790 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
9791 * opth-gen.awk: Likewise.
9792 * common.opt: Mark flag_fp_contract_mode as Optimization.
9794 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
9796 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
9797 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
9799 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
9802 * config/sh/predicates.md (atomic_arith_operand,
9803 atomic_logical_operand): Remove.
9804 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
9805 (atomic_arith_operand_0): New predicate.
9806 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
9807 Use atomic_arith_operand_0 for input values.
9808 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
9809 atomic_compare_and_swap<mode>_soft_gusa,
9810 atomic_compare_and_swap<mode>_soft_tcb,
9811 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
9812 arith_reg_operand instead of register_operand.
9813 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
9814 atomic_arith_operand_0 for newval input.
9815 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
9816 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
9817 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
9818 arith_reg_operand instead of register_operand.
9819 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
9820 fetchop_predicate_1, fetchop_constraint_1_llcs,
9821 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
9822 fetchop_constraint_1_imask): New code iterator attributes.
9823 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
9824 register_operand. Use fetchop_predicate_1.
9825 (atomic_fetch_<fetchop_name>si_hard,
9826 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
9827 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
9828 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
9829 and arith_reg_operand instead of register_operand. Use
9830 fetchop_predicate_1, fetchop_constraint_1_gusa.
9831 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
9832 and arith_reg_operand instead of register_operand. Use
9833 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
9835 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
9836 and arith_reg_operand instead of register_operand. Use
9837 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
9839 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
9840 register_operand. Use atomic_logical_operand_1.
9841 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
9842 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
9843 arith_reg_operand instead of register_operand.
9844 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
9845 Use arith_reg_dest and arith_reg_operand instead of register_operand.
9846 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
9847 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
9848 register_operand. Use fetchop_predicate_1.
9849 (atomic_<fetchop_name>_fetchsi_hard,
9850 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
9851 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
9852 fetchop_constraint_1_llcs.
9853 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
9854 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
9855 fetchop_constraint_1_gusa.
9856 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
9857 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
9858 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
9859 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
9860 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
9861 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
9862 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
9863 register_operand. Use atomic_logical_operand_1.
9864 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
9865 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
9866 arith_reg_operand instead of register_operand.
9867 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
9868 arith_reg_operand instead of register_operand. Use logical_operand
9869 and K08. Adjust asm sequence to allow R0 usage.
9870 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
9871 arith_reg_operand instead of register_operand. Use logical_operand
9874 2015-01-28 Jakub Jelinek <jakub@redhat.com>
9877 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
9878 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
9879 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
9880 only get_full_len HOST_WIDE_INTs from get_val () array rather than
9881 all bits in *val_wide.
9883 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
9885 * varpool.c (tls_model_names): Fix names.
9886 (varpool_node::dump): Dump tls- prefix for tls models.
9888 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
9889 Bernd Schmidt <bernds@codesourcery.com>
9890 Nathan Sidwell <nathan@codesourcery.com>
9892 * config/nvptx/mkoffload.c: New file.
9893 * config/nvptx/t-nvptx: Add build rules for it.
9894 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
9895 (extra_programs): Add mkoffload.
9896 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
9898 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
9900 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
9903 * cfgexpand.c (reorder_operands): Skip debug gimples.
9905 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
9907 PR tree-optimization/64277
9908 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
9909 range info when possible to refine estimation.
9911 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9913 PR tree-optimization/64718
9914 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
9915 be a 16bit unsigned integer when n->range is 16.
9916 (bswap_replace): Convert src to that type if necessary for all bswap
9917 sizes. Fix rotation right notation in nearby comment. Use bswap_type
9918 set in pass_optimize_bswap::execute ().
9920 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
9922 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
9923 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
9924 integer and floating point variants.
9925 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
9927 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
9929 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
9930 for all vector modes.
9932 2015-01-28 Jakub Jelinek <jakub@redhat.com>
9935 * doc/sourcebuild.texi (comdat_group): Document.
9937 2015-01-28 Terry Guo <terry.guo@arm.com>
9939 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
9941 2015-01-27 David Malcolm <dmalcolm@redhat.com>
9943 * toplev.c (print_version): Add param "show_global_state", and
9944 only print GGC and plugin information if it is true.
9945 (init_asm_output): Pass in "true" for the new param when calling
9947 (process_options): Likewise.
9948 (toplev::main): Likewise.
9949 * toplev.h (print_version): Add new param to decl.
9951 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
9955 * tree.c (lookup_binfo_at_offset): New function.
9956 (get_binfo_at_offset): Use it.
9958 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
9961 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
9962 on vtable being vtable.
9964 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9966 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
9967 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
9969 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
9970 -mno-hotpatch options. Change syntax of -mhotpatch= option.
9971 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
9973 (s390_hotpatch_trampoline_halfwords_max): Renamed.
9974 (s390_hotpatch_hw_max): New name.
9975 (s390_hotpatch_trampoline_halfwords): Renamed.
9976 (s390_hotpatch_hw_before_label): New name.
9977 (get_hotpatch_attribute): Removed.
9978 (s390_hotpatch_hw_after_label): New name.
9979 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
9981 (s390_attribute_table): Ditto.
9982 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
9983 (s390_function_num_hotpatch_hw): New name.
9984 Remove special handling of inline functions and hotpatching.
9985 Return number of nops before and after the function label.
9986 (s390_can_inline_p): Removed.
9987 (s390_asm_output_function_label): Emit a configurable number of nops
9988 after the function label.
9989 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
9990 (TARGET_CAN_INLINE_P) Removed.
9991 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
9993 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9994 Jiong Wang <jiong.wang@arm.com>
9996 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
9998 (cb<optab><mode>1): Likewise.
9999 * config/aarch64/iterators.md (bcond): New define_code_attr.
10001 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10003 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
10006 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10008 * config/s390/s390.c (s390_register_move_cost): Increase costs for
10011 2015-01-27 Richard Biener <rguenther@suse.de>
10013 * tree-vrp.c (update_value_range): Intersect the range with
10014 old recorded SSA name range information.
10016 2015-01-27 Nick Clifton <nickc@redhat.com>
10018 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
10019 BC, DE and HL registers directly, not via AX.
10020 When decrementing the stack pointer by a large amount, transfer SP
10021 into AX and perform the subtraction there.
10022 (rl78_expand_epilogue): Perform the inverse of the above
10025 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10027 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
10029 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10030 Yury Gribov <y.gribov@samsung.com>
10033 * ubsan.c (ubsan_source_location): Refactor code.
10034 (ubsan_type_descriptor): Update type size. Refactor code.
10036 2015-01-27 Richard Biener <rguenther@suse.de>
10038 PR tree-optimization/56273
10039 PR tree-optimization/59124
10040 PR tree-optimization/64277
10041 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
10042 from the first VRP pass.
10044 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10047 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
10048 handle the first argument in the same loop as all the other arguments.
10050 PR rtl-optimization/61058
10051 * jump.c (cleanup_barriers): Update basic block boundaries
10052 if BLOCK_FOR_INSN is non-NULL on PREV.
10054 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
10056 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
10057 bounds narrowing, already instrumented calls and calls to
10058 not instrumentable functions.
10060 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10062 PR tree-optimization/64807
10063 * wide-int.cc (wi::divmod_internal): Clear
10064 b_dividend[dividend_blocks_needed].
10066 2015-01-26 DJ Delorie <dj@redhat.com>
10068 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
10069 volatile memory references.
10071 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
10074 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
10076 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
10077 shifts if it already fits into K08.
10079 2015-01-26 Jakub Jelinek <jakub@redhat.com>
10082 * ipa-inline.c (inline_small_functions): Print "unknown" even
10083 if edge->call_stmt is non-NULL, but has builtins or unknown
10086 PR middle-end/64421
10087 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
10088 with asterisk, skip the first character.
10090 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
10093 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
10096 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
10099 * config/i386/i386.md (*movdi_internal): Also check operand 0
10100 to determine TYPE_LEA operand.
10101 (*movsi_internal): Ditto.
10103 2015-01-26 Jakub Jelinek <jakub@redhat.com>
10105 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
10106 OPTION_MASK_QUAD_MEMORY_ATOMIC.
10108 2015-01-26 Renlin Li <renlin.li@arm.com>
10110 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
10112 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
10115 2015-01-26 Richard Biener <rguenther@suse.de>
10117 PR middle-end/64764
10118 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
10119 combining two BIT_AND_EXPR predicates.
10121 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
10124 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
10126 2015-01-26 Terry Guo <terry.guo@arm.com>
10128 * config/arm/arm.c (arm_file_start): Update the assignment of
10129 Tag_ABI_HardFP_use.
10131 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
10133 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
10135 config/arm/arm.md: Include the new Cortex-A57 model.
10136 (generic_sched): Don't use generic_sched when tuning for
10139 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
10140 Uros Bizjak <ubizjak@gmail.com>
10142 * config/i386/i386.c (get_builtin_code_for_version): Add
10143 support for BMI and BMI2 multiversion functions.
10145 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10147 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
10148 (extract_bit_field): Likewise.
10149 (extract_low_bits): Likewise.
10150 (expand_mult): Likewise.
10151 (expand_mult_highpart_adjust): Likewise.
10153 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
10155 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
10156 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
10157 * config/i386/i386.c (processor_model): Add
10158 M_INTEL_COREI7_BROADWELL.
10159 (arch_names_table): Add "broadwell".
10161 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
10170 * config/sh/sh-protos.h
10171 (sh_extending_set_of_reg::can_use_as_unextended_reg,
10172 sh_extending_set_of_reg::use_as_unextended_reg,
10173 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
10174 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
10175 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
10176 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
10177 (sh_treg_insns): New class.
10178 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
10179 (scope_counter): New class.
10180 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
10181 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
10182 sh_extending_set_of_reg::can_use_as_unextended_reg,
10183 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
10184 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
10185 sh_split_treg_set_expr): New functions.
10186 (addsubcosts): Handle treg_set_expr.
10187 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
10188 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
10189 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
10190 (sh_insn_operands_modified_between_p): Make non-static.
10191 * config/sh/predicates.md (zero_extend_movu_operand): Allow
10192 simple_mem_operand in addition to displacement_mem_operand.
10193 (zero_extend_operand): Don't allow zero_extend_movu_operand.
10194 (treg_set_expr, treg_set_expr_not_const01,
10195 arith_reg_or_treg_set_expr): New predicates.
10196 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
10197 arith_or_int_operand instead of logical_operand. Convert to
10198 insn_and_split. Try to optimize constant operand in splitter.
10199 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
10200 (*tstqi_t_zero): Delete.
10201 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
10202 (tstsi_t_and_not): Delete.
10203 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
10204 Convert to insn_and_split.
10205 (unnamed split, tstsi_t_zero_extract_xor,
10206 tstsi_t_zero_extract_subreg_xor_little,
10207 tstsi_t_zero_extract_subreg_xor_big): Delete.
10208 (*tstsi_t_shift_mask): New insn_and_split.
10209 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
10210 to recombine with surrounding insns when splitting.
10211 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
10212 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
10213 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
10214 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
10215 (*cbranch_div0s: Delete.
10216 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
10217 Try to recombine with surrounding insns when splitting. Add operand
10219 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
10220 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
10221 *addc_r_r_msb, *addc_2r_msb): Delete.
10222 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
10224 (*addc_negreg_t): New insn_and_split.
10225 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
10226 Try to recombine with surrounding insns when splitting.
10227 Add operand order variants.
10228 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
10229 insn_and_split patterns.
10230 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
10231 surrounding insns when splitting.
10232 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
10233 (*rotcl): Likewise. Add zero_extract variant.
10234 (*ashrsi2_31): New insn_and_split.
10235 (*negc): Convert to insn_and_split. Use treg_set_expr.
10236 (*zero_extend<mode>si2_disp_mem): Update comment.
10237 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
10239 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
10240 with surrounding insns when splitting.
10241 (any_treg_expr_to_reg): New insn_and_split.
10242 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
10243 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
10244 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
10245 *zero_extract_2): New single bit zero extract patterns.
10246 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
10247 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
10248 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
10249 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
10251 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
10252 register_operand for set source.
10254 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
10256 * i386.opt (prefetch_sse): New targetsave.
10257 * i386.c (ix86_function_specific_save): Save prefetch_sse.
10258 (ix86_function_specific_restore): Restore prefetch_sse and initialize
10259 ix86_cost/ix86_tune_cost.
10261 2015-01-23 David Malcolm <dmalcolm@redhat.com>
10263 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10264 Support the JIT by using 0 as the language type.
10266 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
10269 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
10270 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
10271 (mark_regno_live, process_bb_lives): Pass new parameter value to
10272 make_hard_regno_born.
10274 2015-01-23 Jakub Jelinek <jakub@redhat.com>
10276 PR rtl-optimization/63637
10277 PR rtl-optimization/60663
10278 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
10279 if elt->cost is MAX_COST for ASM_OPERANDS.
10280 (find_sets_in_insn): Fix up comment typo.
10281 (cse_insn): Don't set src_volatile for all non-volatile
10282 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
10283 or with "memory" clobber. Set elt->cost to MAX_COST
10284 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
10285 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
10287 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
10289 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
10292 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
10294 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
10295 libgcc/config/i386/elf-lib.h.
10297 2015-01-23 Jakub Jelinek <jakub@redhat.com>
10300 * gcc.c (print_configuration): Don't print a blank line at the end
10302 (run_attempt): ... but here unstead.
10304 PR middle-end/64734
10305 * omp-low.c (scan_sharing_clauses): Don't ignore
10306 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
10307 on target data/update constructs.
10309 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
10312 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
10313 (DEBUG_RELOAD): Removed define.
10314 (m32c_limit_reload_class): Enable traces with if DEBUG0.
10315 (m32c_function_arg): Added a type cast.
10316 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
10317 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
10318 * config/m32c/bitops.md (andqi3_16): Likewise.
10319 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
10320 (push_a01_l): Likewise.
10322 2015-01-23 David Malcolm <dmalcolm@redhat.com>
10325 * main.c (main): Construct toplev instances with init_signals=true.
10326 * toplev.c (general_init): Add param "init_signals", and use it to
10327 conditionalize the calls to signal and host_hooks.extra_signals.
10328 (toplev::toplev): Add param "init_signals".
10329 (toplev::main): When invoking general_init, pass m_init_signals
10330 to control whether signal-handlers are installed.
10331 * toplev.h (toplev::toplev): Add param "init_signals".
10332 (toplev::m_init_signals): New field.
10334 2015-01-23 David Malcolm <dmalcolm@redhat.com>
10337 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
10338 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
10339 latter may be affected by the former (e.g. on i686).
10341 2015-01-23 Martin Liska <mliska@suse.cz>
10343 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
10344 false positive during profiledbootstrap.
10346 2015-01-23 Tom de Vries <tom@codesourcery.com>
10349 * lto-opts.c (lto_write_options): Output non-explicit conservative
10351 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
10352 (append_compiler_options): Pass -fopenacc through.
10354 2015-01-23 Tom de Vries <tom@codesourcery.com>
10357 * lto-opts.c (lto_write_options): Output non-explicit conservative
10359 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
10360 (append_compiler_options): Pass -fopenmp through.
10362 2015-01-23 Jakub Jelinek <jakub@redhat.com>
10365 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
10368 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
10369 * diagnostic.def (DK_ICE_NOBT): New kind.
10370 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
10371 like DK_ICE, but never print backtrace.
10372 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
10373 (internal_error_no_backtrace): New function.
10374 * gcc.c (execute): Use internal_error_no_backtrace instead of
10377 2015-01-22 Jeff Law <law@redhat.com>
10380 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
10381 improve code density for small immediate to memory case.
10382 (insv): Better handle bitfield assignments when the field is
10383 being set to all ones.
10384 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
10387 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10388 Jakub Jelinek <jakub@redhat.com>
10390 PR middle-end/64729
10391 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
10392 for !TARGET_LIBC_PROVIDES_SSP version and
10393 -fstack-protector-{all,strong,explicit} otherwise.
10394 * config/freebsd.h (LINK_SSP_SPEC): Handle
10395 -fstack-protector-{strong,explicit}.
10397 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
10398 H.J. Lu <hongjiu.lu@intel.com>
10401 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
10404 2015-01-22 Wei Mi <wmi@google.com>
10406 PR rtl-optimization/64557
10407 * dse.c (record_store): Call get_addr for mem_addr.
10408 (check_mem_read_rtx): Likewise.
10410 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
10412 * fold-const.c (const_binop): Add early return for non-tcc_binary.
10414 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
10416 * toplev.c (init_local_tick): Process the failure when read
10417 fails for random_seed.
10419 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
10420 'pretty_name' to avoid memory overflow.
10422 2015-01-22 Richard Biener <rguenther@suse.de>
10424 PR middle-end/64728
10425 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
10426 abnormal coalescing on undefined SSA names.
10428 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
10432 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
10434 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
10436 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
10438 PR middle-end/63325
10439 * fold-const.c (fold_checksum_tree): Don't include value of
10440 expr->decl_with_vis.symtab_node in the checksum.
10442 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10444 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
10446 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
10449 * gcc.c (insert_comments): New function.
10450 (try_generate_repro): Call it.
10451 (append_text): Removed.
10453 2015-01-22 Richard Biener <rguenther@suse.de>
10455 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
10456 with IL incompatible options. Properly honor user optimize
10459 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
10461 PR rtl-optimization/64682
10462 * combine.c (distribute_notes): When moving a death note for
10463 a register that is set in the new I2, make sure to put it
10464 before that new I2.
10466 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
10468 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
10469 not TARGET_DEFAULT.
10471 2015-01-21 Jakub Jelinek <jakub@redhat.com>
10474 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
10475 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
10476 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
10479 * doc/invoke.texi (-fsanitize=vptr): Document.
10481 PR rtl-optimization/62078
10482 * dse.c: Include cfgcleanup.h.
10483 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
10484 anything call purge_all_dead_edges and cleanup_cfg at the end
10487 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
10489 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
10492 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10494 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
10497 2015-01-21 David Sherwood <david.sherwood@arm.com>
10498 Tejas Belagod <Tejas.Belagod@arm.com>
10500 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
10501 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
10502 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
10505 2015-01-21 David Sherwood <david.sherwood@arm.com>
10506 Tejas Belagod <Tejas.Belagod@arm.com>
10508 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
10509 (aarch64_reverse_mask): New decls.
10510 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
10511 (insn_count): New mode_attr.
10512 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
10513 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
10514 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
10515 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
10516 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
10517 (aarch64_simd_st4): New patterns.
10518 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
10519 (aarch64_reverse_mask): New functions.
10521 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
10523 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
10525 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
10526 addressing modes for BE.
10527 (aarch64_print_operand): Add 'R' specifier.
10528 (aarch64_simd_disambiguate_copy): Delete.
10529 (aarch64_simd_emit_reg_reg_move): New function.
10530 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
10531 in define_splits for structural moves.
10532 (mov<mode>): Use less restrictive predicates.
10533 (*aarch64_mov<mode>): Simplify and only allow for LE.
10534 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
10536 2015-01-21 Alan Hayward <alan.hayward@arm.com>
10538 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
10540 2015-01-21 Richard Henderson <rth@redhat.com>
10543 * ccmp.c (used_in_cond_stmt_p): Remove.
10544 (expand_ccmp_expr): Don't use it.
10546 2015-01-21 Nick Clifton <nickc@redhat.com>
10548 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
10551 2015-01-21 Richard Biener <rguenther@suse.de>
10553 PR middle-end/64313
10554 * tree-core.h (builtin_info, builtin_info_type): Turn from
10555 an object with two arrays into an array of an object with
10556 decl and two flags, implicit_p and declared_p.
10557 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
10558 set_builtin_decl, set_builtin_decl_implicit_p,
10559 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
10560 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
10561 * builtins.c (builtin_info): Adjust.
10562 * gimplify.c (gimplify_addr_expr): References to builtins
10563 that have been declared by the user makes them eligible for
10564 use by the compiler. Call set_builtin_decl_implicit_p on them.
10566 2015-01-20 Jeff Law <law@redhat.com>
10569 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
10570 allow pc-relative addresses in operand predicates or constraints.
10572 2015-01-21 Bin Cheng <bin.cheng@arm.com>
10574 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
10575 neon on aarch32 processors for stringops.
10577 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10580 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
10582 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10585 * ipa-inline.c: Include lto-streamer.h
10586 (report_inline_failed_reason): Output source file differences and
10587 flags on optimization/target node mismatch.
10588 (can_inline_edge_p): Consider caller to be the outer inline function;
10589 be less restrictive about matching opimize and optimize_size attributes.
10590 (inline_account_function_p): Break out from ...
10591 (inline_small_functions): ... here.
10592 * ipa-inline-transform.c (clone_inlined_nodes): Use
10593 inline_account_function_p.
10594 (inline_call): Use optimize attribution; use inline_account_function_p.
10595 (inline_transform): Use opt_for_fn.
10596 * ipa-inline.h (inline_account_function_p): Declare.
10598 2015-01-20 Jakub Jelinek <jakub@redhat.com>
10601 * dwarf2out.c (decl_piece_node): Don't put bitsize into
10602 mode if bitsize <= 0.
10603 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
10604 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
10605 sizes and positions.
10607 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
10609 * config/nios2/nios2.c (nios2_asm_file_end): Implement
10610 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
10612 (TARGET_ASM_FILE_END): Define.
10614 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10616 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
10617 (struct tune_params): Use the enum.
10618 * arm.c (arm_*_tune): Update.
10619 (arm_option_override): Update.
10621 2015-01-20 Richard Biener <rguenther@suse.de>
10624 * ipa-reference.c (add_static_var): Inline ...
10625 (analyze_function): ... here after splitting out from ...
10626 (is_proper_for_analysis): ... this.
10628 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
10631 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
10632 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
10633 replace the conditional with it's true branch.
10634 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
10635 (arm_lra_p): Remove.
10637 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
10639 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
10641 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10643 * config/tilegx/mul-tables.c: Move symtab.h include after
10644 coretypes.h include.
10645 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
10646 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
10647 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
10648 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
10649 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
10651 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
10655 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
10657 PR rtl-optimization/64081
10658 * loop-iv.c (def_pred_latch_p): New function.
10659 (latch_dominating_def): Allow specific cases with non-single
10661 (iv_get_reaching_def): Likewise.
10662 (check_complex_exit_p): New function.
10663 (check_simple_exit): Use check_complex_exit_p to allow certain cases
10664 with exits not executing on any iteration.
10666 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10669 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
10670 to set branch cost.
10672 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10675 * i386.c (gate): Check flag_expensive_optimizations and
10677 (ix86_option_override_internal): Drop optimize_size condition
10678 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
10679 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
10680 MASK_PREFER_AVX128.
10681 (ix86_avx256_split_vector_move_misalign,
10682 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
10683 * sse.md (all uses of TARGET_PREFER_AVX128): Add
10684 optimize_insn_for_speed_p check.
10686 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
10688 * config/mips/mips.h (FP_ASM_SPEC): New define.
10689 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
10692 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
10695 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
10696 nullptr for insn when reaching the first insn.
10697 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
10698 (sh_insn_operands_modified_between_p): Add nullptr check.
10699 (sh_find_extending_set_of_reg): Fix log message. Don't accept
10700 sign extending mem load if the insn contains any UNSPEC or
10703 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10705 * params.def (inline-unit-growth): Drop to 15%.
10706 * invoke.texi (inline-unit-growth): Document change.
10708 2015-01-19 Martin Liska <mliska@suse.cz>
10711 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
10712 function for second argument of OBJ_TYPE_REF.
10714 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10717 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
10718 whether function is an alias.
10720 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10722 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
10725 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
10727 PR rtl-optimization/64671
10728 * lra-remat.c (operand_to_remat): Don't consider jump and call
10731 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
10734 * config/rs6000/default64.h: Include rs6000-cpus.def.
10735 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
10736 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
10737 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
10739 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
10741 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
10742 pseudo-op to specify assembler dialect.
10744 2015-01-19 Martin Liska <mliska@suse.cz>
10747 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
10748 Handle safe potentially removed nodes during filtering.
10750 2015-01-19 Martin Liska <mliska@suse.cz>
10752 * doc/extend.texi (no_icf): Add new attribute description.
10753 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
10754 where the pass attempts to merge a function with no_icf attribute.
10756 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10759 * doc/md.texi (ARM Options): Document register constraints.
10761 2015-01-19 Jiong Wang <jiong.wang@arm.com>
10762 Andrew Pinski <apinski@cavium.com>
10765 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
10766 (ashl<mode>3): Don't expand if operands[2] is not constant.
10768 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10771 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
10772 Match xor-and-xor RTL pattern.
10774 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
10776 PR rtl-optimization/64081
10777 * loop-iv.c (def_pred_latch_p): New function.
10778 (latch_dominating_def): Allow specific cases with non-single
10780 (iv_get_reaching_def): Likewise.
10781 (check_complex_exit_p): New function.
10782 (check_simple_exit): Use check_complex_exit_p to allow certain cases
10783 with exits not executing on any iteration.
10785 2015-01-19 Jakub Jelinek <jakub@redhat.com>
10787 * common.opt (fgraphite): Fix a typo.
10789 2015-01-19 Felix Yang <felix.yang@huawei.com>
10791 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
10793 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
10794 uminp, smax_nanp, smin_nanp): New builtins.
10795 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
10796 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
10797 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
10798 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
10799 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
10800 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
10801 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
10802 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
10803 vpminnms_f32): Rewrite using builtin functions.
10805 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
10808 * omp-low.c (offload_symbol_decl): Remove variable.
10809 (get_offload_symbol_decl): Remove function.
10810 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
10811 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
10812 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
10813 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
10814 BUILT_IN_GOACC_UPDATE don't pass it at all.
10816 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
10818 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
10821 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
10823 * ipa-chkp.c (chkp_produce_thunks): Add early param
10824 to split thunks production into two passes. Keep
10825 'always_inline' function bodies after the first pass.
10826 (pass_data_ipa_chkp_early_produce_thunks): New.
10827 (pass_ipa_chkp_early_produce_thunks): New.
10828 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
10829 chkp_produce_thunks signature.
10830 (make_pass_ipa_chkp_early_produce_thunks): New.
10831 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
10832 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
10833 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
10835 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
10837 * cgraph.c (cgraph_node::dump): Dump profile flags.
10839 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
10842 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
10843 reg appear first in the parallel.
10845 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
10847 * ipa-reference.c (set_reference_optimization_summary,
10848 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
10850 (ignore_module_statics): New static var.
10851 (propagate_bits): If ipa-reference is disabled, do not look into local
10853 (analyze_function): Disable analysis when ipa_reference is disabled.
10854 (generate_summary): Do not dump when reference is disabled;
10855 collect vars accessed from functions with ipa-reference disabled.
10856 (get_read_write_all_from_node): When ipa-reference is disabled, use the
10858 (gate): Enable for LTO.
10859 (ignore_edge_p): New function.
10860 (propagate): Skip functions w/o ipa-reference analysis.
10861 * optc-save-gen.awk: Handle optimize_debug correctly.
10862 * opth-gen.awk: Likewise.
10863 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
10864 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
10865 fira-share-save-slots, fira-share-spill-slots,
10866 fmodulo-sched-allow-regmoves, fpartial-inlining,
10867 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
10868 ftracer, ftree-parallelize-loops, fassociative-math,
10869 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
10871 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
10872 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
10874 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
10877 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
10880 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
10882 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
10884 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
10886 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
10887 Remove duplicate option listings.
10889 2015-01-18 Felix Yang <felix.yang@huawei.com>
10891 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
10892 (autofdo_source_profile::get_callsite_total_count,
10893 function_instance::get_function_instance_by_decl,
10894 string_table::get_index, string_table::get_index_by_decl,
10895 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
10896 Fix comment typos. Reformatting and minor code rearrangement.
10898 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
10900 * config/rs6000/rs6000.md (probe_stack): Delete.
10901 (probe_stack_address): New.
10903 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
10905 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
10906 to test for 32-bit ABIs, not !TARGET_POWERPC64.
10908 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
10910 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
10911 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
10912 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
10914 (rs6000_libcall_value): Use the new function.
10916 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
10918 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
10920 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
10922 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
10923 implement a more precise life analysis for it during backward scan.
10925 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10927 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
10929 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
10931 PR rtl-optimization/52773
10932 * calls.c (emit_library_call_value): When pushing arguments use
10933 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
10934 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
10935 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
10937 2015-01-17 Jeff Law <law@redhat.com>
10939 PR rtl-optimization/32790
10940 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
10941 not ZERO_EXTEND in SET_DESTs.
10943 2015-01-17 Alan Modra <amodra@gmail.com>
10945 * cprop.c (do_local_cprop): Revert last change.
10947 2015-01-16 DJ Delorie <dj@redhat.com>
10948 Nick Clifton <nickc@redhat.com>
10950 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
10951 (addhi3_real): Likewise. Fix [HL+0] syntax.
10952 (subqi3_real): Likewise.
10953 (subhi3_real): Likewise.
10954 (cbranchqi4_real): Likewise. Allow saddr,#imm.
10955 (cbranchhi4_real): Likewise.
10956 (cbranchhi4_real_inverted): Likewise.
10957 (cbranchsi4_real_lt): Likewise.
10958 (cbranchsi4_real_ge): Likewise.
10959 (cbranchsi4_real_ge): Likewise.
10960 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
10961 (sub<mode>3_virt): Likewise.
10962 (cbranchqi4_virt): Likewise.
10963 (cbranchhi4_virt): Likewise.
10964 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
10965 always use '[reg+imm]' even when imm is zero.
10966 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
10967 (rl78_general_operand): New.
10968 (rl78_nonimmediate_operand): New.
10969 (rl78_nonfar_operand): Use them.
10970 (rl78_nonfar_nonimm_operand): Likewise.
10971 (rl78_stack_based_mem): Fix.
10972 * config/rl78/constraints.md (Ibqi): New.
10977 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
10978 (iorqi3): Likewise.
10979 (xorqi3): Likewise.
10980 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
10982 * config/rl78/constrains (Qs8): New constraint.
10983 * config/rl78/rl78.c (rl78_flags_already_set): New function.
10984 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
10985 * config/rl78/rl78-real.md (update_Z): New attribute.
10986 Update patterns to set it.
10987 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
10988 shorter compare and branch sequence can be used.
10989 (cbranchhi4_real): Likewise.
10990 (cbranchhi4_real_inverted): Likewise.
10992 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
10993 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
10995 * config/rl78/rl78.c (rl78_get_name_encoding): New.
10996 (rl78_option_override): Allow -mes0 only if C.
10997 (characterize_address): Support subregs of symbol_refs.
10998 (rl78_addr_space_address_mode): Move. Add __near.
10999 (rl78_far_p): Likewise.
11000 (rl78_addr_space_pointer_mode): Likewise.
11001 (rl78_as_legitimate_address): Likewise.
11002 (rl78_addr_space_subset_p): Likewise.
11003 (rl78_addr_space_convert): Likewise.
11004 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
11005 symbols with -mes0.
11006 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
11008 (rl78_alloc_physical_registers_op1): Change logic to prefer
11009 symbol[BC] addressing.
11010 (frodata_section): New.
11011 (rl78_asm_init_sections): Initialize it.
11012 (rl78_select_section): Put __far readonly symbols in .frodata.
11013 (rl78_make_type_far): New.
11014 (rl78_insert_attributes): Force all readonly symbols to be
11016 (rl78_asm_out_integer): New.
11017 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
11018 * config/rl78/rl78.opt (-mes0): New.
11020 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
11021 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
11022 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11023 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
11024 (rl78_saddr_p): New.
11025 (rl78_output_aligned_common): New.
11026 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
11027 (rl78_handle_saddr_attribute): New.
11028 (rl78_handle_naked_attribute): New.
11029 (rl78_attribute_table): Add saddr.
11030 (rl78_print_operand_1): Don't print '!' on saddr operands.
11031 (rl78_print_operand_1): Strip encodings.
11033 (rl78_strip_name_encoding): New.
11034 (rl78_attrlist_to_encoding): New.
11035 (rl78_encode_section_info): New.
11036 (rl78_asm_init_sections): New.
11037 (rl78_select_section): New.
11038 (rl78_output_labelref): New.
11039 (rl78_output_aligned_common): New.
11040 (rl78_asm_out_integer): New.
11041 (rl78_asm_ctor_dtor): New.
11042 (rl78_asm_constructor): New.
11043 (rl78_asm_destructor): New.
11045 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
11046 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
11047 (transcode_memory_rtx): Update.
11048 (rl78_expand_epilogue): Use A_REG instead of 0.
11050 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11052 * config/arm/arm-protos.h (struct tune_params): New field
11053 sched_autopref_queue_depth.
11054 * config/arm/arm.c (sched-int.h): Include header.
11055 (arm_first_cycle_multipass_dfa_lookahead_guard,)
11056 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
11057 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
11058 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
11059 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
11060 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
11061 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
11062 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
11063 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
11064 * config/arm/t-arm (arm.o): Update.
11065 * haifa-sched.c (update_insn_after_change): Update.
11066 (rank_for_schedule): Use auto-prefetcher model, if requested.
11067 (autopref_multipass_init): New static function.
11068 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
11069 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
11070 variable for debug dumps.
11071 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
11072 (autopref_multipass_dfa_lookahead_guard): New global function that
11073 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
11074 (init_h_i_d): Update.
11075 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
11076 * sched-int.h (enum autopref_multipass_data_status): New const enum.
11077 (autopref_multipass_data_): Structure for auto-prefetcher data.
11078 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
11079 (struct _haifa_insn_data:autopref_multipass_data): New field.
11080 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
11081 (autopref_multipass_dfa_lookahead_guard): Declare.
11083 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11085 * rtlanal.c (get_base_term): Handle SCRATCH.
11087 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11089 * config/aarch64/aarch64.c
11090 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
11091 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11093 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
11094 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11096 2015-01-17 Alan Modra <amodra@gmail.com>
11098 * cprop.c (do_local_cprop): Disallow replacement of fixed
11101 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11104 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
11107 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
11109 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
11110 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
11112 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11114 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
11115 * config/arm/thumb1.md: ... Here.
11117 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11119 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
11120 TImode for TARGET_32BIT.
11122 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11124 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
11125 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
11127 (rs6000_abi_word_mode): New function.
11129 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11131 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
11132 instead of UNITS_PER_WORD to describe the size of stack slots.
11134 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11136 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
11137 as rs6000_promote_function_mode. Move comment to there.
11138 (rs6000_promote_function_mode): New function.
11140 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11142 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
11143 -mpowerpc64 is active.
11145 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
11147 PR middle-end/64353
11148 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
11151 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
11153 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
11154 introduced in revision 219724.
11156 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11157 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11160 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
11161 destination is not a GP reg.
11162 (*movdi_aarch64): Likewise.
11164 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
11167 * config/rs6000/default64.h: Revert ISA change.
11169 2015-01-16 Richard Biener <rguenther@suse.de>
11171 PR middle-end/64614
11172 * tree-ssa-uninit.c: Include tree-cfg.h.
11173 (MAX_SWITCH_CASES): New define.
11174 (convert_control_dep_chain_into_preds): Handle switch statements.
11175 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
11176 (normalize_one_pred_1): Do not split bit-manipulations.
11179 2015-01-16 Richard Biener <rguenther@suse.de>
11181 PR tree-optimization/64568
11182 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
11183 complex load rewriting for TARGET_MEM_REFs.
11185 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
11187 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
11189 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
11192 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
11194 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
11195 (aarch64_lra_p): Remove.
11197 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
11200 * ipa-chkp.h (chkp_instrumentable_p): New.
11201 * ipa-chkp.c: Include tree-inline.h.
11202 (chkp_instrumentable_p): New.
11203 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
11204 Fix processing of not instrumentable functions.
11205 (chkp_versioning): Use chkp_instrumentable_p. Warn about
11206 not instrumentable functions.
11207 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
11208 chkp_instrumentable_p.
11209 * tree-inline.h (copy_forbidden): New.
11210 * tree-inline.c (copy_forbidden): Not static anymore.
11212 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11214 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
11217 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
11219 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
11220 type OP_OUT to OP_INOUT.
11222 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
11224 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
11225 (high x) y) to y if x and y have the same base.
11227 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
11229 * config/arm/cortex-a57.md: New.
11230 * config/aarch64/aarch64.md: Include it.
11231 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
11232 * config/aarch64/aarch64-tune.md: Regenerate.
11234 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
11237 * ccmp.c (expand_ccmp_next): New function.
11238 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
11239 and compare insn sequence.
11240 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
11241 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
11242 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
11243 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
11244 (*ccmp_ior): Changed to ccmp_ior<mode>.
11245 (cmp<mode>): New pattern.
11246 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
11248 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
11250 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
11252 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
11253 _mm256_bsrli_epi128): New.
11254 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
11256 2015-01-15 Jiong Wang <jiong.wang@arm.com>
11258 * expmed.c (store_bit_field_using_insv): Improve warning message.
11259 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
11261 2015-01-15 Jiong Wang <jiong.wang@arm.com>
11263 PR rtl-optimization/64011
11264 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
11265 there is partial overflow.
11267 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11269 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
11271 (nds32_expand_epilogue_v3pop): Likewise.
11272 * config/nds32/nds32.md (sibcall): Define this for sibling call
11274 (sibcall_register): Likewise.
11275 (sibcall_immediate): Likewise.
11276 (sibcall_value): Likewise.
11277 (sibcall_value_register): Likewise.
11278 (sibcall_value_immediate): Likewise.
11279 (sibcall_epilogue): Likewise.
11280 (epilogue): Pass false to indicate this is not a sibcall epilogue.
11281 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
11282 (nds32_expand_epilogue_v3pop): Likewise.
11284 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11286 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
11287 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
11288 (return_internal): New.
11289 (return): Define this named pattern.
11290 (simple_return): Define this named pattern.
11291 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
11292 pattern instead of unspec_volatile_func_return.
11293 (nds32_expand_epilogue_v3pop): Likewise.
11294 (nds32_can_use_return_insn): New function.
11296 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11298 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
11299 * config/nds32/nds32.md (pop25return): New.
11300 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
11301 pop25return pattern.
11303 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11305 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
11306 -mforbid-fp-as-gp, and -mex9 options.
11308 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11310 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
11311 remove -mgp-direct option.
11313 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11315 * doc/invoke.texi (--param early-inlining-insns): Update default value.
11316 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
11318 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11320 * ipa-inline.c (inline_small_functions): Work around hints
11323 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
11326 * doc/invoke.texi (Option Summary): Document new Nios II
11328 (Nios II Options): Likewise.
11329 * config/nios2/nios2.opt: Add -mgpopt= option support.
11330 Modify existing -mgpopt and -mno-gpopt options to be aliases.
11331 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
11332 * config/nios2/nios2.c (nios2_option_override): Adjust
11333 -mgpopt defaulting.
11334 (nios2_in_small_data_p): Return true for explicit small data
11335 sections even with -G0.
11336 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
11339 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11342 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
11344 (inline_call): Fix removal of aliases.
11346 2015-01-15 Jakub Jelinek <jakub@redhat.com>
11348 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
11349 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
11350 * opts.c (common_handle_option): Add -fsanitize=vptr.
11351 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
11352 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
11353 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
11354 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
11355 (ubsan_expand_vptr_ifn): New prototype.
11356 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
11357 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
11358 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
11359 expand_LOOP_VECTORIZED): Make argument nameless, remove
11361 (expand_UBSAN_VPTR): New function.
11362 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
11364 (UBSAN_VPTR): New internal function.
11365 * sanopt.c (tree_map_traits): Renamed to ...
11366 (sanopt_tree_map_traits): ... this.
11367 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
11368 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
11369 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
11370 (maybe_optimize_ubsan_vptr_ifn): New function.
11371 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
11372 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
11374 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
11375 internal calls like pure functions for aliasing, even when they
11376 have other side-effects that prevent making them ECF_PURE.
11377 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
11378 (ubsan_expand_vptr_ifn): New function.
11380 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
11382 PR rtl-optimization/64110
11383 * stmt.c (parse_output_constraint): Process '^' and '$'.
11384 (parse_input_constraint): Ditto.
11385 * lra-constraints.c (process_alt_operands): Process the new
11387 * ira-costs.c (record_reg_classes): Process the new constraint
11389 * genoutput.c (indep_constraints): Add '^' and '$'.
11390 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
11391 * doc/md.texi: Add description of the new constraints.
11393 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
11394 Bernd Schmidt <bernds@codesourcery.com>
11395 Cesar Philippidis <cesar@codesourcery.com>
11396 James Norris <jnorris@codesourcery.com>
11397 Tom de Vries <tom@codesourcery.com>
11398 Ilmir Usmanov <i.usmanov@samsung.com>
11399 Dmitry Bocharnikov <dmitry.b@samsung.com>
11400 Evgeny Gavrin <e.gavrin@samsung.com>
11401 Jakub Jelinek <jakub@redhat.com>
11403 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
11404 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
11405 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
11406 New function types.
11407 * builtins.c: Include "gomp-constants.h".
11408 (expand_builtin_acc_on_device): New function.
11409 (expand_builtin, is_inexpensive_builtin): Handle
11410 BUILT_IN_ACC_ON_DEVICE.
11411 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
11413 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
11415 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
11416 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
11417 i386/intelmic-offload.h.
11418 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
11419 to libgomp and its dependencies.
11420 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
11421 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11422 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11423 * config/ia64/hpux.h (LIB_SPEC): Likewise.
11424 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11425 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11426 * doc/generic.texi: Update for OpenACC changes.
11427 * doc/gimple.texi: Likewise.
11428 * doc/invoke.texi: Likewise.
11429 * doc/sourcebuild.texi: Likewise.
11430 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11431 GF_OMP_FOR_KIND_OACC_LOOP.
11432 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
11433 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
11434 GF_OMP_TARGET_KIND_OACC_UPDATE,
11435 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11437 * gimple.c: Update comments for OpenACC changes.
11438 * gimple.def: Likewise.
11439 * gimple.h: Likewise.
11440 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
11441 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11442 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
11443 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11444 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
11446 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
11447 * gimplify.c: Include "gomp-constants.h".
11448 Update comments for OpenACC changes.
11449 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
11450 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
11451 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11452 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11453 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11454 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11455 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
11456 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11457 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11459 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
11460 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
11461 OMP_CLAUSE_SET_MAP_KIND.
11462 (gimplify_oacc_cache): New function.
11463 (gimplify_omp_for): Handle OACC_LOOP.
11464 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
11466 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
11467 OACC_EXIT_DATA, OACC_UPDATE.
11468 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
11469 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
11470 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
11471 (gimplify_body): Consider flag_openacc next to flag_openmp.
11472 * lto-streamer-out.c: Include "gomp-constants.h".
11473 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
11474 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
11475 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
11476 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
11477 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
11478 (BUILT_IN_ACC_ON_DEVICE): New builtins.
11479 * omp-low.c: Include "gomp-constants.h".
11480 Update comments for OpenACC changes.
11481 (struct omp_context): Add reduction_map, gwv_below, gwv_this
11483 (extract_omp_for_data, use_pointer_for_field, install_var_field)
11484 (new_omp_context, delete_omp_context, scan_sharing_clauses)
11485 (create_omp_child_function, scan_omp_for, scan_omp_target)
11486 (check_omp_nesting_restrictions, lower_reduction_clauses)
11487 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
11488 Update for OpenACC changes.
11489 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
11490 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
11491 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
11492 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11493 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
11494 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
11496 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11497 Handle GF_OMP_FOR_KIND_OACC_LOOP.
11498 (expand_omp_target, lower_omp_target): Handle
11499 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11500 GF_OMP_TARGET_KIND_OACC_UPDATE,
11501 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
11502 GF_OMP_TARGET_KIND_OACC_DATA.
11503 (pass_expand_omp::execute, execute_lower_omp)
11504 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
11506 (offload_symbol_decl): New variable.
11507 (oacc_get_reduction_array_id, oacc_max_threads)
11508 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
11509 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
11510 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
11511 (oacc_gimple_assign, oacc_initialize_reduction_data)
11512 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
11514 (is_targetreg_ctx): Remove function.
11515 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
11516 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
11517 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11518 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
11519 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
11520 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
11521 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
11522 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
11523 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
11524 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
11525 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
11526 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
11527 * tree-core.h: Update comments for OpenACC changes.
11528 (enum omp_clause_map_kind): Remove.
11529 (struct tree_omp_clause): Change type of map_kind member from enum
11530 omp_clause_map_kind to unsigned char.
11531 * tree-inline.c: Update comments for OpenACC changes.
11532 * tree-nested.c: Likewise. Include "gomp-constants.h".
11533 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
11534 (convert_tramp_reference_stmt, convert_gimple_call): Update for
11535 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
11536 OMP_CLAUSE_SET_MAP_KIND.
11537 * tree-pretty-print.c: Include "gomp-constants.h".
11538 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
11539 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
11540 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
11541 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
11542 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11543 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
11544 instead of OMP_CLAUSE_MAP_*.
11545 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
11546 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
11547 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11548 * tree-streamer-in.c: Include "gomp-constants.h".
11549 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
11550 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
11551 * tree-streamer-out.c: Include "gomp-constants.h".
11552 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
11554 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
11555 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
11556 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
11557 * tree.c (omp_clause_num_ops): Update accordingly.
11558 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
11560 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
11561 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
11562 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
11563 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
11564 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
11565 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
11566 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
11567 (OMP_CLAUSE_SET_MAP_KIND): New macro.
11568 * varpool.c (varpool_node::get_create): Consider flag_openacc next
11570 * config/i386/intelmic-offload.h: New file.
11571 * config/nvptx/offload.h: Likewise.
11573 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11575 * explow.h: Remove duplicate contents.
11576 * dojump.h: Likewise.
11578 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
11580 * arm.c (arm_xgene_tune): Add default initializer for instruction
11583 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11587 * ipa.c (symbol_table::remove_unreachable_nodes):
11588 Do not put abstract origins into boundary.
11590 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
11592 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
11593 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
11595 2015-01-15 Steve Ellcey <sellcey@mips.com>
11597 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
11598 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
11599 builtins.def, and chkp-builtins.def.
11601 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
11603 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
11606 2015-01-15 Richard Biener <rguenther@suse.de>
11608 PR tree-optimization/61743
11609 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
11610 information on PHIs for some simple cases.
11612 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11614 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
11616 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
11617 * config/arm/arm-cores.def (xgene1): New entry.
11618 * config/arm/arm-tables.opt: Regenerate.
11619 * config/arm/arm-tune.md: Regenerate.
11620 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
11622 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
11624 * tree-if-conv.c: Include hash-map.h.
11625 (aggressive_if_conv): New variable.
11626 (fold_build_cond_expr): Add simplification of non-zero condition.
11627 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
11628 destination block is not always executed.
11629 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
11630 than two predecessors if AGGRESSIVE_IF_CONV is true.
11631 (if_convertible_stmt_p): Fix commentary.
11632 (all_preds_critical_p): New function.
11633 (has_pred_critical_p): New function.
11634 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
11635 BB can have more than two predecessors and all incoming edges can be
11637 (predicate_bbs): Skip predication for loop exit block, use build2_loc
11638 to compute predicate for true edge.
11639 (find_phi_replacement_condition): Delete this function.
11640 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
11641 Allow interchange PHI arguments if EXTENDED is false.
11642 Change check that block containing reduction statement candidate
11643 is predecessor of phi-block since phi may have more than two arguments.
11644 (phi_args_hash_traits): New helper structure.
11645 (struct phi_args_hash_traits): New type.
11646 (phi_args_hash_traits::hash): New function.
11647 (phi_args_hash_traits::equal_keys): New function.
11648 (gen_phi_arg_condition): New function.
11649 (predicate_scalar_phi): Add handling of phi nodes with more than two
11650 arguments, delete COND and TRUE_BB arguments, insert body of
11651 find_phi_replacement_condition to predicate ordinary phi nodes.
11652 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
11653 delete call of find_phi_replacement_condition and invoke
11654 predicate_scalar_phi with two arguments.
11655 (insert_gimplified_predicates): Add assert that non-predicated block
11656 don't have statements to insert.
11657 (ifcvt_split_critical_edges): New function.
11658 (ifcvt_split_def_stmt): Likewise.
11659 (ifcvt_walk_pattern_tree): Likewise.
11660 (stmt_is_root_of_bool_pattern): Likewise.
11661 (ifcvt_repair_bool_pattern): Likewise.
11662 (ifcvt_local_dce): Likewise.
11663 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
11664 is copy of inner or outer loop force_vectorize field, invoke
11665 ifcvt_split_critical_edges, ifcvt_local_dce and
11666 ifcvt_repair_bool_pattern for aggressive if-conversion.
11668 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
11670 * config/aarch64/aarch64.md: Include xgene1.md.
11671 * config/aarch64/xgene1.md: New file.
11673 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11675 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
11676 xgene1 (APM XGene-1) core definition.
11677 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
11678 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
11679 * doc/invoke.texi: Document -mcpu=xgene1.
11681 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11683 * dojump.h: New header file.
11684 * explow.h: Likewise.
11685 * expr.h: Remove includes.
11686 Move expmed.c prototypes to expmed.h.
11687 Move dojump.c prototypes to dojump.h.
11688 Move alias.c prototypes to alias.h.
11689 Move explow.c prototypes to explow.h.
11690 Move calls.c prototypes to calls.h.
11691 Move emit-rtl.c prototypes to emit-rtl.h.
11692 Move varasm.c prototypes to varasm.h.
11693 Move stmt.c prototypes to stmt.h.
11694 (saved_pending_stack_adjust): Move to dojump.h.
11695 (adjust_address): Move to explow.h.
11696 (adjust_address_nv): Move to emit-rtl.h.
11697 (adjust_bitfield_address): Likewise.
11698 (adjust_bitfield_address_size): Likewise.
11699 (adjust_bitfield_address_nv): Likewise.
11700 (adjust_automodify_address_nv): Likewise.
11701 * explow.c (expr_size): Move to expr.c.
11702 (int_expr_size): Likewise.
11703 (tree_expr_size): Likewise.
11704 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11705 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
11706 * genemit.c (main): Generate includes statistics.h, real.h,
11707 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
11709 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
11710 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
11711 explow.h, emit-rtl.h, stmt.h.
11712 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
11713 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
11714 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
11715 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
11716 emit-rtl.h, varasm.h, stmt.h.
11717 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
11718 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
11719 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
11720 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
11721 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
11722 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
11723 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
11724 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
11725 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
11726 tm.h tree.h varasm.h vec.h wide-int.h.
11727 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11728 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
11729 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
11730 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
11731 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
11732 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
11733 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
11734 * loop-iv.c: Likewise.
11735 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
11736 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
11737 statistics.h stmt.h tree.h varasm.h wide-int.h.
11738 * lra-constraints.c: Likewise.
11739 * lra-eliminations.c: Likewise.
11740 * lra-lives.c: Likewise.
11741 * lra-remat.c: Likewise.
11742 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11743 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
11744 statistics.h stmt.h tree.h varasm.h wide-int.h.
11745 * hw-doloop.c: Likewise.
11746 * ira-color.c: Likewise.
11747 * ira-emit.c: Likewise.
11748 * loop-doloop.c: Likewise.
11749 * loop-invariant.c: Likewise.
11750 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11751 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
11752 statistics.h stmt.h tree.h varasm.h wide-int.h.
11753 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
11754 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
11755 statistics.h stmt.h tree.h varasm.h wide-int.h.
11756 * combine-stack-adj.c: Likewise.
11759 * ifcvt.c: Likewise.
11760 * ira-costs.c: Likewise.
11761 * jump.c: Likewise.
11762 * lra-coalesce.c: Likewise.
11763 * lra-spills.c: Likewise.
11764 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11765 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
11766 stmt.h varasm.h wide-int.h.
11767 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11768 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
11770 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
11771 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
11772 statistics.h stmt.h varasm.h wide-int.h.
11773 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
11774 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
11775 varasm.h wide-int.h.
11776 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
11777 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11778 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
11779 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
11780 statistics.h stmt.h.
11781 * config/tilepro/tilepro.c: Likewise.
11782 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
11783 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
11784 * config/pdp11/pdp11.c: Likewise.
11785 * config/xtensa/xtensa.c: Likewise.
11786 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
11787 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
11789 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11790 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
11791 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
11792 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11793 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
11794 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
11795 * rtl-chkp.c: Likewise.
11796 * tree-chkp-opt.c: Likewise.
11797 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
11798 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
11799 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
11800 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11801 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
11802 statistics.h stmt.h.
11803 * tree-vect-data-refs.c: Likewise.
11804 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
11805 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11806 rtl.h statistics.h stmt.h varasm.h.
11807 * internal-fn.c: Likewise.
11808 * ipa-icf-gimple.c: Likewise.
11809 * lto-section-out.c: Likewise.
11810 * tree-data-ref.c: Likewise.
11811 * tree-nested.c: Likewise.
11812 * tree-outof-ssa.c: Likewise.
11813 * tree-predcom.c: Likewise.
11814 * tree-pretty-print.c: Likewise.
11815 * tree-scalar-evolution.c: Likewise.
11816 * tree-ssa-strlen.c: Likewise.
11817 * tree-vect-loop.c: Likewise.
11818 * tree-vect-patterns.c: Likewise.
11819 * tree-vect-slp.c: Likewise.
11820 * tree-vect-stmts.c: Likewise.
11821 * tsan.c: Likewise.
11822 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11823 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
11825 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
11826 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11827 statistics.h stmt.h varasm.h.
11828 * loop-unroll.c: Likewise.
11829 * ubsan.c: Likewise.
11830 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
11831 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
11833 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11834 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
11835 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
11836 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
11837 statistics.h stmt.h.
11838 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
11839 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
11840 statistics.h stmt.h varasm.h.
11841 * gimple-match-head.c: Likewise.
11842 * lto-cgraph.c: Likewise.
11843 * lto-section-in.c: Likewise.
11844 * lto-streamer-in.c: Likewise.
11845 * lto-streamer-out.c: Likewise.
11846 * tree-affine.c: Likewise.
11847 * tree-cfg.c: Likewise.
11848 * tree-cfgcleanup.c: Likewise.
11849 * tree-if-conv.c: Likewise.
11850 * tree-into-ssa.c: Likewise.
11851 * tree-ssa-alias.c: Likewise.
11852 * tree-ssa-copyrename.c: Likewise.
11853 * tree-ssa-dse.c: Likewise.
11854 * tree-ssa-forwprop.c: Likewise.
11855 * tree-ssa-live.c: Likewise.
11856 * tree-ssa-math-opts.c: Likewise.
11857 * tree-ssa-pre.c: Likewise.
11858 * tree-ssa-sccvn.c: Likewise.
11859 * tree-tailcall.c: Likewise.
11860 * tree-vect-generic.c: Likewise.
11861 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11862 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
11863 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11864 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
11865 * varasm.c: Likewise.
11866 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11867 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
11869 * init-regs.c: Likewise.
11871 * omp-low.c: Likewise.
11872 * stack-ptr-mod.c: Likewise.
11873 * tree-ssa-reassoc.c: Likewise.
11874 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11875 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
11877 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11878 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
11879 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11880 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
11881 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11882 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
11883 * tree-ssa-phiopt.c: Likewise.
11884 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11885 fixed-value.h hashtab.h real.h statistics.h stmt.h.
11886 * config/fr30/fr30.c: Likewise.
11887 * config/frv/frv.c: Likewise.
11888 * expr.c: Likewise.
11889 * final.c: Likewise.
11890 * optabs.c: Likewise.
11891 * passes.c: Likewise.
11892 * simplify-rtx.c: Likewise.
11893 * stmt.c: Likewise.
11894 * toplev.c: Likewise.
11895 * var-tracking.c: Likewise.
11896 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11897 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11898 * lower-subreg.c: Likewise.
11899 * postreload-gcse.c: Likewise.
11901 * reginfo.c: Likewise.
11902 * store-motion.c: Likewise.
11903 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11904 fixed-value.h hashtab.h real.h stmt.h varasm.h.
11905 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11906 fixed-value.h hashtab.h statistics.h stmt.h.
11907 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11908 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
11909 * except.c: Likewise.
11910 * explow.c: Likewise.
11911 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11912 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
11914 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11915 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
11916 * tree-ssa-structalias.c: Likewise.
11917 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11918 fixed-value.h insn-config.h real.h statistics.h.
11919 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11920 fixed-value.h insn-config.h real.h statistics.h stmt.h.
11921 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11922 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
11923 * cfgbuild.c: Likewise.
11924 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11925 fixed-value.h real.h rtl.h statistics.h stmt.h.
11926 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11927 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11928 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11929 fixed-value.h real.h statistics.h stmt.h.
11930 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11931 fixed-value.h real.h statistics.h stmt.h varasm.h.
11932 * cprop.c: Likewise.
11933 * modulo-sched.c: Likewise.
11934 * postreload.c: Likewise.
11935 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
11936 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
11937 statistics.h stmt.h varasm.h.
11938 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
11939 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11940 rtl.h statistics.h stmt.h varasm.h.
11941 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
11942 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
11944 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
11945 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
11947 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
11948 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
11950 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
11951 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11952 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11953 function.h real.h statistics.h stmt.h varasm.h.
11954 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11955 insn-config.h real.h statistics.h stmt.h.
11956 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11957 statistics.h stmt.h.
11958 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
11959 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
11960 statistics.h stmt.h varasm.h.
11961 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
11962 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
11963 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
11964 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
11965 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
11966 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
11967 statistics.h stmt.h varasm.h.
11968 * ipa-polymorphic-call.c: Likewise.
11969 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
11970 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11971 statistics.h stmt.h.
11972 * config/c6x/c6x.c: Likewise.
11973 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
11974 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11975 statistics.h stmt.h varasm.h.
11976 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
11977 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
11979 * ipa-split.c: Likewise.
11980 * tree-eh.c: Likewise.
11981 * tree-ssa-dce.c: Likewise.
11982 * tree-ssa-loop-niter.c: Likewise.
11983 * tree-vrp.c: Likewise.
11984 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
11985 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
11987 * config/nds32/nds32-fp-as-gp.c: Likewise.
11988 * config/nds32/nds32-intrinsic.c: Likewise.
11989 * config/nds32/nds32-isr.c: Likewise.
11990 * config/nds32/nds32-md-auxiliary.c: Likewise.
11991 * config/nds32/nds32-memory-manipulation.c: Likewise.
11992 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11993 * config/nds32/nds32-predicates.c: Likewise.
11994 * config/nds32/nds32.c: Likewise.
11995 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
11996 fixed-value.h hashtab.h real.h statistics.h.
11997 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
11998 fixed-value.h hashtab.h real.h statistics.h stmt.h.
11999 * config/arm/arm.c: Likewise.
12000 * config/avr/avr.c: Likewise.
12001 * config/bfin/bfin.c: Likewise.
12002 * config/h8300/h8300.c: Likewise.
12003 * config/i386/i386.c: Likewise.
12004 * config/ia64/ia64.c: Likewise.
12005 * config/iq2000/iq2000.c: Likewise.
12006 * config/m32c/m32c.c: Likewise.
12007 * config/m32r/m32r.c: Likewise.
12008 * config/m68k/m68k.c: Likewise.
12009 * config/mcore/mcore.c: Likewise.
12010 * config/mep/mep.c: Likewise.
12011 * config/mips/mips.c: Likewise.
12012 * config/mn10300/mn10300.c: Likewise.
12013 * config/moxie/moxie.c: Likewise.
12014 * config/pa/pa.c: Likewise.
12015 * config/rl78/rl78.c: Likewise.
12016 * config/rx/rx.c: Likewise.
12017 * config/s390/s390.c: Likewise.
12018 * config/sh/sh.c: Likewise.
12019 * config/sparc/sparc.c: Likewise.
12020 * config/spu/spu.c: Likewise.
12021 * config/stormy16/stormy16.c: Likewise.
12022 * config/v850/v850.c: Likewise.
12023 * config/vax/vax.c: Likewise.
12024 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
12025 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12026 * config/msp430/msp430.c: Likewise.
12027 * predict.c: Likewise.
12028 * value-prof.c: Likewise.
12029 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
12030 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
12031 * config/microblaze/microblaze.c: Likewise.
12032 * config/nios2/nios2.c: Likewise.
12033 * config/rs6000/rs6000.c: Likewise.
12034 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12035 insn-config.h real.h rtl.h statistics.h stmt.h.
12036 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12037 insn-config.h real.h statistics.h stmt.h.
12038 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
12039 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12040 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
12041 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12042 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
12043 fixed-value.h real.h statistics.h stmt.h.
12044 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
12045 fixed-value.h statistics.h stmt.h.
12046 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
12049 2015-01-15 Jakub Jelinek <jakub@redhat.com>
12051 * gengtype.c (create_user_defined_type): Workaround
12052 -Wmaybe-uninitialized false positives.
12053 * cse.c (fold_rtx): Likewise.
12054 * loop-invariant.c (gain_for_invariant): Likewise.
12056 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
12058 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
12059 set the memory attributes in all cases but clear MEM_EXPR if need be.
12061 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
12063 PR tree-optimization/64434
12064 * cfgexpand.c (reorder_operands): New function.
12065 (expand_gimple_basic_block): Insert call of reorder_operands if
12068 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
12070 * config/mips/micromips.md (*swp): Remove explicit parallel.
12071 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
12072 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
12073 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
12074 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
12075 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
12076 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
12077 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
12078 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
12079 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
12080 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
12081 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
12082 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
12083 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
12084 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
12085 (mips_wrdsp): Likewise.
12086 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
12088 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
12089 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
12090 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
12091 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
12092 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
12093 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
12094 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
12095 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
12096 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
12098 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
12100 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
12101 (mips_print_operand): Support 'y' to print exact log2 in decimal
12103 * config/mips/mips.h (ISA_HAS_LSA): New define.
12104 (ISA_HAS_DLSA): Likewise.
12105 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
12106 * config/mips/predicates.md (const_immlsa_operand): New predicate.
12108 2015-01-15 Martin Liska <mliska@suse.cz>
12111 * optc-save-gen.awk: Add support for array types.
12113 2015-01-15 Richard Biener <rguenther@suse.de>
12115 PR middle-end/64365
12116 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
12117 for MEM_REF access functions with the same base can never partially
12120 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
12122 * common.opt: New option -fstack-protector-explicit.
12123 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
12124 (stack_protect_decl_phase): Handle stack_protect attribute for
12125 explicit stack protection requests.
12126 (expand_used_vars): Similarly.
12127 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
12128 * doc/extend.texi: Add documentation for "stack_protect" attribute.
12129 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
12131 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
12134 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
12136 (sh_extending_set_of_reg): New struct.
12137 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
12138 sh_remove_reg_dead_or_unused_notes): New Declarations.
12139 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
12140 sh_find_extending_set_of_reg, sh_split_tst_subregs,
12141 sh_extending_set_of_reg::use_as_extended_reg): New functions.
12142 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
12143 convert to insn_and_split and use new function sh_split_tst_subregs.
12145 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
12147 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
12149 (Optimization Options): Move -fuse-ld documentation to...
12150 (Link Options): ...here.
12152 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
12154 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
12156 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
12157 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
12158 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
12159 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
12160 instead of ZR for the memory operand of LL/SC.
12161 (compare_and_swap_12, sync_add<mode>): Likewise.
12162 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
12163 (sync_new_<optab>_12, sync_nand_12): Likewise.
12164 (sync_old_nand_12, sync_new_nand_12): Likewise.
12165 (sync_sub<mode>, sync_old_add<mode>): Likewise.
12166 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
12167 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
12168 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
12169 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
12170 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
12171 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
12172 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
12173 * doc/md.texi (ZC): Update description.
12175 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
12177 * builtins.c (expand_builtin_atomic_exchange): Remove error when
12178 memory model is CONSUME.
12179 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
12180 expand_builtin_atomic_store): Change invalid memory model errors to
12182 (expand_builtin_atomic_clear): Change invalid model errors to warnings
12183 and issue warning for CONSUME.
12185 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
12187 * lto-cgraph: Update function comments for
12188 lto_symtab_encoder_encode_*.
12190 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
12192 * Makefile.in (site.exp): Do not set ENABLE_LTO.
12194 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
12196 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
12197 * lto-cgraph.c (select_what_to_stream): Remove argument, use
12198 lto_stream_offload_p instead.
12199 * lto-streamer.h (select_what_to_stream): Remove argument.
12200 * passes.c (ipa_write_summaries): Likewise.
12201 * tree-pass.h (ipa_write_summaries): Likewise.
12203 2015-01-14 Richard Biener <rguenther@suse.de>
12205 PR tree-optimization/59354
12206 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
12207 groups larger than the slp group size as having gaps.
12209 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
12211 PR middle-end/59448
12212 * builtins.c (get_memmodel): Promote consume to acquire always.
12214 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
12217 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
12220 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
12223 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
12225 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
12226 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
12227 AVX512VBMI, as it implies AVX512BW.
12229 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
12232 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
12233 (vec_unpacks_hi_v16sf): Ditto.
12235 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12237 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
12240 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12242 * doc/invoke.texi (mapcs): Mention deprecation.
12243 (mapcs-frame): Likewise.
12245 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
12248 * config/arm/arm.c (callee_saved_reg_p): Define.
12249 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
12250 register is callee saved instead of !call_used_regs[reg].
12251 (thumb1_compute_save_reg_mask): Likewise.
12253 2015-01-14 Hale Wang <hale.wang@arm.com>
12255 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
12258 2015-01-14 Richard Biener <rguenther@suse.de>
12261 * tree-inline.c (insert_debug_decl_map): Check destination
12262 function MAY_HAVE_DEBUG_STMTS.
12263 (insert_init_debug_bind): Likewise.
12264 (insert_init_stmt): Remove redundant check.
12265 (remap_gimple_stmt): Drop debug stmts if the destination
12266 function has var-tracking assignments disabled.
12268 2015-01-14 Martin Liska <mliska@suse.cz>
12270 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
12271 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
12273 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12276 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
12277 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
12279 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
12281 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
12282 level from an ARCH; do not inject the default.
12283 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
12284 MIPS_ISA_LEVEL_SPEC.
12285 (MIPS_ISA_NAN2008_SPEC): Update comment.
12286 (BASE_DRIVER_SELF_SPECS): Likewise.
12287 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
12288 MIPS_DEFAULT_ISA_LEVEL_SPEC.
12289 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
12290 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
12291 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
12293 2015-01-14 Richard Biener <rguenther@suse.de>
12295 PR tree-optimization/64493
12296 PR tree-optimization/64495
12297 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
12298 assign the proper vectorized PHI to the inner loop exit PHIs.
12300 2015-01-14 Joey Ye <joey.ye@arm.com>
12302 * config/arm/arm.c (arm_compute_save_reg_mask):
12303 Do not save lr in case of tail call.
12304 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
12306 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
12308 * tree-vrp.c (check_array_ref): Emit more warnings
12309 for warn_array_bounds >= 2.
12310 * common.opt: New option -Warray-bounds=.
12311 * doc/invoke.texi: Document -Warray-bounds=.
12313 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
12315 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
12316 (mforbid-fp-as-gp): Remove.
12318 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
12319 (nds32_symbol_load_store_p): Remove.
12320 (nds32_fp_as_gp_check_available): Clean up implementation.
12321 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
12323 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
12324 fp-as-gp and ex9 cases.
12326 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
12328 * tree-profile.c (init_ic_make_global_vars): Drop workaround
12329 for bintuils bug 14342.
12330 (init_ic_make_global_vars): Likewise.
12331 (gimple_init_edge_profiler): Likewise.
12332 (gimple_gen_ic_func_profiler): Likewise.
12334 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12336 * ipa-inline.c (inline_small_functions): Swap the operands in
12339 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
12342 * ipa-inline-analysis.c (node_growth_cache): Remove.
12343 (initialize_growth_caches): Do not initialize it.
12344 (free_growth_caches): Do not free it.
12345 (do_estimate_growth): Rename to ...
12346 (estimate_growth): ... this one; drop growth cache code.
12347 (growth_likely_positive): Always go the heuristics way.
12348 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
12349 (reset_edge_caches): Do not reset node growth.
12350 (heap_edge_removal_hook): Do not maintain cache.
12351 (inline_small_functions): Likewise; strenghten sanity check.
12352 (ipa_inline): Do not maintain caches.
12353 * ipa-inline.h (node_growth_cache): Remove.
12354 (do_estimate_growth): Remove to ...
12355 (estimate_growth): this one; remove inline version.
12356 (reset_node_growth_cache): Remove.
12358 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
12361 * ipa-inline.c (inline_small_functions): Update callee keys after
12362 resolving speculation
12363 (inline_small_functions): Always check monotonicity of the queue.
12365 2015-01-13 Marek Polacek <polacek@redhat.com>
12367 PR middle-end/64391
12368 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
12370 2015-01-13 Jakub Jelinek <jakub@redhat.com>
12372 PR rtl-optimization/64286
12373 * ree.c (combine_reaching_defs): Move part of comment earlier,
12374 remove !SCALAR_INT_MODE_P check.
12375 (add_removable_extension): Don't add vector mode
12376 extensions if all uses of the source register aren't the same
12379 2015-01-13 Renlin Li <renlin.li@arm.com>
12381 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
12382 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
12384 2015-01-13 Martin Liska <mliska@suse.cz>
12386 * ipa-icf.c (sem_function::equals_private): Call new functions
12387 cl_target_option_print_diff and cl_optimization_print_diff.
12388 * optc-save-gen.awk (cl_target_option_print_diff): New function.
12389 (cl_optimization_print_diff): Likewise.
12390 * opth-gen.awk: Likewise.
12392 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
12394 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
12395 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
12396 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
12397 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
12398 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
12399 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
12401 2015-01-13 Andrew Pinski <apinski@cavium.com>
12403 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
12404 instead of src mode.
12406 2015-01-13 Richard Biener <rguenther@suse.de>
12409 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
12412 2015-01-13 Andrew Pinski <apinski@cavium.com>
12414 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
12416 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12418 2015-01-13 Jakub Jelinek <jakub@redhat.com>
12420 PR middle-end/63974
12421 * cfgexpand.c (expand_computed_goto): Don't call
12422 convert_memory_address here.
12424 2015-01-13 Richard Biener <rguenther@suse.de>
12426 PR tree-optimization/64406
12427 * tree-loop-distibution.c (pass_loop_distribution::execute):
12428 Reset the SCEV hashtable if we distributed anything.
12430 2015-01-13 Richard Biener <rguenther@suse.de>
12432 PR tree-optimization/64404
12433 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
12434 SLP types for CSEd loads.
12436 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12438 PR tree-optimization/64436
12439 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
12440 merge of two symbolic numbers for a bitwise OR to ...
12441 (perform_symbolic_merge): This. Also fix computation of the range and
12442 end of the symbolic number corresponding to the result of a bitwise OR.
12444 2015-01-13 Richard Biener <rguenther@suse.de>
12446 PR tree-optimization/64568
12447 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
12448 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
12450 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12452 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
12453 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
12455 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12457 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
12458 target-specific symbol_ref flag.
12459 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
12460 resides in rodata section.
12461 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
12462 (nds32_encode_section_info): New function.
12464 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12466 * config/nds32/nds32.md (call): Use pseudo instruction bal which
12467 clobbers TA_REGNUM if large code model is specified.
12468 (call_register): Likewise.
12469 (call_immediate): Likewise.
12470 (call_value): Likewise.
12471 (call_value_register): Likewise.
12472 (call_value_immediate): Likewise.
12474 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12476 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
12477 (TARGET_CMODEL_MEDIUM): New macro.
12478 (TARGET_CMODEL_LARGE): New macro.
12479 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
12480 code model setting in assembly code.
12482 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12484 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
12485 Remove MASK_GP_DIRECT flag.
12486 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
12487 one of the multilib default options.
12488 * config/nds32/nds32.opt (mgp-direct): Remove.
12489 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
12490 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
12492 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12494 * config/nds32/nds32.opt (mcmodel): Add new option.
12495 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
12496 to describe code model.
12498 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
12501 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
12503 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
12505 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
12506 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
12507 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
12508 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
12509 __builtin_sh_set_fpscr.
12511 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
12513 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
12514 after a funtion name just to indicate it is a function.
12515 ([-fsanitize-undefined-trap-on-error]): Likewise.
12516 ([-fdbg-cnt=]): Likewise.
12517 ([-mmemcpy]): Likewise.
12518 ([-mflush-func]): Likewise.
12519 ([-msynci]): Likewise.
12521 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
12523 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
12526 2015-01-12 Jakub Jelinek <jakub@redhat.com>
12528 PR tree-optimization/64563
12529 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
12530 instead of != VR_VARYING.
12533 * config/i386/i386.c (ix86_expand_prologue): Add
12534 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
12536 PR tree-optimization/64454
12537 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
12538 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
12539 for signed or [0, op1 - 1] for unsigned modulo.
12540 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
12541 even if op1 does not satisfy integer_pow2p.
12544 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
12546 2015-01-12 Jeff Law <law@redhat.com>
12549 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
12550 (trunchiqi2, truncsihi2): Similarly.
12552 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
12553 rather than calling F.
12555 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
12557 * tsan.c (instrument_expr): Use force_gimple_operand.
12558 Use may_be_nonaddressable_p instead of is_gimple_addressable.
12560 2015-01-12 Richard Biener <rguenther@suse.de>
12562 PR tree-optimization/64530
12563 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
12566 2015-01-12 Richard Biener <rguenther@suse.de>
12568 PR middle-end/64357
12569 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
12572 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12574 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
12575 Cortex-A17 tuning parameters.
12576 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
12578 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12580 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
12581 * config/arm/arm.c (arm_macro_fusion_p): New function.
12582 (arm_macro_fusion_pair_p): Likewise.
12583 (TARGET_SCHED_MACRO_FUSION_P): Define.
12584 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
12585 (ARM_FUSE_NOTHING): Likewise.
12586 (ARM_FUSE_MOVW_MOVT): Likewise.
12587 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
12588 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
12589 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
12590 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
12591 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
12592 arm_cortex_a5_tune): Specify fuseable_ops value.
12594 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
12597 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
12598 test for PIE with copy reloc.
12599 * configure: Regenerated.
12601 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12603 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
12605 (arm_tls_descseq_addr): Likewise.
12606 (arm_gen_movmemqi): Likewise.
12607 (arm_expand_epilogue_apcs_frame): Likewise.
12608 (arm_expand_epilogue): Likewise.
12609 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
12612 2015-01-12 Martin Liska <mliska@suse.cz>
12615 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
12616 volatility for correct operands.
12618 2015-01-12 Martin Liska <mliska@suse.cz>
12620 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
12621 that a function is not leaf.
12622 (sem_function::compare_polymorphic_p): Likewise.
12624 2015-01-12 Martin Liska <mliska@suse.cz>
12626 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
12627 that a function is not leaf.
12628 (sem_function::compare_polymorphic_p): Likewise.
12630 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12632 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
12633 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
12634 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
12635 fold-const.h, tree-check.h.
12637 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
12641 * ipa-inline.c (compute_uninlined_call_time,
12642 compute_inlined_call_time): Use counts for extra precision when
12644 (big_speedup_p): Fix formating.
12645 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
12646 (relative_time_benefit): Remove.
12647 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
12648 merge guessed and read profile paths.
12649 (inline_small_functions): Count only !optimize_size functions into
12650 initial size; be more lax about sanity check when profile is used;
12651 be sure to update inlined function profile when profile is read.
12653 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
12656 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
12657 cost when edge becomes direct.
12658 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
12659 is resolved or when introducing new speculation.
12661 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
12665 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
12666 '||' to fix typo issue.
12668 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
12669 accept and return NULL.
12671 2015-01-12 Martin Liska <mliska@suse.cz>
12673 * cgraph.c (cgraph_edge::remove_callee): Move function to header
12674 file for being inlined.
12675 (cgraph_set_edge_callee): Delete.
12676 (cgraph_edge::redirect_callee): Move function to header file
12678 (cgraph_edge::make_direct): Use new function.
12679 (cgraph_edge::dump_edge_flags): New function created from
12680 static dump_edge_flags function.
12681 (cgraph_node::dump): Use new function.
12682 (cgraph_edge::verify_count_and_frequency): New function created
12683 from verify_edge_count_and_frequency.
12684 (cgraph_edge::verify_corresponds_to_fndecl): New function created
12685 from verify_edge_corresponds_to_fndecl.
12686 (verify_edge_corresponds_to_fndecl): Delete.
12687 (cgraph_node::verify_node): Use new function.
12688 * cgraph.h (cgraph_edge::set_callee): New function.
12689 (cgraph_edge::dump_edge_flags): Likewise.
12690 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
12692 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
12694 * ipa-utils.c (estimate_function_body_sizes): Do not
12695 free node params when called late with early=true.
12697 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
12699 * doc/md.texi (Instruction Patterns): Rewrite text for
12701 (Example): Likewise.
12703 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
12705 * doc/invoke.texi (Option Summary): Break long lines.
12706 [(-fdiagnostics-color)]: Put long literal in @smallexample
12708 [(-fsanitize-recover)]: Likewise.
12709 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
12710 [(-ffast-math)]: Likewise.
12711 [(--param max-inline-insns-recursive)]: Likewise.
12712 [(--param max-inline-recursive-depth)]: Likewise.
12713 [(-mno-text-section-literals)]: Likewise.
12715 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
12717 * doc/install.texi: Update for libgomp being renamed from "GNU
12718 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
12720 * doc/sourcebuild.texi: Likewise.
12722 2015-01-10 Anthony Green <green@moxielogic.com>
12724 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
12725 mul.x availability for moxiebox configuration.
12727 2015-01-09 Anthony Green <green@moxielogic.com>
12729 * config/moxie/moxie.md: Tabify assembly output.
12731 2015-01-09 Anthony Green <green@moxielogic.com>
12733 * config/moxie/moxie.md (CC_REG): Correct register definition.
12735 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
12737 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
12738 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
12741 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
12743 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
12745 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
12746 Jakub Jelinek <jakub@redhat.com>
12748 PR middle-end/64412
12749 * lto-streamer.h (lto_stream_offload_p): New declaration.
12750 * lto-streamer.c (lto_stream_offload_p): New variable.
12751 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
12752 at the same time as section_name_prefix.
12753 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
12754 if lto_stream_offload_p.
12755 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
12756 stream TREE_TARGET_OPTION if lto_stream_offload_p.
12757 (write_ts_function_decl_tree_pointers): Don't
12758 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
12759 * tree-streamer-in.c (unpack_value_fields): Don't stream
12760 TREE_TARGET_OPTION in if ACCEL_COMPILER.
12761 (lto_input_ts_function_decl_tree_pointers): Don't stream
12762 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
12763 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
12764 instead of section_name_prefix string comparisons.
12766 2015-01-09 Jakub Jelinek <jakub@redhat.com>
12768 PR rtl-optimization/64536
12769 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
12772 2015-01-09 Michael Collison <michael.collison@linaro.org>
12774 PR tree-optimization/64322
12775 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
12776 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
12778 2015-01-09 Tom de Vries <tom@codesourcery.com>
12780 PR rtl-optimization/64539
12781 * regcprop.c (kill_clobbered_values): Factor out of ...
12782 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
12783 instead of note_stores with kill_clobbered_value.
12785 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
12787 * ginclude/unwind-arm-common.h: Revert previous commit.
12789 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
12791 * config.gcc (arm*-*-freebsd*): New configuration.
12792 * config/arm/freebsd.h: New file.
12793 * config.host: Add extra components for arm*-*-freebsd*.
12794 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
12795 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
12797 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12799 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
12801 * config/rs6000/t-rtems: Add e6500 multilibs.
12803 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12805 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
12808 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12810 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
12811 MULTILIB_EXCEPTIONS.
12813 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12815 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
12816 MULTILIB_EXCEPTIONS.
12818 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
12820 * config/arm/t-rtems-eabi: Rename to...
12821 * config/arm/t-rtems: ...this.
12822 * config/arm/rtems-eabi.h: Rename to...
12823 * config/arm/rtems.h: ...this.
12824 * config.gcc (arm*-*-rtems*): Reflect changes above.
12826 2015-01-09 Richard Biener <rguenther@suse.de>
12828 PR tree-optimization/64410
12829 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
12831 (execute_update_addresses_taken): Deal with that.
12832 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
12833 loads/stores for complex variables.
12835 2015-01-09 Martin Liska <mliska@suse.cz>
12837 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
12839 (func_checker::compare_memory_operand): New function.
12840 (func_checker::compare_operand): Split case to newly
12842 (func_checker::compare_cst_or_decl): New function.
12843 (func_checker::compare_gimple_call): Identify
12845 (func_checker::compare_gimple_assign): Likewise.
12846 * ipa-icf-gimple.h: New function.
12848 2015-01-09 Martin Liska <mliska@suse.cz>
12851 * sreal.c (sreal::dump): Change unsigned format to signed for
12853 (sreal::to_double): Replace exp2 with scalbln.
12855 2015-01-09 Martin Liska <mliska@suse.cz>
12857 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
12858 * ipa-icf.c (sem_function::equals_private): Add support for target and
12859 (sem_item_optimizer::merge_classes): Remove redundant function
12860 optimization flags comparison.
12861 * tree.h (target_opts_for_fn): New function.
12863 2015-01-09 Tom de Vries <tom@codesourcery.com>
12865 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
12867 2015-01-09 Kito Cheng <kito@0xlab.org>
12869 PR rtl-optimization/64348
12870 * lra-constraints.c (split_reg): Fix caller-save store/restore
12871 instruction generation.
12873 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
12875 PR gcov-profile/61790
12876 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
12877 long long. Fallback to int64_t if host doesn't have long long and
12878 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
12880 2015-01-08 Jakub Jelinek <jakub@redhat.com>
12882 PR tree-optimization/63989
12883 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
12884 from 1000 to 10000.
12885 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
12886 (get_stridx): If we don't have a record for certain SSA_NAME,
12887 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
12888 constant offset, call get_stridx_plus_constant.
12889 (get_stridx_plus_constant): New function.
12890 (zero_length_string): Don't use get_stridx here.
12893 PR middle-end/64388
12894 * dse.c (struct insn_info): Mention frame_read set also
12895 before reload for tail calls on some targets.
12896 (scan_insn): Revert 2014-12-22 change. Set frame_read
12897 also before reload for tail calls if
12898 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
12899 instead of add_non_frame_wild_read for non-const/memset
12900 tail calls after reload.
12902 2015-01-08 Jason Merrill <jason@redhat.com>
12904 * ubsan.c (do_ubsan_in_current_function): New.
12905 (pass_ubsan::gate): Use it.
12906 * ubsan.h: Declare it.
12907 * convert.c (convert_to_integer): Use it.
12909 2015-01-08 Jakub Jelinek <jakub@redhat.com>
12912 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
12913 compare_code when it is unconditionally overwritten afterwards.
12914 Use ix86_reverse_condition instead of reverse_condition. Don't
12915 change code if *reverse_condition* returned UNKNOWN and don't
12916 swap ct/cf and negate diff in that case.
12918 2015-01-08 Mike Stump <mikestump@comcast.net>
12920 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
12921 (pass_tsan_O0::gate): Likewise.
12922 * extend.texi (Function Attributes): Add no_sanitize_thread
12925 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
12927 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
12928 for registering builtins.
12929 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
12930 add -fopenmp to the argv_obstack used when invoking
12931 compile_for_target.
12933 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
12934 add "-m32" or "-m64" to argv_obstack.
12935 (generate_host_descr_file): Likewise, when invoking host_compiler.
12936 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
12939 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
12941 * config/sh/sh-mem.cc: Use constant as second operand when emitting
12944 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
12947 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
12948 constant load if constant operand fits into I08.
12950 2015-01-08 Jakub Jelinek <jakub@redhat.com>
12953 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
12954 and TREE_THIS_VOLATILE for MEM_REFs.
12955 (build5_stat): Fix up initialization of TREE_READONLY and
12956 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
12958 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
12961 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
12962 of r for the second alternative of the destination operand.
12964 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
12967 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
12969 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
12971 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
12973 ([-fivar-visibility], [-fvisibility]): Likewise.
12975 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
12977 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
12978 the file where @code, @command, etc is more appropriate.
12980 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
12982 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
12983 of -mrecip= documentation.
12985 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12988 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
12989 correct reload handler if -m32 -mpowerpc64 is used.
12991 2015-01-06 Tom de Vries <tom@codesourcery.com>
12993 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
12995 2015-01-08 Christian Bruel <christian.bruel@st.com>
12998 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
13000 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13002 PR tree-optimization/63259
13003 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
13004 if optab exists for 16bit byteswap.
13006 2015-01-06 Jakub Jelinek <jakub@redhat.com>
13008 * opts.c (common_handle_option): Add support for
13009 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
13010 * doc/invoke.texi: Document -fno-sanitize=all,
13011 -f{,no-}sanitize-recover=all. Document that
13012 -fsanitize=float-cast-overflow is not enabled
13013 by -fsanitize=undefined. Fix up documentation
13014 of -f{,no-}sanitize-recover.
13016 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
13018 * config.gcc: Add Visium support.
13019 * configure.ac: Likewise.
13020 * configure: Regenerate.
13021 * doc/extend.texi (interrupt attribute): Add Visium.
13022 * doc/invoke.texi: Document Visium options.
13023 * doc/install.texi: Document Visium target.
13024 * doc/md.texi: Document Visium constraints.
13025 * common/config/visium: New directory.
13026 * config/visium: Likewise.
13028 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
13030 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
13031 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
13033 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
13035 * combine.c (combine_validate_cost): Do not count the cost of a
13036 split I2 twice. Do not display it twice in the dump, either.
13038 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
13040 Revert parts of r219199.
13041 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
13043 ([-Wtraditional]): Restore markup on <limits.h>.
13045 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
13048 * doc/invoke.texi: Document -Wsuggest-override.
13050 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
13052 PR rtl-optimization/64287
13053 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
13054 (process_options): Disable flag_ipa_ra if profiling.
13056 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
13058 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
13060 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
13062 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
13063 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
13064 put under #if TARGET_LOOPS guard.
13066 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
13068 * config/i386/i386.c (output_387_binary_op): Use std::swap.
13070 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
13072 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
13073 * rtl.h (refers_to_regno_p): Add overload.
13075 * bt-load.c: Likewise.
13076 * combine.c: Likewise.
13077 * df-scan.c: Likewise.
13078 * sched-deps.c: Likewise.
13079 * config/s390/s390.c: Likewise.
13080 * config/m32r/m32r.c: Likewise.
13081 * config/rs6000/spe.md: Likewise.
13082 * config/rs6000/rs6000.c: Likewise.
13083 * config/pa/pa.c: Likewise.
13084 * config/stormy16/stormy16.c: Likewise.
13085 * config/cris/cris.c: Likewise.
13086 * config/arc/arc.md: Likewise.
13087 * config/arc/arc.c: Likewise.
13088 * config/sh/sh.md: Likewise.
13089 * config/sh/sh.c: Likewise.
13090 * config/frv/frv.c: Likewise.
13092 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13095 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
13096 call as cleanup of the whole body.
13097 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
13098 * tsan.c (replace_func_exit): New function.
13099 (instrument_func_exit): Moved earlier.
13100 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
13101 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
13103 (tsan_pass): Don't call instrument_func_exit.
13104 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
13105 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
13109 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
13110 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
13111 it to libubsan handler instead of EXPR. Fold comparisons earlier,
13112 if the result is integer_zerop, return NULL_TREE.
13113 * convert.c (convert_to_integer): Pass expr as ARG.
13115 PR tree-optimization/64465
13116 * tree-inline.c (redirect_all_calls): During inlining
13117 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
13118 changed the stmt to a non-throwing call.
13120 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
13122 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
13123 etc markup throughout the file.
13125 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13127 Enable experimental TSAN support for Ada.
13128 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
13130 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13132 PR tree-optimization/64494
13133 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
13134 clear SSA_NAME_ANTI_RANGE_P flag.
13136 2015-01-05 Marek Polacek <polacek@redhat.com>
13138 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
13140 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13142 Update copyright years.
13144 * gcc.c (process_command): Update copyright notice dates.
13145 * gcov-dump.c: Ditto.
13147 * doc/cpp.texi: Bump @copying's copyright year.
13148 * doc/cppinternals.texi: Ditto.
13149 * doc/gcc.texi: Ditto.
13150 * doc/gccint.texi: Ditto.
13151 * doc/gcov.texi: Ditto.
13152 * doc/install.texi: Ditto.
13153 * doc/invoke.texi: Ditto.
13155 * auto-profile.c, auto-profile.h: Fix up Copyright line.
13157 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
13159 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
13161 ([-fvtable-verify], [-fvtv-debug]): Likewise.
13162 ([-Wabi]): Likewise.
13163 ([-fmessage-length]): Likewise.
13164 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
13165 ([-Wno-discarded-qualifiers]): Likewise.
13166 ([-Wnodiscarded-array-qualifiers]): Likewise.
13167 ([-Wno-virtual-move-assign]): Likewise.
13168 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
13169 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
13170 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
13171 ([-fsanitize-undefined-trap-on-error]): Likewise.
13172 ([-floop-interchange]): Likewise.
13173 ([-ftree-coalesce-inlined-vars]): Likewise.
13174 ([-fvect-cost-model]): Likewise.
13175 ([-flto]): Likewise.
13176 ([--param]): Likewise.
13177 (Spec Files): Likewise.
13178 ([-mstrict-align]): Likewise.
13179 ([-mfix-cortex-a53-835769]): Likewise.
13180 ([-march], [-mtune]): Likewise.
13181 ([-mpic-register]): Likewise.
13182 ([-munaligned-access]): Likewise.
13183 ([-msp8]): Likewise.
13184 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
13185 (AVR Built-in Macros): Likewise.
13186 ([-mpreferred-stack-boundary]): Likewise.
13187 ([-mtune-crtl]): Likewise.
13188 ([-mashf]): Likewise.
13189 ([-mmcu=]): Likewise.
13190 ([-minrt]): Likewise.
13191 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
13192 ([-mupper-regs]): Likewise.
13193 ([-matomic-model]): Likewise.
13194 ([-mdiv]): Likewise.
13195 ([-mzdcbranch]): Likewise.
13196 ([-mdisable-callt]): Likewise.
13197 ([-msoft-float]): Likewise.
13198 ([-m8byte-align]): Likewise.
13199 ([-fstack-reuse]): Likewise.
13201 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
13203 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
13204 Fix markup, light copy-editing.
13205 ([-fauto-profile]): Rewrite to fix formatting and content
13208 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
13210 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
13211 Copy-edit description.
13212 ([-fisolate-erroneous-paths-attribute]): Likewise.
13213 * common.opt (fisolate-erroneous-paths-dereference):
13214 Copy-edit description.
13215 (fisolate-erroneous-paths-attribute): Likewise.
13217 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
13219 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
13222 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
13224 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
13225 ([-fvtv-debug]): Likewise.
13226 ([-Wc++-compat]): Likewise.
13227 ([-Wc++11-compat]): Likewise.
13228 ([-Wc++14-compat]): Likewise.
13229 ([-Wno-sized-deallocation]): Likewise.
13230 ([-femit-class-debug-always]): Likewise.
13231 ([-femit-struct-debug-detailed]): Likewise.
13232 ([-fno-keep-inline-dllexport]): Likewise.
13233 ([-fira-algorithm]): Likewise.
13234 ([-fira-region]): Likewise.
13235 ([-flra-remat]): Likewise.
13236 ([-fipa-ra]): Likewise.
13237 ([-fhoist-adjacent-loads]): Likewise.
13238 ([-fisolate-erroneous-paths-dereference]): Likewise.
13239 ([-fisolate-erroneous-paths-attribute]): Likewise.
13240 ([-ftree-switch-conversion]): Likewise.
13241 ([-ftree-tail-merge]): Likewise.
13242 ([-ftree-loop-if-convert]): Likewise.
13243 ([-ftree-loop-if-convert-stores]): Likewise.
13244 ([-ftree-loop-distribution]): Likewise.
13245 ([-ftree-loop-distribute-patterns]): Likewise.
13246 ([-flto-compression-level]): Likewise.
13247 ([-flto-report]): Likewise.
13248 ([-flto-report-wpa]): Likewise.
13249 ([-fuse-linker-plugin]): Likewise.
13250 ([-mfix-cortex-a53-835769]): Likewise.
13251 ([-mno-fix-cortex-a53-835769]): Likewise.
13252 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
13253 explicit listing; add a note to the discussion indicating they
13254 exist. Reorder table to group similar options. Add missing
13255 @opindex entries. Add @need commands throughout the table to
13256 allow it to be split across multiple pages.
13257 ([-m8bit-idiv]): Fix @opindex.
13258 ([-mavx256-split-unaligned-load]): Likewise.
13259 ([-mavx256-split-unaligned-store]): Likewise.
13260 ([-mstack-protector-guard]): Likewise.
13261 ([-mcpu=]): Likewise.
13262 ([-mcpu]): Likewise.
13263 ([-mpointer-size=]): Likewise.
13265 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
13267 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
13268 instead of `m' constraint. Likewise for unnamed movb comparison
13269 patterns using reg_before_reload_operand predicate.
13270 * config/pa/predicates.md (reg_before_reload_operand): Tighten
13271 predicate to reject register index and LO_SUM DLT memory forms
13274 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
13276 * doc/invoke.texi (Option Summary): Fix spelling of
13277 -fdevirtualize-at-ltrans.
13278 ([-fdevirtualize]): Fix markup.
13279 ([-fdevirtualize-speculatively]): Fix typo.
13280 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
13281 implementor-speaky.
13282 * common.opt (fdevirtualize-at-ltrans): Likewise.
13283 * ipa-devirt.c: Fix typos in comments throughout the file.
13284 (ipa_devirt): Fix typos in format strings for dump output.
13286 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
13288 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
13289 discussion of defaults, light copy-editing.
13291 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13293 * tsan.c (instrument_expr): corrected previous checkin.
13295 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13297 Instrument bit field and unaligned accesses for TSAN.
13298 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
13299 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
13300 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
13301 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
13302 unaligned memory regions.
13304 2015-01-01 Anthony Green <green@moxielogic.com>
13306 * config/moxie/predicates.md (moxie_general_movsrc_operand):
13307 Restrict move source register offsets to 16 bits.
13309 Copyright (C) 2015 Free Software Foundation, Inc.
13311 Copying and distribution of this file, with or without modification,
13312 are permitted in any medium without royalty provided the copyright
13313 notice and this notice are preserved.